/* incyvpn.ink «Сигнал» — тёмно-синие шапка и подвал, светлая серо-зелёная основа, сигнальный оранжевый для действий,
   бирюзовые акценты. Шрифты: Exo 2 (заголовки, цифры) и Fira Sans (текст). Сначала телефон, потом широкие экраны. */
:root {
  color-scheme: light;
  --base: #f3f6f5;
  --mist: #e8efed;
  --card: #ffffff;
  --navy: #10263a;
  --navy-2: #1b3a55;
  --text: #1c2b38;
  --text-2: #435567;
  --text-3: #6b7c8b;
  --line: #d8e1e4;
  --line-strong: #a9b9c2;
  --signal: #ff6a2b;
  --signal-2: #f05514;
  --signal-soft: #fff0e7;
  --sea: #0f7a72;
  --sea-soft: #e0f3ef;
  --mint: #8fdccf;
  --ok: #17734a;
  --bad: #b42318;
  --round: 18px;
  --round-s: 12px;
  --lift: 0 10px 30px rgba(16, 38, 58, 0.08);
  --lift-s: 0 4px 14px rgba(16, 38, 58, 0.07);
  --max: 74rem;
  --measure: 47rem;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Exo 2", "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--base); color: var(--text); font: 16px/1.65 var(--sans); overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(29px, 7.4vw, 48px); line-height: 1.1; font-weight: 800; margin: 8px 0 18px; }
h2 { font-size: clamp(22px, 5.2vw, 30px); line-height: 1.2; font-weight: 700; margin: 46px 0 14px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin: 0 0 7px; }
li::marker { color: var(--sea); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--mist); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.dim { color: var(--text-2); }

.wrap, .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.jump { position: absolute; left: -9999px; top: 0; }
.jump:focus { left: 12px; top: 10px; z-index: 60; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* ---- шапка ---------------------------------------------------------------- */
.masthead { background: var(--navy); color: #fff; }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.sig { width: 40px; height: 40px; flex: none; border-radius: 13px; box-shadow: 0 0 0 1px rgba(143, 220, 207, 0.35); }
.brand__name { font: 800 22px/1 var(--display); letter-spacing: 0.01em; }
.brand__name small { display: block; margin-top: 4px; font: 500 12px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--mint); }
.masthead__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--signal); color: var(--navy); font: 700 15px/1 var(--display); text-decoration: none; white-space: nowrap; }
.masthead__cta:hover { background: var(--signal-2); color: var(--navy); }
.sections { background: var(--navy-2); }
.sections__row { display: flex; gap: 4px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sections__row::-webkit-scrollbar { display: none; }
.sections a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; color: #dce7ee; font-size: 15px; font-weight: 500; text-decoration: none; }
.sections a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sections a[aria-current="page"] { color: var(--navy); background: var(--mint); }

/* ---- первый экран ----------------------------------------------------------- */
.trail { font-size: 14px; color: var(--text-3); padding-top: 18px; }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.trail li { margin: 0; }
.trail li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--text-3); }
.trail a { color: var(--text-2); }
.intro { padding-top: 14px; padding-bottom: 4px; }
.intro--home { padding-top: 30px; }
.intro__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 600 13px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); }
.intro__kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.intro__lead, .hero-lead { font-size: 18px; color: var(--text-2); max-width: var(--measure); }
.stamp { margin: 12px 0 14px; font-size: 14px; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

/* карточка оффера под H1 */
.offer { display: grid; gap: 14px; align-items: center; max-width: 54rem; margin: 4px 0 0; padding: 18px 18px 18px 22px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--signal); border-radius: var(--round); box-shadow: var(--lift); }
.offer__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.offer__price b { font: 800 38px/1 var(--display); color: var(--navy); letter-spacing: -0.02em; }
.offer__from, .offer__unit { font-size: 15px; color: var(--text-2); }
.offer__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--text); }
.offer__facts li { margin: 0; padding-left: 20px; position: relative; }
.offer__facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--sea); }
.offer__btn { justify-self: start; }

