/* Forum 400 cyrillic-ext */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Forum 400 cyrillic */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Forum 400 latin-ext */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-latin-ext.woff2) format('woff2');
  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;
}
/* Forum 400 latin */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-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;
}
/* JetBrains Mono 400 cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* JetBrains Mono 400 cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 400 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  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;
}
/* JetBrains Mono 400 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}
/* JetBrains Mono 600 cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* JetBrains Mono 600 cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 600 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  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;
}
/* JetBrains Mono 600 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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;
}
/* Onest 400 cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest 400 cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest 400 latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format('woff2');
  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;
}
/* Onest 400 latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/onest-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;
}
/* Onest 500 cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest 500 cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest 500 latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format('woff2');
  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;
}
/* Onest 500 latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/onest-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;
}
/* Onest 600 cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest 600 cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest 600 latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format('woff2');
  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;
}
/* Onest 600 latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/onest-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;
}
/* Onest 700 cyrillic-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest 700 cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Onest 700 latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format('woff2');
  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;
}
/* Onest 700 latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/onest-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;
}


/* Макет: вертикальная «улица» из цветных порталов — кобальт → ганч → чернила → бирюза → ганч → кобальт.
   Язык форм взят у тимуридской архитектуры: кирпичное письмо банно'и, арка-пештак, звёздный гирих, восьмигранные кнопки. */
:root {
    --lapis: #0E2A6B;        /* кобальт майолики */
    --lapis-deep: #081A47;
    --ink: #0A1230;          /* ночной фон мастерской */
    --ink-2: #131E47;
    --feruza: #18B3A7;       /* бирюза */
    --feruza-deep: #0B7C78;
    --ganch: #F2F5F3;        /* белый ганч (резной гипс) */
    --ganch-2: #E3EAE8;
    --zar: #E9B63B;          /* шафран / золото глазури */
    --zar-deep: #B98512;
    --text: #0C1A3D;
    --text-soft: #4A5A7C;
    --on-dark: #F3F6FB;
    --on-dark-soft: #A9B8DD;
    --line-dark: rgba(255,255,255,.14);
    --line-light: rgba(12,26,61,.14);
    --f-display: "Forum", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --f-body: "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --wrap: 1240px;
    --oct: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    --oct-s: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124' preserveAspectRatio='none'%3E%3Cpath d='M0 124V46C0 26 20 10 50 0c30 10 50 26 50 46v78z'/%3E%3C/svg%3E");
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lapis-deep); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img, canvas { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; line-height: 1.08; }
section[id] { scroll-margin-top: 76px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--zar); outline-offset: 3px; }

/* ---- восьмигранные кнопки ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; clip-path: var(--oct); transition: transform .2s, filter .2s, background .2s; position: relative; isolation: isolate; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--text); }
.btn-zar { background: var(--zar); color: var(--lapis-deep); }
.btn-feruza { background: var(--feruza); color: var(--lapis-deep); }
.btn-lapis { background: var(--lapis); color: var(--on-dark); }
.btn-line { background: currentColor; }
.btn-line::before { content: ""; position: absolute; inset: 1.5px; clip-path: var(--oct); background: var(--btn-fill, var(--lapis)); z-index: -1; }
.btn-line > * { color: inherit; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 12px; clip-path: var(--oct-s); }
.btn-sm.btn-line::before { clip-path: var(--oct-s); }

/* ---- метка раздела: звезда + моноширинная подпись ---- */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.label::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); flex: none; }
.h-sec { font-size: clamp(34px, 5.2vw, 64px); text-transform: uppercase; letter-spacing: .01em; margin-top: 14px; }
.lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 60ch; margin-top: 16px; }

/* ---- фриз из звёзд (рисуется скриптом в --frieze) ---- */
.frieze { height: 46px; background: var(--lapis-deep) var(--frieze, none) center / 46px 46px repeat-x; border-block: 3px solid var(--zar); }

/* ================= ШАПКА ================= */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--lapis-deep); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(8,26,71,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: .14em; line-height: 1; display: block; }
.brand i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .42em; color: var(--feruza); display: block; margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--on-dark-soft); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-dark); border-color: var(--feruza); }
.langs { display: flex; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line-dark); }
.langs button { padding: 7px 9px; color: var(--on-dark-soft); }
.langs button[aria-pressed="true"] { background: var(--feruza); color: var(--lapis-deep); font-weight: 600; }
.top .btn { min-height: 42px; padding: 8px 18px; font-size: 12px; }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 560px) { .top .btn { display: none; } .brand b { font-size: 19px; } }

