/* ==========================================================================
   ArtOrehova — студия изобразительного искусства
   Дизайн-система и стили страниц
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Токены
   ------------------------------------------------------------------------- */
:root {
  /* Фирменные акценты */
  --orange: #F07E05;
  --orange-600: #DE6F00;
  --orange-700: #A6520A;     /* текст на светлом: контраст > 5:1 */
  --orange-100: #FFE3C7;
  --orange-50:  #FFF2E4;
  /* оранжевая заливка под белый текст: тот же фирменный цвет, чуть глубже,
     чтобы надпись читалась (белый на #F07E05 — всего 2.7:1) */
  --orange-fill: linear-gradient(135deg, #EC7810 0%, #D6640C 55%, #C4540A 100%);
  --orange-fill-hover: linear-gradient(135deg, #F28620 0%, #DD6D10 55%, #CB5B0C 100%);
  --orange-text-shadow: 0 1px 1px rgba(110, 45, 0, .3);

  --violet: #735297;
  --violet-600: #634585;
  --violet-700: #523873;
  --violet-100: #E7DDF3;
  --violet-50:  #F4EEFA;

  /* Пастель */
  --peach:    #FDE6D3;
  --pink:     #FADDE3;
  --lavender: #ECE3F7;
  --sage:     #E1EEDB;
  --butter:   #FFF0C4;

  /* Нейтральные (тёплые) */
  --bg:        #FFFAF4;
  --bg-soft:   #FBF4EC;
  --surface:   #FFFFFF;
  --ink:       #2B2135;      /* глубокий сливово-чернильный */
  --ink-2:     #5B4F66;
  --ink-3:     #8C8195;
  --line:      #EFE4D8;
  --line-2:    #E6D9CB;

  /* Категории направлений */
  --cat-painting: #FDE3CF;   --cat-painting-ink: #D9792B;
  --cat-graphics: #EAE1F6;   --cat-graphics-ink: #8562AC;
  --cat-sculpture: #DDEBD7;  --cat-sculpture-ink: #6A9461;
  --cat-kids: #FFEEBF;       --cat-kids-ink: #D7A21E;
  --cat-drawing: var(--cat-graphics);    --cat-drawing-ink: var(--cat-graphics-ink);
  --cat-ceramics: var(--cat-sculpture);  --cat-ceramics-ink: var(--cat-sculpture-ink);
  --cat-therapy: #FADDE3;    --cat-therapy-ink: #C0587A;

  /* Формы */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 30px;
  --r-xl: 44px;
  --r-pill: 999px;

  /* Тени — тёплые, с фиолетовым подтоном */
  --shadow-xs: 0 1px 2px rgba(58, 34, 74, .05);
  --shadow-sm: 0 1px 2px rgba(58, 34, 74, .04), 0 6px 18px -6px rgba(58, 34, 74, .08);
  --shadow-md: 0 2px 6px rgba(58, 34, 74, .05), 0 18px 38px -14px rgba(58, 34, 74, .22);
  --shadow-lg: 0 30px 60px -22px rgba(58, 34, 74, .35);

  /* Типографика */
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .25s;

  /* Сетка */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. База
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--violet); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--violet-700); }

button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--orange-100); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(240, 126, 5, .55);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -------------------------------------------------------------------------
   3. Типографика
   ------------------------------------------------------------------------- */
.hero__title,
.h1, .h2, .h3,
.cta__title {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.hero__title {
  font-size: clamp(2.9rem, 1.4rem + 5.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__title em,
.h1 em, .h2 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--orange-600) 0%, #C9608A 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.4rem);
  line-height: 1.02;
}
.h1--xl { font-size: clamp(3rem, 1.6rem + 5vw, 5.4rem); }

.h2 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem);
  line-height: 1.06;
}

.h3 {
  font-size: clamp(1.5rem, 1.3rem + .6vw, 1.8rem);
  line-height: 1.15;
  font-weight: 700;
}

.lead {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
}

p { color: var(--ink-2); }
small { font-size: .84rem; }

