/* Кухня3D — сайт. Те же токены, что и в конструкторе: палитра ivilove. */
:root {
  --plaster: #f0f0f2; --plaster-2: #e7e7ea; --paper: #ffffff; --ink: #202026; --ink-2: #4c4f58; --muted: #7a7e89;
  --line: #e4e4e8; --line-2: #d3d3d9; --tape: #ff4d4d; --tape-ink: #ffffff; --tape-soft: #ffe9e9;
  --error: #b93a26; --error-soft: #f8e4df; --warn-soft: #f7ecd6; --ok-soft: #e1f0e8;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--plaster); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, transform .1s; font-size: 16px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-primary { background: var(--tape); color: var(--tape-ink); border-color: #f03b3b; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-primary:hover { background: #f90202; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }

/* Шапка */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.head-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.head-nav a { text-decoration: none; color: var(--ink-2); }
.head-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.head-cta { min-height: 40px; font-size: 15px; }

/* Первый экран */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 6fr 7fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.hero-lead { font-size: 19px; color: var(--ink-2); margin: 0 0 30px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.hero-facts li { padding-left: 18px; position: relative; }
.hero-facts li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--tape); border-radius: 2px; }
.hero-art { margin: 0; background: var(--paper); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 1px 2px rgba(32,32,38,.05), 0 20px 50px rgba(32,32,38,.08); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .cab rect { fill: #d8cab6; stroke: #202026; stroke-width: 1.2; }
.hero-art .handle { stroke: #b38a4f; stroke-width: 3.2; stroke-linecap: round; }
.tape-text, .dim-text { font: 700 11px var(--font); fill: var(--tape-ink); }
.tape-text { font-size: 13px; }
.hero-art figcaption { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.cap-price { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.cap-text { color: var(--muted); font-size: 14px; }

/* Секции */
.section { padding: 84px 0; }
.section-alt { background: var(--paper); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; max-width: 20em; text-wrap: balance; }
.section-lead { font-size: 18px; color: var(--ink-2); max-width: 38em; margin: 0 0 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--paper); border-radius: 18px; padding: 26px 24px 24px; position: relative; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  background: var(--tape); color: var(--tape-ink); font-weight: 700; font-size: 18px; margin-bottom: 18px;
}
.steps h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

.demo-checks { list-style: none; margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--plaster); border-radius: 20px; }
.demo-checks li { padding: 11px 14px 11px 40px; border-radius: 10px; font-size: 15px; line-height: 1.4; position: relative; background: var(--paper); }
.demo-checks li::before { content: '!'; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.demo-checks .is-warn { background: var(--warn-soft); color: #5e3f0b; }
.demo-checks .is-warn::before { background: #b07a19; }
.demo-checks .is-error { background: var(--error-soft); color: #7d2516; }
.demo-checks .is-error::before { background: var(--error); }
.demo-checks .is-ok { background: var(--ok-soft); color: #1d4d38; }
.demo-checks .is-ok::before { content: '✓'; background: #2f7d5b; }
.demo-checks .fix { display: inline-block; margin-top: 6px; border: 1px solid currentColor; border-radius: 99px; padding: 1px 10px; font-size: 13px; font-weight: 500; }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.preset { display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s, transform .2s, box-shadow .2s; }
.preset:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 30, 25, .12); }
.preset-media { position: relative; aspect-ratio: 3 / 2; background: #ebebee; display: grid; place-items: center; overflow: hidden; }
.preset-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.preset:hover .preset-media img { transform: scale(1.035); }
.preset-media svg { color: var(--ink); width: 96px; height: auto; }
.preset-tags { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.preset-tags span { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.preset-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.preset h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.preset p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; flex: 1; }
.preset-swatches { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.preset-swatches li { display: inline-flex; align-items: center; gap: 6px; }
.preset-swatches i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.preset dl { display: flex; gap: 22px; margin: 2px 0 0; font-size: 14px; }
.preset dt { color: var(--muted); font-size: 12.5px; }
.preset dd { margin: 0; }
.preset-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.preset-price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.preset-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.preset-open { font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 4px; white-space: nowrap; }

.estimate { background: var(--plaster); border-radius: 20px; padding: 24px 26px; }
.estimate ul { list-style: none; margin: 0; padding: 0; }
.estimate li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 15.5px; }
.estimate li span:first-child { color: var(--ink-2); }
.estimate-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.estimate-total strong { font-size: 28px; letter-spacing: -.02em; }
.estimate-range { margin: 4px 0 0; color: var(--muted); font-size: 14px; text-align: right; }

.brands { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.brands span { padding: 8px 16px; border-radius: 99px; background: var(--paper); font-weight: 600; font-size: 15px; }

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-lead { color: #d4d4da; }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.partner-list li { padding-left: 26px; position: relative; color: #e4e9e5; }
.partner-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--tape); }
.partner-form-wrap { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 26px; }
.partner-form { display: flex; flex-direction: column; gap: 12px; }
.partner-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.partner-form input:not([type=checkbox]) { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.partner-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tape-soft); }
.partner-form [aria-invalid="true"] { border-color: var(--error); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13.5px; }
.partner-form .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.err { color: var(--error); font-size: 13px; margin-top: -6px; }
.hp { position: absolute !important; left: -9999px !important; }
.partner-ok h3 { margin: 0 0 6px; font-size: 22px; }
.partner-ok p { margin: 0; color: var(--ink-2); }

.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 19px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 22px; color: var(--ink-2); max-width: 44em; }

.final-cta { padding: 72px 0 96px; }
.final-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final-cta h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0; max-width: 18em; line-height: 1.15; }

.site-foot { background: var(--ink); color: #d4d4da; padding: 40px 0 48px; font-size: 14.5px; }
.foot-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.site-foot .brand { color: var(--paper); }
.site-foot p { margin: 10px 0 0; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--paper); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid #39433f; padding-top: 18px; color: #93a19a; }

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .head-nav { display: none; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1; padding: 0 14px; font-size: 16px; white-space: nowrap; }
  .hero-art { padding: 14px; border-radius: 16px; }
  .section { padding: 56px 0; }
  .steps, .presets { grid-template-columns: 1fr; }
  .form-2, .foot-row { grid-template-columns: 1fr; }
  .head-row { height: 56px; }
  .brand span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
section[id] { scroll-margin-top: 76px; }

/* Закрытый проект / пароль */
.lock { min-height: calc(100vh - 64px - 160px); display: grid; place-items: center; padding: 48px 16px; }
.lock-card { width: min(460px, 100%); background: var(--paper); border-radius: 18px; padding: 36px 32px 28px; box-shadow: 0 1px 2px rgba(32,32,38,.06), 0 12px 32px -12px rgba(32,32,38,.18); text-align: center; }
.lock-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--tape-soft); color: var(--tape-ink); }
.lock-card h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.lock-card > p { margin: 0 0 22px; }
.lock-form { text-align: left; margin-bottom: 18px; }
.lock-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lock-row { display: flex; gap: 8px; }
.lock-row input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; }
.lock-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tape-soft); }
.lock-row input[aria-invalid="true"] { border-color: var(--error); }
.lock-error { color: var(--error); font-size: 14px; margin: 8px 0 0; }
.lock-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 480px) { .lock-card { padding: 28px 20px 22px; } .lock-row { flex-direction: column; } }

/* Вход и регистрация */
.auth { min-height: calc(100vh - 64px - 160px); display: grid; place-items: center; padding: 40px 16px 56px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border-radius: 18px; padding: 32px 30px 26px; box-shadow: 0 1px 2px rgba(32,32,38,.06), 0 12px 32px -12px rgba(32,32,38,.18); }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.015em; }
.auth-lead { margin: 0 0 20px; font-size: 15px; }
.auth-ok { background: var(--ok-soft); color: #1f6a45; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 16px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-field > span { display: flex; justify-content: space-between; gap: 8px; }
.auth-field > span a, .auth-field small { font-weight: 400; font-size: 13px; color: var(--muted); }
.auth-field input { height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 400; background: #fff; }
.auth-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tape-soft); }
.auth-field input[aria-invalid="true"] { border-color: var(--error); }
.auth-error { color: var(--error); font-size: 13px; margin: -6px 0 0; }
.auth-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.auth-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); }
.btn-block { width: 100%; }
.auth-alt { margin: 16px 0 0; font-size: 14px; text-align: center; }
.small { font-size: 13px; }
@media (max-width: 480px) { .auth-card { padding: 24px 18px 20px; } }

