/* ==========================================================================
   ZGC VPN — design system
   Цвета взяты с оригинального сайта: фон #090C16, акцент #F3CB47
   ========================================================================== */

:root {
  /* base */
  --bg: #090c16;
  --bg-elevated: #10141f;
  --bg-card: #0d111b;
  --bg-input: #151a27;
  --accent: #f3cb47;
  --accent-strong: #ffd95c;
  --accent-dim: rgba(243, 203, 71, 0.14);
  --accent-border: rgba(243, 203, 71, 0.42);
  --danger: #ff2d2d;

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-dim: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.1);

  /* type */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* rhythm */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
  --shadow-accent: 0 18px 44px -18px rgba(243, 203, 71, 0.35);

  --container: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* мягкий градиент + шум, как на оригинальной странице оплаты */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(243, 203, 71, 0.1), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(243, 203, 71, 0.05), transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(243, 203, 71, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #090c16;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 12, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(9, 12, 22, 0.92);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}

.header__logo img {
  width: 44px;
  height: 44px;
}

.header__nav {
  margin-inline-start: auto;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.social:hover {
  transform: translateY(-2px);
  background: var(--accent-dim);
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header__lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.header__lang a {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.header__lang a[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-dim);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #090c16;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  border-color: var(--accent-border);
}

.btn--ghost:hover {
  --btn-bg: var(--accent-dim);
  box-shadow: none;
}

.btn--wide {
  width: 100%;
}

.btn--lg {
  min-height: 56px;
  padding-inline: 36px;
  font-size: 16px;
}

/* «Оплатить прямым переводом» — градиентная кнопка как в оригинале */
.btn--gradient {
  background: linear-gradient(90deg, #f0a58c 0%, #f3cb47 100%);
  color: #090c16;
}

/* ==========================================================================
   Plans page
   ========================================================================== */

.plans {
  padding: 48px 0 80px;
}

.plans__head {
  text-align: center;
  margin-bottom: 28px;
}

.plans__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* сегментированный переключатель тарифов */
.segmented {
  display: inline-flex;
  position: relative;
  padding: 4px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
}

.segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: transform 0.32s var(--ease), width 0.32s var(--ease);
  pointer-events: none;
}

.segmented button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 8px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.segmented button[aria-selected="true"] {
  color: #090c16;
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel {
  animation: fade-up 0.4s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.plan-intro {
  margin: 48px 0 32px;
}

.plan-intro__title {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.plan-intro__list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 17px;
}

.plan-intro__list strong {
  color: var(--text);
}

.plan-intro__list li {
  display: flex;
  gap: 10px;
}

.plan-intro__list li::before {
  content: attr(data-marker);
  flex: none;
  width: 1em;
  color: var(--accent);
}

.plan-intro__list li.lead {
  margin-bottom: 6px;
  color: var(--text);
}

.plan-intro__list li.lead::before {
  display: none;
}

/* карточки цен */
.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.price-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 900px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) var(--bg-card);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.3s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price-card__term {
  font-size: 20px;
  font-weight: 700;
}

.price-card__days {
  color: var(--text-dim);
  font-size: 13px;
}

.price-card__main {
  margin-top: 18px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-card__usd {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card__descr {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.price-card__descr strong {
  color: var(--text);
}

.price-card__note {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.price-card__cta {
  margin-top: auto;
  padding-top: 24px;
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow);
}

.badge {
  align-self: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* внутренний переключатель Premium / Premium+ */
.subswitch {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* блок «Личный сервер» */
.server-warning {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 45, 45, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 45, 45, 0.08);
  color: #ffd7d7;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.server-warning a {
  color: #fff;
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
}

.plans__footer {
  margin-top: 56px;
  text-align: center;
}

.plans__footer-notes {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.plans__footer-notes em {
  font-style: italic;
}

/* ==========================================================================
   Payment page
   ========================================================================== */

.pay-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.pay-card {
  width: 100%;
  max-width: 520px;
  padding: 40px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) var(--bg-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.pay-card__logo {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.pay-summary {
  margin: 24px 0;
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.pay-summary li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.pay-summary li::before {
  content: "›";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.pay-summary__price {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

.pay-lead {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
}

.field {
  margin-bottom: 14px;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.input,
.select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder {
  color: var(--text-dim);
}

.input:hover,
.select:hover {
  border-color: rgba(243, 203, 71, 0.3);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3cb47' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

.select option {
  background: #151a27;
  color: #fff;
}

/* статус подготовки формы оплаты */
.form-status {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form-status.is-error {
  color: #ff9b8a;
}

.field-error {
  margin-top: 6px;
  color: #ff8f8f;
  font-size: 13px;
  min-height: 1em;
}

.pay-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pay-or::before,
.pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.pay-fineprint {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.pay-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.pay-back:hover {
  color: var(--accent);
}

.pay-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.pay-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #090c16;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.pay-socials a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.pay-socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   Direct payment page
   ========================================================================== */

.direct {
  padding: 48px 0 80px;
}

.notice {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-dim);
  text-align: center;
  line-height: 1.6;
}

.notice__title {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.notice strong {
  color: #fff;
}

.accordion {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.acc-item:hover {
  border-color: rgba(243, 203, 71, 0.3);
}

.acc-item.is-open {
  border-color: var(--accent-border);
}

.acc-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.acc-trigger__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}

.acc-item.is-open .acc-trigger__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #090c16;
}

.acc-trigger__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.4;
}

.acc-panel {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.acc-panel strong,
.acc-panel u {
  color: var(--text);
}

.acc-panel ul {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
}

.acc-panel ul li {
  display: flex;
  gap: 10px;
}

.acc-panel ul li::before {
  content: "•";
  color: var(--accent);
}

.acc-panel img {
  max-width: 320px;
  margin: 16px 0;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

/* строка с реквизитом + копирование */
.copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.copy-row > div {
  flex: 1;
  min-width: 0;
}

.copy-row__value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.copy-row__label {
  display: block;
  margin-bottom: 2px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.copy-btn {
  flex: none;
  margin-left: auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover {
  background: var(--accent);
  color: #090c16;
}

.copy-btn.is-done {
  background: var(--accent);
  color: #090c16;
}

.direct__outro {
  max-width: 820px;
  margin: 40px auto 0;
  display: grid;
  gap: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer strong {
  color: var(--text);
}

.footer em {
  display: block;
  margin-top: 10px;
  font-style: italic;
}

.footer__offer {
  color: #ff7a45;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 980px) {
  .header__nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 12px 20px 20px;
    background: rgba(9, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .header.is-nav-open .header__nav {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .header__nav {
    order: 5;
  }

  .burger {
    display: block;
    order: 4;
    margin-left: auto;
  }

  .header__socials,
  .header__cta {
    display: none;
  }
}

@media (max-width: 720px) {
  .plans {
    padding-top: 28px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding-inline: 10px;
    font-size: 13px;
  }

  .plan-intro {
    margin: 32px 0 24px;
  }

  .plan-intro__list {
    font-size: 15px;
  }

  .pay-card {
    padding: 28px 20px;
  }

  .acc-trigger {
    padding: 16px 18px;
    font-size: 16px;
  }

  .acc-panel {
    padding: 0 18px 20px;
  }

  .copy-row {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
