/* Бакен — лодочный магазин. Одна система: токены, сетка, компоненты. */
:root {
  --bg: #f2efe7;
  --surface: #fbfaf6;
  --ink: #121a20;
  --muted: #5b636a;
  --line: #dbd5c6;
  --accent: #c2402a;
  --accent-press: #a9361f;
  --deep: #10262e;
  --deep-ink: #e6ece9;
  --deep-muted: #9fb1b0;
  --ok: #2c7349;
  --r: 6px;
  --r-lg: 10px;
  --f-head: "Geologica", "Segoe UI", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 5vw, 72px); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.015em; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

.link {
  text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }
.link-arrow::after { content: " →"; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 23px/1 var(--f-head); letter-spacing: -0.04em; }
.logo svg { width: 26px; height: 30px; flex: none; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1.5px; }
.header-contact { font-size: 14px; color: var(--muted); text-align: right; line-height: 1.3; }
.header-contact b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.cart-count[hidden] { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--r); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Секции ---------- */
main > section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head p { max-width: 46ch; margin-top: 14px; font-size: 18px; color: var(--muted); }

/* Hero */
.hero { padding-block: 0 !important; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; min-height: min(calc(100svh - var(--header-h)), 860px); padding-block: 40px; }
.hero-text h1 { font-size: clamp(38px, 4.3vw, 64px); }
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.hero-text .lead { font-size: 19px; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cats { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.hero-cats a { text-decoration: none; }
.hero-cats a span { color: var(--muted); }
.hero-photo { position: relative; height: min(calc(100svh - var(--header-h) - 80px), 780px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Плитки категорий */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease); }
.cat:hover { transform: translateY(-2px); }
.cat-img { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat-body { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 24px 26px 26px; }
.cat-body h3 { font-size: clamp(24px, 2.2vw, 32px); }
.cat-body p { color: var(--muted); margin-top: 8px; }
.cat-go { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.cat:hover .cat-go { background: var(--ink); color: var(--bg); }
.cat-go svg { width: 18px; height: 18px; }

.cats-3 { grid-template-columns: repeat(4, 1fr); }
.cats-3 .cat-body { padding: 20px 20px 22px; }
.cats-3 .cat-body h3 { font-size: clamp(20px, 1.6vw, 24px); }
.cats-3 .cat-go { width: 42px; height: 42px; }
@media (max-width: 1100px) { .cats-3 { grid-template-columns: repeat(2, 1fr); } }

/* Список заводов: крупный набор названий */
.brands h2 { margin-bottom: 12px; }
.brands-lead { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 34px; }
.brand-list a {
  text-decoration: none; font: 600 clamp(30px, 4.2vw, 60px)/1.15 var(--f-head); letter-spacing: -0.035em; color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) 0 92% / 0 3px no-repeat; transition: background-size .3s var(--ease), color .2s;
}
.brand-list a:hover { background-size: 100% 3px; }
.brand-list sup { font: 500 15px var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; vertical-align: super; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease); }
.card:hover { transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e4dfd3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-kind { font-size: 13px; color: var(--muted); }
.card-title { font: 600 18px/1.25 var(--f-head); letter-spacing: -0.015em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-specs { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { font: 600 20px/1 var(--f-head); letter-spacing: -0.02em; white-space: nowrap; }
/* Скидки */
.card-img { position: relative; }
.disc-badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--accent); color: #fff; font: 600 14px/1 var(--f-head);
  padding: 6px 9px; border-radius: 4px; letter-spacing: -0.01em;
}
.price-old { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.price-was { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: var(--muted); }
.price-was .disc { background: var(--accent); color: #fff; font: 600 14px/1 var(--f-head); padding: 5px 8px; border-radius: 4px; }
.stock { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9b2a2; }
.stock.in { color: var(--ok); }
.stock.in::before { background: var(--ok); }
.add-mini {
  position: relative; z-index: 2; width: 44px; height: 44px; flex: none; border-radius: var(--r);
  border: 1px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.add-mini:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.add-mini:active { transform: scale(.96); }
.add-mini svg { width: 18px; height: 18px; }
.add-mini.added { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Подбор */
.picker { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.picker h2 { margin-bottom: 16px; }
.picker-intro { color: var(--muted); font-size: 18px; max-width: 40ch; margin-bottom: 32px; }
.q { border: 0; padding: 0; margin: 0 0 24px; }
.q legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 15px;
  transition: border-color .18s, background-color .18s, color .18s, transform .18s var(--ease);
}
.seg span:hover { border-color: var(--ink); transform: translateY(-1px); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker-result { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.picker-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.picker-result-head b { font: 600 22px/1.2 var(--f-head); letter-spacing: -0.02em; }
.row-list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.row:hover .row-name { background-size: 100% 1.5px; }
.row-img { width: 112px; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.row:hover .row-img img { transform: scale(1.03); }
.row-name { font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.row-sub { font-size: 14px; color: var(--muted); }
.row .price { font-size: 17px; }
.picker-empty { padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); }
.picker-result .btn { margin-top: 18px; }

/* Тёмная полоса: мотор и ГИМС */
.band { background: var(--deep); color: var(--deep-ink); }
.band .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.band-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band h2 { margin-bottom: 22px; }
.band p { color: var(--deep-muted); font-size: 18px; max-width: 46ch; }
.band p + p { margin-top: 14px; }
.band .rules { margin: 28px 0 32px; padding: 0; list-style: none; border-top: 1px solid rgba(230,236,233,.18); }
.band .rules li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(230,236,233,.18); }
.band .rules b { color: #fff; font-weight: 500; }
.band .btn-primary { background: #e6ece9; color: var(--deep); }
.band .btn-primary:hover { background: #fff; }

/* Доставка */
.service { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.service-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.terms { margin: 28px 0 0; }
.terms div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; font-family: var(--f-head); letter-spacing: -0.01em; font-size: 18px; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); }

/* Подвал */
.footer { background: var(--ink); color: #c9cfcc; padding-block: 72px 32px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #2a343b; }
.footer .logo { color: #fff; }
.footer h4 { font: 600 15px/1.2 var(--f-body); color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-note { margin-top: 16px; max-width: 34ch; color: #8d9894; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; color: #8d9894; font-size: 13px; }

/* ---------- Каталог ---------- */
.page-head { padding-block: 48px 28px !important; }
.page-head h1 { font-size: clamp(36px, 4.2vw, 60px); }
.page-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.catalog { padding-block: 0 100px !important; }
.catalog .wrap { display: block; }

/* Панель фильтров над каталогом */
.fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 22px; }
.fbar-groups { display: contents; }
.fchip { position: relative; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span, .fdrop summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 500; user-select: none;
  transition: border-color .18s, background-color .18s, color .18s, transform .18s var(--ease);
}
.fchip span:hover, .fdrop summary:hover { border-color: var(--ink); transform: translateY(-1px); }
.fchip em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.fchip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fchip input:checked + span em { color: #b9c2c0; }
.fchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fdrop { position: relative; }
.fdrop summary { list-style: none; }
.fdrop summary::-webkit-details-marker { display: none; }
.fdrop summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.fdrop[open] summary { border-color: var(--ink); }
.fdrop[open] summary svg { transform: rotate(180deg); }
.fdrop.on summary { border-color: var(--ink); }
.fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.fcount[hidden] { display: none; }
.fdrop-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 250px; max-width: min(340px, calc(100vw - 24px));
  max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 16px; box-shadow: 0 14px 40px rgba(18, 26, 32, .14);
}
.fdrop-panel .range { min-width: 240px; padding: 6px 0; }
.fbar .f-reset { margin: 0 0 0 6px; }
.f-reset[hidden] { display: none; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-right: 6px; }
.f-group { border-top: 1px solid var(--line); padding: 16px 0; }
.f-group h3 { font: 600 15px/1.2 var(--f-body); letter-spacing: 0; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.f-top { border-top: 0; padding-top: 0; font-weight: 500; }
.check em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: auto; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); transition: border-color .18s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b9b2a2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }
.f-reset { align-self: start; margin-top: 8px; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted); }
.f-reset:hover { color: var(--ink); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.tabs[hidden] { display: none; }
.tabs button { min-height: 38px; padding: 0 14px; border: 0; background: none; border-radius: 4px; cursor: pointer; font-size: 15px; transition: background-color .18s, color .18s; }
.tabs button:hover { background: #ece8de; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 38px; }
.toolbar .select { width: auto; }
.filter-open { display: none; }
.result-count { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.empty { padding: 60px 0; text-align: left; }
.empty h3 { margin-bottom: 10px; }

/* ---------- Товар ---------- */
.product { padding-block: 32px 80px !important; }
.product .wrap > .crumbs { margin-bottom: 24px; }
.product-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #e4dfd3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 104px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: none; transition: border-color .18s, transform .18s var(--ease); }
.thumbs button:hover { transform: translateY(-1px); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-direction: column; gap: 18px; }
.product-grid .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.buy .card-kind { font-size: 15px; }
.buy h1 { font-size: clamp(32px, 3.4vw, 48px); }
.buy-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.buy-specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.buy-specs div:nth-child(odd) { padding-right: 12px; }
.buy-specs dt { font-size: 13px; color: var(--muted); }
.buy-specs dd { margin: 2px 0 0; font-weight: 500; }
.buy-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.buy-price .price { font-size: 36px; }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 20px; border-radius: var(--r); transition: background-color .15s; }
.qty button:hover { background: #ece8de; }
.qty output { min-width: 32px; text-align: center; font-weight: 500; }
.buy-row .btn { flex: 1; }
.note { font-size: 14px; color: var(--muted); padding: 14px 16px; background: var(--surface); border-radius: var(--r); border-left: 3px solid var(--accent); }
.details { padding-block: 0 100px !important; }
.details .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); }
.details h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 18px; }
.details .desc { font-size: 18px; max-width: 48ch; }
.motor-tip { margin-top: 22px; color: var(--muted); max-width: 48ch; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--muted); width: 45%; }
.spec-table td { font-weight: 500; }
.video-sec { padding-block: 0 100px !important; }
.video-sec h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 18px; }
.videos { display: grid; grid-template-columns: minmax(0, 860px); gap: 20px; }
.videos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #10262e; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 12px; font-size: 14px; }
@media (max-width: 760px) { .videos-2 { grid-template-columns: 1fr; } }
.related { padding-block: 0 110px !important; }

/* ---------- Страница заказа для менеджера (order.html) ---------- */
.order-page { padding-block: 32px 110px !important; }
.order-page .wrap { max-width: 980px; }
.ord-title { font-size: clamp(36px, 5vw, 60px); margin: 18px 0 10px; }
.ord-lead { max-width: 60ch; margin-bottom: 34px; }
.ord-pos { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); margin-bottom: 22px; }
.ord-pos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ord-pos-head h2 { font-size: 22px; }
.ord-pos-head .price { font-size: 22px; font-weight: 600; }
.ord-sub { font-size: 15px; color: var(--muted); font-weight: 500; margin: 22px 0 0; }
.ord-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ord-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ord-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #fff; }
.ord-img img { width: 100%; height: 100%; object-fit: contain; }
.ord-opt { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 14px 0; }
.ord-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.ord-info .muted { font-size: 14px; }
.ord-kind { font-size: 13px !important; }
.ord-name { font-family: Geologica, sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; }
.ord-name:hover { color: var(--accent); }
.ord-note { font-size: 14px; margin: 6px 0 2px; padding: 8px 12px; background: #f2efe7; border-radius: var(--r); }
.ord-price { font-weight: 600; white-space: nowrap; }
.ord-more { width: 100%; margin: 8px 0 6px; }
.ord-more summary { cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; padding: 4px 0; }
.ord-more summary::-webkit-details-marker { display: none; }
.ord-more summary::after { content: " ↓"; }
.ord-more[open] summary::after { content: " ↑"; }
.ord-more p { font-size: 15px; margin: 10px 0; max-width: 70ch; }
.ord-more .spec-table { margin-top: 10px; font-size: 14px; }
.ord-more .spec-table th, .ord-more .spec-table td { padding: 8px 0; }
.ord-src { font-size: 13px !important; }
.ord-total { display: flex; justify-content: space-between; align-items: baseline; padding: 22px clamp(18px, 3vw, 32px); font-size: 18px; }
.ord-total .price { font-size: 30px; font-weight: 700; }
.ord-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ord-status { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: #fbe3dc; color: #8f2c1c; }
.ord-st-work { background: #fff1c7; color: #6b5100; }
.ord-st-sent { background: #dcefdc; color: #1f5a2a; }
.ord-st-cancel { background: #e7e4dc; color: var(--muted); }
.ord-client { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 28px; background: var(--surface);
  border-radius: var(--r-lg); padding: 20px clamp(18px, 3vw, 32px); margin: 6px 0 22px; }
.ord-client > div { display: flex; flex-direction: column; gap: 2px; }
.ord-client .muted { font-size: 13px; }
.ord-client b { font-weight: 600; }
.ord-phone { font-weight: 600; font-size: 18px; color: var(--accent); text-decoration: none; }
.ord-comment { grid-column: 1 / -1; }
.ord-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ord-tools .qty button { width: 36px; height: 36px; font-size: 18px; }
.ord-pos-head .ord-tools + .price { min-width: 110px; text-align: right; }
.ord-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 4px; }
.ord-select { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 100%; }
.ord-select select { font: inherit; font-size: 15px; color: var(--ink); padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); max-width: 100%; cursor: pointer; }
.ord-empty { grid-template-columns: minmax(0, 1fr); }
.ord-addopt summary { margin-top: 6px; }
.ord-addopt .ord-row:last-child { border-bottom: 0; }
.btn-sm { padding: 7px 14px; font-size: 14px; min-height: 0; }
.ord-add { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); margin-top: 8px; }
.ord-add h2 { font-size: 22px; margin-bottom: 12px; }
.ord-add .input { width: 100%; }
.ord-saved { margin-bottom: 20px; }
.ord-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--bg); padding: 14px 0;
  box-shadow: 0 -8px 24px rgba(18, 26, 32, .18); }
.ord-bar .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 980px; }
.ord-bar #ord-diff { margin-right: auto; }
.ord-bar .btn-ghost { border-color: var(--bg); color: var(--bg); }
.ord-bar .btn-ghost:hover { background: var(--bg); color: var(--ink); }
.ord-bar[hidden] { display: none; }
body.has-ord-bar { padding-bottom: 90px; }
@media (max-width: 640px) {
  .ord-pos-head { flex-wrap: wrap; }
  .ord-tools { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
  .ord-row { grid-template-columns: 96px minmax(0, 1fr); }
  .ord-opt { grid-template-columns: 64px minmax(0, 1fr); }
  .ord-price { grid-column: 2; }
}

/* ---------- Корзина ---------- */
.cart { padding-block: 0 110px !important; }
.cart .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.cart-item { display: grid; grid-template-columns: 136px 1fr auto; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 1px solid var(--line); }
.cart-item .row-img { width: 136px; }
.cart-item-name { font: 600 18px/1.25 var(--f-head); letter-spacing: -0.015em; text-decoration: none; }
.cart-item-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item-meta { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.remove { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted); font-size: 14px; }
.remove:hover { color: var(--accent); }
.cart-item .price { font-size: 19px; text-align: right; }
.order { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.order h2 { font-size: 28px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sum .price { font-size: 28px; }
.err { color: var(--accent); font-size: 13px; min-height: 0; }
.field.invalid .input { border-color: var(--accent); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.done { padding: 20px 0 60px; max-width: 640px; }
.done h2 { margin-bottom: 14px; }
.done p { font-size: 18px; color: var(--muted); margin-bottom: 24px; }

/* Переключатель разделов каталога */
.cat-switch { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.cat-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500;
  transition: border-color .18s, background-color .18s, color .18s, transform .18s var(--ease);
}
.cat-switch a:hover { border-color: var(--ink); transform: translateY(-1px); }
.cat-switch a[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.more-row { display: flex; justify-content: center; margin-top: 32px; }
.more-row .btn[hidden] { display: none; }

/* Карточки моторов: студийные фото на белом */
.card-motor .card-img { background: #fff; }
.card-motor .card-img img { object-fit: contain; padding: 14px; }
.card-kit { font-size: 13px; color: var(--ink); background: #ebe6da; border-radius: 4px; padding: 4px 8px; align-self: start; margin-top: 2px; }

/* Галерея товара */
.gallery { min-width: 0; }
.gallery-main { position: relative; }
.gallery-main.on-white { background: #fff; }
.gallery-main.on-white img { object-fit: contain; padding: 24px; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(251, 250, 246, .92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px; box-shadow: 0 2px 10px rgba(18, 26, 32, .12);
  transition: background-color .18s, transform .18s var(--ease);
}
.g-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.g-nav:active { transform: translateY(-50%) scale(.96); }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; background: rgba(18, 26, 32, .72); color: #fff; font-size: 13px; padding: 4px 9px; border-radius: 4px; }
.thumbs { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { flex: none; }

/* Свёрнутые блоки «Мотор» и «Дополнительно» */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pick-d { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pick-d > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer;
  border-radius: var(--r-lg); transition: background-color .15s;
}
.pick-d > summary::-webkit-details-marker { display: none; }
.pick-d > summary:hover { background: #f3f0e8; }
.pd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-title { font: 600 17px/1.2 var(--f-head); letter-spacing: -0.01em; }
.pd-sel { font-size: 15px; font-weight: 500; color: var(--muted); }
.pd-sel.on { color: var(--ink); }
.pd-hint { font-size: 13px; color: var(--muted); }
.pd-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r); font-weight: 500; font-size: 15px; transition: background-color .18s, color .18s; }
.pick-d > summary:hover .pd-btn { background: var(--ink); color: var(--bg); }
.pd-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.pd-close { display: none; }
.pick-d[open] .pd-open { display: none; }
.pick-d[open] .pd-close { display: inline; }
.pick-d[open] .pd-btn svg { transform: rotate(180deg); }
.pick-d[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pick-d .pick { padding: 10px; }
.pick-d .pick-list { border-radius: var(--r); }

/* Выбор мотора и опций */
.pick { border: 0; padding: 0; margin: 0; }
.pick legend { font: 600 17px/1.2 var(--f-head); letter-spacing: -0.01em; margin-bottom: 10px; padding: 0; }
.pick legend .muted { font: 400 14px var(--f-body); }
.pick-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color .15s; }
.opt:first-child { border-top: 0; }
.opt:hover { background: #f3f0e8; }
.opt:has(input:checked) { background: #ece7db; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.motor-opt { grid-template-columns: 20px 52px 1fr auto; }
.opt-photo { grid-template-columns: 20px 72px 1fr auto; }
.opt-thumb {
  width: 72px; height: 54px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; cursor: zoom-in;
  transition: transform .18s var(--ease), border-color .18s;
}
.opt-thumb:hover { transform: scale(1.06); border-color: var(--ink); }
.opt-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .opt-photo { grid-template-columns: 20px 56px 1fr; } .opt-photo .opt-price { grid-column: 3; text-align: left; } .opt-thumb { width: 56px; height: 44px; } }
.opt-more { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.opt-more:hover { color: var(--accent); }

/* Окно с крупным фото */
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 22, .72); display: none; align-items: center; justify-content: center; padding: 24px; }
.zoom.open { display: flex; }
.zoom-card { position: relative; margin: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; max-width: min(860px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.zoom-card img { width: 100%; max-height: 68vh; object-fit: contain; background: #fff; }
.zoom-card figcaption { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.zoom-card figcaption b { font: 600 19px/1.25 var(--f-head); }
.zoom-card figcaption span { color: var(--muted); font-size: 15px; }
.zoom-card .link { align-self: start; margin-top: 8px; }
.zoom-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(251,250,246,.94); font-size: 24px; cursor: pointer; }
.zoom-close:hover { background: #fff; }
.motor-opt img { width: 52px; height: 40px; object-fit: contain; background: #fff; border-radius: 4px; }
.opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-name { font-weight: 500; font-size: 15px; }
.opt-desc { font-size: 13px; color: var(--muted); }
.opt-price { font-weight: 600; font-size: 15px; white-space: nowrap; text-align: right; display: flex; flex-direction: column; }
.opt-price s { font-weight: 400; font-size: 12px; color: var(--muted); }
.pick-more { align-self: start; margin-top: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); font-size: 15px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.total span:first-child { font: 600 18px var(--f-head); }
.total .price { font-size: 30px; }
.total-note { font-size: 14px; margin-top: -10px; }
.small { font-size: 13px; }
.about p { font-size: 17px; max-width: 60ch; }
.about p + p { margin-top: 14px; }
.about .source { font-size: 14px; color: var(--muted); margin-top: 24px; }
.cart-sub { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.cart-sub li + li { margin-top: 2px; }

/* Источники фото */
.credits-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; font-size: 14px; }
.credits-list li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--line); }
.credits-list a { word-break: break-word; }

/* Тост */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; gap: 16px; align-items: center;
  background: var(--ink); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: var(--r); font-size: 15px;
  transform: translate(-50%, 140%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; box-shadow: 0 10px 30px rgba(18,26,32,.2);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--ease); }
.toast a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Вход первого экрана */
@media (prefers-reduced-motion: no-preference) {
  .enter .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
  .enter .hero-text > *:nth-child(2) { animation-delay: .08s; }
  .enter .hero-text > *:nth-child(3) { animation-delay: .16s; }
  .enter .hero-text > *:nth-child(4) { animation-delay: .24s; }
  .enter .hero-photo { clip-path: inset(0 0 0 100% round var(--r-lg)); animation: unclip 1.1s .1s var(--ease) forwards; }
  .enter .hero-photo img { transform: scale(1.08); animation: settle 1.6s .1s var(--ease) forwards; }
  /* Фото «проявляется» один раз, когда тёмная полоса появляется на экране */
  .band-photo[data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
  .band-photo[data-reveal].in img { clip-path: inset(0 0 0 0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unclip { to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes settle { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-contact { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; gap: 0; padding: 12px var(--pad); z-index: 60; }
  .nav.open { display: flex; }
  .nav a { font: 600 26px/1.2 var(--f-head); padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .menu-btn { display: grid; }
  .cart-btn { margin-left: auto; }
  .header .wrap { gap: 12px; }
  .cart-btn .cart-label { display: none; }
  .hero .wrap, .picker, .band .wrap, .service, .product-grid, .details .wrap, .cart .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; padding-block: 28px 56px; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .cats, .cats-3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog .wrap { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 20px var(--pad) 100px; max-height: none; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .filters.open { transform: none; }
  .filters-close { display: flex !important; }
  .filter-open { display: inline-flex; }
  .buy, .order, .filters, .product-grid .gallery { position: static; }
  .filters { position: fixed; }
  .credits-list { columns: 1; }
}
@media (max-width: 560px) {
  .grid, .catalog .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .hero-actions .btn { flex: 1; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .cart-item .row-img { width: 96px; }
  .cart-item .price { grid-column: 2; text-align: left; }
  .row { grid-template-columns: 88px 1fr; }
  .row-img { width: 88px; }
  .row .price { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr; }
  .toolbar .select { flex: 1; }
}
.filters-close { display: none; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.filters-close button { width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--r); cursor: pointer; font-size: 22px; }
.filters-apply { display: none; }
@media (max-width: 900px) { .filters-apply { display: flex; position: fixed; left: var(--pad); right: var(--pad); bottom: 20px; } }
