/* Tokens, site v3 «тихий, точный, врачебный кабинет» (docs/superpowers/specs/2026-11-14-site-v3-apple-design.md).
   Block 1: the DS v3 names (source/ds/tokens/tokens.css) — the v3 re-tones (no navy, neutral lines and surfaces) are
   listed in tests/contrast.test.mjs V3_RETONES; everything else is verbatim. Block 2: the v3 palette, type and rhythm.
   Contrast pairs: tests/contrast.test.mjs. Class API: README «Сайт v3: язык и компоненты» */
:root {
  --brand-900:#1D1D1F;
  --brand-700:#424245;
  --teal-700:#0A7775;
  --teal-800:#086461;
  --teal-050:#EAF6F5;
  --paper:#FFFFFF;
  --canvas:#F5F5F7;
  --surface-muted:#F5F5F7;
  --line:#D2D2D7;
  --text:#1D1D1F;
  --text-muted:#6E6E73;
  --warning-700:#925000;
  --warning-050:#FFF7E8;
  --danger-700:#B91C1C;
  --danger-050:#FEF2F2;
  --success-700:#177B56;
  --success-050:#EDF9F3;
  --container:1160px;
  --radius-card:18px;
  --radius-panel:28px;
  --shadow-card:0 12px 36px rgba(0,0,0,.06);

  /* v3 palette: ink, second ink, mute (>= 4.5:1 on white and on fill), fill, hairline. One accent: teal-700/800 on
     buttons and links. Warm tint (warning-050/700) only for 112. */
  --ink:#1D1D1F;
  --ink-2:#424245;
  --mute:#6E6E73;
  --fill:#F5F5F7;
  --fill-2:#E8E8ED;
  --hair:#D2D2D7;
  --teal-100:#D5EDEA;
  --teal-200:#B9DFDB;
  --line-strong:#86868B;
  --warning-200:#F1D9A8;
  --danger-200:#F5C6C6;
  --success-200:#BFE3D1;
  --backdrop:rgba(29,29,31,.48);
  --page-bg:var(--paper);
  --rule:1px solid var(--hair);

  --font-heading:"Inter", "Inter Fallback", Arial, sans-serif;
  --font-body:"Inter", "Inter Fallback", Arial, sans-serif;
  --fs-xs:0.8125rem;
  --fs-sm:0.875rem;
  --fs-md:0.9375rem;
  --fs-body:1rem;
  --fs-text:1.0625rem;
  --fs-lg:1.125rem;
  --fs-lead:clamp(1.1875rem, 1.12rem + .28vw, 1.3125rem);
  --fs-display:clamp(2.25rem, .875rem + 3.9vw, 4rem);
  --fs-h1:clamp(2rem, 1.385rem + 2.524vw, 3rem);
  --fs-h2:clamp(1.75rem, 1.3rem + 2.2vw, 3.25rem);
  --fs-h3:1.3125rem;
  --fs-h4:1.125rem;
  --fs-num:clamp(1.75rem, 3vw, 2.75rem);
  --fs-tile:clamp(1.375rem, 1.2rem + .8vw, 1.875rem);

  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;
  --space-9:88px;
  --sec:48px;
  --radius-tile:24px;
  /* v3.1 photos: r 20 → 28 large, 16 → 20 small (.photo--sm); tile padding drives the full-bleed photo of .tile--photo */
  --radius-photo:20px;
  --radius-photo-sm:16px;
  --tile-pad:20px;
  --c12:repeat(12, minmax(0, 1fr));
  --c4:repeat(4, minmax(0, 1fr));

  --radius-sm:8px;
  --radius-btn:12px;
  --radius-pill:999px;
  --shadow-overlay:0 22px 80px rgba(0,0,0,.14);

  --gutter:16px;
  /* gutter or the wider side safe area (notch); top safe area */
  --gut:max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --sat:env(safe-area-inset-top, 0px);
  --gap:var(--space-3);
  --header-h:52px;
  --topbar-h:44px;
  --sticky-h:72px;
  --tap:44px;
  --btn-h-sm:40px;
  --btn-h-md:48px;
  --btn-h-lg:52px;

  --ease:cubic-bezier(.2,.7,.3,1);
  --dur-micro:.1s;
  --dur-small:.2s;
  --dur-medium:.3s;
  --dur:var(--dur-micro);

  --z-sticky:30;
  --z-header:40;
  --z-skip:100;

  /* masks: source/ds/icons paths at stroke 1.8 (check 2.0) */
  --mask-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7'/%3E%3C/svg%3E");
  --mask-alert:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10.3 3.9-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3.1l-8-14a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v5m0 3h.01'/%3E%3C/svg%3E");
  --mask-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
  --mask-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6m0-10h.01'/%3E%3C/svg%3E");
  --mask-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --mask-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  :root { --gutter:24px; --topbar-h:36px; --gap:var(--space-5); --sec:112px; --radius-tile:28px; --radius-photo:28px; --radius-photo-sm:20px; --tile-pad:40px; }
}
@media (min-width: 1024px) {
  :root { --gutter:32px; --sec:144px; --tile-pad:48px; }
}
