@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/manrope-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/unbounded-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/unbounded-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Токени сайту. Палітра: папір і чорнило, один акцент (кіновар) лише для головної дії. */
:root {
  --paper: #F4F1EA;
  --paper-2: #E9E4D8;
  --paper-3: #DDD6C6;
  --ink: #1C1B18;
  --ink-2: #504C43;
  --line: #D3CCBB;
  --accent: #B93A12;
  --accent-hover: #9C2F0D;
  --on-accent: #FFFFFF;
  --f-display: Unbounded, "Segoe UI", system-ui, sans-serif;
  --f-body: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 4px;
  --ctl: 48px;
  --gut: 16px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gut: 28px; } }
@media (min-width: 1100px) { :root { --gut: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.2; font-weight: 500; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 1em; }
.prose { max-width: 62ch; }
.prose > :last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--f-display); text-decoration: none; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 719px) { .nav { margin-left: 0; width: 100%; gap: 0 18px; } }

/* Кнопки: один розмір контролу */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Мітка «Приклад» */
.tag { display: inline-block; border: 1px solid var(--ink-2); color: var(--ink-2); border-radius: 2px; padding: 1px 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* Герой: текст зліва, зображення справа з «шарами» позаду */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } .hero { padding: 64px 0 88px; } }
.hero .kicker { margin: 0 0 14px; font-weight: 600; color: var(--ink-2); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; line-height: 1.6; max-width: 52ch; margin-bottom: 28px; }
.hero .after { margin: 18px 0 0; }
.stackpic { margin: 0; }
.stackpic .frame { border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 10px 10px 0 var(--paper-3), 20px 20px 0 var(--paper-2); }
.stackpic img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.stackpic figcaption { margin-top: 34px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* Секції */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 12px; }
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } .split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Схема в розрізі */
.xs { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; }
.xs svg { width: 100%; height: auto; overflow: visible; }
.xs .pl { transition: transform .25s ease; transform: translateY(calc(var(--ex, 0) * var(--i) * -1px)); }
@media (prefers-reduced-motion: reduce) { .xs .pl { transition: none; } }
.xs-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.xs-ctl label { font-weight: 600; font-size: 15px; }
.xs-ctl input[type=range] { flex: 1 1 180px; min-width: 140px; min-height: 44px; accent-color: var(--ink); }
.xs-leg { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.xs-leg li { display: inline-flex; align-items: center; gap: 7px; }
.xs-leg i { width: 14px; height: 10px; display: inline-block; border-radius: 1px; }
.facts { margin: 0; padding: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 700 1.5rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; } }

/* Галерея дизайнів */
.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card a { display: block; text-decoration: none; }
.card .ph { border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card .ph { transition: border-color .15s; }
.card a:hover .ph { border-color: var(--ink); }
.card h3 { margin: 14px 0 4px; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.empty { border: 1px dashed var(--ink-2); padding: 28px; border-radius: var(--r); max-width: 62ch; }

/* Що в наборі */
.kit { display: grid; gap: 28px; }
@media (min-width: 900px) { .kit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.list { margin: 0; padding-left: 1.2em; }
.list li { margin-bottom: .55em; padding-left: .2em; }
.note { background: var(--paper-2); border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line); }
.note p:last-child { margin-bottom: 0; }

/* Як замовити */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 700 2rem/1 var(--f-display); color: var(--ink-2); letter-spacing: -0.03em; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Сторінка дизайну */
.crumbs { padding: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.pdp { padding: 24px 0 64px; display: grid; gap: 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } .pdp .info { position: sticky; top: 24px; } }
.gal .main { margin: 0; border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r); overflow: hidden; }
.gal .main img { width: 100%; height: auto; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.thumbs button { display: block; padding: 0; border: 2px solid transparent; background: none; border-radius: var(--r); cursor: pointer; width: 96px; flex: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 64px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 14px; }
.spec { margin: 22px 0; padding: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.order { margin: 24px 0 0; }
.order .btns .btn { flex: 1 1 220px; }
.order .hint { margin: 14px 0 0; }
.more { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.more h2 { margin-bottom: 24px; }

/* Текстові сторінки */
.page { padding-block: 40px 72px; }
.page h1 { margin-bottom: 24px; }
.page h2 { margin: 36px 0 12px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.page .prose p, .page .prose li { max-width: 62ch; }
.kv { margin: 0 0 8px; padding: 0; max-width: 62ch; }
.kv div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2px 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; } }

/* Смуга 14+ і підвал */
.age { background: var(--ink); color: var(--paper); }
.age p { margin: 0; padding: 14px 0; font-weight: 600; font-size: 15px; }
.foot { padding: 40px 0 48px; font-size: 15px; background: var(--paper-2); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; } }
.foot h2 { font: 700 1rem/1.3 var(--f-body); margin: 0 0 10px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; }
.foot p { margin: 0 0 .6em; }
.foot .legal { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); font-size: 15px; font-weight: 600; max-width: calc(100% - 32px); z-index: 20; }
.toast[hidden] { display: none; }
