@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400..900&family=Work+Sans:wght@400..800&display=swap');

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --bg: #ffffff;
  --bg-soft: #fbfaf7;

  --surface: rgba(255,255,255,0.96);
  --surface2: rgba(255,255,255,0.985);

  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,0.10);

  --brand:  #155e75;
  --brand2: #0e4a5d;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 14px;

  --shadow-sm: 0 10px 26px rgba(2,6,23,.06);
  --shadow-md: 0 18px 50px rgba(2,6,23,.10);

  /* ✅ шире, чтобы не было гигантских пустот слева/справа */
  --container: 1480px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 12% 8%, rgba(21,94,117,0.08), transparent 60%),
    radial-gradient(1000px 520px at 88% 10%, rgba(197,139,43,0.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

h1,h2,h3,h4,.brand__name{
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

a{ color: inherit; text-decoration:none; }
a:hover{ opacity:.98; }

img{ display:block; max-width:100%; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 64px;
  gap:14px;
}

/* Brand / logo */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand a{
  display:flex;
  align-items:center;
  gap:12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.brand__logo-wrap,
.logo-circle,
.brand__avatar{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.brand__logo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  object-fit: cover;
  transform: scale(1.15);
  transform-origin: center;
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand__name{
  font-weight:900;
  font-size: 24px;
  letter-spacing:.2px;
}

.brand__tag{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
  font-weight:650;
  max-width: 260px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 6px;
}

.nav__link{
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  border: 1px solid transparent;
}

.nav__link:hover{
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.06);
}

.nav__link.is-active{
  background: rgba(21,94,117,0.08);
  border-color: rgba(21,94,117,0.14);
  color: var(--brand2);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 28px rgba(21,94,117,0.22);
}

.btn--primary:hover{
  box-shadow: 0 16px 38px rgba(21,94,117,0.30);
}

.btn--ghost{
  background: rgba(255,255,255,0.85);
}
.btn--ghost:hover{ background: rgba(255,255,255,0.97); }

/* Burger + mobile */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius: var(--r-sm);
  border:1px solid var(--line);
  background: rgba(255,255,255,0.90);
  cursor:pointer;
}

.burger span{
  display:block;
  width:18px;
  height:2px;
  background:#111827;
  margin:4px auto;
  border-radius:2px;
  opacity:.85;
}

.mobile{
  display:none;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
}
.mobile__link{
  display:block;
  padding:12px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
}
.mobile__link:hover{ background: rgba(15,23,42,0.04); }
.mobile__btn{ width:100%; margin-top:10px; }
body.menu-open .mobile{ display:block; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  padding: 18px 0 34px;
}

body.home-page .hero{
  margin-top: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.06);
  background:
    radial-gradient(900px 520px at 10% 20%, rgba(21,94,117,0.10), transparent 62%),
    radial-gradient(900px 520px at 90% 25%, rgba(197,139,43,0.12), transparent 60%),
    rgba(255,255,255,0.70);
  box-shadow: 0 22px 70px rgba(2,6,23,.08);
}

/* Внутренняя сетка hero */
.hero__grid{
  position: relative;
  display:grid;
  grid-template-columns: minmax(620px, 1.25fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: start;
  padding: 30px;
}

/* ✅ Левый блок: превращаем в вертикальный стек и даём место для картинки снизу */
.hero__left{
  display:grid;
  gap: 18px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(2,6,23,.10);
  backdrop-filter: blur(10px) saturate(120%);
}

/* Пилюли */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom: 0;
}

.chip{
  background: rgba(21,94,117,0.08);
  border: 1px solid rgba(21,94,117,0.14);
  color: var(--brand2);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

/* Заголовок слева */
h1{
  margin:0;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: #0f172a;
}

.lead{
  margin:0;
  color:#1f2937;
  font-size:18px;
  line-height:1.72;
  font-weight:600;
  max-width: 760px;
}

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 0;
}

/* Статы */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.stat{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.stat__num{
  font-weight:900;
  font-size:22px;
  color:#0f172a;
}

.stat__text{
  color: var(--muted);
  margin-top:6px;
  font-size:13px;
  line-height:1.35;
  font-weight:650;
}

/* ✅ Общий стиль для "картинки-карты" */
.hero-art{
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 46px rgba(2,6,23,.14);
  background: rgba(255,255,255,0.85);
}

.hero-art img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  display:block;
}

/* ✅ Левая картинка (дырка) чуть ниже по высоте */
.hero-art--left img{ height: 300px; }

/* Правая колонка — стек: сначала карточка, потом картинка */
.hero__right{
  display:grid;
  gap: 18px;
}

/* Правая карточка (консультация) */
.hero-card{
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 44px rgba(2,6,23,.10);
  padding: 18px;
  backdrop-filter: blur(10px) saturate(120%);
}

/* Бейдж */
.badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21,94,117,0.16);
  background: rgba(21,94,117,0.06);
  color: var(--brand2);
  font-size:13px;
  font-weight:800;
}

