/* ==========================================================================
   Путь к традициям — макет сайта
   Структура и визуальный язык повторяют murkosha.ru; наполнение — АНО «Путь к традициям».
   Дизайн-система murkosha: Rubik, белый фон, синий #1074D0 (кнопки, острые углы),
   оранжевый #F87C27 (акцент), крупные жирные заголовки, чередование белых/серых секций,
   отдельные синие «bento»-секции.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,600;0,700;1,500;1,700&display=swap');

:root {
  --blue:        #1074D0;
  --blue-dark:   #0D63B3;
  --orange:      #C2501C;   /* фирменная терракота АНО «Путь к традициям» */
  --orange-dark: #A5410F;
  --plate:       #C2501C;   /* фон плашки логотипа (совпадает с фоном эмблемы) */
  --ink:         #2E2E2E;
  --ink-2:       #111111;
  --gray-text:   #555555;
  --bg:          #FFFFFF;
  --bg-gray:     #F5F5F5;
  --bg-gray-2:   #FAFAFA;
  --line:        #E3E3E3;
  --line-2:      #EAEFF3;

  --maxw: 1240px;
  --pad: 20px;
  --header-h: 74px;

  --font: 'Rubik', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --shadow: 0 6px 24px rgba(0, 0, 0, .1);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, .16);

  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M60 22c-14 0-22 9-22 21 0 9 6 15 15 15s13-5 13-12-5-10-10-10-8 3-8 7'/%3E%3Cpath d='M60 98c14 0 22-9 22-21 0-9-6-15-15-15s-13 5-13 12 5 10 10 10 8-3 8-7'/%3E%3Cpath d='M22 60c0-14 9-22 21-22'/%3E%3Cpath d='M98 60c0 14-9 22-21 22'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Сброс ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; color: var(--ink); line-height: 1.08; }
h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
p { margin: 0; }

/* ---- Раскладка ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(48px, 8vw, 80px); }
.section--gray { background: var(--bg-gray); }
.section--tight { padding-block: clamp(36px, 6vw, 56px); }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--gray-text); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .lead { margin-top: 14px; max-width: 60ch; }
.section__head--split { display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); } }
.section__head--split .lead { margin-top: 0; }
.center { text-align: center; }
.center .section__head .lead { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---- Кнопки (острые углы, как у murkosha) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 17px 32px; border: 0; border-radius: 0; cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; border: 2px solid currentColor; color: var(--blue); padding: 15px 30px; }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f0f0f0; color: var(--ink); }
.btn--lg { padding: 20px 40px; font-size: 1.05rem; }

/* =====================  ШАПКА  ===================== */
.site-header { position: relative; z-index: 60; border-bottom: 3px solid var(--ink); }

