/* ==========================================================================
   Bloxet VPN 1000 — лендинг
   Свёрстано по исходному PSD (холст 1901px, контентная колонка 1371px).
   Цвета и размеры сняты из макета, не на глаз.
   ========================================================================== */

/* --- Шрифт Circe ---------------------------------------------------------- */

@font-face {
  font-family: "Circe";
  src: url("../fonts/circe-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("../fonts/circe-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("../fonts/circe-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("../fonts/circe-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Цвета из макета */
  --red: #c6362e;          /* заголовки разделов, телефон в шапке */
  --red-accent: #e6332a;   /* фигуры и акценты */
  --red-btn: #c10f1b;      /* кнопка «Заказать» */
  --red-btn-hover: #a10c16;
  --ink: #222221;          /* заголовки и основной текст */
  --ink-soft: #383c3d;     /* меню, заголовок баннера */
  --ink-muted: #3e3e3d;    /* описание «О продукте», подписи */
  --plate: #ebebeb;        /* плашки карточек */
  --plate-light: #f4f4f4;
  --bar-1: #b7b7b7;        /* шапка таблицы и первый аккордеон */
  --bar-2: #d2d2d2;
  --bar-3: #e6e6e6;
  --line: #d2d2d2;
  --white: #fff;

  --font: "Circe", "Segoe UI", Arial, Helvetica, sans-serif;

  --container: 1371px;     /* контентная колонка макета */
  --gutter: 20px;
}

/* --- Сброс ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- Сетка ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 46px; }

.section-title {
  margin-bottom: 40px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red);
}

/* --- Шапка ---------------------------------------------------------------- */

.site-header { padding-block: 46px 0; }
.site-header__inner { display: flex; align-items: center; gap: 48px; }

.logo { flex-shrink: 0; display: block; }
.logo img { display: block; width: 217px; }

.main-nav { display: flex; gap: 62px; margin-left: 117px; }
.main-nav a { font-size: 24px; color: var(--ink-soft); transition: color .15s; }
.main-nav a:hover { color: var(--red); }

.header-contacts { margin-left: auto; text-align: right; line-height: 1.32; }
.header-contacts a {
  display: block; font-size: 27px; font-weight: 700;
  letter-spacing: .03em; color: var(--red);
}
.header-contacts a:hover { color: var(--red-btn); }

.header__callback { margin-left: auto; flex-shrink: 0; }
.header__callback + .header-contacts { margin-left: 44px; }

/* --- Первый экран --------------------------------------------------------- */

.hero { padding-block: 22px 0; }

.hero__art {
  position: relative;
  /* Композиция из макета шире колонки — выпускаем её вправо, как в оригинале. */
  width: 103.2%;
  aspect-ratio: 1414 / 390;
}
.hero__art > img { display: block; width: 100%; height: 100%; }
.hero__art > .hero__art--mobile { display: none; }

.hero__title {
  position: absolute;
  left: 7.8%;
  top: 17%;
  max-width: 62%;
  font-size: clamp(17px, 1.82vw, 35px);
  font-weight: 700;
  line-height: 1.26;
  color: var(--ink-soft);
}

/* Красная черта под баннером */
.hero__rule {
  width: 283px; height: 9px; margin: 8px 0 0 auto;
  margin-right: 18.7%; background: var(--red-accent);
}

/* --- О продукте ----------------------------------------------------------- */

.about { padding-block: 36px 0; }
.about__inner { display: flex; gap: 34px; }

.about__label {
  flex-shrink: 0; width: 200px; padding-top: 4px;
  font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--red);
}

.about__text {
  border-left: 2px solid var(--line); padding-left: 34px;
  font-size: 21px; font-weight: 300; line-height: 1.42; color: var(--ink-muted);
}
.about__text p + p { margin-top: 4px; }

/* --- Слайдер устройств ---------------------------------------------------- */

.devices { padding-block: 42px 0; }
.devices__viewport { position: relative; padding-inline: 70px; }

.devices__slide { display: none; text-align: center; }
.devices__slide.is-active { display: block; }

.devices__photo {
  height: 230px; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
}
.devices__photo img { max-height: 100%; width: auto; }

.devices__name { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.devices__caption {
  margin-top: 12px; font-size: 16px; font-weight: 300; color: var(--ink-muted);
}

.devices__more {
  display: inline-block; margin-top: 18px; padding: 8px 26px;
  background: #dcdcdc; font-size: 19px; color: var(--ink);
  transition: background .15s, color .15s;
}
.devices__more:hover { background: var(--red-btn); color: var(--white); }

.devices__arrow {
  position: absolute; top: 90px; width: 0; height: 0; padding: 0;
  background: none; border-style: solid; opacity: .4; transition: opacity .15s;
}
.devices__arrow:hover { opacity: .9; }
.devices__arrow--prev {
  left: 0; border-width: 17px 22px 17px 0;
  border-color: transparent #8b8b8b transparent transparent;
}
.devices__arrow--next {
  right: 0; border-width: 17px 0 17px 22px;
  border-color: transparent transparent transparent #8b8b8b;
}

/* Серый уголок из макета */
.devices__corner { display: block; width: 115px; margin-top: 22px; }

/* --- Три преимущества ----------------------------------------------------- */

.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.usp__item {
  display: flex; flex-direction: column;
  min-height: 348px; padding: 34px 20px 40px 38px;
  background: var(--plate);
  background-image: url("../img/waves.svg");
  background-size: 150% auto;
  background-position: right -10% bottom -30%;
  background-repeat: no-repeat;
}
.usp__icon { width: 86px; margin-bottom: auto; }
.usp__title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.usp__text { margin-top: 46px; font-size: 22px; line-height: 1.3; }

/* --- Ключевые функции ----------------------------------------------------- */

.funcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; }
.funcs__icon { width: 83px; margin-bottom: 25px; }
.funcs__title { font-size: 25px; font-weight: 700; }
.funcs__text { margin-top: 12px; font-size: 20px; line-height: 1.35; }

/* --- Технологическая основа ----------------------------------------------- */

.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.tech__item { padding-top: 38px; border-top: 7px solid var(--red-accent); }
.tech__icon { height: 61px; margin-bottom: 24px; }
.tech__icon img { height: 100%; width: auto; }
.tech__title { font-size: 28px; font-weight: 700; }
.tech__text { margin-top: 14px; font-size: 22px; line-height: 1.32; }

/* --- Сертификация --------------------------------------------------------- */

.cert { display: grid; grid-template-columns: 676fr 695fr; gap: 58px; align-items: start; }

.cert__card { min-height: 356px; padding: 38px 42px; background: var(--plate); }
.cert__head { display: flex; align-items: center; gap: 28px; }
.cert__badge { width: 100px; flex-shrink: 0; }
.cert__title { font-size: 30px; font-weight: 700; line-height: 1.3; }

.cert__list { margin-top: 52px; padding-left: 14px; }
.cert__list li { position: relative; padding-left: 42px; font-size: 22px; }
.cert__list li + li { margin-top: 20px; }
.cert__list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}

