/* Additions on top of style.min.css: language switcher, FAQ, accessibility, performance. */

/* ---------- accessibility ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 1em;
  top: -10em;
  z-index: 1001;
  padding: 0.75em 1.25em;
  border-radius: 0.3125em;
  background: #fff;
  color: #040606;
  font-weight: 500;
}
.skip-link:focus,
.skip-link:hover {
  top: 1em;
  color: #040606;
}

/* style.min.css removes every outline; bring it back for keyboard users only */
:focus-visible {
  outline: 2px solid #4c8aed !important;
  outline-offset: 3px;
}

/* width/height attributes reserve space (no layout shift); keep the natural aspect ratio */
:where(img) {
  height: auto;
}

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

/* ---------- hero globe: 250 KB WebP instead of the 1.2 MB SVG on phones (it is the LCP element there) ---------- */
@media screen and (max-width: 576px) {
  .main:after {
    background-image: url(../img/globus2.webp);
  }
}

/* ---------- loader ---------- */
.loader {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loader._hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- header: nav centred between logo and the language switcher + Install ---------- */
@media screen and (min-width: 993px) {
  .menu__scroll {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .menu__bottom {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  font-family: Bender, sans-serif;
  font-weight: 700;
}
.lang-switch a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  height: 2.5em;
  padding: 0 0.5em;
  font-size: 1.125em;
  letter-spacing: 0.04em;
  color: rgba(235, 235, 235, 0.45);
}
.lang-switch a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.9em;
  margin-top: -0.45em;
  background: rgba(235, 235, 235, 0.3);
}
.lang-switch a:hover {
  color: #ebebeb;
}
.lang-switch a._active {
  color: #fff;
  pointer-events: none;
}

.install-btn:hover {
  color: #4c8aed;
}

/* the fixed desktop width fits "Get VPN" but not longer translations */
.get-vpn {
  white-space: nowrap;
}
@media screen and (min-width: 993px) {
  .get-vpn {
    width: auto;
    min-width: 13.75em;
    padding: 0 2em;
  }
}

@media screen and (max-width: 992px) {
  /* closed menu must not be reachable with Tab / screen readers */
  .menu {
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .header._open .menu {
    visibility: visible;
  }
  .menu__bottom {
    align-items: center;
    justify-content: space-between;
  }
  .menu__bottom .lang-switch {
    order: 2;
    margin-right: -0.5em;
  }
  .lang-switch a {
    font-size: 1.25em;
  }
}

/* ---------- footer ---------- */
.footer-nav ul {
  flex-wrap: wrap;
  row-gap: 1em;
}
/* Russian legal links are ~40% longer: tighter spacing keeps them on one row */
@media screen and (min-width: 993px) {
  :lang(ru) .footer-nav li {
    margin: 0 1em;
  }
}

/* ---------- install: highlight the visitor's platform ---------- */
.how-item__site._current {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  padding: 0 0 7.25em;
}
.faq__inner {
  padding: 0 11.5em;
}
.faq__items {
  display: grid;
  grid-template-columns: 100%;
  gap: 1em;
  margin-top: 3.5em;
}
.faq-item {
  border-radius: 1.125em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.2) 5.86%, rgba(255, 255, 255, 0.04) 84.49%);
  transition: border-color 0.3s;
}
.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.55);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  padding: 1.25em 1.75em;
  cursor: pointer;
  list-style: none;
  font-size: 1.25em;
  line-height: 130%;
  font-weight: 500;
}
.faq-item__q::-webkit-details-marker {
  display: none;
}
.faq-item__q::marker {
  content: "";
}
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 0.9em;
  height: 0.9em;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s;
}
.faq-item__icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-item__icon::after {
  transform: rotate(0);
}
.faq-item__a {
  padding: 0 2.1875em 1.75em;
  font-family: Bender, sans-serif;
  color: #c7c7c7;
}
.faq-item__a p {
  font-size: 1.125em;
  line-height: 140%;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 992px) {
  .faq {
    padding-bottom: 5.875em;
  }
  .faq__inner {
    padding: 0;
  }
  .faq__items {
    margin-top: 2em;
    gap: 0.75em;
  }
  .faq-item__q {
    font-size: 1.125em;
    padding: 1.1em 1.25em;
  }
  .faq-item__a {
    padding: 0 1.40625em 1.25em;
  }
  .faq-item__a p {
    font-size: 1em;
  }
}
@media screen and (max-width: 992px) and (min-width: 577px) {
  .faq__inner {
    padding: 0 1.5em;
  }
}
@media screen and (max-width: 576px) {
  .faq {
    padding-bottom: 4em;
  }
  .faq-item {
    border-radius: 0.875em;
  }
  .faq-item__q {
    gap: 1em;
    padding: 1em 1.125em;
  }
  .faq-item__a {
    padding: 0 1.265625em 1.125em;
  }
}

/* =====================================================================
   Interactive layer: loader progress, hero, quick connect, motion
   ===================================================================== */

/* ---------- loader: stays until the whole page is loaded ---------- */
.loader {
  flex-direction: column;
  gap: 1.5em;
  /* if scripts never run, don't keep the page covered */
  animation: loader-failsafe 0.4s ease 12s forwards;
}
@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.loader__progress {
  width: 9em;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.loader__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #fff);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.loader__percent {
  margin-top: -0.75em;
  font-family: Bender, sans-serif;
  font-size: 0.875em;
  letter-spacing: 0.14em;
  color: rgba(235, 235, 235, 0.6);
  font-variant-numeric: tabular-nums;
}
html._loading,
html._loading body {
  overflow: hidden;
}

/* ---------- hero: bigger type and actions ---------- */
.main__nav {
  flex-wrap: wrap;
  gap: 1em;
}
.main__nav .get-vpn {
  position: relative;
  overflow: hidden;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}
.main__nav .get-vpn:hover {
  opacity: 1;
  box-shadow: 0 0 2.5em rgba(255, 255, 255, 0.35);
}
.main__nav .get-vpn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(100deg, rgba(76, 138, 237, 0), rgba(76, 138, 237, 0.25), rgba(76, 138, 237, 0));
  transform: translateX(-120%) skewX(-20deg);
  animation: cta-shine 5.5s ease-in-out 2.5s infinite;
  pointer-events: none;
}
@keyframes cta-shine {
  0%,
  72% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(400%) skewX(-20deg);
  }
}
.get-vpn__arrow,
.main__link-arrow {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.get-vpn__arrow {
  margin-left: 0.6em;
}
.get-vpn:hover .get-vpn__arrow {
  transform: translateX(0.3em);
}
.main__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 2.25em;
  padding: 0 1.5em;
  border-radius: 0.3125em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.16), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 500;
  transition: border-color 0.3s, background 0.3s;
}
.main__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.26), rgba(255, 255, 255, 0.06));
}
.main__link:hover .main__link-arrow {
  transform: translateY(0.2em);
}
/* Кнопки героя поменялись местами (03.10): стрелка «вниз» на светлой, «вправо» на тёмной. */
.get-vpn:hover .get-vpn__arrow._down {
  transform: translateY(0.2em);
}
.main__link:hover .main__link-arrow._right {
  transform: translateX(0.3em);
}

