@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/manrope-cyrillic.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 800;font-display:swap;src:url(../fonts/manrope-latin.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}

/* tokens/colors.css */
/* Melke — Color tokens
   ============================================================
   Anchored on the one fact we can verify from the live site:
   the brand graphite #252525 (msapplication-TileColor) over a
   white canvas (theme-color #ffffff). Everything else is a
   disciplined neutral ramp plus a single warm promo accent.

   ASSUMED / TO CONFIRM: the promo accent (--mk-red) and the eco
   green (--mk-green). The site is discount-led ("Скидка 54%",
   "Старая цена"), so a warm signal red for promos/old-price is
   the most probable accent — but it was inferred, not sampled.
   Swap these two values once the real brand palette is shared. */

:root {
  /* —— Brand graphite ramp (verified anchor: #252525) —— */
  --mk-graphite-900: #1a1a1a;
  --mk-graphite-800: #252525;   /* brand anchor */
  --mk-graphite-700: #333333;
  --mk-graphite-600: #4a4a4a;
  --mk-graphite-500: #6b6f73;
  --mk-graphite-400: #9a9ea2;
  --mk-graphite-300: #c7cacd;

  /* —— Neutrals / surfaces —— */
  --mk-white:        #ffffff;
  --mk-paper:        #fafbfc;   /* raised card on light */
  --mk-mist:         #f4f5f6;   /* section background */
  --mk-cloud:        #eceef0;   /* filled controls, chips */
  --mk-hairline:     #e5e7e9;   /* 1px borders, dividers */
  --mk-hairline-2:   #d6d9dc;

  /* —— Promo accent (ASSUMED — confirm) —— */
  --mk-red-700:      #b81d15;
  --mk-red-600:      #e1251b;   /* discounts, old-price, sale */
  --mk-red-100:      #fdeceb;

  /* —— Eco / trust (ASSUMED — confirm) —— */
  --mk-green-600:    #2f8f4e;   /* recycling, "в подарок", success */
  --mk-green-100:    #e8f5ec;

  /* —— Functional —— */
  --mk-amber-600:    #e8a013;   /* ratings / stars */

  /* ============================================================
     Semantic aliases — compose UI against these, not raw ramps.
     ============================================================ */

  /* Text */
  --text-strong:   var(--mk-graphite-900);
  --text-body:     var(--mk-graphite-800);
  --text-muted:    var(--mk-graphite-500);
  --text-faint:    var(--mk-graphite-400);
  --text-on-dark:  var(--mk-white);
  --text-on-dark-muted: rgba(255,255,255,0.66);

  /* Surfaces */
  --surface-page:   var(--mk-white);
  --surface-subtle: var(--mk-mist);
  --surface-card:   var(--mk-white);
  --surface-raised: var(--mk-paper);
  --surface-fill:   var(--mk-cloud);
  --surface-ink:    var(--mk-graphite-800);  /* dark sections, footer, header */
  --surface-ink-2:  var(--mk-graphite-900);

  /* Borders */
  --border-hairline: var(--mk-hairline);
  --border-strong:   var(--mk-hairline-2);
  --border-on-dark:  rgba(255,255,255,0.14);

  /* Brand actions */
  --action-primary:        var(--mk-graphite-800);
  --action-primary-hover:  var(--mk-graphite-900);
  --action-primary-text:   var(--mk-white);

  /* Promo / sale */
  --promo:        var(--mk-red-600);
  --promo-hover:  var(--mk-red-700);
  --promo-soft:   var(--mk-red-100);
  --promo-text:   var(--mk-white);

  /* Eco / success */
  --eco:        var(--mk-green-600);
  --eco-soft:   var(--mk-green-100);

  /* Rating */
  --rating: var(--mk-amber-600);
}

/* tokens/typography.css */
/* Melke — Typography tokens
   ============================================================
   A two-weight system: confident semibold/bold display against a
   regular body. Russian sets in sentence case (never the all-caps
   display of Latin brands) — emphasis comes from weight and size,
   not letterspacing. Small uppercase labels get +0.04em tracking. */

