/* Токены. Палитра — как на основном сайте клиента; глубина, радиусы, шкала и движение — система этапа 3.
   Правила: свет (цветная тень) — только у главной CTA hero; пилюли — только у кнопок; курсив — H1 и голос сестёр. */
:root {
  /* поверхности */
  --cream: #f4ebe3; --paper: #fbf6f1; --paper-hi: #fffaf6; --sand: #ece0d4;
  /* чернила: текст, второй план, приглушённый (5.6:1 на --cream) */
  --ink: #2a1b1b; --ink-2: #4a3a38; --muted: #6e5858;
  /* линии — из чернил с прозрачностью */
  --line: rgba(42, 27, 27, .12); --line-2: rgba(42, 27, 27, .22);
  /* бордовый: действие / нажатие / акцентная рамка / выбранное */
  --berry: #9b3d3f; --berry-deep: #6f2a2c; --berry-soft: #c47a7c; --berry-wash: #f3e3df;
  --on-berry: #fff8f4;       /* 6.4:1 на --berry */
  /* только декор и статусы: для текста контраста не хватает (кроме --leaf на светлом: 4.9:1) */
  --gold: #b8956a; --leaf: #5c6b4e;
  /* радиусы — три ступени */
  --r-s: 6px; --r-m: 14px; --r-pill: 999px;
  /* глубина без ореолов */
  --sh-1: 0 1px 2px rgba(42, 27, 27, .06);
  --sh-2: 0 18px 36px -22px rgba(42, 27, 27, .35);
  --sh-modal: 0 30px 70px -24px rgba(42, 27, 27, .45);
  --cta-light: 0 14px 30px -14px rgba(155, 61, 63, .65);   /* единственный «свет» — главная CTA */
  /* типографика: антиква 500/600 (+курсив 500), гротеск 400/600/700; шкала ≈×1.25 */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --fs-cap: 12.5px; --fs-s: 14px; --fs-b: 16px; --fs-lead: 18px; --fs-h3: 19px;
  --fs-h2: clamp(34px, 4.6vw, 46px); --fs-h1: clamp(46px, 5.6vw, 74px);
  --track-cap: .08em;
  /* ритм */
  --sect: clamp(88px, 15vh, 144px); --sect-m: 76px;
  /* движение: одна кривая, две длительности */
  --ease: cubic-bezier(.25, 1, .5, 1); --t-fast: .16s; --t-slow: .5s;
  --i-x-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e5858' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7'/%3E%3C/svg%3E");
  --i-check-on-berry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff8f4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.1L13 4.6'/%3E%3C/svg%3E");
  --i-berry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 1.5Q6.5 3 6 5' fill='none' stroke='%239b3d3f' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='8.5' r='4' fill='%239b3d3f'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.1L13 4.6'/%3E%3C/svg%3E");
}

/* шрифты — свои, по одному файлу на начертание: кириллица + латиница + нужные знаки (₽ ≈ − « » № ü …),
   веса обрезаны до используемых (Cormorant 500–600, курсив 500, Manrope 400–700); swap — текст виден сразу */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/fonts/cormorant.woff2?v=1") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-italic.woff2?v=1") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/manrope.woff2?v=1") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 var(--fs-b)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-deep); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
/* бумага: тонкое зерно — статичная плитка 96×96 на фоне body, без blend-mode и SVG-фильтров:
   слой поверх анимаций (глобус, лента) перерисовывался каждый кадр и утраивал TBT */
body { background-image: url("/grain.png?v=2"); background-size: 96px; }
.i18n-pending body { visibility: hidden; }  /* EN подставляется до первой отрисовки, без мигания */
::selection { background: var(--berry-wash); color: var(--berry-deep); }
h2, h3, summary { text-wrap: balance; }
h1, h2, h3, summary { font-variant-numeric: lining-nums; }  /* старостильная «1» в антикве похожа на «I» */
p, li { text-wrap: pretty; }
/* курсив = голос сестёр: H1 и реплики бренда, больше нигде */
h1 em, em.voice, .farewell-voice { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--berry); }
em.voice { font-size: 1.32em; line-height: 1; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* promo */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 16px;
  background: var(--paper); color: var(--ink-2); border-bottom: 1px solid var(--line);
  font-size: var(--fs-s); text-align: center;
}
.promo-btn {
  position: relative; flex: none; white-space: nowrap; border: 0; border-bottom: 1px solid currentColor; background: transparent;
  color: var(--berry); font-size: var(--fs-s); font-weight: 700; padding: 0 0 1px; border-radius: 0;
  transition: color var(--t-fast) var(--ease);
}
.promo-btn::after { content: ""; position: absolute; inset: -10px -6px; }
.promo-btn:hover { color: var(--berry-deep); }
.promo span, .sum-note, .seg { font-variant-numeric: tabular-nums; }

