html {
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 1000px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: "Inter";
}

header .logo {
  padding-left: 20px;
  font-weight: 900;
  color: #0000cc;
  margin-top: 0;
  font-size: 28px;
}

header .logo p {
  padding: 0;
  margin: 0;
}
header .logo :nth-child(2) {
  margin-top: -15px;
}

header .button {
  display: flex;
  flex-wrap: wrap-reverse;
}

header .button a {
  text-decoration: none;
  margin-right: 20px;
  width: 120px;
  height: 28px;
  font-size: 20px;
  font-weight: 700;
  color: #a6a6a6;
  background-color: white;
  border: 2px solid #a6a6a6;
  border-radius: 15px;
  text-align: center;
}

header .button .btn_submit {
  width: 140px;
  background-color: #ff7300;
  color: #fff;
  border: 2px solid #ff7300;
}

header .button a p {
  margin: 0;
  padding: 0;
}

.header_preview {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.header_preview div {
  padding-top: 50px;
  width: 500px;
  font-family: "Inter";
  display: flex;
  flex-direction: column;
}

.header_preview div h1 {
  margin: 0;
  padding: 0;
  font-size: 48px;
  font-weight: 500;
}
.header_preview div h1 p {
  margin: 0;
  padding: 0;
  font-size: 48px;
  font-weight: 500;
  color: #0000cc;
}

.header_preview div p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  text-align: justify;
  font-weight: 200;
}

.header_preview div a {
  width: 229px;
  height: 112px;
  background-image: url("../images/buttons/button_main.png");
  display: flex;
  justify-content: center;
  flex-wrap: wrap-reverse;
  align-items: center;
  margin-left: 100px;
  padding-top: -20px;
  text-decoration: none;
}

.header_preview div a p {
  font-family: "Inter";
  font-size: 26px;
  color: #ff7300;
  padding-top: 23px;
  padding-left: 10px;
  font-weight: 350;
  transform: rotate(7deg);
}

.header_preview img {
  width: 500px;
  height: 350px;
  transform: rotate(10deg);
  animation: anim_img-first 1s forwards;
}

.main_topical_issues {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  font-family: "Inter";

  padding: 0;
}

.main_topical_issues h1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

.main_topical_issues h1 p {
  margin: 0;
  padding: 0 7px 0 7px;
  color: #ff7300;
}

.main_topical_issues .item {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.main_topical_issues .item div {
  width: 188px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 250;
  margin: 0 40px 0 40px;
}

.main_topical_issues .item div img {
  width: 188px;
  height: 168px;
}

.main_topical_issues a {
  font-weight: 600;
  margin-top: 20px;
  width: 250px;
  height: 32px;
  text-align: center;
  align-content: center;
  align-self: center;
  background-color: #0000cc;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  border-radius: 5px;
}

.about_us {
  background-image: url("../images/backgrounds/psychologists_background.png");
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-self: center;
  margin-top: 150px;
  width: 1000px;
  height: 752px;
  font-family: "Inter";
}
.about_us div {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-self: center;
}

.about_us :nth-child(1) img {
  margin-left: 120px;
  width: 255px;
  height: 380px;
  animation: anim_img-kochybei_first 1s forwards;
}

.about_us div img {
  margin: 0;
  padding: 0;
  width: 250px;
  height: 380px;
  animation: anim_img-babkina_first 1s forwards;
}

.about_us .text {
  width: 430px;
  height: 120px;
}

.about_us .text h1 {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
}

.about_us .text p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 270;
}