/* ================= ГЕРОЙ ================= */
.hero { background: var(--lapis) var(--girih-dark, none) center top / 132px 132px; color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 30%, rgba(14,42,107,0) 0%, rgba(8,26,71,.86) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 4.6vw, 64px); }
.hero .label { color: var(--feruza); }
.wordmark { margin-top: 22px; }
.wordmark svg { width: 100%; height: auto; display: block; overflow: visible; }
.wordmark rect { transition: fill .5s; }
.wordmark rect:hover { fill: var(--zar); transition: fill 0s; }
.wordmark rect { transform-box: fill-box; transform-origin: center; animation: tile .55s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 9ms); }
@keyframes tile { from { opacity: 0; transform: scale(.2) rotate(45deg); } to { opacity: 1; transform: none; } }
.wm-sub { display: flex; justify-content: space-between; font-family: var(--f-display); font-size: clamp(20px, 3.6vw, 46px); line-height: 1; margin-top: clamp(10px, 1.6vw, 20px); color: var(--on-dark); }
.hero p.lede { color: var(--on-dark-soft); }
.hero p.lede b { color: var(--zar); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-line { color: var(--feruza); }
.hero .btn-line span { color: var(--on-dark); }

/* арка-пештак со сравнением «до / после» */
.portal { position: relative; width: 100%; max-width: 440px; margin-inline: auto; }
.portal-frame { aspect-ratio: 100 / 124; background: var(--lapis-deep) var(--frieze, none) center / 40px 40px; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; padding: 16px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.cmp { position: relative; width: 100%; height: 100%; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; --s: 50%; background: var(--ink); }
.cmp img, .cmp canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; }
.cmp .after { clip-path: inset(0 calc(100% - var(--s)) 0 0); }
.cmp.wide { -webkit-mask: none; mask: none; height: auto; aspect-ratio: 12 / 7; }
.cmp.wide img, .cmp.wide canvas { object-position: center; }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--s); width: 2px; background: var(--zar); transform: translateX(-1px); pointer-events: none; }
.cmp .knob { position: absolute; left: var(--s); top: 58%; width: 46px; height: 46px; transform: translate(-50%, -50%); background: var(--zar); clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); display: grid; place-items: center; color: var(--lapis-deep); font-weight: 700; pointer-events: none; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp .tag { position: absolute; bottom: 14px; padding: 5px 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; background: rgba(8,26,71,.82); color: var(--on-dark); pointer-events: none; }
.cmp .tag.a { left: 14px; color: var(--zar); } .cmp .tag.b { right: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip { padding: 8px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; clip-path: var(--oct-s); background: rgba(255,255,255,.12); color: var(--on-dark); transition: background .2s; }
.chip:hover { background: rgba(255,255,255,.22); }
.chip[aria-pressed="true"] { background: var(--zar); color: var(--lapis-deep); }
.chips.light { justify-content: flex-start; } .chips.light .chip { background: var(--ganch-2); color: var(--text); } .chips.light .chip:hover { background: #d5dfdc; }
.chips.light .chip[aria-pressed="true"] { background: var(--lapis); color: var(--on-dark); }
/* золотой свет по орнаменту: следует за курсором, на телефоне плывёт сам */
@property --mx { syntax: '<length-percentage>'; inherits: true; initial-value: 30%; }
@property --my { syntax: '<length-percentage>'; inherits: true; initial-value: 40%; }
.glow { position: absolute; inset: 0; pointer-events: none; background: var(--girih-gold, none) center top / 132px 132px; -webkit-mask: radial-gradient(circle 320px at var(--mx) var(--my), #000 0, rgba(0,0,0,.45) 42%, transparent 72%); mask: radial-gradient(circle 320px at var(--mx) var(--my), #000 0, rgba(0,0,0,.45) 42%, transparent 72%); }
.foot .glow { background-position: center; }
@media (hover: none) { .glow { animation: drift 16s ease-in-out infinite alternate; } }
@keyframes drift { 0% { --mx: 12%; --my: 22%; } 50% { --mx: 82%; --my: 50%; } 100% { --mx: 30%; --my: 86%; } }
/* аркада: следующий раздел «вырастает» рядом стрельчатых арок */
.arcade { height: 62px; -webkit-mask: var(--arch) left top / 96px 119px repeat-x; mask: var(--arch) left top / 96px 119px repeat-x; margin-bottom: -1px; }
.arcade.ink { background: var(--ink); } .arcade.feruza { background: var(--feruza); } .arcade.ganch { background: var(--ganch); }
.portal figcaption { text-align: center; font-size: 13px; color: var(--on-dark-soft); margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .portal { max-width: 340px; } }

/* ================= УСЛУГИ ================= */
.services { background: var(--ganch) var(--girih-light, none) center top / 132px 132px; }
.services .wrap { padding-block: clamp(56px, 8vw, 110px); }
.services .label { color: var(--feruza-deep); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 2px solid var(--text); }
.svc { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line-light); position: relative; }
.svc:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line-light); }
.niche { width: 76px; aspect-ratio: 100 / 124; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; background: var(--lapis); display: grid; place-items: center; color: var(--on-dark); transition: background .25s; }
.niche svg { width: 30px; height: 30px; margin-top: 12px; }
.svc:nth-child(3n+2) .niche { background: var(--feruza-deep); }
.svc:nth-child(3n) .niche { background: var(--zar-deep); }
.svc:hover .niche { background: var(--lapis-deep) var(--frieze, none) center / 26px 26px; }
.svc h3 { font-size: 27px; }
.svc p { font-size: 15px; color: var(--text-soft); margin-top: 8px; }
.svc a { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--lapis); text-decoration: none; border-bottom: 2px solid var(--zar); padding-bottom: 2px; }
.svc a:hover { color: var(--feruza-deep); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .svc:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc:nth-child(n) { padding-left: 0; border-left: 0; } }

.services .wrap { padding-bottom: clamp(40px, 6vw, 72px); }
.fac { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.h-sub { font-size: clamp(28px, 3.6vw, 46px); text-transform: uppercase; margin-top: 12px; }
.fac-text p { color: var(--text-soft); margin-top: 12px; max-width: 44ch; }
.fac-text .chips { margin-top: 20px; } .fac-text .btn { margin-top: 22px; }
.fac-text small { display: block; margin-top: 12px; color: var(--text-soft); font-size: 12.5px; }
.fac-frame { padding: 10px; background: var(--lapis-deep) var(--frieze, none) center / 34px 34px; box-shadow: 14px 14px 0 var(--zar); }
@media (max-width: 860px) { .fac { grid-template-columns: minmax(0, 1fr); } .fac-frame { box-shadow: 8px 8px 0 var(--zar); } }

/* ================= МАСТЕРСКАЯ (AR) ================= */
.studio { background: var(--ink); color: var(--on-dark); }
.studio .wrap { padding-block: clamp(56px, 8vw, 104px); }
.studio .label { color: var(--zar); }
.studio .lede { color: var(--on-dark-soft); }
.st-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: 'stage side' 'sum side'; grid-template-rows: auto 1fr; gap: 24px 28px; margin-top: 36px; align-items: start; }
.st-stage { grid-area: stage; } .st-side { grid-area: side; } .st-sum { grid-area: sum; }
.st-stage { background: var(--ink-2); border: 1px solid var(--line-dark); }
.st-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 14px; }
.st-bar + .st-bar { border-top: 1px solid var(--line-dark); }
.seg { display: inline-flex; border: 1px solid var(--line-dark); }
.seg button, .seg label { padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--on-dark-soft); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; white-space: nowrap; }
.seg button + button, .seg button + label, .seg label + button { border-left: 1px solid var(--line-dark); }
.seg button[aria-pressed="true"] { background: var(--feruza); color: var(--lapis-deep); }
.seg label:hover, .seg button:hover { color: var(--on-dark); }
.seg button[aria-pressed="true"]:hover { color: var(--lapis-deep); }
.st-bar .cap { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
#st-canvas { width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
#st-canvas.paint { touch-action: none; }
.st-chip { position: absolute; top: 10px; padding: 4px 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; background: rgba(8,26,71,.82); pointer-events: none; }
.st-chip.a { left: 10px; color: var(--zar); } .st-chip.b { right: 10px; }
.st-hint { padding: 10px 14px; font-size: 13.5px; color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); min-height: 44px; }
.st-hint b { color: var(--feruza); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; background: var(--line-dark); flex: 1 1 140px; min-width: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--zar); transform: rotate(45deg); border: 3px solid var(--ink); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--zar); transform: rotate(45deg); border: 3px solid var(--ink); border-radius: 0; cursor: pointer; }

