/* ============================================================
   Владислав Васильев — лендинг (макет 1200px, верстка 1:1 с Figma)
   Дисплейный: Lebowski by Pragmatica. Текст: Inter Tight.
   Иконки/фото — реальные ассеты из Figma, кадрирование 1:1 (трансформы).
   ============================================================ */

@font-face {
  font-family: 'Lebowski by Pragmatica';
  src: url('fonts/LebowskiByPragmatica-Regular.ttf') format('truetype'),
       url('fonts/LebowskiByPragmatica-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  --accent:  #a83635;
  --accent-700:#8f2c2b;
  --accent-link:#a31513;            /* ссылки/подчёркивания */
  --underline: rgba(163,21,19,.4);
  --ink:     #0a0a0c;
  --zinc:    #27272a;
  --text:    #5c5c65;
  --sub:     #3f3f47;
  --ash:     #a1a1aa;
  --canvas:  #ffffff;
  --band:    #f4f4f5;
  --border:  #e6e6e9;
  --icon-border:#e6e6e6;
  --font-display: 'Lebowski by Pragmatica', 'Inter Tight', sans-serif;
  --font-text: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* Гладкий скролл намеренно отключен — иначе TanStack scrollRestoration
   при возврате назад/вперед визуально «уезжает» к блоку. Прыжок по
   якорю остается мгновенным; SiteHeader при клике сам решает, где скроллить. */
html { scroll-behavior: auto; }
body { font-family: var(--font-text); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--canvas); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* контент-ширина = 1200px (1248 - 2*24 паддинга) */
.container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 24px; }

/* единое подчёркивание-ссылка как в Figma */
.u-link { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-skip-ink: none; }

/* full-bleed скруглённая подложка секции */
.band-bg { width: 100vw; margin-inline: calc(50% - 50vw); background: var(--band); border-radius: 40px; }
.band-inner { max-width: 1248px; margin-inline: auto; padding: 80px 24px 120px; }

.section-head { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.04; color: var(--ink); }
.section-head--center { text-align: center; }

/* единый вертикальный ритм для секций вне band-bg */
.section-pad { padding-top: 96px; padding-bottom: 96px; }
.section-pad--tight { padding-top: 64px; padding-bottom: 64px; }

/* hero без портрета: дать дыхание перед следующей секцией */
.hero--standalone { padding-bottom: 80px; }

/* ============================================================ SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1),
              filter .7s ease; }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-reveal-delay="1"].is-in { transition-delay: .06s; }
.reveal[data-reveal-delay="2"].is-in { transition-delay: .12s; }
.reveal[data-reveal-delay="3"].is-in { transition-delay: .18s; }
.reveal[data-reveal-delay="4"].is-in { transition-delay: .24s; }
.reveal[data-reveal-delay="5"].is-in { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
}

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; padding: 16px 32px; border-radius: 18px; white-space: nowrap; max-width: 100%; text-align: center; transition: transform .18s ease, background-color .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-700); }
.btn-zinc { background: var(--zinc); color: #fff; }
.btn-zinc:hover { background: #34343a; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262b; }
.btn-light { background: var(--band); color: var(--ink); }
.btn-light:hover { background: #e9e9eb; }
.btn-sm { padding: 12px 24px; font-size: 14px; letter-spacing: -.14px; }

/* ============================================================ HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__logo { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -.2px; color: var(--sub); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: -.14px; color: var(--ink); transition: color .18s ease; }
.nav__links a:hover { color: var(--accent-link); }
.nav__links a.is-active { color: var(--accent-link); }
.nav__links a img { width: 14px; height: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--band); align-items: center; justify-content: center; position: relative; }
.nav__burger span { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.nav__burger span::before, .nav__burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(6px); }
.header.is-open .nav__burger span { background: transparent; }
.header.is-open .nav__burger span::before { transform: rotate(45deg); }
.header.is-open .nav__burger span::after { transform: rotate(-45deg); }

/* ============================================================ HERO */
.hero { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 0; }
.hero__grid { display: grid; grid-template-columns: 667px 514px; gap: 19px; justify-content: space-between; align-items: center; }
.hero__col { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.badge { display: inline-flex; align-items: center; gap: 6px; }
.badge img { width: 22px; height: 22px; }
.badge span { font-size: 16px; letter-spacing: -.16px; color: var(--accent); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: 50px; line-height: 1.04; color: var(--ink); width: 667px; max-width: 100%; }
.hero__title .accent { color: var(--accent); }
.hero__sub { font-size: 22px; line-height: 1.35; letter-spacing: -.22px; color: var(--sub); width: 667px; max-width: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* кадрирование портрета как в Figma (заходит за фон следующей секции) */
.hero__media { width: 514px; height: 564px; max-width: 100%; border-radius: 32px; position: relative; overflow: hidden; background: var(--band); }
.hero__media img { position: absolute; max-width: none; width: 213.67%; height: 292.47%; left: -54.35%; top: -18.28%; }

/* ============================================================ ЗАДАЧИ (заходит на портрет hero) */
#tasks { position: relative; z-index: 2; margin-top: -28px; }
.tasks__head { margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab { padding: 16px 28px; border-radius: 20px; font-size: 17px; letter-spacing: -.17px; color: var(--ink); background: #fff; border: 1px solid var(--border); white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--zinc); color: var(--band); border-color: var(--zinc); }
.tabs-wrap { position: relative; margin-bottom: 24px; }
.tabs-wrap .tabs { margin-bottom: 0; }
.tabs-hint { display: none; }
@media (max-width: 720px) {
  .tabs-wrap::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 56px;
    background: linear-gradient(to left, var(--band) 10%, rgba(244,244,245,0));
    pointer-events: none; z-index: 2;
  }
  .tabs-wrap .tabs { scrollbar-width: none; -ms-overflow-style: none; }
  .tabs-wrap .tabs::-webkit-scrollbar { display: none; }
  .tabs-hint {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.9); color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    pointer-events: none; z-index: 3;
    animation: hint-bounce 1.6s ease-in-out infinite;
  }
  @keyframes hint-bounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
  }
}

.panel { background: var(--zinc); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.panel__row { display: flex; align-items: flex-start; gap: 18px; }
.panel__row + .panel__row { border-top: 1px solid rgba(255,255,255,.10); padding-top: 18px; }
.panel__icon { width: 28px; height: 28px; flex-shrink: 0; }
.panel__text { font-family: var(--font-text); font-weight: 500; font-size: 22px; line-height: 1.35; letter-spacing: -.22px; color: #fff; }
.panel__text .lead { color: var(--ash); }

/* ============================================================ сетки/услуги */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.head-gap { margin-bottom: 40px; }
#services { padding-top: 80px; }
#services .head-gap { margin-bottom: 48px; }

.service { background: var(--band); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.icon-tile { width: 64px; height: 64px; border: 1px solid var(--icon-border); border-radius: 24px; display: grid; place-items: center; margin-bottom: 32px; }
.icon-tile__inner { width: 52px; height: 52px; background: #fff; border: 1px solid var(--icon-border); border-radius: 18.2px; display: grid; place-items: center; }
.icon-tile__inner img { width: 26px; height: 26px; }
.service__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.04; color: var(--zinc); margin-bottom: 16px; }
.service__desc { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); margin-bottom: 32px; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.checklist li { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); }
.checklist li img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.service .btn { margin-top: auto; }

/* ============================================================ CTA */
#cta { padding-top: 128px; padding-bottom: 144px; }
.cta-card { position: relative; background: var(--band); border-radius: 32px; overflow: hidden; min-height: 428px; }
.cta-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding: 48px; max-width: 700px; }
.cta-card__title { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.04; color: var(--zinc); }
.cta-card__sub { font-size: 16px; letter-spacing: -.16px; color: var(--text); margin-top: -16px; }
.cta-card__media { position: absolute; top: -1px; left: 37.2%; width: 78.75%; height: 517px; }
.cta-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

/* Brief form (использует размеры из дизайн-системы: 16/14) */
.brief-form { display: flex; flex-direction: column; gap: 28px; width: 100%; }
.brief-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.brief-field { display: flex; flex-direction: column; gap: 8px; }
.brief-field--wide { grid-column: 1 / -1; }
.brief-field__label { font-family: var(--font-text); font-weight: 600; font-size: 15px; letter-spacing: -.16px; color: var(--ink); }
.brief-field__req { color: var(--accent); }
.brief-field__input { font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; transition: border-color .15s ease, box-shadow .15s ease; resize: vertical; width: 100%; }
.brief-field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.brief-field__input::placeholder { color: #b4b4b8; }
textarea.brief-field__input { min-height: 110px; }
textarea.brief-field__input[rows="2"] { min-height: 78px; }

.brief-form__footer { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.brief-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.brief-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.brief-consent__text { font-family: var(--font-text); font-size: 14px; line-height: 1.5; letter-spacing: -.14px; color: var(--text); }
.brief-form__submit { align-self: flex-start; }
.brief-form__submit:disabled { opacity: .5; cursor: not-allowed; }
.brief-form--done { background: var(--band); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.brief-form--done h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); margin: 0; }
.brief-form--done p { font-size: 16px; line-height: 1.5; color: var(--text); margin: 0; }

/* ============================================================ BRIEF MODAL (full-screen sheet) */
.brief-modal { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; animation: brief-fade .2s ease; }
.brief-modal__topbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brief-modal__eyebrow { font-family: var(--font-text); font-weight: 600; font-size: 14px; color: var(--ash); letter-spacing: -.14px; }
.brief-modal__close {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--band); border: 0; display: grid; place-items: center;
  cursor: pointer; color: var(--ink); transition: background .15s ease, transform .2s ease;
}
.brief-modal__close:hover { background: #e5e5e7; transform: rotate(90deg); }
.brief-modal__scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.brief-modal__inner { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; animation: brief-pop .25s ease; }
.brief-modal__head { margin-bottom: 36px; }
.brief-modal__title { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.05; color: var(--zinc); margin: 0 0 12px 0; letter-spacing: -.4px; }
.brief-modal__title .accent { color: var(--accent); }
.brief-modal__sub { font-size: 17px; line-height: 1.5; letter-spacing: -.17px; color: var(--text); margin: 0; max-width: 560px; }
@keyframes brief-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes brief-pop { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

@media (max-width: 720px) {
  .brief-modal__topbar { height: 56px; padding: 0 16px; }
  .brief-modal__close { width: 40px; height: 40px; }
  .brief-modal__inner { padding: 28px 20px 48px; }
  .brief-modal__title { font-size: 30px; }
  .brief-modal__sub { font-size: 15px; }
  .brief-modal__head { margin-bottom: 24px; }
  .brief-form__grid { grid-template-columns: 1fr; gap: 18px; }
  .brief-form__submit { width: 100%; }
  .brief-form--done { padding: 24px; }
  .brief-form--done h3 { font-size: 22px; }
}


/* ============================================================ LETTERS MODAL (full-screen viewer) */
.letters-modal { position: fixed; inset: 0; z-index: 200; background: #0f0f10; display: flex; flex-direction: column; animation: brief-fade .2s ease; color: #fff; }
.letters-modal__topbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  background: rgba(15,15,16,.7);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.letters-modal__eyebrow { font-family: var(--font-text); font-weight: 600; font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: -.14px; }
.letters-modal__close {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 0; display: grid; place-items: center;
  cursor: pointer; color: #fff; transition: background .15s ease, transform .2s ease;
}
.letters-modal__close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.letters-modal__stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 12px; padding: 24px 24px 12px; }
.letters-modal__frame { height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.letters-modal__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.45); animation: brief-pop .25s ease; }
.letters-modal__nav { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.10); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.letters-modal__nav:hover { background: rgba(255,255,255,.20); }
.letters-modal__nav:active { transform: scale(.95); }
.letters-modal__caption { padding: 8px 24px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.letters-modal__title { font-family: var(--font-text); font-weight: 500; font-size: 17px; letter-spacing: -.17px; color: #fff; margin: 0; text-align: center; max-width: 720px; }
.letters-modal__thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 6px 4px 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.letters-modal__thumbs::-webkit-scrollbar { height: 6px; }
.letters-modal__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
.letters-modal__thumb { flex: 0 0 auto; width: 56px; height: 72px; border-radius: 8px; overflow: hidden; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.letters-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.letters-modal__thumb:hover { transform: translateY(-2px); }
.letters-modal__thumb.is-active { border-color: var(--accent); }

@media (max-width: 720px) {
  .letters-modal__topbar { height: 56px; padding: 0 16px; }
  .letters-modal__close { width: 40px; height: 40px; }
  .letters-modal__stage { grid-template-columns: 40px 1fr 40px; padding: 12px 8px 8px; gap: 4px; }
  .letters-modal__nav { width: 36px; height: 36px; }
  .letters-modal__nav svg { width: 18px; height: 18px; }
  .letters-modal__caption { padding: 4px 16px 16px; }
  .letters-modal__title { font-size: 15px; }
  .letters-modal__thumb { width: 44px; height: 58px; }
}



/* Video poster (click-to-play) */
.tile-video__poster { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; cursor: pointer; display: block; background: #000; overflow: hidden; }
.tile-video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile-video__poster:hover img { transform: scale(1.03); }
.tile-video__play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.tile-video__poster:hover .tile-video__play-btn { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.tile-video__play-btn::after { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }


/* Video poster (click-to-play) */
.tile-video__poster { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; cursor: pointer; display: block; background: #000; overflow: hidden; }
.tile-video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile-video__poster:hover img { transform: scale(1.03); }
.tile-video__play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.tile-video__poster:hover .tile-video__play-btn { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.tile-video__play-btn::after { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }


/* ============================================================ ПОЧЕМУ — бенто */
.bento { display: grid; grid-template-columns: repeat(3, 392px); gap: 12px; justify-content: center; }
.bento__col { display: flex; flex-direction: column; gap: 12px; }
.tile { background: #fff; border-radius: 32px; padding: 28px; }
.stat__num { font-family: var(--font-display); font-weight: 400; line-height: .9; color: var(--accent); }
.stat__label { font-size: 14px; line-height: 1.5; letter-spacing: -.14px; color: var(--text); }

.tile-20 { height: 121px; display: flex; align-items: center; gap: 16px; color: var(--accent); }
.tile-20 .stat__num { font-size: 64px; }
.tile-20 .stat__label { font-weight: 500; font-size: 22px; line-height: 1.35; letter-spacing: -.22px; color: var(--accent); }

.tile-stack { height: 121px; display: flex; align-items: center; gap: 2px; }
.tile-stack__txt { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tile-stack .stat__num { font-size: 40px; color: var(--ink); }
.tile-stack__ic { margin-left: auto; width: 64px; height: 64px; border: 1px solid var(--band); border-radius: 24px; display: grid; place-items: center; }
.tile-stack__ic .icon-tile__inner { background: var(--band); border-color: var(--band); }

.tile-1000 { height: 120px; display: flex; align-items: flex-start; gap: 2px; padding: 27px 28px; }
.tile-1000__txt { width: 270px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tile-1000 .stat__num { font-size: 40px; color: var(--ink); }
.tile-1000__ic { margin-left: auto; width: 64px; height: 64px; border: 1px solid var(--band); border-radius: 24px; display: grid; place-items: center; }
.tile-1000__ic .icon-tile__inner { background: var(--band); border-color: var(--band); }

/* Цветовые акценты бенто-плиток */
.tile-clients { background: var(--zinc) url('/home/images/tile-clients-bg.svg') no-repeat; background-size: cover; }
.tile-clients h3 { color: #fff; }
.tile-clients .chip { background: #323237; border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.85); }


.tile-book { height: 514px; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--border); }
.tile-book h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: .9; color: var(--ink); margin-bottom: 8px; }
.tile-book p { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); }
.tile-book .btn { margin-top: 16px; position: relative; z-index: 2; }
.tile-book__head { padding: 28px; position: relative; z-index: 2; }
.tile-book__img { position: absolute; left: 0; right: 0; bottom: 0; top: 220px; overflow: hidden; z-index: 1; border-radius: 0 0 32px 32px; }
.tile-book__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.tile-video { height: 780px; background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.tile-video__head { display: flex; align-items: center; gap: 14px; padding: 28px; flex-shrink: 0; }
.tile-video__head .ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tile-video__head .ava img { width: 100%; height: 100%; object-fit: cover; }
.tile-video__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-video__name { font-size: 22px; line-height: 1.35; letter-spacing: -.22px; color: var(--ink); }
.tile-video__cap { font-size: 14px; line-height: 1.5; letter-spacing: -.14px; color: var(--ink); }
.tile-video__cap .strong { color: var(--ink); }
.tile-video__cap .muted { color: var(--ash); }
.tile-video__media { position: relative; flex: 1; overflow: hidden; border-radius: 32px; display: block; }
.tile-video__bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-video__media iframe { width: 100%; height: 100%; border: 0; display: block; }

.tile-clients { height: 411px; display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.tile-clients h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: .9; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: 18px; background: #fff; color: var(--text); font-size: 16px; letter-spacing: -.16px; }

.tile-about { height: 225px; position: relative; overflow: hidden; }
.tile-about h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: .9; color: var(--ink); width: 171px; }
.tile-about .btn { position: absolute; left: 28px; top: 141px; }
.tile-about__fig { position: absolute; right: 0; bottom: 0; width: 122px; height: 197px; object-fit: contain; object-position: bottom; }

/* ============================================================ КЕЙСЫ */
#cases { padding-top: 80px; padding-bottom: 114px; }
.case { background: #fff; border: 1px solid var(--border); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.case__top { display: flex; flex-direction: column; gap: 32px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case__tag { padding: 8px 16px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); font-size: 16px; letter-spacing: -.16px; }
.case__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.04; color: var(--zinc); margin-bottom: 16px; }
.case__desc { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); }
.case__foot { display: flex; flex-direction: column; gap: 32px; }
.case__line { height: 1px; background: var(--border); }
.case__result { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--accent); }
.case__result img { width: 22px; height: 22px; flex-shrink: 0; }

.case--letters { position: relative; background: var(--band); border: 0; padding: 32px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.case--letters__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.04; color: var(--ink); }
.case--letters__count { font-size: 14px; letter-spacing: -.14px; color: var(--ash); margin-top: -6px; }
.case--letters .case--letters__btn { align-self: flex-start; }
.case--letters__img { position: relative; aspect-ratio: 524/261; border-radius: 12px; }
.case--letters__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 32px rgba(0,0,0,0.12)); border-radius: 12px; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--border); padding-block: 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__logo { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--sub); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a, .footer__link-btn { font-size: 14px; color: var(--text); transition: color .18s ease; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.footer__links a:hover, .footer__link-btn:hover { color: var(--accent-link); }

.footer__copy { font-size: 14px; color: var(--text); width: 100%; }

/* ============================================================ АДАПТИВ */
@media (max-width: 1260px) {
  .hero__grid { grid-template-columns: 1fr 440px; }
  .hero__title, .hero__sub { width: 100%; }
  .hero__media { width: 100%; }
  .bento { grid-template-columns: 1fr 1fr 1fr; }
  .tile-1000__txt { width: auto; flex: 1; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__col--video { grid-column: 1 / -1; order: 3; }
  .tile-video { height: 460px; }
  .tile-video__play { top: 50%; left: 50%; transform: translate(-50%,-50%); }
}
/* ============================================================ MOBILE MENU (overlay) */
.mobile-menu { display: none; }
@media (max-width: 880px) {
  .section-head, .cta-card__title { font-size: 38px; }
  .nav { height: 76px; }
  .nav__logo { flex: 1; min-width: 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .header.is-open { border-bottom-color: transparent; }
  .mobile-menu {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 76px);
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    overflow-y: auto;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu__nav {
    display: flex; flex-direction: column; align-items: stretch;
    padding: 8px 20px 32px;
  }
  .mobile-menu__nav a {
    display: flex; align-items: center;
    padding: 18px 4px; font-size: 20px; letter-spacing: -.2px;
    color: var(--ink); border-bottom: 1px solid var(--border);
  }
  .mobile-menu__nav a.is-active { color: var(--accent-link); }
  .mobile-menu__cta {
    margin-top: 20px; justify-content: center;
    border-bottom: 0 !important; padding: 16px 22px !important;
    font-size: 16px !important; color: #fff !important;
  }



  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 40px; }
  .hero__sub { font-size: 18px; }
  .hero__media { order: 2; align-self: center; width: 100%; max-width: 420px; height: auto; aspect-ratio: 514/564; }
  .hero__col { order: 1; }
  #tasks { margin-top: 0; }

  #services { padding-top: 56px; }
  #cta { padding-top: 80px; padding-bottom: 80px; }
  #cases { padding-top: 56px; padding-bottom: 64px; }
  .band-inner { padding: 56px 24px 64px; }
  .band-bg { border-radius: 32px; }
  .cards-2 { grid-template-columns: 1fr; }
  /* Карточка «Благодарственные письма» — статичный поток на планшете */
  .case--letters { padding: 24px 24px 0; }

  .cta-card { min-height: 0; }
  .cta-card__body { padding: 32px; max-width: none; }
  .cta-card__title { font-size: 34px; }
  .cta-card__media { position: relative; left: auto; top: auto; width: 78%; max-width: 320px; height: auto; aspect-ratio: 945/517; margin: 10px auto 0; }

  .bento { grid-template-columns: 1fr; }
  .bento__col--video { order: 0; }
  .tile-video { height: 460px; }
}
@media (max-width: 560px) {
  .container, .band-inner { padding-inline: 18px; }
  .section-head, .cta-card__title, .hero__title { font-size: 32px; }
  .panel { padding: 24px; }
  .panel__text { font-size: 18px; }
  .service, .case { padding: 24px; }
  .tile-20 .stat__num { font-size: 52px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab { flex-shrink: 0; padding: 14px 22px; font-size: 16px; }
}

/* ============================================================ EVENTS (Где меня можно услышать) */
#events { padding-top: 0; padding-bottom: 0; }
.events-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.events-head .section-head { margin-bottom: 0; }
.events-head__sub { font-size: 18px; line-height: 1.45; letter-spacing: -.18px; color: var(--text); max-width: 460px; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event { background: #fff; border: 1px solid var(--border); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 24px; min-height: 360px; }
.event__date { display: flex; align-items: baseline; gap: 8px; }
.event__date-day { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: .9; color: var(--accent); }
.event__date-rest { display: flex; flex-direction: column; gap: 2px; font-size: 14px; letter-spacing: -.14px; color: var(--text); }
.event__date-month { font-family: var(--font-display); font-size: 20px; line-height: 1; color: var(--ink); }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event__tag { padding: 6px 14px; border: 1px solid var(--border); border-radius: 18px; font-size: 14px; letter-spacing: -.14px; color: var(--text); background: #fff; }
.event__tag--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.event__tag--past { background: var(--band); color: var(--text); border-color: var(--band); }
.event__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.08; color: var(--ink); }
.event__desc { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); }
.event__cta { margin-top: auto; font-size: 14px; color: var(--accent-link); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 2px; }
.events-cta-row { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================ BLOG (Пишу, снимаю, делюсь) */
#blog { padding-top: 96px; padding-bottom: 64px; }
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.blog-head .section-head { margin-bottom: 0; }
.blog-head__sub { font-size: 18px; line-height: 1.45; letter-spacing: -.18px; color: var(--text); max-width: 460px; }
.blog-bento { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.blog-bento .post-col { display: flex; flex-direction: column; gap: 24px; }
.blog-bento .post-col .post { flex: 1; }
.post { background: #fff; border: 1px solid var(--border); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: transform .18s ease; }
.post:hover { transform: translateY(-2px); }
.post__type { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 18px; font-size: 14px; letter-spacing: -.14px; width: fit-content; }
.post__type--article { background: var(--band); color: var(--ink); }
.post__type--video   { background: var(--zinc); color: #fff; }
.post__type--podcast { background: var(--accent); color: #fff; }
.post__title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.04; color: var(--ink); }
.post__desc { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text); }
.post__meta { display: flex; gap: 16px; font-size: 14px; letter-spacing: -.14px; color: var(--ash); margin-top: auto; }
.post--featured { background: var(--band); border-color: var(--band); display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.post--featured .post__title { font-size: 36px; line-height: 1.04; }
.blog-secondary { display: grid; grid-template-columns: 1fr; gap: 24px; }
.blog-cta-row { display: flex; justify-content: center; margin-top: 40px; }

/* page hero (для /events и /blog) */
.page-hero { padding: 56px 0 24px; }
.page-hero__title { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.02; color: var(--ink); margin-bottom: 16px; }
.page-hero__sub { font-size: 22px; line-height: 1.35; letter-spacing: -.22px; color: var(--sub); max-width: 760px; }
.page-section { padding-top: 24px; padding-bottom: 96px; }
.page-section + .page-section { padding-top: 0; }
.subhead { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.04; color: var(--ink); margin-bottom: 24px; }

@media (max-width: 1080px) {
  .events-grid { grid-template-columns: 1fr 1fr; }
  .blog-secondary { grid-template-columns: 1fr 1fr; }
  .blog-bento { grid-template-columns: 1fr; }
  .post--featured .post__cover { aspect-ratio: 16/9; }
  .post--featured .post__title { font-size: 28px; }
}
@media (max-width: 720px) {
  .events-grid { grid-template-columns: 1fr; }
  .event { min-height: 0; padding: 24px; }
  .post { padding: 24px; }
  .blog-bento { gap: 20px; }
  .blog-bento .post-col { gap: 20px; }
  .blog-secondary { grid-template-columns: 1fr; gap: 16px; }
  .page-hero__title { font-size: 40px; }
  .page-hero__sub { font-size: 18px; }

  /* Единый размер плашек-тегов на мобиле (исключая .tab — он живет в скролл-ленте) */
  .chip, .case__tag, .post__type, .event__tag {
    font-size: 12px; line-height: 1.3; letter-spacing: -.12px;
    padding: 6px 12px; border-radius: 14px;
  }
}

/* ============================================================ BLOG covers */
.post { overflow: hidden; padding: 0; }
.post__cover { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--band); }
.post__body { display: flex; flex-direction: column; gap: 16px; padding: 28px 32px 32px; flex: 1; }
.post--no-cover .post__body { padding: 32px; gap: 20px; }
.post--featured .post__cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
.post--featured .post__body { padding: 36px 40px; gap: 16px; justify-content: center; }
.post__title { margin: 0; }
.post__body .post__meta { margin-top: auto; }
@media (max-width: 720px) {
  .post__body, .post--featured .post__body, .post--no-cover .post__body { padding: 24px; }
  .post__body, .post--featured .post__body, .post--no-cover .post__body { padding: 20px; gap: 12px; }
  .post__title { font-size: 22px; }
  .post--featured .post__title { font-size: 24px; }
  .post__desc { font-size: 14px; line-height: 1.45; }
  .post__cover, .post--featured .post__cover { aspect-ratio: 16/9; height: auto; min-height: 0; }
  .post__meta { font-size: 12px; gap: 12px; }
  
}

/* ============================================================ MOBILE COMPACT */
@media (max-width: 720px) {
  .container, .band-inner { padding-inline: 16px; }
  .band-inner { padding-top: 48px; padding-bottom: 56px; }
  .band-bg { border-radius: 28px; }

  /* Услуги — компактнее */
  .service { padding: 24px; border-radius: 28px; }
  .icon-tile { width: 52px; height: 52px; border-radius: 18px; margin-bottom: 20px; }
  .icon-tile__inner { width: 42px; height: 42px; border-radius: 14px; }
  .icon-tile__inner img { width: 22px; height: 22px; }
  .service__title { font-size: 24px; margin-bottom: 12px; }
  .service__desc { font-size: 15px; margin-bottom: 20px; }
  .checklist { gap: 6px; margin-bottom: 24px; }
  .checklist li { font-size: 14px; line-height: 1.4; }
  .checklist li img { width: 18px; height: 18px; }

  /* Кейсы — компактнее */
  .case { padding: 24px; border-radius: 28px; gap: 20px; }
  .case__top { gap: 20px; }
  .case__title { font-size: 24px; margin-bottom: 12px; }
  .case__desc { font-size: 15px; }
  .case__foot { gap: 20px; }
  .case__result { font-size: 15px; }
  /* Карточка «Благодарственные письма» — статичный поток */
  .case--letters { padding: 24px 24px 0; }
  .case--letters__title { font-size: 24px; }
  .case--letters .case--letters__btn { width: 100%; }

  /* Панель задач */
  .panel { padding: 20px; border-radius: 24px; gap: 14px; }
  .panel__row { gap: 12px; }
  .panel__row + .panel__row { padding-top: 14px; }
  .panel__icon { width: 22px; height: 22px; }
  .panel__text { font-size: 16px; line-height: 1.35; }
  

  /* Бенто «Почему стоит обратиться» — двухколоночная мобильная сетка в духе awesomic */
  .bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento__col { display: contents; }
  .tile { padding: 20px; border-radius: 24px; }

  .tile-video { grid-column: 1 / -1; order: 1; height: auto; border-radius: 28px; }
  .tile-video__head { padding: 20px; gap: 12px; }
  .tile-video__head .ava { width: 56px; height: 56px; }
  .tile-video__meta { gap: 2px; }
  .tile-video__name { font-size: 18px; }
  .tile-video__cap { font-size: 13px; }
  .tile-video__media { aspect-ratio: 1/1; border-radius: 24px; }
  .tile-video__play { width: 64px; height: 64px; }
  .tile-video__play img.ring { width: 64px; height: 64px; }
  .tile-video__play img.tri { width: 24px; height: 24px; left: 20px; top: 20px; }

  .tile-20 { grid-column: span 1; order: 2; height: auto; min-height: 132px; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
  .tile-20 .stat__num { font-size: 36px; }
  .tile-20 .stat__label { font-size: 13px; line-height: 1.3; }

  .tile-stack { grid-column: span 1; order: 3; height: auto; min-height: 132px; padding: 18px; gap: 6px; }
  .tile-stack .stat__num { font-size: 36px; }
  .tile-stack .stat__label { font-size: 13px; line-height: 1.3; }
  .tile-stack__ic { display: none; }

  .tile-1000 { grid-column: 1 / -1; order: 4; height: auto; min-height: 100px; padding: 20px; align-items: center; }
  .tile-1000 .stat__num { font-size: 32px; }
  .tile-1000__ic { width: 52px; height: 52px; border-radius: 18px; }

  .tile-book {
    grid-column: 1 / -1; order: 5;
    height: auto; min-height: 0;
    padding: 0; display: flex; flex-direction: column;
  }
  .tile-book__head { padding: 20px 20px 0; }
  .tile-book__head h3 { font-size: 24px; }
  .tile-book__head p { font-size: 15px; }
  .tile-book__img {
    position: relative; left: auto; right: auto; top: auto;
    width: auto; height: 260px;
    margin: 20px 0 0; overflow: hidden;
  }
  .tile-book__img img {
    position: relative; left: auto; top: auto;
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
    margin: 0;
  }

  .tile-clients { grid-column: 1 / -1; order: 6; height: auto; gap: 16px; }
  .tile-clients h3 { font-size: 22px; }
  

  .tile-about { grid-column: 1 / -1; order: 7; height: auto; min-height: 180px; padding: 20px; }
  .tile-about h3 { font-size: 22px; width: auto; max-width: 200px; }
  .tile-about .btn { position: static; margin-top: 14px; width: auto; padding: 10px 18px; font-size: 14px; }
  .tile-about__fig { width: 84px; height: 140px; }

  /* Hero */
  .hero { padding-top: 24px; }
  .hero__col { gap: 20px; }
  .hero__sub { font-size: 16px; }
  .badge span { font-size: 14px; }
  .hero__media { max-width: 100%; border-radius: 24px; }

  /* CTA */
  .cta-card { border-radius: 28px; }
  .cta-card__body { padding: 24px; gap: 20px; max-width: none; }
  .cta-card__sub { font-size: 15px; margin-top: -8px; }

  /* Section paddings — единая ритмика на мобильном */
  #services, #cases, #blog { padding-top: 48px; padding-bottom: 48px; }
  #cta { padding-top: 56px; padding-bottom: 56px; }
  #when { padding-top: 8px; }
  #how, #result, #faq { padding-top: 48px; padding-bottom: 0; }
  #faq { padding-bottom: 56px; }
  .head-gap { margin-bottom: 24px; }
  #services .head-gap { margin-bottom: 28px; }
  #how .head-gap { margin-bottom: 28px; }

  /* Все основные заголовки — единый размер на мобильном */
  .hero__title,
  .section-head,
  .cta-card__title,
  .result-split__head,
  .faq-aside__title,
  .page-hero__title { font-size: 32px; line-height: 1.04; }
  .tasks__head { margin-bottom: 20px; }

  /* Brief form — одна колонка */
  .brief-form__grid { grid-template-columns: 1fr; gap: 14px; }
  .brief-form__submit { width: 100%; }
  .brief-form--done { padding: 24px; }
  .brief-form--done h3 { font-size: 22px; }


  /* События */
  .events-head, .blog-head { gap: 12px; margin-bottom: 24px; }
  .events-head__sub, .blog-head__sub { font-size: 15px; }
  .event { gap: 16px; padding: 22px; border-radius: 28px; }
  .event__date-day { font-size: 32px; }
  .event__date-month { font-size: 16px; }
  .event__date-rest { font-size: 12px; }
  .event__title { font-size: 20px; }
  .event__desc { font-size: 14px; }

  /* Кнопки — позволяем перенос, чтобы не уезжали из карточек */
  .btn { white-space: normal; padding: 14px 22px; font-size: 15px; width: 100%; }
  .btn-sm { padding: 10px 18px; font-size: 13px; width: auto; }
  .nav__cta.btn-sm { width: auto; }

  /* Header — выпадающее меню */
  .nav { height: 64px; }
  .nav__logo { font-size: 18px; }
  .header.is-open .nav__links { box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .header.is-open .nav__cta { margin: 12px 24px 20px; align-self: stretch; justify-content: center; }
}

@media (max-width: 420px) {
  .hero__title, .section-head, .cta-card__title { font-size: 30px; }
  .service__title, .case__title, .post--featured .post__title { font-size: 22px; }
  .event__date-day { font-size: 28px; }
}

/* ============================================================ SERVICE PAGE */
#when { position: relative; z-index: 2; margin-top: -28px; }
#how { padding-top: 96px; padding-bottom: 0; }
#how .head-gap { margin-bottom: 48px; }
#result { padding-top: 96px; padding-bottom: 0; }
#faq { padding-top: 96px; padding-bottom: 96px; }

/* Result split: headline + dark panel */
.result-split { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: auto auto; column-gap: 48px; row-gap: 32px; align-items: start; }
.result-split__head { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.02; letter-spacing: -1px; color: var(--zinc); margin: 0; }
.result-split__head .accent { color: var(--accent); }
.result-split__panel { grid-column: 2; grid-row: 1 / span 2; }
.result-split__testi { grid-column: 1; grid-row: 2; }


/* FAQ — split layout: aside + list of light pills */
.faq-split { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.faq-aside { display: flex; flex-direction: column; gap: 48px; position: sticky; top: 100px; }
.faq-aside__title { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.02; letter-spacing: -1px; color: var(--zinc); margin: 0; }
.faq-aside__card { background: var(--band); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq-aside__card h3 { font-family: var(--font-text); font-weight: 600; font-size: 18px; letter-spacing: -.18px; color: var(--ink); margin: 0; }
.faq-aside__card p { font-family: var(--font-text); font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--ash); margin: 0 0 8px 0; }
.faq-aside__card .btn { align-self: flex-start; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--band); border-radius: 28px; padding: 22px 28px; transition: padding .2s; }
.faq-item[open] { padding-bottom: 26px; }
.faq-item__sum { list-style: none; display: flex; align-items: center; gap: 18px; cursor: pointer; user-select: none; }
.faq-item__sum::-webkit-details-marker { display: none; }
.faq-item__q { flex: 1; font-family: var(--font-text); font-weight: 500; font-size: 20px; line-height: 1.35; letter-spacing: -.2px; color: var(--ink); }
.faq-item__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s, background .2s, color .2s; }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); background: var(--zinc); color: #fff; }
.faq-item__a { margin: 14px 0 0 0; font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--ash); max-width: 92%; }

@media (max-width: 920px) {
  #when { margin-top: 0; }
  #how, #result, #faq { padding-top: 56px; padding-bottom: 0; }
  #faq { padding-bottom: 64px; }
  .result-split { display: flex; flex-direction: column; gap: 20px; }
  .result-split__head { font-size: 36px; order: 0; margin-bottom: 4px; }
  .result-split__panel { order: 1; }
  .result-split__testi { order: 2; margin-top: 0; }


  .faq-split { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; gap: 20px; flex-direction: row; align-items: center; justify-content: space-between; }
  .faq-aside__title { font-size: 32px; }
  .faq-aside__card { display: none; }
}
@media (max-width: 560px) {
  .result-split__head { font-size: 32px; }
  .faq-item { padding: 18px 20px; border-radius: 22px; }
  .faq-item__q { font-size: 16px; }
  .faq-item__a { font-size: 14px; max-width: 100%; }
  .faq-item__icon { width: 30px; height: 30px; }
}

/* ============================================================ NAV DROPDOWN */
.nav__item { position: relative; }
.nav-drop { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 280px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 24px 48px rgba(0,0,0,.10); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 50; }
.nav__item:hover > .nav-drop,
.nav__item:focus-within > .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 8px); }
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop__label { font-family: var(--font-text); font-size: 12px; letter-spacing: .02em; color: var(--ash); padding: 4px 12px 8px; }
.nav-drop a { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 15px !important; color: var(--ink) !important; transition: background .15s ease, color .15s ease; }
.nav-drop a:hover { background: var(--band); color: var(--ink) !important; }
.nav-drop a img { width: 18px !important; height: 18px !important; opacity: .85; }
.nav__item > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav__item > a img { transition: transform .2s ease; }
.nav__item:hover > a img,
.nav__item:focus-within > a img { transform: rotate(180deg); }
.nav__item:hover > a,
.nav__item:focus-within > a { color: var(--accent); }

/* ============================================================ TESTIMONIAL */
.testi { background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; margin-top: 28px; max-width: 460px; }
.testi__head { display: flex; align-items: center; gap: 14px; }
.testi__ava { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--band); }
.testi__ava img { width: 100%; height: 100%; object-fit: cover; }
.testi__who { display: flex; flex-direction: column; }
.testi__name { font-family: var(--font-text); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -.16px; }
.testi__role { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--ash); }
.testi__quote { font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0; }

@media (max-width: 920px) {
  .testi { max-width: none; margin-top: 4px; }
}

/* ============================================================ MOBILE SERVICES ACCORDION */
.mobile-menu__group { border-bottom: 1px solid var(--border); }
.mobile-menu__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: 0; padding: 18px 4px;
  font-family: inherit; font-size: 20px; letter-spacing: -.2px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.mobile-menu__toggle img { width: 14px; height: 14px; transition: transform .2s ease; }
.mobile-menu__group.is-open .mobile-menu__toggle img { transform: rotate(180deg); }
.mobile-menu__toggle.is-active { color: var(--accent-link); }
.mobile-menu__sub { display: flex; flex-direction: column; padding: 4px 4px 16px; gap: 4px; }
.mobile-menu__sub a {
  display: flex !important; align-items: center; gap: 12px;
  padding: 12px 12px !important; border-bottom: 0 !important;
  font-size: 16px !important; color: var(--ink) !important;
  border-radius: 14px; background: var(--band);
}
.mobile-menu__sub a.is-active { background: var(--zinc); color: #fff !important; }
.mobile-menu__sub a img { width: 18px; height: 18px; opacity: .9; }
.mobile-menu__group + a, .mobile-menu__group + button { /* keep separation */ }

/* ============================================================ RICH FOOTER */
.footer--rich { background: var(--zinc); color: #fff; border-top: 0; padding-block: 64px 32px; }
.footer--rich .footer__logo { color: #fff; font-size: 24px; }
.footer__grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__tagline { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.7); max-width: 320px; margin: 0; }
.footer__cta { margin-top: 8px; }
.footer__title {
  font-family: var(--font-text); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin: 0 0 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__list a, .footer__list .footer__link-btn {
  font-size: 15px; color: rgba(255,255,255,.85); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; text-align: left; transition: color .15s ease;
}
.footer__list a:hover, .footer__list .footer__link-btn:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 24px;
}
.footer--rich .footer__copy { color: rgba(255,255,255,.5); width: auto; font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__legal a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s ease; }
.footer__legal a:hover { color: #fff; }

@media (max-width: 880px) {
  .footer--rich { padding-block: 48px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================ LEGAL PAGES */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal__title { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.05; color: var(--ink); margin: 0 0 24px; }
.legal__lede { font-size: 18px; line-height: 1.55; color: var(--text); margin: 0 0 32px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--ink); margin: 32px 0 12px; }
.legal p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.legal__note { margin-top: 32px; padding: 16px 20px; background: var(--band); border-radius: 18px; font-size: 15px; color: var(--text); }
@media (max-width: 720px) {
  .legal { padding-top: 32px; padding-bottom: 64px; }
  .legal__title { font-size: 36px; }
  .legal h2 { font-size: 22px; }
}

/* ============================================================ CALENDAR PAGE */
.badge--link { text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.badge--link:hover { background: var(--band); transform: translateY(-1px); }

.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ash); flex-shrink: 0; }
.cal-dot--busy { background: #d4d4d8; }
.cal-dot--limited { background: #f5a524; }
.cal-dot--open { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }

.hero__grid--calendar { grid-template-columns: minmax(0,1fr) 380px; align-items: start; gap: 40px; }
.hero__grid--calendar .hero__col { padding-bottom: 8px; }

/* ---------- Виджет загрузки: светлая карточка в стиле .tile ---------- */
.cal-capacity {
  background: #fff; border: 1px solid var(--border);
  border-radius: 32px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.cal-capacity__eyebrow { font-size: 14px; color: var(--ash); }
.cal-capacity__row { display: flex; align-items: baseline; gap: 10px; }
.cal-capacity__num { font-family: var(--font-display); font-weight: 400; font-size: 72px; line-height: .9; color: var(--ink); }
.cal-capacity__of { font-size: 18px; color: var(--ash); }
.cal-capacity__label { font-size: 16px; line-height: 1.4; color: var(--sub); }
.cal-capacity__bar { display: flex; gap: 6px; }
.cal-capacity__seg { flex: 1; height: 8px; border-radius: 4px; background: var(--band); }
.cal-capacity__seg.is-taken { background: var(--ink); }
.cal-capacity__free { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); padding-top: 16px; border-top: 1px solid var(--border); }
.cal-capacity__free b { font-weight: 600; color: var(--accent); }
.cal-capacity__cta { align-self: flex-start; }

.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.cal-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text); }
.cal-legend li { display: inline-flex; align-items: center; gap: 8px; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cal-month {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 24px; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px;
}
.cal-month--open { border-color: rgba(22,163,74,.35); }
.cal-month--limited { border-color: rgba(245,165,36,.4); }
.cal-month--busy { background: var(--band); border-color: transparent; }
.cal-month__date { display: flex; flex-direction: column; }
.cal-month__m { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--ink); }
.cal-month__y { font-size: 13px; color: var(--ash); margin-top: 4px; }
.cal-month__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-month__status { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.cal-month__note { font-size: 14px; line-height: 1.5; color: var(--text); margin: 0; }
.cal-month__cta { white-space: nowrap; }

.cal-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cal-step { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cal-step__n { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; color: var(--accent); }
.cal-step__t { font-family: var(--font-text); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; }
.cal-step__d { font-size: 14px; line-height: 1.5; color: var(--text); margin: 0; }

@media (max-width: 1000px) {
  .hero__grid--calendar { grid-template-columns: 1fr; gap: 28px; }
  .hero__grid--calendar .hero__col { padding-bottom: 0; }
  .cal-capacity { order: 2; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-steps { grid-template-columns: 1fr 1fr; }
  .hero--standalone { padding-bottom: 56px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .section-pad--tight { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 600px) {
  .cal-capacity { padding: 22px; border-radius: 24px; }
  .cal-capacity__num { font-size: 56px; }
  .cal-month { grid-template-columns: 1fr; gap: 14px; padding: 20px; border-radius: 20px; }
  .cal-month__cta { width: 100%; justify-content: center; }
  .cal-steps { grid-template-columns: 1fr; }
  .cal-head { align-items: flex-start; }
  .hero--standalone { padding-bottom: 40px; }
}

/* ============================================================ ABOUT (страница «Обо мне») */
.about-hero { padding: 56px 0 32px; }
.about-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-hero__photo { aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--band); }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-hero__eyebrow { font-size: 16px; color: var(--accent); margin-bottom: 16px; }
.about-hero__title { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.02; color: var(--ink); margin-bottom: 20px; }
.about-hero__lede { font-size: 22px; line-height: 1.4; letter-spacing: -.22px; color: var(--sub); }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--border); }
.about-stat { display: flex; flex-direction: column; gap: 6px; }
.about-stat__n { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: .9; color: var(--ink); }
.about-stat__l { font-size: 14px; line-height: 1.4; color: var(--text); }

.about-bio { display: grid; grid-template-columns: 1fr minmax(0, 760px) 1fr; }
.about-bio__inner { grid-column: 2; font-size: 19px; line-height: 1.65; color: var(--sub); }
.about-bio__inner > * + * { margin-top: 1.4em; }
.about-bio__inner p { margin: 0; }
.about-bio__inner p + p { margin-top: 1.4em; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card { background: #fff; border: 1px solid var(--border); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.about-card--dark { background: var(--zinc); border-color: var(--zinc); color: #fff; }
.about-card--dark .about-card__title { color: #fff; }
.about-card--dark .about-card__list li { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.12); }
.about-card--dark .about-card__list li b { color: #fff; }
.about-card__eyebrow { font-size: 14px; color: var(--ash); }
.about-card__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; color: var(--ink); margin: 0; }
.about-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.about-card__list li { padding: 14px 0; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.4; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.about-card__list li:first-child { border-top: 0; padding-top: 0; }
.about-card__list li b { font-family: var(--font-text); font-weight: 600; color: var(--ink); font-size: 17px; }

.about-roles { display: flex; flex-wrap: wrap; gap: 10px; }
.about-roles li { padding: 12px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-size: 15px; line-height: 1.3; }

.about-companies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-company { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px 20px; }
.about-company__name { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.about-company__role { font-size: 14px; line-height: 1.4; color: var(--text); }

@media (max-width: 1000px) {
  .about-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .about-hero__title { font-size: 44px; }
  .about-hero__lede { font-size: 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stat__n { font-size: 44px; }
  .about-bio { grid-template-columns: 1fr; }
  .about-bio__inner { grid-column: 1; font-size: 17px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 28px; border-radius: 24px; }
  .about-card__title { font-size: 26px; }
  .about-companies { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat__n { font-size: 36px; }
  .about-companies { grid-template-columns: 1fr; }
}

/* ============================================================ ARTICLE (шаблон статьи блога) */
.article-hero { padding: 56px 0 24px; }
.article-hero__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--ash); margin-bottom: 20px; }
.article-hero__type { display: inline-flex; padding: 4px 12px; border-radius: 12px; background: var(--band); color: var(--ink); font-size: 13px; }
.article-hero__type--video { background: var(--accent); color: #fff; }
.article-hero__type--podcast { background: var(--ink); color: #fff; }
.article-hero__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ash); display: inline-block; }
.article-hero__title { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.04; color: var(--ink); margin-bottom: 20px; max-width: 920px; }
.article-hero__lede { font-size: 22px; line-height: 1.4; letter-spacing: -.22px; color: var(--sub); max-width: 820px; }
.article-cover { margin: 32px 0 56px; border-radius: 32px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--band); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-wrap { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; }
.article-body { grid-column: 2; font-family: var(--font-text); font-size: 18px; line-height: 1.65; color: var(--sub); }
.article-body > * + * { margin-top: 1.25em; }
.article-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.08; color: var(--ink); margin-top: 2em; }
.article-body h3 { font-family: var(--font-text); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--ink); margin-top: 1.6em; }
.article-body p { margin: 0; }
.article-body a { color: var(--accent-link); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }
.article-body blockquote {
  margin: 2em 0; padding: 24px 28px; border-left: 3px solid var(--accent);
  background: var(--band); border-radius: 0 18px 18px 0;
  font-size: 20px; line-height: 1.5; color: var(--ink);
}
.article-body img { margin: 2em 0; border-radius: 18px; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 2px 6px; background: var(--band); border-radius: 6px; }

.article-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.article-foot__back { font-size: 14px; color: var(--ink); }
.article-foot__share { display: flex; gap: 8px; }

@media (max-width: 720px) {
  .article-hero__title { font-size: 36px; }
  .article-hero__lede { font-size: 18px; }
  .article-cover { border-radius: 24px; margin: 24px 0 40px; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-body { grid-column: 1; font-size: 17px; }
  .article-body h2 { font-size: 28px; }
  .article-body h3 { font-size: 19px; }
  .article-body blockquote { padding: 18px 20px; font-size: 17px; }
}
