/* TORETS — металлический профиль. Mobile-first. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f3ee;
  --bg-hi: #fcfaf6;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-2: #4a463f;
  --muted: #7a7468;
  --line: #e4ddd0;
  --dark: #1f1d1a;
  --dark-2: #2b2925;
  --ok: #2f7d4f;
  --err: #b42318;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 8px 24px rgba(31, 29, 26, .06);
  --shadow-lg: 0 2px 4px rgba(31, 29, 26, .05), 0 18px 48px rgba(31, 29, 26, .12);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mbar-h: 0px;
}

/* Цвет металла. По умолчанию латунь; раздел задаёт свой через data-metal. Любой элемент с data-metal
   получает свою палитру — так на «медной» странице точка «Латунь» в переключателе остаётся латунной. */
:root, [data-metal] {
  --metal: #b8893a;        /* основной */
  --metal-hi: #e3c27a;     /* блик */
  --metal-lo: #8a6324;     /* тень, ссылки */
  --metal-top: #d1a654;    /* верх градиента кнопки */
  --metal-top-h: #dbb465;  /* кнопка при наведении: верх */
  --metal-h: #c39443;      /* кнопка при наведении: низ */
  --metal-a: #d9b263;      /* широкая плашка: начало */
  --metal-z: #a57a2e;      /* широкая плашка: конец */
  --metal-rgb: 184, 137, 58;
  --metal-ink: #1f1d1a;    /* текст на металле */
  --tint: #f3ead8;         /* светлая подложка под рисунки */
  --tint-2: #e6d8bd;
  --tint-soft: #fbf6ec;
}
/* Медь */
[data-metal="med"] {
  --metal: #c26540;
  --metal-hi: #eda483;
  --metal-lo: #8d3c21;
  --metal-top: #dc8a64;
  --metal-top-h: #e39873;
  --metal-h: #cb7049;
  --metal-a: #e08f6a;
  --metal-z: #a94d2a;
  --metal-rgb: 194, 101, 64;
  --tint: #f6e4da;
  --tint-2: #ebcfc0;
  --tint-soft: #fcf2ed;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); padding-bottom: var(--mbar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 800; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap--text { max-width: 820px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--brass, .btn--metal { background: linear-gradient(180deg, var(--metal-top), var(--metal)); color: var(--metal-ink); border-color: var(--metal-lo); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--brass:hover, .btn--metal:hover { background: linear-gradient(180deg, var(--metal-top-h), var(--metal-h)); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--metal); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(31, 29, 26, .18); }
.btn--dark:hover { background: #000; }
.btn--white { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--white:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; background: var(--surface); }
.chip:hover { border-color: var(--metal); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 13px 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--metal-hi), var(--metal) 60%, var(--metal-lo)); }