.st-side { display: grid; gap: 22px; }
.st-side h3 { font-size: 13px; font-family: var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 400; margin-bottom: 10px; }
.mat { text-align: left; border: 1px solid var(--line-dark); background: var(--ink-2); display: grid; align-content: start; transition: border-color .2s, transform .2s; }
.mat:hover { transform: translateY(-2px); border-color: var(--on-dark-soft); }
.mat[aria-pressed="true"] { border-color: var(--zar); box-shadow: 0 0 0 1px var(--zar); }
.mat em { font-style: normal; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; color: var(--zar); white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 36px; height: 36px; transform: rotate(45deg); margin: 6px; border: 2px solid rgba(255,255,255,.25); transition: transform .2s; }
.sw:hover { transform: rotate(45deg) scale(1.12); }
.sw[aria-pressed="true"] { border-color: var(--zar); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--zar); }
.sw-custom { width: 40px; height: 40px; padding: 0; border: 1px dashed var(--on-dark-soft); background: none; margin-left: 6px; cursor: pointer; }
.st-sum { border: 1px solid var(--zar); padding: 16px 18px; display: grid; gap: 12px; }
.st-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 0; align-items: baseline; }
.st-sum dt { color: var(--on-dark-soft); font-size: 14px; } .st-sum dd { margin: 0; font-family: var(--f-mono); font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.st-sum dd.big { font-size: 26px; color: var(--zar); font-weight: 600; }
.st-sum small { color: var(--on-dark-soft); font-size: 12px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.studio .btn-line { color: var(--feruza); --btn-fill: var(--ink); } .studio .btn-line span { color: var(--on-dark); }
.field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-soft); }
.field input[type="number"] { width: 70px; padding: 6px 8px; background: var(--ink); border: 1px solid var(--line-dark); color: var(--on-dark); font-family: var(--f-mono); }
@media (max-width: 980px) { .st-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'side' 'sum'; grid-template-rows: auto; } }

/* ================= СМЕТА ================= */
.smeta { background: var(--feruza); color: var(--lapis-deep); }
.smeta .wrap { padding-block: clamp(56px, 8vw, 104px); }
.sm-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); margin-top: 36px; align-items: start; }
.sm-inputs { display: grid; gap: 26px; }
.sm-row label, .sm-check { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.sm-row output { font-family: var(--f-mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Ползунок «до/после»: невидимый бегунок растянут на всю картинку */
.cmp input[type="range"] { height: 100%; background: transparent; flex: none; touch-action: pan-y; }
.cmp input[type="range"]::-webkit-slider-thumb { width: 46px; height: 46px; }
.cmp input[type="range"]::-moz-range-thumb { width: 46px; height: 46px; }
.smeta input[type="range"] { width: 100%; margin-top: 12px; background: rgba(8,26,71,.25); }
.smeta input[type="range"]::-webkit-slider-thumb { background: var(--lapis-deep); border-color: var(--feruza); }
.smeta input[type="range"]::-moz-range-thumb { background: var(--lapis-deep); border-color: var(--feruza); }
.sm-check { justify-content: flex-start; align-items: center; cursor: pointer; }
.sm-check input { width: 22px; height: 22px; accent-color: var(--lapis-deep); flex: none; }
.sheet { min-width: 0; background: var(--ganch); color: var(--text); padding: clamp(18px, 3vw, 32px); box-shadow: 14px 14px 0 var(--lapis-deep); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--text); padding-bottom: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
.sheet th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--text-soft); text-align: left; padding: 10px 8px 8px 0; border-bottom: 1px solid var(--line-light); }
.sheet td { padding: 12px 8px 12px 0; border-bottom: 1px dashed var(--line-light); vertical-align: top; }
.sheet td small { display: block; color: var(--text-soft); font-size: 12.5px; }
.sheet .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }
.sheet tr.off td { color: #9aa6bd; text-decoration: line-through; } .sheet tr.off small { display: none; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; flex-wrap: wrap; }
.sheet-total b { font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.sheet-total output { font-family: var(--f-mono); font-size: clamp(30px, 4vw, 42px); font-weight: 600; color: var(--lapis); font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.sheet-foot p { font-size: 12.5px; color: var(--text-soft); max-width: 44ch; }
@media (max-width: 860px) { .sm-grid { grid-template-columns: minmax(0, 1fr); } .sheet { box-shadow: 8px 8px 0 var(--lapis-deep); } }

/* ================= КАК РАБОТАЕМ + КОМПАНИЯ ================= */
.company { background: var(--ganch) var(--girih-light, none) center top / 132px 132px; }
.company .wrap { padding-block: clamp(56px, 8vw, 104px); }
.company .label { color: var(--feruza-deep); }
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 40px; }
.how-art { background: #fff; border: 2px solid var(--text); padding: clamp(12px, 2vw, 22px); box-shadow: 12px 12px 0 var(--feruza); }
.how-art svg { width: 100%; height: auto; display: block; }
.bld rect { transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .5s cubic-bezier(.2,.9,.3,1.25); transition-delay: calc(var(--i) * 7ms); }
.bld[data-stage="0"] rect, .bld[data-stage="1"] rect:not(.s1), .bld[data-stage="2"] rect.s3, .bld[data-stage="2"] rect.s4, .bld[data-stage="3"] rect.s4 { opacity: 0; transform: translateY(-140%) scale(.3); transition-delay: 0s; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; border-bottom: 1px solid var(--line-light); }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 62px; border-top: 1px solid var(--line-light); cursor: pointer; transition: background .25s; }
.steps li::before { content: counter(s); position: absolute; top: 16px; left: 4px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--lapis); color: var(--on-dark); font-family: var(--f-mono); font-weight: 600; transition: background .25s, color .25s, transform .4s; clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); }
.steps li.active::before { background: var(--zar); color: var(--lapis-deep); transform: scale(1.15); }
.steps li.active { background: linear-gradient(90deg, rgba(233,182,59,.16), rgba(233,182,59,0)); }
.steps h3 { font-size: 25px; } .steps p { color: var(--text-soft); font-size: 15px; margin-top: 4px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.co-text p { font-size: 17px; max-width: 56ch; margin-top: 16px; color: var(--text-soft); }
.co-text p:first-of-type { color: var(--text); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; }
.plaque { background: var(--lapis); color: var(--on-dark); padding: 8px; background-image: var(--frieze, none); background-size: 34px 34px; }
.plaque-in { background: var(--lapis); padding: clamp(18px, 3vw, 28px); }
.plaque h3 { font-size: 13px; font-family: var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--feruza); }
.plaque dl { margin: 14px 0 0; }
.plaque dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.plaque dt, .plaque dd { margin: 0; }
.plaque dt { color: var(--on-dark-soft); font-size: 14px; flex: none; } .plaque dd { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.plaque dd.mono { font-size: 15px; }
.plaque .note { font-size: 12.5px; color: var(--on-dark-soft); margin-top: 14px; }
.plaque .btn { margin-top: 16px; width: 100%; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } .how-art { box-shadow: 8px 8px 0 var(--feruza); } .co-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= ПОДВАЛ ================= */
.foot { background: var(--lapis-deep) var(--girih-dark, none) center / 132px 132px; color: var(--on-dark); position: relative; overflow: hidden; }
.foot .wrap { position: relative; z-index: 1; }
.foot .wrap { padding-block: clamp(48px, 7vw, 88px) 34px; }
.foot-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-cta h2 { font-size: clamp(32px, 5vw, 60px); text-transform: uppercase; max-width: 14ch; }
.foot-cta h2 em { font-style: normal; color: var(--zar); }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-top: 36px; }
.foot h3 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--feruza); font-weight: 400; margin-bottom: 12px; }
.foot p, .foot li { color: var(--on-dark-soft); font-size: 15px; } .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--zar); }
.foot .tel { font-family: var(--f-mono); font-size: 22px; color: var(--on-dark); display: inline-block; user-select: all; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--on-dark-soft); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