.head-account { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 4px; white-space: nowrap; }
.head-account:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .head-account { font-size: 14px; } }
@media (max-width: 1000px) { .head-account { margin-left: auto; } }
/* Вход через Яндекс и VK */
.auth-oauth { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-oauth .btn { gap: 10px; background: #fff; border-color: var(--line-2); color: var(--ink); }
.auth-oauth .btn:hover { border-color: var(--ink-2); }
.oa-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.oa-ya { background: #fc3f1d; }
.oa-vk { background: #0077ff; font-size: 10px; }

/* Общая главная: выбор раздела */
.head-other { font-weight: 600; color: var(--ink) !important; }
.hub-hero { padding: 64px 0 26px; text-align: center; }
.hub-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.hub-hero h1 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.hub-hero h1 span { background: linear-gradient(transparent 62%, var(--tape) 62%, var(--tape) 92%, transparent 92%); padding: 0 .06em; }
.hub-lead { max-width: 640px; margin: 18px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hub-cards-wrap { padding: 26px 0 56px; }
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hub-card { display: flex; flex-direction: column; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(32,32,38,.05), 0 18px 40px -22px rgba(32,32,38,.35); transition: transform .2s, box-shadow .2s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(32,32,38,.05), 0 26px 50px -22px rgba(32,32,38,.42); }
.hub-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ebebee; }
.hub-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hub-card:hover .hub-media img { transform: scale(1.04); }
.hub-card-shchit .hub-media { background: linear-gradient(160deg, #1c1f23, #3a2a24); }
.hub-card-shchit .hub-media img { object-fit: contain; object-position: center; padding: 18px 0 0; }
.hub-badge { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--ink); color: var(--tape); font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.hub-badge-zap { background: #ff4d4d; color: #fff; font-size: 20px; }
.hub-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.hub-body h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.hub-body h2 a { color: inherit; text-decoration: none; }
.hub-body > p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.hub-list { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.hub-list li { position: relative; padding-left: 26px; }
.hub-list li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--tape); box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 1.5px var(--ink); }
.hub-card-shchit .hub-list li::before { background: #ff4d4d; }
.hub-card-shchit .btn-primary { background: #ff4d4d; border-color: #e23c3c; color: #fff; }
.hub-card-shchit .btn-primary:hover { background: #ff6262; }
.hub-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.hub-more { font-weight: 600; font-size: 15px; color: var(--ink); }
.hub-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hub-why b { display: block; font-size: 18px; margin-bottom: 6px; }
.hub-why p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.hub-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-preset { display: flex; flex-direction: column; background: var(--paper); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s; }
.hub-preset:hover { border-color: var(--ink); }
.hub-preset img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.hub-preset span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.hub-preset small { color: var(--muted); font-size: 13.5px; }
.hub-all { margin: 18px 0 0; font-weight: 600; }
@media (max-width: 900px) {
  .hub-cards, .hub-why { grid-template-columns: 1fr; }
  .hub-presets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hub-hero { padding: 36px 0 12px; }
  .hub-lead { font-size: 16px; }
  .hub-body { padding: 20px 18px 22px; }
  .hub-body h2 { font-size: 24px; }
  .hub-presets { grid-template-columns: 1fr; }
}
.section-alt .hub-preset { background: var(--plaster); }
