/* БГХГК — главная страница */

:root {
  /* Палитра — пастельные, тёплые */
  --rose-50:  #FBF3F0;   /* почти молочный розовый */
  --rose-100: #F6E4DD;   /* фон секций */
  --rose-200: #EDCFC4;   /* мягкий розовый */
  --rose-300: #E0B3A5;   /* акцентный пыльно-розовый */
  --rose-500: #B47A6B;   /* приглушённая роза */
  --rose-700: #7A4A3F;   /* глубокая роза для текста на светлом */

  --beige-50:  #FBF7F1;  /* основной фон */
  --beige-100: #F2E8D9;  /* тёплый бежевый */
  --beige-200: #E5D4BC;  /* песочный */
  --beige-300: #D2B894;  /* охра */
  --beige-700: #6B5841;  /* кофейный текст */

  --ink:       #2A201B;  /* основной текст */
  --ink-soft:  #5A4A40;
  --ink-mute:  #8B7A6E;
  --line:      rgba(42, 32, 27, 0.10);
  --line-soft: rgba(42, 32, 27, 0.06);

  --bg:        var(--beige-50);
  --bg-alt:    var(--rose-50);
  --bg-warm:   var(--beige-100);

  --accent:    var(--rose-500);

  /* Типографика */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* Скругления */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Сетка */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────── Topbar ───────────── */
.topbar {
  background: var(--ink);
  color: rgba(255, 247, 240, 0.85);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; gap: 24px;
}
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { opacity: .82; transition: opacity .2s; }
.topbar__links a:hover { opacity: 1; }
.topbar__lang { display: flex; gap: 2px; align-items: center; }
.topbar__lang button {
  appearance: none; border: 0; background: transparent;
  color: inherit; font: inherit; padding: 4px 10px; border-radius: 999px;
  cursor: pointer; opacity: .55; transition: all .2s;
}
.topbar__lang button.is-active { opacity: 1; background: rgba(255,247,240,.10); }
.topbar__lang button:hover { opacity: 1; }

/* ───────────── Header ───────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 48px; height: 48px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--rose-200), var(--rose-500) 70%);
  position: relative; flex-shrink: 0;
  box-shadow: inset 0 -2px 8px rgba(122, 74, 63, 0.25);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
}
.brand__text { line-height: 1.1; }
.brand__name {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: 0.005em; color: var(--ink);
}
.brand__sub {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 3px;
}
.nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: all .2s;
}
.nav a:hover { background: var(--rose-100); color: var(--rose-700); }
.nav a.is-active { background: var(--rose-200); color: var(--rose-700); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; letter-spacing: 0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.btn--primary {
  background: var(--ink); color: var(--beige-50);
}
.btn--primary:hover { background: var(--rose-700); }
.btn--ghost {
  background: transparent; border-color: var(--line); color: var(--ink);
}
.btn--ghost:hover { background: var(--rose-100); border-color: var(--rose-200); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, var(--rose-100) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 80%, var(--beige-100) 0%, transparent 55%),
    var(--beige-50);
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-700);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(237, 207, 196, 0.45);
  border: 1px solid rgba(176, 122, 107, 0.15);
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose-500);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.02; letter-spacing: -0.012em;
  margin: 22px 0 0; color: var(--ink);
}
.hero h1 em {
  font-style: italic; color: var(--rose-500); font-weight: 400;
}
.hero__lead {
  margin-top: 26px; max-width: 520px;
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
}
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 36px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta-item .num {
  font-family: var(--serif); font-size: 38px; line-height: 1;
  color: var(--rose-700); font-weight: 500;
}
.hero__meta-item .lab {
  margin-top: 6px; font-size: 12.5px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* Hero collage */
.hero__visual {
  position: relative; height: 560px;
}
.hero__card {
  position: absolute; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(122, 74, 63, 0.28),
              0 4px 14px rgba(122, 74, 63, 0.08);
  background: var(--rose-100);
}
.hero__card--main {
  inset: 0 14% 14% 0;
}
.hero__card--sm {
  width: 44%; aspect-ratio: 3/4;
  bottom: 0; right: 0;
  border: 8px solid var(--beige-50);
}
.hero__card--xs {
  width: 28%; aspect-ratio: 1; left: -4%; bottom: 18%;
  border: 8px solid var(--beige-50);
  border-radius: 50%;
}
.hero__card-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(122, 74, 63, .35);
  font-family: var(--serif); font-style: italic; font-size: 14px;
}
/* Placeholder gradients evoking dancers */
.ph-dancer-1 {
  background:
    radial-gradient(ellipse at 50% 30%, var(--rose-200) 0%, var(--rose-300) 40%, var(--rose-500) 100%);
  position: relative;
}
.ph-dancer-1::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(255,247,240,.55) 0%, transparent 30%),
    radial-gradient(ellipse at 50% 75%, transparent 50%, rgba(42,32,27,.18) 100%);
}
.ph-dancer-2 {
  background:
    linear-gradient(135deg, var(--beige-200), var(--rose-200) 60%, var(--rose-300));
}
.ph-dancer-3 {
  background:
    radial-gradient(circle at 40% 40%, var(--rose-50), var(--rose-200));
}

