/* vps.html page styles (owner: page agent «vps»). Shared tokens/components: assets/css/*.css (read-only for page agents).
   Figma: «VDS.RENT · VPS и VDS · 1728» (dump vps). All y values below are offsets from the section's own top (= Figma
   node.y − section.y, the section boxes keep the Figma heights including the 80 px overlaps).
   Phone (≤ 600): the system of «VDS.RENT · Главная · 390 (мобильная)» (index-m): 20 px gutters, 32 px joins, 72 px section
   padding, H2 32/36, plan cards, small black cards with a render on the right, the 2-column photo grid. */

/* =================================================================================================== shared bits */
.v-head { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; text-align: center; color: var(--t1); }
.v-sub { margin-top: 16px; font-size: 19px; line-height: 28px; letter-spacing: -0.006em; text-align: center; color: var(--t2); }
/* the footnote mark «[1]», raised like a superscript (Figma: 11/14 #8E8E93, 3 px after the word, 2 px above its box) */
.v-fn { position: relative; top: -2px; display: inline-block; margin-left: 3px; vertical-align: top; font-size: 11px; line-height: 14px;
  font-weight: 400; letter-spacing: 0; color: var(--t3); }
.v-fn--14 { top: 4px; margin-left: 4px; font-size: 14px; line-height: 16px; }

/* =================================================================================================== 1. first screen */
.v-hero { --hy: var(--header-h); }
.v-hero .crumbs--hero { position: absolute; left: 0; right: 0; top: calc(var(--hy) + 88px); }
.v-hero__in { padding: calc(var(--hy) + 115px) var(--M) 130px; text-align: center; }
.v-hero__h { font-size: 72px; line-height: 76px; font-weight: 600; letter-spacing: -0.042em; color: var(--t1); }
.v-hero__sub { width: 820px; max-width: 100%; margin: 18px auto 0; font-size: 21px; line-height: 30px; letter-spacing: -0.008em; color: var(--t2); }
.v-hero__act { display: flex; justify-content: center; align-items: flex-start; margin-top: 36px; }
.v-hero__btn { letter-spacing: -0.005em; }
.v-hero__price { display: flex; align-items: flex-start; margin-left: 28px; white-space: nowrap; }
.v-hero__from { display: block; width: 131px; margin-top: 8px; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.016em; color: var(--t1); text-align: left; }
.v-hero__per { display: block; width: 74px; margin: 17px 0 0 10px; font-size: 19px; line-height: 24px; letter-spacing: -0.005em; color: var(--t2); text-align: left; }

/* =================================================================================================== 2. CPU lines */
.v-cpu > .wrap { padding-top: 200px; padding-bottom: 200px; }
.v-cpu__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.v-cpu__card { padding: 40px; border-radius: 40px; background: var(--grey-block); }
.v-cpu__card img { display: block; }
.v-cpu__logo--int { width: 42px; height: 28px; margin-bottom: 32px; }
.v-cpu__logo--amd, .v-cpu__logo--ryz, .v-cpu__logo--epy { width: 26px; height: 26px; margin-bottom: 34px; }
.v-cpu__name { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.014em; color: var(--t1); white-space: nowrap; }
/* two columns: the second starts 240 px after the first (Figma x 40 / 280). Every value keeps one line (nowrap) and the
   columns never get narrower than the longest one (EPYC «64 ядра, 128 потоков» 198 px, «NVMe PCIe 4.0» 134 px), so the
   three cards always lay out identically; where even that does not fit (1280…1439, phones) the cores value breaks after
   its comma in all three cards (.v-cpu__cores > span: block) */
.v-cpu__specs { display: grid; grid-template-columns: minmax(200px, 224px) minmax(135px, 1fr); column-gap: 16px; row-gap: 24px; margin-top: 28px; }
.v-cpu__spec dt { font-size: 13px; line-height: 18px; letter-spacing: -0.002em; color: var(--t3); white-space: nowrap; }
.v-cpu__spec dd { margin-top: 4px; font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.006em; color: var(--t1); white-space: nowrap; }

/* =================================================================================================== 3. plans */
.v-plans > .wrap { padding-top: 128px; padding-bottom: 129px; }
.v-plans__bar { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 56px; }
/* the CPU-line switcher: white 5 % track r10, 4 px inset, 2 px gaps; the chosen segment white 11 % r8. Only the Intel line has
   plans: the AMD segments are disabled (as on the main page) — no hover step, no pointer */
