/* ============================================================
   Елена Звёздная - публичный сайт
   Дизайн-система: кремовый фон, золотой акцент, глубокий индиго-слив,
   тёплый серый текст. Шрифты: Playfair Display (заголовки) + Manrope (текст).
   ============================================================ */

:root {
  --cream: #FBF4EA;
  --cream-soft: #F6ECDF;
  --paper: #FFFEFC;
  --ink: #1E3A4C;
  --ink-soft: #3E5A6C;
  --muted: #61788A;
  --gold: #B8925A;
  --gold-deep: #A17C43;
  --gold-light: #E7D2AE;
  --sky: #4F8FB3;
  --sky-deep: #34647F;
  --line: #E7DAC6;
  --success: #4C7A5C;
  --danger: #B4483F;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px -14px rgba(30, 58, 76, 0.22);
  --shadow-soft: 0 4px 18px -8px rgba(30, 58, 76, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Сквозной фон страницы (используется только там, где страница задала $bodyBgImage,
   сейчас - главная). Реальный position:fixed-элемент, а не background-attachment:fixed,
   т.к. последний ведёт себя нестабильно в мобильных браузерах. */
body.has-site-bg { background: transparent; }
.site-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
body.has-site-bg .section--alt { background: rgba(246, 236, 223, .62); }
body.has-site-bg .site-header { background: rgba(251, 244, 234, .78); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
/* Шапка допускает более широкий контейнер, чем остальной контент -
   иначе пункты меню, телефон и кнопка не помещаются в 1180px. */
.container--header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.icon { width: 22px; height: 22px; flex-shrink: 0; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--cream-soft); }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.divider {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 18px 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: #3A2A12;
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 8px 22px -8px rgba(184,146,90,.6); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 244, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand img { height: 40px; width: auto; }
.brand-logo-mark { height: 40px; width: auto; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; color: var(--ink); }
.brand-text span { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav > ul { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav a.nav-link, .main-nav .nav-drop > button {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 9px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: none;
}
.main-nav a.nav-link:hover, .main-nav .nav-drop > button:hover,
.main-nav a.nav-link.active { color: var(--ink); background: rgba(184,146,90,.16); }
.nav-drop { position: relative; }
.nav-drop .chev { width: 10px; height: 10px; margin-top: 2px; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  min-width: 240px; padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .15s ease;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink-soft); font-weight: 600;
}
.nav-drop-menu a:hover { background: var(--cream-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.header-phone .icon { width: 17px; height: 17px; color: var(--gold-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 64px 0 90px;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--gold-deep); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero-desc { font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 4/5; background: var(--cream-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-media {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); background: var(--cream-soft);
}
.placeholder-media .icon { width: 46px; height: 46px; }
.placeholder-media span { font-size: .85rem; font-weight: 600; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 16px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.help-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-soft);
}
.help-card--photo {
  background-size: cover; background-position: center; color: #fff;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.help-card--photo h3 { color: #fff; }
.help-card--photo .desc { color: rgba(255,255,255,.9); }
.help-card--photo .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.help-card--photo .btn-outline:hover { background: #fff; color: var(--ink); }
.help-card .icon-badge {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #3A2A12; margin-bottom: 16px;
}
.help-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.help-card ul li {
  padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft);
}
.help-card ul li:first-child { border-top: none; }

.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card .badge {
  align-self: flex-start; background: var(--sky); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .03em;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card .price {
  font-family: var(--font-head); color: var(--gold-deep); font-size: 1.25rem; font-weight: 700; margin: 6px 0 12px;
}
.service-card .price small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 600; }
.service-card .desc { color: var(--ink-soft); font-size: .92rem; flex-grow: 1; margin-bottom: 18px; }
.service-card .price-lines { margin: 6px 0 14px; }
.service-card .price-lines div {
  display: flex; justify-content: space-between; font-size: .88rem; padding: 5px 0; border-top: 1px dashed var(--line);
}
.service-card .price-lines div:first-child { border-top: none; }
.service-card .price-lines b { color: var(--gold-deep); font-family: var(--font-head); }
.service-card img.thumb { width: 100%; border-radius: var(--radius-md); margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; }

/* Компактная нарядная карточка для рядов из 5 элементов на главной (консультации, курсы) */
.feature-card {
  background: var(--paper);
  border: 1.5px solid var(--gold-light);
  padding: 22px 18px;
  align-items: center;
  text-align: center;
}
.feature-card:hover { border-color: var(--gold); }
.feature-card .icon-badge {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #3A2A12; margin-bottom: 14px; flex-shrink: 0;
}
.feature-card h3 { font-size: .98rem; line-height: 1.35; margin-bottom: 8px; }
.feature-card .badge { align-self: center; }
.feature-card .price { font-size: 1.05rem; margin: 4px 0 10px; }
.feature-card .price-lines { width: 100%; }
.feature-card .desc { font-size: .82rem; line-height: 1.5; }
.feature-card .btn { width: 100%; }
.feature-card--cta {
  justify-content: center;
  background: var(--gold-light);
  border-color: var(--gold);
}

.service-group-title {
  font-family: var(--font-head); color: var(--ink); font-size: 1.4rem; margin: 48px 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.service-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.service-group-title:first-child { margin-top: 0; }

/* ---------- Icon-circle architecture diagram (home) ---------- */
.arch-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.arch-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.arch-item .icon-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display:flex; align-items:center; justify-content:center; color:#3A2A12; flex-shrink:0; }
.arch-item span { font-weight: 700; color: var(--ink); font-size: .92rem; }

/* ---------- Banner / quote ---------- */
.banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink);
  color: #F4ECDD; padding: 56px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.banner h2 { color: #fff; margin-bottom: 8px; }
.banner p { color: rgba(244,236,221,.85); margin: 0; max-width: 460px; }

.quote-block {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-soft); position: relative;
}
.quote-block:before {
  content: '\201C'; font-family: var(--font-head); font-size: 4.5rem; color: var(--gold-light);
  position: absolute; top: 6px; left: 20px; line-height: 1;
}
.quote-block p { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); font-style: italic; margin: 18px 0 10px; position: relative; }
.quote-block cite { color: var(--gold-deep); font-weight: 700; font-style: normal; font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
.testi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--font-head); }
.testi-name { font-weight: 700; color: var(--ink); }
.testi-stars { color: var(--gold-deep); font-size: .82rem; letter-spacing: 2px; }
.testi-body { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Contact / socials ---------- */
.contact-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-soft);
}
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: none; }
.contact-row .icon-badge { width: 42px; height: 42px; border-radius: 50%; background: var(--cream-soft); display: flex; align-items: center; justify-content: center; color: var(--gold-deep); flex-shrink: 0; }
.contact-row a, .contact-row span.value { font-weight: 700; color: var(--ink); }
.contact-row .label { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cream-soft); color: var(--ink); border: 1px solid var(--line);
}
.social-btn:hover { background: var(--gold); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #142631; color: #DCE7EE; padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #A6C6D6; }
.footer-brand p { color: #B9D2E0; font-size: .88rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: #B9D2E0; font-size: .88rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #8CAEC0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 52px 0 34px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lead { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Плавающие частицы (главная страница) ---------- */
.floating-particles {
  position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; bottom: -5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,90,.85), rgba(184,146,90,0) 70%);
  animation-name: particle-rise; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes particle-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: .7; }
  50%  { transform: translate3d(var(--drift, 20px), -55vh, 0); }
  92%  { opacity: .5; }
  100% { transform: translate3d(calc(var(--drift, 20px) * -1), -110vh, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .particle { animation: none; display: none; }
}

/* ---------- Whatsapp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #3FBF63; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.4);
}
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Misc ---------- */
.flag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.flag { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-soft); }
.tier-card.featured { background: var(--ink); color: #fff; }
.tier-card.featured .price, .tier-card.featured h3 { color: #fff; }
.tier-card .price { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-deep); margin: 10px 0 4px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .92rem; }
.list-check li .icon { color: var(--success); width: 18px; height: 18px; margin-top: 3px; }
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16/9; background: var(--cream-soft); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: none; }

.article-body { font-size: 1.05rem; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.3em; }

/* ---------- Фото-коллаж (Обо мне) ---------- */
/* Масонри-раскладка: каждое фото сохраняет свои родные пропорции (без обрезки) */
.photo-collage { column-count: 5; column-gap: 10px; }
.photo-collage img {
  width: 100%; height: auto; display: block; margin: 0 0 10px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); break-inside: avoid;
}

/* ---------- Отзывы (CTA-блок со ссылкой на Instagram) ---------- */
.reviews-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 36px; box-shadow: var(--shadow-soft);
}
.reviews-cta .reviews-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: #3A2A12; display: flex; align-items: center; justify-content: center;
}
.reviews-cta-text { display: flex; align-items: center; gap: 18px; }