.hero-card h3{
  margin: 12px 0 10px;
  font-size: 24px;
  font-weight: 900;
  color:#0f172a;
}

.hero-card p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height:1.55;
  font-weight:650;
}

/* ✅ Чеклист — теперь под <ul><li> */
.hero-card__list{
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  display:grid;
  gap:10px;
}

.hero-card__list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: var(--muted);
  font-weight:650;
  line-height:1.45;
}

/* Маркер-галочка */
.hero-card__list li::before{
  content:"✓";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  display:grid;
  place-items:center;

  background: rgba(21,94,117,0.10);
  border: 1px solid rgba(21,94,117,0.22);
  color: var(--brand2);

  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.hero-card__btn{ width:100%; }

.mini{
  margin:10px 0 0;
  font-size:12px;
  color: var(--muted);
  line-height:1.4;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{ padding: 40px 0; }
.section--soft{ background: transparent; border:none; }

.section__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-end;
  margin-bottom: 14px;
}

.section__head h2{
  margin:0;
  font-size: 36px;
  font-weight:900;
  color:#0f172a;
}

/* “Разные цели…” как плашка */
.section__head p{
  margin:0;
  color: #1f2937;
  max-width: 760px;
  line-height:1.55;
  font-size:14px;
  font-weight:750;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21,94,117,0.14);
  background: rgba(21,94,117,0.06);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:900;
  color:#0f172a;
}

.card p{
  margin:0;
  color: var(--muted);
  line-height:1.65;
  font-size:15px;
  font-weight:650;
}

/* Цены / мета */
.card__meta{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21,94,117,0.18);
  background: rgba(21,94,117,0.08);
  color: var(--brand2);
  font-size:13px;
  font-weight:900;
}

/* Доп страховка */
.price,
.tariff-price,
.pricing,
[data-price]{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21,94,117,0.18);
  background: rgba(21,94,117,0.08);
  color: var(--brand2);
  font-size:13px;
  font-weight:900;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  margin-top:14px;
}

.step{
  display:flex;
  gap:12px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.94);
  border-radius: var(--r-md);
  padding:14px;
  box-shadow: var(--shadow-sm);
}

.step__num{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: rgba(21,94,117,0.12);
  border: 1px solid rgba(21,94,117,0.18);
  color: var(--brand2);
}

.step__body h4{
  margin:0 0 6px;
  font-size:18px;
  font-weight:900;
}

.step__body p{
  margin:0;
  color: var(--muted);
  line-height:1.65;
  font-size:15px;
  font-weight:650;
}

/* CTA wide */
.cta-wide{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.cta-wide h3{ margin:0 0 6px; font-weight:900; }
.cta-wide p{ margin:0; color: var(--muted); font-weight:650; line-height:1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ padding: 22px 0 10px; }

.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
  border-top: 1px solid rgba(15,23,42,0.10);
}

.footer__title{ font-weight:900; font-size:18px; }
.footer__sub{ color: var(--muted); margin-top:6px; font-size:13px; font-weight:650; }
.footer__right{ display:flex; gap:14px; flex-wrap:wrap; color: var(--muted); }
.footer__right a{ font-size:14px; color: var(--muted); font-weight:700; }
.footer__bottom{ color: var(--muted); font-size:12px; padding-bottom:10px; }

/* =========================================================
   Schedule time slots
   ========================================================= */
