:root {
  --bg: #ffffff;
  --ink: #16130f;
  --muted: #7a7469;
  --surface: #f6f4f0;
  --surface-2: #efece6;
  --line: #e7e3dc;
  --accent: #16130f;
  --hl: #e8590c;
  --ok: #2f7d4f;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(22, 19, 15, .25);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.fine { font-size: 12.5px; color: var(--muted); }
.center { text-align: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #2c2823; }
.btn-dark:disabled { opacity: .45; cursor: default; }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wide { width: 100%; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.brand-x { color: var(--hl); margin: 0 5px; font-weight: 600; }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.topnav a:hover { color: var(--ink); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px;
}
.cart-count {
  background: var(--hl); border-radius: 999px; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; padding: 0 6px;
}

/* Хиро */
.hero { padding: 72px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hl); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.hero-sub { font-size: 17.5px; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 36px; list-style: none; }
.hero-facts b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.hero-media {
  background: var(--surface); border-radius: var(--r-lg);
  aspect-ratio: 1 / .92; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px;
}
.hero-media .hm {
  background: #fff; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--line);
}
.hero-media .hm img { width: 86%; height: 86%; object-fit: contain; }
.hero-media .hm:first-child { grid-row: span 2; }

/* Шаги */
.steps { background: var(--surface); padding: 44px 0; }
.steps-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step span {
  display: inline-flex; width: 30px; height: 30px; border-radius: 999px;
  background: var(--ink); color: #fff; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Каталог */
.catalog { padding: 72px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 34px; margin-bottom: 8px; }
.sec-sub { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; background: #fff; transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cat-section { margin-bottom: 44px; }
.cat-title {
  font-size: 21px; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.card-dots { display: flex; align-items: center; gap: 5px; min-height: 16px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.dot-more { font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #fff; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { background: var(--surface); aspect-ratio: 1/1; position: relative; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.badge.b-new { background: var(--hl); color: #fff; border-color: var(--hl); }
.badge.b-hit { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 16.5px; }
.card-tag { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }
.card-meta { font-size: 12.5px; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.card-price b { font-size: 19px; letter-spacing: -0.01em; }
.card-price span { font-size: 12.5px; color: var(--muted); }
.card-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.card-actions .btn { padding: 10px 14px; font-size: 13.5px; flex: 1; }

/* Мокап */
.mockup { background: var(--ink); color: #fff; padding: 76px 0; }
.mockup-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mockup h2 { font-size: 34px; margin-bottom: 12px; }
.mockup-txt > p { color: rgba(255,255,255,.72); font-size: 16px; max-width: 48ch; margin-bottom: 28px; }
.mockup-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.field > span { font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.mockup .field select { border-color: rgba(255,255,255,.2); }
.drop {
  border: 1.5px dashed rgba(255,255,255,.35); border-radius: var(--r-md);
  padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.over { border-color: var(--hl); background: rgba(255,255,255,.05); }
.drop-in b { display: block; margin-bottom: 4px; }
.drop-in span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.drop img.logo-preview { max-height: 64px; margin: 0 auto 8px; background: #fff; border-radius: 8px; padding: 6px; }
.combo { position: relative; }
.combo-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fff; color: var(--ink); border-radius: var(--r-sm);
  padding: 8px 12px; text-align: left;
}
.combo-btn img { width: 44px; height: 44px; object-fit: contain; background: var(--surface); border-radius: 8px; }
.combo-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.combo-txt small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.combo-txt b { font-size: 14.5px; }
.combo-arrow { color: var(--muted); }
.combo-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; color: var(--ink); border-radius: var(--r-md);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); max-height: 340px; overflow: auto; padding: 6px;
}
.combo-group {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 4px;
}
.combo-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; border-radius: 10px; text-align: left; font-size: 14px;
}
.combo-item:hover { background: var(--surface); }
.combo-item img { width: 36px; height: 36px; object-fit: contain; background: var(--surface); border-radius: 8px; }
.combo-item.on { background: var(--surface-2); font-weight: 600; }

.place-block { display: flex; flex-direction: column; gap: 8px; }
.place-label { font-size: 13.5px; font-weight: 600; }
.place-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.place-chip {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.25); color: #fff; transition: all .15s ease;
}
.place-chip:hover { border-color: rgba(255,255,255,.6); }
.place-chip.on { background: var(--hl); border-color: var(--hl); }
.place-hint { font-size: 12px; color: rgba(255,255,255,.55); min-height: 2.4em; }
.mockup .btn-dark { background: var(--hl); }
.mockup .btn-dark:hover { background: #f36d1d; }
.mockup .fine { color: rgba(255,255,255,.55); }
.mockup-out { position: sticky; top: 90px; }
.mockup-empty {
  border: 1.5px dashed rgba(255,255,255,.25); border-radius: var(--r-lg);
  aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: rgba(255,255,255,.5); font-size: 14.5px;
}
.mockup-ph { width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.08); }
.mock-result { border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.mock-result img { width: 100%; }
.mock-result-bar { display: flex; gap: 10px; padding: 14px; background: #fff; }
.mock-result-bar .btn { flex: 1; padding: 11px 14px; font-size: 14px; }
.mock-loading {
  aspect-ratio: 1/1; border-radius: var(--r-lg); background: rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--hl);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mock-loading p { color: rgba(255,255,255,.65); font-size: 14px; }

/* Примеры брендирования */
.examples { padding: 72px 0 60px; background: var(--surface); }
.ex-strip {
  display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
}
.ex-card {
  flex: 0 0 340px; scroll-snap-align: start; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.ex-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.ex-card figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); }

/* Условия */
.terms { padding: 72px 0; }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.tcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.tcard-hl { background: var(--surface); border-color: transparent; }
.tcard h3 { font-size: 18px; margin-bottom: 4px; }
.tprice { color: var(--hl); font-weight: 700; margin-bottom: 10px; }
.tcard p { font-size: 14.5px; color: var(--muted); }
.tterm { margin-top: 12px; font-weight: 600; color: var(--ink) !important; font-size: 13.5px !important; }

/* Футер */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot-contacts { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: 14.5px; }
.foot-mail { font-weight: 700; font-size: 17px; }
.foot-contacts a:hover { color: var(--hl); }

/* Модалы */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(22,19,15,.5); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
  width: 100%; max-width: 780px; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
}
.modal-x {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 20px; line-height: 1;
}
.pm-media { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 28px; }
.pm-media img { width: 92%; object-fit: contain; mix-blend-mode: multiply; }
.pm-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.pm-badges { display: flex; gap: 6px; min-height: 22px; }
.pm-body h3 { font-size: 22px; }
.pm-tag { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.pm-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pm-models { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-models:empty { display: none; }
.model-seg {
  padding: 9px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; transition: all .15s ease;
}
.model-seg:hover { border-color: var(--ink); }
.model-seg.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pm-colors-block { display: flex; flex-direction: column; gap: 8px; }
.pm-colors-block .pm-label b { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.color-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.15);
  transition: transform .12s ease, box-shadow .12s ease; padding: 0;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.pm-qty { display: flex; flex-direction: column; gap: 10px; }
.qty-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qty-chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; }
.qty-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#qtyInput { width: 120px; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); font: inherit; }
.pm-brandtoggle { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.pm-brandtoggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.pm-price { display: flex; gap: 34px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pm-price b { display: block; font-size: 23px; letter-spacing: -0.01em; }
.pm-actions { display: flex; flex-direction: column; gap: 8px; }

/* Корзина */
.cart-card { display: block; max-width: 560px; padding: 28px; }
.cart-card > h3 { font-size: 24px; margin-bottom: 16px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.cart-item img { width: 52px; height: 52px; object-fit: contain; background: var(--surface); border-radius: 10px; }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { font-size: 14.5px; display: block; }
.ci-info span { font-size: 12.5px; color: var(--muted); }
.ci-sum { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ci-x { color: var(--muted); font-size: 18px; padding: 4px 8px; }
.ci-x:hover { color: var(--hl); }
.cart-empty { color: var(--muted); font-size: 14.5px; padding: 18px 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 18px; font-size: 14.5px; color: var(--muted); }
.cart-total b { font-size: 24px; color: var(--ink); letter-spacing: -0.01em; }
.order-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row:has(> .field:only-child) { grid-template-columns: 1fr; }
.order-done { text-align: center; padding: 26px 10px; }
.done-ico {
  width: 60px; height: 60px; border-radius: 999px; background: var(--ok); color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.order-done p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Адаптив */
@media (max-width: 900px) {
  .hero-in, .mockup-in { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
  .steps-in, .terms-grid { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; max-width: 480px; }
  .pm-media { padding: 18px; }
  .pm-media img { max-height: 200px; width: auto; }
  .topnav { display: none; }
  .mockup-out { position: static; }
  .foot-in { flex-direction: column; }
  .foot-contacts { text-align: left; }
}