@media screen and (min-width: 993px) {
  .main {
    padding-top: 11.5em;
    padding-bottom: 12em;
  }
  .main__title {
    font-size: 4.75em;
  }
  :lang(ru) .main__title {
    font-size: 3.6em;
  }
  .main__desc {
    font-size: 1.5em;
    width: 34em;
    margin-top: 2em;
    line-height: 185%;
  }
  .main__nav {
    margin-top: 2.5em;
    gap: 1.25em;
  }
  .main__nav .get-vpn,
  .main__link {
    height: 3.75em;
    border-radius: 0.625em;
  }
  .main__nav .get-vpn {
    min-width: 17.5em;
    padding: 0 2.25em;
  }
  .main__link {
    padding: 0 2em;
  }
  .main__nav .get-vpn span,
  .main__link span {
    font-size: 1.1875em;
  }
}
@media screen and (max-width: 992px) {
  .main__nav {
    flex-direction: column;
    gap: 0.75em;
  }
  .main__link {
    width: 17.75em;
    height: 2.75em;
  }
}

/* ---------- quick connect (a demo of the app's one-tap connect) ---------- */
.quick-connect {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5em;
}
.quick-connect__glow {
  position: absolute;
  left: 50%;
  top: 4.25em;
  width: 46em;
  height: 46em;
  margin: -23em 0 0 -23em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}
.quick-connect__btn {
  position: relative;
  width: 8.5em;
  height: 8.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.3), rgba(209, 217, 230, 0.1) 45%, rgba(4, 6, 6, 0.6) 100%);
  box-shadow: 0 0 3em rgba(255, 255, 255, 0.12), inset 0 0 1.5em rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s, color 0.6s, box-shadow 0.6s;
}
@media (hover: hover) {
  .quick-connect__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 4em rgba(255, 255, 255, 0.25), inset 0 0 1.5em rgba(255, 255, 255, 0.12);
  }
}
.quick-connect__btn:active {
  transform: scale(0.96);
}
.quick-connect__icon {
  position: relative;
  z-index: 1;
  width: 2.75em;
  height: 2.75em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.quick-connect__rings i {
  position: absolute;
  inset: -0.75em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  animation: qc-breathe 3.2s ease-in-out infinite;
}
.quick-connect__rings i:nth-child(2) {
  inset: -1.75em;
  border-color: rgba(255, 255, 255, 0.11);
  animation-delay: 0.4s;
}
.quick-connect__rings i:nth-child(3) {
  inset: -3em;
  border-color: rgba(255, 255, 255, 0.06);
  animation-delay: 0.8s;
}
@keyframes qc-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.45;
  }
}
.quick-connect__progress {
  position: absolute;
  inset: -0.4em;
  width: calc(100% + 0.8em);
  height: calc(100% + 0.8em);
  transform: rotate(-90deg);
  pointer-events: none;
}
.quick-connect__progress circle {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 358.1;
  stroke-dashoffset: 358.1;
  opacity: 0;
  transition: opacity 0.6s;
}
/* the status sits over the bright globe: a dark glass pill keeps it readable */
.quick-connect__status {
  margin-top: 1.75em;
  max-width: min(30em, 100%);
  padding: 0.4em 1.1em;
  border-radius: 99em;
  background: rgba(4, 6, 6, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: Bender, sans-serif;
  font-size: 1.125em;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(235, 235, 235, 0.85);
  transition: opacity 0.2s;
}
.quick-connect__status._swap {
  opacity: 0;
}
/* install panel: opens right away on tap, while the connect animation runs */
.qc-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  max-width: 38em;
  margin-top: 1.25em;
  visibility: hidden;
  transition: grid-template-rows 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}