/* header */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 235, 227, .86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(244, 235, 227, .94); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: .03em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.kb { flex: none; width: 24px; height: 28px; }
.brand-logo { display: block; height: 30px; width: auto; }

/* RU / EN */
.lang { display: flex; align-items: center; gap: 2px; }
.lang button {
  position: relative; min-width: 34px; min-height: 40px; padding: 0 6px; border: 0; background: transparent;
  font-size: var(--fs-cap); font-weight: 700; letter-spacing: var(--track-cap); color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--berry); }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 400; }
.nav a:hover { color: var(--berry); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 24px; font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  white-space: nowrap; min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 38px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--berry); color: var(--on-berry); }
.btn-primary:hover { background: var(--berry-deep); color: var(--on-berry); }
.hero-cta .btn-primary { box-shadow: var(--cta-light); }   /* единственный «свет» на странице */
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* hero */
.hero { position: relative; padding: 40px 0 calc(var(--sect) * .6); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
.hero-apps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 22px; }
.hero-apps li {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 20px -10px rgba(42, 27, 27, .3);
  transform: rotate(-3deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.hero-apps li:nth-child(even) { transform: rotate(2.5deg) translateY(2px); }
.hero-apps li:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 14px 24px -10px rgba(155, 61, 63, .4); }
.hero-apps svg { display: block; }
h1 {
  margin: 0 0 22px;
  font-family: var(--serif); font-size: var(--fs-h1); line-height: 1; font-weight: 600; letter-spacing: -.012em;
}
.lead { margin: 0 0 32px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 31em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
#heroCaption { margin-top: 14px; font-size: 14px; }
.hint a { white-space: nowrap; }
.hint.center { text-align: center; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; padding: 0; margin: 26px 0 0; font-size: var(--fs-s); font-weight: 600; color: var(--muted); }
.trust li { white-space: nowrap; }
.trust li::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 8px; vertical-align: -1px; background: var(--i-berry) center / contain no-repeat; }

.hero-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.hero-globe::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  box-shadow: 0 0 80px rgba(196, 122, 124, .28);
}
#globe { position: relative; width: 100%; height: 100%; }

/* sections */
.section { padding: var(--sect) 0; }
.section.alt { background: rgba(251, 246, 241, .7); }
/* заголовок секции: слева; подзаголовок — правой колонкой по базовой линии */
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin: 0 0 48px; }
.section-head h2 { max-width: 20ch; }
.section-head .sub { margin: 0; max-width: 30em; }
h2 { margin: 0; font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.05; font-weight: 600; letter-spacing: -.01em; }
.sub { margin: 12px 0 0; color: var(--muted); }
.wrap-narrow .section-head { grid-template-columns: 1fr; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.steps li { position: relative; }
.step-n {
  position: relative; display: block; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
  font: 600 60px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--berry);
}
.step-n::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); }
.steps h3 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 24em; }

/* locations */
.section-loc { padding-top: calc(var(--sect) * .5); }
.marquee {
  display: grid; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; width: max-content; gap: 0; animation: marquee 60s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
/* лента едет только в кадре: will-change — лишь на это время (класс .is-on ставит IntersectionObserver) */
.marquee:not(.is-on) .marquee-row { animation-play-state: paused; }
.marquee.is-on .marquee-row { will-change: transform; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* страна: антиква + маленький приглушённый флаг; между странами — ягодная точка */
.chip {
  display: inline-flex; align-items: center; gap: 12px; flex: none; white-space: nowrap;
  font: 500 30px/1.3 var(--serif); color: var(--ink);
}
.chip::after { content: ""; width: 6px; height: 6px; margin: 0 26px 0 14px; border-radius: 50%; background: var(--berry); opacity: .7; }
.chip img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); filter: saturate(.7); opacity: .9; }