.time-slot{
  background: transparent;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  transition: all .15s ease;
}
.time-slot:hover{
  background: rgba(21,94,117,0.10);
  text-decoration: none;
}
.time-slot.is-booked,
.time-slot.is-closed{
  color: var(--muted);
  text-decoration: none;
  cursor: not-allowed;
}
.time-slot.is-booked:hover,
.time-slot.is-closed:hover{ background: transparent; }

/* =========================================================
   Modal
   ========================================================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
}
.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,0.52);
  backdrop-filter: blur(4px);
}
.modal__content{
  position: relative;
  background: rgba(255,255,255,0.98);
  border-radius: var(--r-md);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 22px 70px rgba(0,0,0,0.30);
  border: 1px solid rgba(15,23,42,0.10);
}
.modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:none;
  background: rgba(15,23,42,0.04);
  border-radius: 999px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  color:#0f172a;
  display:grid;
  place-items:center;
}
.modal__close:hover{ background: rgba(15,23,42,0.08); }
.modal__content h2{ margin:0 0 8px; font-size:26px; font-weight:900; }
.modal__selected-time{
  color: var(--brand);
  font-weight:900;
  margin:0 0 18px;
  font-size:14px;
}

/* =========================================================
   Forms
   ========================================================= */
.form-group{ margin-bottom:18px; }
.form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:900;
  color:#111827;
  font-size:13px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color:#0f172a;
  font-size:15px;
  font-family:inherit;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.form-group textarea{
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color: rgba(21,94,117,0.45);
  box-shadow: 0 0 0 4px rgba(21,94,117,0.12);
}

.checkbox-group{ margin-bottom:18px; }

.checkbox-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  line-height:1.5;
  color: var(--muted);
  font-weight:700;
}

.checkbox-label input[type="checkbox"]{
  margin-top:4px;
  width:18px;
  height:18px;
  cursor:pointer;
  flex-shrink:0;
  accent-color: var(--brand);
}

.form-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}

.booking-success{
  padding:16px;
  background: rgba(21,94,117,0.08);
  border: 1px solid rgba(21,94,117,0.14);
  border-radius: 12px;
  text-align:center;
  color:#0f172a;
  line-height:1.6;
  font-weight:700;
}

/* =========================================================
   Admin/Schedule/Teacher extras
   ========================================================= */
.admin-page .section__head h1{ font-size:40px; }
.admin-login{ margin-top:20px; }
.admin-hint{ margin:12px 0 0; font-size:12px; color: var(--muted); }
.admin-toolbar{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.admin-list{ display:grid; gap:14px; }
.admin-card__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.admin-card__title{ font-weight:900; }
.admin-badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.92);
  color: var(--muted);
  font-weight:800;
}
.admin-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

.slot-grid{ display:grid; gap:16px; }
.slot-card{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: var(--r-md);
  padding:16px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
}
.slot-card h4{ margin:0 0 10px; font-size:18px; font-weight:900; }
.slot-buttons{ display:grid; gap:8px; }
.slot-btn{
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
}
.slot-btn.is-off{
  background: rgba(15,23,42,0.04);
  color: var(--muted);
}

/* =========================================================
   Floating messenger button
   ========================================================= */
.messenger-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  background: linear-gradient(135deg, #0088cc, #229ED9);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 10px 26px rgba(0,136,204,.28);
  font-weight:850;
  font-size:14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.messenger-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,136,204,.36);
  color:#ffffff;
}
.messenger-float svg{ width:24px; height:24px; flex-shrink:0; }

@media (max-width: 640px){
  .messenger-float{ bottom: 18px; right: 18px; padding: 12px 14px; }
  .messenger-float span{ display:none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .hero__grid{
    grid-template-columns: 1fr;
    padding: 18px;
  }

  h1{ font-size: 44px; }
  .cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }

  .section__head{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .section__head p{
    border-radius: 16px;
    max-width: 100%;
  }

  /* чтобы картинки нормально смотрелись на мобиле */
  .hero-art img{ height: 300px; }
  .hero-art--left img{ height: 260px; }
}

@media (max-width: 820px){
  .nav{ display:none; }
  .burger{ display:block; }
}

@media (max-width: 520px){
  .brand__name{ font-size: 22px; }
  .brand__tag{ font-size: 12px; }
  .brand__logo{ width: 52px; height: 52px; transform: scale(1.10); }
  h1{ font-size: 38px; }
}