/* нижняя панель связи на телефоне */
.dock { display: none; }
@media (max-width: 760px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--lapis-deep); border-top: 2px solid var(--zar); }
    .dock a, .dock button { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); }
    .dock a { background: var(--zar); color: var(--lapis-deep); }
}

/* ================= ОКНО ЗАЯВКИ ================= */
dialog { border: 0; padding: 0; max-width: min(520px, calc(100vw - 24px)); width: 100%; background: var(--ganch); color: var(--text); }
dialog::backdrop { background: rgba(8,26,71,.78); backdrop-filter: blur(4px); }
.dlg-top { height: 30px; background: var(--lapis-deep) var(--frieze, none) center / 30px 30px repeat-x; }
.dlg-body { padding: 22px clamp(18px, 4vw, 30px) 26px; display: grid; gap: 14px; }
.dlg-body h2 { font-size: 34px; text-transform: uppercase; }
.dlg-body p { color: var(--text-soft); font-size: 15px; }
.dlg-x { position: absolute; top: 38px; right: 12px; width: 40px; height: 40px; font-size: 22px; color: var(--text-soft); }
.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.f input { padding: 13px 14px; border: 1.5px solid var(--text); background: #fff; font-size: 16px; font-weight: 400; }
.f input:focus { outline: 3px solid var(--feruza); outline-offset: 0; }
.err { color: #B3261E; font-size: 13px; font-weight: 600; }
.attach { font-family: var(--f-mono); font-size: 12px; background: var(--ganch-2); padding: 10px 12px; color: var(--text-soft); white-space: pre-line; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-soft); }
.agree input { width: 20px; height: 20px; flex: none; accent-color: var(--lapis); margin-top: 1px; }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg-body .btn { width: 100%; }
.copybox { font-family: var(--f-mono); font-size: 12.5px; white-space: pre-wrap; background: #fff; border: 1px dashed var(--text-soft); padding: 12px; max-height: 190px; overflow: auto; user-select: all; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; background: var(--zar); color: var(--lapis-deep); font-weight: 700; padding: 12px 18px; max-width: 92vw; clip-path: var(--oct-s); opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= МНОГОСТРАНИЧНЫЙ САЙТ ================= */
.nav a[aria-current="page"] { color: var(--on-dark); border-color: var(--zar); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--on-dark); }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
    .burger { display: inline-flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--lapis-deep); border-bottom: 2px solid var(--zar); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; }
    .nav.open { display: flex; }
    .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
}
.top .wrap { position: relative; }
.brand svg { width: 42px; height: 42px; }

/* шапка внутренней страницы */
.phero { background: var(--lapis) var(--girih-dark, none) center top / 132px 132px; color: var(--on-dark); position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 15% 20%, rgba(14,42,107,0) 0%, rgba(8,26,71,.88) 100%); pointer-events: none; }
.phero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 5.5vw, 76px); }
.phero .back { display: inline-block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--feruza); text-decoration: none; margin-bottom: 18px; }
.phero .back:hover { color: var(--zar); }
.phero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.phero .lede { color: var(--on-dark-soft); max-width: 62ch; font-size: clamp(16px, 1.6vw, 19px); }
.phero .hero-cta { margin-top: 26px; }
.phero .btn-line { color: var(--feruza); } .phero .btn-line span { color: var(--on-dark); }
.phero-niche { width: clamp(120px, 17vw, 210px); aspect-ratio: 100 / 124; background: var(--lapis-deep) var(--frieze, none) center / 34px 34px; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; padding: 11px; }
.phero-niche > div { width: 100%; height: 100%; background: var(--feruza); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; display: grid; place-items: center; color: var(--lapis-deep); }
.phero-niche svg { width: 46%; height: auto; margin-top: 14%; }
@media (max-width: 700px) { .phero .wrap { grid-template-columns: minmax(0, 1fr); } .phero-niche { display: none; } }

/* общие секции */
.sec { position: relative; } .sec > .wrap { padding-block: clamp(48px, 7vw, 96px); }
.sec.ganch { background: var(--ganch) var(--girih-light, none) center top / 132px 132px; } .sec.ganch .label { color: var(--feruza-deep); }
.sec.ink { background: var(--ink); color: var(--on-dark); } .sec.ink .label { color: var(--zar); } .sec.ink .lede { color: var(--on-dark-soft); }
.sec.feruza { background: var(--feruza); color: var(--lapis-deep); }
.sec.has-arcade > .wrap { padding-bottom: clamp(36px, 5vw, 64px); }

/* что входит */
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 2px solid var(--text); }
.inc > div { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-content: start; }
.inc > div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line-light); }
.inc i { width: 30px; height: 30px; background: var(--feruza); margin-top: 4px; clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); }
.inc > div:nth-child(3n+2) i { background: var(--zar); } .inc > div:nth-child(3n) i { background: var(--lapis); }
.inc h3 { font-size: 25px; } .inc p { color: var(--text-soft); font-size: 15px; margin-top: 6px; }
@media (max-width: 900px) { .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inc > div:nth-child(n) { padding-left: 0; border-left: 0; } .inc > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); } }
@media (max-width: 600px) { .inc { grid-template-columns: minmax(0, 1fr); } .inc > div:nth-child(n) { padding-left: 0; border-left: 0; } }