/* benefits: сравнение «обычный VPS ↔ Kalina» */
.compare {
  --us-w: 56%;
  position: relative; max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr var(--us-w);
}
/* сплошная карточка под правой колонкой */
.compare::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--us-w);
  background: var(--paper-hi); border: 1px solid var(--line-2); border-radius: var(--r-m);
  box-shadow: var(--sh-2);
}
.compare-head, .compare-row { display: contents; }
.compare .c-them, .compare .c-us { position: relative; margin: 0; }
.compare-head .c-them, .compare-head .c-us { padding: 26px 32px 18px; font-weight: 700; }
.compare-head .c-them { color: var(--muted); font-size: 15px; align-self: end; }
.compare-head .c-us {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--berry-deep); line-height: 1;
}
.compare-row .c-them, .compare-row .c-us { border-top: 1px solid var(--line); }
.compare-row .c-them { padding: 24px 32px 24px 38px; color: var(--muted); font-size: 15px; }
.compare-row .c-them::before {
  content: ""; position: absolute; left: 8px; top: 27px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(110, 88, 88, .14) var(--i-x-muted) center / 10px no-repeat;
}
.compare-row .c-us { padding: 22px 32px 22px 64px; }
.compare-row .c-us::before {
  content: ""; position: absolute; left: 30px; top: 24px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--berry) var(--i-check-on-berry) center / 13px no-repeat;
}
.compare-row .c-us h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.compare-row .c-us p { margin: 0; color: var(--muted); }
.compare-row:last-child .c-us { padding-bottom: 30px; }
.c-label { display: none; }

/* plans: одна панель, колонки через волосяные линии; главная строка — цена за месяц */
.plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper-hi); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--sh-2); overflow: hidden;
}
.plan { --plan-bg: var(--paper-hi); position: relative; display: flex; flex-direction: column; padding: 48px 26px 26px; background: var(--plan-bg); }
/* сверху — место под подпись «Выгоднее всего», чтобы колонки шли в одну линию */
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { --plan-bg: var(--berry-wash); }
.plan-tag {
  position: absolute; top: 0; left: 26px; right: 26px; padding-top: 10px; border-top: 2px solid var(--berry);
  font-size: var(--fs-cap); font-weight: 700; letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--berry-deep);
}
.plan-emb { height: 44px; margin-bottom: 18px; color: var(--berry); }
.plan-emb svg { height: 100%; width: auto; display: block; }
.plan-name { margin: 0; font: 600 30px/1.05 var(--serif); color: var(--ink); }
.plan-days { margin: 6px 0 22px; font-size: var(--fs-cap); font-weight: 700; letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--muted); }
.plan-price { margin: 0; }
.plan-price strong { font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: lining-nums proportional-nums; white-space: nowrap; }
.plan-price small { font-size: var(--fs-s); font-weight: 600; color: var(--muted); }
.plan-total { margin: 10px 0 24px; font-size: var(--fs-s); color: var(--ink-2); min-height: 22px; }
.plan-total .was { display: block; white-space: nowrap; }
.plan-total s { color: var(--muted); }
.plan-total .save { margin-left: 8px; font-weight: 700; color: var(--leaf); }
.plan .btn { margin-top: auto; width: 100%; }
.common { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 26px 0 0; padding: 0; list-style: none; font-size: var(--fs-s); color: var(--ink-2); }
.common li { display: flex; align-items: center; gap: 9px; }
.common li:not(.common-cap)::before { content: ""; width: 10px; height: 13px; flex: none; background: var(--i-berry) center / contain no-repeat; }
.common-cap { font-size: var(--fs-cap); font-weight: 700; letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--muted); }

/* faq: один лист — вопросы разделены волосяными линиями, «+/−» нарисован */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; position: relative;
  font: 600 22px/1.25 var(--serif); color: var(--ink); transition: color var(--t-fast) var(--ease);
}
.faq summary:hover { color: var(--berry); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform var(--t-slow) var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 64px 24px 24px; color: var(--ink-2); max-width: calc(64ch + 88px); }
@media (max-width: 720px) { .faq summary { padding: 20px 48px 20px 16px; } .faq summary::before, .faq summary::after { right: 18px; } .faq details p { padding: 0 16px 22px; } }