.v-lines-scroll { flex: none; }
.v-lines { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 10px; background: var(--hl-05); }
.v-line { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px; white-space: nowrap;
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.005em; color: var(--t2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.v-line[aria-disabled="true"] { cursor: default; }
.v-line[aria-selected="true"] { background: var(--hl-11); color: var(--t1); }
.v-line__logo--int { width: 30px; height: 20px; }
.v-line__logo--ryz, .v-line__logo--epy { width: 18px; height: 18px; }
/* the line's locations: two round flags overlapping by 4 px, the first on top, each ringed (2 px, outside) in the
   segment's own colour; quieter (55 %) on the lines that are not chosen */
.v-line__dc { display: inline-flex; align-items: center; opacity: 0.55; transition: opacity var(--t-fast) var(--ease); }
.v-line__flag { position: relative; box-shadow: 0 0 0 2px #0D0D0D; transition: box-shadow var(--t-fast) var(--ease); }
.v-line__flag + .v-line__flag { margin-left: -4px; z-index: -1; }
.v-line__dc { isolation: isolate; }
.v-line[aria-selected="true"] .v-line__dc { opacity: 1; }
.v-line[aria-selected="true"] .v-line__flag { box-shadow: 0 0 0 2px #272727; }
/* the data-centre picker (a select over the Figma box: site.js draws its list) */
.v-dc { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; margin-top: 4px; padding: 0 14px 0 16px;
  border-radius: 8px; background: var(--hl-11); cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .v-dc:hover { background: var(--hl-14); } }
.v-dc__lbl { font-size: 14px; line-height: 20px; letter-spacing: -0.005em; color: var(--t2); }
.v-dc__val { display: inline-flex; align-items: center; gap: 8px; }
.v-dc__name { min-width: 53px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.005em; color: var(--t1); white-space: nowrap; }
.v-dc__chev { color: var(--t3); }
.v-dc__sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px;
  -webkit-appearance: none; appearance: none; border: 0; background: transparent; }

/* the line's hardware: one quiet line, the key in white; «CPUBenchmark» only looks like a link (Figma) */
.v-hw { margin-top: 28px; font-size: 15px; line-height: 22px; letter-spacing: -0.004em; color: var(--t3); }
.v-hw__k { font-weight: 500; color: var(--t1); }
.v-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---- the plan table (desktop). 9 content columns (Figma content widths: name 298 = the «Хит продаж» row … button 101) and
   8 gaps; every gap is two fr halves, so the faint column bands run from the middle of one gap to the next. The halves are
   the Figma ones (23/24 px: the gaps are 47 or 48 px, the bands start on whole pixels), so at 1728 one fr = 1 px and every
   cell, render and band sits on the Figma pixel */
.v-pt { --c-name: 298px; --c-cpu: 141px; --c-vcpu: 57px; --c-ram: 164px; --c-disk: 156px; --c-net: 122px; --c-ch: 81px; --c-price: 134px; --c-go: 101px;
  --cols: [name-s] var(--c-name) [name-e] 23fr [cpu-l] 24fr [cpu-s] var(--c-cpu) [cpu-e] 24fr [cpu-r] 24fr [vcpu-s] var(--c-vcpu) [vcpu-e] 23fr [ram-l] 24fr
    [ram-s] var(--c-ram) [ram-e] 24fr [ram-r] 23fr [disk-s] var(--c-disk) [disk-e] 23fr [net-l] 24fr [net-s] var(--c-net) [net-e] 24fr [net-r] 24fr
    [ch-s] var(--c-ch) [ch-e] 23fr [price-l] 24fr [price-s] var(--c-price) [price-e] 24fr [price-r] 23fr [go-s] var(--c-go) [go-e];
  position: relative; isolation: isolate; margin-top: 48px; }
.v-pt__bands, .v-pt__head, .v-plan { display: grid; grid-template-columns: var(--cols); }
/* bands: white 3 % r12, from 20 px above the column labels to the end of the rows; under the rows' tint */
.v-pt__bands { position: absolute; z-index: -1; top: -20px; bottom: 0; left: 0; right: 0; pointer-events: none; }
.v-pt__band { grid-row: 1; border-radius: 12px; background: var(--hl-03); }
.v-pt__band--cpu { grid-column: cpu-l / cpu-r; } .v-pt__band--ram { grid-column: ram-l / ram-r; }
.v-pt__band--net { grid-column: net-l / net-r; } .v-pt__band--price { grid-column: price-l / price-r; }
.v-pt__head { height: 28px; }
.v-pt__th { font-family: var(--mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); white-space: nowrap; }
.v-pt__th--name { grid-column: name-s / name-e; } .v-pt__th--cpu { grid-column: cpu-s / cpu-e; } .v-pt__th--vcpu { grid-column: vcpu-s / vcpu-e; }
.v-pt__th--ram { grid-column: ram-s / ram-e; } .v-pt__th--disk { grid-column: disk-s / disk-e; } .v-pt__th--net { grid-column: net-s / net-e; }
.v-pt__th--ch { grid-column: ch-s / ch-e; } .v-pt__th--price { grid-column: price-s / go-e; }
/* rows: 96 px, a white 8 % hairline on top, the rows' tint white 2.5 % */
.v-plan { position: relative; height: 96px; border-top: 1px solid var(--hl-08); background: var(--hl-025); align-items: start; }
.v-plan > * { min-width: 0; }
/* the popular plan: an opaque blue-black row (#010A16 + the 2.5 % tint) edge to edge, under the bands */
.v-plan--hit { background: none; }
.v-plan--hit::before { content: ''; position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background: rgb(7.35, 16.13, 27.83); pointer-events: none; }
.v-plan__lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-plan__name { grid-column: name-s / name-e; display: flex; align-items: flex-start; }
.v-plan__logo { flex: none; width: 36px; height: 24px; margin-top: 35px; }
.v-plan__title { margin: 33px 0 0 12px; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; color: var(--t1); white-space: nowrap; }
.v-hit { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 22px; margin: 36px 0 0 14px; padding: 0 10px 0 8px; border-radius: 11px;
  border: 1px solid rgba(96, 165, 250, 0.6); color: var(--acc-line);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -0.002em; white-space: nowrap; }
.v-plan__c { display: flex; align-items: flex-start; }
.v-plan__v { display: block; font-size: 16px; line-height: 22px; letter-spacing: -0.005em; color: var(--t1); white-space: nowrap; }
.v-plan__cpu { grid-column: cpu-s / cpu-e; } .v-plan__cpu .v-plan__v { margin-top: 35px; }
.v-plan__vcpu { grid-column: vcpu-s / vcpu-e; } .v-plan__ram { grid-column: ram-s / ram-e; } .v-plan__disk { grid-column: disk-s / disk-e; }
.v-plan__sv { display: flex; align-items: flex-start; gap: 10px; }
.v-sp { flex: none; display: block; }
.v-sp--cpu { width: 37px; height: 37px; margin-top: 27px; } .v-sp--ram { width: 48px; height: 24px; margin-top: 34px; } .v-sp--disk { width: 40px; height: 29px; margin-top: 31px; }
.v-plan__vcpu .v-plan__v { margin-top: 35px; }
.v-plan__vv { display: block; margin-top: 25px; }
.v-plan__vv .v-plan__v { margin: 0; }
.v-plan__note { display: block; margin-top: 2px; font-size: 12px; line-height: 15px; letter-spacing: -0.002em; color: var(--t3); white-space: nowrap; }
.v-plan__net { grid-column: net-s / net-e; } .v-plan__net .v-plan__v { margin-top: 35px; }
.v-plan__ch { grid-column: ch-s / ch-e; } .v-plan__ch .v-plan__v { margin-top: 36px; font-size: 15px; line-height: 20px; letter-spacing: -0.004em; color: var(--t3); }
.v-plan__price { grid-column: price-s / price-e; margin-top: 29px; font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--t1); white-space: nowrap; }
.v-plan__per { font-size: 14px; font-weight: 400; letter-spacing: -0.003em; color: var(--t2); }
.v-plan__go { grid-column: go-s / go-e; display: flex; justify-content: flex-end; margin-top: 27px; }
.v-plan__btn { --h: 40px; --px: 20px; --bg: rgba(255, 255, 255, 0.07); --bg-h: rgba(255, 255, 255, 0.11); --bg-a: rgba(255, 255, 255, 0.06); --fg: var(--t1);
  font-size: 14px; line-height: 20px; }
.v-plan__btn--hit { --bg: var(--acc); --bg-h: var(--acc-hover); --bg-a: var(--acc-active); }

/* =================================================================================================== 4. included */
.v-inc > .wrap { padding-top: 200px; padding-bottom: 200px; }
/* the keynote stage: one black panel, four columns and three gaps as in Figma (288 · 107 · 352 · 106 · 280 · 107 · 280 at
   1728 — whole pixels, so the renders are not resampled). Narrower: the gaps go down to 32, then the last two columns give
   way (never under «SLA 99.5%» / 150); the figures keep 40 px; the renders and the panel's padding scale with --u */
.v-inc__stage { display: grid; grid-template-columns: 288px minmax(32px, 107fr) 352px minmax(32px, 106fr) minmax(200px, 280px) minmax(32px, 107fr) minmax(150px, 280px);
  margin-top: 64px; padding: calc(56 * var(--u)); border-radius: 28px; background: var(--black); }
.v-inc__item { min-width: 0; }
.v-inc__item--traffic { grid-column: 1; --iw: 288; --ih: 191; --it: 10; } .v-inc__item--res { grid-column: 3; --iw: 234; --ih: 210; }
.v-inc__item--sla { grid-column: 5; --iw: 248; --ih: 210; } .v-inc__item--support { grid-column: 7; --iw: 170; --ih: 210; }
.v-inc__r { display: flex; justify-content: center; align-items: flex-start; height: calc(210 * var(--u)); }
.v-inc__r img { display: block; flex: none; width: calc(var(--iw) * var(--u)); height: calc(var(--ih) * var(--u)); margin-top: calc(var(--it, 0) * var(--u)); }
.v-inc__txt { margin-top: 40px; }
.v-inc__lbl { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.002em; color: var(--t2); white-space: nowrap; }
.v-inc__fig { margin-top: 8px; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.022em; color: var(--t1); white-space: nowrap; }
.v-inc__d { width: 0; min-width: 100%; margin-top: 16px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }
/* two wide cards: the text and the action on the left, the object on the right (Figma 340 + 12 + 368). Narrower, the text
   column keeps its 340 px (the Figma line breaks; «Защита от DDoS-атак» needs 338) while the object column has at least
   280 × --u, then the text gives way; the object = its Figma size × --u, never wider than its column */
.v-inc__wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.v-wide { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(calc(280 * var(--u)), 1fr); grid-template-rows: 1fr auto;
  column-gap: calc(12 * var(--u)); min-height: 420px; padding: 48px calc(36 * var(--u)) 48px 48px; border-radius: 28px; background: var(--black); overflow: hidden; }
.v-wide--panel, .v-wide--ddos { --iw: 368; }
.v-wide__txt { grid-column: 1; grid-row: 1; }
.v-wide__h { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.018em; color: var(--t1); }
.v-wide__d { width: calc(100% - 10px); margin-top: 16px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }
.v-wide__btn { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; letter-spacing: -0.005em; }
.v-wide__r { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; justify-content: flex-end; margin: -12px 0; container-type: inline-size; }
.v-wide__r img { display: block; flex: none; width: min(calc(var(--iw) * var(--u)), 100cqw); height: auto; }

/* =================================================================================================== 5. locations */
.v-loc > .wrap { padding-top: 128px; padding-bottom: 180px; }
.v-loc__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.v-loc__ph { aspect-ratio: 390 / 242; border-radius: 24px; overflow: hidden; background: var(--grey-block); }
.v-loc__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v-loc__name { margin: 20px 0 0 -1px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.009em; color: var(--t1); white-space: nowrap; }
.v-loc__meta { display: flex; align-items: flex-start; gap: 8px; margin-top: 5px; font-size: 15px; line-height: 20px; letter-spacing: -0.003em; color: var(--t3); }
.v-loc__flag { margin-top: 4px; }

/* =================================================================================================== 1280 … 1479 */
/* The composition holds; what does not fit any more wraps inside its own cell, one step at a time (every step keeps the gaps
   between the table's cells ≥ 16 px where it can):
   ≤ 1479  the «Процессор» cell takes two lines («Intel Core» / «i9-13900»), the column 71 px;
   ≤ 1409  the «/ мес» goes under the price (96 px) and the small renders + the maker logo scale with --u */
@media (max-width: 1479px) and (min-width: 1280px) {
  .v-pt { --c-cpu: 71px; }
  .v-plan__cpu .v-plan__v { margin-top: 24px; }
  .v-plan__cpu .nowrap { display: block; }
}
@media (max-width: 1409px) and (min-width: 1280px) {
  .v-pt { --c-name: calc(48 * var(--u) + 250px); --c-vcpu: calc(47 * var(--u) + 10px); --c-ram: calc(58 * var(--u) + 106px); --c-disk: calc(50 * var(--u) + 106px); --c-price: 96px; }
  .v-plan__logo { width: calc(36 * var(--u)); height: calc(24 * var(--u)); margin-top: calc(47px - 12 * var(--u)); }
  .v-plan__title { margin-left: calc(12 * var(--u)); }
  .v-plan__sv { gap: calc(10 * var(--u)); }
  .v-sp--cpu { width: calc(37 * var(--u)); height: calc(37 * var(--u)); margin-top: calc(45.5px - 18.5 * var(--u)); }
  .v-sp--ram { width: calc(48 * var(--u)); height: calc(24 * var(--u)); margin-top: calc(46px - 12 * var(--u)); }
  .v-sp--disk { width: calc(40 * var(--u)); height: calc(29 * var(--u)); margin-top: calc(45.5px - 14.5 * var(--u)); }
  .v-plan__price { margin-top: 20px; }
  .v-plan__per { display: block; line-height: 18px; }
}
/* the CPU cards: «64 ядра, 128 потоков» + «NVMe PCIe 4.0» need 348 px, the card has 299…351 — the cores value breaks after
   its comma in all three cards */
@media (max-width: 1439px) and (min-width: 1280px) {
  .v-cpu__specs { grid-template-columns: minmax(132px, 224px) minmax(135px, 1fr); }
  .v-cpu__cores > span { display: block; }
}

/* =================================================================================================== below 1280: re-flow */
@media (max-width: 1279px) {
  .v-hero { --hy: var(--mbar-h); }
  @media (min-width: 1180px) { .v-hero { --hy: var(--header-h); } }
  /* CPU lines: stacked full-width cards, the four figures in a row */
  .v-cpu > .wrap { padding-top: 168px; padding-bottom: 168px; }
  .v-cpu__list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; }
  .v-cpu__card { display: grid; grid-template-columns: minmax(0, 1fr); padding: 32px 40px 36px; border-radius: 32px; }
  .v-cpu__specs { grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(135px, 1fr)); column-gap: 24px; }
  /* plans: the phone's plan cards, two per row (one per row below 840, see below) */
  .v-plans > .wrap { padding-top: 104px; padding-bottom: 104px; }
  .v-plans__bar { flex-wrap: wrap; gap: 12px; margin-top: 40px; }
  .v-pt { margin-top: 28px; }
  .v-pt__bands, .v-pt__head { display: none; }
  .v-pt__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  /* included: the stage 2 × 2 (the renders at their Figma size), the wide cards one per row */
  .v-inc > .wrap { padding-top: 168px; padding-bottom: 168px; }
  .v-inc__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 56px; margin-top: 48px; padding: 48px 40px; }
  .v-inc__item { grid-column: auto; width: 100%; max-width: 352px; justify-self: center; }
  .v-inc__r { height: 210px; }
  .v-inc__r img { width: calc(var(--iw) * 1px); height: calc(var(--ih) * 1px); margin-top: calc(var(--it, 0) * 1px); }
  .v-inc__wide { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .v-wide { grid-template-columns: 340px minmax(0, 1fr); column-gap: 12px; padding: 48px 36px 48px 48px; }
  .v-wide__r img { width: min(368px, 100cqw); }
  /* locations */
  .v-loc > .wrap { padding-top: 104px; padding-bottom: 152px; }
  .v-loc__list { margin-top: 48px; }
}
@media (max-width: 1023px) {
  .v-loc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .v-pt__rows { gap: 12px; }
}
@media (max-width: 1279px) { .v-head, .v-sub { text-wrap: balance; } }
@media (max-width: 1023px) {
  /* the 2 × 2 stage cells are ~290 px: the figures step down so «Без оверселлинга» keeps one line */
  .v-inc__fig { font-size: 32px; line-height: 38px; }
  .v-inc__item--traffic .v-fn--14 { top: 2px; }
  .v-inc__txt { margin-top: 32px; }
}
@media (max-width: 899px) {
  .v-cpu__specs { grid-template-columns: minmax(200px, 1fr) minmax(135px, 1fr); }
  .v-head { font-size: 48px; line-height: 52px; }
}
/* narrow tablets: the wide cards put the object above the text (as on the phone) */
@media (max-width: 719px) and (min-width: 601px) {
  .v-wide { display: flex; flex-direction: column; height: auto; padding: 36px 40px 40px; }
  .v-wide__r { order: -1; justify-content: center; height: 240px; margin: 0 0 24px; container-type: normal; }
  .v-wide__r img { width: auto; height: 240px; }
  .v-wide--panel .v-wide__r img { width: 279px; } .v-wide--ddos .v-wide__r img { width: 273px; }
  .v-wide__d { width: 100%; }
  .v-wide__btn { margin-top: 28px; }
}

