/* VDS.RENT — design tokens, taken from the Figma frames on «Прототип · первый экран» (dump: ~/.tankgame_work/vdsmain/html_src/dump).
   Shared file (foundation). Page agents read these, they do not edit them. */
:root {
  /* ---------- surfaces */
  --black: #000000;          /* page / black sections / nav */
  --graphite: #161617;       /* graphite sections, the frame background, dropdown cards */
  --grey-block: #212123;     /* grey blocks on black */
  --grey-menu: #1A1A1C;      /* opened group in the mobile menu, grey blocks */
  --btn-dark: #1C1C1F;       /* the dark pill button, mobile menu button */
  --strip: #101012;          /* the service strip above the nav */
  --grey-2c: #2C2C2E;
  --grey-33: #333336;
  --grey-3a: #3A3A3C;

  /* ---------- text */
  --t-white: #FFFFFF;
  --t1: #F5F5F7;             /* primary text */
  --t2: #A1A1A6;             /* secondary text, sub-heads */
  --t3: #8E8E93;             /* tertiary text, inactive nav */
  --t4: #86868B;             /* footer body / links */
  --t5: #6E6E73;             /* footer crumb chevron */
  --t6: #636366;             /* inactive nav chevrons */
  --t-sep: #48484A;          /* «|» separators, dim marks */
  --t-soft: #C7C7CC;         /* nav right group (RU, Войти) */
  --t-e5: #E5E5EA;
  --t-e8: #E8E8ED;           /* footer column heads */
  --t-d1: #D1D1D6;
  --t-7c: #7C7C82;
  --wordmark: #2A2A2C;       /* the big VDS.RENT in the footer (tone on graphite) */

  /* ---------- accent (the brand blue) and its states */
  --acc: #0866E0;
  --acc-hover: #1A73E8;      /* hover: one small step lighter */
  --acc-active: #0759C6;     /* pressed */
  --acc-hi: #3D8BFF;
  --acc-line: #60A5FA;       /* light blue text / focus ring */

  /* ---------- status */
  --ok: #3CCB7F;             /* status dot */
  --ok-text: #34D399;        /* «Все штатно» */
  --ok-bg: rgba(16, 185, 129, 0.12);
  --green: #4DC771;
  --yellow: #FFD60A;

  /* ---------- hairlines (white at low opacity) */
  --hl-025: rgba(255, 255, 255, 0.025);
  --hl-03: rgba(255, 255, 255, 0.03);
  --hl-05: rgba(255, 255, 255, 0.05);
  --hl-06: rgba(255, 255, 255, 0.06);
  --hl-07: rgba(255, 255, 255, 0.07);
  --hl-08: rgba(255, 255, 255, 0.08);
  --hl-10: rgba(255, 255, 255, 0.10);
  --hl-11: rgba(255, 255, 255, 0.11);
  --hl-12: rgba(255, 255, 255, 0.12);
  --hl-13: rgba(255, 255, 255, 0.13);
  --hl-14: rgba(255, 255, 255, 0.14);
  --hl-18: rgba(255, 255, 255, 0.18);
  --hl-20: rgba(255, 255, 255, 0.20);

  /* the hero's light as a text fill (violet → amber), used on key phrases */
  --light-grad: linear-gradient(90deg, #B294FF 0%, #FFB273 100%);

  /* ---------- type */
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --brand: 'Sora', 'Geist', sans-serif;  /* only the VDS.RENT wordmark */

  /* ---------- layout: the 12-column Figma grid (W 1728 = M 48 + 12 × 114 + 11 × 24 + M 48).
     1280…1920 keep the composition: margins and gutters fixed, columns fluid; above 1920 the content stops growing */
  --frame: 1728px;
  --wrap-max: 1920px;
  --M: 48px;                 /* side margin */
  --gut: 24px;               /* column gutter */
  --cols: 12;
  /* one Figma pixel scaled with the content width between 1280 and 1728 (= 1px at 1728, 0.868px at 1512, 0.725px at
     1280 and below); for parts that must keep their proportions, e.g. width: calc(314 * var(--u)) */
  --u: calc((clamp(1280px, 100vw, 1728px) - 96px) / 1632);
  /* content width (inside the margins) and one column */
  --content: calc(min(100vw, var(--wrap-max)) - 2 * var(--M));
  --col: calc((var(--content) - 11 * var(--gut)) / 12);

  /* ---------- section joins: black sections round their corners over the graphite neighbours they overlap */
  --join: 80px;              /* overlap and corner radius (mobile 32) */
  --sec-pad: 72px;           /* mobile section padding (desktop sections carry their own Figma paddings) */

  /* ---------- header */
  --strip-h: 36px;
  --nav-h: 72px;
  --header-h: 108px;         /* strip + nav */
  --mbar-h: 60px;            /* the phone bar */

  /* ---------- radii */
  --r-card: 24px;
  --r-block: 28px;
  --r-menu: 28px;            /* bottom corners of the desktop dropdown panels */

  /* ---------- motion (Apple-like, restrained) */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  /* ---------- stacking */
  --z-sec: 1;
  --z-sec-black: 2;
  --z-veil: 90;
  --z-header: 100;
  --z-mmenu: 110;
}

@media (max-width: 1023px) {
  :root { --M: 32px; --join: 48px; }
}
@media (max-width: 600px) {
  :root { --M: 20px; --gut: 16px; --join: 32px; }
}