/* ---------------------------------------------------------------- header */
/* Переключатель материалов (латунь / медь / …) — внутри раздела, когда активных разделов больше одного */
.mats { background: #151412; font-size: 13px; font-weight: 600; }
.mats__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mats__in::-webkit-scrollbar { display: none; }
.mats a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: #b9b0a0; text-decoration: none; border-bottom: 2px solid transparent; }
.mats a i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--metal-hi), var(--metal) 60%, var(--metal-lo)); }
.mats a:hover { color: #f4efe6; }
.mats a.is-active { color: #fff; border-bottom-color: var(--metal); }

.hdr { position: sticky; top: 0; z-index: 30; background: rgba(31, 29, 26, .96); color: #f4efe6; backdrop-filter: saturate(1.2) blur(6px); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--metal-hi), var(--metal) 55%, var(--metal-lo)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 17px; letter-spacing: .08em; }
.logo__text small { font-size: 12px; color: #b9b0a0; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a, .nav__btn { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: #e9e2d4; background: none; border: 0; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav__btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hdr__right { display: flex; align-items: center; gap: 8px; }
.hdr__contact { display: none; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hdr__phone { font-weight: 800; text-decoration: none; font-size: 17px; white-space: nowrap; }
.hdr__cb { background: none; border: 0; padding: 0; color: var(--metal-hi); font-size: 13px; border-bottom: 1px dashed rgba(var(--metal-rgb), .7); }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; justify-content: center; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 0; color: #fff; text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cart-btn__label { display: none; font-weight: 700; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--metal); color: var(--metal-ink); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.cart-btn.pulse { animation: pulse .6s ease; }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- верх страницы раздела: заголовок + «колода» товаров */
.shero { position: relative; overflow: hidden; padding: 22px 0 4px; background: radial-gradient(70% 90% at 92% 8%, rgba(var(--metal-rgb), .17), transparent 70%), linear-gradient(180deg, var(--bg-hi), var(--bg)); }
.shero__in { display: grid; gap: 22px; }
.shero__title { font-size: clamp(30px, 7.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.shero__sub { margin: 14px 0 0; color: var(--ink-2); font-size: clamp(16px, 2.1vw, 18px); max-width: 52ch; }
.shero__facts { display: none; list-style: none; margin: 18px 0 0; padding: 0; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.shero__facts li::before { content: "◆"; color: var(--metal); font-size: 10px; margin-right: 10px; vertical-align: 2px; }
/* «Прайс-лист на почту | Получить» — поле-кнопка, открывает окно запроса прайса */
.pricebar { display: none; align-items: stretch; width: 100%; max-width: 400px; margin-top: 26px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface); text-align: left; box-shadow: var(--shadow-lg); transition: transform .12s, box-shadow .15s; }
.pricebar:hover { box-shadow: 0 2px 4px rgba(31, 29, 26, .05), 0 22px 56px rgba(31, 29, 26, .16); }
.pricebar:active { transform: translateY(1px); }
.pricebar span { flex: 1; display: flex; align-items: center; padding: 0 20px; white-space: nowrap; color: var(--muted); font-weight: 600; }
.pricebar b { display: flex; align-items: center; padding: 20px 26px; background: linear-gradient(180deg, var(--metal-top), var(--metal)); color: var(--metal-ink); font-size: 17px; }

/* Колода. Телефон: список карточек «картинка слева». Планшет: сетка 2×N. Десктоп (≥1080px): карточки в ряд,
   раскрыта одна (первая или та, на которую навели), остальные узкие с вертикальной подписью. */
.deck { display: grid; gap: 12px; }
.pcard { position: relative; display: grid; grid-template-columns: 112px 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.pcard__img { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--tint), var(--tint-2)); }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pcard__label { display: none; }
.pcard__info { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.pcard__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pcard__short { display: none; color: var(--ink-2); font-size: 15px; }
.pcard__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pcard__price { font-size: 15px; }
.pcard__price b { font-size: 18px; }
.pcard__sizes { font-size: 13px; color: var(--muted); }
.pcard__cta { margin-top: 4px; color: var(--metal-lo); font-weight: 700; font-size: 15px; }
.pcard--custom { background: var(--dark-2); border-color: #3a362f; color: #f4efe6; }
.pcard--custom .pcard__img { background: linear-gradient(160deg, #36322b, #24221e); }
.pcard--custom .pcard__short { color: #c9c0b0; }
.pcard--custom .pcard__price { color: var(--metal-hi); font-weight: 700; }
.pcard--custom .pcard__cta { color: var(--metal-hi); }

/* ---------------------------------------------------------------- dark hero (страница «Под заказ») */
.hero { background: var(--dark); color: #f4efe6; padding: 28px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(var(--metal-rgb), .3), transparent); pointer-events: none; }
.hero__title { font-size: clamp(28px, 6.4vw, 52px); font-weight: 800; max-width: 17ch; letter-spacing: -.03em; }
.hero__text { margin-top: 14px; font-size: clamp(16px, 2.2vw, 19px); color: #cfc6b6; max-width: 60ch; }

/* ---------------------------------------------------------------- сетка товаров (те, что не поместились в колоду) + плашка прайса */
.cats { position: relative; padding: 14px 0 40px; }
.cats__grid { display: grid; gap: 14px; margin-bottom: 14px; }
.cat { display: grid; grid-template-columns: 112px 1fr; gap: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--metal); box-shadow: 0 12px 32px rgba(31, 29, 26, .12); }
.cat__img { background: linear-gradient(160deg, var(--tint), var(--tint-2)); display: flex; align-items: center; justify-content: center; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; }
.cat__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.cat__title { font-size: 19px; font-weight: 800; }
.cat__short { display: none; color: var(--ink-2); font-size: 15px; }
.cat__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.cat__price { font-size: 15px; }
.cat__price b { font-size: 18px; }
.cat__sizes { font-size: 13px; color: var(--muted); }
.cat__cta { margin-top: 4px; color: var(--metal-lo); font-weight: 700; font-size: 15px; }

.price-cta {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--r); border: 1px solid var(--metal-lo); text-align: left;
  background: linear-gradient(115deg, var(--metal-a) 0%, var(--metal) 45%, var(--metal-z) 100%); color: var(--metal-ink);
  box-shadow: 0 10px 30px rgba(var(--metal-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s, filter .15s;
}
.price-cta:hover { filter: brightness(1.05); }
.price-cta:active { transform: translateY(1px); }
.price-cta__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(31, 29, 26, .12); display: flex; align-items: center; justify-content: center; }
.price-cta__icon svg { width: 28px; height: 28px; }
.price-cta__text { display: flex; flex-direction: column; }
.price-cta__text b { font-size: clamp(20px, 3.4vw, 28px); line-height: 1.1; }
.price-cta__text small { font-size: 15px; opacity: .85; margin-top: 4px; font-weight: 600; }

/* ---------------------------------------------------------------- главная: заголовок по центру */
.fhero { position: relative; overflow: hidden; padding: 34px 0 30px; text-align: center; background: radial-gradient(60% 70% at 50% 0%, rgba(var(--metal-rgb), .12), transparent 70%), linear-gradient(180deg, var(--bg-hi), var(--bg)); }
.fhero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 38%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 62% 58% at 50% 38%, #000 25%, transparent 75%); }
.fhero__in { position: relative; z-index: 1; }
.fhero__title { margin: 0 auto; max-width: 15ch; font-size: clamp(32px, 7.2vw, 66px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
/* подчёркнутое «маркером» слово */
.fhero__title em { font-style: normal; white-space: nowrap; background: linear-gradient(transparent 80%, var(--metal-hi) 80%, var(--metal-hi) 94%, transparent 94%); padding: 0 .04em; }
.fhero__sub { margin: 18px auto 0; max-width: 58ch; color: var(--ink-2); font-size: clamp(16px, 2.1vw, 19px); }
.fhero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.fstats { list-style: none; margin: 34px auto 0; padding: 22px 0 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; border-top: 1px solid var(--line); text-align: left; }
.fstats li { display: flex; flex-direction: column; gap: 2px; }
.fstats b { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.fstats span { font-size: 14px; color: var(--muted); line-height: 1.35; }
/* «плавающие» кружки с профилями — только на широком экране */
.float { display: none; position: absolute; z-index: 1; width: 92px; height: 92px; border-radius: 50%; border: 5px solid #fff; background: linear-gradient(160deg, var(--tint), var(--tint-2)); box-shadow: 0 12px 32px rgba(31, 29, 26, .13); animation: floaty 7s ease-in-out infinite alternate; }
.float img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; transform: scale(1.12); }
.float::after { content: ""; position: absolute; width: 0; height: 0; border: 9px solid transparent; border-left: 15px solid var(--ink); border-radius: 3px; }
.float--1 { left: 7%; top: 16%; }
.float--1::after { right: -30px; bottom: -8px; transform: rotate(38deg); }
.float--2 { right: 8%; top: 13%; animation-delay: -2s; }
.float--2::after { left: -30px; bottom: -6px; transform: rotate(142deg); }
.float--3 { left: 12%; top: 52%; animation-delay: -4s; }
.float--3::after { right: -32px; top: 22px; transform: rotate(-8deg); }
.float--4 { right: 12%; top: 55%; animation-delay: -5.5s; }
.float--4::after { left: -30px; top: -4px; transform: rotate(-142deg); }
@keyframes floaty { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

/* ---------------------------------------------------------------- главная: плитки разделов */
.tiles { padding: 6px 0 44px; scroll-margin-top: 70px; }
.tiles__box { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.tiles__grid { display: grid; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: 22px 20px 20px; background: linear-gradient(165deg, var(--tint), var(--tint-2)); }
.tile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.tile__title { font-size: 22px; font-weight: 800; line-height: 1.15; max-width: 9ch; }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся плитка — ссылка */
.tile__price { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; padding-top: 4px; }
.tile__price::before { content: ""; width: 34px; height: 2px; background: var(--ink); }
.tile__img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 0 12px; }
.tile__img img { width: min(82%, 380px); transition: transform .45s cubic-bezier(.22, .8, .24, 1); }
.tile:hover .tile__img img { transform: translateY(-8px) scale(1.04); }
.tile__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile__chips { position: relative; z-index: 2; flex: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__btn { flex: none; }
.tile__chips a { display: block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .62); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s; }
.tile__chips a:hover { background: #fff; }
.tile:hover .tile__btn { background: linear-gradient(180deg, var(--metal-top-h), var(--metal-h)); }
.band { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--dark); color: #f4efe6; }
.band div { display: flex; flex-direction: column; gap: 2px; }
.band b { font-size: 19px; }
.band span { color: #b9b0a0; font-size: 15px; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 48px 0; }
.sec--tight { padding: 8px 0 48px; }
.sec--dark { background: var(--dark); color: #f4efe6; }
.sec__head { margin-bottom: 20px; }
.sec__title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.sec__title--sm { font-size: 22px; margin: 36px 0 14px; }
.sec__sub { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.sec--dark .sec__sub { color: #b9b0a0; }

.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.other { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.other__img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--tint), var(--tint-2)); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.other__img img { width: 100%; height: 100%; object-fit: contain; }
.other__title { font-size: 16px; font-weight: 800; margin-top: 4px; }
.other__short { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.other .btn { margin-top: 6px; width: 100%; white-space: normal; text-align: center; line-height: 1.2; }

.steps__list { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps__list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.steps__list li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: linear-gradient(135deg, var(--metal-hi), var(--metal)); color: var(--metal-ink); }
.steps__list b { font-size: 18px; line-height: 1.3; padding-top: 10px; }
.steps__list span { color: #b9b0a0; }

.cb-band { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; box-shadow: var(--shadow); }
.cb-band__row { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- forms */
.lf { display: flex; flex-direction: column; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.fld small { color: var(--muted); font-weight: 500; }
.fld input, .fld textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.fld textarea { resize: vertical; min-height: 72px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--metal); box-shadow: 0 0 0 3px rgba(var(--metal-rgb), .2); }
.fld--inline { flex: 1; }
.fld-row { display: grid; gap: 12px; }
.is-invalid { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.chk input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--metal); }
.chk input.is-invalid { outline: 2px solid var(--err); outline-offset: 2px; }
.chk a { color: var(--ink-2); }
.file { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); cursor: pointer; background: #fbfaf7; }
.file:hover { border-color: var(--metal); }
.file.has-file { border-style: solid; border-color: var(--metal); color: var(--ink); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file span::before { content: "＋ "; color: var(--metal-lo); font-weight: 800; }
.file.has-file span::before { content: ""; }
.lf__err { color: var(--err); font-size: 14px; background: #fdf0ee; border-radius: 8px; padding: 10px 12px; }

.ok { text-align: center; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ok__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.ok__title { font-size: 22px; }
.ok__text { color: var(--ink-2); max-width: 40ch; }

/* ---------------------------------------------------------------- dialogs */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 18, 15, .55); }
.modal { width: calc(100% - 24px); max-width: 460px; border-radius: 18px; padding: 26px 22px 22px; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.modal__x:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.modal__title { font-size: 24px; padding-right: 36px; }
.modal__sub { color: var(--ink-2); font-size: 15px; margin: 0; }

.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: 100%; max-width: 480px; background: var(--bg); display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); position: relative; }
.drawer__head .modal__x { position: static; }
.drawer__title { font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.cart-empty p { color: var(--ink-2); }
.cart-empty__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ci { display: grid; grid-template-columns: 56px 1fr; gap: 10px 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.ci__img { width: 56px; height: 42px; object-fit: contain; background: var(--tint); border-radius: 6px; }
.ci__title { font-weight: 800; text-decoration: none; font-size: 15px; }
.ci__meta { font-size: 13px; color: var(--muted); }
.ci__right { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.ci__sum { margin-left: auto; font-weight: 800; white-space: nowrap; }
.ci__del { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 6px; text-decoration: underline; }
.cart-total { border-top: 1px solid var(--line); padding-top: 12px; }
.cart-total__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.cart-total__row b { font-size: 22px; }
.cart-total__note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* ---------------------------------------------------------------- qty */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; height: 40px; }
.qty__btn { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-2); border-radius: 50%; }
.qty__btn:hover { color: var(--metal-lo); }
.qty__in { width: 52px; height: 36px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty__in::-webkit-inner-spin-button, .qty__in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__in:focus { outline: none; }
.qty--sm { height: 36px; }
.qty--sm .qty__btn { width: 34px; height: 34px; }
.qty--sm .qty__in { width: 46px; }

/* ---------------------------------------------------------------- product page */
.pp { padding: 18px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.pp__grid { display: grid; gap: 20px; }
.pp__media { border-radius: var(--r); background: linear-gradient(160deg, var(--tint), var(--tint-2)); overflow: hidden; aspect-ratio: 16 / 9; max-height: 220px; display: flex; align-items: center; justify-content: center; }
.pp__media img { width: 100%; height: 100%; object-fit: contain; }
.pp__title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.pp__short { color: var(--ink-2); margin-top: 8px; }
.pp__note { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.pp__note span:first-child { color: var(--ink-2); font-weight: 700; }

.seg { display: flex; gap: 4px; padding: 4px; background: #ebe5da; border-radius: 999px; margin-bottom: 14px; }
.seg__btn { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.seg__btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.vt { margin-bottom: 18px; }
.vt__group { font-size: 18px; margin: 4px 0 10px; }
.has-tabs .vt__group { display: none; }
.vt__head { display: none; }
.vr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "qty add" "in in"; align-items: center; gap: 8px 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; transition: border-color .15s; }
.vr.is-in { border-color: var(--metal); }
.vr__name { grid-area: name; font-weight: 800; font-size: 17px; }
.vr__price { grid-area: price; text-align: right; white-space: nowrap; }
.vr__price b { font-size: 18px; }
.vr__price small { color: var(--muted); }
.vr .qty { grid-area: qty; justify-self: start; }
.vr__add { grid-area: add; min-width: 128px; }
.vr__add.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.vr__in { grid-area: in; font-size: 13px; color: var(--ok); font-weight: 700; }
.vr__in button { background: none; border: 0; padding: 0; color: var(--metal-lo); text-decoration: underline; font-weight: 700; }
.pp__custom { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px dashed var(--metal); border-radius: var(--r-sm); background: var(--tint-soft); }
.pp__custom div { display: flex; flex-direction: column; font-size: 15px; }
.pp__custom span { color: var(--ink-2); }
.pp__desc { margin-top: 36px; max-width: 760px; }
.pp__desc .sec__title { margin-bottom: 12px; }
.pp__desc p { color: var(--ink-2); }

.rel { display: grid; gap: 10px; }
.rel__item { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.rel__item:hover { border-color: var(--metal); }
.rel__item img { width: 80px; height: 60px; object-fit: contain; background: var(--tint); border-radius: 6px; }
.rel__item span { display: flex; flex-direction: column; }
.rel__item small { color: var(--muted); }

.text h2 { font-size: 20px; margin: 24px 0 8px; }
.text p { color: var(--ink-2); }

/* ---------------------------------------------------------------- «Под заказ» */
.hero--page { padding: 18px 0 40px; }
.hero__title--wide { max-width: 24ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .25); color: #f4efe6; }
.btn--ghost-light:hover { border-color: var(--metal-hi); }
.crumbs--dark { color: #9d9484; }
.crumbs--dark a { color: #d8d0c1; }
.sec--gallery { padding-top: 28px; }
.calc { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); margin-bottom: 8px; }
.calc__list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.calc__list li::before { content: "◆"; color: var(--metal); font-size: 10px; margin-right: 10px; vertical-align: 2px; }
.sec--tight .price-cta { margin-top: 24px; }

/* ---------------------------------------------------------------- footer + mobile bar */
.ftr { background: var(--dark); color: #d8d0c1; padding: 40px 0 28px; font-size: 15px; }
.ftr a { color: #f4efe6; }
.ftr__grid { display: grid; gap: 24px; }
.ftr__brand { font-size: 20px; font-weight: 800; letter-spacing: .08em; color: #fff; margin-bottom: 8px; }
.ftr__h { font-weight: 800; color: #fff; margin-bottom: 8px; }
.ftr__phone { font-size: 20px; font-weight: 800; text-decoration: none; }
.ftr__muted { color: #9d9484; font-size: 14px; }
.ftr__legal { font-size: 13px; }
.ftr p { margin-bottom: 6px; }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(246, 243, 238, .97); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.mbar__btn { min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mbar__btn--main { background: linear-gradient(180deg, var(--metal-top), var(--metal)); border-color: var(--metal-lo); color: var(--metal-ink); }
body { --mbar-h: 72px; }

/* ---------------------------------------------------------------- ≥ 600px */
@media (min-width: 600px) {
  .shero__facts { display: flex; }
  .deck { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pcard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pcard__img { aspect-ratio: 16 / 10; }
  .pcard__short { display: block; }
  .cats__grid { grid-template-columns: 1fr 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat__img { aspect-ratio: 4 / 3; }
  .cat__short { display: block; }
  .others { grid-template-columns: repeat(3, 1fr); }
  .fld-row { grid-template-columns: 1fr 1fr; }
  .cb-band__row { flex-direction: row; }
  .vr { grid-template-columns: 1fr auto auto auto; grid-template-areas: "name price qty add" "in in in in"; }
  .vr__price { min-width: 110px; }
  .pp__custom { flex-direction: row; align-items: center; justify-content: space-between; }
  .rel { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .fstats { grid-template-columns: repeat(4, 1fr); }
  .band { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
}

/* ---------------------------------------------------------------- ≥ 760px */
@media (min-width: 760px) {
  .tiles__grid { grid-template-columns: 1fr 1fr; }
  .tiles__grid--odd .tile:last-child { grid-column: 1 / -1; }
  .tile { min-height: 420px; padding: 30px 32px 28px; }
  .tile__title { font-size: 26px; }
  .tile__price { font-size: 18px; }
}

/* ---------------------------------------------------------------- ≥ 960px */
@media (min-width: 960px) {
  body { --mbar-h: 0px; }
  .mbar { display: none; }
  .hdr__in { min-height: 72px; }
  .hdr__contact { display: flex; }
  .hdr__tel { display: none; }
  .cart-btn__label { display: inline; }
  .hero { padding: 48px 0 120px; }
  .cats { padding: 22px 0 64px; }
  .cats__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
  .hero--page { padding: 28px 0 56px; }
  .calc { grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 40px; }
  .cat__body { padding: 18px 20px 20px; gap: 6px; flex: 1; }
  .cat__title { font-size: 22px; }
  .cat__cta { margin-top: auto; padding-top: 8px; }
  .price-cta { padding: 26px 32px; gap: 22px; justify-content: center; }
  .price-cta__icon { width: 64px; height: 64px; }
  .sec { padding: 72px 0; }
  .others { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cb-band { grid-template-columns: 1fr 1fr; align-items: center; padding: 36px 40px; }
  .pp { padding-top: 28px; }
  .pp__grid { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
  .pp__media { position: sticky; top: 96px; max-height: none; aspect-ratio: 4 / 3; }
  .vt__head { display: grid; grid-template-columns: 1fr 130px 132px 140px; gap: 12px; padding: 0 14px 6px; font-size: 13px; color: var(--muted); }
  .vr { grid-template-columns: 1fr 130px 132px 140px; padding: 10px 14px; }
  .vr__price { text-align: left; }
  .vr__add { min-width: 0; }
  .rel { grid-template-columns: repeat(4, 1fr); }
  .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
  .modal { padding: 32px 30px 28px; }
  .fhero { padding: 64px 0 40px; }
  .fstats { margin-top: 56px; }
  .tiles { padding-bottom: 72px; }
}

/* ---------------------------------------------------------------- ≥ 1080px: «колода» */
@media (min-width: 1080px) {
  .shero { padding: 34px 0 14px; }
  .shero__in { grid-template-columns: minmax(0, 9fr) minmax(0, 17fr); gap: 36px; align-items: center; }
  .shero__title { font-size: clamp(38px, 3.7vw, 46px); }
  .pricebar { display: flex; }
  .cats--solo { display: none; }
  .shero:has(+ .cats--solo) { padding-bottom: 44px; }

  /* Раскрыта карточка с классом is-open: сначала первая, дальше — та, на которую навели (ставит site.js:
     с небольшой задержкой и без сброса при уходе мыши — иначе колода дёргается и ею трудно управлять).
     --n — число карточек; раскрытая в 4,2 раза шире свёрнутой. */
  .deck { --n: 5; --deck-gap: 14px; --deck-time: .7s; --deck-ease: cubic-bezier(.4, 0, .2, 1); display: flex; gap: var(--deck-gap); height: 540px; }
  .deck[data-n="2"] { --n: 2; }
  .deck[data-n="3"] { --n: 3; }
  .deck[data-n="4"] { --n: 4; }
  .pcard { --open: 0; display: block; flex: 1 1 0; min-width: 0; border: 0; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--tint), var(--tint-2)); box-shadow: none; transition: flex-grow var(--deck-time) var(--deck-ease); }
  .pcard.is-open { --open: 1; flex-grow: 4.2; }
  .pcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

  /* рисунок фиксированного размера по центру: в узкой карточке виден его фрагмент */
  .pcard__img { position: absolute; inset: 0; aspect-ratio: auto; background: none; }
  .pcard__img img { position: absolute; left: 50%; top: 34%; width: 400px; max-width: none; height: auto; object-fit: initial; transform: translate(-50%, -50%) scale(calc(.86 + var(--open) * .14)); transition: transform var(--deck-time) var(--deck-ease); }

  /* свёрнутая карточка: тёмная плашка с вертикальным названием и ценой.
     Исчезает быстро, возвращается с задержкой — когда карточка уже почти свернулась. */
  .pcard__label { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 14px; border-radius: 16px; background: var(--ink); color: #fff; opacity: 1; transition: opacity .3s .34s; }
  .pcard.is-open .pcard__label { opacity: 0; transition: opacity .16s; }
  .pcard__label b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
  .pcard__label small { font-size: 11.5px; font-weight: 700; color: var(--metal-hi); white-space: nowrap; }

  /* раскрытая карточка: панель с названием, ценой и кнопкой.
     Появляется, когда карточка уже наполовину раскрылась; прячется сразу. */
  .pcard__info { position: absolute; left: 12px; right: 12px; bottom: 12px; min-width: 316px; gap: 6px; padding: 18px 20px 20px; border-radius: 18px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(31, 29, 26, .08); opacity: 0; transform: translateY(10px); transition: opacity .16s, transform .16s; pointer-events: none; }
  .pcard.is-open .pcard__info { opacity: 1; transform: none; transition: opacity .45s .28s, transform .55s .24s var(--deck-ease); }
  .pcard__title { font-size: 23px; }
  .pcard__short { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard__price b { font-size: 22px; }
  .pcard__cta { align-self: flex-start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(180deg, var(--metal-top), var(--metal)); border: 1px solid var(--metal-lo); color: var(--metal-ink); white-space: nowrap; }

  .pcard--custom { background: linear-gradient(165deg, #38342d, #1f1d1a); }
  .pcard--custom .pcard__img { background: none; }
  .pcard--custom .pcard__label { background: linear-gradient(180deg, var(--metal-top), var(--metal)); color: var(--metal-ink); }
  .pcard--custom .pcard__label small { color: var(--metal-ink); opacity: .75; }
  .pcard--custom .pcard__info { background: rgba(31, 29, 26, .72); box-shadow: none; }
  .pcard--custom .pcard__cta { color: var(--metal-ink); }
}
/* Плашка и панель — постоянной ширины, считаются от ширины колоды (единицы cqw), а не от текущей ширины
   карточки: иначе, пока карточка едет, текст внутри перестраивается на каждом кадре — отсюда дёрганье. */
@supports (width: 1cqw) {
  @media (min-width: 1080px) {
    .deck { container-type: inline-size; }
    .pcard { --narrow: calc((100cqw - (var(--n) - 1) * var(--deck-gap)) / (var(--n) + 3.2)); }
    .pcard__label { right: auto; width: calc(var(--narrow) - 16px); }
    .pcard__info { right: auto; min-width: 0; width: calc(var(--narrow) * 4.2 - 24px); }
  }
}

@media (min-width: 1100px) {
  .nav { display: flex; }
  .float { display: block; }
}

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