/* The site's own rules over the owner's styles (scripts/public-page-import.py, SITE_CSS). Linked last in every page's head. */

/* A link to a page the site does not have yet (links.json `placeholders` null, `dead_hrefs`): the owner's text and classes
   stay, but it is not clickable (owner order 2026-11-07). */
a[data-vds-dead]{cursor:default;pointer-events:none}

/* Home's processor lines (Intel, AMD EPYC) switch through the owner's [data-switch] (site.js), which sets aria-selected; his
   index.css draws the chosen line by the class .is-on, so home.edits.json drops that class and the same look follows
   aria-selected here. */
.idx-pricing .line[aria-selected="true"]{background:rgba(255,255,255,.11);color:var(--t1)}
.idx-pricing .line[aria-selected="true"]:focus-visible{background:rgba(255,255,255,.15)}
.idx-pricing .line[aria-selected="true"] .line__flags{--ring:#272727;opacity:1}
.idx-pricing .line[aria-selected="false"]{cursor:pointer}

/* /vds sells three processor lines since Frankfurt opened (owner 2026-11-19): vds.edits.json puts the Ryzen card back, so
   the owner's three-column card grid (vps.css) stands as he drew it.

   /vds draws one data-centre box beside the line switch (vps.css .v-dc); the home page draws one per panel. The box names
   the location the chosen line is sold in, as the home page's panels do (owner 2026-11-19, «ДЦ везде Москва показывает»):
   vds.edits.json gives the bar a Moscow box (.v-dc--msk) and a Frankfurt one (.v-dc--fra), and the switch's own
   aria-selected (site.js [data-switch]) shows one of them. A browser without :has() keeps the Moscow box, as before. */
.v-plans .v-dc--fra{display:none}
.v-plans:has(#v-tab-raphael[aria-selected="true"]) .v-dc--msk{display:none}
.v-plans:has(#v-tab-raphael[aria-selected="true"]) .v-dc--fra{display:inline-flex}
@media (max-width:600px){.v-plans:has(#v-tab-raphael[aria-selected="true"]) .v-dc--fra{display:flex}}
/* A /vds line panel carries its hardware line and its performance note; the second sits under the first, as on the home
   page (home.edits.json: .plans__hw + .plans__hw). */
.v-hw + .v-hw{margin-top:8px}

/* A document's contents panel (offer.css) is sticky from 1024 px and was built never to scroll on its own; with the 20+ parts
   of a real document it is taller than the window, so its end stayed under the window's bottom edge for good (owner
   2026-11-07). From 1024 px it now stops at the window's bottom and scrolls inside when it does not fit. */
@media (min-width:1024px){
  .of-toc{max-height:calc(100vh - var(--toc-top, calc(var(--of-hdr) + 32px)) - 24px);max-height:calc(100dvh - var(--toc-top, calc(var(--of-hdr) + 32px)) - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
}

/* A tariff row's RAM and disk cells (home's table, /vds rows) centre their icon and value on the row's value line
   whatever the value holds. The owner's styles place «512 МиБ» + «Без оверселлинга» by a fixed top margin made for
   two lines, so a value without the note - the EPYC rows, which sell RAM and disk past the hardware (owner
   2026-11-08) - sat 10 px above its icon. From 1280 px (the table layouts; below it the rows re-flow and already
   centre) the cell is the 46 px line the other cells sit on, and icon and value are centred on it. */
@media (min-width:1280px){
  .ptab .c-ram .cin,.ptab .c-disk .cin{align-items:center;height:calc(92 * var(--tp));margin-top:0}
  .ptab .spec--ram,.ptab .spec--disk{margin-top:0}
  .v-plan__ram .v-plan__sv,.v-plan__disk .v-plan__sv{align-items:center;height:92px}
  .v-plan__ram .v-sp,.v-plan__disk .v-sp,.v-plan__ram .v-plan__vv,.v-plan__disk .v-plan__vv{margin-top:0}
}

/* >>> ddos-how links (owner 2026-11-08) */
/* Links to /ddos-protection/how where a page speaks of our own protection (owner 2026-11-08). In running text the phrase
   keeps the text's size and reads as a link by its brighter colour and a quiet underline that brightens on hover; on
   /ddos-protection a line under the hero's buttons names the page, and the VDS.RENT card's link mirrors the partner
   card's mineguard.pro link. */
.how-link{color:var(--t1);text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:.22em;
  text-decoration-color:rgba(245,245,247,.32);transition:text-decoration-color var(--t-fast) var(--ease)}
.how-link:focus-visible{text-decoration-color:var(--t1)}
@media (hover:hover) and (pointer:fine){.how-link:hover{text-decoration-color:var(--t1)}}
.dd-hero__how{max-width:820px;margin-top:28px;font-size:17px;line-height:26px;letter-spacing:-.004em;color:var(--t2);text-wrap:balance}
.dd-hero__how .link-arrow{display:inline-flex;vertical-align:top}
.dd-case__how{gap:6px}
.dd-case__how .i{transition:transform var(--t-med) var(--ease-out)}
.dd-case__how:focus-visible .i{transform:translateX(2px)}
@media (hover:hover) and (pointer:fine){.dd-case__how:hover .i{transform:translateX(2px)}}
@media (max-width:600px){.dd-hero__how{margin-top:20px;font-size:15px;line-height:22px}}
/* <<< ddos-how links */

/* /status: a day the service worked is green, not the frame's neutral grey (owner 2026-11-08 «где простоя нет, надо чтобы
   зелёное было, а не серое; оно зелёное только при наводке»). The hovered working day is one step lighter; a day with no
   data stays dim and the coloured days (degraded, partial, outage, maintenance) keep their colours, hovered or not. */
.st-hero,.st-body,.st-subscribe{--day-ok:#3CCB7F}
.st-bar.is-hot:not(.is-nd):not(.is-deg):not(.is-part):not(.is-out):not(.is-maint){background:#7BE3AC}

/* >>> rental terms (owner 2026-11-16) */
/* Servers for one day or one week (owner 2026-11-16: «на сайте сделай красиво, не испорть дизайн»). /vds carries the section
   «Сервер на сутки или неделю» after the monthly tariffs (vds.edits.json): the page's own pieces - the centred head, grey
   cards as the CPU cards (vps.css .v-cpu__card), the line switch and a table drawn by the monthly table's rules (.v-pt,
   .v-plan), whose net/channel/price/button columns become a day price and button and a week price and button. The section
   is graphite after the black tariffs, so the switch's flag rings take the graphite segment's colours. Home carries a
   compact card under its tariff table (home.edits.json) linking to it. */
.v-rent > .wrap { padding-top: 200px; padding-bottom: var(--join); }
.v-rent__sub { width: 820px; max-width: 100%; margin-inline: auto; text-wrap: balance; }
.v-rent__terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.v-rent__term { display: flex; flex-direction: column; padding: 40px; border-radius: 40px; background: var(--grey-block); }
.v-rent__k { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t3); }
.v-rent__fig { margin-top: 16px; font-size: 48px; line-height: 54px; font-weight: 600; letter-spacing: -0.03em; color: var(--t1); white-space: nowrap; }
.v-rent__of { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--t2); }
.v-rent__per { font-size: 19px; font-weight: 400; letter-spacing: -0.005em; color: var(--t2); }
.v-rent__d { margin-top: 12px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
.v-rent__note { width: 920px; max-width: 100%; margin: 32px auto 0; font-size: 15px; line-height: 22px; letter-spacing: -0.004em;
  text-align: center; text-wrap: balance; color: var(--t3); }
.v-rent__bar { margin-top: 72px; }
.v-rent .v-line__flag { box-shadow: 0 0 0 2px #222223; }
.v-rent .v-line[aria-selected="true"] .v-line__flag { box-shadow: 0 0 0 2px #3A3A3B; }
/* the table: the monthly table's columns up to the disk (their widths follow vps.css's steps), then a day price, its
   button, a week price, its button - the faint bands over processor, memory, the day price and the week price, as the
   monthly table bands processor, memory, traffic and price. No «Хит продаж» here, so the name column is narrower */
.v-rent .v-rt { --c-rname: 230px; --c-day: 104px; --c-dgo: 101px; --c-week: 134px; --c-wgo: 101px;
  --cols: [name-s] var(--c-rname) [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 [day-l] 24fr [day-s] var(--c-day) [day-e] 24fr
    [day-r] 24fr [dgo-s] var(--c-dgo) [dgo-e] 23fr [week-l] 24fr [week-s] var(--c-week) [week-e] 24fr [week-r] 23fr [wgo-s] var(--c-wgo) [wgo-e]; }
.v-rt__band--cpu { grid-column: cpu-l / cpu-r; } .v-rt__band--ram { grid-column: ram-l / ram-r; }
.v-rt__band--day { grid-column: day-l / day-r; } .v-rt__band--week { grid-column: week-l / week-r; }
.v-rt__th--day { grid-column: day-s / dgo-e; } .v-rt__th--week { grid-column: week-s / wgo-e; }
.v-rt__price { grid-column: day-s / day-e; margin-top: 29px; font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--t1); white-space: nowrap; }
.v-rt__price--week { grid-column: week-s / week-e; }
.v-rt__go { grid-column: dgo-s / dgo-e; display: flex; justify-content: flex-end; margin-top: 27px; }
.v-rt__go--week { grid-column: wgo-s / wgo-e; }
@media (max-width: 1409px) and (min-width: 1280px) {
  .v-rent .v-rt { --c-rname: 210px; --c-day: 90px; --c-week: 110px; }
}

/* below 1280: the monthly plan cards (vps.css) on the grey of the CPU cards; under the four specs the two terms side by
   side, each its label, price and a full-width «Выбрать» */
@media (max-width: 1279px) {
  .v-rent > .wrap { padding-top: 168px; }
  .v-rent__terms { gap: 16px; margin-top: 48px; }
  .v-rent__term { padding: 32px 36px 36px; border-radius: 32px; }
  .v-rent__fig { font-size: 40px; line-height: 46px; }
  .v-rent__of { font-size: 28px; }
  .v-rent__bar { margin-top: 56px; }
  .v-rent .v-rt { margin-top: 28px; }
  .v-rent .v-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--grey-block);
    grid-template-areas: "name name" "cpu vcpu" "ram disk" "day week" "dgo wgo"; }
  .v-rent .v-plan__cpu, .v-rent .v-plan__vcpu { margin-top: 20px; }
  .v-rent .v-plan__ram, .v-rent .v-plan__disk { margin-top: 18px; }
  .v-rt__price { grid-area: day; display: flex; flex-direction: column; gap: 6px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--hl-08); }
  .v-rt__price--week { grid-area: week; }
  .v-rt__go { grid-area: dgo; display: block; margin-top: 14px; }
  .v-rt__go--week { grid-area: wgo; }
  .v-rt__go .v-plan__btn { display: flex; width: 100%; }
}
@media (max-width: 839px) and (min-width: 601px) {
  .v-rent .v-sp--disk { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .v-rent > .wrap { padding-top: 104px; padding-bottom: 0; }
  .v-rent__terms { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .v-rent__term { padding: 24px 24px 26px; border-radius: 24px; }
  .v-rent__fig { margin-top: 12px; font-size: 34px; line-height: 40px; letter-spacing: -0.028em; }
  .v-rent__of { font-size: 24px; }
  .v-rent__per { font-size: 16px; }
  .v-rent__d { margin-top: 8px; font-size: 15px; line-height: 22px; letter-spacing: -0.003em; }
  .v-rent__note { margin-top: 20px; font-size: 14px; line-height: 20px; text-align: left; }
  /* vps.css makes the bar display: contents here and gives the switch its own 32 px; the bar's margin goes with it */
  .v-rent .v-rt { margin-top: 20px; }
  .v-rt__price { font-size: 24px; line-height: 30px; }
}

/* home: a compact card under the tariff table - the lead with its link to /vds#rent, then each term with the two lines'
   starting prices; graphite on the black section, as the site's grey blocks sit on black */
.rent-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px;
  margin-top: 64px; padding: 48px; border-radius: 40px; background: var(--graphite); }
.rent-card__lead { grid-column: 1; grid-row: 1; }
.rent-card__go { grid-column: 1; grid-row: 2; align-self: end; padding-top: 28px; }
.rent-card__term { grid-row: 1 / 3; padding-left: 48px; border-left: 1px solid var(--hl-08); }
.rent-card__term--day { grid-column: 2; } .rent-card__term--week { grid-column: 3; }
.rent-card__h { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.022em; color: var(--t1); text-wrap: balance; }
.rent-card__sub { max-width: 440px; margin-top: 12px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
.rent-card__k { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t3); }
.rent-card__from { display: grid; gap: 14px; margin-top: 20px; }
.rent-card__from li { display: flex; align-items: center; gap: 12px; }
.rent-card__logo { flex: none; display: block; }
.rent-card__logo--amd { width: 18px; height: 18px; margin: 0 6px; }
.rent-card__logo--intel { width: 30px; height: 20px; }
.rent-card__line { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; letter-spacing: -0.005em; color: var(--t2); }
.rent-card__p { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; color: var(--t1); white-space: nowrap; }
.rent-card__d { margin-top: 18px; font-size: 15px; line-height: 22px; letter-spacing: -0.004em; color: var(--t3); }
/* tablets: the lead over the two terms, the link under them */
@media (max-width: 1279px) {
  .rent-card { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; row-gap: 32px; column-gap: 40px; margin-top: 48px;
    padding: 40px; border-radius: 32px; }
  .rent-card__lead { grid-column: 1 / -1; grid-row: 1; }
  .rent-card__sub { max-width: 560px; }
  .rent-card__term { grid-row: 2; padding-left: 40px; }
  .rent-card__term--day { grid-column: 1; padding-left: 0; border-left: 0; } .rent-card__term--week { grid-column: 2; }
  .rent-card__go { grid-column: 1 / -1; grid-row: 3; padding-top: 0; }
}
/* phone: one column, the terms ruled off, a full-width link at the end */
@media (max-width: 600px) {
  .rent-card { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 32px; padding: 24px 24px 26px; border-radius: 24px; }
  .rent-card__lead, .rent-card__term, .rent-card__term--day, .rent-card__term--week, .rent-card__go { grid-column: 1; grid-row: auto; }
  .rent-card__h { font-size: 24px; line-height: 30px; letter-spacing: -0.016em; }
  .rent-card__sub { margin-top: 10px; font-size: 15px; line-height: 22px; letter-spacing: -0.003em; }
  .rent-card__term, .rent-card__term--day { margin-top: 20px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--hl-08); }
  .rent-card__from { margin-top: 14px; gap: 10px; }
  .rent-card__p { font-size: 22px; line-height: 28px; }
  .rent-card__d { margin-top: 12px; }
  .rent-card__go { padding-top: 24px; }
  .rent-card__btn { display: flex; width: 100%; --h: 48px; --px: 18px; font-size: 16px; line-height: 22px; letter-spacing: -0.004em; }
}
/* <<< rental terms */

/* >>> faq (seo 2026-11-17) */
/* «Частые вопросы»: the block /vds carries (vds.edits.json) and every content page of scripts/seo-pages ends with, drawn as
   the owner drew it on /ddos-protection/how (ddos-how.css, .dh-faq): a graphite section, the heading 56/60 with its line and
   a button on the left, the questions 22/28 on the right (7 columns) between 14 % rules, the answers 17/26 #A1A1A6. The rows
   open through the owner's [data-accordion] (site.js, components.css «ACCORDION»). The question and answer carry
   data-vds-faq-q / data-vds-faq-a: the backend states exactly them as the page's FAQPage (docs/SITE-CONTRACT.md 3.2b). */
.sfaq { padding: 200px 0 199px; }
.sfaq__in { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.sfaq__txt { flex: none; }
.sfaq__h { margin-left: -2px; font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; color: var(--t1); }
.sfaq__sub { max-width: 480px; margin-top: 8px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
.sfaq__btn { margin-top: 28px; }
.sfaq__acc { flex: none; width: calc(7 * var(--col) + 6 * var(--gut)); }
.sfaq__it { position: relative; padding-bottom: 30px; border-top: 1px solid var(--hl-14); }
.sfaq__it:last-child { border-bottom: 1px solid var(--hl-14); }
.sfaq__q { position: relative; padding-top: 29px; color: var(--t1); }
.sfaq__q::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -30px; }
.sfaq__q[aria-expanded="true"]::after { bottom: 0; }
.sfaq__qt { flex: 0 1 870px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; text-wrap: pretty; }
.sfaq__ico { margin-top: 2px; }
.sfaq__a { max-width: 782px; padding-top: 16px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); text-wrap: pretty; }
.sfaq__a > p + p { margin-top: 10px; }
.sfaq__a a { color: var(--t1); text-decoration: underline; text-decoration-color: var(--hl-20); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .sfaq__a a:hover { text-decoration-color: currentColor; } }
@media (max-width: 1179px) {
  .sfaq { padding: 176px 0 175px; }
  .sfaq__in { flex-direction: column; align-items: stretch; gap: 0; }
  .sfaq__acc { width: 100%; margin-top: 56px; }
  .sfaq__a { padding-right: 48px; }
}
@media (max-width: 1023px) {
  .sfaq__h { font-size: 44px; line-height: 48px; letter-spacing: -0.03em; }
}
@media (max-width: 600px) {
  .sfaq { padding: 104px 0; }
  .sfaq__h { margin-left: -1px; font-size: 32px; line-height: 36px; letter-spacing: -0.028em; }
  .sfaq__sub { margin-top: 12px; font-size: 16px; line-height: 24px; }
  .sfaq__btn { --h: 44px; --px: 22px; margin-top: 20px; font-size: 15px; }
  .sfaq__acc { margin-top: 36px; }
  .sfaq__it { padding-bottom: 20px; }
  .sfaq__q { gap: 16px; padding-top: 20px; }
  .sfaq__q::after { bottom: -20px; }
  .sfaq__qt { flex: 1 1 auto; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; text-wrap: balance; }
  .sfaq__ico { margin-top: 0; }
  .sfaq__a { padding: 10px 0 0; font-size: 16px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sfaq__acc .acc__a, .sfaq__acc .acc__a > .acc__in > * { transition: none; }
}
/* <<< faq */

/* >>> home H1 (seo 2026-11-17) */
/* The home H1 «Аренда VPS/VDS в Москве с DDoS-защитой» (owner approved 2026-11-17, home.edits.json) is two lines of 80 px
   from 1280 px, where «Современный хостинг-провайдер» was one: there the render, its four callouts and the section's
   height stand at fixed offsets from the section's top (index.css «01 · first screen»: 330 px, + 274 / 386 × --hp), so
   each moves down by the one line the heading gained and the buttons keep their air above the server's lid. Below
   1280 the render follows the heading in the flow and needs nothing. */
@media (min-width: 1280px) {
  .idx-hero { height: calc(410px + 670 * var(--hp)); }
  .idx-hero .hero__scene { top: 410px; }
  .idx-hero .perk--r1 { top: calc(410px + 274 * var(--hp)); }
  .idx-hero .perk--r2 { top: calc(410px + 386 * var(--hp)); }
}
/* <<< home H1 */