.quick-connect._open .qc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}
.qc-panel__inner {
  min-height: 0;
  overflow: hidden;
}
.qc-panel__card {
  padding: 1.75em 2em 2em;
  border-radius: 1.25em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.2) 5%, rgba(255, 255, 255, 0.04) 85%), rgba(4, 6, 6, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
  opacity: 0;
  translate: 0 1em;
  transition: opacity 0.6s 0.1s, translate 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-connect._open .qc-panel__card {
  opacity: 1;
  translate: 0 0;
}
.qc-panel__title {
  font-size: 1.25em;
  line-height: 1.3;
  font-weight: 500;
}
.qc-steps {
  display: grid;
  gap: 1.1em;
  margin: 1.25em 0 0;
  padding: 0;
  list-style: none;
}
.qc-step {
  display: grid;
  grid-template-columns: 2.75em 1fr;
  align-items: start;
  opacity: 0;
  translate: 0 0.75em;
  transition: opacity 0.5s, translate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-connect._open .qc-step {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(0.25s + var(--i, 0) * 0.12s);
}
.qc-step__num {
  font-family: Bender, sans-serif;
  line-height: 1.5;
  opacity: 0.55;
}
.qc-step__title {
  display: block;
  font-family: Bender, sans-serif;
  font-size: 1.125em;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.qc-bot {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.6em;
  padding: 0.35em 1em 0.35em 0.35em;
  border-radius: 99em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  font-family: Bender, sans-serif;
  color: #4c8aed;
  transition: background 0.3s, border-color 0.3s;
}
.qc-bot:hover {
  color: #4c8aed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
.qc-bot__icon,
.qc-store__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: #040606;
}
.qc-bot__icon img,
.qc-store__icon img {
  width: 1.05em;
}
/* Общее правило темы `.info ._small` (margin-left: -1.5em !important) задевало
   значок Google Play на странице оплаты: кружок вылезал на соседнюю кнопку. */
.qc-store__icon._small {
  margin: 0 !important;
}
.qc-store__icon._small img {
  width: 0.95em;
  margin-right: -0.15em;
}
.qc-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.75em;
}
.qc-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.5em;
  padding: 0 0.9em 0 0.3em;
  border-radius: 0.5em;
  background: linear-gradient(98deg, rgba(209, 217, 230, 0.18), rgba(255, 255, 255, 0.08));
  font-family: Bender, sans-serif;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-store:hover {
  color: #fff;
  background: linear-gradient(98deg, rgba(209, 217, 230, 0.3), rgba(255, 255, 255, 0.14));
  transform: translateY(-2px);
}
/* the visitor's platform comes first */
.qc-store._current {
  order: -1;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.qc-panel__cta {
  width: 100%;
  min-height: 3.25em;
  margin-top: 1.5em;
  padding: 0.75em 1em;
  border-radius: 0.625em;
  text-align: center;
  line-height: 1.25;
}
.qc-panel__cta:hover {
  opacity: 1;
  box-shadow: 0 0 2em rgba(255, 255, 255, 0.3);
}
.qc-panel__cta span {
  font-size: 1.0625em;
}
@media screen and (max-width: 576px) {
  .qc-panel__card {
    padding: 1.25em 1.25em 1.5em;
  }
  .qc-step {
    grid-template-columns: 2.25em 1fr;
  }
  .qc-panel__title,
  .qc-step__title {
    font-size: 1.125em;
  }
}

/* connecting */
.quick-connect._connecting .quick-connect__progress circle {
  opacity: 1;
  animation: qc-progress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes qc-progress {
  to {
    stroke-dashoffset: 0;
  }
}
.quick-connect._connecting .quick-connect__rings i {
  animation: qc-ripple 1.2s ease-out infinite;
}
.quick-connect._connecting .quick-connect__rings i:nth-child(2) {
  animation-delay: 0.3s;
}
.quick-connect._connecting .quick-connect__rings i:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes qc-ripple {
  from {
    transform: scale(0.9);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.quick-connect._connecting .quick-connect__icon {
  animation: qc-pulse 0.9s ease-in-out infinite;
}
@keyframes qc-pulse {
  50% {
    transform: scale(0.86);
    opacity: 0.65;
  }
}

/* done */
.quick-connect._done .quick-connect__btn {
  color: #040606;
  background: radial-gradient(circle at 32% 26%, #fff, #e9edf2 60%, #cfd6df 100%);
  box-shadow: 0 0 4.5em rgba(255, 255, 255, 0.45), 0 0 1em rgba(255, 255, 255, 0.6);
}
.quick-connect._done .quick-connect__rings i {
  border-color: rgba(255, 255, 255, 0.35);
  animation-duration: 2.4s;
}
.quick-connect._done .quick-connect__glow {
  opacity: 1;
  transform: scale(1);
}
.quick-connect._done .quick-connect__status {
  color: #fff;
}

@media screen and (max-width: 992px) {
  .quick-connect {
    margin-top: 4em;
  }
  .quick-connect__btn {
    width: 7.5em;
    height: 7.5em;
  }
  .quick-connect__glow {
    top: 3.75em;
  }
  .quick-connect__status {
    font-size: 1em;
  }
}
@media screen and (max-width: 992px) and (min-width: 577px) {
  .main {
    padding-bottom: 12em;
  }
  /* the globe starts under the stacked buttons, the connect button sits on its crown */
  .main:after {
    top: 33em;
  }
}
@media screen and (max-width: 576px) {
  .main {
    padding-bottom: 22em;
  }
  .quick-connect {
    margin-top: 3.5em;
  }
  .quick-connect__btn {
    width: 7em;
    height: 7em;
  }
  .quick-connect__icon {
    width: 2.4em;
    height: 2.4em;
  }
  .quick-connect__glow {
    top: 3.5em;
    width: 32em;
    height: 32em;
    margin: -16em 0 0 -16em;
  }
  .quick-connect__rings i:nth-child(3) {
    inset: -2.5em;
  }
}

/* ---------- shooting stars ---------- */
.main__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.main__stars i {
  position: absolute;
  width: 8em;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  transform-origin: left center;
  opacity: 0;
  animation: shooting-star 11s linear infinite;
}
.main__stars i::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0.6em 0.2em rgba(255, 255, 255, 0.7);
}
.main__stars i:nth-child(1) {
  top: 14%;
  left: 80%;
  animation-delay: 1.5s;
}
.main__stars i:nth-child(2) {
  top: 5%;
  left: 46%;
  animation-delay: 5s;
  animation-duration: 13s;
}
.main__stars i:nth-child(3) {
  top: 32%;
  left: 94%;
  animation-delay: 8s;
  animation-duration: 12s;
}
.main__stars i:nth-child(4) {
  top: 24%;
  left: 28%;
  width: 6em;
  animation-delay: 10.5s;
  animation-duration: 14s;
}
.main__stars i:nth-child(5) {
  top: 2%;
  left: 66%;
  width: 10em;
  animation-delay: 3.5s;
  animation-duration: 15s;
}
@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-35deg);
  }
  1% {
    opacity: 1;
  }
  9% {
    opacity: 0;
    transform: translate3d(-22em, 15.4em, 0) rotate(-35deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-22em, 15.4em, 0) rotate(-35deg);
  }
}

/* ---------- depth: mouse parallax on desktop, scroll parallax on touch screens ---------- */
@media (hover: hover) and (pointer: fine) {
  .main:after {
    transform: translateX(-50%) translate3d(calc(var(--mx, 0) * -1.2em), calc(var(--my, 0) * -0.8em), 0);
    will-change: transform;
  }
  .main__img2 {
    transform: translateX(-50%) translate3d(calc(var(--mx, 0) * 1.6em), calc(var(--my, 0) * 1em), 0);
  }
  /* soft spotlight following the cursor */
  .main:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(36em circle at var(--px, 50%) var(--py, 35%), rgba(76, 138, 237, 0.11), rgba(76, 138, 237, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s;
  }
  .main:hover:before {
    opacity: 1;
  }

  .advantage-card {
    transform: perspective(60em) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s, border-color 0.5s;
  }
  .advantage-card._tilting {
    transition: transform 0.12s linear, box-shadow 0.5s, border-color 0.5s;
  }
  .advantage-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(18em circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s;
  }
  .advantage-card:hover {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.45), 0 0 2em rgba(255, 255, 255, 0.08);
  }
  .advantage-card:hover::after {
    opacity: 1;
  }
  .guide-item {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s, border-color 0.45s;
  }
  .guide-item:hover {
    transform: translateY(-0.375em);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1.25em 2.5em rgba(0, 0, 0, 0.4), 0 0 2em rgba(255, 255, 255, 0.1);
  }
  .how-item__site,
  .how-item__bot {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, box-shadow 0.3s;
  }
  .how-item__site:hover,
  .how-item__bot:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  }
  .faq-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
  }
}
@media (hover: none), (pointer: coarse) {
  .main:after {
    transform: translateX(-50%) translate3d(0, calc(var(--sy, 0) * 4em), 0);
  }
}

/* ---------- entrance after the loader, reveal on scroll ---------- */
.js-anim .main__title > span:not(.sr-only) {
  display: inline-block;
  transform: translateY(0.45em);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-anim .main__title > span:nth-child(3) {
  transition-delay: 0.08s;
}
.js-anim .main__title > span:nth-child(4) {
  transition-delay: 0.16s;
}
.js-anim .main__desc,
.js-anim .main__nav,
.js-anim .quick-connect {
  opacity: 0;
  translate: 0 1.5em;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), translate 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-anim .main__desc {
  transition-delay: 0.2s;
}
.js-anim .main__nav {
  transition-delay: 0.32s;
}
.js-anim .quick-connect {
  transition-delay: 0.45s;
}
._ready .main__title > span {
  transform: none;
}
._ready .main__desc,
._ready .main__nav,
._ready .quick-connect {
  opacity: 1;
  translate: 0 0;
}

/* keyframes, not transitions: hover transforms on the same elements keep working */
.js-anim .reveal {
  opacity: 0;
}
.js-anim .reveal._in {
  animation: reveal-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0) * 90ms) both;
}
@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 1.75em;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- FAQ: animated open/close where supported ---------- */
@supports selector(::details-content) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s cubic-bezier(0.16, 1, 0.3, 1), content-visibility 0.45s allow-discrete;
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main__stars,
  .main__nav .get-vpn::after {
    display: none;
  }
  .quick-connect__rings i {
    animation: none !important;
  }
}

