:root {
  --ink: #1f2327;
  --ink-2: #4a5159;
  --muted: #6b737b;
  --line: #e4e1dc;
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --graphite: #2b2f33;
  --accent: #b8661f;
  --accent-dark: #9a5316;
  --accent-soft: #f6e9db;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 750; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin-top: 0; }
h3 { font-size: 18px; font-weight: 650; }
.h3 { font-size: 20px; margin-top: 28px; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 760px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #e0a468; outline-offset: 2px; border-radius: 4px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: 650 16px var(--font); border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9c4bd; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--graphite); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); color: var(--graphite); border-color: var(--accent-soft); }

/* шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; gap: 6px; margin-left: 8px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; right: 0; top: -7px; }
.burger span::after { left: 0; right: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* hero */
.hero { background: linear-gradient(135deg, #f8f6f3 0%, #efebe5 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0; }
.hero h1 { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: 15px; }
.facts b { color: var(--accent-dark); font-size: 20px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }

/* секции */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.more { font-weight: 650; text-decoration: none; }
.prose-wrap { max-width: 860px; }
.prose p, .prose li { color: var(--ink-2); }
.product-desc { margin-top: 48px; }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 24px 0; }
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d6cfc6; color: var(--ink); }
.card-img { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.card-body h3 { margin: 0; font-size: 17px; }
.card-item h3 { font-size: 15.5px; font-weight: 600; }
.card-text .card-body { gap: 10px; padding: 24px; }
.card[hidden] { display: none; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.benefit { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--ink-2); }
.big-link { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 52px 20px 20px; background: var(--bg-alt); border-radius: var(--radius); color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; top: 14px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps b { color: var(--ink); }

.cta { background: var(--graphite); color: #fff; padding: 44px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 6px; color: #fff; }
.cta p { margin: 0; color: #cfd3d7; }

/* крошки и фильтры */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #b3aca2; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.spec-list { color: var(--ink-2); padding-left: 20px; max-width: 820px; }
.search { display: flex; gap: 10px; margin: 20px 0; max-width: 640px; }
.search input, .toolbar input, .toolbar select, .field input, .field textarea { font: inherit; border: 1.5px solid #cfc9c0; border-radius: 12px; padding: 11px 14px; background: #fff; color: var(--ink); width: 100%; }
.search input:focus, .toolbar input:focus, .toolbar select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; padding: 14px; background: var(--bg-alt); border-radius: var(--radius); }
.toolbar input { flex: 1 1 240px; width: auto; }
.toolbar select { width: auto; flex: 0 0 auto; }
.empty { padding: 28px; background: var(--bg-alt); border-radius: var(--radius); }

/* товар */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.no-photo { color: var(--muted); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 2px; cursor: pointer; width: 80px; }
.thumbs button:hover, .thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: auto; border-radius: 8px; }
.buy { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.buy p { flex: 1 0 100%; margin: 0; color: var(--ink-2); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 16px; }

/* форма */
.form { display: grid; gap: 18px; margin-top: 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field textarea { font-weight: 400; font-size: 16px; }
.field em { color: #b3261e; font-style: normal; font-weight: 500; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 18px 20px; border-radius: var(--radius); margin: 20px 0; }
.notice.ok { background: #e9f4ec; border: 1px solid #b9dcc3; color: #1d4d2b; }

/* подвал */
.footer { background: var(--graphite); color: #cfd3d7; padding-top: 48px; font-size: 15px; }
.footer a { color: #e8eaec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #454a50; margin-top: 36px; padding: 18px 0; color: #9aa1a8; font-size: 14px; }
.footer .muted { color: #9aa1a8; }

@media (max-width: 980px) {
  .hero-in, .product { grid-template-columns: 1fr; gap: 28px; }
  .hero-in { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .header-in { gap: 12px; min-height: 64px; flex-wrap: wrap; }
  .logo img { width: 150px; }
  .header-cta { display: none; }
  .nav { display: none; flex-direction: column; width: 100%; margin: 0; padding: 8px 0 16px; flex: 1 0 100%; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 8px; font-size: 18px; }
  .section { padding: 36px 0; }
  .row2 { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards-wide { grid-template-columns: 1fr; }
  .card-body { padding: 12px 12px 14px; }
  .card-item h3 { font-size: 14px; }
}
@media (max-width: 420px) { .cards:not(.cards-wide) { grid-template-columns: 1fr 1fr; } .hero-visual { grid-template-columns: 1fr; } .hero-tile:not(:first-child) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