/* -------------------------------------------------------------------------
   4. Навигация
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 244, .78);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 250, 244, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(58, 34, 74, .35);
}

.nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border-radius: var(--r-sm);
}
.brand:hover { color: var(--ink); }
.brand__logo {
  display: block;
  width: auto;
  height: 46px;
  transition: transform .35s var(--ease);
  transform-origin: 30% 60%;
}
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.03); }
.brand__sub {
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(239, 228, 216, .9);
  box-shadow: var(--shadow-xs);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.05rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
/* hover — мягкая «пилюля» */
.nav__link:hover {
  background: var(--violet-50);
  color: var(--violet-700);
}
/* активный пункт — насыщенная «пилюля» */
.nav__link.is-active {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(115, 82, 151, .7);
}
.nav__link.is-active:hover { background: var(--violet-600); color: #fff; }

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Переключатель языка */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.lang:hover { border-color: var(--violet-100); background: var(--violet-50); }
.lang:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(115, 82, 151, .15); }
.lang__icon {
  position: absolute;
  left: 12px;
  width: 18px; height: 18px;
  color: var(--violet);
  pointer-events: none;
}
.lang__select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23735297' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: .5rem 2rem .5rem 2.3rem;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .08em;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r-pill);
}
.lang__select:focus-visible { outline: none; }
.lang__select option { font-weight: 600; color: var(--ink); background: #fff; }

/* Гамбургер */
.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.burger:hover { background: var(--violet-50); border-color: var(--violet-100); }
.burger__line {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), top var(--t) var(--ease);
}
.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 21px; }
.burger__line:nth-child(3) { top: 27px; }
.menu-open .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger__line:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-open .burger__line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   5. Каркас страницы
   ------------------------------------------------------------------------- */
.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.site-main:focus { outline: none; }

.page { flex: 1 0 auto; }
.page.is-entering { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--flush-top { padding-top: 0; }
.section--soft { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.section--band { padding-block: clamp(24px, 3vw, 40px); }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Шапки внутренних страниц */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.page-head__inner {
  position: relative;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.page-head__inner .lead { max-width: 640px; }

.page-head__decor, .hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .8;
}
.page-head .blob--1 { width: 420px; height: 420px; left: -120px; top: -160px; background: var(--peach); }
.page-head .blob--2 { width: 460px; height: 460px; right: -140px; top: -120px; background: var(--lavender); }
.page-head--about .blob--1 { background: var(--butter); }

/* Reveal-анимация (только при включённом JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   6. Компоненты
   ------------------------------------------------------------------------- */

/* 6.1 Бейдж */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .42rem .95rem;
  border-radius: var(--r-pill);
  background: var(--violet-50);
  color: var(--violet-700);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--violet { background: var(--violet-50); color: var(--violet-700); box-shadow: inset 0 0 0 1px var(--violet-100); }
.badge--orange { background: var(--orange-50); color: var(--orange-700); box-shadow: inset 0 0 0 1px var(--orange-100); }
.badge--sage   { background: #E8F2E3; color: #4C6E44; box-shadow: inset 0 0 0 1px #D4E5CC; }
.badge--butter { background: #FFF4D2; color: #8A6410; box-shadow: inset 0 0 0 1px #FBE6A6; }
.badge--pink   { background: #FCE6EB; color: #9A3F5B; box-shadow: inset 0 0 0 1px #F6CDD8; }
.badge--solid  { background: var(--orange-fill); color: #fff; text-shadow: var(--orange-text-shadow); }
.badge--glass {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: normal;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 126, 5, .18);
  animation: dot 2.4s ease-in-out infinite;
}
@keyframes dot {
  50% { box-shadow: 0 0 0 7px rgba(240, 126, 5, .06); }
}

/* 6.2 Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn .icon { transition: transform var(--t) var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .icon[aria-hidden]:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(-1px); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.04rem; }
.btn--sm { padding: .62rem 1.1rem; font-size: .9rem; }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(115, 82, 151, .8);
}
.btn--primary:hover {
  background: var(--violet-600);
  color: #fff;
  box-shadow: 0 18px 32px -12px rgba(115, 82, 151, .75);
}

.btn--accent {
  background: var(--orange-fill);
  color: #fff;
  text-shadow: var(--orange-text-shadow);
  box-shadow: 0 8px 18px -10px rgba(214, 100, 12, .9);
}
.btn--accent:hover {
  background: var(--orange-fill-hover);
  color: #fff;
  box-shadow: 0 18px 32px -12px rgba(214, 100, 12, .75);
}

.btn--ghost {
  background: rgba(255, 255, 255, .65);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--violet-700);
  box-shadow: inset 0 0 0 1.5px var(--violet-100), 0 16px 30px -14px rgba(58, 34, 74, .35);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: .95rem;
  color: var(--violet);
}
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 6.3 Карточка */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #EADCF0;
}
.card .h3 { margin-bottom: .55rem; }

/* 6.4 Плейсхолдер изображения */
.ph {
  --ph-a: #FFEBDA;
  --ph-b: #FBCDA9;
  --ph-c: #FCE2E7;
  --ph-ink: #8F4B14;
  position: relative;
  display: flex;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 80% at 100% 100%, var(--ph-b) 0%, transparent 58%),
    radial-gradient(70% 60% at 0% 0%, rgba(255, 255, 255, .9) 0%, transparent 62%),
    linear-gradient(140deg, var(--ph-a) 0%, var(--ph-c) 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .55) 0 12%, transparent 12.5%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .38) 0 1px, transparent 1px 13px);
  opacity: .7;
  transition: transform .6s var(--ease);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(43, 33, 53, .16);
  border-radius: calc(var(--r-lg) - 10px);
  pointer-events: none;
}
.ph__frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 28px;
  text-align: center;
  color: var(--ph-ink);
}
.ph__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: var(--ph-ink);
  box-shadow: 0 10px 24px -12px rgba(58, 34, 74, .4);
}
.ph__icon .icon { width: 24px; height: 24px; }
.ph__icon--lg { width: 68px; height: 68px; }
.ph__icon--lg .icon { width: 30px; height: 30px; }
.ph__tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ph-ink);
  opacity: .85;
}
.ph__caption {
  max-width: 30ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
}

