:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #f3f1ed;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --muted: #86868b;
  --line: #e6e3dd;
  --gold: #a7874f;
  --gold-soft: #efe6d6;
  --green: #2f7a4b;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20, 18, 14, .04), 0 12px 32px rgba(20, 18, 14, .06);
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* --- Шапка --- */
.topline {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--ink); color: #d9d2c5; font-size: 12px; letter-spacing: .04em;
}
.topline i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 248, .82); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--gold); }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); transition: background .2s; position: relative;
}
.icon-btn:hover { background: var(--soft); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 15px;
  background: var(--ink); color: #fff; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--soft); box-shadow: none; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #8f7240; }
.btn-tg { background: #2aabee; }
.btn-tg:hover { background: #1d97d6; }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero { padding: 64px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hero h1, .section-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 12px 0;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hero p { font-size: 19px; color: var(--ink-2); margin: 0 auto 26px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 36px; height: 380px; max-width: 100%; overflow: hidden; }
.hero-visual img { height: 100%; width: auto; max-width: 34%; min-width: 0; object-fit: contain; }
.hero-visual img:nth-child(1), .hero-visual img:nth-child(3) { height: 82%; }
.hero-visual--mix { height: 260px; gap: 18px; }
.hero-visual--mix img { height: 80% !important; max-width: 24%; }
.hero-visual--mix img:first-child { height: 100% !important; max-width: 34%; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 64px; }
.perk { background: var(--surface); padding: 22px 22px; }
.perk b { display: block; font-weight: 600; margin-bottom: 2px; }
.perk span { color: var(--muted); font-size: 13.5px; }

/* --- Каталог --- */
.section { padding: 8px 0 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 4.4vw, 52px); margin: 6px 0 0; }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px;
}
.filter-row { min-width: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label { width: 74px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: var(--bg); transition: all .18s; white-space: nowrap;
}
.chip:hover { border-color: #cfc9bf; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select {
  height: 36px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2386868b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: inherit; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.result-count { font-size: 13px; color: var(--muted); margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  position: relative; height: 300px; display: flex; align-items: center; justify-content: center; padding: 26px;
  background: #fff; border-bottom: 1px solid #f1eee9;
}
.card-media svg { height: 100%; width: auto; }
.card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.badge {
  position: absolute; top: 16px; left: 16px; padding: 4px 11px; border-radius: 999px;
  background: var(--gold-soft); color: #7a6136; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.card .spec { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.colors { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.sw {
  width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .15s;
}
.sw.on { outline-color: var(--ink); }
.color-name { font-size: 13px; color: var(--ink-2); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line);
  background: var(--bg); transition: all .15s;
}
.pill.on { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--ink); font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.save { font-size: 12px; font-weight: 600; color: var(--green); background: #e8f3ec; padding: 2px 8px; border-radius: 999px; }
.warranty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.warranty svg { color: var(--gold); flex-shrink: 0; }
.card .btn { margin-top: 4px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }

/* --- Главная / новости --- */
.banner {
  margin-top: 32px; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(135deg, #f6efe3 0%, #efe7da 50%, #e8dfd1 100%); min-height: 420px;
}
.banner-text { padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.banner-text h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; margin: 12px 0 14px; }
.banner-text p { color: var(--ink-2); font-size: 17px; max-width: 420px; margin: 0 0 26px; }
.banner-visual { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 32px; }
.banner-visual img { height: 360px; width: auto; max-width: 100%; object-fit: contain; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 170px 1fr; overflow: hidden; transition: box-shadow .25s;
}
.news:hover { box-shadow: var(--shadow); }
.news-media { display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border-right: 1px solid #f1eee9; }
.news-media img { max-height: 150px; max-width: 100%; width: auto; height: auto; }
.news-body { padding: 22px 24px; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.news-meta .eyebrow { font-size: 11px; }
.news h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 8px; }
.news p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.tg-cta {
  margin: 56px 0 0; padding: 44px; border-radius: 28px; background: var(--ink); color: #f3eee6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.tg-cta h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.03em; font-size: 32px; margin: 0 0 6px; color: #fff; }
.tg-cta p { margin: 0; color: #bdb5a8; }
.tg-cta .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Информация --- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.info-card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin: 0 0 8px; }
.info-card p, .info-card li { color: var(--ink-2); font-size: 14.5px; }
.info-card ul { padding-left: 18px; margin: 10px 0 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--gold); display: block; margin-bottom: 6px; }
.step b { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }

/* --- Подвал --- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; font-weight: 600; }
.footer a { display: block; font-size: 14px; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
.footer a:hover { color: var(--ink); }
.footer p { font-size: 14px; max-width: 300px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

/* --- Корзина --- */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 14, .32); z-index: 40; animation: fade .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 50;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s; display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0,0,0,.12); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 24px; }
.drawer-body { overflow-y: auto; padding: 20px 24px 28px; flex: 1; }
.order-no {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px;
  background: var(--gold-soft); margin-bottom: 18px;
}
.order-no span { font-size: 13px; color: #7a6136; }
.order-no b { font-size: 18px; letter-spacing: .04em; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-media { width: 64px; height: 72px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 6px; }
.ci-media svg { height: 100%; width: auto; }
.ci-media img { max-width: 100%; max-height: 100%; }
.ci-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ci-var { font-size: 12.5px; color: var(--muted); }
.ci-price { font-weight: 600; font-size: 14.5px; text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; font-size: 16px; color: var(--ink-2); }
.qty span { min-width: 20px; text-align: center; font-size: 13px; }
.ci-remove { font-size: 12px; color: var(--muted); margin-top: 6px; text-decoration: underline; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.total b { font-size: 24px; }
.note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.instruction {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0 14px;
}
.instruction h4 { margin: 0 0 10px; font-size: 14px; }
.instruction ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.instruction li + li { margin-top: 4px; }
.order-text {
  width: 100%; white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--soft); border-radius: 12px; padding: 12px 14px; color: var(--ink-2); margin: 0 0 12px; max-height: 180px; overflow: auto;
}
.drawer-actions { display: grid; gap: 10px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty .btn { margin-top: 16px; }
.clear-link { display: block; margin: 16px auto 0; font-size: 13px; color: var(--muted); text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60;
  transition: all .25s; box-shadow: 0 10px 30px rgba(0,0,0,.2); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade { from { opacity: 0; } }
.page { animation: fade .35s; }

/* --- Адаптив --- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .banner { grid-template-columns: 1fr; }
  .banner-text { padding: 40px 32px 8px; }
  .banner-visual img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0; }
  .logo { font-size: 26px; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 6px 0 8px; scrollbar-width: none; margin: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .topline { font-size: 11px; gap: 8px; }
  .hero { padding: 40px 0 24px; }
  .hero p { font-size: 16px; }
  .hero-visual { height: 240px; margin-top: 28px; }
  .hero-visual--mix { height: 150px; gap: 4px; }
  .hero-visual--mix img { max-width: 22%; }
  .hero-visual--mix img:first-child { max-width: 30%; }
  .grid { grid-template-columns: 1fr; }
  .card-media { height: 280px; }
  .filter-label { width: 100%; }
  .filters { padding: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; width: calc(100% + 32px); }
  .chips::-webkit-scrollbar { display: none; }
  .result-count { margin-left: 0; }
  .news { grid-template-columns: 1fr; }
  .news-media { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .tg-cta { padding: 30px 24px; }
  .tg-cta h2 { font-size: 30px; }
  .banner-text { padding: 32px 22px 0; }
  .perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
