:root {
    --bg: #ffffff;
    --surface: #f6f4f1;
    --ink: #1f1d1b;
    --muted: #6f6a63;
    --accent: #b9722e;          /* warm, refined terracotta */
    --accent-dark: #9a5c20;
    --border: #eae6df;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(30, 25, 20, .08);
    --shadow-lg: 0 20px 50px rgba(30, 25, 20, .14);
    --max: 1200px;
    --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.logo span { color: var(--accent); }
.logo--footer { color: #fff; font-size: 1.35rem; }
.logo--footer span { color: var(--accent); }

.main-nav { display: flex; gap: 28px; margin-right: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .96rem; transition: color .15s; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-search { display: flex; align-items: center; gap: 7px; background: var(--surface); border-radius: 999px; padding: 7px 14px; color: var(--muted); }
.header-search input { border: none; background: transparent; outline: none; font-family: var(--font); font-size: .9rem; width: 130px; color: var(--ink); }
.header-search input::placeholder { color: var(--muted); }
.search-page { display: flex; gap: 10px; margin-bottom: 26px; max-width: 620px; }
/* min-width:0 — у <input> своя типова мінімальна ширина (≈20 символів), тож
   flex:1 його не стискав і кнопка «Знайти» вилазила за екран на телефоні. */
.search-page input { flex: 1 1 auto; min-width: 0; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: var(--font); outline: none; }
.search-page .btn { flex: 0 0 auto; }
.search-page input:focus { border-color: var(--accent); }
@media (max-width: 760px) { .header-search input { width: 90px; } }

.lang-switch { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; }
.lang-switch a {
    display: inline-block;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 6px 13px;
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.cart-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); position: relative; }
.cart-count {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 6px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-image: linear-gradient(90deg, rgba(20,16,12,.72) 0%, rgba(20,16,12,.35) 55%, rgba(20,16,12,.05) 100%), var(--hero-img);
    background-size: cover;
    background-position: center;
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-inner { width: 100%; }
.hero-text { max-width: 600px; color: #fff; }
.hero-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f0d9c4;
    margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.9); margin: 0 0 30px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .06s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* Для СВІТЛОГО фону. .btn--ghost написана під темне фото в hero (білий текст),
   і на світлому блоці вона просто зникала — кнопки не було видно. */
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.22); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Sections ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Categories ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-card__icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}
.category-card__icon svg { width: 42px; height: 42px; }
.category-card__title { font-weight: 700; font-size: 1.08rem; }

/* ---- Плитки напрямків з фото (головна) ----
   Два великих кліковних блоки замість дрібних іконок: фото інтер'єру продає
   товар, схематична іконка — ні. */
.category-grid--photo {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.category-grid--photo .category-card {
    padding: 0;
    overflow: hidden;
    gap: 0;
    align-items: stretch;
    text-align: left;
}
.category-card__photo {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface);
}
.category-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Плавний зум під курсором — плитка читається як натискна */
    transition: transform .5s ease;
}
.category-card:hover .category-card__photo img { transform: scale(1.05); }
.category-card__cap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px 20px;
}
.category-card__hint { font-size: .92rem; color: var(--muted); }

@media (max-width: 700px) {
    .category-grid--photo { grid-template-columns: 1fr; gap: 16px; }
    .category-card__photo { aspect-ratio: 16 / 9; }
}

/* ---- Згода при оформленні замовлення ---- */
.co-consent {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 18px 0 14px; font-size: .92rem; line-height: 1.5;
    color: var(--muted); cursor: pointer;
}
.co-consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--accent); }
.co-consent a { color: var(--accent); text-decoration: underline; }

/* ---- Юридичні документи ---- */
.legal { max-width: 860px; }
.legal__updated { color: var(--muted); font-size: .92rem; margin: -8px 0 26px; }
.legal__body { line-height: 1.7; }
.legal__body h2 {
    font-size: 1.16rem; margin: 30px 0 10px; padding-top: 4px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin: 0 0 12px; color: var(--ink); }
.legal__body ul { margin: 0 0 14px; padding-left: 22px; }
.legal__body li { margin-bottom: 5px; color: var(--ink); }
.legal__body a { color: var(--accent); text-decoration: underline; }
.legal__other {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
}
.legal__other-head {
    display: block; font-weight: 700; margin-bottom: 10px;
}
.legal__other-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal__other-links a { color: var(--muted); }
.legal__other-links a:hover { color: var(--accent); }