.ph--peach    { --ph-a: #FFEBDA; --ph-b: #FBCDA9; --ph-c: #FCE2E7; --ph-ink: #8F4B14; }
.ph--lavender { --ph-a: #F1EAFA; --ph-b: #D5C3EC; --ph-c: #FBE7EF; --ph-ink: #5B3F80; }
.ph--sage     { --ph-a: #EAF3E5; --ph-b: #C9E0BE; --ph-c: #F6F1DC; --ph-ink: #4A6A42; }
.ph--butter   { --ph-a: #FFF5D6; --ph-b: #FFDC94; --ph-c: #FDE5D5; --ph-ink: #84600E; }
.ph--pink     { --ph-a: #FDE8EE; --ph-b: #F4C2D0; --ph-c: #EFE6F8; --ph-ink: #8E3D59; }

.ph--media { aspect-ratio: 16 / 11; border-radius: var(--r); }
.ph--media::after { border-radius: calc(var(--r) - 10px); }
.ph--tall  { aspect-ratio: 4 / 5; height: 100%; }
.ph--arch {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.ph--arch::after { border-radius: 50% 50% calc(var(--r-lg) - 10px) calc(var(--r-lg) - 10px) / 40% 40% calc(var(--r-lg) - 10px) calc(var(--r-lg) - 10px); }
.ph--arch .ph__frame { padding: 25% 14% 12%; }

.card:hover .ph::before { transform: scale(1.06) rotate(-1deg); }

/* Цифры в serif-шрифте — только «прописные» (lining), без старинных 1 = I */
.format__price, .stat__num, .date__day, .hero__facts strong, .feature__num, .card__index, .hero-next__title, .event-row__title {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* 6.5 Блок даты */
.date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 66px; height: 66px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  line-height: 1;
  text-align: center;
}
.date__day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: -.02em;
}
.date__month {
  margin-top: 3px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-700);
}
.date--sm { width: 58px; height: 58px; border-radius: 16px; }
.date--sm .date__day { font-size: 1.7rem; }

/* -------------------------------------------------------------------------
   7. Главная
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px);
  background: linear-gradient(180deg, #FFF5EA 0%, var(--bg) 100%);
}
.hero .blob--1 { width: 560px; height: 560px; right: -120px; top: -180px; background: var(--lavender); }
.hero .blob--2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: var(--peach); }
.hero .blob--3 { width: 300px; height: 300px; left: 42%; top: 30%; background: var(--pink); opacity: .55; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero__lead { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 14px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-2);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--violet);
}
.hero__facts li:nth-child(2) strong { color: var(--orange-700); }
.hero__facts span { font-size: .86rem; color: var(--ink-3); font-weight: 600; }

.hero__media {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

/* Вращающаяся «печать» */
.seal {
  position: absolute;
  left: -54px;
  top: 16%;
  width: 124px; height: 124px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 22s linear infinite;
}
.seal__ring text {
  font-family: var(--font-sans);
  font-size: 9.6px;
  font-weight: 800;
  letter-spacing: .12em;
  fill: var(--violet);
}
.seal__logo { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Плавающая карточка ближайшего события */
.hero-next {
  position: absolute;
  right: -28px;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hero-next:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hero-next:empty { display: none; }
.hero-next__label {
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-700);
}
.hero-next__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  margin-block: 2px;
}
.hero-next__meta { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 600; }

/* Направления */
.card--dir { padding: 12px; display: flex; flex-direction: column; }
.card--dir .card__body { padding: 22px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card--dir p { flex: 1; margin-bottom: 18px; }
.card__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange-700);
  margin-bottom: 4px;
}

/* Бэнд событий */
.band {
  margin-inline: clamp(8px, 1.6vw, 24px);
  padding-block: clamp(56px, 8vw, 104px);
  border-radius: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 226, 199, .75) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(250, 221, 227, .7) 0%, transparent 60%),
    linear-gradient(135deg, #F1E9FA 0%, #F6EEF8 50%, #FBEFE6 100%);
  position: relative;
  overflow: hidden;
}
.band--warm {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(236, 227, 247, .8) 0%, transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(225, 238, 219, .8) 0%, transparent 60%),
    linear-gradient(135deg, #FFF0E2 0%, #FFF6EC 55%, #FDF0F2 100%);
}
.band__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.band__media .ph { height: 100%; min-height: 420px; aspect-ratio: auto; box-shadow: var(--shadow-md); }
.band__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.band__content .lead { margin-bottom: 8px; }
.band__content > .btn { margin-top: 10px; }

.event-list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r);
  color: var(--ink);
}
.event-row:hover { color: var(--ink); transform: translateY(-4px); }
.event-row__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
}
.event-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: .86rem;
  color: var(--ink-3);
  font-weight: 600;
}
.event-row__meta .icon { width: 15px; height: 15px; color: var(--violet); margin-right: 4px; }
.event-row__meta .badge { font-size: .62rem; padding: .3rem .65rem; }
.event-row__go {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--violet-50);
  color: var(--violet);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.event-row:hover .event-row__go { background: var(--violet); color: #fff; transform: rotate(-35deg); }

/* Преимущества */
.feature { overflow: hidden; }
.feature__num {
  position: absolute;
  top: 14px; right: 24px;
  font-family: var(--font-serif);
  font-size: 4.6rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.feature:hover .feature__num { -webkit-text-stroke-color: var(--orange-100); transform: translateY(-3px); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__icon--violet { background: var(--lavender); color: var(--violet); }
.feature__icon--orange { background: var(--peach); color: var(--orange-700); }
.feature__icon--sage   { background: var(--sage); color: #4F7646; }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(32px, 5vw, 60px) clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(240, 126, 5, .35) 0%, transparent 60%),
    radial-gradient(40% 100% at 0% 100%, rgba(246, 182, 198, .35) 0%, transparent 60%),
    linear-gradient(120deg, #5E3F82 0%, #735297 50%, #8A5E9E 100%);
  box-shadow: var(--shadow-lg);
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .25);
  pointer-events: none;
}
.cta__text { position: relative; max-width: 620px; }
.cta__title { color: #fff; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1.08; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .86); font-size: 1.06rem; }
.cta .btn { position: relative; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   8. Расписание
   ------------------------------------------------------------------------- */
.schedule-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .38rem .85rem .38rem .7rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-2);
}
.legend__item::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--c, #ccc);
  box-shadow: inset 0 0 0 2px var(--ci, transparent);
}
.legend__item--painting  { --c: var(--cat-painting);  --ci: var(--cat-painting-ink); }
.legend__item--graphics  { --c: var(--cat-graphics);  --ci: var(--cat-graphics-ink); }
.legend__item--sculpture { --c: var(--cat-sculpture); --ci: var(--cat-sculpture-ink); }
.legend__item--kids      { --c: var(--cat-kids);      --ci: var(--cat-kids-ink); }

.schedule-hint {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-3);
}
.schedule-hint .icon { color: var(--orange-700); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--violet-100) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--violet-100); border-radius: 8px; }