:root {
  /* Families */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;
  --fw-extra:   800;

  /* Type scale (px) — desktop. Numbers do the talking; the scale
     jumps hard at the top so stat figures ("25 лет", "30000 м²")
     can dominate a section. */
  --fs-display:  64px;   /* hero figure / page H1 on dark */
  --fs-h1:       44px;
  --fs-h2:       34px;   /* section titles: "Почему выбирают нас" */
  --fs-h3:       24px;
  --fs-h4:       20px;
  --fs-lg:       18px;
  --fs-base:     16px;
  --fs-sm:       14px;
  --fs-xs:       13px;
  --fs-xxs:      11px;   /* eyebrow labels, legal */

  /* Stat figures (oversized numerals) */
  --fs-stat:     56px;
  --fs-stat-sm:  40px;

  /* Line heights */
  --lh-tight:    1.05;   /* display figures */
  --lh-snug:     1.18;   /* headings */
  --lh-normal:   1.45;
  --lh-relaxed:  1.62;   /* body copy */

  /* Letter spacing */
  --ls-tight:    -0.02em;  /* large display */
  --ls-snug:     -0.01em;  /* headings */
  --ls-normal:    0;
  --ls-label:     0.04em;  /* small uppercase eyebrow/labels */

  /* Semantic text roles */
  --text-display-size:   var(--fs-display);
  --text-display-weight: var(--fw-extra);
  --text-display-lh:     var(--lh-tight);

  --text-heading-weight: var(--fw-bold);
  --text-heading-lh:     var(--lh-snug);

  --text-body-size:      var(--fs-base);
  --text-body-weight:    var(--fw-regular);
  --text-body-lh:        var(--lh-relaxed);

  --text-label-size:     var(--fs-xxs);
  --text-label-weight:   var(--fw-semibold);
  --text-label-ls:       var(--ls-label);
}

/* tokens/spacing.css */
/* Melke — Spacing, radii, elevation, layout
   ============================================================
   A friendly consumer brand, not a hard-edged industrial one:
   soft-but-controlled radii, low-spread shadows, generous bands.
   8px base grid. */

:root {
  /* Spacing scale */
  --sp-0:   0;
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;    /* rhythm between major sections */
  --sp-32:  128px;

  /* Radii — soft, modern, consumer-friendly */
  --r-xs:    6px;
  --r-sm:    10px;   /* inputs, small buttons */
  --r-md:    12px;   /* buttons */
  --r-lg:    16px;   /* cards */
  --r-xl:    24px;   /* hero panels, large media */
  --r-pill:  999px;  /* badges, chips, icon buttons */

  /* Borders */
  --bw-hair: 1px;
  --bw-focus: 2px;

  /* Elevation — soft, neutral, low spread */
  --shadow-xs: 0 1px 2px rgba(26,26,26,0.06);
  --shadow-sm: 0 2px 8px rgba(26,26,26,0.06);
  --shadow-md: 0 6px 22px rgba(26,26,26,0.08);
  --shadow-lg: 0 16px 44px rgba(26,26,26,0.12);
  --shadow-focus: 0 0 0 3px rgba(37,37,37,0.16);
  --shadow-focus-promo: 0 0 0 3px rgba(225,37,27,0.18);

  /* Layout */
  --container:      1280px;
  --container-wide: 1440px;
  --gutter:         24px;
  --gutter-page:    clamp(16px, 4vw, 48px);

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:    0.14s;
  --dur:         0.22s;
  --dur-slow:    0.4s;

  /* Z-index */
  --z-header:  100;
  --z-overlay: 900;
  --z-modal:   1000;
}

/* tokens/base.css */
/* Melke — Base element styles
   ============================================================
   Light reset + element defaults wired to tokens. Consumers that
   link styles.css get a sensible baseline for free. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: var(--text-heading-weight);
  line-height: var(--text-heading-lh);
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }

img, svg, video { display: block; max-width: 100%; }

strong, b { font-weight: var(--fw-bold); }

::selection { background: var(--mk-graphite-800); color: #fff; }

/* —— Reusable layout helpers —— */
.mk-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-page);
}

