/* =====================================================================
   Дворец культуры «ИСТОК» — дизайн-система
   Фирменный стиль «Дома Культуры Подмосковья».
   Светлая премиум-основа + чередование насыщенных цветных блоков.
   Семантические токены (--fg/--surface/--accent…) переключаются в
   .section--bordo / .section--emerald — компоненты адаптируются сами.
   Шрифт-аналог GEORGE → Montserrat, текст — Inter.
   ===================================================================== */

:root {
  /* ----- Фирменные цвета ----- */
  --bordo:       #731637;   /* основной, Pantone 209C */
  --bordo-deep:  #5a0f2a;
  --bordo-bright:#9a1f45;
  --emerald:     #00323c;   /* Pantone 2217C */
  --emerald-2:   #0a4a52;
  --malinovy:    #c13d5d;   /* Pantone 4073C */
  --rose:        #c28a94;   /* Pantone 5005C */
  --lilac:       #886587;
  --beige:       #d6cbc3;
  --cream:       #efe9e2;
  --ink:         #00142e;

  /* ----- Светлая основа (токены по умолчанию) ----- */
  --page:      #f4f1ea;            /* тёплый off-white фон страницы */
  --bg:        var(--page);
  --fg:        #2a1019;            /* основной текст */
  --fg-muted:  #6c5560;
  --fg-faint:  #9c8893;
  --heading:   #25101a;
  --surface:   #ffffff;            /* карточки/панели */
  --surface-2: #faf6f0;
  --line:      rgba(42,16,25,.12);
  --line-2:    rgba(42,16,25,.22);
  --accent:    #9a1f45;            /* интерактив на светлом (бордо-bright) */
  --accent-2:  #0a4a52;            /* изумруд-акцент */
  --hl:        #b81e4a;            /* акцентное слово в заголовках */
  --on-accent: #ffffff;            /* текст на бордо-заливке */

  --radius:    16px;
  --radius-sm: 11px;
  --radius-xs: 7px;
  --radius-ic: 13px;
  --radius-badge: 8px;
  --shard-h:   16px;
  --lift:      -6px;

  --shadow:    0 24px 60px -28px rgba(58,18,32,.32);
  --shadow-md: 0 18px 44px -24px rgba(58,18,32,.26);
  --shadow-sm: 0 10px 26px -16px rgba(58,18,32,.20);

  --maxw:      1200px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --serif:     "Montserrat", "Inter", "Segoe UI", system-ui, sans-serif;
  --sans:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ----- Цветные секции: переключение токенов ----- */
.section--bordo {
  background: var(--bordo); --bg: var(--bordo);
  --fg: #f4ece9; --fg-muted: rgba(244,236,233,.80); --fg-faint: rgba(244,236,233,.58);
  --heading: #ffffff; --surface: #4c0a22; --surface-2: #5a0f2a;
  --line: rgba(255,255,255,.20); --line-2: rgba(255,255,255,.34);
  --accent: #f6c3cd; --hl: #ffc2cf; --on-accent: var(--bordo);
}
.section--emerald {
  background: var(--emerald); --bg: var(--emerald);
  --fg: #e7efee; --fg-muted: rgba(231,239,238,.80); --fg-faint: rgba(231,239,238,.56);
  --heading: #ffffff; --surface: #0b454e; --surface-2: #0f525b;
  --line: rgba(255,255,255,.16); --line-2: rgba(255,255,255,.30);
  --accent: #7ad6c6; --hl: #f0c4cd; --on-accent: var(--emerald);
}
.section--lilac {
  background: #6e4d6c; --bg: #6e4d6c;
  --fg: #f4eef3; --fg-muted: rgba(244,238,243,.82); --fg-faint: rgba(244,238,243,.58);
  --heading: #ffffff; --surface: #835d81; --surface-2: #906b8e;
  --line: rgba(255,255,255,.18); --line-2: rgba(255,255,255,.32);
  --accent: #ecd8e9; --hl: #ffc2cf; --on-accent: #5a3f59;
}
.section--cream { background: var(--page); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a:focus-visible, .crumbs a:focus-visible, .foot-nav a:focus-visible { border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
[id] { scroll-margin-top: 104px; }
.btn:active { transform: translateY(0) scale(.98); }

body {
  margin: 0; background: var(--page); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  letter-spacing: .002em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body > * { position: relative; z-index: 1; }
#site-header-root { position: relative; z-index: 120; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; color: var(--heading); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 3.8vw, 3.3rem); text-wrap: balance; }
h3 { font-size: 1.5rem; font-weight: 600; }
p  { margin: 0 0 1.3em; }
a  { color: var(--accent); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--hl); }
img { max-width: 100%; display: block; }
strong { color: var(--heading); font-weight: 600; }
.muted { color: var(--fg-muted); }
::selection { background: rgba(193,61,93,.26); color: #fff; }
a[href^="tel:"] { white-space: nowrap; }

/* двухцветный заголовок — приём «АФИША МАРТ» */
.hl { color: var(--hl); }

/* надзаголовок-лейбл */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent); letter-spacing: .15em; text-transform: uppercase;
  font-size: .75rem; font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Иконки ---------- */
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn {
  --bpad: .92em 1.8em;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--serif); font-weight: 600; font-size: .94rem; letter-spacing: .01em;
  padding: var(--bpad); border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .28s var(--ease); position: relative; white-space: nowrap;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
/* первичная — сплошной бордо */
.btn--gold { background: var(--bordo); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--bordo-bright); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* контурная */
.btn--ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
/* малиновая (билеты) */
.btn--wine { background: var(--malinovy); border-color: var(--malinovy); color: #fff; }
.btn--wine:hover { background: #d24a6b; border-color: #d24a6b; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--sm { font-size: .84rem; padding: .62em 1.2em; }
/* первичная кнопка на цветных блоках — кремовая */
.section--bordo .btn--gold, .section--emerald .btn--gold, .section--lilac .btn--gold, .cta .btn--gold,
.site-footer .btn--gold { background: var(--cream); color: var(--bordo); }
.section--bordo .btn--gold:hover, .section--emerald .btn--gold:hover, .section--lilac .btn--gold:hover, .cta .btn--gold:hover { background: #fff; color: var(--bordo); }
/* билетная кнопка на цветных блоках — кремовая (иначе малиновый тонет в бордо) */
.section--bordo .btn--wine, .section--emerald .btn--wine, .section--lilac .btn--wine, .cta .btn--wine { background: var(--cream); border-color: var(--cream); color: var(--bordo); }
.section--bordo .btn--wine:hover, .section--emerald .btn--wine:hover, .section--lilac .btn--wine:hover, .cta .btn--wine:hover { background: #fff; border-color: #fff; color: var(--bordo); }
/* контурные кнопки на цветных блоках — чёткий светлый контур */
.section--bordo .btn--ghost, .section--emerald .btn--ghost, .section--lilac .btn--ghost, .cta .btn--ghost, .site-footer .btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.section--bordo .btn--ghost:hover, .section--emerald .btn--ghost:hover, .section--lilac .btn--ghost:hover, .cta .btn--ghost:hover, .site-footer .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.10); }

/* ---------- Топбар ---------- */
.topbar { background: var(--bordo-deep); color: rgba(244,236,233,.85); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 42px; flex-wrap: wrap; padding: 6px 28px; }
.topbar__links { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__links a { color: rgba(244,236,233,.8); position: relative; letter-spacing: .02em; }
.topbar__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--rose); transition: right .3s var(--ease); }
.topbar__links a:hover { color: #fff; }
.topbar__links a:hover::after { right: 0; }
.topbar__phone { color: rgba(244,236,233,.85); white-space: nowrap; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.topbar__phone .ico { color: var(--rose); width: 15px; height: 15px; }
.topbar__phone a { font-weight: 600; color: #fff; }
.topbar__phone a:hover { color: var(--rose); }

/* ---------- Шапка (светлая) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--heading); }
.brand__logo { height: 48px; width: auto; display: block; }
.brand__mark { width: auto; height: 46px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1; padding-left: 16px; border-left: 1.5px solid var(--line-2); }
.brand__name { font-family: var(--serif); font-size: 1.62rem; font-weight: 800; letter-spacing: .015em; color: var(--bordo); line-height: 1; }
.brand__sub  { font-size: .6rem; color: var(--fg-muted); letter-spacing: .22em; font-weight: 600; text-transform: uppercase; margin-top: 7px; }

/* ---------- Навигация ---------- */
.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.mainnav { padding: 0 13px; max-width: none; margin: 0; }
.mainnav > ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.mainnav a {
  display: flex; align-items: center; gap: 6px;
  color: var(--fg-muted); font-size: .85rem; font-weight: 500; letter-spacing: .005em;
  padding: 14px 11px; white-space: nowrap; transition: color .25s var(--ease);
}
.mainnav > ul > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px;
  background: var(--bordo); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.mainnav > ul > li:hover > a::after { transform: scaleX(1); }
.mainnav a:hover { color: var(--bordo); }
.mainnav .active > a, .mainnav .active-parent > a { color: var(--bordo); font-weight: 600; }
.mainnav > ul > li.active > a::after, .mainnav > ul > li.active-parent > a::after { transform: scaleX(1); }
.caret { width: 9px; height: 9px; opacity: .6; }
.ext { width: 11px; height: 11px; opacity: .55; }
.caret svg, .ext svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* подменю */
.mainnav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  list-style: none; margin: 0; padding: 10px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 50;
}
.mainnav ul ul::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mainnav li:hover > ul, .mainnav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.mainnav ul ul li a { padding: 11px 13px; font-size: .86rem; white-space: normal; border-radius: 8px; color: var(--fg-muted); }
.mainnav ul ul li a:hover { background: var(--surface-2); color: var(--bordo); }
.mainnav ul ul li.active > a { color: var(--bordo); background: rgba(115,22,55,.08); }
.mainnav ul ul ul { top: 0; right: 100%; left: auto; margin: 0; }
.mainnav ul ul ul::before { left: auto; right: -12px; top: 0; bottom: 0; width: 12px; height: auto; }

/* бургер */
.burger { display: none; margin-left: auto; width: 48px; height: 42px; background: transparent;
  border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; padding: 12px 11px; transition: border-color .25s; }
.burger:hover { border-color: var(--bordo); }
.burger span { display: block; height: 2px; background: var(--bordo); border-radius: 2px; transition: .3s var(--ease); }
.burger span + span { margin-top: 6px; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero / Слайдер ---------- */
.hero { position: relative; background: var(--bordo-deep); }
.slider { position: relative; overflow: hidden; }
.slider__track { position: relative; height: clamp(520px, 76vh, 800px); }
.slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.05);
  transition: opacity 1.1s var(--ease), transform 7s linear;
  background-size: cover; background-position: center 22%; pointer-events: none;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; z-index: 2; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(58,9,26,.94) 0%, rgba(58,9,26,.78) 38%, rgba(58,9,26,.30) 66%, rgba(58,9,26,.06) 100%),
    linear-gradient(0deg, rgba(58,9,26,.92) 0%, rgba(58,9,26,.22) 38%, transparent 62%);
}
.slide__inner {
  position: relative; z-index: 3; height: 100%;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px clamp(78px, 11vh, 132px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
}
.slide__tag { color: var(--beige); letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; font-weight: 700; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 12px; }
.slide__tag::before { content: ""; width: 34px; height: 2px; background: var(--malinovy); }
.slide__title { font-size: clamp(2.7rem, 6vw, 5.2rem); margin: 0 0 18px; max-width: 16ch; line-height: 1.06; letter-spacing: -.015em; color: #fff; }
.slide__meta { color: rgba(255,255,255,.92); font-size: 1.08rem; line-height: 1.5; margin: 0 0 32px; max-width: 42ch; text-wrap: pretty; text-shadow: 0 1px 22px rgba(58,9,26,.4); }
.slide__btns { display: flex; gap: 14px; flex-wrap: wrap; }
/* кнопки в hero — на тёмном фото, светлая тема (иначе контурная сливается) */
.slide__btns .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.slide__btns .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.slide__btns .btn--gold { background: var(--cream); color: var(--bordo); }
.slide__btns .btn--gold:hover { background: #fff; color: var(--bordo); }

.slider__arrows { position: absolute; z-index: 7; bottom: 58px; right: max(28px, calc((100vw - var(--maxw))/2 + 28px)); display: flex; gap: 12px; }
.slider__prev, .slider__next {
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.45); color: #fff; transition: .3s var(--ease);
  display: grid; place-items: center;
}
.slider__prev svg, .slider__next svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.slider__prev:hover, .slider__next:hover { background: #fff; color: var(--bordo); border-color: #fff; }
.slider__prev:focus-visible, .slider__next:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.slider__dots { position: absolute; z-index: 7; bottom: 58px; left: max(28px, calc((100vw - var(--maxw))/2 + 28px)); display: flex; gap: 10px; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.45); transition: .35s var(--ease); }
.dot.active { background: #fff; width: 30px; border-radius: 6px; }
.dot:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
/* осколочная лента по низу hero */
.hero .shards { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 22px; }

/* ---------- Секции ---------- */
.section { padding: clamp(68px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(44px, 5vw, 64px) 0; }
/* цветные блоки: осколочная лента сверху и снизу — приём «цветной блок + осколки» */
.section--bordo, .section--emerald { position: relative; }
.section--bordo::before, .section--emerald::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--shard-h);
  background: url("../img/shards.svg") repeat-x; background-size: auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(34px, 4vw, 56px); flex-wrap: wrap; position: relative; padding-bottom: clamp(20px, 2.4vw, 30px); }
.section__head::after { content:""; position:absolute; left:0; bottom:0; width:clamp(100px,15vw,170px); height:3px; background: var(--malinovy); border-radius: 2px; }
.section__head h2 { margin: 0; }
.section__head .eyebrow { margin-bottom: 16px; }
/* на изумрудных/лиловых блоках линия заголовка — светлый акцент, не малиновый */
.section--emerald .section__head::after, .section--lilac .section__head::after { background: var(--accent); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .slide { transition: opacity .5s; } }

/* ---------- Инфо-баннеры ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .35s var(--ease); line-height: 0; position: relative; box-shadow: var(--shadow-sm); }
.banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); filter: saturate(.96) contrast(.98); }
.banner:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.banner:hover img { transform: scale(1.03); }
@media (max-width: 680px){ .banners { grid-template-columns: 1fr; } }

/* ---------- Быстрые действия ---------- */
.quickrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px,1fr)); gap: 18px; }
.quickcard { display: flex; align-items: center; gap: 16px; background: var(--surface); padding: 24px 24px; color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); transition: .3s var(--ease); position: relative; box-shadow: var(--shadow-sm); }
.quickcard:hover, .quickcard:focus-visible { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); border-color: var(--bordo); }
.quickcard__ic { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--bordo); border-radius: var(--radius-ic); transition: .3s var(--ease); }
.quickcard__ic svg { width: 23px; height: 23px; }
.quickcard__t { display: flex; flex-direction: column; gap: 2px; }
.quickcard__t b { color: var(--heading); font-family: var(--serif); font-size: 1.22rem; font-weight: 700; line-height: 1.12; }
.quickcard__t small { color: var(--fg-muted); font-size: .84rem; }
.quickcard__arr { margin-left: auto; color: var(--bordo); width: 18px; height: 18px; opacity: .45; transform: none; transition: .3s var(--ease); }
.quickcard:hover .quickcard__arr, .quickcard:focus-visible .quickcard__arr { opacity: 1; transform: translateX(3px); }
.quickrow--troupes .quickcard__ic { background: var(--emerald); }
.section--lilac .quickcard__ic, .section--lilac .quickrow--troupes .quickcard__ic { background: var(--bordo); }
.section--lilac .quickcard__arr { color: var(--cream); }
.section--lilac .studio__ic, .section--lilac .fcat__ic { background: var(--bordo); }
.section--lilac .studio::before { background: var(--cream); }
/* на изумрудных блоках иконочные плашки — бордо (иначе изумруд тонет в изумруде) */
.section--emerald .studio__ic, .section--emerald .fcat__ic, .section--emerald .quickcard__ic { background: var(--bordo); }
.section--emerald .studio::before { background: var(--cream); }

