/* Основа сайта по макетам Claude Design: шрифт Onest (OFL, файлы в /fonts), цвета макета, сброс браузерных стилей */
@font-face { font-family: 'Onest'; src: url('/fonts/onest-cyrillic.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('/fonts/onest-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; src: url('/fonts/onest-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Основные цвета */
  --c-primary: #0D5B50;
  --c-primary-hover: #073C34;
  --c-text: #111418;
  --c-text-2: #5E6670;
  --c-muted: #8A919A;
  --c-muted-2: #A7AEB7;
  --c-muted-3: #6B727B;
  --c-muted-4: #4F5862;
  --c-surface: #F3F5F7;
  --c-surface-hover: #ECEFF2;
  --c-border: #E6E9ED;
  --c-border-2: #E3E7EB;
  --c-border-3: #EEF0F3;
  --c-dark: #111418;
  /* Статусы: точка, фон плашки, текст плашки */
  --c-ok: #17A673;
  --c-ok-bg: #DDF1E6;
  --c-ok-text: #0A5A42;
  --c-ask: #F0A92E;
  --c-ask-bg: #FDEFD3;
  --c-ask-text: #7A4B00;
  --c-no: #B9C0C8;
  --c-no-bg: #E9ECEF;
  --c-no-text: #4F5862;
  --c-warn-bg: #FDF5E4;
  --c-warn-text: #6B4600;
  /* Подсветка в духе gdebenz.ru, но в основном цвете: карточка-акцент «Моя машина», плитка значка, «пилюля» под
     активным пунктом меню и вкладкой раздела, главная кнопка. Стекло — парящая плашка нижнего меню */
  --c-primary-2: #12705F;            /* светлый конец градиента главной кнопки */
  --c-primary-ink: #0A4A41;          /* текст на подсветке */
  --glow-card: linear-gradient(145deg, rgba(13, 91, 80, .11), rgba(13, 91, 80, .035)), #fff;
  --glow-border: rgba(13, 91, 80, .24);
  --glow-shadow: 0 0 26px rgba(13, 91, 80, .11);
  --glow-tile: rgba(13, 91, 80, .12);
  --glow-tile-border: rgba(13, 91, 80, .2);
  --glow-pill: rgba(13, 91, 80, .1);
  --glow-pill-border: rgba(13, 91, 80, .5);
  --glow-pill-shadow: 0 0 14px rgba(13, 91, 80, .12), inset 0 1px 0 rgba(255, 255, 255, .5);
  --glow-btn-shadow: 0 6px 18px rgba(13, 91, 80, .26), inset 0 1px 0 rgba(255, 255, 255, .2);
  /* Рамка главной кнопки — --c-primary-hover с непрозрачностью 90 % */
  --glow-btn-border: rgba(7, 60, 52, .9);
  --glass: rgba(255, 255, 255, .78);
  --glass-border: rgba(17, 20, 24, .09);
  --glass-shadow: 0 8px 28px rgba(17, 20, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .85);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Колонка телефона, поля компьютера, высота шапки компьютера (68 + 46 + линия) и место нижнего меню телефона:
     плашка 64 px и отступ под ней до края экрана */
  --col: 560px;
  --gutter: 40px;
  --hdr-h: 115px;
  --nav-h: calc(64px + max(10px, env(safe-area-inset-bottom)));
  /* Радиусы, которые повторяются в макетах; pill — полностью круглые края (полосы, чипы любой высоты).
     Мелкие радиусы полосок 2–5 px зависят от их высоты и пишутся числом */
  --r-6: 6px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-18: 18px;
  --r-20: 20px;
  --r-22: 22px;
  --r-24: 24px;
  --r-28: 28px;
  --r-32: 32px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  color: var(--c-text);
  font: 400 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
button { padding: 0; border: 0; background: none; text-align: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { flex: none; }
::placeholder { color: var(--c-muted); opacity: 1; }
[hidden] { display: none !important; }

/* Фокус с клавиатуры виден везде; у главной области и окна слоя (tabindex="-1") рамки нет */
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Анимации макетов: появление блока (npIn .35s ease-out) и линия сканера, бегущая по фото наряда
   (npScan 1.6s ease-in-out infinite alternate). При «меньше движения» их выключает блок ниже */
@keyframes npIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes npScan { from { top: 10%; } to { top: 86%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