/* финальная реплика и вышитая лента */
.farewell { padding: calc(var(--sect) * .7) 0 0; text-align: center; }
.farewell-voice { margin: 0 0 calc(var(--sect) * .45); padding: 0 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.rushnik { height: 42px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='42' viewBox='0 0 60 42'%3E%3Cpath d='M7.08 1.08L10.92 4.92M10.92 1.08L7.08 4.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M19.08 1.08L22.92 4.92M22.92 1.08L19.08 4.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M31.08 1.08L34.92 4.92M34.92 1.08L31.08 4.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M43.08 1.08L46.92 4.92M46.92 1.08L43.08 4.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M55.08 1.08L58.92 4.92M58.92 1.08L55.08 4.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M25.08 7.08L28.92 10.92M28.92 7.08L25.08 10.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M37.08 7.08L40.92 10.92M40.92 7.08L37.08 10.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M19.08 13.08L22.92 16.92M22.92 13.08L19.08 16.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M31.08 13.08L34.92 16.92M34.92 13.08L31.08 16.92' stroke='%23b8956a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M43.08 13.08L46.92 16.92M46.92 13.08L43.08 16.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M13.08 19.08L16.92 22.92M16.92 19.08L13.08 22.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M25.08 19.08L28.92 22.92M28.92 19.08L25.08 22.92' stroke='%23b8956a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M31.08 19.08L34.92 22.92M34.92 19.08L31.08 22.92' stroke='%23b8956a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M37.08 19.08L40.92 22.92M40.92 19.08L37.08 22.92' stroke='%23b8956a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M49.08 19.08L52.92 22.92M52.92 19.08L49.08 22.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M19.08 25.08L22.92 28.92M22.92 25.08L19.08 28.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M31.08 25.08L34.92 28.92M34.92 25.08L31.08 28.92' stroke='%23b8956a' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M43.08 25.08L46.92 28.92M46.92 25.08L43.08 28.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M25.08 31.08L28.92 34.92M28.92 31.08L25.08 34.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M37.08 31.08L40.92 34.92M40.92 31.08L37.08 34.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M7.08 37.08L10.92 40.92M10.92 37.08L7.08 40.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M19.08 37.08L22.92 40.92M22.92 37.08L19.08 40.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M31.08 37.08L34.92 40.92M34.92 37.08L31.08 40.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M43.08 37.08L46.92 40.92M46.92 37.08L43.08 40.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M55.08 37.08L58.92 40.92M58.92 37.08L55.08 40.92' stroke='%239b3d3f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / auto 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-color: var(--paper); }

/* footer */
.footer { background: var(--paper); padding: 40px 0 52px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-size: 14px; }
.footer-links a { color: var(--ink-2); padding: 11px 0; }
.footer-links a:hover { color: var(--berry); }
.copy { margin: 0; color: var(--muted); font-size: 13px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 27, 27, .45); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 30px 26px 24px; box-shadow: var(--sh-modal);
  animation: pop var(--t-slow) var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.modal-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.modal-x:hover { background: var(--berry-wash); color: var(--berry-deep); }
.pane h2 { font-size: 32px; font-weight: 600; margin: 0 0 16px; padding-right: 28px; }
/* выбор срока: строка-линейка, выбранный — бордовая черта снизу (пилюли только у кнопок действия) */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-2); }
.seg button {
  position: relative; border: 0; background: transparent; padding: 10px 4px 12px; min-height: 44px;
  font-size: var(--fs-s); font-weight: 700; color: var(--muted); transition: color var(--t-fast) var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg button::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px; background: var(--berry); transform: scaleX(0); transition: transform var(--t-slow) var(--ease); }