.mk-eyebrow {
  display: inline-block;
  font-size: var(--fs-xxs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.mk-section { padding-block: var(--sp-24); }
.mk-section--tight { padding-block: var(--sp-16); }

.mk-section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-extra);
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
}

/* landing.css */
/* Оконный Гид — landing theme.
   Builds on the Melke design system tokens (../styles.css): same graphite
   ink, neutrals, type scale and spacing. We warm it up for the country /
   cottage character per the brief — a terracotta CTA accent and sand-tinted
   section surfaces — without touching the system files. */



:root {
  /* Warm "загородный" accent (terracotta) — the conversion CTA color */
  --okg-terra-700: #a4501f;
  --okg-terra-600: #c2622e;
  --okg-terra-500: #d3793f;
  --okg-terra-100: #f7ece3;
  /* Тот же акцент, осветлённый для тёмных фонов: белый текст/графит дают
     контраст ≥ 4.5 (WCAG AA для мелкого текста). */
  --okg-terra-on-dark: #dd8a52;

  /* Warm forest support tone (trust / GOST / eco notes) */
  --okg-pine-700: #2f5d44;
  --okg-pine-600: #3a7355;
  --okg-pine-100: #e9f1ec;

  /* Warm sand neutral for section backgrounds */
  --okg-sand:   #f7f4ef;
  --okg-sand-2: #efe9e0;

  /* Re-point semantic action tokens to the warm accent.
     Кнопка чуть темнее декоративного акцента: белый текст на #b85a26
     даёт контраст 4.64 (WCAG AA), на #c2622e было 4.13 — не проходило. */
  --action-primary:       #b85a26;
  --action-primary-hover: var(--okg-terra-700);
  --action-primary-text:  #ffffff;

  /* Warm the section surface + focus ring */
  --surface-subtle: var(--okg-sand);
  --surface-fill:   var(--okg-sand-2);
  --shadow-focus:   0 0 0 3px rgba(194, 98, 46, 0.22);

  /* Header height (used for anchor scroll offset) */
  --header-h: 116px;
}

/* ===== Тема: Зелёный (лес/природа) — основной акцент зелёный ===== */
body[data-theme="green"] {
  --okg-terra-700: #245c3a;
  --okg-terra-600: #2f7d4e;
  --okg-terra-500: #3d9560;
  --okg-terra-100: #e7f2ec;
  --okg-pine-700:  #245c3a;
  --okg-pine-600:  #2f7d4e;
  --okg-pine-100:  #e7f2ec;
  --okg-sand:      #f3f6f4;
  --okg-sand-2:    #e7ece9;
  --action-primary:       var(--okg-terra-600);
  --action-primary-hover: var(--okg-terra-700);
  --surface-subtle: var(--okg-sand);
  --surface-fill:   var(--okg-sand-2);
  --shadow-focus:  0 0 0 3px rgba(47, 125, 78, 0.22);
}

/* ===== Тема: Зелёный + Голубой — зелёный основной, голубой второстепенный ===== */
body[data-theme="greenblue"] {
  --okg-terra-700: #245c3a;
  --okg-terra-600: #2f7d4e;
  --okg-terra-500: #3d9560;
  --okg-terra-100: #e7f2ec;
  --okg-pine-700:  #1f5f8b;   /* небесно-голубой как «воздух» */
  --okg-pine-600:  #2a80b9;
  --okg-pine-100:  #e8f2f9;
  --okg-sand:      #f2f6f7;
  --okg-sand-2:    #e6edef;
  --action-primary:       var(--okg-terra-600);
  --action-primary-hover: var(--okg-terra-700);
  --surface-subtle: var(--okg-sand);
  --surface-fill:   var(--okg-sand-2);
  --shadow-focus:  0 0 0 3px rgba(47, 125, 78, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--surface-page); overflow-x: hidden; }

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-sans); }

.okg-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.okg-section { padding-block: clamp(56px, 8vw, 104px); }

