/* ==========================================================================
   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__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; }

/* Схема развёртывания */
.deploy { text-align: center; }
.deploy__img { width: 100%; max-width: 1374px; }
.deploy__text { margin-top: 30px; font-size: 20px; color: var(--ink); }

/* Произвольные блоки из редактора */
.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: 330px; font-size: 21px; line-height: 1.4; color: var(--ink); }
.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: 430px; 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__text { font-size: 17px; line-height: 1.45; }
.cookie__text a { color: var(--white); text-decoration: underline; }
.cookie .btn { flex-shrink: 0; }

/* --- Юридические страницы ------------------------------------------------- */

.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__back { display: inline-block; margin-top: 40px; font-size: 19px; color: var(--red); }

/* --- Адаптив -------------------------------------------------------------- */

@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 30px 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; }
}

@media (max-width: 900px) {
  .section { padding-block: 34px; }
  .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: 860px) {
  .site-header { padding-block: 26px 0; }
  .site-header__inner { flex-wrap: wrap; gap: 16px 28px; }
  .main-nav { margin-left: 0; }
  .header-contacts { text-align: left; width: 100%; order: 3; }
  .header__callback { margin-left: 0; order: 4; }
  .header__callback + .header-contacts { margin-left: 0; }
  .about__inner { flex-direction: column; gap: 14px; }
  .about__text { border-left: 0; padding-left: 0; }
  .form__row { grid-template-columns: 1fr; gap: 6px; }
  .cookie__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .usp, .funcs, .tech, .auth, .models, .acc__cols, .scenarios { grid-template-columns: 1fr; }
  .devices__viewport { padding-inline: 44px; }
  .acc__title { font-size: 17px; margin-bottom: 26px; }
  .models__name, .scenarios__title { font-size: 21px; }
  .models__text, .scenarios__text { font-size: 17px; }
  .hero__rule { margin-right: 6%; width: 180px; height: 6px; }
  .acc__head { gap: 16px; font-size: 16px; padding: 14px 10px; }
  .section-title { font-size: 17px; }
  .contacts__phone { font-size: 28px; }
  .contacts__mail { font-size: 22px; }
  .cert__card { padding: 26px 24px; min-height: 0; }
  .cert__list { margin-top: 30px; padding-left: 0; }
  .site-footer__nav { flex-wrap: wrap; gap: 18px 30px; }
}
