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

:root {
  --radius: 14px;
  --transition: 0.25s ease;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* =====================
   Баннер
   ===================== */
.banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner__bg {
  position: absolute;
  inset: 0;
  background:
    url('images/photo.jpg')
    center / cover no-repeat;
  transform: scale(1.05);
  animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 14, 40, 0.45) 0%,
    rgba(30, 20, 80, 0.35) 50%,
    rgba(10, 14, 40, 0.45) 100%
  );
}

/* =====================
   Контент баннера
   ===================== */
.banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 44px;
  max-width: 640px;
  width: 100%;
  animation: fadeUp 0.9s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Плашка заголовка */
.banner__header-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 28px 20px;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Логотип */
.banner__logo {
  flex-shrink: 0;
}

.banner__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.banner__title {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900;
  color: #1e293b;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.banner__tag {
  display: inline-block;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Локация */
.banner__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
  text-decoration: none;
  transition: all var(--transition);
}

.banner__location:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(167, 139, 250, 0.7);
  color: #0f172a;
}

.location__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #a78bfa;
}

.location__arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #a78bfa;
  transition: transform var(--transition);
}

.banner__location:hover .location__arrow {
  transform: translate(2px, -2px);
}

/* =====================
   Список пунктов
   ===================== */
.banner__list {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

.banner__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

/* =====================
   Кнопка «Записаться»
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 48px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--signup {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #fff;
  box-shadow: 0 6px 28px rgba(167, 139, 250, 0.45);
  letter-spacing: 0.3px;
}

.btn--signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(167, 139, 250, 0.6);
  filter: brightness(1.08);
}

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

/* =====================
   Модальное окно
   ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal--open {
  pointer-events: all;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.7);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal--open .modal__box {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.modal__close:hover {
  background: #e2e8f0;
}

.modal__close svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.modal__header {
  margin-bottom: 28px;
}

.modal__tag {
  display: inline-block;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.modal__title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.modal__subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* Форма */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* Строка из двух полей */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.form-row .form-group {
  min-width: 0;
}

.form-row .form-group input {
  width: 100%;
  min-width: 0;
}

/* Возраст */
.age-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.age-field input {
  width: 100%;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: 15px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.age-field input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.age-unit {
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
}

.age-sep {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Переключатель мессенджера */
.contact-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  transition: all var(--transition);
}

.toggle-btn__img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 5px;
}

.toggle-btn--telegram.active {
  background: #e8f6fd;
  border-color: #229ED9;
  color: #1a85b8;
}

.toggle-btn--max.active {
  background: #ede9fe;
  border-color: #7c3aed;
  color: #6d28d9;
}

.toggle-btn:hover:not(.active) {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #374151;
}

/* Согласие */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  display: none;
}

.consent-label .checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  margin-top: 1px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.consent-label input[type="checkbox"]:checked + .checkbox-box {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  border-color: transparent;
}

.consent-label input[type="checkbox"]:checked + .checkbox-box svg {
  display: block;
}

.consent-label .checkbox-box svg {
  display: none;
  width: 11px;
  height: 9px;
  flex-shrink: 0;
}

.consent-link {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-link:hover {
  color: #5b21b6;
}

.btn--submit {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #fff;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.35);
  margin-top: 4px;
}

.btn--submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.45);
}

.btn--submit:disabled {
  background: #cbd5e1;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.form__status {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.form__status--success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form__status--error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =====================
   Футер баннера
   ===================== */
.banner__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  width: 100%;
}

.banner__footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.banner__footer-link:hover {
  color: #fff;
}

.banner__footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* =====================
   Адаптив
   ===================== */
@media (max-width: 600px) {
  /* Запрещаем скролл всей страницы */
  html, body {
    height: 100dvh;
    overflow: hidden;
  }

  /* Скрываем фоновое фото и оверлей */
  .banner__bg,
  .banner__overlay {
    display: none;
  }

  /* Баннер точно по высоте экрана */
  .banner {
    background: #f8f5ff;
    align-items: stretch;
    height: 100dvh;
    overflow: hidden;
    min-height: unset;
  }

  /* Контент по высоте экрана, блоки с фиксированным отступом */
  .banner__content {
    padding: 36px 24px 90px;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    max-width: 100%;
    height: 100%;
    justify-content: flex-start;
    gap: 20px;
  }

  /* Убираем плашку заголовка */
  .banner__header-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
  }

  .banner__title {
    white-space: normal;
    font-size: clamp(28px, 9vw, 40px);
  }

  .banner__tag {
    color: #7c3aed;
  }

  /* Локация */
  .banner__location {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.35);
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 0;
    align-self: flex-start;
  }

  /* Список */
  .banner__list {
    margin-bottom: 0;
  }

  .banner__list li {
    color: #1e293b;
    font-size: 14px;
  }

  /* Кнопка всегда внизу */
  .btn--signup {
    width: 100%;
  }

  /* Футер — отдельная полоска внизу экрана */
  .banner__footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    padding: 10px 24px 14px;
    background: #f8f5ff;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    z-index: 10;
  }

  .banner__footer-link {
    color: #7c3aed;
    font-size: 12px;
  }

  .banner__footer-link:hover {
    color: #5b21b6;
  }

  .banner__footer-copy {
    color: #94a3b8;
    font-size: 12px;
  }

  /* Модалка — разрешаем скролл внутри неё */
  .modal--open ~ * {
    overflow: auto;
  }

  .modal__box {
    padding: 28px 20px;
    max-height: 95dvh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
