/* VDS.RENT — base: fonts, reset, the recurring text styles. Shared file (foundation). */

/* ---------- self-hosted fonts (Google Fonts builds of Geist 1.401 / Geist Mono 1.401 / Sora, subset: Latin, Latin-1, Cyrillic,
   punctuation, ₽ ₸ №, arrows, − ∞ ×). Variable weight axes; the frames use Geist 400/500/600, Geist Mono 500, Sora 700.
   font-display: block — the files are tiny and preloaded, a fallback-font flash would be a visible artifact */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: block;
}

/* ---------- reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--graphite);
  color-scheme: dark;
  scroll-padding-top: var(--header-h);
}
@media (max-width: 1179px) { html { scroll-padding-top: var(--mbar-h); } }
/* anchors glide: site.js (VDS.scrollTo, one curve for every page) does it and sets html.vds-js; without JS the browser's own smooth
   scroll is the fallback. Not on html.vds-js: scripts' instant scrollTo / scrollBy (layout corrections, the QA tools) stay instant */
html { scroll-behavior: smooth; }
html.vds-js { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--graphite);
  color: var(--t1);
  font-family: var(--font); font-size: 16px; line-height: 24px; font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-kerning: normal;
  overflow-x: clip;          /* no sideways scroll at any width (clip, not hidden: keeps position: sticky working) */
}
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; font-size: inherit; line-height: inherit; }
ul, ol { list-style: none; }
img, svg, video, canvas, picture { display: block; }
img { max-width: none; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
strong, b { font-weight: 600; }
::selection { background: rgba(8, 102, 224, 0.55); color: #FFFFFF; }
[hidden] { display: none !important; }

/* ---------- no outlines, no native chrome (owner, 2026-11-07: «убери везде аутлайны у инпутов и тд»).
   No focus ring on anything, anywhere — page rules included (hence !important; never use outline for decoration, use
   box-shadow). Keyboard focus shows the element's own quiet hover step instead, and decorative hovers live only where there
   is a real pointer (no «stuck» highlight after a tap on iOS):
     .x:focus-visible { color: var(--t1); }
     @media (hover: hover) and (pointer: fine) { .x:hover { color: var(--t1); } } */
*, *::before, *::after { outline: none !important; }
html, body, * { -webkit-tap-highlight-color: transparent; }          /* iOS / Android tap flash */
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
/* text fields: no iOS inner shadow / rounded native look; search: no magnifier, no ×; number: no spinners */
:where(input:not([type]), input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], textarea) { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
:where(input[type="number"]) { -moz-appearance: textfield; }
/* autofill: Chrome's / Safari's blue and yellow fills replaced by the field's own dark colour (an inset shadow paints over the
   UA background; the text stays light). A field on another colour sets --field-bg on itself. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--t1); caret-color: var(--t1);
  -webkit-box-shadow: inset 0 0 0 1000px var(--field-bg, #1C1C1F); box-shadow: inset 0 0 0 1000px var(--field-bg, #1C1C1F);
  transition: background-color 600000s 0s, color 600000s 0s; }
input:-webkit-autofill::first-line { font-family: var(--font); color: var(--t1); }

/* screen-reader only */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--acc); color: #fff;
  font-size: 14px; line-height: 20px; font-weight: 500; transition: top var(--t-fast) var(--ease); }
.skip-link:focus-visible, .skip-link:focus { top: 12px; }

/* no transition may play while the page loads: html.preload is removed by site.js after the load event */
html.preload *, html.preload *::before, html.preload *::after { transition: none !important; animation-play-state: paused; }

/* ---------- layout helpers */
.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--M); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

/* ---------- text: Figma letter-spacing in % = em / 100; line heights in px as in the frames.
   Generic: <p class="tx" style="--fs:19;--lh:28;--ls:-0.6;--fw:400"> (numbers = Figma values) */
.tx { font-size: calc(var(--fs, 16) * 1px); line-height: calc(var(--lh, 24) * 1px); letter-spacing: calc(var(--ls, 0) * 0.01em); font-weight: var(--fw, 400); }
.mono { font-family: var(--mono); }
.brand-font { font-family: var(--brand); font-weight: 700; }
.upper { text-transform: uppercase; }
.nowrap { white-space: nowrap; }
/* a text box with its Figma width: auto-width text boxes in Figma are rounded up to whole px, and elements placed after a text
   (icons, separators, the next item of a row) sit at that width — <span class="tw" style="--tw:57">Главная</span> */
.tw { display: inline-block; width: calc(var(--tw) * 1px); white-space: nowrap; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* recurring styles of the frames (name = role; values = Figma) */
.t-display { font-size: 76px; line-height: 80px; font-weight: 600; letter-spacing: -0.045em; }   /* main hero H1 */
.t-h1-80   { font-size: 80px; line-height: 84px; font-weight: 600; letter-spacing: -0.045em; }   /* Статус / Контакты H1 */
.t-h1      { font-size: 72px; line-height: 76px; font-weight: 600; letter-spacing: -0.042em; }   /* VPS, DDoS, Как работает H1 */
.t-h1-64   { font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.038em; }   /* Документы / Оферта H1 */
.t-h2      { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; }   /* section heads */
.t-h3      { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.024em; }
.t-h4      { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.018em; }
.t-h5      { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.014em; }
.t-title   { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.012em; }
.t-title-22{ font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.t-title-20{ font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.009em; }
.t-title-18{ font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.012em; }
.t-title-17{ font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.006em; }
.t-lead-21 { font-size: 21px; line-height: 30px; font-weight: 400; letter-spacing: -0.008em; }   /* inner heroes' sub */
.t-lead-20 { font-size: 20px; line-height: 30px; font-weight: 400; letter-spacing: -0.008em; }   /* main hero sub */
.t-lead    { font-size: 19px; line-height: 28px; font-weight: 400; letter-spacing: -0.006em; }   /* section subs */
.t-body-17 { font-size: 17px; line-height: 26px; font-weight: 400; letter-spacing: -0.004em; }
.t-body    { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -0.003em; }
.t-body-22 { font-size: 16px; line-height: 22px; font-weight: 400; letter-spacing: -0.005em; }
.t-15      { font-size: 15px; line-height: 22px; font-weight: 400; letter-spacing: -0.002em; }
.t-15-20   { font-size: 15px; line-height: 20px; font-weight: 400; letter-spacing: -0.002em; }
.t-14      { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: -0.002em; }
.t-13      { font-size: 13px; line-height: 21px; font-weight: 400; letter-spacing: -0.001em; }
.t-13-20   { font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: -0.001em; }
.t-12      { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: -0.002em; }
.t-eyebrow { font-family: var(--mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.t-eyebrow-12 { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.w4 { font-weight: 400; } .w5 { font-weight: 500; } .w6 { font-weight: 600; }
.c-white { color: var(--t-white); } .c1 { color: var(--t1); } .c2 { color: var(--t2); } .c3 { color: var(--t3); } .c4 { color: var(--t4); }
.c5 { color: var(--t5); } .c-sep { color: var(--t-sep); } .c-soft { color: var(--t-soft); } .c-e8 { color: var(--t-e8); } .c-acc { color: var(--acc-line); }
/* the hero's light across a phrase (Figma text gradient) */
.t-light { background: var(--light-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* phone type scale (the 390 frame): section H2 32/36 −2.8 %, sub 16/24 −0.4 % */
@media (max-width: 600px) {
  .t-m-h2 { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.028em; }
  .t-m-sub { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -0.004em; color: var(--t2); }
}
