/* ============================================================
   SKIN «Штукатурка и ковка» — риверплейс.рф (БЦ Ривер Плэйс)
   Слой 2 поверх канонного main.css. Family-agnostic.
   Палитра выведена из материала объекта: кремовая штукатурка
   фасада 1914 г., белые наличники, кованый металл входных групп.
   Контраст пар посчитан (contrast.mjs):
     #2B2620/#F6F1E7 = 13.3 AA+ · #F6F1E7/#7A5A21 = 5.6 AA
     #5C5344/#F6F1E7 = 6.7 AA  · #2B2620/#E7DCC7 = 11.0 AA+
   z-index шкала сайта: 1 контент · 2 скрим/оверлеи hero ·
   10 шапка канона · 100 мобильное меню канона. Выше не лезем.
   ============================================================ */

@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/Literata/literata-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/Literata/literata-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText/golos-text-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText/golos-text-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText/golos-text-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText/golos-text-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}

:root {
  /* перекрытие токенов канона */
  --color-primary-text: #2B2620;
  --color-secondary-text: #5C5344;
  --color-secondary: #7A5A21;
  --color-grey: #B5AC9C;
  --color-light: #F6F1E7;
  --color-grey-bg: #EFE9DC;
  --border-radius: 2px;
  --border-radius-min: 2px;
  --border-radius-arrow: 0;
  --font-family: 'Golos Text', 'Montserrat', sans-serif;
  --shadow-color: rgb(43 38 32 / 12%);

  /* собственные токены скина */
  --st-ivory: #F6F1E7;
  --st-sand: #E7DCC7;
  --st-iron: #2B2620;
  --st-ochre: #7A5A21;
  --st-ochre-hover: #6A4E1C;
  --st-paper: #FFFDF8;
  --st-muted: #5C5344;
  --st-hairline: rgba(43, 38, 32, .18);
  --st-font-display: 'Literata', Georgia, serif;
}

body {
  background: var(--st-ivory);
  color: var(--color-primary-text);
  font-family: var(--font-family);
}

h1, h2, h3, .title-large, .title-color, .title-middle {
  font-family: var(--st-font-display);
  font-weight: 700;
  text-wrap: balance;
}

/* тень канона — тонированная в фон, не чёрная */
* { --shadow-color: rgb(43 38 32 / 12%); }

/* кнопки канона: акцент приходит токеном --color-secondary,
   здесь — только радиус и hover-затемнение */
.btn, .btn-secondary, button.btn {
  border-radius: 2px;
}
.btn-secondary:hover {
  background-color: var(--st-ochre-hover);
}

/* захардкоженные радиусы канона → радиус-система 0–2px */
.card .card_image { border-radius: 2px 2px 0 0; }

/* поля форм: хардкод-радиус 6px канона → 2px, фон под тон */
input, textarea, select, .form-control {
  border-radius: 2px !important;
  background-color: var(--st-paper);
  border-color: var(--st-hairline);
}

/* шапка: светлая на inner-страницах; на hero — тёмная до скролла (family-stucco.css) */
header:not(.header-white) {
  background-color: rgba(246, 241, 231, .92);
}
header.fixed, header.static, header.header-white.fixed {
  background-color: rgba(246, 241, 231, .96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 var(--st-hairline);
}

/* согласие на обработку ПД */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-consent__input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  vertical-align: top;
}
.form-consent__label {
  margin: 0;
  line-height: 1.45;
  flex: 1;
}
.form-consent.input-error .form-consent__label {
  color: #f00038;
}

/* футер: тёмный нейтральный графит, не акцентный */
footer, .footer {
  background-color: var(--st-iron);
  color: var(--st-ivory);
}
footer a, .footer a, footer p, .footer p { color: var(--st-ivory); }
footer .footerlink { color: var(--st-sand); }

/* табличные цифры во всех числовых местах канона */
.office-tables, .office-area-sliders, .about-rate, td, th {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