/* ---------- checkout: term, account, payment ----------

   Страница набрана тем же языком, что и остальной сайт: «стеклянная»
   карточка — градиент 135°, светлая кайма в 30% белого и парная серая
   тень, — а не плоская заливка, которой она была раньше. Именно из-за
   плоской заливки блок выглядел чужим и тусклым: на фоне #040606 пять
   процентов белого не читаются как поверхность.

   Покупка стоит в две колонки: выбор слева, счёт справа. В один столбец
   кнопка оплаты уходила под сгиб, и человек прокручивал страницу, чтобы
   увидеть, сколько с него возьмут.                                       */

/* Шапка страницы оплаты центрируется, в отличие от остальных внутренних
   страниц с их отступом слева: заголовок над центрированной покупкой,
   сдвинутый к левому краю, висел бы отдельно от неё. */
.checkout .info__top {
  padding-left: 0;
  justify-items: center;
  text-align: center;
}
/* На планшете общий стиль сужает шапку до 30em и прижимает её влево —
   центрированный текст внутри неё висел левее середины экрана. */
@media screen and (max-width: 992px) {
  .checkout .info__top {
    max-width: 100%;
    margin: 0 auto;
  }
}
/* Вертикальный ритм страницы сжат: у остальных внутренних страниц
   .info даёт 11.69em сверху и 7.19em снизу, и с ними покупка на экран
   ноутбука не помещалась. */
.checkout.info {
  padding: 8.5em 0 4em;
}
.checkout__lead {
  max-width: 34em;
  font-family: Bender, sans-serif;
  font-size: 1em;
  line-height: 150%;
  color: #c7c7c7;
}
.checkout__grid[hidden],
.checkout__downloads[hidden],
.checkout-result[hidden],
.checkout-field[hidden],
.checkout-field__hint[hidden],
.checkout-total__error[hidden],
.checkout-pay[hidden],
.checkout-next[hidden] {
  display: none;
}

/* ---- сетка покупки: выбор слева, счёт справа ---- */
.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20.5em;
  align-items: start;
  gap: 1.5em;
  max-width: 68em;
  margin: 2em auto 0;
}
/* Шаг выбора устройства занимает всю ширину: счёт к нему уже посчитан
   и второй раз не показывается. */
.checkout__grid._devices {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46em;
}

/* ---- «стеклянная» карточка сайта ---- */
.checkout-card,
.checkout-summary,
.checkout-result__card {
  border-radius: 1.25em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.2) 5.86%, rgba(255, 255, 255, 0.04) 84.49%);
  box-shadow: 0.3125em 0.3125em 1.25em 0 rgba(137, 137, 137, 0.16),
    -0.3125em -0.3125em 1.25em 0 rgba(133, 133, 133, 0.16);
}
.checkout-card {
  display: grid;
  gap: 1.5em;
  padding: 1.75em;
}
.checkout-step {
  display: grid;
  gap: 0.875em;
}
.checkout-step__title {
  display: flex;
  align-items: center;
  gap: 0.625em;
  font-size: 1.125em;
  font-weight: 500;
  line-height: 120%;
  color: #fff;
}
.checkout-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.65em;
  height: 1.65em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  color: #fff;
}

/* ---- сроки ---- */
.checkout-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75em;
}
.checkout-plans__loading {
  grid-column: 1 / -1;
  min-height: 7.5em;
  font-family: Bender, sans-serif;
  color: #c7c7c7;
}

/*
 * Карточка срока — тот же «стеклянный» прямоугольник, но плотнее и
 * без тени: четыре тени в ряд превращаются в мутную полосу.
 *
 * Выбранная карточка заливается белым с чёрным текстом — ровно как
 * главная кнопка сайта. Такой контраст ни с чем не спутать, и он не
 * требует ни рамок потолще, ни подсветки.
 */
.checkout-plan {
  display: grid;
  align-content: start;
  gap: 0.2em;
  padding: 0.75em 0.9em 0.9em;
  border-radius: 0.875em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.18) 5.86%, rgba(255, 255, 255, 0.04) 84.49%);
  color: #fff;
  text-align: left;
  transition: 0.2s ease-out;
}
.checkout-plan._active {
  border-color: #fff;
  background: #fff;
  color: #040606;
}
/* Полоска метки есть на каждой карточке, у непомеченных — пустая:
   иначе помеченная карточка сдвигала бы свою цену вниз, и ряд цен,
   который и сравнивают взглядом, переставал быть одной линией. */
.checkout-plan__best {
  display: block;
  margin-bottom: 0.25em;
  border-radius: 99em;
  padding: 0.15em 0.5em;
  background: #4c8aed;
  font-family: Bender, sans-serif;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}