.hero__decor {
  position: absolute; pointer-events: none;
  font-family: var(--serif); font-style: italic;
  color: var(--rose-300); opacity: .6;
}
.hero__decor--1 { bottom: 8%; left: 4%; font-size: 13px; letter-spacing: .3em; }
.hero__decor--2 { top: 6%; right: 6%; transform: rotate(8deg); }

/* Floral SVG flourish */
.flourish { width: 80px; height: auto; opacity: .5; }

/* ───────────── Section base ───────────── */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }

.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 40px; margin-bottom: 56px; flex-wrap: wrap;
}
.sec-eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-500); margin-bottom: 12px;
}
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05;
  margin: 0; max-width: 780px; letter-spacing: -0.005em;
}
.sec-title em { font-style: italic; color: var(--rose-500); font-weight: 400; }
.sec-lead { max-width: 460px; color: var(--ink-soft); font-size: 16px; }

.sec-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rose-700); font-size: 14px; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .25s;
}
.sec-link:hover { gap: 12px; }

/* ───────────── About ───────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -24px rgba(122, 74, 63, 0.25);
}
.about-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.5;
  color: var(--rose-700); margin: 24px 0;
  padding-left: 24px; border-left: 2px solid var(--rose-300);
}
.about-quote-att {
  font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em;
  font-style: normal;
}
.about p {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
  max-width: 560px;
}

/* ───────────── Admissions Cards ───────────── */
.adm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.adm-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--r-md);
  background: var(--beige-50);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
  transition: all .3s ease;
  overflow: hidden;
}
.adm-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose-200);
  box-shadow: 0 18px 40px -16px rgba(122, 74, 63, 0.2);
}
.adm-card__num {
  font-family: var(--serif); font-style: italic;
  font-size: 56px; line-height: 1; color: var(--rose-300);
  font-weight: 400;
}
.adm-card__title {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  line-height: 1.2; color: var(--ink);
}
.adm-card__desc {
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.55;
  flex: 1;
}
.adm-card__meta {
  display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-mute);
  padding-top: 14px; border-top: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
}
.adm-card__meta b { color: var(--ink); font-weight: 600; }
.adm-card__link {
  margin-top: 4px; color: var(--rose-700); font-size: 13.5px;
  font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}

/* ───────────── News ───────────── */
.news-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
}
.news-card { display: flex; flex-direction: column; gap: 16px; }
.news-card__img {
  aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden;
  background: var(--rose-100);
}
.news-card--feat .news-card__img { aspect-ratio: 4/3; }
.news-card__date {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-card__date .tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--rose-100); color: var(--rose-700); margin-left: 8px;
  letter-spacing: 0.04em;
}
.news-card__title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.25; color: var(--ink); letter-spacing: -0.005em;
}
.news-card--feat .news-card__title { font-size: 30px; }
.news-card__desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ───────────── Achievements ───────────── */
.ach-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ach-item {
  padding: 36px 28px; border-right: 1px solid var(--line);
  text-align: left;
}
.ach-item:last-child { border-right: 0; }
.ach-item__num {
  font-family: var(--serif); font-size: 52px; line-height: 1;
  color: var(--rose-700); font-weight: 500;
}
.ach-item__sym {
  font-family: var(--serif); font-style: italic; color: var(--rose-300);
  font-size: 28px; margin-left: 4px;
}
.ach-item__lab {
  margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45;
}

