/* ============ Пест Мониторинг Центр, лендинг бесплатного осмотра. Mobile-first. ============ */

/* 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; }
.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: var(--sky); 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 the narrowest phones keep the button, shorten the name */
.cta-short { display: none; }
@media (max-width: 400px) {
  .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: grid; place-items: center; height: 200px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 14px; overflow: hidden; padding: 14px; }
.doc__frame img { max-height: 100%; 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; } }
