/* WinGuard, тема wg. Один тон: графіт, ритм відтінками, розміром і відступами. Червоний лише для дій і позначок.
   Onest для тексту, Unbounded лише для знака WinGuard. Токени нижче використовують і окремі шаблони сторінок. */

:root {
  --bg: #1f2325;
  --bg2: #262a2d;
  --bg3: #303538;
  --ink: #fff;
  --muted: #c4c9cc;
  --acc: #c71313;
  --acc-dark: #a30e0e;
  --fs-body: 18px;
  --fs-lead: clamp(20px, 1.6vw, 23px);
  --fs-h1: clamp(34px, 4.6vw, 60px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-h3: clamp(21px, 1.7vw, 26px);
  --fs-small: 15px;

  /* аліаси старих імен */
  --soft: var(--ink);
  --bg-deep: #191c1e;
  --err: #ff9b9b;
  --acc-ink: #ff8f8f;

  --hdr: 72px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mark: "Unbounded", "Onest", system-ui, sans-serif;
}
@media (max-width: 599px) { :root { --fs-body: 17px; --hdr: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: var(--hdr); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 8px; }
.bk-hp { position: absolute !important; left: -9999px !important; width: 1px; opacity: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; }
.section--alt { background: var(--bg2); }

/* ---------- типографіка ---------- */
.h1 { font-size: var(--fs-h1); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 700; letter-spacing: -.018em; max-width: 30ch; margin-bottom: 24px; text-wrap: balance; }
/* на вузьких телефонах заголовок секції трохи менший, щоб тримався у 2 рядках */
@media (max-width: 459px) { .h2 { font-size: 27px; } }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.small, .note { font-size: var(--fs-small); color: var(--muted); }
p + p { margin-top: 14px; }
.lead + .lead { margin-top: 16px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px;
  font: 600 18px/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--acc); color: #fff; }
.btn--primary:hover { background: var(--acc-dark); }
.btn--line { border-color: var(--acc); color: #fff; background: transparent; }
.btn--line:hover { background: var(--acc); }
.btn--quiet { background: transparent; color: var(--muted); padding: 0 8px; min-height: 48px; text-decoration: underline; }
.btn--quiet:hover { color: #fff; }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 17px; }
@media (max-width: 599px) { .btn { min-height: 56px; } .btn--sm { min-height: 42px; } }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-body); text-decoration: none; margin-top: 28px; }
.link-arrow .ic { width: 20px; height: 20px; color: var(--acc); transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--bg); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 24px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.logo__mark { width: 40px; height: 30px; object-fit: contain; }
.logo__word { font-family: var(--mark); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer; font-size: 17px; font-weight: 500; text-decoration: none; color: #fff; border-radius: 4px; transition: color .2s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--acc-ink); }
.nav__chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__item--dd { position: relative; }
.nav__dd { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: var(--bg3); border-radius: 4px; display: none; }
/* прозорий місток над списком: курсор іде від кнопки до пунктів, не виходячи з меню */
.nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--dd.is-open .nav__dd { display: block; }
.nav__item--dd.is-open .nav__chev { transform: rotate(180deg); }
.nav__dd-link { display: block; padding: 11px 14px; text-decoration: none; border-radius: 4px; font-weight: 500; font-size: 17px; }
.nav__dd-link:hover, .nav__dd-link[aria-current="page"] { background: var(--bg); }
.nav__phone-m { display: none; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; }
.hdr__phone .ic { color: var(--acc); width: 18px; height: 18px; }
.hdr__phone:hover { color: var(--acc-ink); }
.burger { display: none; width: 44px; height: 44px; padding: 11px 9px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1299px) {
  .burger { display: flex; }
  .hdr__phone { display: none; }
  .hdr__cta { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; margin: 0;
    background: var(--bg); padding: 16px var(--pad) 32px; overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; font-size: 22px; min-height: 58px; padding: 0; }
  .nav__dd { position: static; display: block; background: none; padding: 0 0 8px 0; min-width: 0; }
  .nav__dd::before { display: none; }
  .nav__dd-btn .nav__chev { display: none; }
  .nav__dd-link { padding: 10px 0; font-size: 19px; color: var(--muted); }
  .nav__dd-link:hover { background: none; color: #fff; }
  .nav__phone-m { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 22px; font-weight: 600; text-decoration: none; }
  .nav__phone-m .ic { color: var(--acc); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 599px) {
  .logo__mark { width: 34px; height: 26px; }
  .logo__word { font-size: 18px; }
  .hdr__in { gap: 10px; }
  .hdr__cta { padding: 0 14px; min-height: 42px; font-size: 15px; }
}

/* ---------- перший екран головної ---------- */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--hdr)); background: var(--bg); }
.hero__media { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; cursor: crosshair; touch-action: manipulation; background: var(--bg2); -webkit-user-select: none; user-select: none; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero__crack { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__hint { position: absolute; right: var(--pad); top: 16px; padding: 6px 12px; background: var(--bg); color: #fff; font-size: var(--fs-small); border-radius: 4px; pointer-events: none; transition: opacity .4s var(--ease); }
.hero__hint.is-hidden { opacity: 0; }
.hero__panel { background: var(--bg); padding: 22px 0 34px; }
.hero__mark { font-family: var(--mark); font-weight: 800; font-size: 13.2vw; line-height: .92; letter-spacing: -.01em; white-space: nowrap; margin: 0 0 22px; color: #fff; }
.hero__mark span { display: inline-block; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
/* H1 першого екрана трохи менший за --fs-h1: панель з текстом має вміститись в екран разом з фото */
.hero__h1 { align-self: start; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
/* H1 з двох рядків: менший рядок із запитом і слоган (головний візуально) */
.hero__h1-top { display: block; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--muted); margin-bottom: 10px; }
.hero__h1-main { display: block; }
.hero__lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; color: var(--ink); max-width: 50ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 899px) {
  .hero { min-height: 0; }
  .hero__media { flex: none; height: 34svh; min-height: 220px; }
  .hero__panel { padding: 12px 0 24px; }
  .hero__mark { margin-bottom: 10px; }
  .hero__row { grid-template-columns: 1fr; gap: 12px; }
  .hero__h1 { font-size: 30px; }
  .hero__h1-top { font-size: 18px; margin-bottom: 6px; }
  .hero__lead { font-size: 17px; }
  .hero__btns { margin-top: 14px; gap: 8px; }
  .hero__btns .btn { padding: 0 20px; flex: 1 1 100%; }
}

/* ---------- квіз ---------- */
.quiz-sec { padding-top: clamp(64px, 8vw, 104px); }
.quiz-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 36px; }
.quiz-sec__head .h2 { margin: 0; }
.quiz { background: var(--bg2); border-radius: 4px; padding: clamp(20px, 3vw, 40px); }
.quiz__top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz__label { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.quiz__track { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.quiz__bar { display: block; height: 100%; background: var(--acc); transition: width .35s var(--ease); }
.quiz__q { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; margin-bottom: 20px; }
.quiz__step:focus { outline: none; }
.quiz__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qcard { display: flex; flex-direction: column; padding: 0; background: var(--bg3); border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; text-align: left; transition: border-color .2s var(--ease); }
.qcard img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; transition: transform .5s var(--ease); }
.qcard:hover { border-color: var(--acc); }
.qcard:hover img { transform: scale(1.03); }
.qcard.is-selected { border-color: var(--acc); background: var(--acc); }
.qcard__label { padding: 14px 16px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.quiz__consult { margin-top: 18px; background: none; border: 0; padding: 8px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 17px; }
.quiz__consult:hover, .quiz__consult.is-selected { color: var(--acc-ink); }
.quiz__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.qopt { min-height: 64px; padding: 12px 18px; background: var(--bg3); border: 2px solid transparent; border-radius: 4px; text-align: left; font-size: 18px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.qopt:hover { border-color: var(--acc); }
.qopt.is-selected { background: var(--acc); border-color: var(--acc); }
.form--quiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; max-width: 760px; }
.form--quiz .form__row, .form--quiz .form__status, .form--quiz .form__consent { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .quiz-sec__head { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
  .quiz-sec__head .h2 { margin-bottom: 14px; }
  .quiz__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qcard img { aspect-ratio: 4 / 3; }
  .qcard__label { padding: 10px 12px; font-size: 17px; }
  .quiz__opts { grid-template-columns: 1fr; gap: 8px; }
  .qopt { min-height: 56px; font-size: 17px; }
  .form--quiz { grid-template-columns: 1fr; }
}

/* ---------- форми ---------- */
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: var(--fs-small); color: var(--muted); margin-bottom: 6px; }
.field__input { width: 100%; height: 56px; padding: 0 16px; font: 400 18px var(--font); color: var(--bg); background: #fff; border: 2px solid #fff; border-radius: 4px; transition: border-color .2s var(--ease); }
.field__input:focus { outline: none; border-color: var(--acc); }
.field__input.is-invalid { border-color: var(--acc); }
.field__error { display: block; font-size: var(--fs-small); color: var(--err); margin-top: 4px; }
.field__error:empty { display: none; }
.form__row { display: flex; gap: 12px; align-items: center; }
.form__row .btn--primary { flex: 1; }
.form__status { font-size: var(--fs-small); margin-top: 10px; color: var(--ink); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--err); }
.form__consent { font-size: var(--fs-small); color: var(--muted); margin-top: 12px; }
.form__response { font-size: var(--fs-small); color: var(--ink); margin-bottom: 12px; }

/* ---------- переваги ---------- */
.trust { background: var(--bg2); padding: clamp(44px, 5vw, 64px) 0; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 44px); }
.trust__list strong { display: block; font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin-bottom: 8px; }
.trust__list span { display: block; color: var(--muted); font-size: 17px; line-height: 1.5; }
@media (max-width: 1099px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .trust__list { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- безпека: простий блок з кадром тесту ---------- */
.safety__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.safety__grid--single { grid-template-columns: 1fr; }
.safety__text .lead { max-width: 40ch; }
.safety__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(28px, 4vw, 56px); margin-top: 48px; }
.safety__point { position: relative; padding-top: 22px; }
.safety__point::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 2px; background: var(--acc); }
.safety__point h3 { margin-bottom: 8px; }
.safety__point p { max-width: 36ch; }
.safety__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--bg3); }
.safety__fig figcaption { margin-top: 14px; font-size: var(--fs-small); color: var(--muted); }
.safety__fig .link-arrow { margin-top: 10px; }
.safety__fig .safety__cert { display: flex; width: max-content; margin-top: 8px; }
@media (max-width: 899px) {
  .safety__grid { grid-template-columns: 1fr; }
  .safety__fig { max-width: 420px; }
}
@media (max-width: 599px) { .safety__points { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; } }

/* ---------- як працює: шари ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.how__scene { height: clamp(300px, 38vw, 520px); perspective: 1400px; }
.layers { position: relative; width: 100%; height: 100%; }
.layer {
  --z: 0px; --lbl: 0;
  position: absolute; left: 50%; top: 50%;
  width: min(72%, 400px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-38deg) translateZ(var(--z));
  transform-style: preserve-3d;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px;
  border-radius: 4px; will-change: transform;
}
.layer span { font-size: 18px; font-weight: 600; white-space: nowrap; opacity: var(--lbl); transform: rotateZ(38deg) translateY(6px); }
.layer--glass { background: rgba(225, 235, 238, .14); border: 3px solid rgba(255, 255, 255, .55); }
.layer--glue { background: rgba(240, 222, 170, .16); border: 3px solid rgba(240, 222, 170, .5); }
.layer--glue span { color: #f3e3b5; }
.layer--film { background: rgba(199, 19, 19, .42); border: 3px solid var(--acc); }
.how__notes { margin-top: 32px; display: grid; gap: 22px; }
.how__notes dt { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.how__notes dd { max-width: 46ch; }
@media (max-width: 899px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__scene { height: 300px; order: 2; }
}

/* ---------- для кого ---------- */
.objs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; margin-top: 16px; }
.obj { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.obj__img { display: block; overflow: hidden; border-radius: 4px; background: var(--bg3); margin-bottom: 18px; }
.obj__img img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transition: transform .6s var(--ease); }
.obj:hover .obj__img img { transform: scale(1.04); }
.obj__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; margin-bottom: 8px; }
.obj__title .ic { width: 22px; height: 22px; color: var(--acc); transition: transform .2s var(--ease); }
.obj:hover .obj__title .ic { transform: translateX(4px); }
.obj__text { color: var(--muted); font-size: 17px; line-height: 1.5; }
.objs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.objs--3 .obj__img img { aspect-ratio: 4 / 3; }
@media (max-width: 1099px) { .objs, .objs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .objs, .objs--3 { grid-template-columns: 1fr; gap: 32px; }
  .obj__img img, .objs--3 .obj__img img { aspect-ratio: 16 / 10; }
}

/* ---------- кроки ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px clamp(20px, 2.4vw, 36px); margin-top: 16px; }
.steps__item { position: relative; padding-top: 24px; }
.steps__item::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 2px; background: var(--acc); }
.steps__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
.steps__item p { font-size: 17px; line-height: 1.55; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps__item p { font-size: var(--fs-body); } }

/* ---------- вартість ---------- */
.prices__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.prices__main .lead { margin-bottom: 32px; }
.factors { display: grid; gap: 10px; }
.factors li { position: relative; padding: 20px 22px 20px 48px; background: var(--bg3); border-radius: 4px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; font-weight: 600; }
.factors li::before { content: ""; position: absolute; left: 22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--acc); border-radius: 2px; }
.visit { margin-top: 28px; }
.visit__title { font-size: var(--fs-h3); margin-bottom: 6px; }
.prices__extra { grid-column: 1 / -1; }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.variant { background: var(--bg3); border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.variant__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.variant__price { font-size: var(--fs-h3); font-weight: 700; }
.variant .btn { margin-top: auto; }
table.prices { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--bg3); border-radius: 4px; }
table.prices th, table.prices td { text-align: left; padding: 16px 20px; border-bottom: 2px solid var(--bg2); font-weight: 500; }
table.prices td { text-align: right; font-weight: 700; white-space: nowrap; }
@media (max-width: 899px) { .prices__grid { grid-template-columns: 1fr; } }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: var(--bg3); cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery__open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__open:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 8px; }
@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- про нас (головна) ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.about__grid--single { grid-template-columns: 1fr; }
.stats { display: flex; flex-wrap: wrap; gap: 28px clamp(36px, 5vw, 80px); margin-top: 40px; }
.stats dt { font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; }
.stats dd { color: var(--muted); font-size: 17px; max-width: 22ch; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about__img figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 12px; }
@media (max-width: 899px) { .about__grid { grid-template-columns: 1fr; } .about__img { max-width: 420px; } }