/* ---------- Карточки афиш ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-md);
}
.card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow); border-color: var(--bordo-bright); }
.section--bordo .card { box-shadow: 0 22px 50px -26px rgba(0,0,0,.6); }
.section--bordo .card:hover { box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.card__poster { aspect-ratio: 3/4; background-size: cover; background-position: center top; position: relative; }
.card__badge { position: absolute; z-index: 2; top: 13px; left: 13px; background: var(--bordo); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--radius-badge); line-height: 1; }
.card__badge--off { background: #5b3340; }
.card__age { position: absolute; z-index: 2; top: 13px; right: 13px; background: var(--emerald); color: #fff; font-size: .66rem; font-weight: 700; padding: 6px 11px; border-radius: var(--radius-badge); line-height: 1; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; color: var(--heading); margin: 0; line-height: 1.22; letter-spacing: -.005em; }
.card__meta { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.card__meta .ico { width: 14px; height: 14px; }
.card__desc { color: var(--fg-muted); font-size: .94rem; margin: 2px 0 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; row-gap: 10px; }
.card__foot .btn { flex: 0 0 auto; }
.card__price { color: var(--heading); font-weight: 600; font-size: .88rem; line-height: 1.2; }
.card--cancelled { opacity: .8; }
.card--cancelled:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.card--cancelled .card__poster { filter: grayscale(.8) brightness(.92); }
.card--cancelled .card__title { color: var(--fg-muted); }
.card--cancelled .card__meta, .card--cancelled .card__price { color: var(--fg-faint); }
.card--cancelled .card__price { display: none; }
.card--cancelled .card__foot .btn { flex: 1; }

/* ---------- Каталог кружков ---------- */
.studios { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px,1fr)); gap: 22px; }
.studio {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); position: relative; overflow: hidden;
}
.studio::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bordo); opacity: 0; transition: opacity .35s var(--ease); }
.studio:hover { transform: translateY(var(--lift)); border-color: var(--bordo); box-shadow: var(--shadow-md); }
.studio:hover::before { opacity: 1; }
.studio__top { display: flex; align-items: flex-start; gap: 14px; }
.studio__ic { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: var(--emerald); border-radius: var(--radius-ic); }
.studio__ic svg { width: 25px; height: 25px; }
.studio__name { font-family: var(--serif); font-size: 1.24rem; font-weight: 700; color: var(--heading); margin: 0; line-height: 1.18; }
.studio__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-muted); }
.tag--free { color: #1d7a5e; border-color: rgba(29,122,94,.4); background: rgba(29,122,94,.08); }
.tag--paid { color: var(--bordo-bright); border-color: rgba(154,31,69,.35); background: rgba(154,31,69,.07); }
.studio__desc { color: var(--fg-muted); font-size: .94rem; margin: 0; line-height: 1.55; flex: 1; }
.studio__foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.studio__row { display: flex; align-items: center; gap: 9px; color: var(--fg); flex-wrap: wrap; }
.studio__row .ico { width: 15px; height: 15px; color: var(--bordo); flex: none; }
.studio__row a { color: var(--fg); padding: 4px 0; font-weight: 600; }
.studio__row a:hover { color: var(--bordo); }

/* ---------- Именитые коллективы ---------- */
.troupe { display: grid; grid-template-columns: 66px 1fr; gap: 22px; align-items: start; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.troupe + .troupe { margin-top: 18px; }
.troupe:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.troupe__badge { width: 66px; height: 66px; display: grid; place-items: center; border-radius: var(--radius-ic); color: #fff; background: var(--bordo); box-shadow: var(--shadow-sm); }
.troupe__badge svg { width: 32px; height: 32px; }
.troupe__status { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.troupe__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--heading); margin: 0 0 4px; }
.troupe__lead { color: var(--fg-muted); font-size: .92rem; margin: 0 0 10px; }
.troupe__desc { color: var(--fg); font-size: 1rem; margin: 0; line-height: 1.6; }
@media (max-width: 560px){ .troupe { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Таймлайн ---------- */
.timeline { position: relative; max-width: 820px; margin: 0; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--bordo); border-radius: 2px; opacity: .35; }
.tl { position: relative; padding-bottom: 40px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -36px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--bordo); box-shadow: 0 0 0 4px var(--page); }
.tl__year { font-family: var(--serif); font-size: 1.7rem; font-weight: 800; color: var(--bordo); line-height: 1; margin-bottom: 8px; font-variant-numeric: lining-nums tabular-nums; }
.tl__text { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; margin: 0; }
.tl__text strong { color: var(--fg); }

/* ---------- Полоса цифр ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: clamp(28px, 4vw, 56px); }
.stat { text-align: center; position: relative; padding: 8px; }
.stat::before { content:""; display:block; width: 42px; height: 4px; border-radius: 2px; margin: 0 auto 20px; background: var(--malinovy); }
.stat:not(:last-child)::after { content:""; position:absolute; right: calc(-1 * clamp(14px,2vw,28px)); top: 16%; bottom: 16%; width: 1px; background: var(--line-2); }
.stat__num { font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { color: var(--fg-muted); font-size: .94rem; margin-top: 12px; max-width: 18ch; margin-inline: auto; line-height: 1.4; min-height: 2.8em; }
@media (max-width: 600px){ .stat:not(:last-child)::after { display: none; } .stat__label { min-height: 0; } }

/* ---------- Шапка внутренних страниц (бордо-блок) ---------- */
.page-hero {
  background: linear-gradient(170deg, var(--bordo-bright) 0%, var(--bordo) 44%, var(--bordo-deep) 100%);
  --fg:#f4ece9; --fg-muted:rgba(244,236,233,.8); --heading:#fff; --accent:#f6c3cd; --hl:#ffc2cf;
  color: var(--fg);
  padding: clamp(54px, 7vw, 96px) 0 calc(clamp(40px, 4vw, 60px) + var(--shard-h));
  position: relative; overflow: hidden;
}
.page-hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:var(--shard-h); background: url("../img/shards.svg") repeat-x; background-size: auto 100%; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
/* слабая фирменная фактура осколков */
.page-hero::before { content:""; position:absolute; inset:0; z-index:0; opacity:.12; pointer-events:none;
  background: url("../img/shards.svg") repeat; background-size: 200px auto; transform: rotate(-8deg) scale(1.5); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .crumbs { color: rgba(244,236,233,.7); font-size: .82rem; margin-bottom: 18px; letter-spacing: .03em; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-hero .crumbs a { color: rgba(244,236,233,.9); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs .sep { opacity: .5; }
.page-hero h1 { margin: 0; color: #fff; max-width: 20ch; }
.page-hero .crumbs { margin-bottom: 22px; }
.page-hero .lead { color: rgba(244,236,233,.85); max-width: 52ch; margin: 20px 0 0; font-size: 1.08rem; line-height: 1.55; }

/* ---------- Контент ---------- */
.prose { max-width: 64ch; font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose p { line-height: 1.7; margin: 0 0 1.35em; color: var(--fg); }
/* лид-абзац + буквица — редакционный премиум-приём */
.prose > p:first-of-type { font-size: 1.16rem; color: var(--heading); line-height: 1.62; }
.prose > p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.2rem; font-weight: 800; color: var(--bordo); float: left; line-height: .82; margin: 6px 12px 0 0; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .5em; color: var(--bordo); font-size: 1.4rem; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; background: var(--malinovy); transform: rotate(45deg); }
.prose a, .foot-col p a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .foot-col p a:hover { text-decoration-color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.layout > aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 920px){ .layout { grid-template-columns: 1fr; gap: 40px; } .layout > aside { position: static; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 22px; }
.layout > aside .panel + .panel { margin-top: 0; }
.panel h3 { margin: 0 0 16px; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--bordo); font-weight: 700; }
.panel--contact { background: var(--bordo); color: #fff; border-color: var(--bordo); }
.panel--contact h3 { color: var(--beige); }
.panel--contact p { color: rgba(255,255,255,.9); }
.panel--contact a { color: #fff; }

/* инфо-плитки */
.infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(252px,1fr)); gap: 20px; }
.infocard { background: var(--surface); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .3s var(--ease); }
.infocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.infocard h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bordo); margin: 0 0 12px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.infocard h4 .ico { width: 16px; height: 16px; flex: none; }
.infocard p { margin: 0 0 5px; font-size: .98rem; color: var(--fg); }

/* характеристики */
.specs { list-style: none; padding: 0; margin: 0; }
.specs li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: none; }
.specs li span:first-child { color: var(--fg-muted); font-size: .94rem; }
.specs li span:last-child { color: var(--heading); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* баннер-лента */
.ribbon { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; background: var(--emerald); min-height: clamp(150px, 20vw, 210px); display: flex; box-shadow: var(--shadow-sm); }
.ribbon img { display: none; }
.ribbon::before { content:""; position:absolute; left:0; right:0; bottom:0; height:var(--shard-h); z-index:2; background: url("../img/shards.svg") repeat-x; background-size: auto 100%; pointer-events:none; }
.ribbon__cap { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: clamp(26px,4vw,44px) clamp(24px,5vw,54px); }
.ribbon__cap .eyebrow { margin: 0 0 2px; color: var(--beige); }
.ribbon__cap b { font-family: var(--serif); font-size: clamp(1.5rem,2.8vw,2.2rem); color: #fff; font-weight: 700; line-height: 1.15; max-width: 30ch; text-wrap: balance; }

/* награды */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; }
.award { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); border-top: 4px solid var(--bordo); }
.award:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.award__status { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.award h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--heading); margin: 4px 0 12px; }
.award ul { list-style: none; padding: 0; margin: 0; }
.award li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--fg-muted); font-size: .94rem; line-height: 1.5; }
.award li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; background: var(--malinovy); transform: rotate(45deg); }
.award li strong { color: var(--fg); }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.gallery a { display:block; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--line); transition: .4s var(--ease); box-shadow: var(--shadow-sm); }
.gallery a:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }

/* ссылки-кнопки */
.linkbtns { display: flex; flex-direction: column; gap: 10px; }
.linkbtns a { display:flex; align-items:center; gap:14px; background: var(--surface); padding: 14px 16px; color: var(--fg); font-weight:600; font-size: .96rem; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: .3s var(--ease); }
.linkbtns a:hover { border-color: var(--line); border-left-color: var(--bordo); color: var(--bordo); transform: translateX(4px); box-shadow: var(--shadow-md); }
.linkbtns a > .ico:first-child { color: var(--bordo); width: 38px; height: 38px; flex: none; padding: 9px; background: rgba(115,22,55,.08); border-radius: var(--radius-xs); }
.linkbtns a .arr { margin-left: auto; color: var(--fg-faint); width: 16px; height: 16px; }

/* ---------- Форма ---------- */
.form { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 44px); box-shadow: var(--shadow-sm); }
.form label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); margin-bottom: 9px; font-weight: 700; }
.form input, .form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--fg);
  border-radius: var(--radius-sm); padding: 14px 16px; font: inherit; font-size: .98rem; transition: .25s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: var(--fg-faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--bordo); box-shadow: 0 0 0 3px rgba(115,22,55,.12); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--bordo);
  --fg:#f4ece9; --fg-muted:rgba(244,236,233,.85); --heading:#fff; --hl: #ffc2cf;
  border-radius: var(--radius); padding: clamp(48px, 6vw, 84px) clamp(32px,6vw,72px) calc(clamp(48px,6vw,84px) + var(--shard-h));
  text-align: center;
}
.cta::after { content:""; position:absolute; left:0; right:0; bottom:0; height:var(--shard-h); background: url("../img/shards.svg") repeat-x; background-size: auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cta::before { content:""; position:absolute; inset:0; opacity:.07; pointer-events:none; background: url("../img/shards.svg") repeat; background-size: 200px auto; transform: rotate(-8deg) scale(1.5); }
.cta > * { position: relative; }
.cta .eyebrow { justify-content: center; color: var(--beige); }
.cta h2 { margin: 0 0 14px; color: #fff; }
.cta p { color: rgba(244,236,233,.9); max-width: 56ch; margin: 0 auto 28px; }

/* ---------- Форум ---------- */
.forum-cats { display: grid; gap: 16px; }
.fcat { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: var(--surface); padding: 22px 24px; color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); transition: .3s var(--ease); box-shadow: var(--shadow-sm); }
.fcat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--bordo); }
.fcat__ic { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: var(--emerald); border-radius: var(--radius-ic); }
.fcat__ic svg { width: 25px; height: 25px; }
.fcat__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fcat__name { font-family: var(--serif); font-size: 1.24rem; font-weight: 700; color: var(--heading); margin: 0; line-height: 1.18; }
.fcat__desc { color: var(--fg-muted); font-size: .92rem; margin: 0; }
.fcat__stat { text-align: right; color: var(--fg-muted); font-size: .84rem; white-space: nowrap; }
.fcat__stat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--bordo); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 2px; }
@media (max-width: 560px){ .fcat { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; } .fcat__ic { width: 44px; height: 44px; } .fcat__stat { grid-column: 2; text-align: left; } }