.checkout-plan__best._empty {
  background: none;
}
.checkout-plan__best._empty::before {
  content: '\00a0';
}
.checkout-plan__term {
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.checkout-plan__price {
  font-family: 'StolzlDisplay-Medium', sans-serif;
  font-size: 1.5em;
  line-height: 115%;
  white-space: nowrap;
}
.checkout-plan__old {
  font-family: Bender, sans-serif;
  font-size: 0.75em;
  opacity: 0.55;
}
.checkout-plan__per {
  font-family: Bender, sans-serif;
  font-size: 0.7em;
  opacity: 0.7;
}
.checkout-plan__save {
  justify-self: start;
  margin-top: 0.35em;
  border-radius: 99em;
  padding: 0.2em 0.6em;
  background: rgba(76, 237, 150, 0.2);
  font-family: Bender, sans-serif;
  font-size: 0.65em;
  letter-spacing: 0.02em;
  color: #7cf0b4;
  white-space: nowrap;
}
.checkout-plan._active .checkout-plan__save {
  background: rgba(8, 120, 66, 0.14);
  color: #0a7a44;
}

/* ---- поля: почта и произвольная сумма ---- */
.checkout-field {
  display: grid;
  gap: 0.45em;
}
.checkout-field__label {
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.checkout-field__input {
  width: 100%;
  height: 3.125em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.625em;
  padding: 0 1em;
  background: rgba(4, 6, 6, 0.45);
  font-family: Bender, sans-serif;
  font-size: 1em;
  color: #fff;
  transition: 0.2s ease-out;
}
.checkout-field__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.checkout-field__input:hover {
  border-color: rgba(255, 255, 255, 0.55);
}
.checkout-field__input:focus {
  border-color: #4c8aed;
  box-shadow: 0 0 0 1px #4c8aed;
}
.checkout-field__hint {
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  line-height: 145%;
  color: #c7c7c7;
}

/* ---- счёт справа ---- */
.checkout-summary {
  display: grid;
  gap: 0.75em;
  padding: 1.5em;
  /* Счёт остаётся на виду, пока слева листают сроки и вводят почту. */
  position: sticky;
  top: 6.5em;
}
.checkout-summary__title {
  font-size: 1.125em;
  font-weight: 500;
  line-height: 120%;
  color: #fff;
}
.checkout-total__rows {
  display: grid;
  gap: 0.5em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.checkout-total__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  font-family: Bender, sans-serif;
  font-size: 0.9em;
  color: #c7c7c7;
}
.checkout-total__row dd,
.checkout-total__row span:last-child {
  text-align: right;
  color: #fff;
}
.checkout-total__row._total {
  align-items: center;
  font-size: 1em;
  color: #fff;
}
.checkout-total__row._total span:last-child {
  font-family: 'StolzlDisplay-Medium', sans-serif;
  font-size: 1.75em;
  line-height: 110%;
  white-space: nowrap;
}
.checkout-total__error {
  border-radius: 0.625em;
  padding: 0.7em 0.9em;
  background: rgba(255, 90, 90, 0.14);
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  line-height: 140%;
  color: #ffb4b4;
}

/* Главная кнопка сайта: белая заливка, чёрный текст. */
.checkout-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25em;
  border-radius: 0.625em;
  padding: 0 1.5em;
  background: #fff;
  font-weight: 500;
  font-size: 1em;
  color: #040606;
  transition: 0.225s ease-out;
}
.checkout-pay._sbp {
  gap: 0.75em;
  min-height: 3.75em;
  padding: 0.375em 1.5em 0.375em 0.375em;
  justify-content: flex-start;
}
.checkout-pay__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3em;
  padding: 0 0.5em;
  border-radius: 0.5em;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(4, 6, 6, 0.08);
}
.checkout-pay__logo img {
  display: block;
  height: 40px;
  width: auto;
}
.checkout-pay._sberpay {
  margin-top: 0.625em;
  min-height: 3.75em;
  padding: 0.375em 1em;
  background: #21a038;
}
.checkout-pay._sberpay img {
  display: block;
  height: 44px;
  width: auto;
}
.checkout-pay._alt {
  margin-top: 0.625em;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.checkout-pay:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.checkout-total__secure {
  font-family: Bender, sans-serif;
  font-size: 0.75em;
  line-height: 140%;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- выбор устройства ---- */
.checkout-devices {
  display: grid;
  gap: 0.625em;
}
.checkout-device {
  display: grid;
  gap: 0.2em;
  padding: 0.85em 1.1em;
  border-radius: 0.875em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.18) 5.86%, rgba(255, 255, 255, 0.04) 84.49%);
  text-align: left;
  color: #fff;
  transition: 0.2s ease-out;
}
.checkout-device._active {
  border-color: #fff;
  background: #fff;
  color: #040606;
}
.checkout-device__name {
  font-size: 1em;
  font-weight: 500;
}
.checkout-device__meta {
  font-family: Bender, sans-serif;
  font-size: 0.8em;
  opacity: 0.7;
}
.checkout-devices__nav {
  display: flex;
  align-items: center;
  gap: 1.25em;
  margin-top: 0.5em;
}
.checkout-devices__nav .checkout-pay {
  width: auto;
  min-width: 14em;
}

/* ---- оплата недоступна ---- */
.checkout-unavailable {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 0.75em;
  border-radius: 0.875em;
  padding: 1.25em;
  background: rgba(255, 176, 76, 0.12);
}
.checkout-unavailable__title {
  font-size: 1em;
  font-weight: 500;
  color: #ffd9a3;
}

/* ---- результат оплаты ---- */
.checkout-result__card {
  display: grid;
  justify-items: center;
  gap: 0.75em;
  max-width: 34em;
  margin: 2em auto 0;
  padding: 2.5em 2em;
  text-align: center;
}
.checkout-result__mark {
  display: block;
  width: 3.25em;
  height: 3.25em;
  border-radius: 50%;
  position: relative;
}
/* Галка, кольцо и восклицательный знак нарисованы рамками, без картинок:
   одна лишняя сетевая загрузка на экране результата — это пустой круг
   в тот момент, когда человек больше всего ждёт ответа. */
._ok .checkout-result__mark {
  background: rgba(76, 237, 150, 0.18);
}
._ok .checkout-result__mark::after {
  content: '';
  position: absolute;
  left: 34%;
  top: 28%;
  width: 0.7em;
  height: 1.25em;
  border: solid #7cf0b4;
  border-width: 0 0.18em 0.18em 0;
  transform: rotate(45deg);
}
._fail .checkout-result__mark {
  background: rgba(255, 176, 76, 0.18);
}
._fail .checkout-result__mark::after {
  content: '!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75em;
  color: #ffd9a3;
}
._pending .checkout-result__mark {
  border: 0.18em solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: checkout-spin 0.9s linear infinite;
}
@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  ._pending .checkout-result__mark {
    animation: none;
  }
}
.checkout-result__title {
  font-size: 1.75em;
  font-weight: 500;
  line-height: 120%;
  color: #fff;
}
.checkout-result__text {
  font-family: Bender, sans-serif;
  font-size: 1em;
  line-height: 150%;
  color: #c7c7c7;
}
.checkout-next {
  width: 100%;
  margin-top: 0.75em;
  border-radius: 0.875em;
  padding: 1.25em 1.5em;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-align: left;
}
.checkout-next__title {
  margin-bottom: 0.75em;
  font-family: Bender, sans-serif;
  font-size: 1em;
  color: #fff;
}
/* Нумерация — на самих пунктах: общий сброс сайта ставит `li` в
   list-style:none, и заданный на `ol` decimal до маркеров не доходит.
   Интервал тоже здесь: сброс задаёт `li` свой line-height, и строки
   длинного пункта слипались. */