.cert__points { display: grid; gap: 49px; padding-top: 24px; }
.cert__point { display: flex; gap: 22px; align-items: flex-start; }
.cert__check { width: 54px; flex-shrink: 0; }
.cert__point-title { font-size: 25px; font-weight: 700; }
.cert__point-text { margin-top: 4px; font-size: 20px; }

/* --- Доступ и аутентификация ---------------------------------------------- */

.auth { display: grid; grid-template-columns: repeat(2, 1fr); gap: 66px 74px; }
.auth__item { display: flex; gap: 24px; align-items: flex-start; }
.auth__icon { width: 84px; flex-shrink: 0; }
.auth__title { font-size: 25px; font-weight: 700; }
.auth__text { margin-top: 6px; font-size: 20px; line-height: 1.35; }

/* --- Технические характеристики ------------------------------------------- */

.specs { width: 100%; border-collapse: collapse; font-size: 20px; }
.specs th {
  padding: 16px 16px; text-align: left; font-weight: 700; font-size: 22px;
  background: var(--bar-1); color: var(--white);
}
.specs td { padding: 17px 16px; }
.specs td:first-child, .specs th:first-child { width: 39%; }
.specs td:first-child { font-weight: 700; }
.specs-wrap { overflow-x: auto; }

/* --- Аккордеоны ----------------------------------------------------------- */

