/* ARA VPN · Digital Still Life */
@font-face { font-family: "EB Garamond"; font-weight: 400 800; font-display: swap;
  src: url(fonts/eb-garamond-latin.woff2) format("woff2");
  unicode-range: U+20-7E, U+A0, U+A9, U+AB, U+B7, U+BB, U+2013-2014, U+2018-201E, U+2026, U+2192; }
@font-face { font-family: "EB Garamond"; font-weight: 400 800; font-display: swap;
  src: url(fonts/eb-garamond-cyrillic.woff2) format("woff2");
  unicode-range: U+400-45F, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/eb-garamond-italic-vpn.woff2) format("woff2"); unicode-range: U+50, U+4E, U+56; }
@font-face { font-family: "Noto Serif Armenian"; font-weight: 400; font-display: swap;
  src: url(fonts/noto-serif-armenian.woff2) format("woff2"); unicode-range: U+531-58A; }

:root {
  color-scheme: dark;
  --bg: #0d0e0c; --sheet: #151713; --card: #171915; --line: #393b32;
  --text: #e7dfd1; --muted: #a9a698; --accent: #a0a879;
  --sage: #a0a879; --cream: #e7dfd1;
  --btn: #8d283e; --on-btn: #fff3e9;
  --hero: var(--bg); --on-hero: var(--text); --on-hero-muted: var(--muted);
  --serif: Georgia, "Noto Serif Armenian", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 10px; z-index: 9; }
.skip:focus { left: 8px; }

/* Зерно «ксерокопии»: статичный тайл, как в мини-аппе */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0.45 0 0 0 -0.18'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.55;
}

/* ---------- Шапка ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; overflow: hidden; background: var(--sage); color: var(--cream); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 36px; display: block; }
.brand-ara { width: 52px; height: 24px; flex: none; }
.brand-vpn { font: italic 400 21px/1 var(--serif); letter-spacing: 0.18em; margin-left: -2px; padding-top: 3px; }
.nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -8px; }
.nav a { padding: 6px 8px; font: 500 18px/1.2 var(--serif); color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text); }
@media (min-width: 760px) {
  .top { flex-wrap: nowrap; padding: 22px 0 10px; }
  .nav { order: 0; width: auto; margin: 0 0 0 auto; gap: 10px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: 600 16px/1.2 var(--sans); text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--btn); color: var(--on-btn); border-color: transparent; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.12); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Первый экран ---------- */
.hero {
  margin: 12px 0 0; padding: 28px 20px 26px; border-radius: 28px; overflow: hidden;
  background: var(--hero); color: var(--on-hero); box-shadow: 0 24px 48px -32px rgba(31, 38, 28, 0.8);
}
.hero-mark { position: absolute; z-index: -1; width: 210px; height: 252px; right: -48px; top: -26px; color: var(--sage); opacity: 0.4; pointer-events: none; }
.hero h1 { font-size: clamp(38px, 10.5vw, 68px); letter-spacing: -0.01em; max-width: 11ch; }
.hero-lead { margin: 14px 0 0; font-size: 17px; color: var(--on-hero-muted); max-width: 34ch; }
.hero-actions { display: grid; gap: 10px; margin-top: 24px; }
.hero .btn-primary { background: var(--cream); color: #2f3a2c; }
.hero .btn-ghost { background: transparent; color: var(--on-hero); border-color: rgba(242, 236, 220, 0.45); }
.hero .btn-ghost:hover { border-color: var(--on-hero); }
.hero a:focus-visible { outline-color: var(--cream); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--on-hero-muted); font-size: 15px; }
.hero-facts li::before { content: "·"; margin-right: 8px; color: var(--on-hero); }
@media (min-width: 760px) {
  .hero { padding: 56px 56px 48px; margin-top: 18px; }
  .hero-mark { width: 340px; height: 408px; right: 40px; top: 24px; opacity: 0.45; }
  .hero-lead { font-size: 19px; }
  .hero-actions { display: flex; }
}