/* Появление блоков — ЧИСТО НА CSS и БЕЗ анимации прозрачности.
   Анимируется только сдвиг, поэтому даже если анимация не запустится
   или «замрёт» на первом кадре (заблокированные анимации, экономия
   энергии, вебвью), текст и формы остаются полностью читаемыми.
   Для лендинга это важнее, чем эффект фейда. */
.okg-rev { animation: okgUp .62s var(--ease); }
@keyframes okgUp { from { transform: translateY(20px); } to { transform: none; } }

/* Мобильные брейкпоинты */
@media (max-width: 720px) {
  /* Увеличенные зоны нажатия для мелких кнопок-чипов (створки и пр.) */
  .okg-tap { min-height: 44px; padding-inline: 14px !important; }
}

/* Reduced-motion: disable reveal transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================ Layout grids ============================ */
.okg-grid { display: grid; gap: 22px; }
.okg-grid-5 { grid-template-columns: repeat(5, 1fr); }
.okg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.okg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.okg-grid-2 { grid-template-columns: repeat(2, 1fr); }

.okg-hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.okg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.okg-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.okg-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }

.okg-show-mobile { display: none !important; }

/* Sticky header desktop nav */
.okg-nav { display: flex; gap: 22px; align-items: center; }

/* ============================ Tablet ============================ */
@media (max-width: 1040px) {
  .okg-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .okg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .okg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .okg-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .okg-calc-grid { grid-template-columns: 1fr !important; }
  .okg-calc-grid > div:last-child { position: static !important; }
}

/* Compact header + floating contact bar kick in below 1024 so tablet
   widths don't crowd the nav/phone/CTA row. */
@media (max-width: 1024px) {
  .okg-show-desktop { display: none !important; }
  .okg-show-mobile { display: flex !important; }
  body { padding-bottom: 78px; } /* room for floating mobile bar */
}

/* ============================ Mobile ============================ */
@media (max-width: 720px) {
  :root { --header-h: 74px; }
  .okg-section { padding-block: clamp(44px, 9vw, 64px); }
  .okg-grid-5, .okg-grid-4, .okg-grid-3, .okg-grid-2,
  .okg-split, .okg-contacts-grid { grid-template-columns: 1fr; }
  .okg-split { gap: 28px; }

  /* Галерея работ — 2 колонки, не одна длинная лента */
  .okg-gallery { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Футер — 2 колонки, логотип на всю ширину */
  .okg-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .okg-footer-grid > *:first-child { grid-column: 1 / -1; }

  .okg-calc-config { grid-template-columns: 1fr !important; }
  .okg-calc-config > svg { max-width: 280px; margin-inline: auto; }
  .okg-calc-types { grid-template-columns: repeat(2, 1fr) !important; }
  .okg-calc-profiles { grid-template-columns: 1fr 1fr !important; }
  .okg-calc-addons { grid-template-columns: 1fr !important; }
  .okg-theme-switch { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; left: 12px !important; }
}

/* ============================ Small phones ============================ */
@media (max-width: 400px) {
  .okg-gallery { grid-template-columns: 1fr 1fr !important; }
  .okg-calc-profiles { grid-template-columns: 1fr !important; }
  .okg-footer-grid { grid-template-columns: 1fr; }
  .okg-footer-grid > *:first-child { grid-column: auto; }
}

/* ===================== Hero animated circles ===================== */
@keyframes okgSpin { to { transform: rotate(360deg); } }
@keyframes okgSpinRev { to { transform: rotate(-360deg); } }
@keyframes okgPulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes okgGrid { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.okg-hero-grid-anim {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(100deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.5) 1px, transparent 1px, transparent 4%);
  background-size: 200% 200%;
  opacity: .1;
  animation: okgGrid 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000);
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000);
}

/* ===================== Spotlight hover on cards ===================== */
.okg-spot { position: relative; }
.okg-spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(194,98,46,.16), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.okg-spot:hover::after { opacity: 1; }

.okg-spot-over { position: relative; }
.okg-spot-over::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.32), transparent 55%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s var(--ease);
}
.okg-spot-over:hover::after { opacity: 1; }

@media (max-width: 1024px){:root{--okg-cookie-offset:90px}}