/* ---- Опис розділу каталогу ---- */
.cat-intro {
    max-width: 78ch;
    margin: -6px 0 26px;
    color: var(--muted);
    line-height: 1.65;
}
.cat-intro p { margin: 0 0 10px; }
.cat-intro p:last-child { margin-bottom: 0; }

/* ---- «Як ми працюємо» + гарантії ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    counter-reset: step;
}
.step {
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.step__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 4px;
    border-radius: 50%;
    background: var(--accent); color: #fff;
    font-weight: 800; font-size: .95rem;
}
.step strong { font-size: 1.02rem; }
.step span:not(.step__n) { color: var(--muted); font-size: .93rem; line-height: 1.55; }

.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
}
.trust__item { display: flex; flex-direction: column; gap: 5px; }
.trust__item strong { font-size: 1rem; }
.trust__item span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.trust__item a { color: var(--accent); text-decoration: underline; white-space: nowrap; }

@media (max-width: 700px) {
    .steps { grid-template-columns: 1fr; gap: 12px; }
    .step { padding: 18px; }
    .trust { padding: 18px; }
}

/* ---- Блок установки ---- */
.install {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.install__text { flex: 1 1 380px; }
.install__text h2 { margin: 10px 0 8px; }
.install__text p { color: var(--muted); margin: 0; max-width: 62ch; }
.install__badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.install__cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 700px) {
    .install { padding: 22px; }
    .install__cta { width: 100%; }
    .install__cta .btn { flex: 1 1 auto; text-align: center; }
}
.category-card--soon { opacity: .8; }
.category-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: #f5e7d8;
    padding: 3px 9px;
    border-radius: 999px;
}

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px;
}
.benefit__icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.benefit span { color: var(--muted); }