/* ---- the plan card (tablet and phone): index-m «Тариф …» — r20, 20 px inside, name row, a 2 × 3 grid of mono labels and
   values (spec renders before vCPU / ОЗУ / Диск), the price and «Выбрать» */
@media (max-width: 1279px) {
  .v-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; height: auto; padding: 20px 20px 21px;
    border: 0; border-radius: 20px; background: var(--graphite); align-items: start;
    grid-template-areas: "name name" "cpu vcpu" "ram disk" "net ch" "price go"; }
  .v-plan--hit { background: #151B23; }
  .v-plan--hit::before { content: none; }
  .v-plan__name { grid-area: name; align-items: center; height: 30px; }
  .v-plan__logo { width: 33px; height: 22px; margin: 0; }
  .v-plan__title { margin: 0 0 0 10px; font-size: 22px; line-height: 30px; letter-spacing: -0.014em; }
  .v-hit { margin: 0 0 0 auto; }
  .v-plan__c { flex-direction: column; margin-top: 20px; }
  .v-plan__cpu { grid-area: cpu; } .v-plan__vcpu { grid-area: vcpu; } .v-plan__ram { grid-area: ram; margin-top: 18px; } .v-plan__disk { grid-area: disk; margin-top: 18px; }
  .v-plan__net { grid-area: net; margin-top: 18px; } .v-plan__ch { grid-area: ch; margin-top: 18px; }
  .v-plan__lbl { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--t3); }
  .v-plan__c .v-plan__v, .v-plan__cpu .v-plan__v, .v-plan__vcpu .v-plan__v, .v-plan__net .v-plan__v { margin-top: 8px; }
  .v-plan__ch .v-plan__v { margin-top: 8px; font-size: 16px; line-height: 22px; letter-spacing: -0.005em; }
  .v-plan__sv { gap: 8px; margin-top: 8px; }
  .v-plan__sv .v-plan__v { margin-top: 0 !important; }
  .v-sp--cpu { width: 30px; height: 30px; margin: -4px 0; } .v-sp--ram { width: 38px; height: 20px; margin-top: 1px; } .v-sp--disk { width: 32px; height: 23px; margin-top: -1px; }
  .v-plan__vv { margin-top: 0; }
  .v-plan__note { margin-top: 1px; font-size: 13px; line-height: 16px; }
  .v-fn { font-size: 12px; }
  .v-plan__price { grid-area: price; align-self: start; margin-top: 27px; }
  .v-plan__go { grid-area: go; margin-top: 21px; }
  .v-plan__btn { --h: 44px; --px: 24px; font-size: 15px; line-height: 20px; }
  .v-plan__btn .tw { width: calc(var(--twm) * 1px); }
  .v-plan__btn { --bg: rgba(255, 255, 255, 0.08); --bg-h: rgba(255, 255, 255, 0.12); --bg-a: rgba(255, 255, 255, 0.07); }
  .v-plan__btn--hit { --bg: var(--acc); --bg-h: var(--acc-hover); --bg-a: var(--acc-active); }
}
/* 601 … 839: two cards per row would be narrower than the 350 px phone card (the notes would run into the next column), so
   one card per row, one size wider: the six specs in three columns grouped like the desktop table's bands (processor + vCPU,
   memory + disk, traffic + channel); every column at least as wide as its longest line */
