/* ============ Пест Мониторинг Центр, основной сайт. Mobile-first. ============
   База: стили лендинга site/audit/ (одна палитра, Inter, компоненты). Ниже, после «Main site»,
   то, что есть только у многостраничника. Источник: site-src/assets, в site/ копируется сборкой. */

/* Inter, как в презентации ПМЦ. Свои файлы, без Google Fonts: в РФ они грузятся нестабильно. OFL, fonts/OFL.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Палитра от демо главной (её одобрил Виктор) плюс фирменный голубой из логотипа #8BC6EC. */

:root {
  --blue:       #1b6fb3;
  --blue-dark:  #145589;
  --blue-light: #e8f2fa;
  --sky:        #8bc6ec;
  --navy:       #1f3345;
  --navy-2:     #2b4458;
  --ink:        #17222d;
  --muted:      #5b6b7b;
  --line:       #e1e7ee;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fa;
  --ok:         #1f8a4c;
  --err:        #c0392b;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(20, 50, 80, .10);
  --container:  1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }

.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 700; color: var(--blue); margin-bottom: .6em; }
.h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .7em; }
.h2--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 650; border: 2px solid transparent; border-radius: 12px; padding: .75em 1.25em; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255,255,255,.22); }
.btn--lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand__logo { height: 52px; width: auto; flex: none; }
.brand__name { display: flex; flex-direction: column; font-weight: 750; font-size: .98rem; line-height: 1.15; letter-spacing: -.01em; }
.brand__name small { font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { display: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__cta { padding: .55em .9em; font-size: .85rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy) url("media/hero-poster.webp") center / cover no-repeat; padding: 56px 0 44px; min-height: 560px; display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(3px) saturate(.85); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,44,.55) 0%, rgba(12,28,44,.78) 55%, rgba(12,28,44,.92) 100%); }
.hero__inner { position: relative; }
.hero__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; color: var(--navy); background: var(--sky); padding: .4em .85em; border-radius: 999px; margin-bottom: 1.1em; }
.hero__title { font-size: 2.1rem; font-weight: 850; max-width: 760px; margin-bottom: .45em; }
/* 22.10: «Роспотребнадзора» в заголовке, на телефонах 360 px и уже слово не должно вылезать за край */
@media (max-width: 380px) { .hero__title { font-size: 1.7rem; } }
.hero__lead { font-size: 1.06rem; color: #dbe7f1; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.hero__actions .btn { flex: 1 1 100%; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #dbe7f1; }
.hero__facts li { position: relative; padding-left: 20px; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #c9d7e3; border-top: 1px solid rgba(255,255,255,.08); }
.trustbar__list { list-style: none; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .86rem; line-height: 1.35; }
.trustbar strong { color: #fff; display: block; font-size: 1.02rem; }

/* ---------- Risk ---------- */
.risk__inner { display: grid; gap: 28px; }
.chain { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: c; display: grid; gap: 8px; }
.chain li { counter-increment: c; position: relative; padding: 12px 16px 12px 52px; background: var(--bg-soft); border-radius: 12px; font-weight: 650; }
.chain li::before { content: counter(c); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: #fff; color: var(--err); border: 2px solid #f2c3bd; }
.chain li:last-child { background: #fbeceb; color: #8f2a20; }
.risk__note { color: var(--muted); margin: 0; }
.risk__photo img, .check__photo img, .why__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }

/* ---------- Check ---------- */
.check { background: var(--bg-soft); }
.check__grid { display: grid; gap: 16px; }
.check__col { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 var(--line); }
.check__col h3 { font-size: 1.1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5l3 3 5-6' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.result { margin-top: 16px; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 22px 24px; }
.result__label { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; color: #e1f0fa; margin-bottom: 6px; }
.result__text { font-size: 1.12rem; font-weight: 650; margin: 0; }

/* ---------- Second opinion ---------- */
.second { background: var(--navy) linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #d3e0eb; }
.second__inner { display: grid; gap: 24px; }
.second__aside { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.second__season { color: var(--sky); font-weight: 750; font-size: 1.15rem; margin-bottom: .4em; }

/* ---------- How ---------- */
.how__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.how__steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 66px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.how__steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; }
.how__steps strong { font-size: 1.05rem; }
.how__steps span { color: var(--muted); }

/* ---------- Why ---------- */
.why { background: var(--bg-soft); }
.why__inner { display: grid; gap: 28px; align-items: center; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why__list li { background: #fff; border-radius: 12px; padding: 16px 18px; border-left: 4px solid var(--sky); color: var(--muted); }
.why__list strong { color: var(--ink); }

/* ---------- Cases ---------- */
.cases__grid { display: grid; gap: 14px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.case__result { font-weight: 800; font-size: 1.12rem; color: var(--blue-dark); margin-bottom: .5em; }
.case p:last-child { margin: 0; color: var(--muted); }

/* ---------- Proof ---------- */
.proof { background: var(--bg-soft); }
.proof__grid { display: grid; gap: 14px; }
.doc { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 0 var(--line); color: var(--ink); transition: box-shadow .15s, transform .15s; }
a.doc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc__title { font-weight: 700; }
.doc__meta { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.doc--text { justify-content: center; padding: 22px; }

/* ---------- Magnet ---------- */
.magnet__inner { display: grid; gap: 22px; align-items: center; background: var(--blue-light); border-radius: 20px; padding: 26px 20px; }
.magnet__inner p { color: var(--muted); margin: 0; }
.magnet { padding-top: 56px; }
.magnet__hint { text-align: center; font-size: .86rem; margin-top: 10px !important; }
.magnet__form { background: #fff; border-radius: var(--radius); padding: 20px; }
.magnet__form .consent { margin-bottom: 10px; }
.magnet__form .btn { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; gap: 10px; }
.faq__list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Lead ---------- */
.lead { background: var(--navy) linear-gradient(160deg, var(--navy) 0%, #183a5a 100%); color: #d3e0eb; }
.lead .h2 { color: #fff; }
.lead__inner { display: grid; gap: 26px; }
.lead .ticks li::before { background-color: var(--sky); }
.lead__tg { margin-top: 18px; color: #fff; border-color: rgba(255,255,255,.6); }
.lead__form { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* ---------- Form parts ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: .75em .9em; border: 1px solid #cfd8e2; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,111,179,.16); }
.field textarea { resize: vertical; }
.more { margin: 2px 0 12px; }
.more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--blue); }
.form-status { margin: 12px 0 0; padding: .8em 1em; border-radius: 10px; font-weight: 600; }
.form-status--ok { background: #e7f6ec; color: var(--ok); }
.form-status--err { background: #fbeae8; color: var(--err); }
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #13212e; color: #9fb1c2; padding: 32px 0 96px; font-size: .88rem; }
.footer a { color: #c9d7e3; }
.footer p { margin: 0; line-height: 1.8; }
.footer__name { color: #fff; font-weight: 700; }
.footer__grid { display: grid; gap: 16px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; box-shadow: 0 10px 28px rgba(10,30,50,.35); }

/* ============ Responsive ============ */
@media (min-width: 600px) {
  .brand__name small { display: block; }
  .hero__actions .btn { flex: 0 0 auto; }
  .trustbar__list { grid-template-columns: repeat(4, 1fr); }
  .proof__grid, .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  section { padding: 84px 0; }
  .h2 { font-size: 2.1rem; }
  .header__phone { display: inline; }
  .header__cta { padding: .6em 1.1em; font-size: .92rem; }
  .hero { min-height: 640px; padding: 96px 0 72px; align-items: center; }
  .hero__shade { background: linear-gradient(90deg, rgba(12,28,44,.9) 0%, rgba(12,28,44,.72) 50%, rgba(12,28,44,.35) 100%); }
  .hero__title { font-size: 3.1rem; }
  .hero__lead { font-size: 1.15rem; }
  .risk__inner, .why__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .check__grid { grid-template-columns: 1fr 1fr 1.1fr; }
  .check__photo img { aspect-ratio: auto; min-height: 100%; }
  .second__inner { grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
  .how__steps { grid-template-columns: repeat(4, 1fr); }
  .how__steps li { padding: 66px 20px 20px; }
  .cases__grid, .proof__grid { grid-template-columns: repeat(3, 1fr); }
  .magnet__inner { grid-template-columns: 1.2fr 1fr; padding: 40px; gap: 40px; }
  .faq__inner { grid-template-columns: 1fr 2fr; gap: 48px; }
  .lead__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .footer { padding-bottom: 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.3fr; }
  .sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
}

/* ---------- Text pages: consent, checklist ---------- */
.doc-page { max-width: 820px; padding-top: 36px; padding-bottom: 64px; }
.doc-page h1 { font-size: 1.7rem; font-weight: 800; }
.doc-page h2 { font-size: 1.15rem; margin-top: 1.6em; color: var(--blue-dark); }
.doc-page ul { padding-left: 22px; }
.doc-page__meta { margin-top: 32px; color: var(--muted); font-size: .9rem; }
.cl { padding-left: 0; list-style: none; counter-reset: cl; }
.cl[start="11"] { counter-reset: cl 10; }
.cl[start="19"] { counter-reset: cl 18; }
.cl li { counter-increment: cl; position: relative; padding: 12px 12px 12px 56px; border-bottom: 1px solid var(--line); }
.cl li::before { content: counter(cl); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border: 2px solid var(--blue); border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--blue); }
.checklist .result { margin-top: 32px; }
@media print {
  .no-print { display: none !important; }
  .doc-page { padding-top: 0; }
  .cl li { break-inside: avoid; }
}


/* Tap targets on phones: footer links and the "add details" toggle */
.footer a { display: inline-block; padding: 6px 0; }
.more summary { padding: 6px 0; }
@media (max-width: 370px) {
  .hero__eyebrow { font-size: .64rem; letter-spacing: .04em; }
}

/* ---------- v3 design pass (06.10) ---------- */
/* Header: on phones keep the button, shorten the name. 480px, not 400: an iPhone Pro is 402px wide (16.10) */
.cta-short { display: none; }
@media (max-width: 480px) {
  .brand__name { font-size: .86rem; max-width: 150px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* Steps as a timeline instead of another row of cards */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 74px; display: flex; flex-direction: column; }
.timeline li::before { content: "0" counter(t); position: absolute; left: 0; top: -4px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--sky); letter-spacing: -.04em; }
.timeline li::after { content: ""; position: absolute; left: 26px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline__when { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.timeline strong { font-size: 1.2rem; margin-bottom: 2px; }
.timeline li > span:last-child { color: var(--muted); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline li { padding: 70px 0 0; border-top: 2px solid var(--line); }
  .timeline li::before { top: 18px; font-size: 3rem; }
  .timeline li::after { display: none; }
  .timeline li:first-child { border-top-color: var(--blue); }
}

/* Cases: pest tag, accent rule */
.case { position: relative; border: 0; background: var(--bg-soft); border-top: 4px solid var(--blue); border-radius: 4px 4px var(--radius) var(--radius); }
.case__tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: .3em .7em; border-radius: 999px; margin-bottom: 12px; }

/* Proof: equal framed thumbnails */
.proof .doc { padding: 16px 16px 18px; }
.doc__frame { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 14px; overflow: hidden; padding: 14px; }
.doc__frame img { max-height: 172px; width: auto; max-width: 100%; height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 14px rgba(20,50,80,.12); margin: 0; }
.doc__frame--icon { background: var(--blue-light); }
.doc__link { margin-top: auto; font-size: .88rem; font-weight: 650; color: var(--blue); }
.doc__link::after { content: " →"; }

/* Why photo: horizontal, not half a screen */
.why__photo img { aspect-ratio: 5 / 4; object-position: center 35%; max-height: 460px; }
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand__logo { height: 44px; }
  .brand__name { display: none; }
  .header__cta { padding: .55em .75em; }
}
@media (min-width: 900px) { .brand__logo { height: 60px; } .header__inner { min-height: 76px; } }

/* ======================================================================
   Main site: multi-page parts
   ====================================================================== */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(27,111,179,.45); outline-offset: 2px; }

/* Header: desktop nav + mobile menu on <details> */
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); font-weight: 550; font-size: .95rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s, opacity .15s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.menu__panel a { color: var(--ink); font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.menu__panel a:hover, .menu__panel a[aria-current] { background: var(--blue-light); color: var(--blue-dark); }
.menu__phone { border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 10px 10px !important; color: var(--blue) !important; }
.header__actions { gap: 10px; }

/* Breadcrumbs */
.crumbs { font-size: .84rem; color: var(--muted); padding-top: 14px; padding-bottom: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs + main .page-hero { margin-top: 12px; }

/* Inner page hero */
.page-hero { padding: 28px 0 40px; }
.page-hero__inner { display: grid; gap: 26px; align-items: center; }
.page-hero h1 { font-size: 1.95rem; font-weight: 850; letter-spacing: -.02em; margin-bottom: .4em; }
.page-hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-hero__photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.page-hero--dark { background: var(--navy) linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #d3e0eb; padding: 44px 0 52px; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .page-hero__lead { color: #c9d7e3; }
.page-hero--dark .eyebrow { color: var(--sky); }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); }
.facts li { position: relative; padding-left: 20px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.page-hero--dark .facts { color: #c9d7e3; }

.section--soft { background: var(--bg-soft); }
.section--tight { padding: 40px 0; }
.lead-text { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.split { display: grid; gap: 28px; align-items: start; }

/* Prose for long text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--sky); background: var(--bg-soft); border-radius: 0 12px 12px 0; }

/* Audience cards with photo */
.aud { display: grid; gap: 16px; }
.aud__card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.aud__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.aud__card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.aud__body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.aud__body h3 { font-size: 1.25rem; margin: 0; }
.aud__body p { color: var(--muted); margin: 0; }
.more-link { margin-top: auto; padding-top: 10px; font-weight: 650; color: var(--blue); }
.more-link::after { content: " →"; }
.aud__note { color: var(--muted); font-size: .94rem; margin: 16px 0 0; }

/* Three reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: r; }
.reasons li { counter-increment: r; position: relative; background: #fff; border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: 0 1px 0 var(--line); }
.reasons li::before { content: "0" counter(r); display: block; font-size: 2.2rem; font-weight: 850; line-height: 1; color: var(--sky); letter-spacing: -.04em; margin-bottom: 12px; }
.reasons h3 { font-size: 1.15rem; margin-bottom: .4em; }
.reasons p { color: var(--muted); margin: 0; }

/* Services */
.svc-main { display: grid; gap: 18px; background: var(--blue); color: #e5f0f9; border-radius: 18px; padding: 26px 24px; margin-bottom: 16px; }
.svc-main h3 { color: #fff; font-size: 1.4rem; margin-bottom: .35em; }
.svc-main .eyebrow { color: var(--sky); }
.svc-main p { margin: 0; }
.svc-main .btn { background: #fff; color: var(--blue-dark); align-self: start; }
.svc-main .btn:hover { background: var(--blue-light); }
.svc-main__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-main__list li { position: relative; padding-left: 26px; }
.svc-main__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--sky); }
.svc { display: grid; gap: 12px; }
.svc__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.svc__card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.svc__card h3 { font-size: 1.08rem; margin: 0; }
.svc__card p { color: var(--muted); margin: 0; font-size: .95rem; }
.svc__card .more-link { font-size: .92rem; }
.svc__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-light); display: grid; place-items: center; margin-bottom: 6px; }
.svc__icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; font-size: .9rem; }

/* Six steps: timeline variant */
.timeline--6 li::before { content: "0" counter(t); }

/* Two folders */
.folders { display: grid; gap: 14px; }
.folder { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 var(--line); border-top: 4px solid var(--blue); }
.folder h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.folder h3 svg { width: 26px; height: 26px; flex: none; stroke: var(--blue); fill: var(--blue-light); stroke-width: 1.8; stroke-linejoin: round; }
.annual { margin-top: 14px; display: grid; gap: 6px; background: var(--navy); color: #c9d7e3; border-radius: var(--radius); padding: 22px 24px; }
.annual strong { color: #fff; font-size: 1.08rem; }

/* Price note */
.price { display: grid; gap: 12px; }
.price__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.price__value { font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); margin: 4px 0; }
.price__item p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { padding: 0; }
.cta-band__inner { display: grid; gap: 16px; align-items: center; background: var(--blue-light); border-radius: 18px; padding: 24px 22px; margin-top: 8px; margin-bottom: 8px; }
.cta-band__text { font-size: 1.12rem; font-weight: 650; margin: 0; color: var(--navy); }
main > .cta-band { padding: 0 0 56px; }

/* Cases: full format on /kejsy */
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--blue); }
.case dd { margin: 0; color: var(--muted); }
.cases__grid--wide { display: grid; gap: 16px; }
.section-foot { margin-top: 22px; }

/* Docs, requisites */
.kv { width: 100%; border-collapse: collapse; font-size: .95rem; }
.kv th, .kv td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { width: 38%; color: var(--muted); font-weight: 550; padding-right: 16px; }

/* Contacts */
.contacts { display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .6em; }
.contact-card p { margin: 0 0 .4em; }
.contact-big { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

/* Blog */
.posts { display: grid; gap: 14px; }
.post-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); }
.post-card:hover { border-color: var(--blue); }
.post-card h2 { font-size: 1.2rem; margin-bottom: .3em; }
.post-card p { color: var(--muted); margin: 0; }
.post-meta { font-size: .86rem; color: var(--muted); margin-bottom: 1.2em; }

/* Clients (hidden until permissions) */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clients li { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 84px; display: grid; place-items: center; padding: 14px; }
.clients img { max-height: 48px; width: auto; object-fit: contain; }

/* Form additions */
.field select { width: 100%; font: inherit; font-size: 16px; padding: .75em .9em; border: 1px solid #cfd8e2; border-radius: 10px; background: #fff; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.lead__alt { margin-top: 18px; font-size: .95rem; }
.lead__alt a { color: #fff; font-weight: 700; }
/* 17.10: белая жирная ссылка читалась как подзаголовок, Андрей не понял, что на неё можно нажать */
.lead__alt a.lead__more { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.lead__alt a.lead__more::after { content: "→"; display: inline-block; margin-left: .3em; text-decoration: none; }
.lead__alt a.lead__more:hover { color: #fff; }

/* Footer, 4 columns */
.footer { padding-top: 44px; }
.footer__h { color: #fff; font-weight: 700; margin-bottom: 6px !important; }
.footer__list { list-style: none; margin: 0; padding: 0; line-height: 1.5; }
.footer__brand p { margin-top: 12px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__logo { height: 44px; background: #fff; border-radius: 8px; padding: 3px 5px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 18px; font-size: .82rem; }
.footer__demo { color: #e8922e; }

/* 404 */
.notfound { padding: 72px 0; text-align: center; }
.notfound h1 { font-size: 2rem; }

@media (min-width: 600px) {
  .aud, .reasons, .folders, .price, .contacts, .cases__grid--wide { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .cta-band__inner { grid-template-columns: 1fr auto; padding: 28px 32px; }
}
@media (min-width: 900px) {
  .page-hero { padding: 36px 0 64px; }
  .page-hero h1 { font-size: 2.7rem; }
  .page-hero--dark { padding: 64px 0 72px; }
  .page-hero__inner--photo { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--wide { grid-template-columns: 1.4fr 1fr; }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .reasons--4 { grid-template-columns: repeat(2, 1fr); } /* 22.10: четыре пункта сеткой 2x2 */
  .svc { grid-template-columns: repeat(3, 1fr); }
  .svc-main { grid-template-columns: 1fr auto; align-items: center; padding: 34px 36px; gap: 36px; }
  .svc-main .btn { align-self: center; }
  .timeline--6 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline--6 li:nth-child(4) { border-top-color: var(--line); }
  .cases__grid--wide { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(5, 1fr); }
  main > .cta-band { padding-bottom: 84px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 1279px) {
  .header__phone { display: none; }
}
@media print {
  .header, .footer, .lead, .sticky-cta, .cta-band { display: none !important; }
}

/* ---------- Fixes after the first screenshot pass ---------- */
/* width/height attributes would otherwise win over aspect-ratio */
.aud__card img, .page-hero__photo img { height: auto; }
/* Desktop: phone, hours and email in a thin bar above the sticky header, so the header fits
   logo + six menu items + CTA inside the 1120px container */
.topbar { display: none; background: var(--navy); color: #9fb1c2; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 20px; }
.topbar__contacts { display: flex; gap: 22px; align-items: center; }
.topbar a { color: #c9d7e3; }
.topbar__phone { color: #fff !important; font-weight: 700; font-size: .9rem; }
@media (min-width: 1100px) {
  .topbar { display: block; }
  .header .brand__name { white-space: nowrap; }
  .header .brand__name small { display: none; }
  .header__phone { display: none !important; }
}
.prose h2.h2 { margin-top: 0; font-size: 1.6rem; }
@media (min-width: 900px) { .prose h2.h2 { font-size: 2.1rem; } }
.price__item p.price__value { color: var(--blue-dark); margin: 4px 0; }
.cases__stack { display: grid; gap: 14px; }
/* Footer brand: the generic ".footer a { display: inline-block }" broke the logo + name row */
.footer .brand { display: flex; align-items: center; gap: 12px; padding: 0; }
.footer .brand__name { font-size: 1rem; }
.footer .brand__logo { height: 56px; padding: 4px 8px; }
/* "Why" list on a white section: the rounded left border read as brackets without a card fill */
section:not(.section--soft) .why__list li { background: var(--bg-soft); }
.lead-text + p { color: var(--muted); }
/* Footer bottom row: links carry tap padding, plain spans do not, so centre the row */
.footer__bottom { align-items: center; }
/* Divider spans the content width, not the container padding */
.footer__bottom { border-top: 0; position: relative; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid rgba(255,255,255,.1); }
/* Section heading sits above the split, both columns start on one line */
.container > .h2 + .split, .container > .h2 + .cases__grid--wide { margin-top: 4px; }
.split > div > .lead-text:first-child { margin-top: 0; }
.split .lead-text, .split .lead-text + p { font-size: 1.04rem; }

/* Cookie notice (cookies.js): a thin strip at the bottom, explicit consent. The sticky CTA hides while it is open. */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(10,30,50,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-size: .84rem; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.cookiebar p { margin: 0; color: var(--muted); }
.cookiebar__actions { display: flex; gap: 8px; }
.cookiebar__btn { font: inherit; font-weight: 650; font-size: .82rem; padding: .45em .95em; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cookiebar__btn--yes { background: var(--blue); border-color: var(--blue); color: #fff; }
.has-cookiebar .sticky-cta { display: none !important; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Price block on service pages (16.10): text on top, four cards in one row on desktop, no empty column */
.price__lead { max-width: 760px; margin-bottom: 22px; }
.price__item .eyebrow { display: block; line-height: 1.35; }
@media (min-width: 1100px) {
  .price--4 { grid-template-columns: repeat(4, 1fr); }
  /* subgrid: label, price and text sit on the same lines in every card, even when a label wraps */
  .price--4 .price__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
}

/* Team cards (16.10): real people, consent to publish signed (ops/staff-pdn-distribution-consent.md) */
.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; max-width: 1000px; }
.team--one { max-width: 340px; margin-top: 0; }
.team__card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.team__card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; display: block; }
.team__card figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.team__card strong { color: var(--ink); font-size: 1.05rem; }
.team__role { color: var(--blue); font-weight: 650; }
/* Без фото (22.10): инициалы на месте снимка, пока фото не прислали */
.team__ph { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--bg-soft); color: var(--blue); font-size: 2.6rem; font-weight: 650; letter-spacing: .04em; }
.who__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .who__inner { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

/* Four documents (16.10: program sample added): 2x2 on tablets, one row on desktop */
@media (min-width: 900px) { .proof__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proof__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .proof__grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Recommendations (16.10, REVIEWS in site-src/build.py) */
.reviews__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.review__about { margin: 0; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.review blockquote { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.review figcaption { display: grid; gap: 2px; font-size: .9rem; color: var(--muted); margin-top: auto; }
.review figcaption strong { color: var(--ink); font-size: 1rem; }
.review .more-link { margin-top: 8px; padding-top: 0; }
.review__note { margin-top: 8px; font-size: .85rem; }

/* Client logos under the recommendations (17.10, CLIENT_LOGOS in site-src/build.py) */
.clients__title { margin: 32px 0 12px; font-weight: 600; color: var(--muted); font-size: .95rem; text-align: center; }
.clients__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .clients__logos { grid-template-columns: repeat(4, 1fr); } }
.clients__logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 8px; }
.clients__logos img { width: 100%; max-width: 150px; height: auto; display: block; }

/* Phone numbers never break across lines (16.10) */
a[href^="tel:"] { white-space: nowrap; }