.checkout-next__list {
  display: grid;
  gap: 0.6em;
  margin: 0;
  padding-left: 1.4em;
  font-family: Bender, sans-serif;
  font-size: 0.95em;
  color: #c7c7c7;
}
.checkout-next__list li {
  list-style: decimal outside;
  padding-left: 0.2em;
  line-height: 1.5;
}
.checkout-next__list li::marker {
  color: rgba(255, 255, 255, 0.5);
  font-family: Bender, sans-serif;
}
.checkout-result__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-top: 1.25em;
}
.checkout-result__nav .checkout-pay {
  width: auto;
  min-width: 12em;
}
.checkout-result__again[hidden] {
  display: none;
}
.checkout-result__home {
  font-family: Bender, sans-serif;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.65);
  transition: 0.2s ease-out;
}

/* ---- ссылки на приложения ---- */
.checkout__downloads {
  display: grid;
  justify-items: center;
  gap: 1em;
  max-width: 68em;
  margin: 3em auto 0;
  text-align: center;
}
.checkout-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
}

@media (hover: hover) and (pointer: fine) {
  .checkout-plan:hover,
  .checkout-device:hover {
    border-color: rgba(255, 255, 255, 0.65);
  }
  .checkout-plan._active:hover,
  .checkout-device._active:hover {
    border-color: #fff;
  }
  .checkout-pay:not(:disabled):hover {
    box-shadow: 0 0 2em rgba(255, 255, 255, 0.3);
  }
  .checkout-result__home:hover {
    color: #4c8aed;
  }
}

@media (max-width: 992px) {
  .checkout.info {
    padding: 8em 0 4em;
  }
  .checkout__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40em;
  }
  .checkout-summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .checkout.info {
    padding-top: 10.5em;
  }
  .checkout-card {
    padding: 1.25em;
  }
  /* Два срока в ряд, а не четыре: в четверть ширины телефона цена
     переносится по слогам. */
  .checkout-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-result__card {
    padding: 2em 1.25em;
  }
  .checkout-devices__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75em;
  }
  .checkout-devices__nav .checkout-pay {
    width: 100%;
  }
}

/* Кнопка «Повторить» на экране загрузки тарифов появляется только при
   ошибке: display у .checkout-result__nav иначе перебивает атрибут hidden. */
.checkout-result__nav[hidden] {
  display: none;
}

/* «Другая сумма» — карточка во всю ширину под сроками: в ряду из четырёх
   (и двух на телефоне) пятая встала бы криво. Поле суммы появляется
   под сроками только после нажатия на неё. */
.checkout-plan._custom {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.75em;
  padding: 0.85em 0.9em;
}
.checkout-plan._custom .checkout-plan__per {
  text-align: right;
}

/* ---- личный кабинет ---- */
.account__login,
.account__main {
  max-width: 44em;
  margin: 2em auto 0;
}
.account__form {
  display: grid;
  gap: 0.875em;
}
.account__code {
  font-size: 1.5em;
  letter-spacing: 0.4em;
  text-align: center;
}
.account__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75em;
}
.account__links button:disabled {
  opacity: 0.5;
  cursor: default;
}
.account__links button._ready {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.account__spam {
  margin: 0.25em 0 1em;
  padding: 0.75em 1em;
  border: 1px solid rgba(255, 196, 0, 0.55);
  border-radius: 0.6em;
  background: rgba(255, 196, 0, 0.08);
  font-family: Bender, sans-serif;
  font-size: 0.85em;
  line-height: 145%;
  color: #fff;
}
.account__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1em;
  font-family: Bender, sans-serif;
}
.account__email {
  color: #c7c7c7;
  overflow-wrap: anywhere;
}
.account__notice {
  margin-bottom: 1em;
  padding: 0.75em 1em;
  border-radius: 0.875em;
  background: rgba(8, 120, 66, 0.18);
  color: #8ee0b3;
}
.account__notice[hidden],
.account__unassigned[hidden] {
  display: none;
}
.account__devices {
  display: grid;
  gap: 0.875em;
}
.account-device {
  display: grid;
  gap: 0.3em;
  padding: 1em 1.1em;
  border-radius: 0.875em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.18) 5.86%, rgba(255, 255, 255, 0.04) 84.49%);
  color: #fff;
}
.account-device._live {
  border-color: rgba(142, 224, 179, 0.55);
}
.account-device__name {
  font-family: Bender, sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-device__term {
  color: #fff;
}
.account-device__meta {
  font-size: 0.875em;
  color: #9a9a9a;
}
.account-device__meta._warn {
  color: #f0b86e;
}
.account-device__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.5em;
}
.account-device__actions .checkout-pay {
  width: auto;
  min-width: 10em;
  padding-left: 1.5em;
  padding-right: 1.5em;
}
.account-device__actions .checkout-pay._sbp {
  padding-left: 0.375em;
}
.account-device__actions .checkout-pay._alt,
.account-device__actions .checkout-pay._sberpay {
  margin-top: 0;
}
.account-device__secondary {
  font-family: Bender, sans-serif;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.6em 0.2em;
  transition: 0.2s ease-out;
}
.account-device__panel {
  display: grid;
  gap: 0.875em;
  margin-top: 0.75em;
  padding-top: 0.875em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.account-device__panel[hidden] {
  display: none;
}
.account-device__panel-title {
  font-family: Bender, sans-serif;
  font-weight: 700;
}
.account-plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (hover: hover) {
  .account-device__secondary:hover {
    color: #4c8aed;
  }
}
@media (max-width: 992px) {
  .account-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-device__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-device__actions .checkout-pay {
    width: 100%;
  }
}
/* В кабинете атрибут hidden главнее display у сеток и карточек сайта. */
.account [hidden] {
  display: none !important;
}

/* ---- «Вход» в шапке: почта и меню кабинета ---- */
.auth-nav {
  position: relative;
}
.auth-nav [hidden] {
  display: none !important;
}
.auth-nav__toggle {
  gap: 0.5em;
  max-width: 24em;
}
.auth-nav__toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-nav__caret {
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s ease-out;
}
.auth-nav__toggle[aria-expanded="true"] .auth-nav__caret {
  transform: translateY(15%) rotate(225deg);
}
.auth-nav__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5em);
  z-index: 50;
  display: grid;
  min-width: 13em;
  padding: 0.4em;
  border-radius: 0.875em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0e1111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.auth-nav__menu a,