/* ---------- відгуки ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { background: var(--bg2); border-radius: 4px; padding: 26px; }
.review__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.review__text { margin: 0; font-size: var(--fs-body); }
.review__who { margin-top: 16px; font-weight: 600; color: var(--muted); font-size: var(--fs-small); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 24px clamp(40px, 5vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: var(--bg); border-radius: 4px; }
.section:not(.section--alt) .faq__item { background: var(--bg2); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { width: 24px; height: 24px; color: var(--acc); transition: transform .25s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 26px 24px; max-width: 64ch; }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; } .faq__q { padding: 18px; } .faq__a { padding: 0 18px 20px; } }

/* ---------- фінальна заявка ---------- */
.final { background: var(--bg2); }
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.final__call { margin-top: 24px; font-size: var(--fs-lead); }
.final__call a { font-weight: 700; white-space: nowrap; }
.final__form { background: var(--bg3); padding: clamp(22px, 3vw, 36px); border-radius: 4px; }
@media (max-width: 899px) { .final__grid { grid-template-columns: 1fr; } }

/* ---------- сторінка послуги (загальний шаблон) ---------- */
.phero { padding: 20px 0 clamp(56px, 7vw, 96px); }
.crumbs { margin-bottom: 22px; font-size: var(--fs-small); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.phero__grid--single { grid-template-columns: 1fr; }
.phero__h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.phero__price { font-size: var(--fs-h3); font-weight: 700; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { background: var(--bg3); padding: 8px 14px; border-radius: 4px; font-size: 16px; font-weight: 500; }
.phero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.qform { margin-top: 30px; max-width: 540px; }
.qform__label { display: block; font-size: var(--fs-small); color: var(--muted); margin-bottom: 8px; }
.qform__row { display: flex; gap: 10px; }
.qform__row .field__input { flex: 1; min-width: 0; }
.qform__row .btn { flex: none; }
.phero__img img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 70px); object-fit: cover; border-radius: 4px; }
@media (max-width: 899px) {
  .phero { padding-top: 14px; }
  .crumbs { margin-bottom: 14px; }
  .phero__grid { grid-template-columns: 1fr; }
  .phero__btns .btn { flex: 1 1 100%; padding: 0 20px; }
  .phero__img img { aspect-ratio: 4 / 3; max-height: none; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.split--single { grid-template-columns: 1fr; }
.split--text { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
.split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.plain-list { display: grid; gap: 16px; margin-top: 28px; }
@media (max-width: 899px) { .split, .split--text { grid-template-columns: 1fr; } }

.srow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 16px clamp(32px, 5vw, 80px); padding: 0 0 clamp(40px, 5vw, 64px); }
.srow:last-child { padding-bottom: 0; }
.srow__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
.srow__body { max-width: 60ch; }
.srow--img { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr); }
.srow__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.srow__free { max-width: 64ch; margin-top: 32px; }
@media (max-width: 899px) { .srow, .srow--img { grid-template-columns: 1fr; } }

.proof__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.proof__video { width: min(320px, 100%); aspect-ratio: 9 / 16; background: #000; border-radius: 4px; overflow: hidden; }
.proof__vid { width: 100%; height: 100%; object-fit: cover; }
.proof__text p:not(.lead) { margin-top: 18px; max-width: 54ch; }
@media (max-width: 899px) { .proof__grid { grid-template-columns: 1fr; } .proof__video { width: min(260px, 70%); } }

.ticks { display: grid; gap: 16px; }
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-body); line-height: 1.5; }
.ticks .ic { width: 22px; height: 22px; color: var(--acc); margin-top: 3px; }
@media (max-width: 599px) { .ticks--cols { grid-template-columns: 1fr; } }