/* ---- текст страницы ------------------------------------------------------- */
.copy { padding-bottom: 40px; }
.copy > * { max-width: var(--measure); }
.copy > section:first-child > h2:first-child { margin-top: 22px; }
.copy--legal h2 { font-size: 21px; margin-top: 32px; }
.copy--legal p, .copy--legal li { font-size: 15.5px; }
.seq { counter-reset: n; list-style: none; padding: 0; margin: 14px 0 18px; }
.seq > li { counter-increment: n; position: relative; padding: 2px 0 0 50px; margin-bottom: 16px; min-height: 36px; }
.seq > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); border: 2px solid var(--sea); font: 700 16px/30px var(--display); text-align: center; }
.seq > li b { color: var(--navy); }
.cards { display: grid; gap: 12px; margin: 16px 0 12px; padding: 0; list-style: none; }
.cards > li { margin: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--lift-s); }
.cards > li::marker { content: none; }
.cards p { margin: 0; font-size: 15.5px; color: var(--text-2); }
.pairs { display: grid; gap: 10px; margin: 16px 0; }
.pairs > div { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round-s); }
.pairs dt { font: 700 17px/1.35 var(--display); color: var(--navy); }
.pairs dd { margin: 3px 0 0; color: var(--text-2); font-size: 15.5px; }
.ratetable { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--text-3); padding: 8px 14px 12px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--sea); background: var(--sea-soft); }
tbody tr:last-child td { border-bottom: 0; }

/* выбор срока внутри текста */
.tariffs { margin: 26px 0; padding: 20px 18px; background: var(--navy); color: #e5eef3; border-radius: var(--round); }
.tariffs__head { margin: 0 0 2px; font: 700 21px/1.25 var(--display); color: #fff; }
.tariffs__note { margin: 0 0 14px; font-size: 15px; color: #b8c9d6; }
.tariffs__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tariffs__list li { margin: 0; }
.term { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--round-s); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(143, 220, 207, 0.3); color: #fff; text-decoration: none; }
.term:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.term__name { font-size: 14px; color: #b8c9d6; }
.term__sum { font: 800 23px/1.1 var(--display); }
.term__per { font-size: 13px; color: var(--mint); }

/* вопросы */
.qa__item { margin: 0 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round-s); }
.qa__item summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 16px; position: relative; font-weight: 600; font-size: 16.5px; color: var(--navy); }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(45deg); transition: transform 0.15s ease; }
.qa__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa__item p { margin: 0; padding: 0 16px 16px; color: var(--text-2); }

.further { margin-top: 34px; padding: 16px 18px; border-radius: var(--round); background: var(--mist); }
.further__label { margin: 0 0 8px; font: 700 15px/1.3 var(--display); color: var(--navy); }
.further__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.further__list li { margin: 0; }
.further__list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--navy); font-size: 15px; text-decoration: none; }
.further__list a:hover { border-color: var(--sea); color: var(--sea); }

/* /podderzhka */
.reach { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 10px; }
.reach li { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round-s); }
.reach span { font-weight: 600; min-width: 5.5em; color: var(--navy); }