.topics { display: flex; flex-direction: column; gap: 12px; }
.topic { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .3s var(--ease); cursor: pointer; }
.topic:hover { border-color: var(--bordo); box-shadow: var(--shadow-sm); }
.topic__main { min-width: 0; }
.topic__title { font-family: var(--serif); font-size: 1.16rem; font-weight: 700; color: var(--heading); margin: 0 0 4px; line-height: 1.2; }
.topic__meta { color: var(--fg-faint); font-size: .82rem; display: flex; gap: 14px; flex-wrap: wrap; }
.topic__meta b { color: var(--fg-muted); font-weight: 600; }
.topic__count { text-align: center; color: var(--fg-muted); font-size: .82rem; white-space: nowrap; }
.topic__count b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--bordo); font-weight: 800; line-height: 1; }
.topic__pin { color: var(--bordo); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; vertical-align: middle; }
@media (max-width: 560px){ .topic { grid-template-columns: 1fr; gap: 8px; } .topic__count { text-align: left; display: flex; gap: 6px; align-items: baseline; } .topic__count b { display: inline; } }

.posts { display: flex; flex-direction: column; gap: 16px; }
.post { display: grid; grid-template-columns: 52px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.post__avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--bordo); }
.post__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.post__author { font-weight: 600; color: var(--heading); }
.post__date { color: var(--fg-faint); font-size: .8rem; }
.post__op { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bordo); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.post__body { color: var(--fg); font-size: 1rem; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }

.forum-reply { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.forum-reply h3 { margin: 0 0 16px; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bordo); }
.forum-note { color: var(--fg-faint); font-size: .82rem; margin-top: 12px; }
.forum-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.forum-empty { text-align: center; color: var(--fg-muted); padding: 40px 20px; }

/* ---------- Подвал (изумрудный блок) ---------- */
.site-footer {
  background: var(--emerald); color: rgba(231,239,238,.85);
  --fg: rgba(231,239,238,.9); --heading:#fff; margin-top: clamp(60px, 8vw, 100px); position: relative;
}
.site-footer .shards { position: relative; z-index: 2; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 60px 0 44px; }
.foot-logo { width: min(360px, 100%); height: auto; margin-bottom: 18px; }
.foot-brand { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin-bottom: 16px; font-weight: 800; }
.foot-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--beige); margin-bottom: 18px; font-weight: 700; }
.foot-col p { margin: 0 0 8px; color: rgba(244,236,233,.88); font-size: .94rem; }
.foot-col p.muted { color: rgba(244,236,233,.62); }
.foot-col p a { color: #fff; }
.foot-nav { display: flex; flex-direction: column; gap: 11px; }
.foot-nav a { color: rgba(244,236,233,.82); font-size: .94rem; width: fit-content; }
.foot-nav a:hover { color: #fff; }
.foot-social { margin-top: 16px; }
.site-footer__bottom { position: relative; padding: 22px 0; color: rgba(244,236,233,.66); font-size: .82rem; text-align: center; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Осколочная лента (утилита) ---------- */
.shards { height: var(--shard-h); background: url("../img/shards.svg") repeat-x; background-size: auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.shards--tall { height: 24px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px){ .mainnav a { padding: 14px 11px; font-size: .84rem; } }
@media (max-width: 1024px){ .mainnav a { padding: 13px 9px; font-size: .8rem; } }
@media (max-width: 960px) {
  .burger { display: block; }
  .navbar { background: none; border: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(42,12,22,.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); z-index: 150; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .mainnav {
    display: block; padding: 0; max-width: none;
    position: fixed; top: 0; right: 0; width: min(88vw, 380px); height: 100dvh;
    background: #fff; border-left: 1px solid var(--line);
    padding: 100px 22px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow); z-index: 200;
  }
  .mainnav.open { transform: translateX(0); }
  .mainnav > ul { flex-direction: column; gap: 1px; }
  .mainnav > ul > li > a::after { display: none; }
  .mainnav a { padding: 15px 14px; font-size: 1rem; border-radius: 10px; }
  .mainnav a:hover { background: var(--surface-2); }
  .mainnav ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--surface-2); margin: 1px 0 4px 14px;
    min-width: 0; max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .4s var(--ease), padding .4s var(--ease);
  }
  .mainnav li.expanded > ul { max-height: 640px; padding: 6px 8px; }
  .mainnav ul ul ul { left: auto; margin-left: 14px; }
  .mainnav ul ul::before, .mainnav ul ul ul::before { display: none; }
  .slide::after { background: linear-gradient(0deg, rgba(58,9,26,.95) 0%, rgba(58,9,26,.55) 50%, rgba(58,9,26,.25) 100%); }
  .slide__title { max-width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .topbar__links { display: none; }
  .topbar__inner { min-height: 36px; padding: 5px 18px; justify-content: center; }
  .topbar__phone { margin-left: 0; }
  [id] { scroll-margin-top: 92px; }
}
@media (max-width: 560px){
  body { font-size: 16px; line-height: 1.55; }
  .brand__logo { height: 40px; }
  .shards, .hero .shards { height: 13px; }
  .slider__track { height: clamp(460px, 80vh, 620px); }
  .slide__title { font-size: clamp(2.1rem, 8vw, 2.8rem); margin-bottom: 14px; }
  .slide__meta { font-size: 1rem; margin-bottom: 24px; }
  .slider__arrows { display: none; }
  .slider__dots { bottom: 20px; left: 18px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .studios { grid-template-columns: 1fr; gap: 16px; }
  .stats { gap: 24px; }
  .section { padding: clamp(48px, 9vw, 70px) 0; }
  .section--tight { padding: 34px 0; }
  .quickcard { padding: 18px; }
}
@media (max-width: 400px){ h2 { font-size: 1.8rem; } .section__head { gap: 16px; } }
@media (max-width: 520px){
  .container, .topbar__inner, .site-header__inner { padding-left: 18px; padding-right: 18px; }
  .slide__inner { padding: 0 18px; }
}
@media (hover: none) { .quickcard__arr { opacity: 1; transform: none; } }

/* ---------- Упрочнение вёрстки: ничто не распирает блоки ---------- */
/* grid/flex-элементы по умолчанию min-width:auto — длинный контент (email, длинное
   слово, телефон) выдавливает ширину и «съезжает». Сбрасываем в 0 + перенос. */
.card, .studio, .quickcard, .troupe, .fcat, .topic, .post, .award, .infocard,
.quickcard__t, .card__body, .studio__top, .topic__main, .troupe > div, .post > div { min-width: 0; }
.card__title, .card__desc, .card__meta, .studio__name, .studio__desc, .troupe__name, .troupe__lead,
.troupe__desc, .post__body, .topic__title, .topic__meta, .fcat__name, .fcat__desc, .award h3, .award li,
.quickcard__t b, .quickcard__t small, .infocard p, .prose p, .specs li span { overflow-wrap: break-word; }
.studio__row { min-width: 0; }
.studio__row a { overflow-wrap: anywhere; }
@media (max-width: 560px){
  .banners { gap: 16px; }
  .infogrid { grid-template-columns: 1fr; gap: 14px; }
  .awards { grid-template-columns: 1fr; gap: 16px; }
  /* осколочный паттерн на мелких экранах не «дёргает» вёрстку */
  .ribbon__cap b { max-width: 100%; }
}

/* ---------- Скроллбар ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 8px; border: 3px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--bordo); }

/* ---------- Календарь событий (calendar.html) ---------- */
.cal-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title { flex: 1; min-width: 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.cal-title b { color: var(--bordo); font-weight: 800; }
.cal-nav { width: 38px; height: 38px; flex: none; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--bordo); }
.cal-nav:hover { border-color: var(--bordo); background: #fff; }
.cal-nav svg { width: 20px; height: 20px; }
.cal-today { flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wds { margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); padding: 4px 0; }
.cal-wd--we { color: var(--bordo); }
.cal-cell { position: relative; aspect-ratio: 1 / 1; min-height: 40px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .95rem; color: var(--fg); background: var(--surface-2); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, background .15s; }
.cal-cell--empty { background: transparent; }
.cal-cell.has-ev { cursor: pointer; background: #fff; border-color: var(--line-2); font-weight: 700; color: var(--heading); }
.cal-cell.has-ev:hover { border-color: var(--bordo); box-shadow: 0 2px 10px -2px rgba(115,22,55,.28); }
.cal-cell.has-ev:focus-visible { outline: 2px solid var(--bordo); outline-offset: 2px; }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--emerald); }
.cal-cell.is-sel { background: var(--bordo); color: #fff; border-color: var(--bordo); }
.cal-cell.is-sel.is-today { box-shadow: inset 0 0 0 2px #fff; }
.cal-num { line-height: 1; }
.cal-dot { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bordo); color: #fff; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cal-cell.has-ev .cal-dot:empty { width: 6px; min-width: 6px; height: 6px; padding: 0; }
.cal-cell.is-sel .cal-dot { background: #fff; color: var(--bordo); }
.cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .78rem; color: var(--fg-muted); }
.cal-lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-lg--ev { background: #fff; border: 1px solid var(--line-2); position: relative; }
.cal-lg--ev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 999px; background: var(--bordo); transform: translate(-50%,-50%); }
.cal-lg--today { background: transparent; box-shadow: inset 0 0 0 2px var(--emerald); }
.cal-list { min-width: 0; }
.cal-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-list-head h2 { margin: 0; font-size: 1.2rem; color: var(--heading); }
.cal-empty { color: var(--fg-muted); padding: 16px 0; }
.cal-und-title { font-size: 1.4rem; margin: 0 0 4px; }
@media (max-width: 820px) {
  .cal-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cal { max-width: 460px; }
}
@media (max-width: 560px) {
  .cal-cell { min-height: 36px; font-size: .88rem; border-radius: 8px; }
  .cal-grid { gap: 3px; }
  .cal-title { font-size: 1.05rem; }
}

/* ---------- Часто задаваемые вопросы (FAQ-аккордеон) ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.faq__item[open] { border-color: var(--bordo); box-shadow: var(--shadow-sm); }
.faq__q { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px; font-family: var(--serif); font-weight: 700; font-size: 1.06rem; color: var(--heading); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--bordo); }
.faq__q:focus-visible { outline: 2px solid var(--bordo); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq__ic { flex: none; width: 22px; height: 22px; color: var(--bordo); display: grid; place-items: center; transition: transform .22s ease; }
.faq__ic svg { width: 20px; height: 20px; }
.faq__item[open] .faq__ic { transform: rotate(180deg); }
.faq__a { padding: 0 22px 18px; color: var(--fg-muted); line-height: 1.62; }
.faq__a p { margin: 0 0 .6em; } .faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--bordo); font-weight: 600; }
@media (max-width: 560px) { .faq__q { padding: 15px 16px; font-size: 1rem; } .faq__a { padding: 0 16px 16px; } }