.auth-nav__menu button {
  display: block;
  width: 100%;
  padding: 0.7em 0.9em;
  border-radius: 0.6em;
  text-align: left;
  font-family: Bender, sans-serif;
  font-weight: 700;
  color: #fff;
  transition: 0.2s ease-out;
}
.auth-nav__menu a:hover,
.auth-nav__menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #4c8aed;
}
@media screen and (max-width: 992px) {
  /* В меню телефона выпадающий список встаёт под почтой, а не поверх. */
  .auth-nav__menu {
    position: static;
    margin-top: 0.5em;
    box-shadow: none;
  }
}

/* ---- код из письма: шесть квадратов, как в приложении ---- */
.otp {
  position: relative;
  width: 100%;
  max-width: 24em;
  margin: 0 auto;
}
.otp__cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-items: center;
  gap: 0.5em;
}
.otp__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 3.5em;
  border-radius: 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-family: Bender, sans-serif;
  font-weight: 700;
  font-size: 1.75em;
  color: #fff;
  transition: border-color 0.15s ease-out, background 0.15s ease-out;
}
.otp__cell._filled {
  border-color: rgba(255, 255, 255, 0.24);
}
.otp__cell._active {
  border: 2px solid #e9edf0;
}
.otp._error .otp__cell {
  border-color: #ff6b72;
  background: #351519;
}
/* Прозрачное поле поверх квадратов: принимает ввод, вставку и автоподстановку. */
.otp__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px; /* меньше — iOS приближает страницу при фокусе */
  caret-color: transparent;
  color: transparent;
  background: transparent;
  border: 0;
}

/* ---- плашка после оплаты в расширении браузера ---- */
.return-notice {
  position: fixed;
  left: 50%;
  top: 6.5em;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  width: min(34em, calc(100% - 2em));
  padding: 1em 1.1em;
  border-radius: 0.875em;
  border: 1px solid rgba(142, 224, 179, 0.55);
  background: #0e1a14;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: #e8f5ee;
  line-height: 1.45;
}
.return-notice strong {
  display: block;
  margin-bottom: 0.2em;
  font-family: Bender, sans-serif;
  color: #8ee0b3;
}
.return-notice__close {
  flex: none;
  font-size: 1.5em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}
.return-notice__close:hover {
  color: #fff;
}

/* ---------- Android TV «скоро» и ссылка «не нашли нас» (30.09.2026) ---------- */
.how-item__site._soon {
  opacity: 0.55;
  cursor: default;
}
.how-item__soon {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.6em;
  vertical-align: middle;
  text-transform: lowercase;
}
.how-item__notfound {
  display: inline-block;
  margin-top: 1.25em;
  color: #c7c7c7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.how-item__notfound:hover { color: #fff; }

/* ---------- Страница «Как установить» (вкладки, 30.09.2026) ---------- */
.install .container { max-width: 64em; }
.install { overflow-x: clip; }
.install * { min-width: 0; }

/* Вкладки — сегменты, как переключатель в iOS */
.itabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375em;
  max-width: 36em;
  margin: 0 0 2em;
  padding: 0.375em;
  border-radius: 1.25em;
  background: rgba(255, 255, 255, 0.07);
}
.install:not(._tabs) .itabs { display: none; }
.itabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 0.5em;
  border: 0;
  border-radius: 0.9em;
  background: transparent;
  color: #c7c7c7;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.itabs__btn:hover { color: #fff; }
.itabs__btn[aria-selected="true"] {
  background: #fff;
  color: #040606;
}
.itabs__icon img { width: 1.25em; height: 1.25em; display: block; }
.itabs__btn[aria-selected="true"] .itabs__icon img { filter: invert(1); }

