/* услуги-службы-дезинсекции.рф — mobile first (база 390px).
   Гамма конкурента: белый / светло-серый, зелёный #00A86B, почти чёрный текст. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-lat.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;
}

:root {
  --green: #00A86B;
  --green-dark: #008A58;
  --green-soft: #E6F6EF;
  --ink: #121417;
  --text: #2B2F36;
  --muted: #6A707A;
  --line: #E3E5E8;
  --bg: #FFFFFF;
  --bg-soft: #F3F3F4;
  --danger: #D93838;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 10px 30px rgba(18, 20, 23, .07);
  --shadow-green: 0 10px 24px rgba(0, 168, 107, .28);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; font-weight: 800; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-top: 28px; }
.lead { font-size: 16px; color: var(--muted); margin-top: 10px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-sm);
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  box-shadow: var(--shadow-green);
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: default; }
.btn-block { display: flex; width: 100%; }
.btn-fx-on { position: relative; overflow: hidden; isolation: isolate; }
.btn-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: inline-size; }
.btn-fx::after {
  content: ""; position: absolute; top: 0; left: -100%; display: block;
  width: 200%; height: 350%; border-radius: 100%;
  background: rgba(255, 255, 255, .8); transform: scale(0);
  animation: ripple 6s linear infinite;
}
@container (min-width: 260px) { .btn-fx::after { left: -130%; } }
@container (min-width: 360px) { .btn-fx::after { left: -150%; } }
@keyframes ripple { 20% { opacity: 0; transform: scale(2.5); } 100% { opacity: 0; transform: scale(2.5); } }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--line); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.logo-sub { font-size: 12px; color: var(--muted); }
.header-status { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,168,107,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0,168,107,0); } 100% { box-shadow: 0 0 0 0 rgba(0,168,107,0); } }
.header-cta { display: none; }

/* ---------- Первый экран ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 22px 0 36px; }
.hero-grid { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-size: 13px; font-weight: 700; color: var(--green-dark); background: var(--green-soft); padding: 7px 12px; border-radius: 999px; }
.hero-title { font-size: 30px; letter-spacing: -.02em; }
.accent { color: var(--green); }
.hero-points { display: grid; gap: 10px; margin-top: 20px; }
.hero-point { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.hero-point h3 { font-size: 15px; font-weight: 800; line-height: 1.4; }
.hero-point p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tick { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; }
.hero-side { display: grid; gap: 14px; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Формы ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px; box-shadow: var(--shadow); }
.form-note { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.lead-form { display: grid; gap: 12px; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
  background: var(--bg-soft); border: 2px solid transparent; border-radius: var(--r-sm);
  outline: none; transition: border-color .2s, background .2s;
}
.input[type="tel"] { letter-spacing: .06em; }
.input:focus { border-color: var(--green); background: #fff; }
.input.is-invalid { border-color: var(--danger); background: #fff; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.agree input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); cursor: pointer; }
.agree.is-invalid span { color: var(--danger); }
.form-error { min-height: 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.form-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 18px 6px; }
.form-done-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/30px no-repeat; }
.form-done-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.form-done p { color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 24px; max-width: 760px; }
.section h2 { font-size: 26px; letter-spacing: -.015em; }

/* Преимущества */
.adv-grid { display: grid; gap: 12px; }
.adv { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.adv img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px; }
.adv-title { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.adv p:not(.adv-title) { font-size: 14px; color: var(--muted); }

/* Этапы */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r); padding: 18px; position: relative; }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ico { display: inline-block; flex: none; width: 24px; height: 24px; }
.ico-step { width: 52px; height: 52px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
.step-title { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.step p:not(.step-title) { font-size: 14px; color: var(--muted); }

/* Квиз */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 16px; box-shadow: var(--shadow); max-width: 860px; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-count { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.quiz-count b { color: var(--green-dark); }
.quiz-bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 20%; background: var(--green); border-radius: 99px; transition: width .35s ease; }
.quiz-step { display: none; animation: fade .3s ease; }
.quiz-step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-q { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 16px; }
.ico-q { width: 40px; height: 40px; }
.ico-opt { width: 50px; height: 50px; margin-right: 14px; }
.ico-hint { width: 24px; height: 24px; margin-right: 6px; }
.opts-ico .opt { min-height: 74px; padding: 10px 16px; }
.quiz-q-sm { font-size: 17px; margin: 18px 0 4px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px;
  text-align: left; font-weight: 700; font-size: 16px; color: var(--ink);
  background: var(--bg-soft); border: 2px solid transparent; border-radius: var(--r-sm);
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--green); }
.opt.is-selected { border-color: var(--green); background: var(--green-soft); }
.opts-img { grid-template-columns: 1fr 1fr; }
.opt-img { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; font-size: 14px; line-height: 1.3; }
.opt-img img, .opt-pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.opt-pic { display: flex; align-items: center; justify-content: center; background: var(--green-soft); }
.opt-img > span:last-child { padding: 10px 12px 12px; flex: 1; display: flex; align-items: center; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 14px; }
.quiz-nav { display: flex; gap: 10px; margin-top: 18px; }
.quiz-nav .btn { flex: 1; }
.quiz-final { background: #fff; border: 2px solid var(--green); border-radius: var(--r); padding: 18px 16px; }
.quiz-final-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.quiz-final-title .tick { flex-basis: 30px; height: 30px; }
.quiz-final-list { display: grid; gap: 10px; margin: 14px 0; }
.quiz-final-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.quiz-final-list .ico { width: 28px; height: 28px; }
.quiz-final-strong { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: #006B43; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.35; }
.quiz-final-strong .ico { width: 30px; height: 30px; }

/* Гарантия */
.guarantee { display: grid; gap: 22px; align-items: center; }
.checklist { display: grid; gap: 10px; margin: 20px 0 24px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.guarantee-photo { border-radius: var(--r-lg); overflow: hidden; }

/* Быстрые ссылки (H4/H5): каждый блок — отдельный экран про одну тему */
.ql-list { display: grid; gap: 20px; }
.ql, .ql-quiz { scroll-margin-top: calc(var(--header-h) + 12px); }
.ql {
  display: grid; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  border-radius: var(--r-lg); padding: 22px 18px;
}
.ql-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ql h4, .ql-quiz h4 { font-size: 24px; letter-spacing: -.01em; }
.ql h5, .ql-quiz h5 { font-size: 17px; font-weight: 700; color: var(--green-dark); line-height: 1.4; }
.ql p, .ql-quiz-head p { font-size: 16px; color: var(--text); }
.ql .checklist { margin: 6px 0; }
.ql .btn { align-self: flex-start; margin-top: 6px; }
.ql-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ql-actions .btn { margin-top: 6px; }
.ql-media { border-radius: var(--r); overflow: hidden; }
.ql-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ql:target, .ql-quiz:target .quiz { animation: target 2.4s ease; }
@keyframes target { 0%, 60% { box-shadow: 0 0 0 4px var(--green), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ql-quiz-head { max-width: 860px; margin: 0 auto 18px; padding-left: 14px; border-left: 4px solid var(--green); }
.ql-quiz-head h5 { margin-top: 6px; }
.ql-quiz-head p { margin-top: 8px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.methods figure { border-radius: var(--r-sm); overflow: hidden; background: var(--bg-soft); }
.methods img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.methods figcaption { padding: 8px 10px 10px; font-size: 13px; line-height: 1.4; color: var(--text); }
.methods figcaption b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }

/* Выезд сегодня */
.today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.today > *, .hero-grid > *, .final-grid > *, .guarantee > * { min-width: 0; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 62%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); scroll-snap-align: start; }

/* Финал */
.final { background: var(--green); color: #fff; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255,255,255,.88); }
.final-grid { display: grid; gap: 22px; align-items: center; }

/* Подвал */
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 14px; padding: 32px 0; }
.footer-row { display: grid; gap: 16px; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer a { color: #fff; }
.footer-links { display: grid; gap: 6px; }

/* Нижний бар (мобильный) */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(18,20,23,.55); }
.modal[hidden] { display: none; }
.modal-box {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 40px 8px 0; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--muted); background: var(--bg-soft); }
.modal-close:hover { color: var(--ink); }
body.no-scroll { overflow: hidden; }

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  .adv-grid, .steps { grid-template-columns: 1fr 1fr; }
  .methods { grid-template-columns: repeat(4, 1fr); }
  .opts-img { grid-template-columns: repeat(3, 1fr); }
  .gallery img { flex-basis: 38%; }
  .modal { align-items: center; padding: 16px; }
  .modal-box { border-radius: var(--r-lg); }
}

/* ---------- Десктоп ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .header-status { display: flex; }
  .header-cta { display: inline-flex; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .hero-title { font-size: 48px; }
  .lead { font-size: 18px; }
  .hero-photo { aspect-ratio: 16 / 9; }
  .section { padding: 80px 0; }
  .section h2 { font-size: 38px; }
  .adv-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .adv { flex-direction: column; padding: 22px; }
  .adv img { width: 80px; height: 80px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .quiz { padding: 32px; margin: 0 auto; }
  .quiz-section-head { text-align: center; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opts-img { grid-template-columns: repeat(3, 1fr); }
  .guarantee { grid-template-columns: 1fr 1fr; gap: 56px; }
  .ql { grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 36px; }
  .ql:nth-child(even) .ql-media { order: -1; }
  .ql-flip { grid-template-columns: 1fr; }
  .ql-media img { aspect-ratio: 4 / 3.4; }
  .ql h4, .ql-quiz h4 { font-size: 30px; }
  .ql h5, .ql-quiz h5 { font-size: 19px; }
  .today { grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
  .gallery { margin: 24px 0 0; padding: 0 0 6px; }
  .gallery img { flex-basis: 30%; }
  .final-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .footer-row { grid-template-columns: 1fr auto; align-items: end; }
  .footer-links { text-align: right; }
}

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

/* ---------- Служебные страницы (политика, 404) ---------- */
.page-plain { padding-bottom: 0; }
.doc { max-width: 820px; }
.doc h1 { font-size: 28px; margin-bottom: 18px; }
.doc h2 { font-size: 20px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.doc .btn { margin-top: 28px; }
.doc-date { color: var(--muted) !important; font-size: 14px; margin-top: 18px !important; }
.notfound { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.notfound .container { max-width: 520px; }
.notfound-code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--green); margin-bottom: 8px; }
.notfound .btn { margin-top: 24px; }
@media (min-width: 960px) { .doc h1 { font-size: 36px; } }

/* ---------- Баннер cookies (все страницы) ---------- */
.cookie {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 720px; margin: 0 auto; padding: 14px 16px;
  background: var(--ink); color: #fff; border-radius: var(--r);
  box-shadow: 0 12px 34px rgba(18,20,23,.3);
  font-size: 13px; line-height: 1.45;
  animation: up .3s ease;
}
.cookie a { color: #6FE3B0; }
.cookie .btn { align-self: flex-start; min-width: 150px; }
@media (min-width: 640px) {
  .cookie { flex-direction: row; align-items: center; gap: 18px; padding: 14px 18px; }
  .cookie .btn { align-self: center; flex: none; }
}