@media (max-width: 839px) and (min-width: 601px) {
  .v-pt__rows { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .v-plan { grid-template-columns: minmax(142px, 1fr) minmax(161px, 1fr) minmax(123px, 1fr); column-gap: 24px;
    grid-template-areas: "name name name" "cpu ram net" "vcpu disk ch" "price price go"; }
  .v-plan__cpu, .v-plan__ram, .v-plan__net { margin-top: 20px; }
  .v-plan__vcpu, .v-plan__disk, .v-plan__ch { margin-top: 18px; }
  /* ОЗУ and Диск share a column here: the disk render takes the RAM render's 38 px slot, so both values start on one line */
  .v-sp--disk { margin-left: 3px; margin-right: 3px; }
}

/* ≤ 767: the keynote stage turns into the main page's phone cards — four small black cards, the text on the left, the object
   on the right (index-m «Безлимитный трафик» / «SLA 99.5%» …); on narrow tablets the same cards one size up */
@media (max-width: 767px) {
  /* included: the main page's phone cards — four small black cards (text left, the object right), two large ones */
  .v-inc__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 48px; padding: 0; border-radius: 0; background: none; }
  .v-inc__item { position: relative; display: flex; align-items: center; max-width: none; min-height: 178px; padding: 24px 136px 24px 24px;
    border-radius: 24px; background: var(--black); }
  .v-inc__r { position: absolute; top: 0; bottom: 0; right: 16px; width: 112px; height: auto; align-items: center; }
  .v-inc__r img { height: auto; margin-top: 0; }
  .v-inc__item--traffic img { width: 112px; } .v-inc__item--res img { width: 112px; } .v-inc__item--sla img { width: 112px; } .v-inc__item--support img { width: 91px; }
  .v-inc__txt { flex: 1; min-width: 0; margin: 0; }
  .v-inc__d { width: auto; min-width: 0; }
  .v-inc__lbl { font-size: 13px; line-height: 18px; white-space: normal; }
  .v-inc__fig { margin-top: 4px; font-size: 20px; line-height: 26px; letter-spacing: -0.012em; white-space: nowrap; }
  .v-fn--14 { top: 2px; margin-left: 4px; font-size: 12px; line-height: 16px; }
  .v-inc__d { margin-top: 8px; font-size: 15px; line-height: 22px; letter-spacing: -0.003em; }
}
@media (max-width: 767px) and (min-width: 601px) {
  .v-inc__item { min-height: 210px; padding: 32px 216px 32px 32px; border-radius: 28px; }
  .v-inc__r { right: 32px; width: 160px; }
  .v-inc__item--traffic img, .v-inc__item--res img, .v-inc__item--sla img { width: 160px; } .v-inc__item--support img { width: 130px; }
  .v-inc__lbl { font-size: 15px; line-height: 20px; }
  .v-inc__fig { margin-top: 6px; font-size: 28px; line-height: 34px; letter-spacing: -0.018em; }
  .v-fn--14 { top: 4px; font-size: 13px; }
  .v-inc__d { margin-top: 10px; }
}

