*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #001749;
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(247, 251, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 16px 0;
}

.header__inner > button.btn,
.header__inner > a.btn {
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  user-select: none;
  cursor: pointer;
}

.logo__icon {
  width: 48px;
  height: 48px;
}

.logo__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo__text {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  text-decoration: none;
  color: #001749;
  font-weight: 600;
  padding: 4px 0;
  font-size: 13px;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #001749;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: #0057ff;
}

.nav__link--active::after {
  background: #0057ff;
  width: 100%;
}

.nav__arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); /* стрелка вправо */
  margin-left: 6px;
  margin-bottom: 1px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nav__item--languages:hover .nav__arrow {
  transform: rotate(15deg); /* лёгкое движение, но все ещё вправо */
}

.nav:hover .nav__link {
  transition: opacity 0.2s ease;
}

.nav__item--languages:hover ~ .nav__item .nav__link {
  opacity: 0.4;
  pointer-events: none;
}

.nav__inline {
  display: flex;
  gap: 12px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(4px);
  transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.nav__item--languages:hover .nav__inline {
  max-width: 260px;
  opacity: 1;
  transform: translateX(0);
}

.nav__sublink {
  font-size: 12px;
  text-decoration: none;
  color: #001749;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.nav__sublink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #001749;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav__sublink:hover {
  text-decoration: none;
  color: #0057ff;
}

.nav__sublink:hover::after {
  width: 100%;
  background: #0057ff;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.btn--pill {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
}

.btn--green {
  background: #44b549;
  color: #ffffff;
  box-shadow: none;
}

.btn--green:hover {
  background: #3aa140;
}

.btn--primary {
  border-radius: 999px;
  padding: 12px 24px;
  background: #001749;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--shadow {
  box-shadow: 0 14px 32px rgba(0, 77, 255, 0.35);
}

.btn--primary:hover {
  background: #002771;
}

.btn--primary.btn--shadow:hover {
  box-shadow: 0 18px 38px rgba(0, 77, 255, 0.45);
  transform: translateY(-1px);
}

.btn--primary,
.btn--green {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: #0040cc;
}

.hero {
  padding: 64px 0 80px;
  margin-top: 80px;
  background: radial-gradient(circle at center, #e3f6ff 0, #ffffff 60%);
}

.hero__title {
  text-align: center;
  font-size: 40px;
  line-height: 1.3;
  margin: 0 0 40px;
  font-weight: 800;
}

.hero__title span {
  font-size: 44px;
}

.hero__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.step-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 10px 18px 0 #001749;
}

.step-card--center {
  transform: translateY(24px);
}

.step-card__number {
  position: absolute;
  top: -28px;
  left: 16px;
  font-size: 48px;
  font-weight: 700;
}

.step-card__title {
  margin: 0 0 16px;
  font-size: 24px;
  text-transform: uppercase;
}

.step-card__divider {
  height: 2px;
  background: #001749;
  margin-bottom: 16px;
}

.step-card__text {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.step-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-chip {
  display: block;
  margin: 0 auto 32px;
  padding: 0;
  color: #001749;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin: 0 0 32px;
  font-weight: 800;
}

.section-title span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}

.section-title__accent {
  color: #0057ff;
  font-weight: 900;
}

.why {
  padding: 72px 0;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: radial-gradient(circle at center, #e7f7ff 0, #ffffff 70%);
  padding: 40px 40px 48px;
  border-radius: 32px;
}

.why__item h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.why__item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.two-langs {
  padding: 72px 0;
  background: radial-gradient(circle at center, #e3f6ff 0, #ffffff 60%);
}

.two-langs__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.two-langs__image-placeholder {
  width: 100%;
  padding-bottom: 80%;
  border-radius: 32px;
  background: radial-gradient(circle at center, #7dd8ff 0, #eaf9ff 65%);
  overflow: hidden;
  position: relative;
}

.two-langs__image-placeholder img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.two-langs__content h2 {
  margin: 0 0 16px;
  font-size: 58px;
  font-weight: 800;
}

.two-langs__content p {
  margin: 0 0 24px;
  font-size: 20px;
}

.two-langs__content .btn {
  font-size: 20px;
}

.flags-line {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.flags-line__track {
  display: flex;
  width: 200%;
  animation-duration: 45s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.flags-line__row {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 12px 0;
}

.flags-line__row span {
  display: inline-block;
  font-size: 0;
  margin-right: 48px;
}

.flags-line__track .fi {
  width: 44px;
  height: 32px;
}

.flags-line--bottom .flags-line__row {
  flex-direction: row-reverse;
}

.about {
  padding: 72px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about__photo {
  border-radius: 32px;
  background: #dde6ff;
  min-height: 160px;
  overflow: hidden;
  position: relative;
}

.about__photo--1 {
  grid-column: 1 / 3;
}

.about__photo img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content h2 {
  margin: 0 0 24px;
  font-size: 50px;
  font-weight: 800;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
}

.about__list li {
  padding: 16px 20px;
  border-radius: 24px;
  border: 2px solid #001749;
}

.quote {
  padding: 64px 0;
  background: radial-gradient(circle at center, #e3f6ff 0, #ffffff 60%);
}

.quote__inner {
  text-align: center;
}

.quote__text {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 700;
}

.quote__author {
  margin: 0;
  font-size: 14px;
}

.prices {
  padding: 80px 0;
}

.prices .section-title {
  font-size: 40px;
  margin-bottom: 40px;
}

.prices .section-title span {
  font-size: 24px;
}

.prices__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow: 10px 18px 0 #001749;
}

.price-card--tilt-left {
  transform: rotate(-6deg);
}

.price-card--tilt-right {
  transform: rotate(6deg);
}

.price-card--center {
  transform: translateY(-12px);
}

.price-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  text-transform: uppercase;
}

.price-card__divider {
  height: 2px;
  background: #001749;
  margin-bottom: 16px;
}

.price-card ul {
  list-style: disc;
  padding-left: 18px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

.price-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-card__new {
  font-weight: 800;
  font-size: 22px;
}

.price-card__old {
  text-decoration: line-through;
  font-size: 14px;
  color: #c53b3b;
  font-weight: 600;
}

.prices .btn {
  font-size: 16px;
  padding: 12px 28px;
}

.reviews {
  padding: 80px 0 72px;
}

.reviews__slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.reviews__viewport {
  padding: 32px 40px;
  border-radius: 28px;
  background: radial-gradient(circle at center, #e7f7ff 0, #ffffff 70%);
  position: relative;
  min-height: 150px;
}

.review {
  display: none;
}

.review--active {
  display: block;
}

.review__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d0d5e8;
  margin-bottom: 16px;
}

.review__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

.review__meta {
  margin: 0;
  font-size: 13px;
  color: #7a7a7a;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #0057ff;
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews__mobile-controls {
  display: none;
}

.slider-btn-mobile {
  display: none;
}

.contacts {
  padding: 80px 0;
  background: #f7fbff;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  text-decoration: none;
  color: #001749;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contacts__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #0057ff;
}

.contacts__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  border-radius: 12px;
  color: #0057ff;
  transition: all 0.3s ease;
}

.contacts__item:hover .contacts__icon {
  background: #0057ff;
  color: #ffffff;
}

.contacts__content {
  flex: 1;
}

.contacts__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: inherit;
}

.contacts__text {
  font-size: 14px;
  margin: 0;
  color: #7a7a7a;
  transition: color 0.3s ease;
}

.contacts__item:hover .contacts__text {
  color: #0057ff;
}

@media (max-width: 768px) {
  .contacts {
    padding: 60px 0;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .contacts__item {
    padding: 20px;
  }

  .contacts__icon {
    width: 40px;
    height: 40px;
  }

  .contacts__title {
    font-size: 16px;
  }

  .contacts__text {
    font-size: 13px;
  }
}

.faq {
  padding: 72px 0 96px;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  padding: 24px 32px;
}

.faq__item + .faq__item {
  border-top: 1px solid #edf0f5;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 0 0 16px;
  font-size: 14px;
}

.footer {
  border-top: 1px solid #edf0f5;
  padding: 32px 0 40px;
  background: #ffffff;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  font-size: 14px;
}

.footer__copy {
  margin: 12px 0 0;
  color: #7a7a7a;
  font-size: 13px;
}

.footer__cols {
  display: flex;
  gap: 40px;
}

.footer__col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__col a {
  display: block;
  color: #001749;
  text-decoration: none;
  margin-bottom: 6px;
}

.footer__col a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero__steps,
  .prices__cards,
  .why__grid,
  .about__inner,
  .two-langs__inner {
    grid-template-columns: 1fr;
  }

  .step-card--center,
  .price-card--tilt-left,
  .price-card--tilt-right,
  .price-card--center {
    transform: none;
  }

  .reviews__slider {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reviews__viewport {
    order: -1;
  }

  .slider-btn {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__title span {
    font-size: 20px;
  }

  .section-chip {
    font-size: 20px;
  }

  .faq__list {
    padding: 20px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__cols {
    flex-direction: column;
    gap: 24px;
  }

  .header__inner {
    gap: 16px;
    padding: 12px 0;
    justify-content: center;
  }

  .header__inner > button.btn,
  .header__inner > a.btn {
    display: none;
  }

  .header__inner .nav {
    display: none;
  }

  .logo__text {
    font-size: 12px;
  }

  .logo__icon {
    width: 40px;
    height: 40px;
  }

  .btn--pill {
    padding: 8px 16px;
    font-size: 12px;
  }

  .container {
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .step-card,
  .price-card {
    box-shadow: 6px 12px 0 #001749;
  }

  .flags-line__track {
    width: 200%;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .step-card,
  .price-card {
    padding: 24px 16px;
  }

  .hero__steps {
    gap: 48px;
  }

  .why__grid {
    padding: 24px 20px;
    gap: 24px;
  }

  .two-langs__inner {
    gap: 32px;
  }

  .about__inner {
    gap: 32px;
  }

  .about__content h2 {
    font-size: 28px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
  }

  .about__media {
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .about__photo {
    border-radius: 20px;
    min-height: 120px;
    width: 100%;
    max-width: 100%;
  }

  .about__photo img {
    max-width: 100%;
    height: auto;
  }

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

  .reviews__viewport {
    order: 0;
    padding: 24px 20px;
  }

  .slider-btn--desktop {
    display: none;
  }

  .reviews__mobile-controls {
    display: flex;
    gap: 12px;
    order: 1;
    width: 100%;
  }

  .slider-btn-mobile {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: none;
    border-radius: 12px;
    background: #e8e8e8;
    color: #001749;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
    height: auto;
  }

  .slider-btn-mobile:hover {
    background: #d0d0d0;
  }

  .two-langs__content h2 {
    font-size: 36px;
  }

  .two-langs__content p {
    font-size: 16px;
  }

  .two-langs__content .btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .two-langs__image-placeholder {
    padding-bottom: 0;
    min-height: 300px;
  }

  .two-langs__image-placeholder img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
  }

  .section-title {
    font-size: 22px;
  }

  .prices .section-title {
    font-size: 22px;
  }

  .prices .section-title span {
    font-size: 16px;
  }

  .exam-section__inner {
    gap: 32px;
  }

  .exam-header__title {
    font-size: 28px;
  }

  .exam-header__subtitle {
    font-size: 18px;
  }

  .exam-section__exam-name {
    font-size: 24px;
  }

  .exam-section__text {
    font-size: 14px;
  }

  .exam-section {
    padding: 60px 0;
  }

  .exam-header {
    padding: 0 0 32px;
  }

  .exam-section__content {
    padding: 0 12px;
  }

  .english-benefits {
    padding: 40px 0 60px;
  }

  .english-benefits__grid {
    padding: 32px 20px;
  }

  .exam-section__inner {
    gap: 32px;
  }
}

/* Стили для страницы английского */
.english-hero {
  background: linear-gradient(to bottom, #e3f6ff 0%, #ffffff 100%);
  padding: 80px 0 16px;
  margin-top: 80px;
}

.english-hero__title {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: #001749;
  margin: 0;
}

.english-hero__title[style*="text-align: left"] {
  text-align: left;
}

.english-benefits {
  background: #ffffff;
  padding: 40px 0 80px;
}

.english-benefits__grid {
  background: #e3f6ff;
  padding: 48px 40px;
}

.exam-header {
  padding: 0 0 48px;
  text-align: center;
}

.exam-header__title {
  font-size: 36px;
  font-weight: 800;
  color: #001749;
  margin: 0 0 12px;
}

.exam-header__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #001749;
  margin: 0;
}

.exam-section {
  padding: 80px 0;
  background: #ffffff;
}

.exam-section--oge {
  background: #e3f6ff;
}

.exam-section--ege {
  background: #ffffff;
}

.exam-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.exam-section__inner--reverse {
  grid-template-columns: 1fr 1fr;
}

.exam-section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exam-section__exam-name {
  font-size: 32px;
  font-weight: 800;
  color: #001749;
  margin: 0 0 16px;
}

.exam-section__text {
  font-size: 16px;
  line-height: 1.7;
  color: #001749;
  margin: 0;
}

.exam-section__image {
  position: relative;
}

.exam-section__image-placeholder {
  width: 100%;
  padding-bottom: 70%;
  border-radius: 32px;
  background: #dde6ff;
  overflow: hidden;
}

.exam-section__img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  display: block;
  object-fit: cover;
}

.exam-section__btn {
  margin-top: 8px;
  align-self: flex-start;
}

.btn--red {
  background: #c53b3b;
  color: #ffffff;
}

.btn--red:hover {
  background: #a82d2d;
}

@media (max-width: 960px) {
  .exam-section__inner,
  .exam-section__inner--reverse {
    grid-template-columns: 1fr;
  }

  .exam-section__image {
    order: -1;
  }

  .english-hero {
    margin-top: 70px;
  }

  .english-hero__title {
    font-size: 36px;
  }

  .english-hero__title[style*="text-align: left"] {
    font-size: 28px;
  }

  .exam-section__title {
    font-size: 28px;
  }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

@media (min-width: 641px) {
  .modal__content {
    overflow-y: visible;
    max-height: none;
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #7a7a7a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: #001749;
}

.modal__title {
  font-size: 28px;
  font-weight: 800;
  color: #001749;
  margin: 0 0 24px;
  text-align: center;
}

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

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

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

@media (min-width: 641px) {
  .modal__row {
    flex-direction: row;
    gap: 16px;
  }
  
  .modal__row .modal__field {
    flex: 1;
  }
}

.modal__label {
  font-size: 14px;
  font-weight: 600;
  color: #001749;
}

.modal__input {
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #001749;
  transition: border-color 0.2s ease;
}

.modal__input:focus {
  outline: none;
  border-color: #0057ff;
}

.modal__input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal__input::placeholder {
  color: #b3b3b3;
}

.modal__radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.modal__radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #001749;
  user-select: none;
}

.modal__radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0057ff;
}

.modal__radio-label span {
  font-weight: 500;
}

.modal__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #001749;
  line-height: 1.5;
  user-select: none;
}

.modal__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0057ff;
  flex-shrink: 0;
}

.modal__checkbox-label span {
  font-weight: 400;
}

.modal__submit {
  width: 100%;
  margin-top: 8px;
}

.modal__message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.modal__message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
}

.modal__message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

@media (min-width: 641px) {
  .modal__content {
    overflow-y: visible;
    max-height: none;
  }
  
  .modal__form {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .modal__content {
    padding: 32px 24px;
    width: 95%;
  }

  .modal__title {
    font-size: 24px;
  }
  
  .modal__row {
    gap: 20px;
  }
}