/* этапы */
.stg { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: g; }
.stg li { counter-increment: g; position: relative; padding: 40px 18px 0 0; border-top: 2px solid var(--zar); }
.stg li::before { content: counter(g); position: absolute; top: -22px; left: 0; width: 42px; height: 42px; display: grid; place-items: center; background: var(--zar); color: var(--lapis-deep); font-family: var(--f-mono); font-weight: 600; clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); }
.stg h3 { font-size: 23px; } .stg p { color: var(--on-dark-soft); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 980px) { .stg { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; } }
@media (max-width: 520px) { .stg { grid-template-columns: minmax(0, 1fr); } }

/* от чего зависит стоимость */
.pf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.pf ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--lapis-deep); }
.pf li { padding: 16px 0 16px 38px; border-bottom: 1px solid rgba(8,26,71,.25); position: relative; font-size: 18px; font-weight: 500; }
.pf li::before { content: ""; position: absolute; left: 6px; top: 22px; width: 14px; height: 14px; background: var(--lapis-deep); transform: rotate(45deg); }
.pf-card { background: var(--ganch); color: var(--text); padding: clamp(20px, 3vw, 34px); box-shadow: 14px 14px 0 var(--lapis-deep); }
.pf-card h3 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; } .pf-card p { color: var(--text-soft); margin-top: 10px; } .pf-card .btn { margin-top: 20px; }
@media (max-width: 860px) { .pf { grid-template-columns: minmax(0, 1fr); } .pf-card { box-shadow: 8px 8px 0 var(--lapis-deep); } }

/* вопросы и ответы */
.faq { margin-top: 34px; border-top: 2px solid var(--text); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 52px 20px 0; position: relative; font-family: var(--f-display); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--lapis); color: var(--on-dark); font-family: var(--f-mono); font-size: 20px; clip-path: var(--oct-s); transition: background .2s, transform .3s; }
.faq details[open] summary::after { content: "–"; background: var(--zar); color: var(--lapis-deep); transform: rotate(180deg); }
.faq details p { padding: 0 52px 22px 0; color: var(--text-soft); font-size: 16.5px; max-width: 70ch; }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.others a { padding: 10px 16px; background: var(--ganch-2); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; clip-path: var(--oct-s); transition: background .2s, color .2s; }
.others a:hover { background: var(--lapis); color: var(--on-dark); }
.sub-h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-top: clamp(40px, 6vw, 64px); }

/* призыв */
.cta-band { background: var(--lapis) var(--girih-dark, none) center / 132px 132px; color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 56px); text-transform: uppercase; max-width: 18ch; } .cta-band p { color: var(--on-dark-soft); margin-top: 10px; max-width: 52ch; }

/* карточки услуг: вся карточка — ссылка */
.svc h3 a { color: inherit; text-decoration: none; border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: 0; text-transform: none; display: inline; }
.svc h3 a:hover { color: var(--feruza-deep); }
.svc-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-top: 2px solid var(--text); }
.svc-big article { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line-light); }
.svc-big article:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-light); }
.svc-big .niche { width: 96px; } .svc-big .niche svg { width: 38px; height: 38px; }
.svc-big article:nth-child(3n+2) .niche { background: var(--feruza-deep); } .svc-big article:nth-child(3n) .niche { background: var(--zar-deep); }
.svc-big h2 { font-size: clamp(28px, 3vw, 38px); } .svc-big h2 a { color: inherit; text-decoration: none; } .svc-big h2 a:hover { color: var(--feruza-deep); }
.svc-big p { color: var(--text-soft); margin-top: 10px; }
.svc-big ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.svc-big li { font-size: 13px; padding: 4px 10px; background: var(--ganch-2); }
.svc-big .more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--lapis); text-decoration: none; border-bottom: 2px solid var(--zar); padding-bottom: 2px; }
@media (max-width: 860px) { .svc-big { grid-template-columns: minmax(0, 1fr); } .svc-big article:nth-child(n) { padding-left: 0; border-left: 0; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; } .svc-big .niche { width: 72px; } }

/* инструменты на главной */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.tool { display: grid; grid-template-rows: auto 1fr; background: var(--ink-2); border: 1px solid var(--line-dark); text-decoration: none; color: var(--on-dark); transition: transform .25s, border-color .25s; }
.tool:hover { transform: translateY(-4px); border-color: var(--zar); }
.tool .pic { aspect-ratio: 12 / 5; background: var(--lapis-deep) var(--frieze, none) center / 40px 40px; position: relative; overflow: hidden; }
.tool .pic img { width: 100%; height: 100%; object-fit: cover; }
.tool .pic.sheetpic { display: grid; place-items: center; }
.tool .pic.sheetpic div { background: var(--ganch); color: var(--text); font-family: var(--f-mono); font-size: 13px; padding: 14px 18px; width: min(78%, 330px); box-shadow: 8px 8px 0 var(--zar); }
.tool .pic.sheetpic div span { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-light); padding: 5px 0; }
.tool .body { padding: 22px 24px 26px; }
.tool h3 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; } .tool p { color: var(--on-dark-soft); margin-top: 8px; }
.tool b { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--zar); }
@media (max-width: 760px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* контакты */
.ct { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.ct-form { background: #fff; border: 2px solid var(--text); padding: clamp(18px, 3vw, 32px); box-shadow: 12px 12px 0 var(--feruza); display: grid; gap: 14px; }
.f select, .f textarea { padding: 13px 14px; border: 1.5px solid var(--text); background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); }
.f textarea { min-height: 110px; resize: vertical; }
.ct-form .btn { width: 100%; }
.ct-side h3 { font-size: 13px; font-family: var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--feruza-deep); }
.ct-side ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: c; }
.ct-side li { counter-increment: c; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line-light); font-size: 17px; }
.ct-side li::before { content: counter(c); position: absolute; left: 0; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--lapis); color: var(--on-dark); font-family: var(--f-mono); font-weight: 600; clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); }
.ct-side .hours { margin-top: 22px; padding: 16px 18px; background: var(--lapis); color: var(--on-dark); }
.ct-side .hours b { font-family: var(--f-mono); font-size: 22px; display: block; margin-top: 4px; }
@media (max-width: 860px) { .ct { grid-template-columns: minmax(0, 1fr); } .ct-form { box-shadow: 8px 8px 0 var(--feruza); } }
.done-box { display: grid; gap: 14px; }
.done-box h2, .done-box h3 { font-size: 30px; text-transform: uppercase; }

