/* ============================================================
   Владимир Чиль — веб-приложения, SaaS, digital-маркетинг
   Дизайн-система сайта
   ============================================================ */

:root {
  --ink: #0a0d14;
  --ink-2: #1d2430;
  --muted: #5c6879;
  --muted-2: #8b95a5;
  --line: #e7eaf0;
  --line-soft: #f1f3f7;
  --surface: #f7f9fc;
  --surface-2: #eef2f8;
  --white: #ffffff;

  --brand: #2f5bff;
  --brand-dark: #1e3fd8;
  --brand-soft: #eef2ff;
  --violet: #7b57f5;
  --mint: #05b184;

  --grad: linear-gradient(120deg, #2f5bff 0%, #7b57f5 100%);
  --grad-text: linear-gradient(120deg, #6f93ff 0%, #b79bff 60%, #7be7c6 100%);

  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 20, .05), 0 4px 16px rgba(10, 13, 20, .04);
  --shadow-md: 0 2px 6px rgba(10, 13, 20, .06), 0 18px 48px rgba(10, 13, 20, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.55rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grid > *, .about-grid > *, .split > *, .process > *, .stack__row > * { min-width: 0; }
.narrow { max-width: 820px; }

/* ---------- Секции ---------- */
.section { padding: clamp(60px, 7vw, 110px) 0; }
.section--tight { padding: clamp(46px, 5vw, 78px) 0; }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad);
}
.eyebrow--light { color: #9db4ff; }
.eyebrow--light::before { background: linear-gradient(90deg, #6f93ff, #b79bff); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .98rem; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  max-width: 100%;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 8px 26px rgba(10, 13, 20, .18); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 13, 20, .24); }
.btn--brand { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(47, 91, 255, .32); }
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47, 91, 255, .4); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: #c9d1e0; transform: translateY(-2px); }
.btn--on-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand); font-size: .96rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Контакты по клику ---------- */
.contacts-reveal { display: inline-flex; flex-direction: column; gap: 10px; }
.contacts-reveal--full { display: flex; width: 100%; }
.contacts-reveal--full .btn { width: 100%; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links[hidden] { display: none; }
.contacts-reveal--full .contact-links { flex-direction: column; }
.contacts-reveal .btn.is-hidden { display: none; }
.contact-hint { flex-basis: 100%; margin: 2px 0 0; font-size: .89rem; color: var(--muted); }
.cta .contact-hint, .hero .contact-hint { color: rgba(255,255,255,.62); }
.contact-hint[hidden] { display: none; }
.cta__note { font-size: .93rem; color: rgba(255,255,255,.5) !important; margin-top: 10px; }

/* ---------- Шапка ---------- */
.header {
  position: relative; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
  color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(47, 91, 255, .35);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.logo__role { font-size: .74rem; color: var(--muted-2); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500;
  color: var(--ink-2); transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--surface-2); }
.nav a.is-active { color: var(--brand); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 140%;
  background:
    radial-gradient(48% 42% at 18% 12%, rgba(47, 91, 255, .42) 0%, transparent 62%),
    radial-gradient(42% 38% at 82% 6%, rgba(123, 87, 245, .38) 0%, transparent 60%),
    radial-gradient(36% 34% at 68% 88%, rgba(5, 177, 132, .18) 0%, transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 4vw, 64px);
  align-items: center; padding: clamp(60px, 7vw, 104px) 0 clamp(52px, 6vw, 88px);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: rgba(255, 255, 255, .72); font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero__actions .contacts-reveal { flex-direction: row; flex-wrap: wrap; align-items: center; }
.hero__note { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.58); font-size: .92rem; }
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(5,177,132,.18); flex: none; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero__tags span {
  padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82);
}

/* ---------- Полоса статистики ---------- */
.stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stats__item:last-child { border-right: 0; }
.stats__value { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.stats__label { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.45; }

/* ---------- Сетки карточек ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1ec; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge--soft { background: var(--surface-2); color: var(--ink-2); }

/* Услуги */
.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-card__tagline { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card .link-arrow { margin-top: 4px; }

/* Типы сайтов */
.type-card { padding: 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.type-card:hover { border-color: #dbe1ec; box-shadow: var(--shadow-sm); }
.type-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.type-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.type-card .icon-badge { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 14px; }
.type-card .icon-badge svg { width: 19px; height: 19px; }

/* ---------- Кейсы ---------- */
.case-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__cat { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.case-card__body h3 { font-size: 1.14rem; margin: 0; }
.case-card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.badge-wip {
  display: inline-block; font-style: normal; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; padding: 3px 9px; margin-left: 6px; border-radius: 999px;
  background: #fff5e5; color: #a25c00; border: 1px solid #ffe0b2; text-transform: none;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  font-size: .76rem; padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}

.team-note {
  margin-top: 28px; padding: 26px 30px; background: #fff;
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; max-width: 62em;
}
.team-note p { color: var(--muted); margin-bottom: 1em; }
.team-note p:last-child { margin-bottom: 0; }

/* ---------- Процесс ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process__step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.process__step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
}
.process__num { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }
.process__step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Обо мне ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 4vw, 64px); align-items: start; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }

/* Колонка «фото + карточка» на странице «Обо мне» */
.about-side { display: grid; gap: 20px; min-width: 0; }

/* Компактная карточка с фото — не растягивается на всю колонку */
.about-grid--compact { grid-template-columns: 200px 1fr; align-items: start; gap: clamp(28px, 4vw, 56px); }
/* страница «Обо мне»: в колонке не только фото, но и карточка — нужна шире */
.about-grid--compact.about-grid--side { grid-template-columns: 300px 1fr; }
.about-avatar { width: 100%; max-width: 200px; }
.about-avatar img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
}
.about-avatar__caption { margin-top: 14px; text-align: center; }
.about-avatar__caption b { display: block; font-size: .98rem; }
.about-avatar__caption span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.about-text p { color: var(--muted); }
.about-text p.lead { color: var(--ink); font-size: 1.12rem; font-weight: 500; }

.principles { display: grid; gap: 18px; margin-top: 8px; }
.principle { display: flex; gap: 14px; }
.principle__check {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-top: 3px;
}
.principle__check svg { width: 14px; height: 14px; }
.principle h4 { margin: 0 0 3px; font-size: 1rem; }
.principle p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Стек ---------- */
.stack { display: grid; gap: 20px; }
.stack__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stack__row:last-child { border-bottom: 0; padding-bottom: 0; }
.stack__group { font-weight: 600; color: var(--ink); font-size: .98rem; }
.stack__items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__items span {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -6px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details[open] summary { color: var(--brand); }
.faq__answer { padding: 0 0 24px; color: var(--muted); max-width: 62em; }
.faq__answer p { margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 26px; padding: clamp(40px, 5vw, 68px); }
.cta::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 160%;
  background: radial-gradient(45% 55% at 20% 100%, rgba(47,91,255,.5) 0%, transparent 62%),
              radial-gradient(40% 50% at 82% 90%, rgba(123,87,245,.42) 0%, transparent 60%);
}
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.7); margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { width: 100%; }
.cta__actions .contacts-reveal { width: 100%; }
.cta__contact { font-size: .9rem; color: rgba(255,255,255,.5); text-align: center; }

/* ---------- Страницы: шапка ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(42px, 5vw, 74px) 0 clamp(36px, 4vw, 58px); }
.page-hero h1 { max-width: 18em; }
.page-hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 46em; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: var(--muted-2); }

/* ---------- Контент-страницы ---------- */
.prose { font-size: 1.04rem; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }

/* Каналы трафика */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 8px; }
.channel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.channel h3 { font-size: .99rem; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.channel h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.channel p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .channels { grid-template-columns: 1fr; } }

.sticky-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card p { color: var(--muted); font-size: .94rem; }
.aside-card .btn { width: 100%; margin-top: 4px; }
.facts { display: grid; gap: 14px; margin-bottom: 22px; }
.facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .94rem; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.facts li > span { min-width: 0; line-height: 1.45; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts b { font-weight: 600; text-align: right; }
.about-side .facts b { white-space: nowrap; flex: none; }
.facts span { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(30px, 4vw, 60px); align-items: start; }

/* Метрики кейса */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 8px; }
.metric { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.metric__value { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.metric__label { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.case-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.callout {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p { margin: 0; color: var(--ink-2); }
.callout b { display: block; margin-bottom: 4px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding: clamp(46px, 5vw, 70px) 0 32px; font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; }
.footer__about p { max-width: 30em; margin: 14px 0 0; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 24px; font-size: .86rem; color: rgba(255,255,255,.4); }
.footer .logo__name { color: #fff; }
.footer .logo__role { color: rgba(255,255,255,.5); }

/* ---------- Страница креативов ---------- */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; align-items: end; }
.ad { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.ad img { width: 100%; height: auto; border-radius: 8px; background: var(--surface-2); }
.ad figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.ad figcaption b { font-size: .92rem; color: var(--ink); }
.ad figcaption .link-arrow { margin-left: auto; font-size: .86rem; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(80px, 10vw, 150px) 0; text-align: center; }
.notfound p { color: var(--muted); max-width: 36em; margin: 0 auto 26px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 620px; margin-top: 8px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .about-grid, .split, .cta__inner { grid-template-columns: 1fr; }
  .about-grid--compact,
  .about-grid--compact.about-grid--side { grid-template-columns: 1fr; }
  .about-grid--compact .about-avatar,
  .about-side .about-avatar {
    display: flex; align-items: center; gap: 16px; max-width: none; margin-bottom: 4px;
  }
  .about-grid--compact .about-avatar img,
  .about-side .about-avatar img { width: 84px; height: 84px; flex: none; }
  .about-grid--compact .about-avatar__caption,
  .about-side .about-avatar__caption { margin-top: 0; text-align: left; min-width: 0; }
  /* Каналы трафика */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 8px; }
.channel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.channel h3 { font-size: .99rem; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.channel h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.channel p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .channels { grid-template-columns: 1fr; } }

.sticky-aside { position: static; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
    box-shadow: 0 20px 40px rgba(10,13,20,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav .nav__cta {
    display: block; margin-top: 10px; text-align: center; color: #fff;
    background: var(--grad); border-radius: 999px; font-weight: 600; padding: 14px 20px;
  }
  .nav .nav__cta:hover { background: var(--grad); }
  .burger { display: inline-flex; }
  .header__cta .btn--desktop { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .page-hero .btn { width: 100%; }
  .logo__role { display: none; }
  .logo__mark { width: 34px; height: 34px; border-radius: 10px; font-size: .76rem; }
  .header__inner { height: 66px; gap: 14px; }
  .wrap { padding: 0 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 24px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Появление блоков при прокрутке */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Интерактивная панель первого экрана (вместо статичной картинки)
   ============================================================ */
.hero-app {
  position: relative;
  perspective: 1200px;
  --tilt-x: 0deg; --tilt-y: 0deg;
}
.hero-app::before {
  content: ""; position: absolute; inset: -14% -8% -18% -8%;
  background:
    radial-gradient(48% 46% at 30% 22%, rgba(47, 91, 255, .38) 0%, transparent 70%),
    radial-gradient(46% 44% at 74% 74%, rgba(123, 87, 245, .32) 0%, transparent 72%);
  filter: blur(6px); pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .85; }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 1; }
}

.hero-app__frame {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(165deg, rgba(27, 34, 50, .96) 0%, rgba(12, 16, 26, .97) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: 14px 16px 16px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  overflow: hidden;
}
.hero-app__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 34%, transparent 70%, rgba(255,255,255,.06) 100%);
  opacity: .55;
}

/* Шапка «браузера» */
.hero-app__bar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-app__dots { display: flex; gap: 6px; flex: none; }
.hero-app__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hero-app__dots i:first-child { background: rgba(255, 99, 99, .55); }
.hero-app__dots i:nth-child(2) { background: rgba(255, 199, 92, .5); }
.hero-app__dots i:nth-child(3) { background: rgba(5, 177, 132, .55); }
.hero-app__url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .78rem; color: rgba(255,255,255,.5); background: rgba(255,255,255,.05);
  border-radius: 999px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.07);
}
.hero-app__live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(5, 177, 132, .95);
}
.hero-app__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: heroPulse 1.8s ease-in-out infinite; }
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,177,132,.5); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(5,177,132,0); opacity: .6; }
}

/* Вкладки */
.hero-app__tabs { position: relative; display: flex; gap: 4px; margin: 12px 0 14px; }
.hero-app__tab {
  flex: 1; appearance: none; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 500;
  padding: 8px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: rgba(255,255,255,.55);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.hero-app__tab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.hero-app__tab.is-active { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.hero-app__tab:focus-visible { outline: 2px solid rgba(111, 147, 255, .9); outline-offset: 2px; }

/* Экраны */
.hero-app__screens { position: relative; min-height: 268px; }
.hero-app__screen[hidden] { display: none; }
.hero-app__screen:focus-visible { outline: none; }
.hero-app__screen.is-active { animation: heroScreenIn .45s cubic-bezier(.22,.61,.36,1) both; }
@keyframes heroScreenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-app__screen-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 14px;
}
.hero-app__chip {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78);
}
.hero-app__chip--up { background: rgba(5,177,132,.14); border-color: rgba(5,177,132,.34); color: #6ee7bf; }

/* Нижняя строка показателей */
.hero-app__foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
}
.hero-app__foot span { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: rgba(255,255,255,.5); }
.hero-app__foot b { font-size: 1.02rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* Экран «Трафик» */
.hero-chan { display: grid; gap: 12px; }
.hero-chan__row {
  display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 12px;
  padding: 4px 6px; margin: -4px -6px; border-radius: 10px;
  transition: background .25s ease;
}
.hero-chan__row:hover { background: rgba(255,255,255,.05); }
.hero-chan__name { font-size: .84rem; color: rgba(255,255,255,.74); }
.hero-chan__track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.hero-chan__fill {
  display: block; height: 100%; width: var(--w); border-radius: 999px;
  background: linear-gradient(90deg, #2f5bff 0%, #7b57f5 70%, #7be7c6 100%);
  transform-origin: left center;
  animation: heroBar 1.1s cubic-bezier(.22,.61,.36,1) var(--d, 0ms) both;
}
@keyframes heroBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-chan__val { font-size: .84rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }

/* Экран «Продукт» */
.hero-arch { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-arch__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-arch__wire { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.4; stroke-dasharray: 5 6; animation: heroDash 3.2s linear infinite; }
@keyframes heroDash { to { stroke-dashoffset: -44; } }
.hero-arch__packet { fill: #7be7c6; filter: drop-shadow(0 0 6px rgba(123,231,198,.8)); }
.hero-arch__packet--alt { fill: #6f93ff; filter: drop-shadow(0 0 6px rgba(111,147,255,.85)); }
.hero-arch__node {
  position: relative; z-index: 1; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
  animation: heroNodeIn .5s cubic-bezier(.22,.61,.36,1) var(--d, 0ms) both;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hero-arch__node:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(111,147,255,.45); }
.hero-arch__node b { display: block; font-size: .92rem; color: #fff; }
.hero-arch__node span { font-size: .74rem; color: rgba(255,255,255,.55); }
.hero-arch__node--ai { border-color: rgba(123,231,198,.32); background: rgba(5,177,132,.1); }
@keyframes heroNodeIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.hero-build { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 16px; font-size: .78rem; color: rgba(255,255,255,.55); }
.hero-build__track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.hero-build__fill {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #05b184, #6f93ff);
  transform-origin: left center; animation: heroBar 1.9s cubic-bezier(.4,.05,.2,1) both;
}
.hero-build__pct { color: #6ee7bf; font-weight: 600; }

/* Экран «Окупаемость» */
.hero-chart { position: relative; }
.hero-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-chart__grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.hero-chart__area { fill: url(#heroFill); opacity: 0; animation: heroFade .9s ease .55s both; }
@keyframes heroFade { to { opacity: 1; } }
.hero-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 460; stroke-dashoffset: 460; animation: heroDraw 1.5s cubic-bezier(.3,.7,.35,1) both; }
.hero-chart__line--rev { stroke: #7be7c6; stroke-width: 2.6; filter: drop-shadow(0 4px 10px rgba(123,231,198,.35)); }
.hero-chart__line--spend { stroke: rgba(255,255,255,.34); stroke-width: 2; stroke-dasharray: 4 5; animation: none; }
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
.hero-chart__cursor { fill: #fff; stroke: #7be7c6; stroke-width: 2.5; opacity: 0; animation: heroFade .4s ease 1.45s both; transition: cx .12s linear, cy .12s linear; }
.hero-chart__tip {
  position: absolute; z-index: 3; transform: translate(-50%, -118%); pointer-events: none;
  padding: 7px 10px; border-radius: 10px; white-space: nowrap;
  background: rgba(10, 13, 20, .94); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.hero-chart__tip b { display: block; font-size: .8rem; color: #fff; }
.hero-chart__tip span { font-size: .72rem; color: rgba(255,255,255,.6); }
.hero-chart__legend { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: .74rem; color: rgba(255,255,255,.55); }
.hero-chart__key { display: inline-flex; align-items: center; gap: 7px; }
.hero-chart__key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: #7be7c6; }
.hero-chart__key--spend::before { background: rgba(255,255,255,.34); }
.hero-chart__hint { margin-left: auto; color: rgba(255,255,255,.35); }

@media (max-width: 1040px) {
  .hero-app { max-width: 620px; }
}
@media (max-width: 560px) {
  .hero-app__frame { padding: 12px 12px 14px; border-radius: 18px; }
  .hero-app__screens { min-height: 300px; }
  .hero-app__tab { font-size: .8rem; padding: 7px 6px; }
  .hero-chan__row { grid-template-columns: 92px 1fr auto; gap: 9px; }
  .hero-chan__name, .hero-chan__val { font-size: .78rem; }
  .hero-arch { grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-app__foot { gap: 6px; }
  .hero-app__foot b { font-size: .92rem; }
  .hero-app__foot span { font-size: .67rem; }
  .hero-chart__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-app::before,
  .hero-app__live i,
  .hero-arch__wire,
  .hero-arch__packet { animation: none; }
  .hero-app__frame { transition: none; }
  .hero-app__screen.is-active,
  .hero-chan__fill,
  .hero-build__fill,
  .hero-arch__node,
  .hero-chart__area,
  .hero-chart__cursor { animation-duration: .01ms; animation-delay: 0ms; }
  .hero-chart__line { stroke-dashoffset: 0; animation: none; }
}