/* ---------- Разделы ---------- */
.section { padding: 56px 0 0; scroll-margin-top: 8px; }
.section > h2 { font-size: clamp(32px, 8vw, 46px); }
.section-lead { margin: 8px 0 22px; color: var(--muted); max-width: 46ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Тарифы */
.plans { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.plan { display: flex; flex-direction: column; gap: 4px; }
.plan-term { font: 500 22px/1.1 var(--serif); }
.plan-price { font: 500 34px/1.1 var(--serif); color: var(--accent); margin: 6px 0 2px; font-variant-numeric: lining-nums; }
.plan-price span { font: 600 0.62em var(--sans); }
.plan-per { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-best { background: var(--hero); color: var(--on-hero); border-color: transparent; }
.plan-best .plan-price { color: var(--on-hero); }
.plan-best .plan-per { color: var(--on-hero-muted); }
.plan-best .btn-primary { background: var(--cream); color: #2f3a2c; }
.plan-best a:focus-visible { outline-color: var(--cream); }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: #2f3a2c; margin-bottom: 4px; }
.includes { display: grid; gap: 8px; margin: 18px 0 0; padding: 18px 20px; list-style: none; background: var(--sheet); border-radius: var(--radius); border: 1px solid var(--line); }
.includes li { display: flex; gap: 10px; align-items: baseline; }
.includes li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
@media (max-width: 359px) { .plans { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } .includes { grid-template-columns: 1fr 1fr; } }

/* Шаги */
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { counter-increment: s; position: relative; padding-left: 70px; }
.step::before {
  content: counter(s); position: absolute; left: 20px; top: 16px;
  font: 500 40px/1 var(--serif); color: var(--accent);
}
.step h3 { font-size: 23px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.apps li { font-size: 14px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); }
.protocols { display: grid; gap: 12px; margin-top: 12px; }
.protocols h3 { font-size: 22px; margin-bottom: 6px; }
.protocols p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .protocols { grid-template-columns: 1fr 1fr; } }

/* Вопросы */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 500 21px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq details p a { color: var(--accent); }

/* ---------- Подвал ---------- */
.foot { margin-top: 64px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--sheet); font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; gap: 20px; }
.foot nav { display: grid; gap: 8px; }
.foot a { color: var(--text); }
.foot p { margin: 0; }
.foot .law { color: var(--text); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 40px 0; }
.lost svg { width: 120px; height: 144px; color: var(--sage); }
.lost h1 { font-size: clamp(36px, 9vw, 56px); }
.lost p { margin: 0; color: var(--muted); max-width: 34ch; }

/* Приложения: карточка на приложение, ссылки на магазины */
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.app h3 { font-size: 22px; margin-bottom: 4px; }
.app p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; }
.app-links a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.app-links a:hover { border-color: var(--accent); }
.step-more { margin-top: 10px; font-size: 14px; }

/* Digital Still Life */
body { font-size: 15px; }
h1, h2, h3 { font-weight: 400; }
.wrap { max-width: 1220px; padding-inline: clamp(20px, 4vw, 48px); }
.top { border-bottom: 1px solid var(--line); padding-block: 18px; }
.brand-mark { width: 30px; height: 36px; border-radius: 0; background: none; }
.brand-mark svg { width: 26px; height: 33px; }
.brand-ara { width: 46px; }
.brand-vpn { font-size: 16px; }
.nav a { font: 400 13px/1.35 var(--sans); }
.btn { border-radius: 0; background: transparent; font-size: 14px; font-weight: 500; }
.btn-primary, .hero .btn-primary {
  background: var(--btn); color: var(--on-btn); border-color: #a44156;
  box-shadow: inset 0 1px 0 rgb(255 243 233 / 12%);
}
.btn-primary:hover, .hero .btn-primary:hover {
  background: #9c3048;
  border-color: #b94a61;
  filter: none;
}
.top > .btn, .hero .btn-ghost { background: var(--sheet); }
.top > .btn:hover, .hero .btn-ghost:hover { background: var(--card); border-color: var(--muted); }
.btn-sm { font-size: 13px; }
.hero {
  display: grid; align-items: center; gap: 30px; margin: 0;
  padding: 46px 0 24px; border-radius: 0; box-shadow: none; overflow: visible;
}
.hero.grain::after, .brand-mark.grain::after { display: none; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(43px, 7vw, 94px); line-height: .99; letter-spacing: -.055em; }
:lang(hy) .hero h1 { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -.045em; }
.hero-lead { font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--line); }
.hero-facts { font-size: 13px; }
.hero-art { display: block; width: 100%; height: auto; min-width: 0;
  mix-blend-mode: lighten;
  mask-image: linear-gradient(to right, transparent, black 5%, black 97%, transparent),
              linear-gradient(to bottom, transparent, black 4%, black 96%, transparent);
  mask-composite: intersect;
}
.section { border-top: 1px solid var(--line); padding: 36px 0; }
.section > h2 { font-size: clamp(31px, 4vw, 52px); letter-spacing: -.045em; }
.section > * { min-width: 0; }
.section-lead { font-size: 14px; }
.plans, .steps, .app-list, .faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.plan, .step, .app-list .app, .faq details {
  background: none; border: 0; border-bottom: 1px solid var(--line); box-shadow: none;
}
.plan {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: clamp(8px, 2vw, 22px); row-gap: 2px; align-items: center; padding: 12px 0;
}
.plan-term { grid-area: 1 / 1; font-size: clamp(17px, 2.2vw, 23px); }
.plan-per { grid-area: 2 / 1; margin: 0; font-size: 12px; }
.plan-price { grid-area: 1 / 2 / span 2; font-size: clamp(22px, 3vw, 32px); color: var(--text); margin: 0; white-space: nowrap; }
.plan .btn {
  grid-area: 1 / 3 / span 2; margin: 0; min-height: 40px; padding: 7px 12px;
  background: var(--sheet); border-color: var(--line); color: var(--text);
}
.plan .btn:hover { border-color: var(--accent); }
.includes { background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); }
.includes li::before { width: 4px; height: 4px; }
.step { padding: 18px 0 18px 38px; }
.step::before { left: 0; top: 21px; font: 12px/1.4 ui-monospace, monospace; color: var(--accent); }
.apps li, .app-links a { border-radius: 0; font-size: 12px; }
.protocols .card { padding: 14px; }
.app-list .app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 0; }
.app-list .app p { margin: 0; grid-column: 1; }
.app-links { grid-area: 1 / 2 / span 2; align-self: center; justify-content: flex-end; max-width: 180px; }
.faq summary { padding: 13px 0; font: 400 15px/1.5 var(--sans); }
.faq details p { padding: 0 28px 14px 0; }
.cabinet-preview { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cabinet-preview li { border-bottom: 1px solid var(--line); }
.cabinet-preview a { display: grid; padding: 12px 26px 12px 0; text-decoration: none; position: relative; }
.cabinet-preview a::after { content: "↗"; color: var(--accent); position: absolute; inset: 14px 0 auto auto; }
.cabinet-preview a:hover strong { color: var(--accent); }
.cabinet-preview strong { font: 400 21px/1.3 var(--serif); }
.cabinet-preview span { color: var(--muted); font-size: 13px; }
.foot { background: var(--bg); margin-top: 0; font-size: 13px; }
.lost { align-content: center; justify-items: stretch; text-align: left; }
.lost-copy > * { margin-block: 0 14px; }
.lost-code { display: block; font: 72px/1 var(--serif); color: var(--accent); }

@media (min-width: 760px) {
  .top { min-height: 92px; }
  .hero, .lost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { min-height: 610px; padding-block: 68px; }
  .section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 0 44px; padding-block: 58px; }
  .section > h2 { grid-column: 1; grid-row: 1; }
  .section > .section-lead { grid-column: 1; grid-row: 2; }
  .section > .section-lead + .section-lead { grid-row: 3; }
  .section > :is(.plans, .steps, .cabinet-preview, .app-list, .faq) { grid-column: 2; grid-row: 1 / span 4; }
  .section > :is(.includes, .protocols) { grid-column: 2; }
  .lost { min-height: 80vh; }
}