.itab { margin: 0 0 3em; }
.install:not(._tabs) .itab + .itab { margin-top: 4em; }
.itab__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5em;
  padding: 1.75em;
  border-radius: 1.25em;
  background: linear-gradient(135deg, rgba(209, 217, 230, 0.16) 5.86%, rgba(255, 255, 255, 0.03) 84.49%);
}
.itab__head._second { margin-top: 3.5em; }
.itab__title { margin: 0 0 0.5em; }
.itab__intro {
  margin: 0;
  color: #c7c7c7;
  line-height: 150%;
  max-width: 38em;
}
.itab__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
}
.itab__badges span {
  padding: 0.3em 0.8em;
  border-radius: 2em;
  background: rgba(52, 199, 89, 0.14);
  color: #7ee2a0;
  font-size: 0.875em;
}
.install-cta {
  display: inline-flex;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  min-height: 3.25em;
  padding: 0.9em 1.75em;
  font-size: 1em;
  text-align: center;
  white-space: nowrap;
}
.install-cta._ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.install-note {
  margin: 1.25em 0;
  padding: 1.1em 1.35em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.install-note._warn {
  background: rgba(255, 159, 10, 0.08);
  border-color: rgba(255, 159, 10, 0.3);
}
.install-note__title { margin: 0 0 0.6em; font-weight: 600; }
.install-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5em;
  color: #c7c7c7;
  line-height: 150%;
  list-style: none;
}
.install-list li { position: relative; padding-left: 1.1em; }
.install-list li::before { content: "•"; position: absolute; left: 0; color: #8fb3ff; }
.install-note._warn .install-list li::before { color: #ffb340; }
.install-block__fine {
  margin: 1em 0 0;
  color: #9a9a9a;
  font-size: 0.875em;
  line-height: 150%;
}

/* Шаги: текст слева, экран справа; линия между номерами ведёт по шагам */
.isteps {
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1em;
}
.istep {
  display: grid;
  grid-template-columns: 1fr 15em;
  align-items: center;
  gap: 2em;
  padding: 1.5em 1.75em;
  border-radius: 1.25em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.isteps._plain .istep { grid-template-columns: 1fr; padding: 1.1em 1.5em; }
.istep__text { display: flex; gap: 1.1em; align-items: flex-start; }
.istep__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #fff;
  color: #040606;
  font-weight: 700;
  font-size: 1.1em;
}
.istep__label {
  display: block;
  color: #8fb3ff;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.istep__title {
  margin: 0.2em 0 0.4em;
  font-family: Bender, sans-serif;
  font-size: 1.35em;
  line-height: 1.2;
}
.istep__desc { margin: 0; color: #c7c7c7; line-height: 155%; overflow-wrap: break-word; }
.istep__desc b { color: #fff; }

.install-help { padding: 1em 0 4em; text-align: center; }
.install-help p { margin: 0 0 1em; color: #c7c7c7; }
.install-help__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75em; }

/* ---------- Экран телефона ---------- */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 15em;
  padding: 0.45em;
  border-radius: 2.2em;
  background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 1.5em 3em rgba(0, 0, 0, 0.45);
}
.phone._android { border-radius: 1.6em; }
.phone._shot img { display: block; width: 100%; height: auto; border-radius: 1.8em; }
.phone__screen {
  position: relative;
  min-height: 19em;
  padding-bottom: 1em;
  border-radius: 1.85em;
  background: #f2f2f7;
  color: #000;
  font-family: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 0.78em;
  overflow: hidden;
}
.phone._android .phone__screen { border-radius: 1.25em; background: #fff; font-family: Roboto, system-ui, sans-serif; }
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.5em 0.3em;
  font-weight: 600;
  font-size: 0.9em;
}
.phone._ios .phone__status::after {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 5em;
  height: 1.35em;
  margin-left: -2.5em;
  border-radius: 1em;
  background: #000;
}
.phone__sys { display: flex; gap: 0.2em; align-items: flex-end; }
.phone__sys i { display: block; width: 0.25em; background: #000; border-radius: 1px; }
.phone__sys i:nth-child(1) { height: 0.4em; }
.phone__sys i:nth-child(2) { height: 0.6em; }
.phone__sys i:nth-child(3) { width: 1.2em; height: 0.6em; border-radius: 0.2em; margin-left: 0.2em; }
.phone__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.3em;
  padding: 0.5em 0.8em 0.7em;
  font-weight: 600;
}
.phone__bar._big { display: block; padding: 0.4em 1em 0.6em; font-size: 1.9em; font-weight: 700; letter-spacing: -0.02em; }
.phone__back { grid-column: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #0a7aff; font-weight: 400; }
.phone__title { grid-column: 2; text-align: center; }
.phone._android .phone__bar { grid-template-columns: auto 1fr; padding: 0.6em 1em 0.9em; font-size: 1.15em; font-weight: 500; }
.phone._android .phone__back { color: #1f1f1f; font-size: 1.2em; }
.phone._android .phone__title { grid-column: 2; text-align: left; }
.phone__list {
  margin: 0 0.75em;
  padding: 0;
  list-style: none;
  border-radius: 0.85em;
  background: #fff;
  overflow: visible;
}
.phone._android .phone__list { margin: 0; border-radius: 0; }
.phone__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75em;
  padding: 0.45em 0.85em;
  border-bottom: 1px solid #e5e5ea;
}
.phone._android .phone__row { min-height: 3.2em; padding: 0.5em 1.2em; border-bottom: 0; }
.phone__row:last-child { border-bottom: 0; }
.phone__label { flex: 1 1 auto; min-width: 4.5em; overflow-wrap: normal; }
.phone__val { flex: 0 1 auto; min-width: 0; color: #8e8e93; font-size: 0.9em; text-align: right; }
.phone__chev { color: #c4c4c7; font-size: 1.3em; line-height: 1; }
.phone__tick { color: #0a7aff; font-weight: 700; }
.phone__icon { flex-shrink: 0; width: 1.6em; height: 1.6em; border-radius: 0.4em; }
.phone__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: linear-gradient(#a2a8b3, #7b818c);
  color: #fff;
  font-weight: 600;
}
.phone__switch {
  flex-shrink: 0;
  position: relative;
  width: 2.4em;
  height: 1.4em;
  border-radius: 1em;
  background: #0b57d0;
}
.phone__switch::after {
  content: "";
  position: absolute;
  top: 0.2em;
  right: 0.2em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #fff;
}
/* Пункт, который нужно нажать: подсветка и «палец» */
.phone__row._hl, .phone__row._ok { background: #e8f1ff; }
.phone__row._hl { box-shadow: inset 0 0 0 2px #0a7aff; border-radius: 0.6em; }
.phone._android .phone__row._hl { box-shadow: inset 0 0 0 2px #0b57d0; }
.phone__row._ok { font-weight: 600; }
.phone__tap {
  position: absolute;
  right: 18%;
  bottom: -0.55em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: rgba(10, 122, 255, 0.35);
  box-shadow: 0 0 0 0.35em rgba(10, 122, 255, 0.15);
  animation: phone-tap 1.8s ease-in-out infinite;
  pointer-events: none;
}
.phone__btn {
  margin: 0.7em 0.75em 0.2em;
  padding: 0.7em;
  border-radius: 0.8em;
  background: #0a7aff;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.phone._android .phone__btn { margin: 0.8em 1.2em; border-radius: 2em; background: #0b57d0; }
@keyframes phone-tap {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .phone__tap { animation: none; }
}
@media screen and (max-width: 768px) {
  .itab__head { flex-direction: column; align-items: stretch; padding: 1.35em; }
  .install-cta { justify-content: center; }
  .istep { grid-template-columns: 1fr; gap: 1.25em; padding: 1.25em; }
}
@media screen and (max-width: 576px) {
  .itabs__btn { padding: 0.75em 0.25em; font-size: 0.95em; }
  .istep__title { font-size: 1.2em; }
}

/* Инструкций на главной три (macOS — без карточки, пока нет приложения): на компьютере
   сетка из четырёх колонок оставляла пустое место справа. Колонки по числу карточек, по центру. */
@media screen and (min-width: 993px) {
  .guide__items._n3 {
    grid-template-columns: repeat(3, calc(25% - 6.75em / 4));
    justify-content: center;
  }
}

/* «Скачать VPN» и круглая кнопка ведут к #download: заголовок не прячется под шапкой. */
#download {
  scroll-margin-top: 110px;
}

/* J-048 (08.10): цели касания ≥ 44 px на страницах документов (body.m-page) на телефоне.
   Логотипы и бургер — увеличена только зона нажатия (псевдоэлемент), раскладка шапки не меняется;
   ссылки подвала и контактов — отступы с равными отрицательными полями (раскладка та же). Главная и новые страницы не затронуты. */
@media screen and (max-width: 767px) {
  .m-page .header__logo,
  .m-page .footer__logo,
  .m-page .burger { position: relative; }
  .m-page .header__logo::before,
  .m-page .footer__logo::before,
  .m-page .burger::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(100% + 20px); height: 44px; min-width: 44px; transform: translate(-50%, -50%); }
  .m-page .footer-nav a { display: inline-block; padding: 15px 12px; margin: -15px -12px; }
  .m-page .contacts-group__item a { display: inline-block; padding: 15px 0; margin: -15px 0; }
}