.schedule {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: .92rem;
}
.schedule th,
.schedule td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
  transition: background-color .2s var(--ease);
}
.schedule thead th {
  padding: 18px 10px 14px;
  background: #FCF7F1;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.schedule thead th:first-child { width: 112px; }
.schedule thead th.is-today { color: var(--violet); background: #F6F0FA; }
.today-pill {
  display: inline-block;
  margin-left: 6px;
  padding: .12rem .45rem;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: #fff;
  font-size: .58rem;
  letter-spacing: .1em;
  vertical-align: 1px;
}

.schedule tbody tr:last-child > * { border-bottom: 0; }

.sch-time {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  padding-left: 20px !important;
  box-shadow: 1px 0 0 var(--line);
}
.sch-time__start {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.sch-time__end { display: block; margin-top: 3px; font-size: .78rem; font-weight: 700; color: var(--ink-3); }

.schedule td.is-today { background: rgba(115, 82, 151, .035); }

/* Подсветка строки */
.schedule tbody tr:hover > td,
.schedule tbody tr:hover > th { background: #FFF4E8; }
.schedule tbody tr:hover > td.is-today { background: #FBEFE8; }

.lesson {
  --c: var(--cat-painting);
  --ci: var(--cat-painting-ink);
  display: block;
  padding: 10px 12px 10px 14px;
  border-radius: var(--r-sm);
  background: var(--c);
  box-shadow: inset 3px 0 0 var(--ci);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.lesson:hover { transform: translateY(-2px); box-shadow: inset 3px 0 0 var(--ci), 0 8px 16px -10px rgba(58, 34, 74, .4); }
.lesson--graphics  { --c: var(--cat-graphics);  --ci: var(--cat-graphics-ink); }
.lesson--sculpture { --c: var(--cat-sculpture); --ci: var(--cat-sculpture-ink); }
.lesson--kids      { --c: var(--cat-kids);      --ci: var(--cat-kids-ink); }
.lesson__name {
  display: block;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.25;
  color: var(--ink);
}
.lesson__teacher {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-2);
}
.lesson-empty {
  display: block;
  text-align: center;
  color: var(--ink-3);
  opacity: .7;
  font-size: 1.1rem;
}

.schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--ink-3);
}
.schedule-note .icon { color: var(--orange); margin-top: 3px; }

/* Форматы */
.format { display: flex; flex-direction: column; }
.format__price {
  margin: 4px 0 14px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--violet);
}
.format__price small {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-3);
}
.format > p:not(.format__price) { margin-bottom: 18px; }
.format--featured {
  border: 1.5px solid var(--violet-100);
  background: linear-gradient(180deg, #FBF7FE 0%, #fff 60%);
  box-shadow: var(--shadow-md);
}
.format--featured:hover { border-color: #D6C4EA; }
.format__flag { position: absolute; top: 26px; right: 24px; font-size: .62rem; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F7646' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px;
}

/* -------------------------------------------------------------------------
   9. События
   ------------------------------------------------------------------------- */
.event-card { padding: 12px; display: flex; flex-direction: column; }
.event-card__media { position: relative; }
.event-card__media .ph { aspect-ratio: 4 / 3; border-radius: var(--r); }
.event-card__media .ph::after { border-radius: calc(var(--r) - 10px); }
.event-card__media .ph__frame { padding: 52px 26px 30px; }
.event-card__media .date { position: absolute; top: 14px; left: 14px; z-index: 2; }
.event-card__media .badge { position: absolute; top: 16px; right: 16px; z-index: 2; }
.event-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px 16px 8px; }
.event-card__body p { flex: 1; margin-bottom: 18px; }
.event-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.price {
  display: inline-flex;
  align-items: center;
  padding: .42rem .9rem;
  border-radius: var(--r-pill);
  background: var(--orange-50);
  box-shadow: inset 0 0 0 1px var(--orange-100);
  color: var(--orange-700);
  font-weight: 800;
  font-size: .98rem;
}
.price--free { background: #E8F2E3; color: #4C6E44; box-shadow: inset 0 0 0 1px #D4E5CC; }
.time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-2);
}
.time .icon { color: var(--violet); width: 17px; height: 17px; }

/* -------------------------------------------------------------------------
   10. Преподаватели
   ------------------------------------------------------------------------- */
.teacher { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 36px; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px; height: 124px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--g, linear-gradient(135deg, #F7A35C, #E9789A));
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 18px 30px -16px rgba(58, 34, 74, .5);
  transition: transform var(--t) var(--ease);
}
.teacher:hover .avatar { transform: scale(1.04) rotate(-2deg); }
.avatar__initials {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(43, 33, 53, .25);
}
.avatar__photo {
  position: absolute;
  right: -2px; bottom: 4px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
  box-shadow: var(--shadow-sm);
}
.avatar__photo .icon { width: 17px; height: 17px; }
.teacher__name { margin-bottom: 10px !important; }
.teacher .badge { margin-bottom: 16px; }
.teacher__bio { font-size: .97rem; flex: 1; }
.teacher__exp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  width: 100%;
  justify-content: center;
  border-top: 1px dashed var(--line-2);
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-3);
}
.teacher__exp .icon { color: var(--orange-700); width: 17px; height: 17px; }

