/* KVANTPROM — стилі. Палітра: глибокий бірюзово-зелений + мідь на теплому світлому фоні. */
:root {
  --primary: #0F4C4A;
  --primary-2: #156E69;
  --primary-soft: #E3EEEC;
  --accent: #D9773A;
  --accent-2: #C2632A;
  --ink: #1C2A2E;
  --muted: #66767A;
  --bg: #F6F3EE;
  --card: #FFFFFF;
  --line: #E4DED4;
  --ok: #2E7D4F;
  --err: #B3402C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 40, .05), 0 8px 24px rgba(20, 40, 40, .06);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark { background: var(--primary); border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--primary); color: #D6E6E3; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar-r { display: none; }
@media (min-width: 900px) { .topbar-r { display: inline; } }
.header-main { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--accent); font-weight: 800; }
.logo-acc { fill: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--primary-2); border-color: var(--accent); }
.header-phone { margin-left: auto; font-weight: 800; color: var(--primary); text-decoration: none; white-space: nowrap; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1020px) {
  .burger { display: block; }
  .header-main { gap: 12px; }
  .header-phone { font-size: 14px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) { .header-phone { display: none; } .cart-btn { margin-left: auto; } .logo { font-size: 17px; } }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, #0B3937 100%); color: #fff; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 119, 58, .35), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; padding-top: 80px; padding-bottom: 80px; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #F2A56E; }
.hero p.lead { font-size: 18px; color: #CFE1DE; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-cta .btn-ghost:hover { background: #fff; color: var(--primary); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 520px; }
.hero-facts div { font-size: 14px; color: #B9D2CE; text-align: center; padding: 6px 10px; }
.hero-facts div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-facts b { display: block; font-size: 30px; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 4px; }
.hero-facts b small { font-size: .55em; font-weight: 700; color: #F2A56E; }
.hero-doors { position: relative; z-index: 1; display: flex; justify-content: center; align-items: end; gap: 14px; }
.hero-doors .door-svg { width: 30%; max-width: 170px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.hero-doors .door-svg:nth-child(2) { width: 36%; max-width: 205px; }
.hero-price-tag { position: absolute; z-index: 2; left: 4%; bottom: 8%; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }
.hero-price-tag b { display: block; font-size: 20px; color: var(--accent-2); }

/* переваги */
.usp { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: -36px; position: relative; z-index: 2; }
.usp div { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.usp b { display: block; font-size: 16px; margin-bottom: 4px; }
.usp span { color: var(--muted); font-size: 14px; }
.usp i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-style: normal; font-weight: 800; margin-bottom: 12px; }

/* колекції */
.collections { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.col-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 20px 20px 0; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s; overflow: hidden; }
.col-card:hover { transform: translateY(-3px); }
.col-card h3 { margin-bottom: 2px; }
.col-card p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.col-card .from { font-weight: 700; color: var(--accent-2); font-size: 14px; }
.col-card .door-svg { display: block; width: 52%; margin: 16px auto -60px; height: auto; }

/* картки товарів */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-img { position: relative; display: block; background: linear-gradient(180deg, #EFEBE4, #E5E0D7); padding: 26px 0 0; text-align: center; }
.door-holder .door-svg { width: 46%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .16)); }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; }
.badge-hit { background: var(--primary); }
.badge-new { background: #3D7EA6; }
.badge-sale { background: var(--accent); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-col { font-size: 12px; color: var(--muted); }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card-sw { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: var(--sw); cursor: pointer; padding: 0; }
.dot.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.more { font-size: 12px; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price b { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.price s { color: var(--muted); font-size: 13px; display: block; }
.price small { color: var(--muted); font-size: 12px; }

/* кроки */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* банер калькулятора */
.calc-banner { display: grid; gap: 28px; align-items: center; background: var(--primary); color: #fff; border-radius: 24px; padding: 32px 24px; }
@media (min-width: 900px) { .calc-banner { grid-template-columns: 1.2fr 1fr; padding: 48px; } }
.calc-banner h2 { color: #fff; }
.calc-banner p { color: #CFE1DE; }
.receipt { background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; font-size: 14px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.receipt-row span:last-child { white-space: nowrap; font-weight: 600; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-weight: 800; font-size: 18px; }
.receipt-total span:last-child { color: var(--accent-2); font-size: 22px; }

/* FAQ */
.faq details { background: var(--card); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* форма-заявка */
.lead-box { display: grid; gap: 24px; background: var(--card); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .lead-box { grid-template-columns: 1fr 1fr; padding: 44px; align-items: center; } }
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px rgba(21, 110, 105, .15); }
.form-result { font-size: 14px; }
.form-result:empty { display: none; }
.form-result.ok { color: var(--ok); }
.form-result.err { color: var(--err); }
.form-note { font-size: 12px; color: var(--muted); }

/* хлібні крихти і заголовок сторінки */
.page-head { padding: 28px 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* каталог */
.catalog-layout { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 960px) { .catalog-layout { grid-template-columns: 260px 1fr; } }
.filters { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); align-self: start; }
@media (min-width: 960px) { .filters { position: sticky; top: 130px; } }
.filters h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 15px; }
.filters input[type=checkbox], .filters input[type=radio], .check input { accent-color: var(--primary-2); width: 18px; height: 18px; }
.filter-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-sw button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: var(--sw); cursor: pointer; }
.filter-sw button.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.tab.active, .tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--card); border-radius: var(--radius); }
.filters-toggle { display: none; }
@media (max-width: 959px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: block; }
}

/* сторінка товару */
.product { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 960px) { .product { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.product-visual { background: linear-gradient(180deg, #EFEBE4, #E2DCD2); border-radius: 24px; padding: 60px 16px 0; text-align: center; position: relative; align-self: start; }
@media (min-width: 960px) { .product-visual { position: sticky; top: 130px; } }
.product-visual .door-svg { width: 52%; max-width: 280px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .2)); }
.product-visual .floor { height: 26px; background: linear-gradient(180deg, #CFC6B8, #BDB2A2); border-radius: 0 0 24px 24px; margin: 0 -16px; }
.visual-caption { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.product-info h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 4px; }
.product-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; }
.product-price b { font-size: 34px; font-weight: 800; color: var(--primary); }
.product-price small { color: var(--muted); }
.product-price s { color: var(--muted); }
.cfg-group { padding: 16px 0; border-top: 1px solid var(--line); }
.cfg-label { font-weight: 700; margin-bottom: 10px; }
.cfg-label b { font-weight: 600; color: var(--muted); margin-left: 6px; }
.cfg-label small { font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); background: var(--sw); cursor: pointer; padding: 0; position: relative; }
.swatch.grain { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 5px); background-color: var(--sw); }
.swatch.any { background: conic-gradient(#D9773A, #E6C04B, #8DB36F, #3D8E9A, #5662A6, #A2558E, #D9773A); }
.swatch.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.swatch.door-shape { width: 30px; height: 50px; border-radius: 3px; box-shadow: inset 2px 0 0 rgba(0, 0, 0, .12); }
.swatch.door-shape.active { box-shadow: inset 2px 0 0 rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.25; }
.chip small { font-size: 12px; color: var(--accent-2); font-weight: 700; }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--primary-2); }
.chip.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.sub { margin-top: 10px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.hint.warn { color: var(--accent-2); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check small { color: var(--accent-2); font-weight: 700; }
.buy-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--primary); }
.qty input { width: 40px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-bar .btn { flex: 1; min-width: 180px; }
.breakdown { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; }
.breakdown h4 { margin-bottom: 6px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 45%; padding-right: 12px; }
.product-extra { display: grid; gap: 20px; padding-bottom: 72px; }
@media (min-width: 900px) { .product-extra { grid-template-columns: 1fr 1fr; } }
.panel-wide { grid-column: 1 / -1; order: 3; }
.adv-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.adv { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.adv i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.adv h3 { margin: 0 0 4px; font-size: 16px; }
.adv p { margin: 0; color: var(--muted); font-size: 14px; }
.panel .adv { box-shadow: none; border: 1px solid var(--line); }
.panel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel ul { margin: 0; padding-left: 18px; }
.panel li { margin-bottom: 6px; }

/* калькулятор */
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-weight: 800; }
.summary-total b { font-size: 28px; color: var(--primary); }

/* кошик */
.cart-layout { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 1020px) { .cart-layout { grid-template-columns: 1fr 400px; } }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.cart-item .door-svg { width: 76px; height: auto; }
.cart-item h3 { margin: 0 0 4px; font-size: 17px; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item .desc { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-item-foot .sum { font-weight: 800; font-size: 18px; }
.cart-item-foot .sum small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px; }
.link-btn:hover { color: var(--err); }
.checkout { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; }
@media (min-width: 1020px) { .checkout { position: sticky; top: 130px; } }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.checkout legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.radio input { accent-color: var(--primary-2); margin-top: 3px; }
.radio small { display: block; color: var(--muted); }
.radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.order-done { text-align: center; background: var(--card); border-radius: 24px; padding: 40px 22px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto 72px; }
.order-done pre { text-align: left; white-space: pre-wrap; background: var(--bg); padding: 16px; border-radius: 12px; font-family: inherit; font-size: 13px; }
.order-done .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* текстові сторінки */
.content { padding-bottom: 72px; }
.info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 24px; }
.info-grid .panel h3 { color: var(--primary); }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--primary); color: #fff; font-weight: 700; }
.price-table td:last-child { white-space: nowrap; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.contacts-grid { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line i { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 10px; font-style: normal; }
.contact-line span { display: block; font-size: 13px; color: var(--muted); }
.contact-line a, .contact-line b { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; }

/* підвал */
.site-footer { background: #0B2F2E; color: #B8CECB; padding-top: 48px; }
.site-footer .logo { color: #fff; display: inline-flex; padding: 0; }
.site-footer .muted { color: #8FAAA6; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a, .footer-grid span { display: block; color: #B8CECB; text-decoration: none; padding: 3px 0; font-size: 14px; }
.footer-grid a:hover { color: #F2A56E; }
.footer-grid p { font-size: 14px; margin-top: 14px; }
.socials { display: flex; gap: 14px; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: #7E9894; }

/* тост */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 100; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ===== v2: компактний магазин ===== */
.narrow { max-width: 900px; }
.pt0 { padding-top: 0 !important; }
.mt { margin-top: 20px; }
.mt-s { margin-top: 10px; }
.mt-l { margin-top: 28px; }
.small { font-size: 13px; }
.center { text-align: center; }
.clear { clear: both; }
.h3 { font-size: 20px; }
.lead-sm { font-size: 17px; color: var(--muted); max-width: 820px; }
.eyebrow.light { color: #F2A56E; }
body.lock { overflow: hidden; }
.content { padding: 40px 0 72px; }

/* шапка */
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 40, 40, .08); }
.topbar-msg b { color: #F2A56E; }
.cart-btn { border: 0; cursor: pointer; }
.nav-dd { position: relative; }
.nav-dd-btn span { font-size: 11px; }
.dd-panel { display: none; position: absolute; top: 100%; left: -20px; z-index: 60; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 40, 40, .16); padding: 22px; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; width: min(860px, 90vw); }
.dd-panel h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dd-panel a { display: block; border: 0; padding: 6px 0; font-size: 14px; font-weight: 600; }
.dd-panel a small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.dd-panel a b { color: var(--primary); }
@media (min-width: 1021px) { .nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel { display: grid; } }
@media (max-width: 1020px) {
  .dd-panel { position: static; box-shadow: none; padding: 6px 0 10px 12px; width: auto; grid-template-columns: 1fr; gap: 6px; }
  .nav-dd.open .dd-panel { display: grid; }
}

/* hero */
.hero-grid { display: grid; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 64px; padding-bottom: 88px; } }
.hero-text h1 { font-size: clamp(30px, 4.2vw, 50px); }
.hero .btn-ghost.light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost.light:hover { background: #fff; color: var(--primary); }
.hero-facts { margin: 22px 0 6px; }
.quick { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.quick-door { align-self: center; }
.quick-door .door-svg { width: auto; max-width: 140px; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .2)); }
.quick-door.swap .door-svg { animation: swap .45s ease; }
@keyframes swap { from { opacity: .3; transform: scale(.97); } to { opacity: 1; transform: none; } }
.quick-form h2 { font-size: 20px; margin-bottom: 10px; }
.quick-form .field { margin-bottom: 8px; }
.quick-form .field select { padding: 10px 12px; }
.seg { display: inline-flex; background: var(--primary-soft); border-radius: 999px; padding: 4px; margin: 4px 0 6px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--primary); }
.seg button.active { background: var(--primary); color: #fff; }
.quick-breakdown { font-size: 13px; max-height: 160px; overflow-y: auto; }
.quick-breakdown .receipt-row { padding: 5px 0; }
.quick-breakdown:empty { display: none; }
.quick-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 12px; }
.quick-price span { width: 100%; font-size: 13px; color: var(--muted); }
.quick-price b { font-size: 30px; color: var(--primary); }
.quick-price small { color: var(--ok); font-weight: 700; }
.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.04); } }

.usp i { width: auto; min-width: 40px; padding: 0 8px; }
.col-card .from2 { font-size: 13px; color: var(--muted); }
.collections { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* картки */
.card-prices { display: grid; gap: 2px; margin-top: 2px; }
.price-leaf { font-size: 13px; color: var(--muted); }
.price-leaf b { color: var(--ink); font-size: 15px; }
.price-kit { font-size: 13px; color: var(--muted); }
.price-kit b { display: block; font-size: 20px; color: var(--primary); }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
.card-actions .btn { padding: 9px 10px; }
.badge { background: var(--accent); }
.card[hidden] { display: none; }

/* поява */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* комплекти */
.kits-banner { display: grid; gap: 28px; background: var(--primary); color: #fff; border-radius: 24px; padding: 30px 22px; }
@media (min-width: 960px) { .kits-banner { grid-template-columns: 1.1fr 1fr; padding: 44px; align-items: center; } }
.kits-banner h2 { color: #fff; }
.kit-cards { display: grid; gap: 10px; margin-top: 18px; }
.kit-mini { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px 16px; }
.kit-mini b { display: block; }
.kit-mini span { color: #CFE1DE; font-size: 14px; }
.kit-mini.popular { border-color: #F2A56E; }
.pop { position: absolute; top: -10px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.receipt-row.save span { color: var(--ok); font-weight: 700; }
.kits { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.kits:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .kits { grid-template-columns: 1fr; } }
.kit { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.kit:hover { border-color: var(--primary-2); transform: translateY(-1px); }
.kit.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.kit .kit-text { font-size: 12px; color: var(--muted); line-height: 1.35; }
.kit .kit-price { font-size: 18px; font-weight: 800; color: var(--primary); margin-top: auto; }
.kit .kit-save { font-size: 12px; font-weight: 800; color: var(--ok); }
.save-badge { background: #E3F2E8; color: var(--ok); font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.save-line { color: var(--ok); font-weight: 600; font-size: 14px; }

/* конфігуратор */
.configurator { margin-top: 8px; }
.cfg-fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cfg-fold > summary::-webkit-details-marker { display: none; }
.cfg-fold > summary::after { content: '▾'; color: var(--accent); transition: transform .2s; }
.cfg-fold:not([open]) > summary::after { transform: rotate(-90deg); }
.cfg-sub { font-weight: 600; font-size: 14px; margin: 12px 0 8px; }
.swatch.stone { background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.5px), radial-gradient(rgba(0, 0, 0, .15) 1px, transparent 1.5px); background-size: 7px 7px, 9px 9px; background-color: var(--sw); }
.product-price s { font-size: 18px; }
.visual-badges { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 12px; }
.visual-badges span { background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.buy-bar .btn-ghost { flex: 0 1 auto; min-width: 0; }

/* допродаж */
.bundle { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 8px 0 28px; }
.bundle h2 { font-size: 22px; }
.bundle-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bundle-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; }
.bundle-item .hw-icon, .hw-thumb { width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); border-radius: 10px; color: var(--muted); }
.bundle-item a { display: block; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.bundle-item b { font-size: 14px; }
.btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.plinth-calc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.plinth-calc h4 { margin-bottom: 10px; }
.plinth-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.plinth-row .field { flex: 1 1 160px; }
.plinth-out { flex: 1 1 200px; padding-bottom: 12px; font-size: 15px; }

/* фурнітура */
.hw-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding-bottom: 20px; }
.hw-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.hw-card[hidden] { display: none; }
.hw-img { display: grid; place-items: center; background: linear-gradient(180deg, #EFEBE4, #E5E0D7); padding: 26px; }
.hw-img .hw-icon { width: 84px; height: 84px; }
.hw-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hw-body h3 { font-size: 15px; margin: 0; }
.hw-body h3 a { color: var(--ink); text-decoration: none; }
.hw-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hw-foot b { font-size: 18px; }
.hw-foot small { color: var(--muted); }
.hw-foot .btn { margin-left: auto; }
.tabs-sm .tab { padding: 6px 12px; font-size: 13px; }
.hw-page { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 900px) { .hw-page { grid-template-columns: 1fr 1.1fr; } }
.hw-page-img { display: grid; place-items: center; background: linear-gradient(180deg, #EFEBE4, #E2DCD2); border-radius: 24px; min-height: 300px; }
.hw-page-img .hw-icon { width: 180px; height: 180px; }

/* фільтри */
.tone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tone { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tone.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.toolbar-r { display: flex; gap: 10px; }
.empty[hidden] { display: none; }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.facts-row b { color: var(--ink); }
.tips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 10px 0; }
.tips li { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.tips li::before { content: '✓ '; }

/* SEO-посилання */
.seo-links { display: grid; gap: 22px; background: var(--card); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .seo-links { grid-template-columns: repeat(3, 1fr); } }
.seo-links h3 { font-size: 16px; }
.chips-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-links a { padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chips-links a:hover { border-color: var(--accent); color: var(--accent-2); }
.faq-wrap { padding-top: 0; }

/* калькулятор */

/* кошик */
.cart-layout { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 1020px) { .cart-layout { grid-template-columns: 1fr 420px; } }
.steps-bar { display: flex; gap: 8px; padding: 0; margin: 0 0 16px; list-style: none; counter-reset: st; }
.steps-bar li { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--muted); }
.steps-bar li::before { counter-increment: st; content: counter(st) '. '; }
.steps-bar li.on { background: var(--primary); color: #fff; }
.cart-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.ci-img .door-svg { width: 70px; height: auto; }
.cart-item h3 { margin: 0 0 4px; font-size: 16px; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item .desc { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ci-parts { font-size: 13px; margin-bottom: 8px; }
.ci-parts summary { cursor: pointer; color: var(--primary-2); font-weight: 600; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ci-foot .sum { font-weight: 800; font-size: 18px; }
.ci-foot .sum small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.row-gap { margin: 6px 0 20px; }
.checkout fieldset { margin-bottom: 14px; }
.order-text { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font-family: inherit; font-size: 12px; color: var(--ink); }
.order-done { text-align: center; background: var(--card); border-radius: 24px; padding: 40px 22px; box-shadow: var(--shadow); max-width: 720px; margin: 20px auto 72px; }

/* бічна панель кошика */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 30, 30, .45); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.drawer-items { padding: 12px 20px; flex: 1; }
.drawer-empty { padding: 40px 20px; text-align: center; }
.d-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.d-thumb .door-svg { width: 52px; height: auto; }
.d-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 14px; display: block; }
.d-item small { display: block; color: var(--muted); font-size: 12px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.drawer-foot .summary-total { margin: 0; }
.x { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.x.sm { font-size: 20px; }
.x:hover { color: var(--err); }

/* модальне вікно */
.modal { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 30, 30, .5); }
.modal-box { position: relative; background: #fff; border-radius: 20px; padding: 26px 22px 22px; width: min(440px, 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); animation: pop .25s ease; }
.modal-box .x { position: absolute; right: 8px; top: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* плаваючі контакти */
.float-contacts { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: grid; gap: 10px; }
.fc { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transition: transform .15s; }
.fc:hover { transform: scale(1.08); }
.fc svg { width: 24px; height: 24px; }
.fc-mail { background: #2F5D57; }
.fc-phone { background: var(--accent); animation: ring 3s infinite; }
@keyframes ring { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-12deg); } 94% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .fc-phone { animation: none; } }

/* підвал */
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-grid .foot-phone { color: #fff; font-weight: 800; font-size: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #B8CECB; }

/* липка панель купівлі на телефоні */
.sticky-buy { display: none; }
@media (max-width: 959px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); }
  .sticky-buy b { display: block; font-size: 20px; color: var(--primary); }
  .has-sticky-buy .site-footer { padding-bottom: 70px; }
  .has-sticky-buy .float-contacts { bottom: 84px; }
  .float-contacts { right: 12px; }
  .fc { width: 46px; height: 46px; }
}
@media (max-width: 720px) {
  .product-visual { padding-top: 48px; }
  .product-visual .door-svg { width: 38%; }
  .visual-badges { position: static; padding: 10px 12px 0; }
  .fc { width: 40px; height: 40px; }
  .fc svg { width: 20px; height: 20px; }
  .float-contacts { gap: 8px; }
}

/* ===== v3: фото, мови, фурнітура, опт ===== */
.door-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-img { padding: 0; aspect-ratio: 1 / 2; max-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card[data-hidden="1"] .card-img { aspect-ratio: 4 / 5; }
.door-holder { width: 100%; height: 100%; padding: 18px 18px 0; display: flex; align-items: flex-end; justify-content: center; }
.door-holder .door-img { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .14)); transition: transform .35s ease; }
.door-holder .door-svg { width: auto; height: 92%; }
.card:hover .door-holder .door-img { transform: translateY(-4px) scale(1.02); }
.card[data-hidden="1"] .door-holder { padding: 0; }
.card[data-hidden="1"] .door-holder .door-img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.col-card { padding: 16px 16px 18px; }
.col-card .col-img { height: 190px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; background: linear-gradient(180deg, #EFEBE4, #E5E0D7); border-radius: 12px; padding-top: 12px; overflow: hidden; }
.col-card .col-img .door-img { height: 100%; width: auto; }
.col-card .col-img .door-svg { height: 92%; width: auto; margin: 0; }
.col-card .door-svg { margin: 0; }
.visual-door { height: min(70vh, 640px); display: flex; align-items: flex-end; justify-content: center; }
.visual-door .door-img { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .2)); }
.visual-door .door-svg { height: 92%; width: auto; max-width: 280px; }
.product-visual { padding: 56px 20px 24px; background: radial-gradient(ellipse at 50% 100%, #D9D1C4 0, transparent 60%), linear-gradient(180deg, #F1EDE6, #E4DED4); }
.product-visual .floor { display: none; }
.product[data-model^="hd"] .visual-door .door-img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; filter: none; }
.swap > * { animation: swap .45s ease; }
.quick-door { display: flex; align-items: flex-end; justify-content: center; min-height: 140px; }
.quick-door .door-img { max-height: 160px; width: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .2)); }
.hero-doors { display: none; }

/* мова */
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang a { padding: 5px 9px; font-size: 12px; font-weight: 800; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--primary); color: #fff; }
.nav-mobile-extra { display: none; }
@media (max-width: 1240px) {
  .header-main > .lang { display: none; }
  .nav-mobile-extra { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0 4px; }
  .nav-mobile-extra .header-phone-m { font-weight: 800; color: var(--primary); text-decoration: none; border: 0; }
  .nav-mobile-extra .lang a { padding: 8px 14px; font-size: 14px; border: 0; }
}
@media (min-width: 1241px) and (max-width: 1360px) { .nav { gap: 14px; } .nav a { font-size: 14px; } .header-phone { font-size: 14px; } }
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .dd-panel { position: static; box-shadow: none; padding: 6px 0 10px 12px; width: auto; grid-template-columns: 1fr; gap: 6px; }
  .nav-dd.open .dd-panel { display: grid; }
}

/* фурнітура */
.hw-img { aspect-ratio: 1; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); min-height: 0; }
.hw-img img, .hw-photo { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.hw-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 44px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 4px; }
.hw-ph svg { width: 40%; height: 40%; }
.hw-body h3 { font-size: 14px; line-height: 1.3; }
.hw-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.hw-tools { display: grid; gap: 10px; margin-bottom: 8px; }
.hw-filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.hw-filter-row .tabs { margin: 0; }
#hw-search, #pick-q { font: inherit; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; min-width: 240px; background: #fff; }
.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .tab { flex-shrink: 0; }
.hw-page-img { background: #fff; padding: 30px; }
.hw-big { width: 100%; max-width: 420px; height: auto; object-fit: contain; }
.bundle-item { grid-template-columns: 56px 1fr auto; }
.bundle-item > img, .bi-photo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.bundle-item .hw-ph { width: 56px; height: 56px; }

.modal-wide { width: min(880px, 100%); max-height: 90vh; display: flex; flex-direction: column; }
.modal-wide #modal-body { display: flex; flex-direction: column; min-height: 0; }
.oc-row { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; }
.oc-img { height: 120px; display: flex; justify-content: center; }
.oc-img .door-img, .oc-img .door-svg { height: 100%; width: auto; }

/* мініатюри дверей у кошику, калькуляторі */
.ci-img, .d-thumb { display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; overflow: hidden; }
.ci-img { width: 70px; height: 110px; }
.d-thumb { width: 52px; height: 80px; }
.ci-img .door-img, .d-thumb .door-img, .ci-img img, .d-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ci-img .door-svg, .d-thumb .door-svg { height: 100%; width: auto; }

/* опт і експорт */
.b2b { display: grid; gap: 20px; align-items: center; background: var(--card); border: 2px solid var(--primary-soft); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .b2b { grid-template-columns: 1.4fr 1fr; padding: 36px 44px; } }
.b2b-links { display: flex; gap: 10px; flex-wrap: wrap; }
.b2b-form .form-row { grid-template-columns: 1fr; }
@media (min-width: 600px) { .b2b-form .form-row { grid-template-columns: 1fr 1fr; } }
.info-grid { margin-bottom: 28px; }

/* мобільна версія */
@media (max-width: 720px) {
  h1 { font-size: 28px; }
  .section { padding: 44px 0; }
  .hero-grid { padding-top: 28px; padding-bottom: 48px; }
  .hero p.lead { font-size: 16px; }
  .hero-facts { max-width: none; }
  .hero-facts div { padding: 4px 6px; font-size: 12.5px; }
  .hero-facts b { font-size: 22px; }
  .quick { padding: 16px; gap: 8px; }
  .quick-door { min-height: 110px; display: flex; }
  .quick-door .door-img { max-height: 120px; }
  .quick-price b { font-size: 26px; }
  .usp { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -28px; }
  .usp div { padding: 14px; }
  .usp b { font-size: 14px; }
  .usp span { font-size: 12px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 12px; gap: 6px; }
  .card h3 { font-size: 15px; }
  .card-col { display: none; }
  .price-kit b { font-size: 13.5px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .btn-ghost { display: none; }
  .dot { width: 16px; height: 16px; }
  .collections { grid-template-columns: 1fr 1fr; gap: 10px; }
  .col-card .col-img { height: 150px; }
  .visual-door { height: 52vh; }
  .product-info h1 { font-size: 26px; }
  .product-price b { font-size: 30px; }
  .kits { grid-template-columns: 1fr; }
  .kit { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .kit .kit-text { grid-column: 1; }
  .kit .kit-price { grid-row: 1 / 3; grid-column: 2; align-self: center; margin: 0; }
  .kit .kit-save { grid-column: 2; }
  .buy-bar .btn { min-width: 0; }
  .buy-bar .btn-ghost { flex-basis: 100%; }
  .hw-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #hw-search { min-width: 0; width: 100%; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 20px 20px 0 0; width: 100%; max-height: 92vh; overflow: auto; }
  .seo-links { padding: 18px; }
  .lead-box { padding: 22px 16px; }
  .facts-row { gap: 6px 14px; }
  .topbar-msg { font-size: 12px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 16px; }
  .step::before { font-size: 24px; }
  .calc-step { padding: 16px; }
  .checkout { padding: 16px; }
  .cart-item { grid-template-columns: 60px 1fr; padding: 12px; }
  .ci-img { width: 60px; height: 96px; }
}
@media (max-width: 380px) { .grid, .hw-grid { grid-template-columns: 1fr; } .quick-door { display: none; } }
.product > *, .catalog-layout > *, .cart-layout > *, .hw-tools > *, .hw-page > *, .lead-box > *, .b2b > *, .contacts-grid > * { min-width: 0; }
@media (max-width: 720px) { .kits:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } .kit { min-width: 0; } }
.pay-split { display: grid; gap: 6px; margin: 10px 0 4px; padding: 12px; background: var(--primary-soft); border-radius: 12px; }
.pay-split div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pay-split b { white-space: nowrap; color: var(--primary); }
.next-steps { text-align: left; max-width: 520px; margin: 18px auto; padding-left: 20px; display: grid; gap: 8px; }
.order-flow { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: of; }
.order-flow li { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.order-flow li::before { counter-increment: of; content: counter(of); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.order-flow span { color: var(--muted); font-size: 14px; }
.furniture-call { display: grid; gap: 18px; align-items: center; margin: 8px 0 24px; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, #FFF6EE, #F6EBDD); border: 1px solid #F0D9C2; }
@media (min-width: 900px) { .furniture-call { grid-template-columns: 1fr auto; padding: 32px 40px; } }
.furniture-call p { color: var(--muted); max-width: 720px; }
/* перемикач «Двері / В інтер'єрі» */
.view-toggle { position: absolute; right: 16px; top: 16px; z-index: 2; display: inline-flex; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.view-toggle button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--primary); }
.view-toggle button.on { background: var(--primary); color: #fff; }
.product-visual.is-interior { padding: 0; overflow: hidden; }
.product-visual.is-interior .visual-door { height: auto; aspect-ratio: 3 / 2; }
.product-visual.is-interior .visual-badges { display: none; }
.interior-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* наведення на картку — фото в інтер'єрі */
.card-img { position: relative; }
/* порівняння комплектів */
.cmp > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.cmp > summary::-webkit-details-marker { display: none; }
.cmp > summary::after { content: '▾'; color: var(--accent); }
.cmp:not([open]) > summary::after { transform: rotate(-90deg); }
.cmp-table { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.cmp-row { display: grid; grid-template-columns: 48px 1fr 74px 74px; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-head { background: var(--bg); font-size: 12px; font-weight: 800; text-align: center; }
.cmp-head span.on { color: var(--primary); }
.cmp-thumb { width: 48px; height: 48px; display: grid; place-items: center; background: var(--bg); border-radius: 10px; overflow: hidden; }
.cmp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cmp-thumb .part-ic { width: 40px; height: 40px; }
.cmp-door { height: 46px; display: flex; justify-content: center; }
.cmp-door .door-img, .cmp-door .door-svg { height: 100%; width: auto; }
.cmp-name { font-size: 13px; line-height: 1.3; }
.cmp-name small { display: block; color: var(--accent-2); font-weight: 700; font-size: 12px; margin-top: 2px; }
.cmp-name em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.cmp-tick { text-align: center; font-size: 18px; font-weight: 800; color: var(--ok); }
.cmp-row .cmp-tick:only-child { color: var(--muted); }
.cmp-opt .cmp-tick { color: var(--muted); font-size: 14px; }
.cmp-total { background: var(--primary-soft); font-weight: 700; font-size: 13px; }
.cmp-total span:nth-child(n+3) { text-align: center; }
.cmp-total b { display: block; color: var(--primary); font-size: 14px; white-space: nowrap; }
.cmp-total small { color: var(--ok); font-weight: 800; }
@media (max-width: 520px) {
  .cmp-row { grid-template-columns: 40px 1fr 54px 54px; gap: 8px; padding: 8px; }
  .cmp-thumb { width: 40px; height: 40px; }
  .cmp-total b { font-size: 12px; }
}
.cmp-tick.no { color: #C9C3B8; }
.cmp-row .cmp-tick:only-child { color: inherit; }
.kit-thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; min-height: 26px; }
.kit-thumbs i { width: 26px; height: 26px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.kit-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.kit-thumbs .part-ic { width: 22px; height: 22px; }
.kit-thumbs .hw-ph { font-size: 6px; min-height: 0; padding: 0; }
@media (max-width: 720px) { .kit-thumbs { grid-column: 1 / -1; } }
/* нумерація кроків конфігуратора */
.configurator { counter-reset: cs; }
.cfg-group.cstep > .cfg-label::before, .cfg-group.cstep > summary.cfg-label::before { counter-increment: cs; content: counter(cs); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.configurator.compact .cfg-group.cstep > .cfg-label::before, .configurator.compact .cfg-fold.cstep > summary.cfg-label::before { display: none; }
.cfg-fold.cstep > summary { justify-content: flex-start; }
.cfg-fold.cstep > summary::after { margin-left: auto; }

/* ---------- поради, тренди, галерея, помічник заміру ---------- */
.chip.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.art-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.art-card, .trend { display: block; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; transition: transform .2s; }
.art-card:hover, .trend:hover { transform: translateY(-3px); }
.art-card img, .trend img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #EDE8E0; }
.art-card > span, .trend > span { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.art-card b, .trend b { font-size: 17px; line-height: 1.3; }
.art-card small, .trend small { color: var(--muted); font-size: 14px; }
.trend em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-2); }
.trends { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-layout { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } .article-side { position: sticky; top: 96px; align-self: start; } }
.article { min-width: 0; font-size: 16.5px; line-height: 1.7; }
.article h2 { margin: 32px 0 10px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article .grid, .article .table-scroll, .article .receipt, .article .measure { margin: 16px 0; }
.tip { background: #FFF4EA; border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.article-side { display: grid; gap: 16px; }
.article-side h3 { font-size: 17px; margin: 0 0 8px; }
.side-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt-light { border: 1px solid var(--line); }
.measure { display: grid; gap: 16px; border: 2px solid var(--accent); }
@media (min-width: 720px) { .measure { grid-template-columns: 240px 1fr; } }
.measure-in { display: grid; gap: 10px; }
.measure-out p { margin: 0 0 10px; }
.measure-out .big { font-size: 20px; }
.measure-out .warn { color: #B4441B; font-weight: 600; }
.tag-ok, .tag-warn { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; vertical-align: middle; background: #E3F2E6; color: #22763A; }
.tag-warn { background: #FFE9DA; color: #B4441B; }
.gal-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.gal-filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gal-filters .chip { flex: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding-bottom: 40px; }
.gal-item { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #EDE8E0; aspect-ratio: 3 / 2; isolation: isolate; }
.gal-item[hidden] { display: none; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-item span { position: absolute; left: 8px; bottom: 8px; background: rgba(15, 30, 29, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.modal-box.modal-wide { max-width: 860px; width: calc(100% - 24px); padding: 0; overflow: hidden; }
.gal-view { margin: 0; }
.gal-view img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.gal-view figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 18px; }
.gal-view figcaption span { color: var(--muted); flex: 1 1 200px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gal-item span { font-size: 10.5px; left: 5px; bottom: 5px; } }

.nav a { white-space: nowrap; }
@media (min-width: 1241px) { .nav .nav-m { display: none; } }

/* ---------- кіт ---------- */
.cat-peek { position: absolute; top: -69px; right: 34px; width: 120px; padding: 0; border: 0; background: none; cursor: pointer; z-index: -1; }
.cat-peek img { display: block; width: 100%; height: auto; }
.cat-peek.meow { animation: meow .6s ease; }
@keyframes meow { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }
.site-footer { position: relative; }
.cat-page .cat-sit { display: block; margin: 0 auto 12px; height: auto; }
.drawer-empty .cat-sit { display: block; margin: 24px auto 8px; height: auto; }
@media (max-width: 640px) { .cat-peek { width: 96px; top: -56px; right: 22px; } }
@media (min-width: 1101px) { .footer-grid { grid-template-columns: 1.35fr repeat(5, 1fr); } }
.footer-grid .foot-phone { white-space: nowrap; }

/* фото в іншому кольорі, перефарбоване під обраний колір */
.door-tint { position: relative; display: inline-block; height: 100%; max-width: 100%; isolation: isolate; line-height: 0; vertical-align: top; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .14)); }
.door-tint .door-img { height: 100%; width: auto; max-width: 100%; }
.door-tint .door-img { filter: grayscale(1) brightness(1.24) contrast(1.06); }
.door-tint i { position: absolute; inset: 0; background-color: var(--tint); background-image: var(--tex, none); background-size: 100% 100%; mix-blend-mode: multiply; pointer-events: none; }
@media (max-width: 760px) { .usp > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* випадаючі списки конфігуратора — як інші поля форми */
.configurator select[data-key] { width: 100%; max-width: 100%; font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); background-color: #fff; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); }
.configurator select[data-key]:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px rgba(21, 110, 105, .15); }
.configurator .cfg-group > select[data-key] + .chips { margin-top: 10px; }
/* герой: текст угорі поруч із високим калькулятором */
@media (min-width: 960px) { .hero .hero-grid { align-items: start; } .hero-text { position: sticky; top: 120px; } }

/* головна: приклад ціни на найдешевших дверях (без переліку) */
.hero-example { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.hero-example .quick-door { min-height: 0; text-decoration: none; }
.hero-example .quick-door .door-img { max-height: 280px; }
.hero-example h2 { font-size: 24px; margin: 2px 0 2px; }
.ex-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.ex-row b { font-size: 18px; }
.ex-kit s { color: var(--muted); font-weight: 600; }
.ex-kit em { font-style: normal; font-weight: 800; color: var(--ok); margin-left: 6px; }
.ex-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 14px; font-weight: 800; }
.ex-total b { font-size: 32px; color: var(--primary); }
@media (max-width: 520px) { .hero-example { grid-template-columns: 90px 1fr; gap: 14px; } .hero-example .quick-door .door-img { max-height: 200px; } .ex-total b { font-size: 26px; } }
.kits-banner .btn { justify-self: start; }
/* список комплекту в конфігураторі */
.ex-kit { border-bottom: 0; padding-bottom: 4px; }
.ex-kit > span:last-child { white-space: nowrap; }
.ex-list { list-style: none; margin: 0; padding: 0 0 9px; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.45; color: var(--muted); }
.ex-list li::before { content: '✓ '; color: var(--ok); font-weight: 800; }

/* вибір кольору фото дверей (як на inwood.com.ua) */
.swatch.door-thumb { width: 36px; height: 62px; border-radius: 6px; background: #F1EEE8 center / auto 88% no-repeat; box-shadow: none; border: 1px solid var(--line); }
.swatch.door-thumb.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.card-sw .dot { width: 16px; height: 27px; border-radius: 3px; flex: none; background-color: #F1EEE8; background-position: center; background-size: auto 92%; background-repeat: no-repeat; }
.series-switch { margin-top: 14px; }
.series-switch .on { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; }

/* «Вас також може зацікавити» — фурнітура біля розрахунку */
.also { margin-top: 16px; padding: 14px 0 0; border-top: 1px dashed var(--line); }
.also-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.also-list { display: flex; flex-wrap: wrap; gap: 8px; }
.also-item { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.also-item:hover { border-color: var(--accent); }
.also-item img, .also-item i { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #F4F1EC; display: block; }
.also-item span { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.also-item small { font-weight: 500; color: var(--accent-2); font-size: 12px; }
.also-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.drawer-also { padding: 0 2px; } .drawer-also .also-list { flex-wrap: wrap; overflow: visible; }
.also-item i svg { width: 100%; height: 100%; display: block; }
/* усі кольори в один ряд на комп’ютері: мініатюри дверей підлаштовуються під ширину картки */
@media (min-width: 700px) {
  .card-sw { flex-wrap: nowrap; gap: 3px; }
  .card-sw .dot { flex: 0 1 16px; min-width: 9px; width: auto; height: auto; aspect-ratio: 16 / 27; }
}
@media (max-width: 699px) { .card-sw { gap: 3px; } .card-sw .dot { width: 13px; height: 22px; } }
.fast-mount { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; border-left: 5px solid var(--accent); }
.fast-mount h2 { margin: 0 0 12px; }
.fast-mount p { margin: 0 0 10px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 920px; }
.fast-mount .fm-result { color: var(--ink); font-weight: 700; margin: 0; }
@media (min-width: 900px) { .fast-mount { padding: 36px 40px; } }

/* погонаж окремо */
.mould .tabs { margin-bottom: 14px; }
.mould-group { margin-top: 22px; }
.mould-group h2 small { font-size: 13px; font-weight: 400; margin-left: 6px; }
.mould-list { display: grid; gap: 10px; }
.mould-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mould-item img { width: 64px; height: 64px; object-fit: contain; }
.mould-name { display: flex; flex-direction: column; gap: 2px; }
.mould-name b { font-size: 17px; }
@media (max-width: 600px) {
  .mould-item { grid-template-columns: 52px auto 1fr; gap: 8px 12px; }
  .mould-item img { width: 52px; height: 52px; grid-row: span 2; }
  .mould-name { grid-column: 2 / 4; }
  .mould-item .btn { justify-self: end; }
}
.plain-list { padding-left: 22px; line-height: 1.6; }
.plain-list li { margin-bottom: 6px; }
.constr { margin: 0; }
.constr svg { width: 100%; height: auto; display: block; max-width: 520px; }
.constr ol { padding-left: 22px; margin: 12px 0 8px; font-size: 14px; line-height: 1.55; }
.spec-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .spec-grid { grid-template-columns: 1fr; } }
.price-table .pt-head td { font-weight: 700; background: var(--bg, #f6f1ea); padding-top: 12px; }
#hw-colors[hidden] { display: none; }
/* позиції без фото — без картинки */
.bundle-item.np { grid-template-columns: 1fr auto; }
.cart-item.np, .d-item.np { grid-template-columns: 1fr; }
.d-item.np { grid-template-columns: 1fr auto; }
@media (min-width: 900px) { .hw-page.np { grid-template-columns: 1fr; max-width: 640px; } }
#hw-more[hidden] { display: none; }
/* вікно «Дякуємо» */
.modal-thanks { max-width: 420px; }
.thanks { text-align: center; padding: 8px 4px 4px; }
.thanks .cat-sit { display: block; margin: 0 auto 10px; height: auto; }
.thanks h3 { margin: 0 0 8px; font-size: 24px; }
.thanks p { margin: 0 0 14px; }
.thanks .btn { min-width: 160px; }
/* банер для виробників на головній */
.maker-call { display: grid; gap: 20px; align-items: center; padding: 30px 26px; border-radius: 24px; background: linear-gradient(135deg, #123B36, #1E5049); color: #fff; }
.maker-call .eyebrow { color: #F2B27A; }
.maker-call h2 { color: #fff; margin: 6px 0 10px; }
.maker-call p { color: rgba(255,255,255,.82); max-width: 720px; margin: 0 0 12px; }
.maker-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.maker-ticks li { color: #fff; font-weight: 600; }
.maker-ticks li::before { content: '✓'; color: #F2B27A; margin-right: 8px; }
.maker-call .btn { justify-self: start; }
@media (min-width: 900px) { .maker-call { grid-template-columns: 1fr auto; padding: 38px 44px; } }
/* плашка для виробників над заголовком головної */
.maker-pill { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(217, 119, 58, .14); color: #E08A4E; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s; }
.maker-pill:hover { background: rgba(217, 119, 58, .26); }
/* галерея «Двері в інтер’єрі» — картки моделей з кольорами */
.gm-tabs { justify-content: center; margin: 4px 0 26px; }
.gm-group { margin-bottom: 36px; }
.gm-group[hidden] { display: none; }
.gm-group h2 { margin: 0 0 16px; }
.gm-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gm-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gm-img { display: block; aspect-ratio: 3 / 2; background: #EDE8E0; overflow: hidden; }
.gm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-body { padding: 14px 16px 16px; }
.gm-body h3 { margin: 0 0 6px; font-size: 20px; }
.gm-body h3 a { color: inherit; text-decoration: none; }
.gm-color { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.gm-color b { color: var(--ink); font-weight: 600; }
.gm-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: #F4F1EC center 30% / 70% auto no-repeat; cursor: pointer; padding: 0; }
.gm-dot[data-bg] { background-color: var(--sw); }
.gm-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
@media (max-width: 640px) { .gm-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gm-body { padding: 10px 10px 12px; } .gm-body h3 { font-size: 16px; } .gm-dot { width: 26px; height: 26px; } .gm-sw { gap: 6px; } }
/* головна: «Чому наші двері» коротко */
.why { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.why-item i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: #EAF2EF; color: var(--primary); }
.why-item b { display: block; font-size: 15px; line-height: 1.3; }
.why-item span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
/* головна: «Як купити» — комплект і 4 кроки в одному блоці */
.buy-how { display: grid; gap: 22px; padding: 30px 26px; border-radius: 24px; background: linear-gradient(135deg, #123B36, #1E5049); color: #fff; }
.buy-how h2 { color: #fff; margin: 6px 0 8px; }
.buy-how .bh-head p { color: rgba(255,255,255,.82); max-width: 760px; margin: 0; }
.bh-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.bh-steps li { counter-increment: st; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
.bh-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 8px; }
.bh-steps b { display: block; color: #fff; }
.bh-steps span { display: block; color: rgba(255,255,255,.78); font-size: 14px; margin-top: 4px; }
.buy-how .btn { justify-self: start; }
@media (min-width: 900px) { .buy-how { padding: 40px 44px; } }
.ex-kit-note { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: #EAF5EE; }
.ex-kit-note b { display: block; color: var(--ok, #2F7A4F); font-size: 18px; }
.ex-kit-note span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
/* «Комплект −5%» замість ціни комплекту — одним рядком */
.price-kit { font-size: 13.5px; }
.price-kit b, .price-kit b { display: inline; font-size: 13.5px; color: var(--ok, #2F7A4F); background: #EAF5EE; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
/* калькулятор у картці */
.card-calc-toggle { margin: 8px 0 2px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1.5px dashed var(--line); background: transparent; color: var(--primary); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.card-calc-toggle span { display: inline-block; transition: transform .2s; }
.card.calc-open .card-calc-toggle span { transform: rotate(180deg); }
.card.calc-open .card-calc-toggle { border-style: solid; border-color: var(--primary); }
.card-calc { display: grid; gap: 8px; margin: 8px 0 4px; }
.card-calc[hidden] { display: none; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-f { display: grid; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.cc-f select { width: 100%; min-width: 0; padding: 7px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 13px; color: var(--ink); }
.cc-check { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.3; }
.cc-check small { color: var(--muted); white-space: nowrap; }
.cc-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.cc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 10px 0 2px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.cc-total b { font-size: 20px; color: var(--primary); white-space: nowrap; }
.cc-total s { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 340px) { .cc-row { grid-template-columns: 1fr; } }
/* картка магазину як на inwood: колір і калькулятор завжди відкриті */
.card-color { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.card-color b { color: var(--ink); font-weight: 600; }
.card .card-calc { margin-top: 10px; }
.card .card-actions { padding-top: 10px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
/* кружечки кольорів у картці — як на inwood: круглі, з мініатюрою дверей */
.card .card-sw { flex-wrap: wrap; gap: 8px; }
.card .card-sw .dot { flex: none; width: 34px; height: 34px; aspect-ratio: auto; min-width: 0; border-radius: 50%; border: 1px solid var(--line); background-color: #F4F1EC; background-position: center 35%; background-size: auto 78%; background-repeat: no-repeat; }
.card .card-sw .dot[data-bg] { background-color: var(--sw); }
.card .card-sw .dot.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
@media (max-width: 600px) { .card .card-sw .dot { width: 40px; height: 40px; } .card .card-sw { gap: 10px; } }
/* списки в картці: крупніші, як на inwood; 16px на телефоні — iPhone не збільшує сторінку при натисканні */
.cc-f { font-size: 13px; gap: 5px; }
.cc-f select { padding: 10px 36px 10px 12px; border-radius: 12px; font-size: 14px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16'%3E%3Cpath d='M2 6l4-4 4 4M2 10l4 4 4-4' fill='none' stroke='%231C2A2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.cc-f select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 119, 58, .18); }
.cc-check { font-size: 14px; padding: 4px 0; }
.cc-check input { width: 20px; height: 20px; flex: none; accent-color: var(--primary-2, #1E5049); }
@media (max-width: 600px) {
  .cc-f { font-size: 14px; }
  .cc-f select { font-size: 16px; padding: 13px 38px 13px 14px; }
  .card-calc { gap: 12px; }
}
/* картка: двері цілком, з повітрям зверху і знизу */
.card-img { aspect-ratio: auto; height: 380px; max-height: none; }
.door-holder { padding: 22px 18px; align-items: center; }
.door-holder .door-img { height: 100%; }
@media (max-width: 640px) { .card-img { height: 420px; } }
/* фільтри: варіант, що дасть 0 моделей, — неактивний */
.filters label.off { opacity: .4; pointer-events: none; }
.filters .tone:disabled { opacity: .35; cursor: default; }
/* інтер’єр: збільшення фото і кнопка ціни */
button.gm-img { position: relative; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.gm-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.gm-price { margin-top: 14px; }
.gm-lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,20,22,.92); display: flex; align-items: center; justify-content: center; padding: 56px 12px 84px; }
.gm-lb[hidden] { display: none; }
.gm-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.gm-lb-x { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.gm-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; cursor: pointer; }
.gm-lb-nav[hidden] { display: none; }
.gm-lb-nav.prev { left: 12px; } .gm-lb-nav.next { right: 12px; }
.gm-lb-bar { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 14px; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-wrap: wrap; padding: 0 12px; }
@media (max-width: 640px) { .gm-price { font-size: 13px; padding-left: 6px; padding-right: 6px; } .gm-zoom { width: 30px; height: 30px; } .gm-lb-nav { width: 40px; height: 40px; } }
.gm-hd .gm-img { aspect-ratio: 3 / 2; background: #E9E6E1; }
.gm-hd .gm-img img { object-fit: contain; }
/* підказка про погонаж і плінтус */
.extras-hint { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px dashed var(--line); font-size: 14px; }
.extras-hint span { color: var(--muted); }
.extras-hint a { font-weight: 700; color: var(--primary); text-decoration: none; }
.extras-hint a:hover { text-decoration: underline; }
.collections + .extras-hint { margin: 18px 0 0; }
.only-plinth .plinth-calc { margin-top: 8px; padding-top: 0; border-top: 0; }
#plinth { scroll-margin-top: 120px; }
.flags { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 8px; }
.flags span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; }
.flags i { font-style: normal; font-size: 22px; }
#export-form, #b2b-form { scroll-margin-top: 110px; }
/* меню з 8 пунктів: щільніше, логотип не стискається */
@media (min-width: 1281px) { .nav { gap: 13px; margin-left: 8px; } .nav a { font-size: 14.5px; } }
@media (min-width: 1241px) and (max-width: 1360px) { .nav { gap: 11px; margin-left: 6px; } .nav a { font-size: 13.5px; } }
.logo, .logo svg, .logo img { flex-shrink: 0; }
.page-head > .btn { margin-top: 6px; } .page-head + h2 { margin-top: 34px; }
main > .wrap:last-child { padding-bottom: 72px; }
/* кнопка кошика, телефон і мови не стискаються */
.header-main > .cart-btn, .header-main > .header-phone, .header-main > .lang, .header-main > .logo { flex-shrink: 0; }
.cart-btn { width: 44px; height: 44px; }
@media (min-width: 1241px) { .nav { gap: 12px; margin-left: 8px; } .nav a { font-size: 14px; } .header-phone { font-size: 15px; } }
@media (min-width: 1241px) { html[lang="ru"] .nav { gap: 9px; } html[lang="ru"] .nav a { font-size: 13px; } }
/* вкладки магазину */
.shop-tabs { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab { flex-shrink: 0; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.shop-tab:hover { border-color: var(--primary); }
.shop-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 520px) { .shop-tab { padding: 9px 14px; font-size: 14px; } }
.empty .center-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* фільтри: на ПК — колонка, на телефоні — панель знизу */
.filters-head, .filters-bg, .filters-apply { display: none; }
.filters-foot { margin-top: 16px; }
.filters-foot [data-reset] { width: 100%; }
@media (max-width: 959px) {
  .filters.open { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; max-height: 85vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 0 18px; box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: sheetUp .25s ease; }
  .filters-bg:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 155; background: rgba(15,20,22,.45); }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--card); padding: 16px 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); z-index: 1; font-size: 18px; }
  .filters-head .x { font-size: 30px; line-height: 1; background: none; border: 0; cursor: pointer; padding: 0 4px; color: var(--ink); }
  .filters-foot { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--card); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 14px; }
  .filters-foot [data-reset] { width: auto; flex: 0 0 auto; }
  .filters-apply { display: inline-flex; flex: 1; justify-content: center; }
  body.sheet-open { overflow: hidden; }
  body.sheet-open .float-contacts { display: none; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
/* сторінка моделі: вкладки і компактні «інші моделі» */
.ptabs { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 22px; margin: 28px 0; }
.ptabs-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -6px 18px; }
.ptabs-nav::-webkit-scrollbar { display: none; }
.ptab { flex-shrink: 0; padding: 14px 14px 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; }
.ptab.active { color: var(--ink); border-color: var(--accent); }
.ptab-pane h2 { display: none; }
.ptab-pane[hidden] { display: none; }
.mini-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mini-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 10px 12px; text-decoration: none; color: var(--ink); }
.mini-card img { height: 170px; width: auto; object-fit: contain; }
.mini-card small { color: var(--muted); }
.mini-card:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
@media (max-width: 640px) { .ptabs { padding: 4px 14px 16px; } .ptab { font-size: 14px; padding: 12px 10px 10px; } .mini-cards { grid-auto-columns: 130px; } .mini-card img { height: 150px; } }
/* сторінка моделі: фурнітура одним замовленням */
.kit-hw { margin: 36px 0 8px; text-align: center; }
.kit-hw h2 { margin-bottom: 6px; }
.kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 12px; text-align: left; }
.kit-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 0 0 14px; overflow: hidden; }
.kit-card > *:not(.kit-ph) { margin: 0 14px; }
.kit-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #F4F1EC; margin-bottom: 6px; }
.kit-ph img { max-width: 70%; max-height: 80%; object-fit: contain; }
.kit-card small { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.kit-name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; flex: 1; }
.kit-card .btn { margin-top: 4px !important; }
@media (max-width: 760px) { .kit-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* компактні картки на сторінках міст і добірок: без калькулятора, 2 в ряд на телефоні */
.card-from { margin: 2px 0 4px; color: var(--muted); font-size: 14px; }
.card-from b { color: var(--ink); font-size: 18px; }
.card-compact .card-actions { margin-top: auto; }
@media (max-width: 640px) {
  .grid-compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-compact .card-img { height: 250px; }
  .grid-compact .door-holder { padding: 14px 10px; }
  .grid-compact .card-body { padding: 10px; gap: 6px; }
  .grid-compact .card-col, .grid-compact .card-color { display: none; }
  .grid-compact h3 { font-size: 14px; }
  .grid-compact .card-sw { gap: 4px; }
  .grid-compact .dot { width: 22px; height: 22px; }
  .grid-compact .card-sw .dot:nth-child(n+9) { display: none; }
  .grid-compact .card-from b { font-size: 15px; }
  .grid-compact .btn { font-size: 13px; padding: 9px 8px; }
}
.seo-text p { max-width: 860px; color: var(--muted); line-height: 1.65; }
/* магазин (ПК і телефон): компактні картки; калькулятор — за кнопками «Купити полотно» / «+ Погонаж» */
.card-quick, .card-more { display: none; }
.grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-calc,
.grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-actions,
.grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-col { display: none; }
.grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-quick { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.card.open-leaf .cc-kit { display: none; }
.card.open-leaf .card-more, .card.open-kit .card-more { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.card.open-kit .card-more [data-quick="kit"] { display: none; }
.card-more .link-btn { font-weight: 700; color: var(--primary); }
.card.open-leaf, .card.open-kit { scroll-margin-top: 110px; }
@media (max-width: 640px) {
  .grid:not(.grid-compact) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-color { display: none; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-img { height: 250px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .door-holder { padding: 14px 10px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-body { padding: 10px; gap: 6px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) h3 { font-size: 14px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-sw { gap: 4px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .dot { width: 22px; height: 22px; }
  .grid:not(.grid-compact) .card:not(.open-leaf):not(.open-kit) .card-sw .dot:nth-child(n+9) { display: none; }
  .card-quick .btn { font-size: 13px; padding: 9px 6px; }
  .card.open-leaf, .card.open-kit { grid-column: 1 / -1; scroll-margin-top: 90px; }
}
/* ПК: фільтр поміщається в екран і гортається окремо від списку */
@media (min-width: 960px) {
  .filters { top: 122px; max-height: calc(100vh - 138px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px 18px 0; }
  .filters h4 { margin: 14px 0 6px; }
  .filters label { padding: 2px 0; font-size: 14px; }
  .filters .tone-chips { gap: 6px; }
  .filters .tone { padding: 6px 12px; font-size: 13px; }
  .filters .filters-foot { position: sticky; bottom: 0; background: var(--card); padding: 12px 0 16px; margin-top: 10px; }
}
.cc-ask { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
.grid:not(.grid-compact) { align-items: start; }
.filters [data-hframe-box] h4 { margin-top: 16px; }
.catalog-layout .grid { overflow-anchor: none; }