/* Storefront hierarchy and touch targets */
.top > .btn { flex: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:focus-visible { color: var(--text); }
.hero {
  column-gap: 22px;
  row-gap: 18px;
  padding-block: 36px 0;
}
.hero h1 { font-size: clamp(44px, 6.3vw, 88px); text-wrap: balance; }
.hero-lead { max-width: 37ch; line-height: 1.55; }
.hero-actions { gap: 8px; margin-top: 20px; }
.hero-actions .btn { padding-inline: 14px; }
.hero-actions .btn-primary {
  position: relative; isolation: isolate;
}
.hero-actions .btn-primary::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 52px;
  background: url("/art/phloxes-hero.webp") 31% 29% / 198px auto;
  mask-image: linear-gradient(to right, transparent, black);
  opacity: .46; pointer-events: none;
}
.hero-facts {
  border-top: 1px solid var(--line); margin: 0; padding: 14px 0;
  display: flex; gap: 8px 26px; align-items: center;
}
.hero-facts li::before { color: var(--accent); }
.plan { padding-inline: 10px; text-decoration: none; border-bottom: 1px solid var(--line); }
.plan:hover, .plan:focus-within { background: var(--sheet); }
.plan .btn { min-height: 44px; }
.app-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; padding-block: 48px 0; }
  .hero-facts { grid-column: 1 / -1; }
  .section { align-items: start; grid-template-rows: auto auto auto 1fr; }
  .section > :is(.plans, .steps, .cabinet-preview, .app-list, .faq) { align-self: stretch; }
}
@media (max-width: 759px) {
  .top { gap: 7px 12px; padding-block: 10px 0; }
  .nav { gap: 0; margin-inline: -5px; width: calc(100% + 10px); }
  .nav a { min-height: 40px; padding-inline: 5px; font-size: 13px; }
  .hero .hero-art { max-width: 480px; justify-self: center; }
}

