/* ==========================================================================
   WINTA · promo landing pages
   Brand: dark blue #242278, accent green #6bc075, шрифты WINTA:
   заголовки Xolonium, текст Toxigenesis (assets/fonts/winta.css)
   Mobile-first. No frameworks.
   ========================================================================== */

:root {
  --brand: #242278;
  --brand-dark: #1a1858;
  --brand-mid: #35319b;
  --brand-soft: #eeedf8;
  --accent: #6bc075;
  --accent-dark: #4fa55b;
  /* accent-light — акцент на тёмно-синем фоне (контраст 7,9:1) */
  --accent-light: #8fd89a;
  /* accent-ink — акцент на белом и светло-сером (5,1:1 и 4,7:1) */
  --accent-ink: #2e7d3a;
  --ink: #16162c;
  --muted: #5d5d78;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(22, 22, 44, .08);
  --shadow-lg: 0 22px 50px rgba(22, 22, 44, .14);
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 62px;
  --font: "Toxigenesis", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Xolonium", "Toxigenesis", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--font-head); font-weight: 700; line-height: 1.14; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 7.2vw, 54px); }
h2 { font-size: clamp(24px, 4.6vw, 38px); }
h3 { font-size: clamp(19px, 3vw, 23px); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 46px 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand); color: #fff; }
.section--tight { padding: 34px 0; }

.section__head { max-width: 760px; margin-bottom: 26px; }
.section__lead { color: var(--muted); font-size: 17px; margin: 0; }
.section--brand .section__lead { color: rgba(255, 255, 255, .82); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
/* на тёмно-синем фоне нужен светлый акцент — иначе текст сливается */
.hero .eyebrow,
.section--brand .eyebrow,
.form-section .eyebrow { color: var(--accent-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color .18s, color .18s, transform .12s, box-shadow .18s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--accent { background: var(--accent); color: #10290f; box-shadow: 0 8px 22px rgba(107, 192, 117, .34); }
.btn--accent:hover { background: #276b32; color: #fff; }
.btn--outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--light:hover { background: #fff; color: var(--brand); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(22, 22, 44, .1); }
.header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.header__logo img { height: 26px; width: auto; }
.header__tag {
  display: none;
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  max-width: 150px;
}
.header__nav { display: none; margin-left: auto; }
.header__nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.header__nav a { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.header__nav a:hover { color: var(--brand); text-decoration: none; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone { display: none; font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--brand); text-decoration: none; }
.header__cta { display: none; }

.burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); border: 0; border-radius: 10px; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--brand); border-radius: 2px; position: relative;
  transition: transform .2s, opacity .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: #fff;
  padding: 18px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .26s ease;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.drawer.is-open { transform: translateX(0); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a {
  display: block;
  padding: 13px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer__products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drawer__products a {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-soft); font-weight: 600; color: var(--brand);
}
.drawer__contacts { display: grid; gap: 8px; font-size: 16px; }
.drawer__contacts a { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding: 34px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 88% 6%, rgba(107, 192, 117, .26), transparent 62%),
    radial-gradient(70% 60% at 4% 96%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 26px; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 620px; }
.hero__bullets {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero__bullets li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 600;
}
.hero__bullets li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__kit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero__kit-label { margin-right: 2px; }
a.hero__chip { display: inline-block; padding: 4px 12px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px;
  color: #fff; font-size: 13.5px; line-height: 1.3; text-decoration: none; transition: border-color .15s, background .15s; }
a.hero__chip:hover { border-color: var(--accent); background: rgba(107, 192, 117, .15); text-decoration: none; }
.hero__note { font-size: 14px; color: rgba(255, 255, 255, .7); margin: 14px 0 0; }
.hero__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  min-height: 230px;
}
/* реальное фото в первом экране: кадрируем под квадрат, чтобы блок не «прыгал» */
.hero__photo { width: 100%; height: 100%; min-height: 230px; object-fit: cover; aspect-ratio: 1 / 1; }

/* ---------- placeholder blocks (photos pending) ---------- */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(36, 34, 120, .05) 0 10px, transparent 10px 20px),
    var(--brand-soft);
  color: var(--brand);
  text-align: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
}
.ph--dark {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 10px, transparent 10px 20px),
    rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  aspect-ratio: auto;
  height: 100%;
  min-height: 230px;
}
/* карточка товара на странице-хабе: не тянется на всю высоту hero */
.ph--card { aspect-ratio: 4 / 3; height: auto; min-height: 190px; }
.ph svg { width: 46px; height: 46px; opacity: .7; }
.ph__hint { font-weight: 400; font-size: 12.5px; opacity: .8; max-width: 240px; }

/* ---------- markers strip ---------- */
.markers { background: var(--brand-dark); color: #fff; padding: 16px 0; }
.markers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.marker { text-align: center; }
.marker__value { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.marker__label { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* Сетки: без min-width:0 колонка не может стать уже своего содержимого,
   и таблица цен (min-width 520px) растягивает страницу на 990–1150px. */
.grid > *, .two-col > *, .hero__grid > *, .form-layout > *, .products > * { min-width: 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d8d8e4; }
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 12px; margin-bottom: 14px;
}
.card__icon svg { width: 24px; height: 24px; }
.card--accent .card__icon { background: rgba(107, 192, 117, .16); color: var(--accent-ink); }

/* numbered benefit cards */
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}

/* ---------- specs ---------- */
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.specs__row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.specs__row:last-child { border-bottom: 0; }
.specs__row:nth-child(odd) { background: #fafafc; }
.specs__label { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.specs__value { color: var(--muted); font-size: 15.5px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--brand); color: #fff; font-weight: 700; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: #fafafc; }
table.data td:first-child { font-weight: 700; white-space: nowrap; }
.table-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- portfolio ---------- */
/* На телефоне карточка узкая, поэтому подписи мельче и с меньшими отступами,
   иначе заголовок ломается на четыре строки. */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.work { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.work__media { position: relative; background: var(--brand-soft); }
.work__media img { width: 100%; height: auto; aspect-ratio: var(--work-ratio, 3 / 4); object-fit: cover; }
.work__cap { padding: 10px 11px; }
.work__title { font-weight: 700; font-size: 14px; line-height: 1.25; hyphens: auto; }
.work__sub { font-size: 12.5px; line-height: 1.3; color: var(--muted); margin-top: 2px; }

/* свёрнутая галерея: показываем первые девять работ */
.portfolio.is-collapsed .work:nth-child(n+10) { display: none; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 12px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 62px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step__text { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- info lists ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink); }
.info-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent-dark);
  border-bottom: 2.5px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- стена логотипов клиентов ---------- */
/* Логотипы нарисованы под светлый фон (часть — чёрные и белые), поэтому
   держим их на белых плитках, а не прямо на тёмно-синем. */
.client-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  min-height: 84px;
}
.client-logo img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; }
.client-wall__note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }

.record { margin-top: 30px; text-align: center; }
.record__value { font-size: clamp(34px, 8vw, 58px); font-weight: 700; color: var(--brand); line-height: 1; }
.record__title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.record__text { color: var(--muted); max-width: 640px; margin: 6px auto 0; font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 18px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--ink); text-align: left;
}
.faq__q:hover { color: var(--brand); }
.faq__icon { flex: 0 0 auto; position: relative; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.faq__icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: none; padding: 0 18px 18px; color: var(--muted); font-size: 16px; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- form ---------- */
.form-section { background: var(--brand); color: #fff; }
/* в этой секции фон тёмно-синий, поэтому служебный текст тоже светлый */
.form-section .section__lead { color: rgba(255, 255, 255, .86); }
.form-section .info-list li { color: #fff; }
.form-section .info-list li::before {
  border-left-color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}
.form-section__contacts { color: #fff; margin-top: 24px; }
.form-section__contacts a { color: #fff; }
.form-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.form-card h2 { margin-bottom: 6px; }
.form-card__lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 78px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b85; opacity: 1; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 34, 120, .12);
}
.field.has-error input, .field.has-error select { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.field__err { display: none; color: #c0392b; font-size: 13.5px; margin-top: 4px; }
.field.has-error .field__err { display: block; }
.field--row { display: grid; gap: 13px; grid-template-columns: 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 14px 0; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--brand); }
.check.has-error { color: #c0392b; }
.form__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 16px 6px; }
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(107, 192, 117, .16); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.form-success__icon svg { width: 30px; height: 30px; }
.form-error { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecea; color: #a5281b; font-size: 15px; }
.form-error.is-visible { display: block; }

/* ---------- product cards (hub) ---------- */
.products { display: grid; gap: 14px; grid-template-columns: 1fr; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 20px; margin-bottom: 6px; }
.product-card__text { color: var(--muted); font-size: 15px; flex: 1; }
.product-card__link { font-weight: 700; color: var(--brand); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.product-card__link::after { content: "→"; transition: transform .2s; }
.product-card:hover .product-card__link::after { transform: translateX(4px); }

/* ---------- footer ---------- */
.footer { background: #14142b; color: rgba(255, 255, 255, .74); padding: 34px 0 calc(90px + var(--cookie-h, 0px)); font-size: 15px; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 22px; }
.footer__title { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer__bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: rgba(255, 255, 255, .55); display: grid; gap: 8px; }

/* ---------- sticky widgets ---------- */
/* bottom сдвигается на высоту куки-баннера (--cookie-h ставит скрипт),
   иначе баннер перекрывает кнопки связи на мобильном. */
.widgets { position: fixed; right: 12px; bottom: calc(14px + var(--cookie-h, 0px)); z-index: 70; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; transition: bottom .2s; }
.widget {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: 0; cursor: pointer; color: #fff;
  transition: transform .16s;
}
.widget:hover { transform: scale(1.07); text-decoration: none; }
.widget svg { width: 26px; height: 26px; }
.widget--max { background: linear-gradient(140deg, #7b4bff, #4a35d6); }
.widget--wa { background: #25d366; }
.widget--phone { background: var(--brand); }
.widget--top { background: #fff; color: var(--brand); border: 1px solid var(--line); opacity: 0; pointer-events: none; }
.widget--top.is-visible { opacity: 1; pointer-events: auto; }
.widget__label {
  position: absolute; right: 62px; white-space: nowrap;
  background: #14142b; color: #fff; font-size: 13.5px;
  padding: 7px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .16s;
}
.widget:hover .widget__label { opacity: 1; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 43, .58); }
.modal__box {
  position: relative; z-index: 1;
  width: calc(100% - 32px); max-width: 440px;
  margin: 12vh auto 0;
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 82vh; overflow-y: auto;
}
.modal__close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: var(--bg-soft); border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); }

/* ---------- согласие на cookie ---------- */
.cookie {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: #14142b;
  color: #fff;
  box-shadow: 0 -8px 30px rgba(20, 20, 43, .28);
}
.cookie.is-visible { display: block; }
.cookie__inner {
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
  padding-top: 14px; padding-bottom: 14px;
}
.cookie__text { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.cookie__text a { color: #fff; text-decoration: underline; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- политика конфиденциальности ---------- */
.privacy { max-width: 820px; }
.privacy__back { display: inline-block; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.privacy h1 { margin-bottom: 8px; }
.privacy__updated { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.privacy__intro { font-size: 17px; }
.privacy__section { margin-top: 28px; }
.privacy__section h2 { font-size: clamp(19px, 3vw, 23px); margin-bottom: 10px; }
.privacy__list { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); font-size: 16px; }
.privacy__list li::marker { color: var(--accent-ink); }

/* ---------- misc ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Tablet ≥ 620px
   ========================================================================== */
@media (min-width: 620px) {
  .section { padding: 60px 0; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .markers__grid { grid-template-columns: repeat(4, 1fr); }
  .field--row { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .work__cap { padding: 12px 14px; }
  .work__title { font-size: 15.5px; }
  .work__sub { font-size: 13.5px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .specs__row { grid-template-columns: 220px 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .client-wall { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .client-logo { min-height: 112px; }
  .client-logo img { max-height: 72px; }

  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .cookie__text { font-size: 15px; }
}

/* ==========================================================================
   Desktop ≥ 990px
   ========================================================================== */
@media (min-width: 990px) {
  :root { --gutter: 24px; --header-h: 74px; }
  body { font-size: 18px; }
  .section { padding: 74px 0; }
  .section--tight { padding: 46px 0; }

  .header__tag { display: none; }
  .header__nav { display: none; }
  .header__phone { display: inline; }
  .header__cta { display: inline-flex; }
  .header__actions { margin-left: auto; }

  .hero { padding: 58px 0 66px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 44px; }
  .hero__sub { font-size: 19px; }
  .hero__visual { min-height: 380px; }
  .ph--dark { min-height: 380px; }
  .ph--card { min-height: 210px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .step { padding: 58px 16px 18px; }
  .step::before { left: 16px; top: 16px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .footer { padding-bottom: 40px; }

  .client-wall { grid-template-columns: repeat(5, 1fr); }
  .client-logo { min-height: 128px; }
  .client-logo img { max-height: 82px; }

  .form-layout { display: grid; grid-template-columns: 1fr 520px; gap: 46px; align-items: start; }
  .form-card { padding: 30px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
}

@media (min-width: 1200px) {
  .hero__grid { gap: 60px; }
}

/* ==========================================================================
   Широкий десктоп ≥ 1160px — только здесь помещается якорное меню.
   Ниже 1160 px логотип, телефон и кнопка просто не оставляют ему места:
   проверено замером, при 990–1100 px строка шапки вылезала на 30–75 px.
   ========================================================================== */
@media (min-width: 1160px) {
  .header__nav { display: block; margin-left: auto; }
  .header__nav ul { gap: 16px; }
  .header__nav a { font-size: 14.5px; }
  .header__actions { margin-left: 0; }
  .burger { display: none; }
  .drawer { display: none; }
}

@media (min-width: 1320px) {
  .header__tag { display: block; }
  .header__nav ul { gap: 20px; }
  .header__nav a { font-size: 15px; }
  .header__phone { font-size: 17px; }
}