.accordions { display: grid; gap: 10px; }

.acc__head {
  position: relative; width: 100%; padding: 20px;
  display: flex; align-items: center; justify-content: center; gap: 44px;
  border: 0; font-size: 22px; font-weight: 800; text-transform: uppercase;
  color: var(--ink); transition: filter .15s;
}
.acc:nth-child(1) .acc__head { background: var(--bar-1); }
.acc:nth-child(2) .acc__head { background: var(--bar-2); }
.acc:nth-child(3) .acc__head { background: var(--bar-3); }
.acc__head:hover { filter: brightness(.95); }

.acc__chevron {
  width: 0; height: 0; border-style: solid;
  border-width: 0 15px 17px 15px;
  border-color: transparent transparent var(--white) transparent;
  transition: transform .2s;
}
.acc.is-open .acc__chevron { transform: rotate(180deg); }

.acc__body { display: none; padding: 58px 0 40px; }
.acc.is-open .acc__body { display: block; }

/* Заголовок повторяется внутри раскрытого блока — так в макете */
.acc__title {
  margin-bottom: 44px; font-size: 24px; font-weight: 800;
  text-transform: uppercase; text-align: center; color: var(--red-accent);
}

/* Модельный ряд: красная черта, иконка, название, описание */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.models__item { padding-top: 24px; border-top: 8px solid var(--red-accent); }
.models__icon { width: 87px; margin-bottom: 21px; }
.models__name { font-size: 27px; font-weight: 700; }
.models__speed { margin-top: 10px; font-size: 22px; font-weight: 700; color: var(--red); }
.models__text { margin-top: 14px; font-size: 22px; line-height: 1.3; }
.models__note { margin-top: 36px; font-size: 16px; color: var(--ink); }

/* Сценарии применения: две колонки с круглыми иконками */
.scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 84px 74px; }
.scenarios__item { display: flex; gap: 24px; align-items: flex-start; }
.scenarios__icon { width: 84px; flex-shrink: 0; }
.scenarios__title { font-size: 27px; font-weight: 700; }
.scenarios__text { margin-top: 8px; font-size: 22px; line-height: 1.3; }

/* Схема развёртывания. Собрана вёрсткой, а не картинкой: подписи должны
   оставаться читаемыми и на телефоне, и на мониторе. */
.scheme {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center; max-width: 1180px; margin: 0 auto;
}
.scheme__node { display: flex; align-items: center; gap: 16px; margin: 0; }
.scheme__node img { display: block; width: 84px; flex-shrink: 0; }
.scheme__node figcaption { font-size: 22px; font-weight: 700; line-height: 1.25; }

.scheme__node--globe { flex-direction: column; gap: 10px; }
.scheme__node--globe img { width: 147px; }

.scheme__right { display: grid; gap: 40px; }

/* Соединительные линии: прямая слева и развилка справа */
.scheme__link { align-self: center; width: 100%; }
.scheme__link--straight { height: 1px; background: #c4c4c4; }
.scheme__link--fork { height: 130px; overflow: visible; }
.scheme__link--fork path {
  fill: none; stroke: #c4c4c4; stroke-width: 1; vector-effect: non-scaling-stroke;
}

.deploy__text { margin-top: 30px; font-size: 20px; color: var(--ink); text-align: center; }

/* Произвольные блоки из редактора */
.acc__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; font-size: 20px; }
.acc__cols h4 { margin-bottom: 12px; font-size: 25px; font-weight: 700; }
.acc__cols li { position: relative; padding-left: 22px; line-height: 1.35; }
.acc__cols li + li { margin-top: 10px; }
.acc__cols li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red-accent);
}

/* Пометка «содержимое ещё не прислали» — незаметная звёздочка. */
.placeholder-note {
  margin-top: 26px; font-size: 24px; line-height: 1; color: var(--red-accent);
}

