/* Шрифты тем — локальные woff2 (OFL, см. /assets/fonts/LICENSES.md), подмножества кириллица + латиница.
   Браузер скачивает файл, только если гарнитура реально использована активной темой. */
@font-face{font-family:"Oswald";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/oswald-cyrillic-600.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Oswald";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/oswald-latin-600.woff2") format("woff2");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;}
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/roboto-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/roboto-latin-400.woff2") format("woff2");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;}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/roboto-cyrillic-700.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/roboto-latin-700.woff2") format("woff2");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;}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/cormorant-garamond-cyrillic-600.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/cormorant-garamond-latin-600.woff2") format("woff2");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;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/manrope-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/manrope-latin-400.woff2") format("woff2");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;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/manrope-cyrillic-700.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/manrope-latin-700.woff2") format("woff2");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;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-cyrillic-500.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");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;}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");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;}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-cyrillic-600.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");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;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/montserrat-cyrillic-700.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/montserrat-latin-700.woff2") format("woff2");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;}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/open-sans-cyrillic-400.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/open-sans-latin-400.woff2") format("woff2");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;}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/open-sans-cyrillic-600.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/open-sans-latin-600.woff2") format("woff2");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;}

/* ==========================================================================
   Темы. Тема = набор переменных на html[data-theme]. Вёрстка одна (main.css).
   Обязательные переменные: --bg --surface --section-alt --text --muted --accent
   --accent-contrast --line --radius --shadow --font-head --font-body --space.
   Дополнительные: --accent-ink (акцент как цвет текста/ссылок на фоне),
   --head-weight, --head-case, --head-spacing, --bg-image.
   Штукатурка: body[data-service="plaster"] переопределяет акцент внутри темы.
   ========================================================================== */

/* A. «Строительный индустриальный» — по умолчанию */
:root,
html[data-theme="a"] {
  --bg: #F4F3F0;
  --surface: #FFFFFF;
  --section-alt: #E8E6E1;
  --text: #23262B;
  --muted: #555A61;
  --line: #CFCCC5;
  --accent: #F26B1D;
  --accent-contrast: #1B1D21;
  --accent-ink: #A83E06;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(35, 38, 43, .12);
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --head-weight: 600;
  --head-case: uppercase;
  --head-spacing: .01em;
  --space: 1rem;
  --bg-image: none;
}
html[data-theme="a"] body[data-service="plaster"],
body[data-service="plaster"] {
  --accent: #F5A524;
  --accent-ink: #875400;
}

/* B. «Премиальный минимализм» — тёплый бетон, глубокий зелёный */
html[data-theme="b"] {
  --bg: #EDEAE4;
  --surface: #F7F5F1;
  --section-alt: #E3DFD7;
  --text: #22241F;
  --muted: #56554F;
  --line: #D2CDC3;
  --accent: #2F5D4A;
  --accent-contrast: #FFFFFF;
  --accent-ink: #2F5D4A;
  --radius: 2px;
  --shadow: none;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --head-weight: 600;
  --head-case: none;
  --head-spacing: 0;
  --space: 1.25rem;
  --bg-image: none;
}
html[data-theme="b"] body[data-service="plaster"] {
  --accent: #8A5A14;
  --accent-ink: #7A4F10;
}

/* C. «Инженерный» — тёмная, жёлтый акцент, чертёжная сетка */
html[data-theme="c"] {
  --bg: #14171C;
  --surface: #1C2027;
  --section-alt: #181C22;
  --text: #E8EAED;
  --muted: #A3AAB4;
  --line: #2E343D;
  --accent: #FFD400;
  --accent-contrast: #14171C;
  --accent-ink: #FFD400;
  --radius: 3px;
  --shadow: 0 0 0 1px #2E343D;
  --font-head: "IBM Plex Mono", "Courier New", monospace;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --head-weight: 500;
  --head-case: none;
  --head-spacing: -.01em;
  --space: 1rem;
  --bg-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  color-scheme: dark;
}
html[data-theme="c"] body[data-service="plaster"] {
  --accent: #FF9F1C;
  --accent-ink: #FFB04D;
}

/* D. «Светлый корпоративный» — белый и синий */
html[data-theme="d"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --section-alt: #F0F4F9;
  --text: #16202E;
  --muted: #526073;
  --line: #DBE2EB;
  --accent: #1D5FD1;
  --accent-contrast: #FFFFFF;
  --accent-ink: #1A56BD;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(22, 32, 46, .08);
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --head-weight: 700;
  --head-case: none;
  --head-spacing: -.01em;
  --space: 1rem;
  --bg-image: none;
}
html[data-theme="d"] body[data-service="plaster"] {
  --accent: #4338CA;
  --accent-ink: #4338CA;
}