.locale-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap;
}
.locale-link:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 759px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .top .nav { grid-column: 1 / -1; }
  .top .brand { justify-self: start; }
}

.plan-term { grid-area: 1 / 1 / span 2; }
.plan-price { grid-area: 1 / 2; justify-self: end; }
.plan-per { grid-area: 2 / 2; justify-self: end; white-space: nowrap; }
.plan:not(:has(.plan-per)) .plan-price { grid-row: 1 / span 2; }
.plan { min-height: 67px; }
.plan:focus-visible { outline-offset: -2px; }
@media (min-width: 760px) {
  #plans .includes { grid-column: 1; grid-row: 3; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
}
@media (max-width: 380px) {
  .plan { padding-inline: 5px; }
  .plan .btn { padding-inline: 8px; font-size: 13px; }
  .plan-per { font-size: 11px; }
}

.happ-downloads {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.happ-downloads .btn { min-height: 44px; }
.happ-install-note {
  margin: 0; padding: 12px 10px; border-bottom: 1px solid var(--line);
  border-inline-start: 2px solid var(--accent); background: var(--sheet); color: var(--muted);
  font-size: 14px;
}
.happ-install-note strong, .happ-install-note a { color: var(--text); }
@media (min-width: 760px) {
  #apps .happ-downloads { grid-column: 2; grid-row: 1 / span 2; }
}

@media (min-width: 1280px) {
  .storefront .wrap {
    max-width: 1760px;
    padding-inline: clamp(36px, 3.4vw, 64px);
  }
  .storefront .hero { column-gap: clamp(24px, 3vw, 56px); }
  .storefront .hero h1 { font-size: clamp(88px, 6.2vw, 108px); }
  .storefront:lang(hy) .hero h1 { font-size: clamp(72px, 5vw, 88px); }
  .storefront .section { column-gap: clamp(44px, 5vw, 88px); }
}