/* =================================================================================================== phone (≤ 600) */
@media (max-width: 600px) {
  .v-head { width: calc(100% + 8px); margin-left: -4px; font-size: 32px; line-height: 36px; letter-spacing: -0.028em; text-wrap: balance; }
  .v-sub { font-size: 16px; line-height: 24px; letter-spacing: -0.004em; text-wrap: balance; }
  .v-fn { font-size: 12px; line-height: 14px; }

  /* first screen */
  .v-hero { --hy: var(--mbar-h); }
  .v-hero .crumbs--hero { top: calc(var(--hy) + 24px); }
  .v-hero__in { padding: calc(var(--hy) + 56px) var(--M) 72px; }
  .v-hero__h { font-size: 38px; line-height: 42px; letter-spacing: -0.045em; }
  .v-hero__sub { width: 343px; margin-top: 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; text-wrap: balance; }
  .v-hero__act { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .v-hero__price { order: -1; justify-content: center; align-items: baseline; margin: 0 0 20px; }
  .v-hero__from { width: auto; margin: 0; font-size: 28px; line-height: 32px; letter-spacing: -0.016em; }
  .v-hero__per { width: auto; margin: 0 0 0 8px; font-size: 16px; line-height: 22px; letter-spacing: -0.004em; }
  .v-hero__btn { display: flex; width: 100%; --h: 48px; --px: 18px; font-size: 15px; line-height: 22px; letter-spacing: -0.004em; }

  /* CPU lines: stacked grey cards */
  .v-cpu > .wrap { padding-top: 104px; padding-bottom: 104px; }
  .v-cpu__list { gap: 12px; margin-top: 32px; }
  .v-cpu__card { padding: 24px 24px 26px; border-radius: 24px; }
  .v-cpu__logo--int { width: 36px; height: 24px; margin-bottom: 20px; }
  .v-cpu__logo--ryz, .v-cpu__logo--epy { width: 22px; height: 22px; margin: 1px 0 21px; }
  .v-cpu__name { font-size: 22px; line-height: 28px; letter-spacing: -0.014em; }
  .v-cpu__specs { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 16px; margin-top: 20px; }
  .v-cpu__spec dd { margin-top: 4px; font-size: 17px; line-height: 24px; letter-spacing: -0.006em; }
  .v-cpu__cores > span { display: block; }

  /* plans: the phone's «Тарифы · 390» without its product strip */
  .v-plans > .wrap { display: flex; flex-direction: column; padding-top: 72px; padding-bottom: 72px; }
  .v-plans__bar { display: contents; }
  .v-lines-scroll { order: 1; display: flex; margin: 32px calc(-1 * var(--M)) 0 0; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v-lines-scroll::-webkit-scrollbar { display: none; }
  .v-lines-scroll::after { content: ''; flex: 0 0 var(--M); }
  .v-lines { flex: none; height: 52px; border-radius: 12px; }
  .v-line { height: 44px; border-radius: 10px; font-size: 15px; }
  .v-line__name .tw { width: calc(var(--twm) * 1px); }
  .v-hw { order: 2; margin-top: 20px; }
  /* index-m 101:147708 breaks before «память» (its line 5 is 0.02 px over the box there; here 0.02 px under): half a pixel
     after the word reproduces the Figma lines in both engines */
  .v-hw__op { margin-right: 0.5px; }
  .v-dc { order: 3; display: flex; height: 48px; margin-top: 20px; padding: 0 16px; border-radius: 12px; }
  .v-dc__lbl { flex: 1; font-size: 15px; }
  .v-dc__lbl .tw { width: auto; }
  .v-dc__flag { --sz: 18 !important; }
  .v-dc__name { min-width: 0; font-size: 15px; }
  .v-dc__chev { --sz: 14; }
  .v-line-panel { order: 4; }
  .v-pt { margin-top: 28px; }
  .v-pt__rows { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .v-inc > .wrap { padding-top: 104px; padding-bottom: 104px; }
  .v-inc__stage { margin-top: 32px; }
  .v-inc__wide { gap: 12px; margin-top: 12px; }
  .v-wide { display: flex; flex-direction: column; height: auto; padding: 24px 24px 28px; border-radius: 24px; }
  .v-wide__r { order: -1; justify-content: center; height: 210px; margin: 0; }
  .v-wide__r img { width: auto; height: 210px; max-width: none; }
  .v-wide--panel .v-wide__r img { width: 244px; } .v-wide--ddos .v-wide__r img { width: 239px; }
  .v-wide__txt { margin-top: 18px; }
  .v-wide__h { font-size: 24px; line-height: 30px; letter-spacing: -0.016em; }
  .v-wide__d { width: auto; margin-top: 10px; letter-spacing: -0.003em; }
  .v-wide__btn { margin-top: 20px; --px: 22px; }

  /* locations: the phone's 2-column photo grid */
  .v-loc > .wrap { padding-top: 72px; padding-bottom: 104px; }
  .v-loc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 22px; margin-top: 32px; }
  .v-loc__ph { aspect-ratio: 169 / 115; border-radius: 16px; }
  .v-loc__name { margin: 12px 0 0; font-size: 15px; line-height: 20px; letter-spacing: -0.006em; white-space: normal; }
  .v-loc__meta { gap: 6px; margin-top: 4px; font-size: 13px; line-height: 18px; letter-spacing: -0.002em; }
  .v-loc__flag { --sz: 12 !important; margin-top: 3px; }
}

/* =================================================================================================== narrow phones (< 390) */
@media (max-width: 389px) {
  /* CPU cards: the labels may wrap, the second column takes what its values need */
  .v-cpu__specs { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
  .v-cpu__spec dt { white-space: normal; }
  .v-cpu__spec dd { font-size: 16px; line-height: 22px; }
  /* plan cards: the CPU name may wrap; the notes start under the spec render; the price above a full-width «Выбрать» */
  .v-plan__cpu .v-plan__v { white-space: normal; }
  .v-plan__sv { flex-wrap: wrap; row-gap: 1px; }
  .v-plan__vv { display: contents; }
  .v-plan__note { flex: 0 0 100%; margin-top: 0; }
  /* included small cards: a smaller object */
  .v-inc__item { padding: 22px 104px 22px 20px; }
  .v-inc__r { right: 12px; width: 84px; }
  .v-inc__item--traffic img, .v-inc__item--res img, .v-inc__item--sla img { width: 84px; } .v-inc__item--support img { width: 70px; }
}
/* ≤ 370: «Raptor 4/8» and the «Хит продаж» badge no longer fit one row with a 12 px gap — the badge goes under the name */
@media (max-width: 370px) {
  .v-plan--hit .v-plan__name { flex-wrap: wrap; height: auto; }
  .v-plan--hit .v-hit { margin: 6px 0 2px 43px; }
}
@media (max-width: 359px) {
  /* the smallest phones: the price above a full-width «Выбрать» */
  .v-plan { padding: 18px 16px; column-gap: 12px; grid-template-areas: "name name" "cpu vcpu" "ram disk" "net ch" "price price" "go go"; }
  .v-plan__price { margin-top: 22px; }
  .v-plan__go { margin-top: 14px; }
  .v-plan__go .btn { flex: 1; }
  .v-hit { padding: 0 8px 0 6px; }
}