/* -------------------------------------------------------------------------
   11. О студии
   ------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split__media .ph { box-shadow: var(--shadow-md); border-radius: var(--r-xl); }
.split__media .ph::after { border-radius: calc(var(--r-xl) - 10px); }
.split__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split__content > p { font-size: 1.04rem; }

.stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--r); }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--orange-600), #D2563F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num--violet { background-image: linear-gradient(120deg, var(--violet), #A0629E); }
.stat__label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.contact .contact__value { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.contact .contact__value a { color: var(--ink); background: linear-gradient(var(--orange-100), var(--orange-100)) no-repeat 0 100% / 0 40%; transition: background-size var(--t) var(--ease), color var(--t) var(--ease); }
.contact .contact__value a:hover { background-size: 100% 40%; color: var(--violet-700); }
.contact__note { margin-top: 8px; font-size: .9rem; color: var(--ink-3); }

/* Карта */
.map {
  position: relative;
  margin-top: clamp(24px, 3vw, 36px);
  aspect-ratio: 21 / 8;
  min-height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #F1EEE4;
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(43, 33, 53, .14);
  border-radius: calc(var(--r-xl) - 10px);
  pointer-events: none;
}
.map__pin {
  position: absolute;
  left: 50%; top: 54%;
  width: 52px; height: 52px;
  transform: translate(-50%, -100%);
}
.map__pin-icon { position: relative; width: 52px; height: 52px; filter: drop-shadow(0 10px 10px rgba(58, 34, 74, .3)); animation: bob 2.8s ease-in-out infinite; }
.map__pulse {
  position: absolute;
  left: 50%; bottom: -6px;
  width: 22px; height: 10px;
  border-radius: 50%;
  background: rgba(115, 82, 151, .35);
  transform: translateX(-50%);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { transform: translateX(-50%) scale(.7); opacity: .5; } }