/* ---------- Simple inner pages ---------- */
.page { padding: 56px 24px; min-height: 40vh; }
.page-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #201d1a; color: #cfc8bf; margin-top: 24px; padding: 52px 0 26px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.site-footer p { margin: 5px 0; color: #a8a297; }
.copyright { margin-top: 34px; padding-top: 18px; border-top: 1px solid #35312c; color: #857f75; font-size: .85rem; }

/* ---------- Responsive ---------- */
/* ---------- Catalog: category pills ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.cat-pill {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    transition: all .15s;
}
.cat-pill:hover { color: var(--ink); }
.cat-pill.active { background: var(--ink); color: #fff; }
.cat-pill__count { opacity: .55; font-weight: 700; font-size: .8em; margin-left: 2px; }

/* Subcategory drill-down cards ("вкладки") */
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.subcat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
}
.subcat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.subcat-card:hover .subcat-card__arrow { color: var(--accent); transform: translateX(3px); }
.subcat-card__img {
    flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
    background: var(--surface);
}
.subcat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.subcat-card__body { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.subcat-card__title { font-weight: 700; font-size: 1.1rem; }
.subcat-card__count { color: var(--muted); font-size: .85rem; }
.subcat-card__arrow { color: var(--border); transition: transform .14s, color .14s; }

/* Category card with background photo (darkened, clickable) */
.subcat-card--photo {
    min-height: 156px;
    padding: 20px;
    background-size: cover;
    background-position: center;
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    align-items: flex-end;
}
.subcat-card--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 17, 12, .82) 0%, rgba(22, 17, 12, .25) 60%, rgba(22, 17, 12, .1) 100%);
    transition: background .18s;
}
.subcat-card--photo:hover::before {
    background: linear-gradient(to top, rgba(22, 17, 12, .88) 0%, rgba(22, 17, 12, .4) 60%, rgba(22, 17, 12, .2) 100%);
}
.subcat-card--photo .subcat-card__body,
.subcat-card--photo .subcat-card__arrow { position: relative; z-index: 1; }
.subcat-card--photo .subcat-card__title { color: #fff; font-size: 1.35rem; }
.subcat-card--photo .subcat-card__count { color: rgba(255, 255, 255, .85); }
.subcat-card--photo .subcat-card__arrow { color: #fff; }

/* Listing head + pager */
.list-head { margin: 26px 0 14px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; }
.pager a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span { color: var(--muted); font-size: .92rem; }

/* Constructor */
.cons-lead { margin: -6px 0 22px; }
.cons { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.cons__preview {
    position: relative; background: #f4f3f1; border-radius: var(--radius);
    height: 340px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 18px;
}
.cons__preview img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .2s; }
.cons__preview.loading img { opacity: .35; }
.cons__loader { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.cons__preview.loading .cons__loader { display: flex; }
.cons__loader span {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--accent);
    animation: consSpin .8s linear infinite;
}
@keyframes consSpin { to { transform: rotate(360deg); } }
.cons__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; margin-right: 8px; border-radius: 50%;
    background: var(--ink); color: #fff; font-style: normal; font-size: .74rem;
}
.cons__speclist { display: grid; gap: 8px; margin-top: 14px; }
.cons__speclist div { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: var(--muted); }
.cons__speclist span { color: var(--ink); font-weight: 600; }
.cons__speclist b { color: var(--ink); }

.cons__step { margin-bottom: 20px; }
.cons__label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 9px; }
.cons__row { display: flex; justify-content: space-between; align-items: baseline; }
.cons__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cons__chip {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
    background: #fff; color: var(--muted); font-family: var(--font); font-size: .86rem;
    font-weight: 600; cursor: pointer; transition: all .18s;
}
.cons__chip:hover { color: var(--ink); }
.cons__chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cons__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.cons__thumbs--scroll { max-height: 210px; overflow-y: auto; padding-right: 4px; }
.cons__thumb {
    width: 78px; border: 2px solid var(--border); border-radius: 10px; background: #fff;
    padding: 5px; cursor: pointer; font-family: var(--font); transition: border-color .18s;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.cons__thumb img { width: 100%; height: 52px; object-fit: contain; }
.cons__thumb span { width: 100%; height: 52px; background: var(--surface); border-radius: 6px; display: block; }
.cons__thumb small { font-size: .68rem; color: var(--muted); line-height: 1.15; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cons__thumb:hover { border-color: var(--muted); }
.cons__thumb.active { border-color: var(--accent); }
.cons__thumb.active small { color: var(--ink); font-weight: 700; }

.cons__total { display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.cons__total span { color: var(--muted); }
.cons__total b { font-size: 1.15rem; }
.cons__cta { width: 100%; margin-top: 12px; text-align: center; }

@media (max-width: 860px) { .cons { grid-template-columns: 1fr; gap: 22px; } }

/* Info pages */
.info { max-width: 780px; }
.info__lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 24px; }
.info h2 { font-size: 1.22rem; margin: 30px 0 10px; }
.info p, .info li { color: var(--muted); line-height: 1.75; }
.info ul { padding-left: 20px; margin: 10px 0; }
.info li { margin-bottom: 6px; }
.info b { color: var(--ink); }
.info a { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.contact-card__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-card__value { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { color: #b3ada3; }
.footer-links a:hover { color: #fff; }

/* Messenger buttons */
.msg-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.msg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; color: #fff; transition: transform .06s, filter .15s; }
.msg-btn:hover { filter: brightness(1.08); }
.msg-btn:active { transform: translateY(1px); }
.msg-btn--wa { background: #25D366; }
.msg-btn--tg { background: #2AABEE; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .9rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--border); }
.crumbs__cur { color: var(--ink); font-weight: 700; }

/* ---------- Catalog: product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__img { background: #f4f3f1; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .5s ease; }
.product-card__ph { color: #cbc3b8; font-weight: 800; letter-spacing: .04em; }
.product-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #fff;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.product-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.product-card__cat { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.product-card__title { font-size: 1.05rem; font-weight: 700; }
.product-card__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.product-card__price strong { font-size: 1.15rem; }
.product-card__price s { color: var(--muted); font-size: .9rem; }
.price-request { color: var(--accent); }

/* ---------- Product detail ---------- */
.back-link { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.back-link:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
/* min-width:0 обовʼязковий: у grid-елемента типове min-width:auto, і плівка
   мініатюр з overflow-x просто РОЗПИРАЛА колонку — сторінка ставала 4688px
   шириною замість 390. Той самий підводний камінь був у конструкторі карнизів. */
.product__gallery { position: sticky; top: 96px; min-width: 0; }
.product__info { min-width: 0; }
.product__main-img, .product__ph {
    width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
    border-radius: var(--radius); background: #f4f3f1;
}
.product__ph { display: flex; align-items: center; justify-content: center; color: #cbc3b8; font-weight: 800; font-size: 1.4rem; }
/* Плівка мініатюр — ОДИН рядок з горизонтальним скролом.
   Раніше стояв flex-wrap, і на товарі з 57 кольорами (ролети) плівка
   розросталась на пів екрана, а нижче ті самі 57 кольорів ішли ще раз у
   блоці «Кольори». До опису й кнопки «купити» треба було прокрутити дві
   однакові сітки. */
.product__thumbs {
    display: flex; gap: 10px; margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.product__thumbs img { flex: 0 0 auto; scroll-snap-align: start; }
.product__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; transition: border-color .12s; }
.product__thumbs img:hover { border-color: var(--muted); }
.product__thumbs img.active { border-color: var(--accent); }
.thumb--doc { background: #fff; }

/* Gallery with arrows */
.gallery { position: relative; }
.gallery__stage { overflow: hidden; border-radius: var(--radius); position: relative; cursor: zoom-in; }
.gallery__stage .product__main-img { display: block; }

/* Фото на весь екран — просто збільшення, без стрибків за курсором */
.zoom {
    position: fixed; inset: 0; z-index: 90; cursor: zoom-out;
    background: rgba(20, 20, 22, .82);
    display: flex; align-items: center; justify-content: center; padding: 3vmin;
}
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: var(--radius); background: #fff; }
.gallery:hover .gallery__arrow { opacity: 1; }
.gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .55;
    transition: opacity .15s, background .15s, color .15s, transform .05s;
    backdrop-filter: blur(4px);
}
.gallery__arrow:hover { background: var(--accent); color: #fff; }
.gallery__arrow:active { transform: translateY(-50%) scale(.94); }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
@media (max-width: 760px) { .gallery__arrow { opacity: 1; width: 40px; height: 40px; } }
.product__cat { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 8px 0 10px; }
.product__article { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.product__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.product__price strong { font-size: 1.9rem; }
.product__price s { color: var(--muted); font-size: 1.1rem; }
.product__block { margin-bottom: 22px; }
.product__label { display: block; font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
/* 57 кольорів з підписами — це висока сітка. Обмежуємо висоту й даємо
   прокрутку всередині, щоб опис і кнопка замовлення не їхали за екран. */
.swatches {
    display: flex; flex-wrap: wrap; gap: 14px;
    max-height: 260px; overflow-y: auto;
    padding-right: 4px;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 66px; text-align: center; background: none; border: none; padding: 4px; cursor: pointer; font-family: var(--font); border-radius: 10px; transition: background .12s; }
.swatch:hover { background: var(--surface); }
.swatch img, .swatch i { width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--border); display: block; object-fit: cover; transition: border-color .12s; }
/* Довгі назви кольорів («Африканський корінь») ширші за плашку в 66px.
   Без переносу слово вилазить за краї, а стрічка кольорів прокручується —
   тобто має свій контекст обрізання, і в «Африканський» зникала перша літера.
   anywhere дозволяє розірвати слово будь-де: краще перенос, ніж обрубок. */
.swatch small { font-size: .74rem; color: var(--muted); line-height: 1.2;
    overflow-wrap: anywhere; width: 100%; }
.swatch.active img, .swatch.active i { border-color: var(--accent); }
.swatch.active small { color: var(--ink); font-weight: 700; }
/* Ширина × висота для ролет (рахунок за м²) */
.size-wh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.size-wh input { width: 110px; min-width: 0; }
.size-wh__x { color: var(--muted); font-weight: 700; }
.size-wh__area { font-weight: 700; color: var(--accent); min-width: 84px; }
.size-wh__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .84rem; line-height: 1.45; }

.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-option { padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; font-size: .92rem; }
.product__custom { color: var(--accent); font-weight: 600; }
.product__desc p { color: var(--muted); }
.product__order { margin-top: 14px; }

/* ---------- Add to cart form (product detail) ---------- */
.add-form { margin-top: 22px; }
.add-form__row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.field span { color: var(--muted); }
.field select, .field input, .field textarea, .order-form textarea {
    font-family: var(--font);
    font-size: 1rem;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    min-width: 150px;
}
.field--qty input { width: 90px; min-width: 0; }
.field select:focus, .field input:focus, .order-form textarea:focus {
    outline: none; border-color: var(--accent);
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item__img {
    width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
    background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img span { font-size: .7rem; color: #cbc3b8; font-weight: 800; }
.cart-item__info { display: flex; flex-direction: column; gap: 3px; }
.cart-item__meta { color: var(--muted); font-size: .88rem; }
.cart-item__price { color: var(--muted); font-size: .9rem; }
.cart-item__total { font-weight: 700; white-space: nowrap; }
.cart-item__remove button {
    border: none; background: var(--surface); color: var(--muted);
    width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; line-height: 1; transition: all .15s;
}
.cart-item__remove button:hover { background: #f0d9d2; color: #b13c2a; }
.cart-total { text-align: right; padding-top: 18px; font-size: 1.15rem; }
.cart-total strong { font-size: 1.5rem; }

.order-form { background: var(--surface); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.order-form h2 { font-size: 1.3rem; margin-bottom: 18px; }
.order-form .field { width: 100%; margin-bottom: 14px; }
.order-form .field input, .order-form .field textarea { width: 100%; }
.order-form .btn { width: 100%; margin-top: 6px; }
.field__err { color: #b13c2a; font-weight: 500; font-size: .82rem; font-style: normal; }

/* ---------- Messages ---------- */
.messages { margin-bottom: 20px; }
/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.co-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 22px 24px; margin-bottom: 16px;
}
.co-card h2 { font-size: 1.12rem; margin-bottom: 14px; }
.co-card .field { margin-bottom: 12px; }
.co-card .field:last-child { margin-bottom: 0; }
.co-card .field input, .co-card .field select, .co-card .field textarea { width: 100%; }
.co-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-city { position: relative; }
.co-drop {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,.10); overflow: hidden; margin-top: 4px;
    max-height: 260px; overflow-y: auto;
}
.co-drop button {
    display: block; width: 100%; text-align: left; padding: 10px 14px;
    background: #fff; border: 0; font-family: var(--font); font-size: .95rem;
    color: var(--ink); cursor: pointer;
}
.co-drop button:hover { background: var(--surface); }
.co-drop__empty { padding: 10px 14px; color: var(--muted); font-size: .9rem; }
.co-note { color: var(--muted); font-size: .88rem; margin-top: 8px; line-height: 1.55; }
.co-card details summary {
    cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--accent);
    list-style: none;
}
.co-card details summary::-webkit-details-marker { display: none; }
.co-comment { margin-top: 12px; }
.co-submit { width: 100%; padding: 15px; font-size: 1.05rem; }
.co-summary {
    background: var(--surface); border-radius: var(--radius);
    padding: 22px 24px; position: sticky; top: 96px;
}
.co-summary h2 { font-size: 1.12rem; margin-bottom: 14px; }
.co-item {
    display: grid; grid-template-columns: 58px 1fr auto; gap: 12px;
    align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.co-item__img { width: 58px; height: 58px; border-radius: 10px; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.co-item__img img { width: 100%; height: 100%; object-fit: contain; }
.co-item__info { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.co-item__meta { color: var(--muted); font-size: .82rem; }
.co-item__total { font-weight: 700; white-space: nowrap; }
.co-row { display: flex; justify-content: space-between; padding-top: 12px;
    color: var(--muted); font-size: .92rem; }
.co-row--total { color: var(--ink); font-size: 1.05rem; align-items: baseline; }
.co-row--total b { font-size: 1.2rem; }
.co-back { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.co-back:hover { color: var(--accent); }
@media (max-width: 900px) {
    .checkout { grid-template-columns: 1fr; }
    .co-summary { position: static; order: -1; }
    .co-grid2 { grid-template-columns: 1fr; }
}

.msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; }
.msg--success { background: #e6f4ea; color: #1e7a3d; }
.msg--error { background: #fbe7e3; color: #b13c2a; }

/* ---------- Success page ---------- */
.success { text-align: center; max-width: 520px; margin: 0 auto; padding-top: 70px; }
.success__icon { color: #2e9e54; margin-bottom: 12px; }
.success__num { font-size: 1.1rem; margin-bottom: 6px; }
.success .btn { margin-top: 24px; }

@media (max-width: 860px) {
    .product { grid-template-columns: 1fr; gap: 28px; }
    .product__gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; gap: 28px; }
    .order-form { position: static; }
}

/* Шапка в один рядок вимагає ≈930px (заміряно). Нижче цього логотип, меню,
   пошук, мови й кошик не влазять, і сторінка ставала ШИРШОЮ ЗА ЕКРАН —
   зʼявлявся горизонтальний скрол. Було на всіх сторінках, і на планшеті теж:
   старий брейкпоінт стояв на 760px, тож 768–940px лишались без лікування.

   Тепер два рядки: логотип + меню + мови + кошик, а пошук — на всю ширину під
   ними. display:contents прибирає обгортку .header-actions, щоб її діти стали
   звичайними flex-елементами шапки й слухались order. */
@media (max-width: 940px) {
    .header-inner { gap: 12px; height: auto; padding: 10px 20px; flex-wrap: wrap; }
    .header-actions { display: contents; }
    .lang-switch { order: 1; margin-left: auto; }
    .cart-link { order: 2; }
    .header-search { order: 3; flex: 1 1 100%; }
    .header-search input { width: 100%; }
}

/* ---- Бургер-меню (тільки телефон) ----
   На десктопі й планшеті працює звичайне .main-nav, кнопка прихована. */
.nav-burger { display: none; }
.mobile-nav { display: none; }

@media (max-width: 760px) {
    /* Пальцем важко влучити в лінк заввишки 20 px — Apple і Google радять
       мінімум 44 px. Ширину не чіпаємо (розкладка поїде), додаємо площу
       по вертикалі: сам текст лишається на місці, а зона натискання росте. */
    .footer-links a,
    .back-link,
    .cart-link,
    .lang-switch a { min-height: 44px; display: inline-flex; align-items: center; }
    .footer-links { gap: 0; }
    /* Поле пошуку в шапці було 21 px заввишки — на телефоні в нього
       не потрапити, та й клавіатура iOS зумить сторінку, якщо шрифт < 16px. */
    .header-search { padding: 11px 14px; }
    .header-search input { font-size: 16px; min-height: 24px; }
    /* Телефон, WhatsApp і Telegram у підвалі — це кнопки «подзвонити»,
       найважливіші посилання на телефоні. Робимо їх такими ж великими. */
    .footer-inner p a { min-height: 40px; display: inline-flex; align-items: center; }

    /* Чотири пункти меню на телефоні не поміщаються навіть в окремий рядок,
       тому головне меню ховаємо й даємо бургер. */
    .main-nav { display: none; }

    .nav-burger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: auto;
        border-radius: 10px; color: var(--ink); cursor: pointer;
        background: var(--surface);
    }
    /* Мови й кошик уже мають margin-left:auto — після бургера він зайвий */
    .lang-switch { margin-left: 0; }

    .mobile-nav {
        display: grid;
        order: 4;
        flex-basis: 100%;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav-toggle:checked ~ .mobile-nav { max-height: 420px; }
    .mobile-nav a {
        padding: 13px 4px;
        font-weight: 600;
        color: var(--ink);
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav a:last-child { border-bottom: none; }

    .hero { min-height: 480px; }
    .section { padding: 48px 20px; }
}

/* ---- Roller-blind constructor ---- */
.rk-lead { margin: -6px 0 22px; }
.rk { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.rk__preview { position: relative; background: #f0efec; border-radius: var(--radius);
    min-height: clamp(320px, 40vw, 520px); overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.rk__frame { position: relative; display: inline-flex; line-height: 0; }
.rk__frame--mirror { transform: scaleX(-1); }  /* керування зліва */
.rk__img { max-width: 100%; max-height: clamp(300px, 40vw, 500px); object-fit: contain;
    transition: opacity .18s; }
.rk__preview.loading .rk__img { opacity: .3; }
/* закрытая (кассетная) система: белый короб сверху + боковые направляющие */
.rk__cassette, .rk__rail { position: absolute; display: none; pointer-events: none; z-index: 3; }
.rk__frame--box .rk__cassette, .rk__frame--box .rk__rail { display: block; }
/* геометрия совпадает с положением роллеты в рендере (полотно x≈11–89%) */
.rk__cassette { top: 3%; left: 9%; right: 9%; height: 8.5%;
    background: linear-gradient(#fdfdfd, #e9ebec);
    border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.13); }
.rk__rail { top: 11%; bottom: 9%; width: 1.7%;
    background: linear-gradient(90deg,#f4f5f6,#d9dbdc,#eceded); }
.rk__rail--l { left: 10%; }
.rk__rail--r { right: 10%; }
.rk__fallback { display: flex; flex-direction: column; align-items: center; gap: 14px;
    color: var(--muted); text-align: center; padding: 20px; }
.rk__fallback[hidden] { display: none; }
.rk__fallback p { margin: 0; font-size: .9rem; max-width: 22ch; }
.rk__fbsw { width: 150px; height: 150px; border-radius: 14px; background-size: cover;
    background-position: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.rk__spec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rk__spec div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 13px; font-size: .9rem; color: var(--muted); }
.rk__spec b { color: var(--ink); }
.rk__specs { margin-top: 16px; padding: 15px 17px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; }
.rk__specs h3 { margin: 0 0 11px; font-size: .95rem; font-weight: 700; }
.rk__specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.rk__specs dt { color: var(--muted); font-size: .84rem; }
.rk__specs dd { margin: 0; font-size: .87rem; color: var(--ink); line-height: 1.4; }
.rk__specs dd b { font-weight: 700; }
.rk__step { margin-bottom: 20px; }
.rk__label { display: flex; align-items: center; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.rk__label i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    margin-right: 9px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: .78rem; }
.rk__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rk__chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px;
    border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--muted);
    font-family: var(--font); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .16s; }
.rk__chip small { font-size: .66rem; opacity: .7; font-weight: 500; }
.rk__chip:hover { color: var(--ink); }
.rk__chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rk__select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--font); font-size: .95rem; background: #fff; color: var(--ink); cursor: pointer; }
.rk__seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.rk__seg button { border: 0; background: #fff; color: var(--muted); cursor: pointer;
    font-family: var(--font); font-size: .88rem; font-weight: 600; padding: 9px 18px; }
.rk__seg button.active { background: var(--ink); color: #fff; }
/* Систем може бути п'ять, а не дві, і в назві є пояснення дрібним —
   тому це не таблетка в рядок, а стовпчик на всю ширину панелі. */
.rk__seg--sys { display: flex; flex-direction: column; border-radius: 12px; width: 100%; }
.rk__seg--sys button { text-align: left; padding: 10px 14px; line-height: 1.25;
    border-bottom: 1px solid var(--border); }
.rk__seg--sys button:last-child { border-bottom: 0; }
.rk__seg--sys button small { display: block; font-weight: 400; font-size: .76rem;
    opacity: .7; margin-top: 2px; }
.rk__hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.rk__total-note { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.rk__swatches { display: grid; grid-template-columns: repeat(auto-fill,minmax(46px,1fr)); gap: 8px;
    max-height: 232px; overflow-y: auto; padding: 2px; }
.rk__sw { aspect-ratio: 1; border-radius: 9px; border: 2px solid var(--border); background-size: cover;
    background-position: center; cursor: pointer; padding: 0; transition: transform .12s, border-color .12s; }
.rk__sw:hover { transform: translateY(-2px); }
.rk__sw.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185,114,46,.2); }
.rk__size { display: flex; gap: 12px; }
.rk__size label { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--muted); }
.rk__size input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--font); font-size: 1rem; color: var(--ink); }
/* Ціна тепер рахується, тому вона — головне в блоці: велика, а площа
   дрібним ПІД нею, а не третьою колонкою в тому ж рядку. */
.rk__total { display: grid; grid-template-columns: 1fr auto; align-items: baseline;
    border-top: 1px solid var(--border); padding-top: 16px; margin: 6px 0 12px; }
.rk__total span { color: var(--muted); }
.rk__total b { font-size: 1.5rem; line-height: 1.1; }
.rk__total .rk__total-note { grid-column: 2; text-align: right; margin-top: 2px; }
.rk__cta { width: 100%; text-align: center; }
.rk__ask { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .rk { grid-template-columns: 1fr; gap: 22px; } }