.others__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.others__list a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name arrow" "text arrow"; gap: 4px 16px; align-items: center; padding: 22px 26px; background: var(--bg2); border-radius: 4px; text-decoration: none; transition: background-color .2s var(--ease); }
.section--alt .others__list a { background: var(--bg); }
.others__list a:hover { background: var(--bg3); }
.others__name { grid-area: name; font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
.others__text { grid-area: text; color: var(--muted); font-size: var(--fs-small); }
.others__arrow { grid-area: arrow; width: 22px; height: 22px; color: var(--acc); }
@media (max-width: 599px) { .others__list { grid-template-columns: 1fr; } }

/* ---------- спільний перший екран сторінок «Для кого» (partials/aud-hero.php) ---------- */
.aud-hero { padding: 18px 0 clamp(48px, 6vw, 88px); }
.aud-hero .crumbs { margin-bottom: 20px; }
.aud-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px clamp(36px, 5vw, 80px); align-items: center; }
.aud-hero__grid--single { grid-template-columns: 1fr; }
.aud-hero__text { display: flex; flex-direction: column; align-items: flex-start; }
.aud-hero__h1 { order: 1; font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; max-width: 18ch; text-wrap: balance; }
.aud-hero__lead { order: 2; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); max-width: 42ch; }
.aud-hero__facts { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 26px; width: 100%; max-width: 640px; }
.aud-hero__facts li { position: relative; padding-left: 22px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.aud-hero__facts li::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 2px; background: var(--acc); }
.aud-hero__btns { order: 4; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.aud-hero__msgr { order: 5; margin-top: 14px; }
.aud-hero__hours { order: 6; margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }
.aud-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--bg3); }
@media (max-width: 899px) {
  .aud-hero { padding-top: 12px; }
  .aud-hero .crumbs { margin-bottom: 12px; }
  .aud-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .aud-hero__h1 { margin-bottom: 14px; }
  .aud-hero__btns { width: 100%; margin-top: 22px; gap: 10px; }
  .aud-hero__btns .btn { flex: 1 1 100%; padding: 0 20px; }
  /* на телефоні спершу H1, лід, кнопки; факти після годин */
  .aud-hero__facts { order: 7; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .aud-hero__msgr { width: 100%; }
}

/* рядок коротких фактів сторінки одразу під спільним першим екраном (wg_aud_facts у helpers.php) */
.aud-facts { background: var(--bg2); padding: clamp(24px, 3vw, 36px) 0; }
.aud-facts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(20px, 3vw, 40px); }
.aud-facts__list--1 { grid-template-columns: minmax(0, 640px); }
.aud-facts__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aud-facts__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; position: relative; padding-left: 22px; color: var(--ink); text-decoration: none; }
.aud-facts__item::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 2px; background: var(--acc); }
.aud-facts__title { grid-column: 1; font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
.aud-facts__text { grid-column: 1; font-size: 17px; color: var(--muted); line-height: 1.45; }
.aud-facts__ic { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--acc); transition: transform .2s var(--ease); }
.aud-facts__item--link:hover .aud-facts__title { color: var(--acc-ink); }
.aud-facts__item--link:hover .aud-facts__ic { transform: translateX(4px); }
@media (max-width: 899px) { .aud-facts__list, .aud-facts__list--2 { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- месенджери (partials/messengers.php) ----------
   Фірмові кольори Viber і Telegram: свідомий виняток із правила «без синього», їх упізнають за кольором. */
.msgr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.msgr__label { font-size: 17px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.msgr__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 26px; border-radius: 4px;
  font: 600 18px/1.2 var(--font); color: #fff; text-decoration: none;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.msgr__btn:active { transform: scale(.98); }
.msgr__btn .ic { width: 24px; height: 24px; flex: none; }
.msgr__btn--viber { background: #7360f2; }
.msgr__btn--viber:hover { background: #5e4bdc; }
.msgr__btn--telegram { background: #229ed9; }
.msgr__btn--telegram:hover { background: #1a88bd; }
.msgr--sm .msgr__btn { min-height: 46px; padding: 0 18px; font-size: 17px; }
.msgr--sm .msgr__btn .ic { width: 22px; height: 22px; }
.msgr--icon { gap: 8px; flex-wrap: nowrap; }
.msgr--icon .msgr__btn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; }
.msgr--icon .msgr__btn .ic { width: 19px; height: 19px; }
@media (max-width: 599px) {
  .msgr__btn { min-height: 56px; }
  .msgr--sm .msgr__btn { min-height: 48px; }
  .msgr--lg .msgr__btn, .msgr--sm .msgr__btn { flex: 1 1 0; }
  .msgr__label { flex: 1 1 100%; }
}

/* місця, де стоять месенджери */
.hero__side .msgr { margin-top: 14px; }
@media (max-width: 899px) { .hero__side .msgr { margin-top: 10px; gap: 6px 8px; } }
.final__text .msgr, .pg-ofisy-final__text .msgr, .kv-final__text .msgr, .mz-final__text .msgr { margin-top: 18px; }
.hdr__msgr { display: flex; }
@media (max-width: 1299px) { .hdr__msgr { margin-left: auto; } .hdr__msgr + .hdr__cta { margin-left: 0; } }
@media (max-width: 599px) { .hdr__msgr { display: none; } .hdr__msgr + .hdr__cta { margin-left: auto; } }
.ftr__msgr .msgr { margin-top: 6px; }
.ftr__list .msgr__btn { color: #fff; }
.ftr__list .msgr__btn:hover { color: #fff; }
.lead-modal__alt .msgr__label { font-size: var(--fs-small); color: var(--muted); }
.thanks__in .msgr { margin-top: 32px; }
.thanks__in .msgr + .thanks__btns { margin-top: 12px; }

/* ---------- службові сторінки ---------- */
.legal__in, .nf__in, .thanks__in { max-width: 820px; }
.legal__in p { max-width: 68ch; }
.legal__h { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin: 44px 0 12px; }
.nf__in .lead, .thanks__in .lead { margin-bottom: 28px; }
.nf__btns, .thanks__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }

/* ---------- футер ---------- */
.ftr { background: var(--bg-deep); padding: clamp(56px, 6vw, 88px) 0 30px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
.ftr__brand p { margin-top: 16px; font-size: 17px; max-width: 30ch; }
.ftr__h { font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.ftr__list { display: grid; gap: 12px; font-size: 17px; }
.ftr__list a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ftr__list a:hover { color: var(--acc-ink); }
.ftr__phone { font-size: 20px; font-weight: 700; }
.ftr__copy { margin-top: 44px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 899px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 459px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- нижня панель на телефоні ---------- */
.mbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 6px;
    background: var(--bg2);
    transition: transform .3s var(--ease);
  }
  .mbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 0 6px; background: var(--bg); border: 0; border-radius: 4px; text-decoration: none; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
  .mbar__btn .ic { width: 20px; height: 20px; }
  .mbar__btn--main { background: var(--acc); }
  .mbar__btn--viber { background: #7360f2; }
  .mbar__btn--telegram { background: #229ed9; }
  .mbar__btn--viber .ic, .mbar__btn--telegram .ic { width: 22px; height: 22px; }
  body.mbar-off .mbar, body.lead-modal-open .mbar, body.nav-open .mbar { transform: translateY(110%); }
  body.lead-modal-open .mbar { transition: none; }
}

/* ---------- «Не вдалося додзвонитись?» ---------- */
.callback { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: min(350px, calc(100vw - 32px)); padding: 22px; background: var(--bg2); border: 2px solid var(--bg3); border-radius: 4px; }
.callback__close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.callback__close .ic { width: 20px; height: 20px; }
.callback__title { font-size: 20px; font-weight: 700; margin-bottom: 4px; padding-right: 30px; }
.callback__text { margin-bottom: 12px; font-size: 17px; }
@media (max-width: 899px) { .callback { bottom: calc(78px + env(safe-area-inset-bottom)); } }

/* ---------- модалка ---------- */
.lead-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 13, .8); }
.lead-modal__dialog { position: relative; width: min(500px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--bg2); border-radius: 4px; padding: clamp(24px, 4vw, 38px); }
.lead-modal.is-open .lead-modal__dialog { animation: wg-pop .3s var(--ease); }
@keyframes wg-pop { from { transform: translateY(14px); } to { transform: none; } }
.lead-modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.lead-modal__close .ic { width: 22px; height: 22px; }
.lead-modal__title { font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; line-height: 1.15; margin-bottom: 8px; padding-right: 36px; }
.lead-modal__service { font-weight: 600; color: var(--acc-ink); margin-bottom: 8px; }
.lead-modal__service:empty { display: none; }
.lead-modal__text { margin-bottom: 20px; }
.lead-modal__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: var(--fs-small); }
body.lead-modal-open { overflow: hidden; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(10, 12, 13, .94); padding: 16px; }
.lightbox__img { max-width: 92vw; max-height: 88svh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.lightbox__close .ic { width: 26px; height: 26px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; background: var(--bg3); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover, .lightbox__next:hover { background: var(--acc); }
.lightbox__prev .ic, .lightbox__next .ic { width: 24px; height: 24px; }
.lightbox__img { background: #fff; }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; margin-top: 0; } .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); } .lightbox__img { max-height: 78svh; } }

/* ---------- поява секцій ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Довгі заголовки-посили (безпека, фінальний заклик): трохи менший кегль, щоб тримались у 2 рядки */
.safety__text .h2, .final__text .h2 { font-size: clamp(27px, 2.75vw, 40px); }

/* Блоки-посили про безпеку: місто через скло на тлі, сильно затемнене суцільним шаром, щоб текст читався */
.safety, .final { position: relative; isolation: isolate; background: var(--bg) center / cover no-repeat; }
.safety { background-image: url("../../../../assets/img/wg/bg-city.webp"); }
.final { background-image: url("../../../../assets/img/wg/bg-city-2.webp"); }
.safety::before, .final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 25, 27, .84); }
.safety__text .h2, .final__text .h2 { font-weight: 800; color: #fff; }
.safety__text .lead, .final__text p { color: #fff; }
.safety__point p { color: #e6e9ea; }

/* ---------- кнопка «Нагору» ---------- */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg3); color: #fff; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); /* taste-skill-ignore: плаваюча кнопка поверх контенту */ opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s; }
.totop:not(.is-on) { pointer-events: none; }
.totop.is-on { opacity: 1; transform: none; }
.totop:hover, .totop:focus-visible { background: var(--acc); }
.totop .ic { width: 24px; height: 24px; }
@media (max-width: 899px) { .totop { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 46px; height: 46px; } }
body.lead-modal-open .totop, body.nav-open .totop, body:has(.callback:not([hidden])) .totop { opacity: 0; pointer-events: none; }


/* ---------- якість: «Чому ми клеїмо лише Armolan» (головна, одразу після квізу) ---------- */
.quality__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px clamp(40px, 6vw, 88px); align-items: start; }
.quality__intro .lead { max-width: 44ch; }
.quality__intro .link-arrow { margin-top: 22px; }
.quality__classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quality__classes li { display: grid; gap: 8px; align-content: start; padding: 20px 16px 18px; background: var(--bg3); border-top: 4px solid var(--acc); border-radius: 4px; }
.quality__class { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.quality__cap { font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.quality__note { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.quality__points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--bg3); }
.quality__points li { position: relative; padding-top: 22px; }
.quality__points li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 2px; background: var(--acc); }
.quality__points h3 { margin-bottom: 8px; }
.quality__points p { font-size: 17px; line-height: 1.55; }
@media (max-width: 1099px) { .quality__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .quality__top { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .quality__points { grid-template-columns: 1fr; gap: 26px; }
  .quality__points p { font-size: var(--fs-body); }
  .quality__classes { gap: 8px; }
  .quality__classes li { padding: 16px 12px 14px; }
  .quality__class { font-size: 30px; }
}

/* ---------- статті: картки (головна, /statti/, «Інші статті») ---------- */
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.acards--1 { grid-template-columns: minmax(0, 520px); }
.acards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acard { display: flex; }
.acard__link { display: flex; flex-direction: column; width: 100%; background: var(--bg2); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; transition: background-color .2s var(--ease); }
.section--alt .acard__link { background: var(--bg); }
.acard__link:hover { background: var(--bg3); }
.acard__img { display: block; overflow: hidden; background: var(--bg3); }
.acard__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.acard__link:hover .acard__img img { transform: scale(1.03); }
.acard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.acard__date { font-size: var(--fs-small); color: var(--muted); margin-bottom: 8px; }
.acard__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; text-wrap: balance; }
.acard__text { font-size: 17px; line-height: 1.5; color: var(--muted); }
.acard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 600; }
.acard__more .ic { width: 20px; height: 20px; color: var(--acc); transition: transform .2s var(--ease); }
.acard__link:hover .acard__more .ic { transform: translateX(4px); }
@media (max-width: 1099px) { .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .acards, .acards--2 { grid-template-columns: 1fr; gap: 16px; } .acard__body { padding: 18px 18px 20px; } }

.arts-home__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.arts-home__head .link-arrow { margin-top: 0; }

/* список /statti/ */
.arts { padding: 18px 0 var(--sec); }
.arts__head { margin-bottom: clamp(32px, 4vw, 48px); }
.arts__head .h1 { margin-bottom: 16px; }

/* сторінка статті */
.art { padding: 18px 0 var(--sec); }
.art__in { max-width: calc(820px + 2 * var(--pad)); }
.art__h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 14px; }
.art__meta { font-size: var(--fs-small); color: var(--muted); }
.art__lead { margin-top: 22px; max-width: 52ch; }
.art__cover { margin-top: clamp(28px, 4vw, 40px); }
.art__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-radius: 4px; background: var(--bg3); }
.art__body { margin-top: clamp(32px, 4vw, 44px); max-width: 68ch; }
.art__body p { margin-top: 0; }
.art__body p + p, .art__body ul + p, .art__body p + ul { margin-top: 16px; }
.art__body h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 44px 0 14px; text-wrap: balance; }
.art__body h2:first-child { margin-top: 0; }
.art__body ul { display: grid; gap: 10px; }
.art__body a { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.art__body a:hover { color: var(--acc-ink); }
.art__body li { position: relative; padding-left: 24px; }
.art__body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 2px; background: var(--acc); }
@media (max-width: 899px) { .arts, .art { padding-top: 12px; } }

/* заявка під статтею */
.art-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px); background: var(--bg2); border-top: 4px solid var(--acc); border-radius: 4px; }
.art-cta__h { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; margin-bottom: 8px; }
.art-cta__text p { max-width: 52ch; }
.art-cta__btns { display: flex; flex-direction: column; gap: 10px; }
.arts .art-cta { max-width: none; }
@media (max-width: 899px) { .art-cta { grid-template-columns: 1fr; } .art-cta__btns .btn { width: 100%; padding: 0 20px; } }
.art-more .acards { margin-top: 8px; }
/* на телефоні в крихтах статті без назви: вона одразу нижче в H1 */
@media (max-width: 599px) { .art .crumbs li[aria-current] { display: none; } }