.map__card {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.map__card .ph__tag { color: var(--violet); }
.map__caption { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: var(--ink-2); margin-bottom: 4px; }

/* -------------------------------------------------------------------------
   12. Подвал
   ------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(40% 120% at 100% 0%, rgba(115, 82, 151, .35) 0%, transparent 60%),
    radial-gradient(30% 100% at 0% 100%, rgba(240, 126, 5, .14) 0%, transparent 60%),
    #2A2133;
  color: #E9E1EF;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.brand--light .brand__logo { height: 54px; }
.footer__tagline { color: #B9AEC3; font-size: .92rem; }
.footer__copy { text-align: center; color: #B9AEC3; font-size: .86rem; }
.footer__contact { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__label { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9D91A8; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 700;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer__mail:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.footer__mail .icon { color: #FFB46B; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem;
  color: #8E829A;
}
.footer__demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .38rem .8rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: #B9AEC3;
  font-size: .78rem;
  font-weight: 700;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.footer__demo:hover { background: rgba(255, 180, 107, .14); color: #FFD2A6; }
.footer__demo .icon { width: 15px; height: 15px; }

/* -------------------------------------------------------------------------
   13. Панель ошибки
   ------------------------------------------------------------------------- */
.error-panel {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 120;
  width: min(760px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid #F6D3BC;
  box-shadow: 0 30px 60px -20px rgba(58, 34, 74, .45), 0 0 0 6px rgba(240, 126, 5, .07);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.error-panel.is-visible { transform: translate(-50%, 0); opacity: 1; }
.error-panel__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange-700);
}
.error-panel__body { flex: 1; min-width: 0; }
.error-panel__title { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.error-panel__text { font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.error-panel__detail {
  display: block;
  margin-top: 6px;
  padding: .3rem .6rem;
  border-radius: 8px;
  background: var(--bg-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .76rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.error-panel__detail:empty { display: none; }
.error-panel__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   14. Адаптивность
   ------------------------------------------------------------------------- */

/* Планшет и узкий десктоп: меню → гамбургер */
@media (max-width: 1180px) {
  .nav { grid-template-columns: auto 1fr auto; }

  .burger { display: inline-block; }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--r-lg);
    background: rgba(255, 252, 248, .98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .menu-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
  }
  .nav__link {
    width: 100%;
    padding: .9rem 1.2rem;
    font-size: 1.05rem;
    border-radius: var(--r-sm);
  }
  .nav__link.is-active::after {
    content: "";
    margin-left: auto;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* одинокая последняя карточка растягивается на всю ширину */
  .grid--3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid--dir > .card--dir:last-child:nth-child(odd) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .grid--dir > .card--dir:last-child:nth-child(odd) .ph--media { height: 100%; aspect-ratio: auto; min-height: 240px; }
  #events-grid > .card:last-child:nth-child(odd),
  #home-posts > .card:last-child:nth-child(odd),
  #courses-grid > .card:last-child:nth-child(odd) { grid-column: auto; }
  .grid--dir > .card:last-child:nth-child(odd) { grid-column: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 440px; margin-top: 12px; }
  .seal { left: -20px; width: 108px; height: 108px; }
  .hero-next { right: -12px; }

  .band__grid { grid-template-columns: 1fr; }
  .band__media .ph { min-height: 0; aspect-ratio: 16 / 10; }

  .split { grid-template-columns: 1fr; }
  .split__media .ph { aspect-ratio: 16 / 11; }

  .cta { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__copy { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 760px) {
  .schedule-hint { display: inline-flex; }
  .map { aspect-ratio: auto; min-height: 420px; }
  .map__pin { top: 34%; }
  .map__card { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Мобильные */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand__logo { height: 38px; }
  .brand__sub { display: none; }
  .lang__select { padding-left: 2.1rem; padding-right: 1.8rem; }

  .grid--3 { grid-template-columns: 1fr; }

  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
  .hero__facts span { font-size: .8rem; line-height: 1.35; }
  .hero__facts strong { font-size: 1.7rem; }
  .seal { left: -8px; top: 8%; width: 92px; height: 92px; }
  .seal__logo { width: 30px; height: 30px; }
  .hero-next { right: 8px; left: 8px; bottom: 16px; max-width: none; }

  .section-head { text-align: left; align-items: flex-start; }
  .page-head__inner { text-align: left; align-items: flex-start; }

  .event-row { grid-template-columns: auto 1fr; padding-right: 14px; }
  .event-row__go { display: none; }

  .cta .btn { width: 100%; }
  .format__flag { position: static; align-self: flex-start; margin-bottom: 16px; }

  .stats { gap: 10px; }
  .stat { padding: 18px; }

  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__copy { grid-row: auto; }
  .footer__contact { justify-self: start; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .error-panel { flex-wrap: wrap; bottom: 12px; padding: 16px; }
  .error-panel__body { flex-basis: calc(100% - 62px); }
  .error-panel__actions { width: 100%; }
  .error-panel__actions .btn { flex: 1; }
}

@media (max-width: 380px) {
  .brand__logo { height: 34px; }
  .nav { gap: 8px; }
}

/* Уважение к настройкам ОС */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .error-panel, .footer__demo, .seal { display: none !important; }
  .page[hidden] { display: block !important; }
}
