/* QuantVPN site. Статический сайт, один файл стилей.
   Сетка: 4 / 8 / 12 колонок, точки перестройки только 640 и 1024.
   Шкала отступов: 4 8 12 16 24 32 48 64 80 96 120 160.
   Радиусы: кнопки и метки 999, карточки и картинки 20. Акцент один: бирюзовый. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #051022;
  --bg-alt: #081830;
  --surface: #0d1f3c;
  --surface-hi: #122849;
  --line: rgb(148 197 255 / 0.14);
  --text: #eef4fb;
  --muted: #a3b3ca;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --on-accent: #04201c;
  --radius: 20px;
  --pill: 999px;
  --gutter: 24px;
  --gap: 16px;
  --section: 80px;
  --head-gap: 48px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 17px; line-height: 1.4; }
p { text-wrap: pretty; }
.lead { font-size: 17px; color: var(--muted); max-width: 30em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip {
  position: absolute; left: 24px; top: -64px; z-index: 30;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: var(--pill); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Каркас */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section-head { margin-bottom: var(--head-gap); }
.section-head p { margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid > * { min-width: 0; grid-column: 1 / -1; }

/* Кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--pill); border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.4; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #5eead4; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }
.link--arrow::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform 200ms var(--ease); }
.link--arrow:hover::after { transform: translateX(4px); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(5 16 34 / 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: none; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
.nav a, .lang { font-size: 14px; font-weight: 600; color: var(--muted); padding-block: 12px; transition: color 200ms var(--ease); }
.nav a:hover, .lang:hover, .nav a[aria-current="page"] { color: var(--text); }
.header__side { display: flex; align-items: center; gap: 16px; }
.header__cta { display: none; }
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; color: var(--text); cursor: pointer;
}
.burger svg { width: 24px; height: 24px; }
.menu { display: none; border-top: 1px solid var(--line); padding-block: 16px 24px; }
.menu.is-open { display: block; }
.menu a { display: block; padding-block: 12px; font-weight: 600; }
.menu .btn { margin-top: 16px; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding-top: 96px; }
.hero__art { margin-top: 48px; border-radius: var(--radius); overflow: hidden; }
.hero__art img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%); }
.hero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; }
.hero h1 { max-width: 16em; }
.hero .lead { margin-top: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* Факты под первым экраном */
.facts { position: relative; z-index: 1; margin-top: 48px; border-top: 1px solid var(--line); padding-block: 32px; background: rgb(5 16 34 / 0.6); }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.facts dt { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--text); }
.facts dd { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Плитки «что входит» */
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; overflow: hidden; }
.tile h3 { font-size: 21px; line-height: 1.3; }
.tile p { margin-top: 8px; color: var(--muted); }
.tile__icon { width: 64px; height: 64px; margin-bottom: 16px; }
.tile--art { padding: 0; display: flex; flex-direction: column; background: var(--surface-hi); }
.tile--art .tile__body { padding: 24px; }
.tile--art img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 80% 50%; }
.tile--accent { background: linear-gradient(160deg, #0f766e 0%, #0d1f3c 70%); }
.tile--accent p { color: #d5f5ef; }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: var(--pill);
  display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600;
}
.steps h3 { font-size: 21px; line-height: 1.3; }
.steps h3 a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 26em; }

/* Локации */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.place { border-top: 1px solid var(--line); padding-top: 16px; }
.place__flag { width: 32px; height: 24px; border-radius: 4px; margin-bottom: 12px; }
.place h3 { font-size: 21px; line-height: 1.3; }
.place p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Тарифы */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; border: 1px solid transparent; }
.plan__name { font-size: 17px; font-weight: 600; }
.plan__price { margin-top: 16px; font-size: 32px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.plan__per { margin-top: 4px; font-size: 14px; color: var(--muted); }
.section-cta { margin-top: 32px; }
.plans-note { margin-top: 24px; }
.checks { display: grid; gap: 12px; margin-top: 32px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: var(--accent);
  -webkit-mask: url("../icons/check.svg") center / contain no-repeat; mask: url("../icons/check.svg") center / contain no-repeat;
}

/* Отзывы */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.review { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.review img { width: 100%; height: auto; }

/* Две колонки: текст и картинка */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.split__art { border-radius: var(--radius); overflow: hidden; }
.split__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 50%; }
.split h2 + p { margin-top: 16px; }
.split .checks { margin-top: 24px; }
.split .btn { margin-top: 32px; }
.split .link { margin-top: 16px; }

/* Приватность: два списка */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ledger__col { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.ledger__col img { width: 48px; height: 48px; margin-bottom: 16px; }
.ledger__col h3 { font-size: 21px; line-height: 1.3; }
.ledger__col p { margin-top: 8px; color: var(--muted); }
.ledger__col ul { margin-top: 16px; display: grid; gap: 12px; color: var(--muted); }
.ledger__col li { padding-left: 24px; position: relative; }
.ledger__col li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--accent); }
.ledger-note { margin-top: 16px; }

/* Карточки инструкций */
.guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.guide {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  border: 1px solid transparent;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.guide:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide__kicker { font-size: 14px; color: var(--accent); font-weight: 600; }
.guide h3 { font-size: 21px; line-height: 1.3; }
.guide p { color: var(--muted); font-size: 14px; }
.guide__more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 792px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; background: var(--accent);
  -webkit-mask: url("../icons/plus.svg") center / contain no-repeat; mask: url("../icons/plus.svg") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 24px; color: var(--muted); max-width: 34em; }