.about_us #bbkn {
  text-align: end;
  margin-right: 140px;
}
.about_us #kochybei {
  margin-left: 140px;
}
.about_us .text {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.reviews {
  margin-top: 150px;
  padding: 0;
  font-family: "Inter";
  width: 1000px;
  height: 650px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reviews h1 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #333;
}

.reviews div {
  height: 210px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  margin-top: 50px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
}

.reviews img {
  width: 65px;
  height: 65px;
  margin-bottom: 20px;
  object-fit: contain;
}

.reviews p {
  font-size: 12px;
  line-height: 1.6;
  color: #2c3e50;
  margin: 0;
  font-style: normal;
}

.reviews a {
  grid-column: 1 / -1;
  justify-self: center;

  display: inline-block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 170px;

  transition: opacity 0.3s ease;
}

.reviews a p {
  color: #0000cc;
  font-weight: bold;
  font-size: 21px;
  rotate: -3deg;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-overlay {
  font-family: "Inter";
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;

  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-content h2 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  font-size: 2em;
}

.modal-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #555;
  font-size: 0.95em;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff7300;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  text-align: right;
  font-size: 0.85em;
  color: #999;
  margin-top: 5px;
}

.rating {
  margin: 10px 0;
}

.rating-label {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-weight: 500;
}

.emoji-rating {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.emoji-option {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.emoji-option:hover {
  transform: scale(1.1);
}

.emoji-option img {
  width: 60px;
  height: 60px;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border-radius: 50%;
  padding: 5px;
}

.emoji-option input[type="radio"]:checked + img {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #ff7300;
}

.submit-btn {
  background: linear-gradient(135deg, #0000cc, #0000cc);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 204, 1);
}

.submit-btn:active {
  transform: translateY(0);
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  color: #999;
  font-style: italic;
  font-size: 0.9em;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }

  .emoji-rating {
    gap: 10px;
  }

  .emoji-option img {
    width: 50px;
    height: 50px;
  }
}

.submit {
  background-size: 90%;
  background-repeat: no-repeat;
  width: 720px;
  height: 480px;
  display: flex;
  flex-direction: column;
  margin: 0;
  margin-top: 200px;
  padding-left: 100px;
  font-family: "Inter";
  justify-content: center;
  margin-left: 100px;
}

.submit div form {
  display: flex;
  flex-direction: column;
}
.submit div form input {
  margin-top: 12px;
  padding-left: 10px;
  font-family: "Inter";
  font-size: 16px;
  font-weight: 800;
  width: 315px;
  height: 42px;
  border-radius: 61px;
}

.submit h1 {
  font-size: 28px;
  font-weight: 900;
  width: 362px;
}

.submit h1 span {
  color: #0000cc;
}
.submit .submit_btn {
  color: #0000cc;
  font-size: 32px;
  font-weight: 700;
  border: none;
  background-color: #fff;
  width: 200px;
  margin-left: 350px;
  margin-top: -10px;
  border-radius: 40px;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.submit .submit_btn:hover {
  background-color: #ff7300;
  color: #fff;

  border: none;
}

footer {
  width: 100%;
  margin-top: 300px;
  background-color: #0000cc;
  color: #fff;
  font-family: "Inter";
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer h1 {
  width: 100%;
  text-align: center;
}

footer h1 .mob_rksi {
  font-size: 40px;
  font-weight: 400;
}

footer .content {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
footer .content div p {
  margin: 0;
  padding: 0;
}

footer .content #Babkina {
  text-align: end;
}

footer div h2 {
  font-size: 32px;
  font-weight: 300;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  header,
  .about_us,
  .reviews {
    max-width: 80%;
  }

  .header_preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header_preview div {
    width: 90%;
    align-items: center;
  }
  .header_preview div h1 {
    text-align: justify;
  }
  .header_preview div p {
    width: 400px;
  }
  .header_preview img {
    display: none;
  }

  .header_preview div a {
    margin: 0;
  }
  .header_preview div a p {
    padding-left: 50px;
  }

  .main_topical_issues .item {
    flex-wrap: wrap;
  }

  .main_topical_issues .item div {
    margin: 20px;
  }

  .about_us {
    height: auto;
    padding: 50px 0;
    background-image: url("../images/backgrounds/psychologist_bckg_ms.png");
  }

  .about_us div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about_us .text {
    width: 80%;
    margin: 20px 0;
  }

  .reviews {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    padding-bottom: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .reviews a {
    margin-top: 70px;
  }

  .submit {
    width: 90%;
    margin-left: 0;
    padding-left: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
  }

  .submit .submit_btn {
    margin-left: 0;
    margin-top: 20px;
  }
  .submit h1 {
    margin: 20px 0 0 0;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  header .button {
    justify-content: center;
  }

  .header_preview div h1 {
    font-size: 28px;
  }

  .main_topical_issues h1 {
    font-size: 36px;
    text-align: center;
  }

  .header_preview div h1 p {
    font-size: 36px;
  }

  .main_topical_issues .item {
    flex-direction: column;
    align-items: center;
  }

  .about_us {
    width: 95%;
  }

  .reviews {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .submit {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .submit div form input {
    width: 100%;
  }

  .submit .submit_btn {
    padding: 10px;
    width: 150px;
    border: 1px solid #0000cc;
    font-size: 20px;
  }

  footer .content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 650px) {
  header {
    margin-top: 10px;
  }

  header .logo {
    font-size: 20px;
    text-align: center;
    padding-left: 0;
  }

  header .button a {
    width: 100px;
    font-size: 14px;
    height: 26px;
    margin-right: 10px;
    align-content: center;
  }

  header .button .btn_submit {
    width: 110px;
    align-content: center;
  }

  .main_topical_issues h1 {
    font-size: 28px;
  }

  .header_preview div h1 p {
    font-size: 32px;
  }

  .about_us {
    margin-top: 80px;
    padding: 30px 0;
  }

  .about_us div img {
    width: 197px;
    height: 295px;
  }

  .about_us :nth-child(1) img {
    width: 197px;
    height: 295px;
  }

  header .logo :nth-child(2) {
    margin-top: -10px;
  }

  .about_us .text h1 {
    font-size: 18px;
  }

  .about_us .text p {
    font-size: 12px;
    text-align: right;
  }

  .reviews {
    gap: 20px;
    margin-top: 80px;
  }

  .reviews div {
    padding: 20px;
  }

  .reviews p {
    font-size: 13px;
  }

  .reviews a {
    margin-top: 50px;
    padding: 10px 20px;
  }

  .reviews a p {
    font-size: 16px;
  }

  .submit {
    background-image: none !important;
    margin-top: 100px;
    padding: 20px;
    height: auto;
  }

  .submit h1 {
    font-size: 28px;
    width: 60%;
  }

  .submit div form input {
    width: 100%;
    font-size: 14px;
    height: 38px;
  }

  .submit .submit_btn {
    border: 1px solid #0000cc;
    font-size: 18px;
    margin: 10px 0 0 0;
    padding: 10px;
    width: 120px;
  }

  footer {
    margin-top: 150px;
    padding: 30px 0;
  }

  footer h1 {
    font-size: 20px;
  }

  footer h2 {
    font-size: 18px;
  }

  footer .mob_rksi {
    font-size: 18px;
  }
}

@keyframes anim_img-first {
  0% {
    opacity: 0;
    width: 250px;
    height: 125px;
    transform: rotate(2deg);
  }
  100% {
    opacity: 100%;
    width: 500px;
    height: 350px;
    transform: rotate(10deg);
  }
}

@keyframes anim_img-kochybei_first {
  0% {
    opacity: 0;
    transform: rotate(-5deg);
  }
  100% {
    opacity: 100%;
    transform: rotate(0);
  }
}

@keyframes anim_img-babkina_first {
  0% {
    opacity: 0;
    transform: rotate(5deg);
  }
  100% {
    opacity: 100%;
    transform: rotate(0);
  }
}