/* компания */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.story p { font-size: 17px; max-width: 58ch; margin-top: 16px; color: var(--text-soft); }
.story p.big { color: var(--text); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* смета без цен */
.sm-row select { width: 100%; margin-top: 10px; padding: 12px 14px; border: 2px solid var(--lapis-deep); background: var(--ganch); color: var(--text); font: inherit; font-weight: 600; }
.sheet-total output { font-size: clamp(22px, 2.6vw, 30px); }
.dock { grid-template-columns: 1fr !important; } .dock button { background: var(--zar); color: var(--lapis-deep) !important; }
.wordmark .shine { animation: shine 7s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 58% { transform: translateX(0) skewX(-18deg); } 92%, 100% { transform: translateX(50px) skewX(-18deg); } }
.wordmark rect.shine { animation-name: shine; animation-duration: 7s; animation-delay: 0s; animation-fill-mode: none; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.tool .pic.sheetpic i { font-style: normal; }

/* --- Obyektlarimiz: real photos & video (added) --- */
.works .wk-lede { max-width: 640px; margin-top: 14px; color: var(--text-soft); font-size: 17px; }
.wk-video { position: relative; margin-top: 32px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 1px solid var(--line-light); }
.wk-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-tag { position: absolute; left: 16px; bottom: 16px; background: var(--zar); color: var(--lapis-deep); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; }
.wk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.wk { margin: 0; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink); }
.wk img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.wk:hover img { transform: scale(1.04); }
.wk figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(8,26,71,.85)); color: #fff; font-size: 14px; line-height: 1.3; }
.wk figcaption b { display: block; font-family: var(--f-mono); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--zar); margin-bottom: 3px; }
@media (max-width: 860px) { .wk-grid, .wk-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .wk-video { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .wk img { transition: none; } }

/* Me'mor — быстрая кнопка Telegram */
.tg-fab{position:fixed;right:22px;bottom:22px;z-index:44;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#229ED9;color:#fff;box-shadow:0 8px 24px rgba(8,26,71,.35);transition:transform .2s}
.tg-fab:hover{transform:scale(1.08)}
.tg-fab svg{width:30px;height:30px}
@media (max-width:860px){.tg-fab{display:none}.dock.has-tg{grid-template-columns:1fr 1fr !important}.dock .dock-tg{background:#1577AD !important;color:#fff !important}}
.nf{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:80px 20px}
.nf b{font-size:clamp(70px,14vw,140px);line-height:1;color:var(--zar);font-family:Forum,serif}
/* Страница контактов: прямые контакты */
.ct-links{margin-top:22px;padding-top:20px;border-top:1px solid var(--line-light)}
.ct-links h3{font-size:13px;font-family:var(--f-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--feruza-deep);margin:0 0 12px}
.ct-links .ct-tel{display:inline-block;font-family:var(--f-mono);font-size:clamp(22px,2.4vw,28px);font-weight:600;color:var(--lapis);text-decoration:none;margin-bottom:10px}
.ct-links .ct-tel:hover{color:var(--feruza-deep)}
.ct-links ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ct-links li a{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;padding:12px 14px;background:#fff;border:1px solid var(--line-light);text-decoration:none;color:var(--text);transition:border-color .2s,transform .2s}
.ct-links li a:hover{border-color:var(--feruza);transform:translateX(3px)}
.ct-links li b{font-weight:600;font-size:15px}
.ct-links li span{font-family:var(--f-mono);font-size:13px;color:var(--feruza-deep)}
.ct-side .ct-links li{padding:0;border:0;counter-increment:none;font-size:inherit}
.ct-side .ct-links li::before{content:none}

/* =====================================================================
   Me’mor Uzbekistan — слой визуальной полировки (polish layer)
   Подключается ПОСЛЕДНИМ. Палитру, шрифты, структуру и тексты не меняет.
   Убрать строку <link … polish.css> — сайт вернётся к исходному виду 1-в-1.
   ===================================================================== */

:root {
    /* зерно ганча / камня: fractalNoise, обесцвеченный */
    --pl-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --pl-ease: cubic-bezier(.2, .7, .2, 1);
    --pl-spring: cubic-bezier(.34, 1.4, .64, 1);
    --pl-shadow-soft: 0 1px 2px rgba(8, 26, 71, .10), 0 8px 18px -6px rgba(8, 26, 71, .22), 0 28px 48px -24px rgba(8, 26, 71, .38);
    --pl-shadow-dark: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 28px -10px rgba(0, 0, 0, .45), 0 36px 60px -30px rgba(0, 0, 0, .55);
    --pl-hairline-light: inset 0 1px 0 rgba(255, 255, 255, .75);
    --pl-hairline-dark: inset 0 1px 0 rgba(255, 255, 255, .09);
}

/* ---------------------------------------------------------------------
   1. ТАКТИЛЬНОСТЬ: зерно материала на крупных фонах
   --------------------------------------------------------------------- */
.hero::after, .phero::after, .cta-band::after, .foot::after,
.sec.ganch::after, .sec.ink::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: var(--pl-grain) 0 0 / 220px 220px;
}
.hero::after, .phero::after, .cta-band::after, .foot::after, .sec.ink::after { opacity: .045; mix-blend-mode: soft-light; }
.sec.ganch::after { opacity: .035; mix-blend-mode: multiply; }
/* содержимое — над зерном (у .hero/.phero/.cta-band это уже так) */
.sec.ganch > .wrap, .sec.ink > .wrap, .foot > .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   1b. Глубина карточек: мягкие многослойные тени + блик по верхней грани.
       Фирменные «жёсткие» смещённые тени сохраняются, мягкая добавляется.
   --------------------------------------------------------------------- */
.tool { box-shadow: var(--pl-hairline-dark), var(--pl-shadow-dark); }
.plaque { box-shadow: var(--pl-hairline-dark), var(--pl-shadow-dark); }
.pf-card { box-shadow: 14px 14px 0 var(--lapis-deep), var(--pl-hairline-light), var(--pl-shadow-soft); }
.ct-form { box-shadow: 12px 12px 0 var(--feruza), var(--pl-hairline-light), var(--pl-shadow-soft); }
.ct-side .hours { box-shadow: var(--pl-hairline-dark), var(--pl-shadow-soft); }
@media (max-width: 860px) {
    .pf-card { box-shadow: 8px 8px 0 var(--lapis-deep), var(--pl-hairline-light), var(--pl-shadow-soft); }
    .ct-form { box-shadow: 8px 8px 0 var(--feruza), var(--pl-hairline-light), var(--pl-shadow-soft); }
}

/* ---------------------------------------------------------------------
   2. ДИНАМИКА
   --------------------------------------------------------------------- */
/* шапка: матовое стекло + тонкая линия при скролле (класс ставит polish.js) */
.top { transition: background-color .35s var(--pl-ease), box-shadow .35s var(--pl-ease); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .top { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
    .top.pl-scrolled { background-color: rgba(8, 26, 71, .82); }
}
.top.pl-scrolled { box-shadow: inset 0 -1px 0 rgba(233, 182, 59, .32), 0 10px 30px -14px rgba(0, 0, 0, .55); }

/* кнопки: блик (sheen) и упругое нажатие */
.btn { transition: transform .25s var(--pl-spring), filter .2s, background .2s; }
.btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 48%, rgba(255, 255, 255, .12) 56%, transparent 70%);
    transform: translateX(-130%);
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
@media (hover: hover) {
    .btn:hover::after { transform: translateX(130%); transition: transform .75s var(--pl-ease); }
}

/* карточки услуг */
.svc { transition: background-color .35s var(--pl-ease); }
.svc .niche, .svc .niche svg, .svc a { transition: transform .35s var(--pl-ease), filter .35s var(--pl-ease), background .3s; }
.svc a { display: inline-block; }
@media (hover: hover) {
    .svc:hover { background-color: rgba(24, 179, 167, .045); }
    .svc:hover .niche { transform: translateY(-3px); filter: drop-shadow(0 8px 10px rgba(8, 26, 71, .28)); }
    .svc:hover .niche svg { transform: translateY(-2px) scale(1.06); }
    .svc:hover a { transform: translateX(3px); }
}

/* инструменты */
.tool { transition: transform .35s var(--pl-ease), border-color .3s, box-shadow .35s var(--pl-ease); }
.tool .pic img { transition: transform .7s var(--pl-ease); }
@media (hover: hover) {
    .tool:hover { transform: translateY(-3px); box-shadow: var(--pl-hairline-dark), 0 0 0 1px rgba(233, 182, 59, .18), var(--pl-shadow-dark); }
    .tool:hover .pic img { transform: scale(1.04); }
}

/* галерея реальных работ — зум внутри рамки, сетка не двигается */
.wk { isolation: isolate; box-shadow: var(--pl-shadow-soft); }
.wk::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); z-index: 2; }
.wk img { transition: transform .9s var(--pl-ease); will-change: transform; }
.wk figcaption {
    background: linear-gradient(to top, rgba(8, 26, 71, .92) 0%, rgba(8, 26, 71, .72) 45%, rgba(8, 26, 71, .28) 78%, rgba(8, 26, 71, 0) 100%);
    padding-top: 40px; z-index: 1; transition: padding .45s var(--pl-ease);
}
@media (hover: hover) { .wk:hover figcaption { padding-bottom: 15px; } }
.wk-video { box-shadow: var(--pl-shadow-soft); }

/* слайдер «До / После» */
.cmp .bar { box-shadow: 0 0 0 1px rgba(8, 26, 71, .25), 0 0 16px rgba(233, 182, 59, .55); }
.cmp .knob {
    background: radial-gradient(circle at 38% 30%, #F4CF6E 0%, var(--zar) 55%, #D29E22 100%);
    transition: transform .3s var(--pl-spring);
}
@media (hover: hover) { .cmp:hover .knob { transform: translate(-50%, -50%) scale(1.07); } }
.cmp:active .knob { transform: translate(-50%, -50%) scale(.93); transition-duration: .1s; }
.chip { transition: background .2s, color .2s, transform .2s var(--pl-spring), box-shadow .2s; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12); }

/* модальное окно заявки */
dialog[open] { animation: pl-dlg .38s var(--pl-ease); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
dialog[open]::backdrop { animation: pl-fade .3s ease; }
dialog::backdrop { background: rgba(6, 18, 52, .72); -webkit-backdrop-filter: blur(8px) saturate(.85); backdrop-filter: blur(8px) saturate(.85); }
@keyframes pl-dlg { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   3. ТИПОГРАФИКА И ДЕТАЛИ
   --------------------------------------------------------------------- */
.h-sec, h1 { text-wrap: balance; }
.lede, .co-text p, .faq details p { text-wrap: pretty; }
.mono, .sheet .num, .plaque dd, .st-sum dd, .sm-row output { font-variant-numeric: tabular-nums; }

.faq summary { transition: color .25s; }
.faq summary::after { transition: transform .35s var(--pl-ease), background .25s, color .25s; }
@media (hover: hover) { .faq summary:hover { color: var(--lapis); } }
.faq details[open] p { animation: pl-faq .4s var(--pl-ease); }
@keyframes pl-faq { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* появление блоков при скролле (классы ставит polish.js только ниже первого экрана) */
.pl-rv { opacity: 0; transform: translateY(18px); }
.pl-rv.pl-in { opacity: 1; transform: none; transition: opacity .7s var(--pl-ease), transform .8s var(--pl-ease); transition-delay: var(--pl-d, 0ms); }

/* ---------------------------------------------------------------------
   4. ДОСТУПНОСТЬ / МОБИЛКА
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .pl-rv { opacity: 1 !important; transform: none !important; }
    .btn::after { display: none; }
    dialog[open], dialog[open]::backdrop, .faq details[open] p { animation: none !important; }
}
@media (max-width: 760px) {
    .hero::after, .phero::after, .cta-band::after, .foot::after, .sec.ganch::after, .sec.ink::after { background-size: 180px 180px; }
}
@media print { .hero::after, .phero::after, .cta-band::after, .foot::after, .sec.ganch::after, .sec.ink::after, .btn::after { display: none; } }

/* ---------------------------------------------------------------------
   5. ЛОГОТИП (Ravoq Engineering kit) в шапке
   --------------------------------------------------------------------- */
.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 560px) { .brand img { height: 32px; } }

.i18n-wait body{visibility:hidden}

/* ---- Мастерская v6: много материалов, инструменты, своё фото ---- */
.st-canvas-wrap { background: #05091c; display: flex; justify-content: center; }
.st-canvas-box { position: relative; aspect-ratio: var(--ar, 1.7143); width: 100%; max-width: calc(78vh * var(--ar, 1.7143)); background: #05091c; }
#st-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,9,28,.35); pointer-events: none; }
.st-busy span { background: var(--zar); color: var(--lapis-deep); font-weight: 700; font-size: 13px; padding: 8px 14px; clip-path: var(--oct-s); }
.seg label + label { border-left: 1px solid var(--line-dark); }
.seg { max-width: 100%; }
.st-photo-btn svg { flex: none; }
.st-photo-btn.on { background: var(--feruza); color: var(--lapis-deep); }
.st-photo-seg { border-color: var(--zar); }
.st-photo-seg label { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) and (min-width: 981px) { .st-cam { display: none !important; } }
.st-tools { overflow-x: auto; scrollbar-width: thin; }
.st-opts:not(:has(> :not([hidden]))) { display: none; }
.st-rng { flex: 1 1 220px; }
.st-rng input { flex: 1 1 120px; }
.st-side { grid-template-columns: minmax(0, 1fr); } .st-side > *, .st-stage, .st-sum { min-width: 0; }
.st-row2 { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.st-note { flex: 1 1 100%; font-size: 12px; color: var(--on-dark-soft); margin-top: -4px; }
#st-zones button { min-width: 44px; justify-content: center; }
#st-zones button::after { content: ""; width: 9px; height: 9px; background: var(--zc, #888); transform: rotate(45deg); opacity: .25; }
#st-zones button.has::after { opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.st-side h3 #st-mat-name { color: var(--on-dark); }
.st-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.st-groups button { padding: 6px 11px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-dark); color: var(--on-dark-soft); white-space: nowrap; }
.st-groups button:hover { color: var(--on-dark); }
.st-groups button[aria-pressed="true"] { background: var(--zar); border-color: var(--zar); color: var(--lapis-deep); }
.mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mat canvas { width: 100%; aspect-ratio: 180 / 116; }
.mat span { display: block; padding: 6px 8px 7px; font-size: 12px; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.mat b { font-weight: 600; }
.sw { width: 32px; height: 32px; margin: 5px; }
.st-adj { border: 1px solid var(--line-dark); }
.st-adj summary { cursor: pointer; padding: 11px 14px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.st-adj summary:hover { color: var(--on-dark); }
.st-sliders { display: grid; gap: 14px; padding: 4px 14px 16px; }
.st-sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; font-size: 13px; color: var(--on-dark-soft); }
.st-sl output { font-family: var(--f-mono); font-size: 12px; color: var(--zar); }
.st-sl input[type="range"] { grid-column: 1 / -1; width: 100%; }
.st-sum small + small { margin-top: -4px; }
.toast.show { opacity: 1; }
@media (max-width: 980px) {
    /* телефон: кадр прилипает сверху, материалы сразу под ним, остальное листается */
    .st-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .st-stage, .st-side { display: contents; }
    .st-stage > *, .st-side > * { background: var(--ink-2); border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); }
    .st-side > * { padding: 14px 12px; border-top: 1px solid var(--line-dark); }
    .st-src { order: 1; border-top: 1px solid var(--line-dark); }
    .st-canvas-wrap { order: 2; position: sticky; top: var(--st-top, 0px); z-index: 6; box-shadow: 0 10px 18px -12px rgba(0,0,0,.8); }
    .st-cmp { order: 3; } .st-b-mat { order: 4; } .st-b-col { order: 5; } .st-b-opt { order: 6; } .st-toolbar { order: 7; } .st-opts { order: 8; } .st-hint { order: 9; }
    .st-b-set { order: 10; } .st-row2 { order: 11; } .st-adj { order: 12; border-bottom: 0; } #st-frames-box { order: 13; } .st-sum { order: 14; margin-top: 18px; }
    .st-side > .st-adj { padding: 0; }
    .st-canvas-box { max-width: calc(48vh * var(--ar, 1.7143)); }
    .st-bar { padding: 10px 12px; gap: 8px 12px; }
    .st-toolbar .seg { flex: 0 1 auto; }
    .st-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
    .st-groups::-webkit-scrollbar { display: none; }
    .mats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 124px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
    .mat { scroll-snap-align: start; }
    .mat:hover { transform: none; }
    .swatches { flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: none; }
    .swatches::-webkit-scrollbar { display: none; }
    .sw, .sw-custom { flex: none; }
    .st-side { gap: 18px; }
}

/* ---- Мастерская v7: шторка на фото, A/B, сочетания, шов, раскладка ---- */
.st-split-h { position: absolute; top: 50%; left: 62%; width: 42px; height: 42px; margin: -21px 0 0 -21px; background: var(--zar); color: var(--lapis-deep); display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: .12em; padding-left: .12em; cursor: ew-resize; touch-action: none; clip-path: var(--oct-s); z-index: 2; }
.st-cmp input[type="range"] { flex: 1 1 120px; }
.seg button:disabled { opacity: .35; cursor: default; }
.st-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.st-sets button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 7px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-dark); color: var(--on-dark); white-space: nowrap; }
.st-sets button:hover { border-color: var(--zar); }
.st-sets i { display: inline-flex; border: 1px solid rgba(255,255,255,.3); } .st-sets s { width: 11px; height: 18px; display: block; }
.st-b-opt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.st-b-opt > *, .st-sl-seg, .st-sliders > * { min-width: 0; }
.st-sliders { grid-template-columns: minmax(0, 1fr); }
.st-b-opt[hidden] { display: none; }
.st-joints { display: flex; flex-wrap: wrap; gap: 6px; }
.jn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-dark); color: var(--on-dark-soft); white-space: nowrap; }
.jn s { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.4); display: block; }
.jn[aria-pressed="true"] { border-color: var(--zar); color: var(--on-dark); box-shadow: 0 0 0 1px var(--zar); }
.st-sl-seg { display: grid; gap: 8px; font-size: 13px; color: var(--on-dark-soft); }
.st-hq { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-soft); }
@media (max-width: 980px) { .st-sets, .st-joints { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .st-sets::-webkit-scrollbar, .st-joints::-webkit-scrollbar { display: none; } }

/* палец на кадре работает только с кадром: страница не прокручивается, текст не выделяется, меню «сохранить картинку» не всплывает */
.st-canvas-box, .st-canvas-box canvas, .st-split-h { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.st-canvas-box { overscroll-behavior: contain; }
.st-tg-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--feruza); font-size: 14px; color: var(--on-dark); }
.st-tg-panel[hidden] { display: none; }

/* сцены и демо-объекты: на узком экране переносятся на вторую строку, а не прячутся за край */
#st-scenes { flex-wrap: wrap; overflow: visible; }
#st-scenes button { flex: 1 1 auto; justify-content: center; }
@media (max-width: 980px) { #st-scenes button { border-bottom: 1px solid var(--line-dark); margin-bottom: -1px; } }