.faq details > div p + p { margin-top: 12px; }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Финальный призыв */
.cta { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.cta__body { padding: 32px 24px; }
.cta__body p { margin-top: 16px; color: var(--muted); max-width: 26em; }
.cta__body .hero__actions { margin-top: 32px; }
.cta__art img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 72% 50%; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding-block: 64px 48px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin-top: 12px; max-width: 26em; }
.footer h3 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.footer li + li { margin-top: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 48px; }
.footer a:hover { color: var(--text); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; }

/* Раздел инструкций и статьи */
.page-hero { padding-block: 64px 48px; }
.page-hero h1 { max-width: 16em; }
.page-hero__art { display: none; }
.page-hero .lead { margin-top: 16px; max-width: 34em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 48px; }
.crumbs span[aria-hidden] { display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.hub-group + .hub-group { margin-top: 64px; }
.hub-group h2 { margin-bottom: 24px; }
.article { padding-bottom: var(--section); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.prose { max-width: 34em; overflow-wrap: break-word; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; font-size: 21px; line-height: 1.3; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { display: grid; gap: 12px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose strong { font-weight: 600; color: var(--text); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; background: var(--surface); padding: 4px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.prose blockquote { background: var(--surface); border-radius: var(--radius); padding: 24px; color: var(--muted); }
.prose blockquote strong { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 32px; }
.aside { background: var(--surface); border-radius: var(--radius); padding: 24px; align-self: start; }
.aside h2 { font-size: 21px; line-height: 1.3; }
.aside p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.aside .btn { margin-top: 24px; }
.aside ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.aside ul a { color: var(--accent); }
.aside ul a:hover { text-decoration: underline; }
.updated { font-size: 14px; color: var(--muted); margin-top: 16px; }

@media (min-width: 640px) {
  :root { --gutter: 40px; --gap: 24px; --section: 96px; --head-gap: 64px; }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .section-head p { margin-top: 24px; }
  .hero { padding-top: 120px; }
  .facts { margin-top: 64px; }
  .hero .lead { margin-top: 24px; }
  .hero__actions { margin-top: 48px; }
  .hero__art img { aspect-ratio: 2 / 1; object-position: 100% 50%; }
  .facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .tile, .plan, .guide, .ledger__col, .aside { padding: 32px; }
  .tile--art { padding: 0; }
  .tile--art .tile__body { padding: 32px; }

  .tile--third { grid-column: span 4; }
  .tile--third:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding-left: 0; padding-top: 64px; }
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ledger, .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .faq summary { padding: 24px 32px; }
  .faq details > div { padding: 0 32px 32px; }
  .cta__body { padding: 48px 32px; }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .page-hero { padding-block: 80px 64px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; --section: 120px; --head-gap: 80px; }
  h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
  h2 { font-size: 32px; line-height: 1.15; }
  .lead { font-size: 21px; line-height: 1.4; }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .nav { display: flex; align-items: center; gap: 32px; }
  .header__cta { display: inline-flex; min-height: 40px; padding: 8px 16px; font-size: 14px; }
  .burger, .menu, .menu.is-open { display: none; }
  .hero { padding-top: 160px; }
  .hero > .container { position: static; }
  .hero__copy { position: relative; z-index: 1; max-width: 690px; }
  .hero__art {
    position: absolute; inset: 0 0 0 auto; width: 64%; margin: 0; border-radius: 0; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%), linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 36%), linear-gradient(180deg, #000 72%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero__art img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 100% 60%; -webkit-mask-image: none; mask-image: none; }
  .facts { margin-top: 120px; padding-block: 48px; border-top-color: transparent; }
  .section-cta { margin-top: 48px; }
  .facts dt { font-size: 32px; line-height: 1.15; }
  .tile--big { grid-column: span 8; }
  .tile--small { grid-column: span 4; }
  .tile--third:last-child { grid-column: span 4; }
  .tile--art.tile--big { flex-direction: row; align-items: stretch; }
  .tile--art.tile--big .tile__body { flex: 1 1 44%; align-self: center; }
  .tile--art.tile--big img {
    flex: 1 1 56%; width: 56%; aspect-ratio: auto; height: auto; min-height: 320px; align-self: stretch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  }
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ledger, .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .places { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .checks--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .split__copy { grid-column: span 5; }
  .split__art { grid-column: 7 / -1; }
  .split--flip .split__copy { grid-column: 8 / -1; order: 2; }
  .split--flip .split__art { grid-column: 1 / span 6; order: 1; }
  .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .cta__body { grid-column: span 6; padding: 64px; }
  .cta__art { grid-column: 7 / -1; align-self: stretch; }
  .cta__art img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 5; }
  .footer__col { grid-column: span 2; }
  .page-hero { padding-block: 96px 64px; }
  .page-hero--art { position: relative; overflow: hidden; }
  .page-hero--art .container { position: relative; z-index: 1; }
  .page-hero--art h1, .page-hero--art .lead { max-width: 588px; }
  .page-hero__art {
    display: block; position: absolute; inset: 0 0 0 auto; width: 50%; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 64%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 64%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .page-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 40%; }
  .article__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .article__layout .prose { grid-column: span 7; }
  .article__layout .aside { grid-column: 9 / -1; position: sticky; top: 96px; }
}

@media (min-width: 1024px) and (max-height: 759px) {
  .hero { padding-top: 96px; }
  .facts { margin-top: 80px; }
}

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