/* Верхняя сетка: логотип-плашка + служебная строка + контакты */
.header-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-areas:
    "logo utility"
    "logo contacts";
  max-width: var(--maxw);
  margin-inline: auto;
}
.header-logo {
  grid-area: logo;
  background: var(--orange);
  color: #fff;
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.header-logo:hover { color: #fff; }
.header-logo__mark {
  width: 66px; height: 84px; border-radius: 50% / 50%; background: var(--plate);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.header-logo__mark svg { width: 52px; height: 52px; }
.header-logo__mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.header-logo > span { display: block; }
.header-logo__name { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.15; letter-spacing: .01em; }
.header-logo__sub { display: block; margin-top: 3px; font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; opacity: .95; }

.header-utility {
  grid-area: utility;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 20px; min-height: 40px;
}
.header-utility nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.header-utility a { color: #fff; font-size: .82rem; font-weight: 500; }
.header-utility a:hover { color: #fff; text-decoration: underline; }
.header-utility__search {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  padding: 6px 12px; color: #fff;
}
.header-utility__search input {
  border: 0; background: transparent; color: #fff; font-family: var(--font); font-size: .82rem; width: 120px;
}
.header-utility__search input::placeholder { color: rgba(255,255,255,.8); }
.header-utility__search svg { width: 15px; height: 15px; fill: #fff; flex: none; }
.header-utility__lang { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .05em; border: 1px solid rgba(255,255,255,.45); padding: 3px 9px; flex: none; }

.header-contacts {
  grid-area: contacts;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px;
  padding: 16px 20px;
}
.header-contacts__phones { display: flex; flex-direction: column; gap: 8px; }
.header-contacts__phone { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.header-contacts__socials { display: flex; gap: 8px; }
.header-contacts__col { font-size: .9rem; color: var(--gray-text); line-height: 1.5; }
.header-contacts__col a { color: var(--ink); font-weight: 500; }
.header-contacts .btn { margin-left: auto; }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); background: #fff;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Тёмная навигационная лента */
.main-nav { background: var(--ink); position: sticky; top: 0; z-index: 55; }
.main-nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: stretch;
}
.main-nav__links { display: flex; flex: 1; flex-wrap: wrap; }
.main-nav__links a {
  color: #fff; font-weight: 700; font-size: 1rem; padding: 20px 24px;
  display: flex; align-items: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.main-nav__links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-nav__links a[aria-current="page"] { color: var(--orange); }
.main-nav__cta {
  background: var(--orange); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 20px 34px; display: flex; align-items: center; white-space: nowrap;
}
.main-nav__cta:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; margin-left: auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 3px; background: #fff; position: relative;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---- Мобильный доп-блок в панели меню (скрыт на десктопе) ---- */
.main-nav__extra { display: none; }

/* ---- Адаптив шапки (мобильная версия в духе murkosha) ---- */
@media (max-width: 1023px) {
  :root { --header-h: 62px; }
  .site-header { position: sticky; top: 0; z-index: 60; border-bottom: 0; }

  /* Компактная строка одного цвета: логотип | телефон | бургер */
  .header-grid {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo . burger";
    align-items: center;
    background: var(--plate);
    border-bottom: 0;
  }
  .header-logo {
    background: transparent; color: #fff;
    flex-direction: row; gap: 10px; text-align: left; padding: 8px 14px;
  }
  .header-logo:hover { color: #fff; }
  .header-logo__mark { width: 42px; height: 54px; background: transparent; border-radius: 0; }
  .header-logo__mark img { object-fit: contain; }
  .header-logo__mark svg { width: 26px; height: 26px; }
  .header-logo__name { font-size: .92rem; }
  .header-logo__sub { font-size: .58rem; margin-top: 2px; opacity: .9; }
  .header-utility, .header-contacts { display: none; }

  .header-burger { grid-area: burger; display: flex; align-items: center; gap: 2px; padding-right: 6px; }
  .header-burger__phone { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; }
  .header-burger__phone svg { width: 22px; height: 22px; fill: currentColor; }
  .nav-toggle { display: inline-flex; margin: 0; width: 46px; height: 46px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #fff; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before, .nav-open .nav-toggle span::after { background: #fff; }

  /* Выезжающая тёмная панель — fixed-оверлей под компактной строкой */
  .main-nav { position: static; background: transparent; }
  .main-nav__inner {
    position: fixed; left: 0; right: 0;
    top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch;
    background: var(--ink);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    clip-path: inset(0 0 0 100%);
    transition: clip-path .32s var(--ease), visibility 0s linear .32s;
    visibility: hidden; z-index: 59;
    max-width: none; margin: 0;
  }
  html.nav-open .main-nav__inner {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .32s var(--ease), visibility 0s;
  }
  .main-nav__links { flex-direction: column; }
  .main-nav__links a {
    padding: 15px 20px; font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav__links a[aria-current="page"] {
    color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); background: rgba(255,255,255,.05);
  }

  .main-nav__extra {
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px 20px; background: #262626;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav__phone { color: #fff; font-weight: 700; font-size: 1.25rem; }
  .main-nav__extra .btn { align-self: flex-start; }
  .main-nav__sub { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .main-nav__sub a { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; }
  .main-nav__sub a:hover { color: #fff; }
  .main-nav__extra .socials a { border-color: rgba(255,255,255,.25); color: #fff; background: transparent; }
  .main-nav__extra .socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

  .main-nav__cta { justify-content: center; padding: 18px; font-size: 1.05rem; }
  .main-nav__extra .socials a { width: 42px; height: 42px; }

  html.nav-open, html.nav-open body { overflow: hidden; }

  /* --- Мобильные правки контента --- */
  .header-burger { gap: 8px; }
  .tabs__nav { flex-direction: column; }
  .tabs__btn { width: 100%; text-align: left; border-right: 1px solid var(--line); border-bottom: 0; }
  .tabs__btn:last-child { border-bottom: 1px solid var(--line); }
  .tabs__btn[aria-selected="true"] { border-color: var(--orange); }
  .footer-contacts > div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-contacts > div:first-child { border-top: 0; }
  .hero-slide__tagline { display: none; }
  .hero-slide__inner { min-height: 360px; padding-bottom: 76px; justify-content: flex-start; }
  .hero-slide__bg::after { background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,.55) 100%); }
  .hero-controls { bottom: 16px; }
  .section__head--split { display: block; }

  /* Синяя bento-секция: одна колонка, без фантомного 2-го столбца */
  .bento { grid-template-columns: 1fr; }
  .bento__box, .bento__box--tall { grid-column: 1 / -1 !important; grid-row: auto !important; }
}
@media (min-width: 1024px) {
  .header-burger { display: none; }
}

/* =====================  HERO-СЛАЙДЕР  ===================== */
.hero { position: relative; background: var(--ink); overflow: hidden; max-width: 100%; }
.hero-track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
.hero-slide { flex: 0 0 100%; width: 100%; min-width: 0; position: relative; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; }
.hero-slide__bg .ph { width: 100%; height: 100%; }
.hero-slide__bg .ph::after { display: none; }
.hero-slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.15) 70%, rgba(255,255,255,0) 100%); }
.hero-slide__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--pad);
  min-height: clamp(420px, 52vw, 560px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-slide h2 { font-size: clamp(2rem, 6vw, 4rem); max-width: 15ch; color: var(--ink); }
.hero-slide p.hero-slide__text { margin-top: 18px; max-width: 42ch; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--gray-text); }
.hero-slide__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide__tagline {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(56px, 9vw, 92px); z-index: 2;
  width: 100%; max-width: var(--maxw); padding-inline: var(--pad);
  font-style: italic; font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--ink);
}
.hero-controls {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(20px, 4vw, 32px); z-index: 3;
  width: 100%; max-width: var(--maxw); padding-inline: var(--pad);
  display: flex; align-items: center; gap: 16px;
}
.hero-dots { display: flex; gap: 4px; }
.hero-dots button {
  width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer;
  position: relative; padding: 0; touch-action: manipulation;
}
.hero-dots button::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid var(--orange); background: transparent; transition: background .2s var(--ease);
}
.hero-dots button[aria-current="true"]::before { background: var(--orange); }
.hero-arrows { margin-left: auto; display: flex; gap: 10px; }
.hero-arrows button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.hero-arrows button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.hero-arrows svg { width: 20px; height: 20px; fill: currentColor; }

/* Полоса-объявление */
.notice-band { background: var(--ink); color: #fff; text-align: center; padding: 18px var(--pad); font-weight: 500; }
.notice-band b { color: var(--orange); }

/* =====================  ЗАГЛУШКИ ИЗОБРАЖЕНИЙ  ===================== */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 120px;
  background: var(--ornament), linear-gradient(135deg, var(--blue) 0%, #2f8fe0 50%, var(--orange) 100%);
  background-size: 110px, cover; background-blend-mode: soft-light;
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 6px 14px; background: rgba(0,0,0,.28); text-align: center;
}
.ph--orange { background: var(--ornament), linear-gradient(135deg, var(--orange), #ffb072); background-size: 110px, cover; }
.ph--dark { background: var(--ornament), linear-gradient(135deg, #2e2e2e, #575757); background-size: 110px, cover; }
.ph--muted { background: var(--ornament), linear-gradient(135deg, #7aa7c9, #cdb79a); background-size: 110px, cover; }

/* =====================  ФИЧИ-СПИСОК  ===================== */
.features { display: grid; gap: 8px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); gap: 8px 48px; } }
.features li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start;
}
.features li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; background: var(--orange);
  -webkit-mask: var(--ic-check) center / 16px no-repeat; mask: var(--ic-check) center / 16px no-repeat;
}
:root { --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.features li b { display: block; }
.features li span { color: var(--gray-text); font-size: .95rem; }

/* =====================  ТАБЫ  ===================== */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 32px; }
.tabs__btn {
  font-family: var(--font); font-weight: 700; font-size: 1rem; color: var(--ink);
  padding: 18px 34px; border: 1px solid var(--line); border-right: 0; background: #fff; cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tabs__btn:last-child { border-right: 1px solid var(--line); }
.tabs__btn[aria-selected="true"] {
  border-color: var(--orange); color: var(--orange); position: relative; z-index: 1;
}
.tabs__panel[hidden] { display: none; }
.tabs__panel:not([hidden]) { animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =====================  КАРТОЧКИ  ===================== */
.tile {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media .ph { transition: transform .4s var(--ease); }
.tile:hover .tile__media .ph { transform: scale(1.05); }
.tile__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 4px 10px; }
.tile__body h3 a { color: var(--ink); }
.tile__body h3 a:hover { color: var(--blue); }
.tile__meta { font-size: .84rem; color: var(--gray-text); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tile__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.tile__more::after { content: "→"; transition: transform .2s var(--ease); }
.tile:hover .tile__more::after { transform: translateX(4px); }

/* =====================  СИНЯЯ BENTO-СЕКЦИЯ  ===================== */
.section--blue { background: var(--blue); color: #fff; padding-block: clamp(56px, 10vw, 110px); }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue .eyebrow { color: #fff; }
.bento { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(120px, auto); } }
.bento__box { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.bento__box--dark { background: var(--ink); color: #fff; }
.bento__box--orange { background: var(--orange); color: #fff; }
.bento__box--light { background: #eef2f5; color: var(--ink); }
.bento__box--tall { grid-row: span 2; }
.bento__num { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; line-height: .95; }
.bento__box p.small { font-size: .92rem; opacity: .92; }
.bento__links { display: flex; flex-direction: column; gap: 12px; }
.bento__links a { color: inherit; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 8px; }
.bento__box--light .bento__links a { border-color: rgba(0,0,0,.15); }
.bento__logos { display: flex; flex-wrap: wrap; gap: 8px; }
.bento__logos span { background: rgba(255,255,255,.18); padding: 6px 10px; font-size: .78rem; font-weight: 600; }

/* =====================  ВИДЕО-ГАЛЕРЕЯ  ===================== */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  transition: transform .3s var(--ease);
}
.video .ph { transition: transform .4s var(--ease); }
.video:hover .ph { transform: scale(1.04); }
.video::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); z-index: 2;
  transition: transform .25s var(--ease);
}
.video::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--blue); z-index: 3;
}
.video:hover::before { transform: translate(-50%, -50%) scale(1.12); }

/* =====================  ШАГИ  ===================== */
.steps { display: grid; gap: 28px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding-left: 62px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-text); font-size: .95rem; }

/* Процесс с крупными цифрами */
.psteps { display: grid; gap: 40px 32px; }
@media (min-width: 720px) { .psteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .psteps { grid-template-columns: repeat(4, 1fr); } }
.pstep { position: relative; padding-top: 12px; }
.pstep__num {
  position: absolute; right: 0; top: -30px; font-size: 7rem; font-weight: 700; line-height: 1;
  color: rgba(16, 116, 208, .12); z-index: 0; pointer-events: none;
}
.pstep__media { aspect-ratio: 4 / 3; margin-bottom: 16px; overflow: hidden; }
.pstep h3 { color: var(--blue); position: relative; z-index: 1; }
.pstep p { color: var(--gray-text); font-size: .93rem; margin-top: 8px; position: relative; z-index: 1; }

/* =====================  ФОРМА-ВОПРОС  ===================== */
.qform { display: grid; gap: 16px; max-width: 620px; }
@media (min-width: 640px) { .qform { grid-template-columns: 1fr 1fr; } }
.qform .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; padding: 13px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,116,208,.15); }
.form-note { font-size: .8rem; color: var(--gray-text); }
.form-success { background: #e7f4e9; color: #1c6b32; padding: 14px 16px; border: 1px solid #a9d8b5; }
[hidden] { display: none !important; }

/* =====================  ГОРИЗОНТАЛЬНЫЕ КАРУСЕЛИ  ===================== */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; margin-top: 20px; }
.carousel__nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.carousel__nav button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel__nav svg { width: 18px; height: 18px; fill: currentColor; }

.guest { width: 280px; }
.guest .ph { aspect-ratio: 16 / 10; }
.guest span { display: block; margin-top: 10px; font-size: .88rem; color: var(--gray-text); }

.doc { width: 300px; }
.doc .ph { aspect-ratio: 3 / 4; }

/* =====================  ОТЗЫВЫ  ===================== */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review { background: #fff; border: 1px solid var(--line); padding: 26px; }
.review::before { content: "“"; font-size: 3.4rem; line-height: .6; color: var(--orange); display: block; margin-bottom: 12px; font-family: Georgia, serif; }
.review footer { margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--ink); }

/* =====================  СОЦСЕТИ (подписка)  ===================== */
.social-row { display: flex; flex-wrap: wrap; gap: 14px; }
.social-row a {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px;
  border: 1px solid var(--line); color: var(--ink); font-weight: 700;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.social-row a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

/* =====================  ЛОГОТИПЫ ПАРТНЁРОВ  ===================== */
.partners {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.partners div {
  background: #fff; aspect-ratio: 3 / 2;
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-size: .8rem; color: var(--gray-text); font-weight: 600;
}

/* =====================  БЛОК-СИНИЙ-О НАС  ===================== */
.about-blue { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about-blue { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); } }
.about-blue__media { aspect-ratio: 4 / 3; }

/* =====================  ПОДВАЛ  ===================== */
.site-footer { border-top: 3px solid var(--ink); }
.footer-contacts {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-contacts > div {
  padding: 28px 24px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.footer-contacts > div:first-child { border-left: 0; }
.footer-contacts__phone { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.footer-contacts__logo { align-items: flex-start; }
.footer-contacts__logo .header-logo__mark { width: 50px; height: 64px; }
.footer-contacts__logo .header-logo__mark svg { width: 34px; height: 34px; }
.footer-contacts small { color: var(--gray-text); }

.footer-cols {
  background: var(--bg-gray); border-top: 1px solid var(--line);
}
.footer-cols__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 40px 24px;
  display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer-cols h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 14px; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: var(--ink); font-size: .95rem; }
.footer-cols a:hover { color: var(--blue); }
.footer-sub { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer-sub input { flex: 1; min-width: 160px; padding: 13px 14px; border: 1px solid var(--line); font-family: var(--font); }
.footer-legal {
  max-width: var(--maxw); margin-inline: auto; padding: 20px 24px 40px;
  font-size: .82rem; color: var(--gray-text); line-height: 1.6;
}

/* =====================  ВНУТРЕННИЕ СТРАНИЦЫ  ===================== */
.page-hero { background: var(--bg-gray); padding-block: clamp(40px, 7vw, 76px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 16px; max-width: 62ch; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 40px; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); } }
.split__media { aspect-ratio: 4 / 3; }

.program {
  display: grid; gap: 18px 32px; padding: 32px 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.program:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .program { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 40%); align-items: start; } }
.program__num { font-size: 2.2rem; font-weight: 700; color: var(--orange); line-height: 1; }
.program__kaz { display: block; color: var(--blue); font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.program p { color: var(--gray-text); }
.program__media { aspect-ratio: 16 / 10; }

.info-list { display: grid; gap: 0; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 3px; }
.info-row b { display: block; }

.cta-band { background: var(--blue); color: #fff; padding: clamp(36px, 6vw, 60px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 12px auto 24px; }

.price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }

/* =====================  ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ  ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-track { transition: none; }
}