.empty-note {
  background: var(--cream-soft); border: 1px dashed var(--line); border-radius: var(--radius-md);
  padding: 24px; text-align: center; color: var(--muted); font-size: .95rem;
}

.alert { border-radius: var(--radius-md); padding: 14px 18px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.alert-success { background: #E4F1E6; color: var(--success); border: 1px solid #BFE0C6; }
.alert-error { background: #F7E4E2; color: var(--danger); border: 1px solid #EABDB8; }

/* ============== Responsive ============== */
/* Пункты меню + телефон в шапке физически не помещаются в контейнер уже на
   ноутбучных разрешениях (~1080-1300px) - переключаем на гамбургер раньше,
   а телефон показываем только на действительно широких экранах. */
@media (max-width: 1300px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1439px) {
  .header-phone { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-4, .tier-grid, .grid-5 { grid-template-columns: 1fr 1fr; }
  .arch-list { grid-template-columns: 1fr; }
  .photo-collage { column-count: 3; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .photo-collage { column-count: 2; column-gap: 8px; }
  .photo-collage img { margin-bottom: 8px; }
  .reviews-cta { padding: 24px; }
  .reviews-cta-text { gap: 12px; }
  .grid-2, .grid-3, .grid-4, .tier-grid, .grid-5 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .hero .hero-media { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 40px 0 60px; }
  h1 { font-size: 2rem; }
}

/* На узких телефонах лого + название + кнопка «Записаться» + гамбургер не помещаются
   в одну строку - убираем кнопку из шапки (снизу есть плавающая кнопка WhatsApp)
   и прячем подзаголовок под названием, чтобы шапка не «распирала» страницу вширь. */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 10px; }
  .header-actions > a.btn-gold { display: none; }
  .brand-text span { display: none; }
  .brand img, .brand-logo-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.02rem; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; background: rgba(30,58,76,.5); z-index: 200;
  display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--paper); padding: 20px; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.mobile-nav-panel .close-btn { margin-left: auto; display: block; background: none; border: none; color: var(--ink); }
.mobile-nav-panel ul { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav-panel a.nav-link { display: block; padding: 12px 10px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav-panel .sub-list { padding-left: 14px; }
.mobile-nav-panel .sub-list a { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.mobile-nav-panel .group-label { padding: 12px 10px 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-deep); font-weight: 700; }
