:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #efe8dc;
  --ink: #1d1b17;
  --ink-2: #5d574d;
  --line: #e2d9c9;
  --green: #2f7d3a;
  --green-d: #1f5a28;
  --green-l: #e3f0e2;
  --wood: #c8914f;
  --wood-l: #e8c99c;
  --wood-d: #8f5f2c;
  --dark: #17231a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px rgba(40, 30, 10, .07);
  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Unbounded', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 500; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--green); margin: 0 0 .75rem; }
.eyebrow--light { color: var(--wood-l); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }
.hl { color: var(--green); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(47, 125, 58, .28); }
.btn--primary:hover { background: var(--green-d); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(0, 0, 0, .05); }
.btn--block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1rem; }

/* Topbar & header */
.topbar { background: var(--dark); color: #cfd8cf; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd06b; box-shadow: 0 0 0 4px rgba(91, 208, 107, .18); }
.topbar__mail { margin-left: auto; text-decoration: none; }
.topbar__mail:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 40; background: rgba(246, 242, 234, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; }
.logo b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: .01em; }
.logo b i { font-style: normal; color: var(--green); }
.logo small { display: block; font-size: .72rem; color: var(--ink-2); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--wood); color: var(--ink); font-size: .75rem; font-weight: 800; display: grid; place-items: center; transition: transform .2s; }
.cart-btn__count.bump { transform: scale(1.35); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--surface-2); border-radius: 50%; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.hero__stats b { display: block; font-family: var(--display); font-size: 1.3rem; }
.hero__stats span { font-size: .85rem; color: var(--ink-2); }
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__card { position: absolute; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; padding: 8%; }
.hero__card--main { inset: 0 10% 18% 0; background: linear-gradient(145deg, #fff, var(--surface-2)); }
.hero__card--sub { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; background: var(--green-l); }
.hero__badge { position: absolute; left: 4%; bottom: 6%; background: var(--dark); color: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.hero__badge small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wood-l); }
.hero__badge b { display: block; }
.hero__badge span { font-family: var(--display); color: #7fdc8b; }

/* Perks */
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.perk i { font-style: normal; font-family: var(--display); color: var(--wood); font-size: .9rem; }
.perk b { display: block; margin: 8px 0 4px; }
.perk span { font-size: .9rem; color: var(--ink-2); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--surface-2); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__note { max-width: 40ch; color: var(--ink-2); margin: 0; }
.disclaimer { margin: 20px 0 0; font-size: .82rem; color: var(--ink-2); }
.card { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); color: var(--ink); }

/* Filters */
.filters { display: grid; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .55; margin-left: 4px; }
.filters__row { display: flex; gap: 12px; flex-wrap: wrap; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; }
.search svg { width: 18px; color: var(--ink-2); flex: none; }
.search input { border: 0; outline: 0; background: none; padding: 12px 0; width: 100%; }
select { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 12px 16px; cursor: pointer; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; animation: fadeUp .35s both; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product__art { position: relative; background: linear-gradient(160deg, #fbf8f2, var(--surface-2)); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14%; }
.product__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__name { font-weight: 700; font-size: 1.02rem; margin: 0; }
.product__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.product__specs li { font-size: .8rem; background: var(--bg); padding: 4px 10px; border-radius: 8px; color: var(--ink-2); }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price b { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.price small { display: block; font-size: .75rem; color: var(--ink-2); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; text-align: center; border: 0; outline: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add { width: 100%; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; background: var(--ink); color: #fff; transition: background .2s; }
.add:hover { background: var(--green); }
.add.is-added { background: var(--green); }
.empty { text-align: center; padding: 40px; color: var(--ink-2); }

/* Contacts section */
.contacts { background: var(--dark); color: #eef2ec; }
.contacts .lead { color: #b7c3b8; }
.contacts__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

/* Forms */
.form { display: grid; gap: 14px; }
.form h3 { margin: 0 0 4px; }
.form label, .calc label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea, .calc input[type=number], .calc input[type=tel], .calc input[type=text], .calc textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 1rem; color: var(--ink); width: 100%; }
.form textarea, .calc textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .calc input:focus, .calc textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.form .is-invalid, .calc .is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex !important; align-items: flex-start; gap: 10px; font-size: .78rem !important; font-weight: 400 !important; line-height: 1.4; cursor: pointer; color: var(--ink-2); }
.consent input { flex: none; width: 18px !important; height: 18px; margin: 1px 0 0; padding: 0 !important; accent-color: var(--green); }
.consent a { color: inherit; text-decoration: underline; }
.consent:has(.is-invalid) span { color: #c0392b; }
.legal { max-width: 820px; }
.legal__back { white-space: nowrap; padding: 10px 16px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; }
.legal__date { font-size: .85rem; }
.legal__links { margin-top: 32px; }
.form__hint { margin: 0; font-size: .82rem; color: var(--ink-2); }
.form__hint a { font-weight: 700; }

/* Custom order */
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.calc__form { display: grid; gap: 22px; align-content: start; }
.calc__dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__opt { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.calc__opt legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.radio, .check { cursor: pointer; }
.radio input, .check input { position: absolute; opacity: 0; }
.radio span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.radio input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid var(--wood); }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.check span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.check span::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); }
.check input:checked + span { border-color: var(--green); background: var(--green-l); }
.check input:checked + span::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--green); }
.calc__result { background: var(--bg); border-radius: 18px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.calc__preview { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.calc__preview svg { max-height: 100%; transition: all .3s; }
.calc__result dl { margin: 0; display: grid; gap: 8px; }
.calc__result dl div { display: flex; justify-content: space-between; gap: 8px; }
.calc__result dt { color: var(--ink-2); }
.calc__result dd { margin: 0; font-weight: 700; }
.calc__result .total { border-top: 1px dashed var(--line); padding-top: 10px; }
.calc__result .total dd { font-family: var(--display); font-size: 1.4rem; color: var(--green); font-weight: 500; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.service__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-l); color: var(--green-d); display: grid; place-items: center; }
.service__ico svg { width: 26px; }
.service h3 { margin: 6px 0 0; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.service__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.service__foot b { color: var(--wood-d); }
.service__foot button { border: 0; background: none; font-weight: 700; color: var(--green); cursor: pointer; padding: 6px 0; }

/* Delivery */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.delivery__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dcard b { display: block; font-size: 1.05rem; }
.dcard span { color: var(--ink-2); font-size: .9rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq .btn { margin-top: 12px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.faq summary { padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* Contacts */
.contacts__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contacts__list small { display: block; color: #9fb0a1; font-size: .8rem; }
.contacts__list a, .contacts__list span { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.contacts__list a:hover { color: var(--wood-l); }
.messengers__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contacts__list .messenger { font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); }
.contacts__list .messenger:hover { border-color: var(--wood-l); }

.footer { background: #0f1711; color: #8e9b90; font-size: .85rem; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer__owner { display: grid; gap: 4px; }
.footer__owner b { color: #c9d3ca; }
.footer__side { display: grid; gap: 4px; justify-items: end; align-content: start; }

/* FAB */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; place-items: center; box-shadow: 0 10px 24px rgba(47, 125, 58, .4); z-index: 30; }
.fab svg { width: 26px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 15, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.cart { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart__art { width: 56px; height: 56px; background: var(--bg); border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.cart__name { font-weight: 700; font-size: .92rem; }
.cart__meta { font-size: .8rem; color: var(--ink-2); }
.cart__side { display: grid; justify-items: end; gap: 6px; }
.cart__rm { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.cart__empty { color: var(--ink-2); text-align: center; padding: 40px 0; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total b { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; z-index: 80; transition: transform .3s; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .perks__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header__in { position: relative; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .hero { padding-top: 32px; }
  .hero__in, .contacts__in, .calc, .delivery, .faq { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .section { padding: 64px 0; }
  .fab { display: grid; }
  .calc__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .topbar__in > span:not(.topbar__dot) { font-size: .78rem; }
  .topbar__mail { display: none; }
  .logo small { display: none; }
  .perks__grid, .services, .delivery__cards { grid-template-columns: 1fr; }
  .calc__dims { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .calc__dims input { padding: 10px; }
  .card { padding: 20px; }
  .hero__stats { gap: 20px; }
  select { flex: 1; }
}
.price b.price--ask { font-size: 1rem; font-family: var(--font); font-weight: 800; white-space: nowrap; }

/* Невидимая SmartCaptcha */
.captcha-box { position: fixed; z-index: 1000; }
.captcha-note { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.captcha-note a { color: inherit; text-decoration: underline; }