/* --- Контакты ------------------------------------------------------------- */

.contacts { padding-block: 60px 0; }
.contacts__inner { display: grid; grid-template-columns: 381fr 990fr; gap: 0; }
.contacts__label { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.contacts__address { margin-top: 30px; max-width: 390px; font-size: 21px; line-height: 1.4; color: var(--ink); white-space: pre-line; }
.contacts__address { line-height: 1.15; }
.contacts__phone { display: block; margin-top: 150px; font-size: 41px; font-weight: 700; letter-spacing: .03em; }
.contacts__mail { display: block; margin-top: 18px; font-size: 39px; }
.contacts__map { width: 100%; height: 346px; border: 0; display: block; background: var(--plate); }

/* --- Форма заказа --------------------------------------------------------- */

.order { padding-block: 78px 0; }
.order__title { margin-bottom: 52px; font-size: 22px; font-weight: 800; text-transform: uppercase; }

.form__row {
  display: grid; grid-template-columns: 162px minmax(0, 786px);
  gap: 0 0; align-items: center; margin-bottom: 14px;
}
.form__row label { font-size: 21px; }

.form__control {
  width: 100%; height: 40px; padding: 4px 12px; font: inherit; font-size: 19px;
  border: 1px solid var(--line); background: var(--white); border-radius: 0;
}
.form__control:focus { outline: 2px solid var(--red-accent); outline-offset: -1px; }
.form__control.is-invalid { border-color: var(--red-btn); }
select.form__control { height: 40px; }

.form__consent {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 948px; margin: 26px 0 32px;
}
.form__consent input { margin-top: 5px; flex-shrink: 0; width: 18px; height: 18px; }
.form__consent label { font-size: 17px; line-height: 1.45; color: var(--ink-muted); }
.form__consent a { color: var(--red); text-decoration: underline; }

.btn {
  display: inline-block; min-width: 164px; padding: 11px 30px; border: 0;
  background: var(--red-btn); color: var(--white);
  font-size: 22px; font-weight: 800; text-transform: uppercase; text-align: center;
  transition: background .15s;
}
.btn:hover { background: var(--red-btn-hover); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn--outline {
  min-width: 0; padding: 10px 22px; font-size: 18px;
  background: none; border: 2px solid var(--red); color: var(--red);
  transition: background .15s, color .15s;
}
.btn--outline:hover { background: var(--red); color: var(--white); }

.form__message { margin-top: 20px; font-size: 20px; }
.form__message--ok { color: #1c7a3e; }
.form__message--fail { color: var(--red-btn); }

/* honeypot — скрытое поле-ловушка для ботов, живой человек его не видит */
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* --- Подвал --------------------------------------------------------------- */

/* Композиция подвала в макете заходит вверх под форму — повторяем отрицательным отступом. */
/* Высота подвала follows за графикой: она масштабируется от ширины окна,
   иначе на широких мониторах её верх обрезался. 19.7vw = 374/1901 от холста макета. */
.site-footer { position: relative; margin-top: -30px; min-height: 19.7vw; overflow: hidden; }

.site-footer__deco {
  position: absolute; right: 0; bottom: 0; width: 63.2vw; max-width: none;
  pointer-events: none;
}

.site-footer__inner { position: relative; z-index: 2; padding-top: clamp(190px, 12.6vw, 300px); }
.site-footer__nav { display: flex; gap: 62px; }
.site-footer a { font-size: 24px; color: var(--ink-soft); }
.site-footer a:hover { color: var(--red); }
.site-footer__legal { max-width: 650px; margin-top: 30px; font-size: 16px; color: var(--ink-muted); }

/* --- Модальное окно ------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal__box {
  position: relative; z-index: 2; width: min(520px, calc(100% - 32px));
  margin: 10vh auto 0; padding: 38px 40px 42px; background: var(--white);
  max-height: 80vh; overflow-y: auto;
}
.modal__close {
  position: absolute; top: 12px; right: 18px; padding: 4px;
  background: none; border: 0; font-size: 30px; line-height: 1; color: #8b8b8b;
}
.modal__close:hover { color: var(--red); }
.modal__title { margin-bottom: 8px; font-size: 28px; font-weight: 700; }
.modal__text { margin-bottom: 24px; font-size: 19px; color: var(--ink-muted); }
.modal .form__row { grid-template-columns: 1fr; gap: 6px; }

/* --- Cookie-баннер -------------------------------------------------------- */

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; padding: 20px; background: var(--ink); color: #e8e8e8;
}
.cookie.is-visible { display: block; }
.cookie__inner {
  display: flex; align-items: center; gap: 34px;
  max-width: var(--container); margin: 0 auto;
}
.cookie__content { flex: 1; min-width: 0; }
.cookie__text { font-size: 15px; line-height: 1.45; }
.cookie__text a { color: var(--white); text-decoration: underline; }

.cookie__choices { display: flex; flex-shrink: 0; gap: 10px; }
/* Кнопки баннера мельче обычных .btn */
.cookie .btn,
.cookie__settings {
  min-width: 0; padding: 11px 22px; border: 2px solid transparent;
  font-size: 15px; font-weight: 800; line-height: 1.2; text-transform: uppercase;
  white-space: nowrap;
}
.cookie__settings { background: none; border-color: #6f7175; color: #e8e8e8; transition: border-color .15s, color .15s; }
.cookie__settings:hover { border-color: var(--white); color: var(--white); }

.cookie__details { display: grid; gap: 10px; margin-top: 14px; }
.cookie__details[hidden] { display: none; }
.cookie__option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cookie__option input { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; accent-color: var(--red-btn); }
.cookie__save {
  justify-self: start; margin-top: 4px; padding: 8px 18px; border: 0;
  background: var(--red-btn); color: var(--white);
  font-size: 14px; font-weight: 800; text-transform: uppercase;
}
.cookie__save:hover { background: var(--red-btn-hover); }

/* --- Юридические страницы ------------------------------------------------- */

.legal { padding-block: 50px 90px; max-width: 900px; }
.legal h1 { font-size: 36px; margin-bottom: 12px; }
.legal h2 { margin-top: 38px; margin-bottom: 10px; font-size: 24px; }
.legal p, .legal li { font-size: 19px; line-height: 1.55; color: var(--ink-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 10px; }
.legal li { position: relative; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red-accent);
}
.legal a { color: var(--red); text-decoration: underline; }
.legal__list { margin-top: 10px; counter-reset: legal-item; }
.legal__list > li { padding-left: 30px; counter-increment: legal-item; }
.legal__list > li::before {
  content: counter(legal-item) "."; width: auto; height: auto; top: 0; left: 0;
  border-radius: 0; background: none; font-weight: 700; color: var(--ink);
}
.legal__terms { margin: 0; }
.legal__terms dt { margin-top: 14px; font-size: 19px; font-weight: 700; color: var(--ink); }
.legal__terms dd { margin: 4px 0 0; padding-left: 22px; font-size: 19px; line-height: 1.55; color: var(--ink-muted); }
.legal__table-wrap { margin-top: 16px; overflow-x: auto; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 17px; }
.legal__table th, .legal__table td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal__table th { background: var(--plate-light); font-weight: 700; color: var(--ink); white-space: nowrap; }
.legal__table td { color: var(--ink-muted); }
.legal-doc-index {
  display: flex; flex-direction: column; min-height: 0;
  padding-top: 34px; padding-bottom: 0;
}
.legal-doc-index h1 { overflow-wrap: anywhere; }
.legal-doc-index__link { margin-top: 24px !important; overflow-wrap: anywhere; }
.legal-doc-index__link a { display: inline-block; padding: 0; border: 0; background: none; }
.legal-doc-index__link a:hover { background: none; }
.legal-doc-index .legal__back { margin-top: 26px; }
/* На коротких страницах документов футер прижат к низу экрана. */
body:has(.legal-doc-index) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(.legal-doc-index) .legal-doc-index { flex: 1 0 auto; width: 100%; min-height: 0; }
body:has(.legal-doc-index) .site-footer { flex: 0 0 auto; height: 300px; min-height: 300px; margin-top: 0 !important; }
body:has(.legal-doc-index) .site-footer__inner { padding-top: 42px; }
body:has(.legal-doc-index) .site-footer__deco { width: min(63.2vw, 1000px); bottom: -64px; }
body:has(.legal-doc-index) .site-footer__legal { max-width: 500px; }
@media (max-width: 900px) {
  body:has(.legal-doc-index) .legal-doc-index { padding-top: 28px; }
  body:has(.legal-doc-index) .site-footer { height: auto; min-height: 0; }
  body:has(.legal-doc-index) .site-footer__inner { padding-top: 24px; }
  body:has(.legal-doc-index) .site-footer__deco { width: 100%; bottom: -36px; }
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1200px) {
  body { font-size: 18px; }
  .main-nav { margin-left: 40px; gap: 40px; }
  .main-nav a { font-size: 20px; }
  .header-contacts a { font-size: 23px; }
  .logo img { width: 180px; }
  .usp__item { min-height: 300px; padding: 28px 24px 32px; }
  .usp__title, .tech__title { font-size: 24px; }
  .usp__text, .tech__text, .cert__list li { font-size: 19px; }
  .funcs__title, .auth__title, .cert__point-title, .acc__cols h4 { font-size: 22px; }
  .funcs__text, .auth__text, .cert__point-text, .acc__cols, .models__text { font-size: 18px; }
  .cert__title { font-size: 26px; }
  .contacts__phone { font-size: 34px; margin-top: 90px; }
  .contacts__address { font-size: 18px; }
  .contacts__mail { font-size: 30px; }
  .specs, .specs th { font-size: 18px; }
  .section-title, .acc__head, .order__title, .about__label, .contacts__label { font-size: 20px; }
  .about__text { font-size: 19px; }
  .scheme__node figcaption { font-size: 19px; }
  .scheme__node img { width: 72px; }
  .scheme__node--globe img { width: 120px; }
}

@media (max-width: 900px) {
  .section { padding-block: 34px; }

  /* Шапка в два ряда: в одну строку всё перестаёт помещаться уже здесь */
  .site-header__inner {
    display: grid; grid-template-columns: auto auto;
    align-items: center; gap: 14px 16px;
  }
  .logo { grid-area: 1 / 1; }
  .main-nav { grid-area: 1 / 2; justify-self: end; margin-left: 0; gap: 28px; }
  .header-contacts { grid-area: 2 / 1; text-align: left; }
  .header__callback { grid-area: 2 / 2; justify-self: end; margin-left: 0; }
  .header__callback + .header-contacts { margin-left: 0; }
  .btn--outline { white-space: nowrap; }
  .usp, .funcs, .tech, .models, .acc__cols { grid-template-columns: repeat(2, 1fr); }
  .scenarios { gap: 50px 40px; }
  .cert, .contacts__inner { grid-template-columns: 1fr; gap: 30px; }
  .contacts__phone { margin-top: 0; }
  .site-footer { min-height: 0; margin-top: 20px; }
  .site-footer__inner { padding-top: 40px; padding-bottom: 30px; }
  .site-footer__deco { width: 100%; }
  .usp__item { min-height: 0; }
  .usp__icon { margin-bottom: 26px; }
}

/* --- Телефон: раскладка по мобильному макету ------------------------------ */

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { --gutter: 22px; }
  .section { padding-block: 26px; }
  .section-title { margin-bottom: 22px; font-size: 16px; }

  /* Шапка: логотип и меню в строку, под ними контакты и кнопка */
  .site-header { padding-block: 18px 0; }
  .site-header__inner {
    display: grid; grid-template-columns: auto auto;
    align-items: center; gap: 14px 12px;
  }
  .logo { grid-area: 1 / 1; }
  .logo img { width: 160px; }
  .main-nav { grid-area: 1 / 2; justify-self: end; margin-left: 0; gap: 18px; }
  .main-nav a { font-size: 15px; }
  .header-contacts { grid-area: 2 / 1; text-align: left; line-height: 1.3; }
  .header-contacts a { font-size: 16px; }
  .header__callback { grid-area: 2 / 2; justify-self: end; margin-left: 0; }
  .header__callback + .header-contacts { margin-left: 0; }
  .btn--outline { padding: 8px 12px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }

  /* Первый экран: своя композиция, почти квадратная */
  .hero { padding-block: 12px 0; }
  .hero__art { width: 100%; aspect-ratio: 611 / 602; }
  .hero__art > img { display: none; }
  .hero__art > .hero__art--mobile { display: block; }
  .hero__title {
    left: 16%; top: 14.5%; max-width: 66%;
    font-size: clamp(14px, 4.1vw, 24px); line-height: 1.42; color: var(--ink);
  }
  .hero__rule { display: none; }

  /* О продукте */
  .about { padding-block: 22px 0; }
  .about__inner { flex-direction: column; gap: 12px; }
  .about__label { width: auto; font-size: 16px; text-align: center; }
  .about__text { border-left: 0; padding-left: 0; font-size: 16px; }
  .about__text p + p { margin-top: 12px; }

  /* Слайдер */
  .devices { padding-block: 22px 0; }
  .devices__viewport { padding-inline: 40px; }
  .devices__photo { height: 150px; margin-bottom: 20px; }
  .devices__name { font-size: 18px; }
  .devices__caption { font-size: 13px; }
  .devices__more { font-size: 15px; padding: 7px 20px; }
  .devices__arrow { top: 55px; }
  .devices__arrow--prev { border-width: 12px 15px 12px 0; }
  .devices__arrow--next { border-width: 12px 0 12px 15px; }
  .devices__corner { width: 84px; }

  /* Карточки: иконка слева, текст справа */
  .usp { grid-template-columns: 1fr; gap: 14px; }
  .usp__item {
    display: grid; grid-template-columns: 62px 1fr;
    grid-template-areas: "icon title" "icon text";
    column-gap: 18px; align-items: start;
    min-height: 0; padding: 20px; background-image: none;
  }
  .usp__icon { grid-area: icon; width: 62px; margin-bottom: 0; }
  .usp__title { grid-area: title; font-size: 18px; }
  .usp__text { grid-area: text; margin-top: 6px; font-size: 15px; }

  .funcs { grid-template-columns: 1fr; gap: 20px; }
  .funcs > article {
    display: grid; grid-template-columns: 62px 1fr;
    grid-template-areas: "icon title" "icon text";
    column-gap: 18px; align-items: start;
  }
  .funcs__icon { grid-area: icon; width: 62px; margin-bottom: 0; }
  .funcs__title { grid-area: title; font-size: 18px; }
  .funcs__text { grid-area: text; margin-top: 4px; font-size: 15px; }

  .tech { grid-template-columns: 1fr; gap: 22px; }
  .tech__item {
    display: grid; grid-template-columns: 62px 1fr;
    grid-template-areas: "icon title" "icon text";
    column-gap: 18px; align-items: start; padding-top: 18px;
  }
  .tech__icon { grid-area: icon; height: auto; margin-bottom: 0; }
  .tech__icon img { width: 52px; height: auto; }
  .tech__title { grid-area: title; font-size: 18px; }
  .tech__text { grid-area: text; margin-top: 4px; font-size: 15px; }

  /* Сертификация */
  .cert { gap: 24px; }
  .cert__card { min-height: 0; padding: 22px 20px; }
  .cert__head { gap: 18px; }
  .cert__badge { width: 76px; }
  .cert__title { font-size: 20px; }
  .cert__list { margin-top: 22px; padding-left: 0; }
  .cert__list li { padding-left: 30px; font-size: 15px; }
  .cert__list li + li { margin-top: 14px; }
  .cert__points { gap: 24px; }
  .cert__check { width: 44px; }
  .cert__point-title { font-size: 17px; }
  .cert__point-text { font-size: 15px; }

  /* Аутентификация и сценарии */
  .auth, .scenarios { grid-template-columns: 1fr; gap: 24px; }
  .auth__icon, .scenarios__icon { width: 62px; }
  .auth__title, .scenarios__title { font-size: 17px; }
  .auth__text, .scenarios__text { font-size: 15px; }

  /* Таблица: переносим текст, без горизонтальной прокрутки */
  .specs-wrap { overflow-x: visible; }
  .specs { font-size: 14px; }
  .specs th { padding: 10px 12px; font-size: 15px; }
  .specs td { padding: 10px 12px; }

  /* Раскладушка */
  .acc__head { gap: 14px; padding: 13px 10px; font-size: 14px; }
  .acc__chevron { border-width: 0 10px 12px 10px; }
  .acc__body { padding: 26px 0 16px; }
  .acc__title { margin-bottom: 22px; font-size: 16px; }
  .models { grid-template-columns: 1fr; gap: 22px; }
  .models__item { padding-top: 16px; border-top-width: 6px; }
  .models__icon { width: 62px; margin-bottom: 12px; }
  .models__name { font-size: 20px; }
  .models__speed, .models__text { font-size: 15px; }
  .models__note { margin-top: 22px; font-size: 13px; }
  .acc__cols { grid-template-columns: 1fr; gap: 22px; font-size: 15px; }
  .acc__cols h4 { font-size: 17px; }

  /* Схема развёртывания */
  .scheme { grid-template-columns: auto 1fr auto 1fr auto; }
  .scheme__node { gap: 8px; }
  .scheme__node img { width: 44px; }
  .scheme__node figcaption { font-size: 12px; }
  .scheme__node--office { flex-direction: column; text-align: center; }
  .scheme__node--globe img { width: 72px; }
  .scheme__right { gap: 22px; }
  .scheme__link--fork { height: 80px; }

  /* Контакты и форма */
  .contacts { padding-block: 28px 0; }
  .contacts__inner { gap: 22px; }
  .contacts__label { font-size: 16px; }
  .contacts__address { margin-top: 18px; font-size: 15px; max-width: none; }
  .contacts__phone { margin-top: 22px; font-size: 26px; }
  .contacts__mail { margin-top: 10px; font-size: 20px; }
  .contacts__map { height: 260px; }

  .order { padding-block: 30px 0; }
  .order__title { margin-bottom: 22px; font-size: 16px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .form__row label { font-size: 16px; }
  .form__control { height: 44px; font-size: 16px; }
  .form__consent { margin: 18px 0 22px; }
  .form__consent label { font-size: 13px; }
  .btn { font-size: 16px; padding: 12px 24px; }
  .form__message { font-size: 15px; }

  /* Подвал: на телефоне графика опускается под текст, иначе подписи
     ложатся прямо на волны и не читаются. */
  .site-footer {
    display: flex; flex-direction: column;
    min-height: 0; margin-top: 18px;
  }
  .site-footer__deco {
    position: static; order: 2; width: 100%; margin-top: 4px;
  }
  .site-footer__inner { order: 1; padding-top: 24px; padding-bottom: 0; }
  .site-footer__nav { flex-wrap: wrap; gap: 10px 26px; }
  .site-footer a { font-size: 16px; }
  .site-footer__legal { max-width: none; margin-top: 12px; font-size: 14px; }
  .contacts__address { max-width: 390px; }

  /* Модалка и cookie */
  .modal__box { margin-top: 8vh; padding: 26px 22px 28px; }
  .modal__title { font-size: 20px; }
  .modal__text { font-size: 15px; }
  .cookie { padding: 16px; }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie__text { font-size: 13px; }
  .cookie__choices { flex-wrap: wrap; }
  .cookie .btn, .cookie__settings { flex: 1 1 auto; padding: 10px 14px; font-size: 12px; }
  .legal { padding-block: 30px 60px; }
  .legal h1 { font-size: 26px; }
  .legal h2 { font-size: 20px; }
  .legal p, .legal li, .legal__terms dt, .legal__terms dd { font-size: 16px; }
  .legal__table { font-size: 14px; }
  .legal-doc-index { min-height: 30vh; }
  .legal-doc-index__link { margin-top: 18px !important; }
  .legal-doc-index__link a { max-width: 100%; font-size: 15px; }
}
