/* Тропа 2026 - стили темы tropa2. Имена классов не пересекаются с Bootstrap 3,
   который подключается только на служебных страницах (кабинет, оформление). */

@font-face { font-family: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/fira-sans-extra-condensed-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/fira-sans-extra-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/fira-sans-extra-condensed-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans Extra Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/fira-sans-extra-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/golos-text-400-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/golos-text-400-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --spruce: #17332a;
  --spruce-2: #21463a;
  --moss: #2f6b3a;
  --snow: #f5f7f4;
  --paper: #fff;
  --well: #eef1ed;
  --ink: #1b2420;
  --ink-2: #3c4743;
  --steel: #66726f;
  --mist: #c9d6cf;
  --line: #dde3de;
  --blaze: #e4610f;
  --blaze-dark: #c4500a;
  --danger: #b42318;
  --head: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  --r-lg: 14px;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 16px/1.55 var(--body); }
a { color: var(--moss); text-decoration: none; }
a:hover, a:focus { color: var(--spruce); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, .h1, .h2 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; color: var(--spruce); letter-spacing: .005em; }
h1, .h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2, .h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.icon { width: 22px; height: 22px; flex: none; }
.page { padding-bottom: 80px; }
.page-title { margin: 14px 0 24px; }

/* ---------- кнопки ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: var(--r); font-weight: 600; font-size: 16px; line-height: 1; text-align: center; white-space: nowrap; transition: background-color .15s, box-shadow .15s, color .15s; }
.button-buy { background: var(--blaze); color: #fff; }
.button-buy:hover, .button-buy:focus { background: var(--blaze-dark); color: #fff; }
.button-line { background: #fff; color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--line); }
.button-line:hover, .button-line:focus { box-shadow: inset 0 0 0 1.5px var(--moss); color: var(--spruce); }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.button-ghost:hover, .button-ghost:focus { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.button-done { background: var(--well); color: var(--spruce); }
.button-done:hover, .button-done:focus { background: var(--line); color: var(--spruce); }
.button-sm { height: 42px; padding: 0 16px; font-size: 15px; }
.button[disabled], .button.is-busy { opacity: .6; pointer-events: none; }

/* ---------- шапка ---------- */
.head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; color: var(--spruce); }
.brand:hover, .brand:focus { color: var(--spruce); }
.brand img { display: block; width: auto; height: 64px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: 700 34px/.95 var(--head); letter-spacing: .01em; }
.brand-text span { margin-top: 4px; color: var(--steel); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.head-phone { flex: none; display: grid; gap: 2px; color: var(--ink); line-height: 1.2; text-align: right; }
.head-phone b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.head-phone span { color: var(--steel); font-size: 13px; white-space: nowrap; }
.head-phone:hover b { color: var(--moss); }
.search-toggle { display: none; }
.search { position: relative; flex: 1; max-width: 520px; display: flex; height: 48px; margin: 0; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--snow); }
.search:focus-within { border-color: var(--moss); background: #fff; }
.search input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-page { max-width: 640px; margin-bottom: 28px; }
.search button { width: 52px; border: 0; background: transparent; color: var(--steel); display: grid; place-items: center; }
.head-actions { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.head-actions a { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.cart-btn { padding: 11px 18px; border-radius: var(--r); background: var(--spruce); color: #fff !important; font-weight: 600; }
.cart-btn:hover { background: var(--spruce-2); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blaze); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; }
.cart-count.is-empty { background: rgba(255, 255, 255, .18); }
.cart-btn.bump .cart-count { animation: bump .45s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu { position: relative; z-index: 29; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu > .wrap { display: flex; align-items: stretch; gap: 8px; min-height: 54px; }
.catalog-toggle { display: flex; align-items: center; gap: 10px; white-space: nowrap; margin: 7px 16px 7px 0; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--moss); color: #fff; font-weight: 600; }
.catalog-toggle:hover, .catalog-toggle[aria-expanded="true"] { background: var(--spruce); }
.menu-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu-links a { display: flex; align-items: center; height: 100%; padding: 0 14px; white-space: nowrap; border-bottom: 2.5px solid transparent; color: var(--ink); font-weight: 500; font-size: 15px; }
.menu-links a:hover, .menu-links a[aria-current="page"] { border-bottom-color: var(--moss); color: var(--spruce); }
.menu-toggle { display: none; }
.catalog-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(23, 51, 42, .35); }
.catalog-panel .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 26px; padding-bottom: 30px; }
.catalog-panel h3 { margin: 0 0 10px; font-size: 22px; }
.catalog-panel h3 a { color: var(--spruce); }
.catalog-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.catalog-panel li a { color: var(--steel); }
.catalog-panel li span { color: #9aa8a2; font-size: 13px; }
.catalog-panel li a:hover { color: var(--moss); }

/* ---------- главная ---------- */
.hero { background: var(--spruce); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; padding-top: 64px; padding-bottom: 56px; }
.hero .wrap > * { min-width: 0; }
.hero h1 { color: #fff; font-size: clamp(48px, 7vw, 96px); line-height: .95; }
.hero-kicker { display: block; margin-bottom: 10px; color: var(--mist); font-size: .4em; line-height: 1.1; letter-spacing: .01em; }
.hero-lead { max-width: 30em; margin: 22px 0 32px; color: var(--mist); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-call { margin-top: 30px; color: var(--mist); font-size: 15px; }
.hero-call a { display: block; margin-top: 2px; color: #fff; font-weight: 600; font-size: 20px; }

.lineup { --k: .46; }
.lineup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; color: var(--mist); font-size: 15px; }
.lineup-head b { color: #fff; font: 600 22px/1.1 var(--head); }
.lineup-row { display: flex; align-items: flex-end; gap: 18px; }
.lineup-row + .lineup-row { border-top: 1.5px solid rgba(255, 255, 255, .28); }
.lineup-item { flex: none; width: calc(var(--mm) * var(--k) * 1px + 3px); color: #fff; text-align: center; }
.lineup-item:hover, .lineup-item:focus { color: #fff; }
.lineup-cap { padding-top: 12px; }
.lineup-cap b { display: block; font: 700 21px/1 var(--head); }
.lineup-size { display: block; margin-top: 4px; color: #9fb4aa; font-size: 13px; }
.lineup-cap em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; font-weight: 500; }
.lineup-more { margin: 18px 0 0; color: var(--mist); font-size: 15px; }
.lineup-more a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.frame { display: block; width: 100%; height: auto; overflow: visible; }
.frame rect, .frame line { fill: none; stroke: #9fb4aa; vector-effect: non-scaling-stroke; transition: stroke .15s; }
.frame rect { stroke-width: 2.4; }
.frame line { stroke-width: 1.4; }
a:hover .frame rect, a:hover .frame line, a:focus .frame rect, a:focus .frame line, .is-current .frame rect { stroke: var(--blaze); }

.promo { background: var(--well); border-bottom: 1px solid var(--line); }
.promo .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; font-weight: 500; }
.promo-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--moss); color: #fff; display: grid; place-items: center; }
.promo a { margin-left: auto; font-weight: 600; border-bottom: 1.5px solid; }

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section-alt, .section-alt + .section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }

.tabbar { display: flex; flex-wrap: wrap; gap: 6px; }
.tabbar button { padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--steel); font-weight: 500; }
.tabbar button:hover { background: var(--well); color: var(--spruce); }
.tabbar button[aria-selected="true"] { background: var(--spruce); color: #fff; }

.about { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; }
.about-text { color: var(--ink-2); max-width: 40em; }
.about h2 { margin-bottom: 18px; }
.facts { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 6px; }
.facts-icon { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--well); color: var(--moss); display: grid; place-items: center; }
.facts b { display: block; color: var(--spruce); font: 700 22px/1.15 var(--head); }
.facts span { color: var(--steel); font-size: 15px; }

.reviews { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.review { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.review blockquote { margin: 0; color: #2c3632; }
.review figcaption { margin-top: auto; color: var(--steel); font-size: 14px; }
.review figcaption b { color: var(--ink); font-weight: 600; }
.review:first-child { background: var(--spruce); border-color: var(--spruce); }
.review:first-child blockquote { color: #fff; font-size: 19px; line-height: 1.5; }
.review:first-child figcaption, .review:first-child figcaption b, .review:first-child figcaption a { color: var(--mist); }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-list a { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 2px solid var(--spruce); color: var(--ink); }
.news-list time { color: var(--steel); font-size: 14px; }
.news-list b { color: var(--spruce); font: 600 24px/1.15 var(--head); }
.news-list a:hover b { color: var(--moss); }

/* ---------- карточка товара в списке ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card:hover { border-color: #b9c7bd; }
.card-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; background: var(--well); }
.card-photo img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card-photo svg { width: 96px; color: #9aa8a2; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.card-name { flex: 1; margin: 0; color: var(--spruce); font: 700 23px/1.12 var(--head); }
.card-name a { color: inherit; }
.card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-buy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--blaze); color: #fff; font-size: 13px; font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.specs li { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--snow); font-size: 13px; }
.price { font: 700 26px/1 var(--head); white-space: nowrap; }
.price small { color: var(--steel); font: 500 15px var(--body); }
.price s { display: block; color: var(--steel); font: 400 15px var(--body); }

/* ---------- внутренние страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 22px 0 0; list-style: none; color: var(--steel); font-size: 14px; }
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--moss); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b5bfba; }

.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-top: 28px; }
.cat-layout > * { min-width: 0; }
.cat-layout > aside { align-self: stretch; }
.side { position: sticky; top: 104px; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--r); color: var(--ink); font-weight: 500; }
.side a span { color: var(--steel); font-weight: 400; font-size: 14px; }
.side a:hover { background: var(--well); }
.side a[aria-current="page"] { background: var(--spruce); color: #fff; }
.side a[aria-current="page"] span { color: var(--mist); }
.side ul { display: grid; gap: 2px; margin: 0; padding: 0 0 0 14px; list-style: none; }
.side ul a { padding: 7px 14px; font-weight: 400; font-size: 15px; }
.cat-intro .rte p:last-child { margin-bottom: 0; }
.cat-intro { margin-bottom: 26px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink-2); }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.subcats a { display: block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; }
.subcats a:hover { border-color: var(--moss); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 18px; color: var(--steel); font-size: 14px; }
.toolbar-selects { display: flex; flex-wrap: wrap; gap: 16px; }
.toolbar label { display: flex; align-items: center; gap: 8px; }
.select { height: 40px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2366726f' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); -webkit-appearance: none; appearance: none; }
.cat-layout .grid { grid-template-columns: repeat(3, 1fr); }
.empty { padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; color: var(--steel); }
.empty .button { margin-top: 16px; }

/* пагинация OpenCart: <ul class="pagination"> */
.pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; color: var(--steel); font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); }
.pagination a:hover { border-color: var(--moss); }
.pagination .active span { background: var(--spruce); border-color: var(--spruce); color: #fff; }

/* страница товара */
.pp { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; padding: 24px 0 56px; }
.pp > * { min-width: 0; }
.gallery { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.gallery > * { min-width: 0; }
.gallery.is-single { grid-template-columns: 1fr; }
.thumbs { display: grid; align-content: start; gap: 10px; }
.thumbs button { aspect-ratio: 1; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--well); }
.thumbs button[aria-current="true"] { border-color: var(--spruce); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stage { display: grid; place-items: center; aspect-ratio: 16 / 11; padding: 20px; border: 0; border-radius: 18px; background: var(--well); cursor: zoom-in; }
.stage img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stage-empty { cursor: default; }
.stage-empty svg { width: 30%; color: #9aa8a2; }
.buybox { position: sticky; top: 104px; }
.buybox h1 { font-size: clamp(36px, 4vw, 54px); }
.buybox-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: var(--steel); font-size: 14px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 10px; }
.buybox .price { margin-right: 8px; font-size: 48px; }
.buybox .button-buy, .buybox .button-done { flex: 1; min-width: 180px; }
.wholesale { color: var(--moss); font-size: 15px; font-weight: 500; }
.qty { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--steel); font-size: 20px; }
.qty button:hover { color: var(--ink); }
.qty input { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.note { color: var(--steel); font-size: 14px; }
.spec { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 50%; color: var(--steel); font-weight: 400; }
.spec td { font-weight: 500; }
.spec caption { padding: 18px 0 4px; color: var(--spruce); font: 600 18px var(--head); text-align: left; }
.ship-note { display: grid; gap: 6px; margin-top: 22px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 15px; }
.ship-note b { color: var(--spruce); }
.size-compare { --k: .24; margin-top: 22px; padding: 22px 24px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.size-compare p { margin: 0 0 14px; color: var(--steel); font-size: 14px; }
.size-compare .lineup-row { gap: 10px; }
.size-compare .lineup-row + .lineup-row { border-top: 1.5px solid var(--line); }
.size-compare .frame rect, .size-compare .frame line { stroke: #b5c0bb; }
.size-compare .is-current .frame rect { stroke: var(--blaze); stroke-width: 2.6; }
.size-compare .lineup-item { color: var(--steel); padding-top: 8px; font: 600 14px/1 var(--head); }
.size-compare .lineup-row:first-child .lineup-item { padding-top: 0; }
.size-compare .lineup-item.is-current { color: var(--blaze); }

.ptabs { display: flex; gap: 28px; margin-top: 8px; border-bottom: 1.5px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ptabs button { margin-bottom: -1.5px; padding: 14px 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--steel); font: 600 22px var(--head); white-space: nowrap; }
.ptabs button[aria-selected="true"] { color: var(--spruce); border-bottom-color: var(--blaze); }
.ppanel { max-width: 760px; padding-top: 28px; }
.rte { color: var(--ink-2); overflow-wrap: anywhere; }
.rte p { margin: 0 0 14px; }
.rte img { border-radius: var(--r); }
.rte table { max-width: 100%; border-collapse: collapse; }
.rte td, .rte th { padding: 8px 10px; border: 1px solid var(--line); }
.rte h2, .rte h3 { margin: 26px 0 12px; }
.rte ul, .rte ol { padding-left: 22px; }
.rte iframe { max-width: 100%; }
.rev-list article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rev-list header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.rev-list header b { font-weight: 600; }
.rev-list time { color: var(--steel); font-size: 14px; }
.rev-list p { margin: 0; }
.stars { color: #e3a008; letter-spacing: 2px; }
.rev-form { display: grid; gap: 16px; max-width: 560px; margin-top: 32px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rev-form h3 { font-size: 26px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; border: 0; }
.rating legend { margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.rating label { display: flex; align-items: center; gap: 4px; }
.related { padding: 56px 0 0; }

/* корзина */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-layout > * { min-width: 0; }
.lines { margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.line { display: grid; grid-template-columns: 112px 1fr auto auto 40px; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 6px; border-radius: var(--r); background: var(--well); }
.line-photo img { mix-blend-mode: multiply; }
.line-name { color: var(--spruce); font: 700 22px/1.12 var(--head); }
.line-info { margin-top: 4px; color: var(--steel); font-size: 14px; }
.line-info .warn { color: var(--danger); }
.line .qty { height: 44px; }
.line-sum { min-width: 96px; text-align: right; font: 700 22px var(--head); white-space: nowrap; }
.line-remove { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--steel); display: grid; place-items: center; }
.line-remove:hover { background: var(--well); color: var(--ink); }
[data-cart-page].is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
.total { position: sticky; top: 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.total-row { display: flex; justify-content: space-between; gap: 12px; color: var(--steel); }
.total-row b { color: var(--ink); font-weight: 500; text-align: right; }
.total-row:last-of-type { align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.total-row:last-of-type b { font: 700 34px var(--head); }
.total .note { margin: 0; }
.cart-modules summary { color: var(--moss); font-weight: 500; cursor: pointer; }
.cart-modules[open] summary { margin-bottom: 12px; }
.code-form { display: flex; gap: 8px; margin-top: 8px; }
.code-form .input { height: 42px; }
.message { margin: 0 0 16px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.message.is-error { border-color: #f1b8b3; color: var(--danger); }

/* поля форм */
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.input { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--snow); outline: none; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--moss); background: #fff; }
.field-error { display: none; margin-top: 6px; color: var(--danger); font-size: 14px; }
.has-error .input { border-color: #d92d20; background: #fff; }
.has-error .field-error { display: block; }
.phone { display: flex; gap: 8px; }
.phone .select { flex: none; width: 110px; height: 50px; background-color: var(--snow); }
.field .consent { display: grid; margin: 0; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 14px; font-weight: 400; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--moss); }

/* диалог */
.sheet { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(15, 30, 24, .55); }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px 22px; background: var(--spruce); color: #fff; }
.sheet-head h2 { color: #fff; font-size: 28px; }
.sheet-head p { margin: 6px 0 0; color: var(--mist); font-size: 15px; }
.sheet-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; }
.sheet-close:hover { background: rgba(255, 255, 255, .12); }
.sheet-body { display: grid; gap: 16px; padding: 24px 28px 28px; }
.sheet-body .button-buy { width: 100%; height: 56px; font-size: 17px; }
.sheet-sum { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--r); background: var(--snow); font-size: 15px; }
.sheet-sum b { font: 700 22px var(--head); }
.sheet-note { margin: 0; color: var(--steel); font-size: 13px; text-align: center; }
.viewer { width: min(1200px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; background: #fff; }
.viewer::backdrop { background: rgba(15, 30, 24, .8); }
.viewer img { display: block; width: 100%; height: auto; }
.viewer .sheet-close { position: absolute; top: 10px; right: 10px; background: var(--spruce); }

/* всплывающее сообщение */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: var(--r-lg); background: var(--spruce); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.toast a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.toast.is-hidden { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.toast.is-error { background: var(--danger); }

/* подвал */
.foot { padding: 56px 0 28px; background: var(--spruce); color: var(--mist); font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h2 { margin: 0 0 16px; color: #fff; font: 600 20px/1 var(--head); }
.foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--mist); }
.foot a:hover { color: #fff; }
.foot p { margin: 0 0 4px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; font: 600 19px/1.15 var(--head); }
.foot-brand img { width: 64px; height: 64px; padding: 6px; border-radius: 16px; background: #fff; }
.foot-tel { display: block; margin-bottom: 6px; color: #fff !important; font-size: 22px; font-weight: 600; }
[data-subscribe-slot] h2 { margin-top: 24px; }
.subscribe { display: flex; margin-top: 4px; overflow: hidden; border-radius: var(--r); background: var(--spruce-2); }
.subscribe input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: #fff; outline: none; }
.subscribe input::placeholder { color: #8fa39a; }
.subscribe button { padding: 0 16px; border: 0; background: var(--moss); color: #fff; font-weight: 600; }
.subscribe button:hover { background: #3a7f47; }
.subscribe-note { margin-top: 8px !important; color: #8fa39a; font-size: 13px; }
.subscribe-note a { color: #8fa39a; text-decoration: underline; }
.foot-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8fa39a; font-size: 14px; }

/* уведомление о cookie */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 14px 18px; border-radius: var(--r-lg); background: var(--ink); color: #e9ece6; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); font-size: 14px; line-height: 1.45; }
.cookie-notice p { flex: 1; margin: 0; }
.cookie-notice a { color: #9fd07f; text-decoration: underline; }
.cookie-notice .button { height: 40px; background: var(--moss); color: #fff; }

/* юридические тексты (gen_legal.py) */
.legal-doc { max-width: 860px; color: var(--ink-2); line-height: 1.65; }
.legal-doc .legal-title { margin: 0 0 4px; color: var(--spruce); font: 700 30px/1.2 var(--head); }
.legal-doc .legal-title + p { margin-bottom: 18px; color: var(--steel); }
.legal-doc h3 { margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); font-size: 22px; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc a { text-decoration: underline; }

.text-page { max-width: 860px; }
.sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sitemap > ul { margin: 0; }
.done { display: grid; justify-items: center; gap: 14px; max-width: 640px; margin: 24px auto 0; color: var(--ink-2); }
.done svg { color: var(--moss); }
.done h1 { font-size: clamp(28px, 3.4vw, 40px); }

/* контакты */
.contact form h2 { font-size: 28px; }
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.contact > * { min-width: 0; }
.contact-list { display: grid; gap: 18px; margin: 0 0 32px; }
.contact-list dt { color: var(--steel); font-size: 14px; }
.contact-list dd { margin: 2px 0 0; font-weight: 500; }
.contact form { display: grid; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.map { overflow: hidden; border-radius: var(--r-lg); background: var(--well); aspect-ratio: 4 / 3; }
.map { position: relative; z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(.7) contrast(1.05); }
.leaflet-container .leaflet-marker-pane .map-pin img { display: block; width: 56px; height: auto; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px -6px rgba(23, 51, 42, .5); }

/* служебные страницы на Bootstrap: подгоняем под новый вид */
.legacy .way { display: none; }
.legacy .btn-primary, .legacy .checkout-button { background: var(--blaze); border-color: var(--blaze); border-radius: var(--r); }
.legacy .btn-primary:hover { background: var(--blaze-dark); border-color: var(--blaze-dark); }
.legacy .form-control { height: 44px; border-radius: var(--r); box-shadow: none; }
.legacy textarea.form-control { height: auto; }
.legacy input:is([type=text], [type=email], [type=tel], [type=password]) { width: 100%; max-width: 520px; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.legacy input:focus { border-color: var(--moss); outline: none; }
.legacy h1, .legacy h2 { margin: 18px 0 16px; }

@media (max-width: 1240px) {
  .head .wrap { gap: 20px; }
}

/* ---------- планшет ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .head .wrap { flex-wrap: wrap; row-gap: 0; }
  .head-phone { margin-left: auto; }
  .head .search { order: 4; flex-basis: 100%; max-width: none; margin-bottom: 14px; }
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; display: flex; gap: 6px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  .side a { white-space: nowrap; background: #fff; border: 1px solid var(--line); }
  .side ul { display: none; }
  .pp { grid-template-columns: 1fr; gap: 28px; }
  .pp > .pp-media { display: contents; }
  .gallery { order: 1; }
  .buybox { order: 2; position: static; }
  .size-compare { order: 3; margin-top: 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .total { position: static; }
  .menu-links { overflow-x: auto; scrollbar-width: none; }
  .menu-links a { padding: 0 10px; }
  .contact, .sitemap { grid-template-columns: 1fr; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 130px; }
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px !important; } /* меньше 16px - iOS увеличивает страницу при фокусе */
  .wrap { padding: 0 16px; }
  /* шапка телефона: знак и корзина, ниже - телефон и часы; поиск открывается значком */
  .head .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 8px; padding-right: 16px; padding-bottom: 0; }
  .head .wrap { flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand img { height: 44px; }
  .brand-text b { font-size: 26px; }
  .brand-text span { font-size: 11px; letter-spacing: 0; }
  .head-actions { gap: 4px; margin-left: auto; }
  .search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); }
  .search-toggle[aria-expanded="true"] { background: var(--well); }
  .cart-btn { padding: 10px; }
  .head-phone { order: 3; flex-basis: calc(100% + 32px); display: flex; justify-content: space-between; align-items: center; margin: 8px -16px 0; padding: 7px 16px; border-top: 1px solid var(--line); background: var(--snow); text-align: left; }
  .head-phone b { font-size: 16px; }
  .head .search { order: 4; flex-basis: 100%; max-width: none; height: 44px; margin: 0 0 10px; display: none; }
  .head.is-search .search { display: flex; }
  .head.is-search .head-phone { margin-bottom: 10px; }
  .cart-btn .head-label { display: none; }
  .menu > .wrap { min-height: 50px; padding-right: 0; }
  .catalog-toggle { flex: 1; justify-content: center; margin-right: 0; }
  .menu-links { display: none; }
  .menu-toggle { display: flex; align-items: center; margin-left: auto; padding: 0 16px; border: 0; background: transparent; }
  .menu.is-open .menu-links { position: absolute; top: 100%; left: 0; right: 0; z-index: 31; display: grid; padding: 4px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(23, 51, 42, .35); }
  .menu.is-open .menu-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .catalog-panel { max-height: calc(100vh - 160px); overflow-y: auto; }
  .catalog-panel .wrap { grid-template-columns: 1fr 1fr; gap: 20px; }

  .hero .wrap { gap: 34px; padding-top: 36px; padding-bottom: 36px; }
  .hero-lead { margin: 16px 0 24px; font-size: 16px; }
  .hero-actions .button { flex: 1; padding: 0 12px; }
  .lineup, .lineup .lineup-row { --k: .26; gap: 6px; }
  .lineup-head span, .lineup-size, .lineup-kp, .lineup-cap em { display: none; }
  .lineup-cap b { font-size: 17px; }
  .promo .wrap { flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }
  .promo a { margin-left: 56px; }

  .section { padding: 48px 0; }
  .section + .section-alt, .section-alt + .section { padding-top: 48px; }
  .tabbar { flex-wrap: nowrap; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; overflow-x: auto; }
  .tabbar button { white-space: nowrap; }
  .grid, .cat-layout .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { gap: 8px; padding: 12px; }
  .card-name { font-size: 19px; }
  .card .specs li:nth-child(2) { display: none; }
  .card-buy { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-buy .button { height: 40px; }
  .price { font-size: 23px; }
  .reviews, .news-list { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 30px; }

  .cat-intro { padding: 18px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { order: 2; grid-template-columns: repeat(5, 1fr); }
  .stage { border-radius: var(--r-lg); }
  .buybox .price { width: 100%; font-size: 40px; }
  .buybox .button-buy, .buybox .button-done { min-width: 0; }
  .size-compare { --k: .18; padding: 18px 16px 14px; }
  .size-compare .lineup-row { gap: 6px; }
  .ptabs { gap: 18px; }
  .ptabs button { font-size: 19px; }

  .line { grid-template-columns: 64px 1fr auto; gap: 10px 12px; padding: 14px; }
  .line-photo { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .line-text { grid-column: 2; grid-row: 1; }
  .line-name { font-size: 20px; }
  .line-remove { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; margin: -8px -8px 0 0; }
  .line .qty { grid-column: 2; grid-row: 2; justify-self: start; height: 40px; }
  .line .qty button { width: 34px; }
  .line .qty input { width: 34px; }
  .line-sum { grid-column: 3; grid-row: 2; align-self: center; min-width: 0; font-size: 19px; }

  .sheet-head, .sheet-body { padding-left: 20px; padding-right: 20px; }
  .cookie-notice { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .toast { bottom: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
