/* ШРИФТЫ: лежат рядом с сайтом, с чужих серверов ничего не грузится */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('cormorantgaramond-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('cormorantgaramond-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('cormorantgaramond-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; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('cormorantgaramond-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; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('jost-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('jost-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; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('jost-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 {
--sans: 'Jost', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
--ivory: #F4EFE8;
--paper: #FCFAF6;
--sand: #E2D6C6;
--ink: #1B1714;
--ink-2: #4A413A;
--ink-3: #2E2722;
--line: #CFC2B1;
--field: #7A6E63;
--brass: #73531C;
--gold: #E6CB94;
--cream: #F7F2EA;
--cream-2: #D8CEC1;
--error: #A32A1E;
--ease: cubic-bezier(.2,.7,.2,1);
--nav-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--ivory); color: var(--ink); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brass); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; }
h2 { font-size: clamp(38px, 4.6vw, 64px); }
h3 { font-size: 30px; line-height: 1.12; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 3000; background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 24px; }
.skip-link:focus { top: 16px; color: var(--cream); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: 44px; }
.section-desc { color: var(--ink-2); max-width: 32em; margin-top: 14px; }
.dark { background: linear-gradient(165deg, #2A221C 0%, #1B1714 45%, #14110F 100%); color: var(--cream); }
.dark .section-desc { color: var(--cream-2); }
.dark a { color: var(--gold); }
.dark a:hover { color: var(--cream); }
.fineprint { font-size: 14px; color: var(--ink-2); max-width: 44em; }
.link-strong { font-size: 18px; font-weight: 500; display: inline-block; padding: 12px 0; }

/* СТЕКЛО */
.glass { background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 44px rgba(52,36,20,.14); }
.glass-dark { background: rgba(27,23,20,.5); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass { background: rgba(255,255,255,.92); }
.glass-dark { background: rgba(27,23,20,.86); }
}

/* КНОПКИ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 30px; border: 1px solid transparent; font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; transition: background-position .9s, background-color .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s; }
.btn-lg { min-height: 60px; padding: 0 38px; font-size: 18px; }
.btn-dark { color: var(--cream); background: linear-gradient(110deg, #1B1714 0%, #1B1714 40%, #4A3B2C 50%, #1B1714 60%, #1B1714 100%); background-size: 260% 100%; background-position: 100% 0; }
.btn-dark:hover { color: var(--cream); background-position: 0 0; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27,23,20,.3); }
.btn-dark:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--field); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-ghost-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.icon-btn { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 24px; border: none; background: transparent; cursor: pointer; transition: background-color .25s; }
.icon-btn:hover { background: rgba(27,23,20,.1); }
.icon-btn svg, .chat-fab svg, .shape-tick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip { width: 44px; height: 44px; border: 1px solid #6E6258; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.msg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.msg-btn { display: flex; align-items: center; justify-content: center; min-height: 58px; background: rgba(255,255,255,.6); border: 1px solid #6E6258; border-radius: 30px; color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s, transform .3s; }
.msg-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); }
[data-contact][hidden], [data-phone-link][hidden], [data-phone-row][hidden] { display: none !important; }

/* ШАПКА */
.nav { position: fixed; top: 16px; left: 24px; right: 24px; z-index: 1000; min-height: var(--nav-h); padding: 8px 12px 8px 28px; border-radius: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; transition: box-shadow .3s, background-color .3s; }
.nav.scrolled { background: rgba(255,255,255,.74); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 36px rgba(52,36,20,.2); }
.nav-logo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .26em; color: var(--ink); text-decoration: none; }
.nav-menu { display: flex; gap: 4px 26px; font-size: 16px; }
.nav-menu > a { position: relative; color: var(--ink); text-decoration: none; padding: 12px 0; white-space: nowrap; }
.nav-menu > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nav-menu > a:hover::after { transform: scaleX(1); }
.nav-menu-extra { display: none; }
.nav-right { display: flex; align-items: center; gap: 8px 18px; }
.nav-chips { display: flex; gap: 6px; }
.nav-phone { font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 12px 10px 0; white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; border: none; background: transparent; border-radius: 24px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ПЕРВЫЙ ЭКРАН */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; display: flex; align-items: stretch; background: radial-gradient(110% 90% at 0% 0%, #FCFAF6 0%, #F1EAE0 52%, #E2D6C6 100%); overflow: hidden; }
.hero-text { flex: 1 1 50%; min-width: 0; padding: 140px 48px 72px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.01em; max-width: 9.5em; }
.hero-desc { font-size: 19px; color: var(--ink-2); max-width: 27em; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.hero-photo { flex: 1 1 46%; min-width: 0; position: relative; margin: 16px 24px 24px 0; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 70px rgba(52,36,20,.22); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-facts { position: absolute; left: 20px; right: 20px; bottom: 20px; border-radius: 22px; padding: 18px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-facts b { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; white-space: nowrap; }
.hero-facts span { font-size: 15px; color: var(--ink-3); }

/* ГОТОВЫЕ КУХНИ */
.accordion { display: flex; gap: 12px; height: 540px; }
.acc-item { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; border-radius: 24px; border: none; padding: 0; background: #14110F; cursor: pointer; text-align: left; color: var(--cream); transition: flex-grow .75s var(--ease); }
.acc-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.75); transform: scale(1.06); transition: filter .75s, transform 1.4s var(--ease); }
.acc-cap { position: absolute; left: 16px; bottom: 16px; width: 340px; max-width: calc(100% - 32px); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s; }
.acc-cap b { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; }
.acc-cap span { font-size: 16px; }
.acc-cap em { font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--gold); }
.acc-item:hover, .acc-item:focus-visible, .accordion:not(:hover):not(:focus-within) .acc-item:first-child { flex-grow: 4.4; }
.acc-item:hover img, .acc-item:focus-visible img, .accordion:not(:hover):not(:focus-within) .acc-item:first-child img { filter: none; transform: scale(1); }
.acc-item:hover .acc-cap, .acc-item:focus-visible .acc-cap, .accordion:not(:hover):not(:focus-within) .acc-item:first-child .acc-cap { opacity: 1; transform: none; transition-delay: .3s; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.project-grid[hidden] { display: none; }
.project-card { position: relative; border: none; padding: 0; background: #14110F; border-radius: 20px; overflow: hidden; cursor: pointer; text-align: left; color: var(--cream); aspect-ratio: 4 / 5; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.project-card:hover img { transform: scale(1.06); filter: brightness(.8); }
.project-card-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.project-card-cap b { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.12; }
.project-card-cap span { font-size: 15px; }
.project-card-cap em { font-style: normal; color: var(--gold); font-weight: 500; }

/* РАСЧЁТ */
.calculator { background: radial-gradient(100% 90% at 100% 0%, #FCFAF6 0%, #F1EAE0 55%, #E6DBCC 100%); }
.quiz-progress { width: 260px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--ink-2); }
.quiz-progress-bar { height: 6px; background: #D5C9B9; border-radius: 3px; overflow: hidden; }
.quiz-progress-bar div { height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s var(--ease); }
.quiz-step { display: none; border: none; min-width: 0; }
.quiz-step.active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-step legend { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 28px; padding: 0; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.shape-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 940px; }
.shape-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.shape-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shape-photo { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.shape-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shape-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px 14px; }
.shape-info b { display: block; font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.1; }
.shape-info small { font-size: 15px; color: var(--ink-2); }
.plan { width: 60px; height: 49px; flex: none; }
.plan-room { fill: #fff; stroke: var(--ink-2); stroke-width: 2; }
.plan-unit { fill: #A98C5E; }
.shape-tick { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 22px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s cubic-bezier(.2,1.4,.4,1); }
.shape-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(52,36,20,.2); }
.shape-card:hover .shape-photo img { transform: scale(1.06); }
.shape-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 26px 56px rgba(52,36,20,.24); }
.shape-card:has(input:checked) .shape-tick { opacity: 1; transform: scale(1); }
.shape-card:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 3px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.quiz-step legend + .pill-row { margin-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px; background: rgba(255,255,255,.6); border: 1px solid #6E6258; border-radius: 28px; font-size: 17px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pill input { width: 20px; height: 20px; accent-color: var(--brass); }
.pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pill:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ПОЛЯ */
.field { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.field small { font-size: 15px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 0 18px; background: #fff; border: 1px solid var(--field); border-radius: 14px; font-size: 18px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field textarea { padding: 12px 18px; resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(115,83,28,.35); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163,42,30,.18); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin-bottom: 20px; }
.field-grid:empty { display: none; }
.field-error { font-size: 15px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.form-error { display: none; margin-top: 16px; font-size: 16px; color: var(--error); font-weight: 500; }
.form-error.show { display: block; }
.consents { display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 0; accent-color: var(--ink); }
.quiz-thanks { text-align: center; padding: 72px 20px; max-width: 620px; margin: 0 auto; }
.quiz-thanks h3 { font-size: 44px; margin-bottom: 16px; }
.quiz-thanks p { color: var(--ink-2); }

/* ЭТАПЫ */
.process { background: var(--paper); }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.process-steps li { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.process-steps li:last-child { border-right: none; margin-right: 0; }
.p-num { display: block; font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1; color: var(--brass); margin-bottom: 18px; }
.process-steps h3 { font-size: 28px; margin-bottom: 10px; }
.process-steps p { color: var(--ink-2); font-size: 17px; }

/* КОЛЛЕКЦИИ */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { display: grid; grid-template-columns: 148px minmax(0, 1fr); height: 420px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 36px rgba(52,36,20,.1); }
.tile-colors { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; }
.tile-color { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 44px; padding: 6px 4px; border: none; border-radius: 14px; background: transparent; cursor: pointer; font-size: 13px; line-height: 1.2; text-align: center; color: var(--ink-3); transition: background-color .25s; }
.tile-color:hover { background: var(--ivory); }
.dot { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(27,23,20,.2); transition: box-shadow .3s, transform .3s var(--ease); }
.tile-color[aria-pressed="true"] { font-weight: 500; color: var(--ink); }
.tile-color[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); transform: scale(.94); }
.tile-more .dot { background: var(--ivory); font-size: 16px; font-weight: 500; }
.tile-photo { position: relative; border: none; padding: 0; overflow: hidden; cursor: pointer; background: #fff; text-align: left; color: var(--cream); }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.tile-photo.is-fasad img { object-fit: contain; padding: 20px 20px 96px; }
.tile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,15,0) 55%, rgba(20,17,15,.8) 100%); }
.tile-photo:focus-visible { outline-offset: -4px; }
.tile-cap { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.tile-cap b { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; }
.tile-cap span { font-size: 15px; }
.tile-photo:hover img { transform: scale(1.05); filter: brightness(.86); }

/* МОДУЛИ */
.modules { background: var(--paper); }
.module-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.module-card { border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 20px 20px 22px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 14px; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.module-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(52,36,20,.16); border-color: var(--ink); }
.module-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.module-card b { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.12; }
.module-card span { font-size: 15px; color: var(--ink-2); }
.module-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.module-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; cursor: zoom-in; text-align: center; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-3); }
.module-item:hover { border-color: var(--ink); }
.module-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

/* ДОСТАВКА */
.delivery-strip { margin-top: 40px; padding: 28px 32px; border-radius: 24px; background: var(--ivory); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.delivery-strip h3 { font-size: 28px; }
.delivery-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.delivery-cols p { font-size: 16px; color: var(--ink-2); }
.delivery-cols .delivery-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; color: var(--ink); }
.delivery-line b { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1; white-space: nowrap; }

/* ВОПРОСЫ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 16px 0; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font-family: var(--sans); font-weight: 400; font-size: 30px; line-height: 1; color: var(--brass); transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }

/* КОНТАКТЫ */
.contact { background: radial-gradient(70% 80% at 85% 30%, #D9C3A3 0%, rgba(217,195,163,0) 60%), radial-gradient(60% 70% at 100% 90%, #BFA98C 0%, rgba(191,169,140,0) 65%), linear-gradient(180deg, #FBF8F3 0%, #EFE7DB 100%); }
.contact-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info .section-desc { margin-top: -14px; }
.contact-list { max-width: 460px; }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 0 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--ink-2); font-size: 16px; }
.contact-list dd a { color: var(--ink); }
.contact-phone { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; text-decoration: none; }
.contact-form, .contact-success { border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.contact-form[hidden], .contact-success[hidden] { display: none; }
.contact-form h3, .contact-success h3 { font-size: 34px; }
.contact-form .form-error { margin-top: 0; }

/* ПОДВАЛ */
.footer { padding: 48px 0 110px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 96px; margin-bottom: 28px; }
.footer-logo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .26em; margin-bottom: 8px; }
.footer-top p { font-size: 15px; color: var(--cream-2); max-width: 22em; }
.footer nav { display: flex; flex-direction: column; font-size: 16px; }
.footer nav a { padding: 8px 0; }
.footer-bottom { border-top: 1px solid #4A3F36; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--cream-2); max-width: 860px; }

/* ПЕРЕПИСКА */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .4s, transform .4s var(--ease), visibility 0s; }
/* на первом экране кнопка спрятана, чтобы не закрывать фото; появляется при прокрутке */
.js .chat:not(.show) { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease), visibility 0s .4s; }
.chat-fab { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 26px 0 22px; border-radius: 30px; border: 1px solid rgba(255,255,255,.3); background: var(--ink); color: var(--cream); font-weight: 500; font-size: 17px; cursor: pointer; box-shadow: 0 14px 34px rgba(27,23,20,.35); transition: transform .3s, background-color .3s; }
.chat-fab:hover { transform: translateY(-2px); background: #33281F; }
.chat-panel { width: 360px; max-width: calc(100vw - 32px); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: rgba(255,255,255,.86); animation: stepIn .35s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chat-head b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; }
.chat-head span { font-size: 15px; color: var(--ink-2); }
.chat-bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: 12px 16px; font-size: 16px; line-height: 1.45; }
.chat-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-links .msg-btn { min-height: 50px; font-size: 16px; background: #fff; }
.chat-panel .link-strong { font-size: 16px; padding: 4px 0; }

/* ОКНА */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(27,23,20,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 32px 16px; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; animation: fade .3s; }
.modal[hidden], .lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box { position: relative; width: 100%; max-width: 1120px; margin: auto; background: var(--paper); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; animation: stepIn .45s var(--ease); }
.modal-wide { display: block; max-width: 1000px; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,.85); }
.modal-media { background: #EDE6DB; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; cursor: zoom-in; background: #fff; }
#collectionModal .modal-media > img { aspect-ratio: 1 / 1; object-fit: contain; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.tabs { display: flex; gap: 8px; }
.tab { flex: 1; min-height: 48px; border: 1px solid var(--field); border-radius: 24px; background: transparent; cursor: pointer; font-size: 16px; transition: background-color .3s, color .3s; }
.tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.modal-body { padding: 44px 40px 40px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal-body h3 { font-size: 40px; padding-right: 40px; }
.modal-sub { font-size: 16px; color: var(--ink-2); }
.modal-lead { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--brass); }
.modal-price { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.modal-price:empty { display: none; }
.modal-body .btn { margin-top: 10px; align-self: flex-start; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 0 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec-list dt { color: var(--ink-2); }
.swatch-cap { font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.swatch-cap b { color: var(--ink); font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 4px; border: 1px solid var(--line); border-radius: 24px; background: #fff; cursor: pointer; font-size: 15px; transition: border-color .25s; }
.swatch .dot { width: 38px; height: 38px; }
.swatch:hover, .swatch[aria-current="true"] { border-color: var(--ink); }
.swatch[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(20,17,15,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 16px 24px; cursor: zoom-out; animation: fade .3s; }
.lightbox img { max-width: 94vw; max-height: 80vh; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox p { color: var(--cream); font-size: 16px; text-align: center; max-width: 90vw; }
.lightbox-close { position: absolute; top: 12px; right: 12px; color: var(--cream); }
.lightbox-close:hover { background: rgba(255,255,255,.16); }

/* ДОКУМЕНТЫ */
.legal { background: var(--paper); padding: 140px 0 80px; }
.legal .wrap { max-width: 880px; }
.legal h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 8px; }
.legal .legal-date { color: var(--ink-2); margin-bottom: 36px; }
.legal h2 { font-size: 30px; margin: 40px 0 14px; }
.legal p, .legal li { font-size: 17px; margin-bottom: 12px; color: var(--ink-3); }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal .legal-back { display: inline-block; margin-bottom: 28px; font-weight: 500; }

/* ПОЯВЛЕНИЕ */
.rise { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.zoom-in { animation: zoomIn 9s cubic-bezier(.2,.6,.2,1) both; }
@keyframes zoomIn { from { transform: scale(1.1); } to { transform: scale(1); } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ПЛАНШЕТ */
@media (max-width: 1180px) {
.nav-menu { gap: 4px 18px; font-size: 15px; }
.nav-chips { display: none; }
.tile { grid-template-columns: 128px minmax(0, 1fr); height: 400px; }
.module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
.wrap { padding: 0 24px; }
section { padding: 72px 0; }
.burger { display: flex; }
.nav { top: 10px; left: 10px; right: 10px; padding: 6px 6px 6px 22px; }
.nav-phone { display: none; }
.nav-menu { position: fixed; top: 84px; left: 10px; right: 10px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; flex-direction: column; gap: 0; padding: 12px 24px 24px; border-radius: 28px; background: rgba(252,250,246,.97); border: 1px solid #fff; box-shadow: 0 30px 70px rgba(27,23,20,.3); font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; }
.nav-menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu > a { min-height: 58px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: 24px; }
.nav-menu > a::after { display: none; }
.nav-menu-extra { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.nav-menu-extra p { font-size: 16px; color: var(--ink-2); }
.hero { flex-direction: column; min-height: 0; }
.hero-text { padding: 124px 24px 36px; flex: none; }
.hero-photo { flex: none; height: 520px; margin: 0 16px 16px; border-radius: 28px; }
.accordion { height: 460px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px; }
.acc-item, .acc-item:hover, .accordion:not(:hover):not(:focus-within) .acc-item:first-child { flex: 0 0 82%; scroll-snap-align: center; }
.acc-item img { filter: none; transform: none; }
.acc-cap { opacity: 1; transform: none; }
.shape-grid { grid-template-columns: 1fr; gap: 16px; }
.shape-card { flex-direction: row; align-items: stretch; }
.shape-photo { flex: 0 0 42%; aspect-ratio: auto; }
.shape-info { flex: 1; padding: 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.shape-tick { top: 10px; right: 10px; }
.delivery-strip { grid-template-columns: 1fr; }
.process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-steps li:nth-child(2) { border-right: none; margin-right: 0; }
.tile-grid { grid-template-columns: 1fr; }
.faq-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
.modal-box { grid-template-columns: 1fr; }
.modal-media > img { aspect-ratio: 4 / 3; }
.modal-body { padding: 28px 24px 28px; }
.modal-body h3 { font-size: 34px; }
}
/* ТЕЛЕФОН */
@media (max-width: 640px) {
body { font-size: 17px; }
.wrap { padding: 0 16px; }
section { padding: 60px 0; }
.section-head { margin-bottom: 28px; }
.nav-logo { font-size: 24px; }
.hero-text { padding: 108px 16px 28px; gap: 20px; }
.hero h1 { font-size: 40px; }
.hero-desc { font-size: 17px; }
.hero-buttons .btn { width: 100%; }
.hero-photo { height: 440px; margin: 0 12px 12px; }
.hero-facts { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; gap: 10px; }
.hero-facts b { font-size: 22px; }
.hero-facts span { font-size: 13px; }
.accordion { margin: 0 -16px; padding: 0 16px; height: 420px; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card-cap b { font-size: 18px; }
.project-card-cap span { font-size: 13px; }
.pill { min-height: 52px; padding: 0 20px; }
.quiz-nav .btn { flex: 1; padding: 0 16px; }
.field-grid { grid-template-columns: 1fr; gap: 16px; }
.process-steps { grid-template-columns: 1fr; }
.process-steps li { border-right: none; margin-right: 0; padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
.process-steps li:last-child { border-bottom: none; }
.p-num { font-size: 48px; margin-bottom: 10px; }
.module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { grid-template-columns: 1fr; height: auto; }
.tile-photo { order: -1; aspect-ratio: 4 / 3; }
.tile-colors { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 10px; gap: 2px; }
.tile-color { flex: 0 0 calc(25% - 2px); }
.dot { width: 46px; height: 46px; }
.tile-cap { left: 14px; right: 14px; bottom: 12px; }
.tile-cap b { font-size: 26px; }
.module-card { padding: 14px; }
.module-card b { font-size: 20px; }
.delivery-strip { padding: 22px 20px; margin-top: 28px; }
.delivery-cols { grid-template-columns: 1fr; }
.contact-form, .contact-success { padding: 24px; border-radius: 24px; }
.faq-list summary { font-size: 22px; }
.faq-list details p { padding-right: 0; }
.spec-list > div { grid-template-columns: 1fr; }
.chat { right: 12px; bottom: 12px; }
.chat-fab { padding: 0; width: 60px; justify-content: center; }
.chat-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.footer { padding-bottom: 96px; }
.legal { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
.js .reveal { opacity: 1; transform: none; }
}

/* ГОТОВЫЕ РЕШЕНИЯ (товары) */
.products { background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-btn { min-height: 44px; padding: 0 20px; border: 1px solid var(--field); border-radius: 22px; background: transparent; cursor: pointer; font-size: 16px; transition: background-color .25s, color .25s, border-color .25s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; border: none; padding: 0; background: #fff; border-radius: 24px; overflow: hidden; cursor: pointer; text-align: left; box-shadow: 0 14px 36px rgba(52,36,20,.1); transition: transform .45s var(--ease), box-shadow .45s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(52,36,20,.18); }
.product-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #EDE6DB; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.product-card:hover .product-photo img { transform: scale(1.05); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; background: #A32A1E; color: #fff; font-size: 14px; font-weight: 500; }
.product-photo .badge { position: absolute; top: 14px; left: 14px; }
.product-info { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.product-info small { font-size: 14px; color: var(--ink-2); }
.product-info b { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 6px; }
.product-price strong { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; }
.product-price s, .product-price-big s { color: var(--ink-2); font-size: 17px; }
.product-price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.product-price-big strong { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.product-part { display: flex; flex-direction: column; gap: 14px; }
.product-part h4 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.product-desc { white-space: pre-line; color: var(--ink-3); }
.product-desc:empty { display: none; }
.product-part .btn { align-self: flex-start; }
.product-part .quiz-nav { margin-top: 4px; }
#productModal .modal-media > img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.data-error { position: relative; z-index: 3000; padding: 14px 20px; background: #A32A1E; color: #fff; text-align: center; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
.product-grid { grid-template-columns: 1fr; gap: 14px; }
.product-info b { font-size: 22px; }
.product-price-big strong { font-size: 32px; }
}
/* === Баннер согласия на cookie и Яндекс.Метрику (25.10.2026) === */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--ivory, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; box-shadow: 0 18px 40px rgba(27,23,20,.18); font-size: 15px; line-height: 1.45; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--ink); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.cookie-link { background: none; border: 0; padding: 0; margin-top: 8px; color: inherit; opacity: .7; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cookie-link:hover { opacity: 1; }
/* === Размеры модулей у коллекции и серии корпусов (26.10.2026) === */
.modal-body .btn-sizes { margin-top: 6px; }
.modal-body .btn-sizes + .btn { margin-top: 0; }
.btn-sizes[hidden] { display: none; }
.line-switch { margin: -8px 0 24px; }
.module-back { align-self: flex-start; background: none; border: 0; padding: 4px 0; margin-bottom: 4px; font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.module-back:hover { color: var(--ink); }
.module-back[hidden], .module-pick[hidden] { display: none; }
.module-pick { margin-top: 18px; }
.module-pick .chips { margin-bottom: 12px; }
.module-pick-cap { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.module-pick + .module-items { margin-top: 8px; }
@media (max-width: 700px) {
.module-pick .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.module-pick .chip-btn { flex: none; min-height: 40px; padding: 0 16px; font-size: 15px; }
.module-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.module-item { padding: 8px; font-size: 13px; }
}

/* === КВИЗ: ПРИКРЕПЛЕНИЕ ФАЙЛОВ (12.11.2026) === */
.quiz-files { margin-top: 22px; align-items: flex-start; }
.quiz-files-title { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.quiz-files-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.quiz-files-btn { cursor: pointer; }
.quiz-files:has(.quiz-files-input:focus-visible) .quiz-files-btn { outline: 3px solid rgba(115,83,28,.45); outline-offset: 2px; }
.quiz-files-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 640px; }
.quiz-files-list:empty { display: none; }
.quiz-files-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; background: #fff; border: 1px solid var(--field); border-radius: 12px; font-size: 15px; color: var(--ink); }
.quiz-files-list .qf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz-files-list .qf-size { color: var(--ink-2); white-space: nowrap; }
.quiz-files-list button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.quiz-files-list button:hover, .quiz-files-list button:focus-visible { background: rgba(0,0,0,.06); color: var(--ink); }

/* Кнопка «Создать планировку» рядом с квизом (12.11.2026) */
.planner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.planner-cta span { color: var(--ink-2); font-size: 15px; max-width: 26em; }

/* Подсказка в квизе «откройте доступ к сообщениям» (12.11.2026) */
.quiz-note { display: flex; gap: 10px; align-items: flex-start; max-width: 44em; margin: 18px 0 10px; padding: 12px 16px; border-radius: 14px; background: rgba(230,203,148,.28); border: 1px solid rgba(115,83,28,.28); color: var(--ink); font-size: 15px; line-height: 1.45; }
.quiz-note b { font-weight: 500; }