.ach-feat {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.ach-feat__card {
  padding: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--rose-100), var(--beige-100));
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 16px;
}
.ach-feat__year {
  font-family: var(--serif); font-style: italic;
  color: var(--rose-500); font-size: 14px;
  letter-spacing: 0.06em;
}
.ach-feat__title {
  font-family: var(--serif); font-size: 26px; line-height: 1.25;
  color: var(--ink); font-weight: 500;
}
.ach-feat__desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ───────────── Open day banner ───────────── */
.openday {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink); color: var(--beige-50);
  padding: 80px 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center;
}
.openday::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--rose-500), transparent 70%);
  opacity: 0.5;
}
.openday::after {
  content: ""; position: absolute; left: -120px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--rose-300), transparent 65%);
  opacity: 0.18;
}
.openday__content { position: relative; z-index: 1; }
.openday__eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-200); margin-bottom: 16px;
}
.openday h2 {
  font-family: var(--serif); font-size: clamp(34px, 4vw, 52px);
  font-weight: 500; line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.openday h2 em { font-style: italic; color: var(--rose-200); font-weight: 400; }
.openday p { color: rgba(251, 247, 241, 0.75); font-size: 16px; line-height: 1.6; max-width: 480px; }
.openday__cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.openday .btn--primary { background: var(--beige-50); color: var(--ink); }
.openday .btn--primary:hover { background: var(--rose-100); }
.openday .btn--ghost { color: var(--beige-50); border-color: rgba(251, 247, 241, 0.3); }
.openday .btn--ghost:hover { background: rgba(251, 247, 241, 0.08); }

.openday__dates {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.openday__date {
  display: grid; grid-template-columns: 70px 1fr; gap: 18px;
  align-items: center;
  padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(251, 247, 241, 0.06);
  border: 1px solid rgba(251, 247, 241, 0.1);
}
.openday__date-d {
  font-family: var(--serif); font-size: 38px; line-height: 1;
  color: var(--rose-200); font-weight: 500;
}
.openday__date-m {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251, 247, 241, 0.6); margin-top: 4px;
}
.openday__date-info { font-size: 14px; line-height: 1.4; color: rgba(251, 247, 241, 0.9); }
.openday__date-info b { color: var(--beige-50); display: block; margin-bottom: 2px; }

/* ───────────── Programs / Detskie gruppy ───────────── */
.prog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.prog-card {
  padding: 28px; border-radius: var(--r-md);
  background: var(--beige-50); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.prog-card__age {
  font-family: var(--serif); font-style: italic;
  color: var(--rose-500); font-size: 14px;
}
.prog-card__title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.25; color: var(--ink);
}
.prog-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.prog-card li {
  font-size: 14px; color: var(--ink-soft);
  padding-left: 18px; position: relative;
}
.prog-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--rose-300);
}

/* ───────────── Footer ───────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s;
  pointer-events: none;
  z-index: 999;
}
.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--rose-700);
}

.footer {
  background: var(--ink); color: rgba(251, 247, 241, 0.85);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose-200); margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(251, 247, 241, 0.72); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--rose-200); }
.footer__brand { max-width: 320px; }
.footer__about {
  margin-top: 14px; font-size: 13.5px; line-height: 1.6;
  color: rgba(251, 247, 241, 0.6);
}
.footer__bottom {
  padding-top: 28px; border-top: 1px solid rgba(251, 247, 241, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(251, 247, 241, 0.5);
  letter-spacing: 0.02em;
}
.footer__contact {
  display: flex; flex-direction: column; gap: 12px; font-size: 14px;
  color: rgba(251, 247, 241, 0.85);
}
.footer__contact span { color: rgba(251, 247, 241, 0.55); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { height: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--feat { grid-column: span 2; }
  .ach-row { grid-template-columns: repeat(2, 1fr); }
  .ach-item:nth-child(2) { border-right: 0; }
  .ach-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .openday { grid-template-columns: 1fr; padding: 56px 36px; }
  .prog-grid, .adm-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  .news-grid, .prog-grid, .adm-grid, .ach-row, .footer__grid,
  .ach-feat { grid-template-columns: 1fr; }
  .news-card--feat { grid-column: span 1; }
  .ach-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .ach-item:last-child { border-bottom: 0; }
  .hero__meta { gap: 24px; flex-wrap: wrap; }
  .openday { padding: 40px 24px; }
}
