/* Final craft pass: restraint, alignment and technical detail. */
body {
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), rgba(17,19,17,.025) 50%, transparent calc(50% + .5px));
}

::selection { background: var(--acid); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.hero { position: relative; grid-template-columns: 1fr; min-height: 640px; }
.hero-copy { max-width: 880px; }
.hero h1 { max-width: 880px; }
.hero::before {
  content: "РАЗДЕЛ 01  /  ДОСТУП";
  position: absolute;
  left: -56px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
  font: 9px "PT Mono", monospace;
  letter-spacing: .16em;
  color: rgba(17,19,17,.42);
}
h1 { font-size: clamp(58px, 5.3vw, 76px); text-wrap: balance; }
.hero-lead { max-width: 620px; }
.hero-copy h1:first-child { margin-top: 0; }
.eyebrow { color: #555c53; }

.device-count, .privacy-type {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-count { gap: 16px; }
.device-count strong { font-size: 72px; line-height: 1; letter-spacing: -.08em; color: #64705f; }
.device-count span { padding-left: 16px; border-left: 1px solid var(--line); font: 9px/1.6 "PT Mono", monospace; letter-spacing: .1em; color: var(--muted); }
.privacy-type { flex-direction: column; gap: 9px; }
.privacy-type strong { font-size: 30px; letter-spacing: .16em; margin-left: .16em; }
.privacy-type span { font: 8px "PT Mono", monospace; letter-spacing: .15em; color: var(--muted); }
.speed-bars { justify-content: center; gap: 12px; }
.speed-bars i { width: 9px; }

.benefit-card, .price-card { transition: transform .25s ease, border-color .25s ease; }
.benefit-grid > *, .benefit-card { min-width: 0; }
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(17,19,17,.35); }
.featured:hover { border-color: rgba(215,255,67,.6); }
.card-index { letter-spacing: .08em; color: var(--muted); }
.microcopy { color: var(--muted); }

.steps li { transition: padding-left .25s ease; }
.steps li:hover { padding-left: 10px; }

.pricing { position: relative; overflow: hidden; }
.pricing::before {
  content: "04\A ЛОКАЦИИ";
  white-space: pre;
  position: absolute;
  right: 3vw;
  top: 80px;
  font: 10px/1.5 "PT Mono", monospace;
  letter-spacing: .12em;
  color: rgba(255,255,255,.18);
}

footer a { transition: color .2s ease; }
footer a:hover { color: var(--ink); }

@media (max-width: 1280px) { .hero::before { display: none; } }
@media (max-width: 600px) {
  body { background-image: none; }
  h1 { font-size: clamp(46px, 13vw, 58px); }
  .pricing::before { display: none; }
  .benefit-card:hover { transform: none; }
}

/* Final system pass: shared shell, accessible states and support content. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.site-header .brand {
  margin-right: 0;
}

.menu-button {
  width: 36px;
  height: 36px;
  padding: 7px;
  cursor: pointer;
}

.menu-button span {
  transition: transform .2s ease;
}

.site-header.open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-footer {
  max-width: none;
  margin: 0;
}

.site-footer a {
  width: fit-content;
}

.popular-label {
  white-space: nowrap;
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-top: 22px;
}

.trial-actions .plain-action {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.tutorial-help {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--warm);
}

.tutorial-help p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tutorial-help .button {
  min-height: 44px;
}

.pricing-trust {
  display: flex;
  justify-content: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 28px auto 0;
  color: #aeb5ae;
  font-size: 11px;
}

.pricing-trust span::before {
  content: "—";
  margin-right: 8px;
  color: var(--acid);
}

.faq {
  padding-top: 110px;
  padding-bottom: 120px;
}

.faq-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 100px;
}

.faq h2 {
  margin: 12px 0 0;
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font: 20px "PT Mono", monospace;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 650px;
  margin: -4px 0 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal article {
  scroll-margin-top: 24px;
}

.legal {
  width: min(830px, calc(100% - 48px));
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 30px;
  margin: 35px 0 10px;
  padding: 24px;
  border: 1px solid var(--line);
}

.legal-toc strong {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-size: 13px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.legal-toc a:hover {
  color: var(--ink);
}

.not-found {
  padding: 48px 24px 80px;
}

.not-found .button {
  display: inline-flex;
}

@media (max-width: 900px) {
  .site-header.open .header-actions {
    display: flex;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 22px;
  }

  .site-header.open .header-actions .text-link {
    width: fit-content;
  }

  .site-header.open .header-actions .button {
    width: 100%;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (min-width: 901px) and (max-width: 1244px) {
  .hero,
  .benefits,
  .how,
  .support,
  .faq,
  .page-main {
    width: calc(100% - 48px);
  }
}

@media (max-width: 600px) {
  .tutorial-help {
    align-items: stretch;
  }

  .tutorial-help .button {
    width: 100%;
  }

  .pricing-trust {
    justify-content: flex-start;
  }

  .faq {
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .faq h2 {
    font-size: 40px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .legal-toc strong {
    grid-column: auto;
  }
}

@media (max-width: 340px) {
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-type strong { font-size: 24px; letter-spacing: .1em; margin-left: .1em; }
  .device-count { gap: 12px; }
  .device-count strong { font-size: 60px; }
  .device-count span { padding-left: 12px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