.seg button[aria-checked="true"]::after { transform: scaleX(1); }
.sum-note { margin: 10px 4px 20px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field > label { font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); font-size: 12.5px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; caret-color: var(--berry);
}
.field input::placeholder { color: #8f7a7a; }
.field input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(155, 61, 63, .18); }
.field input.bad { border-color: var(--berry); background: #fffafa; }
.field-err { margin: 0; color: var(--berry-deep); font-size: 13.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--berry); width: 16px; height: 16px; flex: none; }
.err { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--berry-wash); border: 1px solid var(--berry-soft); color: var(--berry-deep); font-size: 14px; font-weight: 600; }
#paneWait, #paneFail { text-align: center; padding: 18px 0 8px; }
#paneWait h2, #paneFail h2 { padding-right: 0; }
#paneFail .sub { margin: 0 0 22px; }
/* ожидание оплаты: три ягоды «наливаются» по очереди */
.ripen { display: flex; justify-content: center; gap: 10px; height: 46px; align-items: center; margin: 0 auto 18px; }
.ripen span { width: 16px; height: 16px; border-radius: 50%; background: var(--berry); animation: ripen 1.4s var(--ease) infinite; }
.ripen span:nth-child(2) { animation-delay: .18s; } .ripen span:nth-child(3) { animation-delay: .36s; }
@keyframes ripen { 0%, 100% { transform: scale(.55); opacity: .35; } 45% { transform: scale(1); opacity: 1; } }
/* единственное авторское движение: «Доступ готов» — ягода наливается, экран проявляется снизу */
.done-berry { width: 40px; height: 44px; margin-bottom: 14px; }
.done-berry img { width: 100%; height: 100%; animation: berry-in var(--t-slow) var(--ease) both; }
#paneDone:not([hidden]) { animation: done-in .7s var(--ease) both; }
@keyframes berry-in { from { transform: scale(.4); opacity: 0; } 60% { opacity: 1; } }
@keyframes done-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
#paneDone h2 { margin-bottom: 6px; }
#paneDone .sub { margin: 0 0 20px; }
.done-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.done-steps li { counter-increment: step; display: grid; gap: 8px; }
.done-step { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 700; }
.done-step::before {
  content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  font: 600 22px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--berry);
}
.apps-title { margin: 6px 0 8px; font-size: var(--fs-cap); font-weight: 700; letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 13px; }
.apps { display: grid; gap: 8px; margin: 6px 0 4px; }
.apps a { display: block; padding: 12px 16px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.apps a:hover { border-color: var(--berry-soft); color: var(--berry-deep); text-decoration: none; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { max-width: 420px; margin-top: 8px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding-top: 36px; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: var(--sect-m) 0; }
  .promo { font-size: 13px; gap: 10px; padding: 8px 12px; text-align: left; }
  .promo span { text-wrap: balance; }
  .hero-apps { gap: 7px; margin-bottom: 18px; }
  .hero-apps li { width: 42px; height: 42px; border-radius: 12px; }
  .hero-apps svg { width: 22px; height: 22px; }
  .chip { font-size: 24px; }
  .chip::after { margin: 0 18px 0 10px; }
  .section-loc { padding-top: 40px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  /* сравнение: одна колонка, «обычный VPS» — серой плашкой над каждым пунктом */
  .compare { --us-w: 100%; grid-template-columns: 1fr; }
  .compare-head .c-them { display: none; }
  .compare-head .c-us { padding: 22px 20px 6px; font-size: 26px; }
  .compare-row .c-them {
    margin: 14px 16px 0; padding: 9px 12px 9px 34px; border: 0; border-radius: 12px;
    background: rgba(110, 88, 88, .07); font-size: 13.5px;
  }
  .compare-row .c-them::before { left: 11px; top: 12px; width: 16px; height: 16px; background-size: 9px; }
  .compare-row .c-us { border-top: 0; padding: 12px 20px 18px 58px; }
  .compare-row .c-us::before { left: 22px; top: 14px; }
  .compare-row:not(:last-child) .c-us { border-bottom: 1px solid var(--line); }
  .c-label { display: inline; font-weight: 700; }
}
@media (max-width: 520px) {
  /* тарифы на телефоне — компактные строки вместо 4 высоких карточек */
  .plans { grid-template-columns: 1fr; }
  .plan {
    display: grid; grid-template-columns: 52px 1fr auto; column-gap: 14px; row-gap: 2px; padding: 20px 18px;
    grid-template-areas: "emb name price" "emb days price" ". total total" "btn btn btn";
  }
  .plan + .plan, .plan:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .plan-emb { grid-area: emb; height: auto; margin: 4px 0 0; }
  .plan-emb svg { width: 100%; height: auto; max-height: 40px; }
  .plan-name { grid-area: name; font-size: 25px; }
  .plan-days { grid-area: days; margin: 0; }
  .plan-price { grid-area: price; text-align: right; }
  .plan-price strong { font-size: 22px; }
  .plan-price small { display: block; font-size: 12px; }
  .plan-total { grid-area: total; margin: 8px 0 0; min-height: 0; font-size: 13px; }
  .plan-total .was { display: inline; margin-left: 6px; }
  .plan-total s { display: none; }
  .plan-total .save { margin-left: 0; }
  .plan .btn { grid-area: btn; margin-top: 14px; }
  .plan-tag { left: 18px; right: 18px; }
  .plan.featured .plan-emb, .plan.featured .plan-name, .plan.featured .plan-price { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .step-n { grid-row: span 2; margin: 0; padding: 0; border: 0; font-size: 46px; }
  .step-n::after { display: none; }
  .header-row { gap: 12px; height: 62px; }
  .brand { padding: 8px 0; }
  .brand-logo { height: 25px; }
  .kb { width: 20px; height: 24px; }
  .header-row { gap: 8px; }
  .header-actions { gap: 8px; }
  /* на телефоне переключатель — одна кнопка с другим языком */
  .lang button[aria-pressed="true"] { display: none; }
  .lang button { min-width: 40px; color: var(--ink); }
  /* «Мой доступ» занимает место «Подключить» — главная кнопка остаётся в hero */
  .header-actions:has(#myAccessBtn:not([hidden])) #headerBuy { display: none; }
  .header-actions .btn-sm { padding: 7px 14px; font-size: 13px; min-height: 40px; }
  .modal { place-items: end center; padding: 0; }
  .modal-card { border-radius: var(--r-m) var(--r-m) 0 0; max-height: 92dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal-card, .ripen span, .done-berry img, #paneDone:not([hidden]) { animation: none; }
  .hero-apps li { transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .marquee-row [data-dup] { display: none; }
}