/* подвал */
.foot { margin-top: 44px; background: var(--navy); color: #c6d4de; font-size: 15px; }
.foot a { color: #fff; text-decoration-color: rgba(143, 220, 207, 0.5); }
.foot a:hover { color: var(--mint); }
.foot__grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 22px; }
.foot__note { margin: 14px 0 0; max-width: 30rem; color: #a9bccb; font-size: 14px; }
.foot__head { margin: 0 0 8px; font: 700 14px/1.3 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); }
.foot__group ul { list-style: none; padding: 0; margin: 0; }
.foot__group li { margin: 0 0 6px; }
.foot__fine { margin: 0; padding-top: 14px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9fb2c1; font-size: 14px; }

/* кнопки (те же классы читают checkout.js и сервер) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 700 16px/1.2 var(--display); text-decoration: none; cursor: pointer;
  background: var(--card); color: var(--navy);
}
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.btn--primary:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn--ghost { background: var(--card); color: var(--navy); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---- /access: тарифы и форма (классы читают checkout.js и сервер) --------- */
.access-plans { padding-top: 18px; }
.plans-grid { display: grid; gap: 16px; margin-top: 10px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--lift-s); }
.plan--recommended { border: 2px solid var(--signal); box-shadow: var(--lift); }
.plan__badge { position: absolute; top: -13px; left: 16px; padding: 3px 12px; border-radius: 999px; background: var(--signal); color: var(--navy); font: 700 12px/1.4 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.plan__badge--saving { background: var(--sea); color: #fff; }
.plan__name { font: 700 19px/1.3 var(--display); color: var(--navy); }
.plan__old { min-height: 20px; color: var(--text-3); text-decoration: line-through; font-size: 15px; }
.plan__old--empty { visibility: hidden; }
html[data-reference-price="hide"] .plan__old { visibility: hidden; }
.plan__price { font: 800 36px/1.05 var(--display); color: var(--navy); letter-spacing: -0.02em; }
.plan__sub { display: inline-block; align-self: flex-start; margin: 8px 0 14px; padding: 2px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); font-weight: 600; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; color: var(--text-2); }
.plan li { margin: 0 0 6px; padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 6px; height: 11px; border-right: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.plans-note { font-size: 15px; color: var(--text-2); margin-top: 20px; }
.pending-order { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--round); background: var(--signal-soft); border: 1px solid var(--signal); }
.trial-offer__box { padding: 16px; margin-bottom: 18px; border-radius: var(--round); background: var(--sea-soft); border: 1px solid var(--sea); }

#checkout-inline:empty { display: none; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(16, 38, 58, 0.6); padding: 16px; overflow-y: auto; }
.modal-backdrop.open { display: flex; align-items: flex-start; justify-content: center; }
.modal { position: relative; width: 100%; max-width: 520px; margin: 6vh auto 0; padding: 24px 18px; background: var(--card); border-radius: var(--round); box-shadow: 0 20px 50px rgba(16, 38, 58, 0.25); }
.modal h3 { margin: 0 0 6px; font-size: 21px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--navy); }
.modal__desc { color: var(--text-2); font-size: 15.5px; }
.modal__summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--mist); border-radius: var(--round-s); }
.modal__amount { text-align: right; }
.modal__amount b { display: block; font: 800 22px/1.2 var(--display); color: var(--navy); }
.modal__amount small { color: var(--text-2); font-size: 12px; }
.modal label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.modal input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--round-s); font-size: 17px; font-family: inherit; color: var(--text); background: #fff; margin-bottom: 14px; }
.modal input:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--sea); }
.modal__error { color: var(--bad); font-weight: 600; font-size: 15px; min-height: 1em; margin: 0 0 8px; }
.modal__note { font-size: 13px; color: var(--text-2); text-align: center; margin: 10px 0 0; }
.co-rails-cap { font-size: 14px; color: var(--text-2); margin: 0 0 6px; }
.co-rails { display: flex; gap: 8px; margin: 0 0 14px; }
.co-rail { flex: 1; min-height: 46px; padding: 8px 6px; border: 1px solid var(--line-strong); border-radius: var(--round-s); background: #fff; color: var(--navy); font: 600 15px/1.2 var(--sans); cursor: pointer; }
.co-rail.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
html[data-form="inline"] .modal-backdrop { position: static; inset: auto; z-index: auto; background: none; padding: 0; overflow: visible; }
html[data-form="inline"] .modal-backdrop.open { display: block; }
html[data-form="inline"] .modal { margin: 22px auto 0; border: 1px solid var(--line); box-shadow: var(--lift); }
html[data-form="inline"] .modal__close { display: none; }

/* ---- /success ------------------------------------------------------------- */
.status-box { max-width: 680px; margin-top: 20px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--lift); }
.status-box select, .status-box input { font: inherit; }
.tg-card { margin: 0 0 16px; padding: 16px; border-radius: var(--round-s); background: var(--sea-soft); border: 1px solid var(--sea); }

/* ---- шире телефона ---------------------------------------------------------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .tariffs { padding: 24px 26px; }
  .tariffs__list { grid-template-columns: repeat(4, 1fr); }
  .offer { grid-template-columns: auto 1fr auto; gap: 22px; }
  .offer__btn { justify-self: end; }
  .modal { padding: 28px 30px; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .wrap, .container { padding: 0 24px; }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
  .sections__row { overflow: visible; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
