/* Сайт-витрина компании (shop.go, templates/shop): публичный сайт с
   каталогом по разделам, корзиной и заявками на адресе компании или ее
   домене. Стили свои, от программы не зависят: клиенты выбирают оформление
   в настройках витрины — тему (theme-light / theme-dark на body) и цвет
   акцента (accent-indigo … accent-blue). JavaScript не нужен: корзина,
   заявки и меню разделов — формы и CSS. */

/* Переменные тем — shop-theme.css: подключается отдельной строкой в shop/layout.html перед этим файлом
   (через @import браузер узнавал о нем только после загрузки shop.css — лишний шаг до первой отрисовки). */

/* Шрифт Onest заранее загружается из shop/layout.html (preload) и кэшируется
   браузером надолго (securityHeaders), а font-display: fallback не дает сначала
   нарисовать страницу системным шрифтом и через миг перескочить на Onest —
   из-за этого при каждом переходе по витрине текст «подергивался». */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: fallback; src: url(/static/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: fallback; src: url(/static/fonts/onest-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; }

/* Переменные тем и цветов — в shop-theme.css: их же использует
   мини-превью в настройках витрины (shop-preview.css). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font: 15px/1.5 "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.shop main { flex: 1; }
.shop-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { font-size: 12.5px; color: var(--muted); }

/* Поля и кнопки */
input, textarea, select { font: inherit; color: #222; background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); }
label input, label textarea { margin-top: 4px; }
button, .button { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--raised); color: var(--fg); border-radius: 10px; padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; }
button:hover, .button:hover { text-decoration: none; filter: brightness(.97); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.card { background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 14px; padding: 20px 22px; }
.card .muted, .card .fine, .card label { color: var(--card-muted); }
.card button:not(.primary) { background: #f1f1f4; border-color: #e0e0e6; color: #222; }
.card a:not(.primary) { color: var(--accent); }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; }

/* Шапка: верхняя строка со ссылками, телефонами и «Оставить заявку»;
   основная — логотип, поиск, корзина; ниже — меню разделов. */
.shop-top { background: var(--top); color: var(--top-fg); border-bottom: 1px solid var(--top-line); }
.shop-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; font-size: 13.5px; border-bottom: 1px solid var(--top-line); }
.shop-links { display: flex; gap: 22px; }
.shop-links a, .shop-line .phone { color: var(--top-fg); }
.shop-line-right { display: flex; align-items: center; gap: 22px; }
.request-btn, a.request-btn { color: var(--top-fg); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; }
.request-btn:hover { color: var(--accent); text-decoration: none; }
.shop-main { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.shop-brand { display: flex; align-items: center; gap: 12px; color: var(--top-fg); font-weight: 800; font-size: 22px; letter-spacing: -.02em; min-width: 0; flex: none; max-width: 36%; }
.shop-brand:hover { text-decoration: none; }
.shop-brand img { max-height: 52px; max-width: 100%; display: block; }
.shop-brand.logo-only img { max-width: min(100%, 240px); }
.shop-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.shop-search { display: flex; flex: 1 1 320px; max-width: 560px; background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid var(--input-line); }
.shop-search input { border: 0; border-radius: 0; padding: 11px 18px; background: #fff; }
.shop-search input:focus { outline: none; }
.shop-search button { border: 0; border-radius: 0; background: var(--accent); color: var(--accent-fg); padding: 0 18px; }
.cart-btn, a.cart-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--top-fg); font-weight: 700; font-size: 16px; white-space: nowrap; }
.cart-btn:hover { text-decoration: none; color: var(--accent); }
.cart-btn .n { background: var(--accent); color: var(--accent-fg); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; font-size: 15px; }
/* Переключатель языка RU / EN (shop_lang.go): перед корзиной. */
/* Переключатель языка и корзина — одним блоком справа. */
.shop-tools { margin-left: auto; display: flex; align-items: center; gap: 22px; flex: none; }
.shop-tools .cart-btn { margin-left: 0; }
.lang-switch { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a { color: var(--top-fg); opacity: .55; padding: 4px 6px; }
.lang-switch a:hover { opacity: 1; text-decoration: none; }
.lang-switch a.on { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }
.shop-menu { background: var(--menu); color: var(--menu-fg); }
.shop-menu .shop-wrap { display: flex; flex-wrap: wrap; }
.shop-menu .mi { position: relative; }
.shop-menu .mi > a { display: block; padding: 13px 18px; color: var(--menu-fg); font-weight: 600; font-size: 14px; }
.shop-menu .mi > a:hover, .shop-menu .mi:focus-within > a { background: var(--accent); color: var(--accent-fg); text-decoration: none; }
.shop-menu .sub { display: none; position: absolute; left: 0; top: 100%; z-index: 5; min-width: 240px; background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 0 0 12px 12px; padding: 8px 0; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.shop-menu .mi:hover .sub, .shop-menu .mi:focus-within .sub { display: block; }
.shop-menu .sub a { display: block; padding: 8px 16px; color: var(--card-fg); font-size: 14px; }
.shop-menu .sub a:hover { background: var(--accent-soft); text-decoration: none; }

/* Вступление, разделы, списки */
.shop-hero { padding: 34px 0 10px; }
.shop-hero.with-cats { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); color: var(--accent-fg); border-radius: 16px; padding: 38px 36px; margin: 22px 0 6px; }
.shop-hero h1 { font-size: 34px; margin: 0 0 8px; }
/* «Только логотип»: на главной вместо названия — логотип крупно. */
.shop-hero h1.hero-logo { line-height: 0; }
/* Логотип уже есть в шапке — на главной заголовок только для поисковиков и экранных дикторов. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-hero h1.hero-logo img { display: inline-block; max-height: 150px; max-width: min(100%, 560px); }
.shop-hero p { margin: 0; max-width: 60em; white-space: pre-line; }
.shop-hero.with-cats a { color: inherit; text-decoration: underline; }
.hero-note { margin-top: 10px !important; font-size: 14px; opacity: .9; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 10px; }
.cat { display: flex; flex-direction: column; background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; }
.cat:hover { text-decoration: none; border-color: var(--accent); }
.cat .pic { aspect-ratio: 5 / 3; background: #f3f3f6; display: grid; place-items: center; overflow: hidden; }
.cat .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat .body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-weight: 600; }
.cat .cnt { color: var(--card-muted); font-weight: 500; font-size: 13px; }
.list-title, .cat-title { font-size: 26px; margin: 26px 0 12px; }
.cat-title { font-size: 34px; margin: 10px 0 10px; }
.cat-descr { margin: 0 0 12px; max-width: 60em; white-space: pre-line; color: var(--muted); }
.shop-bar { display: flex; gap: 10px; align-items: center; margin: 18px 0 12px; flex-wrap: wrap; }
.shop-bar form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.kinds a { padding: 7px 14px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.kinds a:hover { text-decoration: none; border-color: var(--accent); }
.kinds a.active { background: var(--accent); color: var(--accent-fg); border-color: transparent; font-weight: 600; }
/* Фильтры и сортировка над списком (shop_filters.go, toolbar): выпадающие
   списки в одну строку, сортировка справа, как в интернет-магазине. */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 20px; }
.tb-sel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.tb-sel select { width: auto; min-width: 150px; max-width: 240px; padding: 8px 32px 8px 12px; font-size: 14px; color: var(--fg); background-color: var(--input-bg);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.tb-sel.on select { border-color: var(--accent); }
.tb-sort { margin-left: auto; }
.tb-reset { font-size: 13.5px; padding: 9px 2px; }
@media (max-width: 640px) {
  .toolbar { gap: 8px; }
  .tb-sel { flex: 1 1 calc(50% - 8px); }
  .tb-sel select { min-width: 0; max-width: none; width: 100%; }
  .tb-sort { margin-left: 0; }
}
.sorts { display: flex; gap: 22px; justify-content: flex-end; margin: 0 0 14px; font-size: 14.5px; flex-wrap: wrap; }
.sorts a.active { color: var(--fg); font-weight: 600; }
/* Пиксель Метрики без JavaScript (layout.html, noscript). */
.ym-pixel { position: absolute; left: -9999px; }
.shop-notice { margin: 16px 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: #222; font-size: 14px; }
.shop-error { margin: 16px 0; padding: 10px 14px; border-radius: 10px; background: #f9e1e0; color: #8a2622; font-size: 14px; }

/* Плитки товаров */
.goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 30px; }
.good { background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.good .pic, .item .pic { background: #fff; display: grid; place-items: center; overflow: hidden; }
.good .pic { aspect-ratio: 1; border-bottom: 1px solid var(--card-line); padding: 12px; }
.good .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Живой снимок (не товар на белом) заполняет рамку: .cover ставит сервер
   по краям миниатюры (files.PlainBackground). */
.good .pic.cover, .item .pic.cover { padding: 0; }
.good .pic.cover img, .item .pic.cover img { object-fit: cover; }
/* Safari (iPhone) не растягивает img с height: 100% внутри сетки с aspect-ratio:
   снимок уезжал вниз рамки, сверху оставалась пустота. Поэтому картинка
   кладется поверх рамки абсолютно, отступы рамки повторяются через inset. */
.cat .pic, .good .pic, .item .pic { position: relative; }
.cat .pic img, .good .pic img, .item .pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.good .pic img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.item .pic img { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
.good .pic.cover img, .item .pic.cover img { inset: 0; width: 100%; height: 100%; }
.ph { font-size: 48px; font-weight: 800; color: var(--accent-soft); letter-spacing: -.04em; user-select: none; }
.good .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.good .name { color: var(--card-fg); font-weight: 600; line-height: 1.3; }
.good .code { color: var(--card-muted); font-size: 12.5px; min-height: 1em; }
.good .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.good form { margin: 0; }
.price { font-weight: 800; color: var(--accent); font-size: 20px; white-space: nowrap; }
.price small { color: var(--card-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; }
.price.ask { font-size: 13.5px; color: var(--card-muted); font-weight: 500; white-space: normal; }
.good .add { padding: 8px 14px; font-size: 13.5px; border-radius: 20px; }
.good .added { color: var(--accent); font-size: 13px; font-weight: 600; }
.empty { padding: 40px 0 60px; color: var(--muted); }
.info { margin: 10px 0 20px; }
.info h2 { font-size: 22px; margin-bottom: 8px; }
.info p { white-space: pre-line; color: var(--muted); max-width: 60em; margin: 0; }

/* Листалка больших разделов (shop.go, paginate) */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 10px; font-size: 14.5px; }
.pager a, .pager .cur, .pager .gap { min-width: 38px; padding: 8px 12px; border-radius: 10px; text-align: center; box-sizing: border-box; }
.pager a { border: 1px solid var(--line); color: var(--fg); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager .cur { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.pager .gap { color: var(--muted); padding: 8px 4px; min-width: 0; }
.pager .pager-info { color: var(--muted); margin-right: 8px; }

/* Хлебные крошки и карточка товара */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 10px; }
.crumbs .sep { color: var(--accent); margin: 0 4px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 10px 0 30px; }
.item .pic { border: 1px solid var(--card-line); border-radius: 14px; aspect-ratio: 1; padding: 20px; }
.item .pic .ph { font-size: 96px; }
.item h1 { font-size: 30px; margin: 0 0 8px; }
.item .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.item .price { font-size: 30px; margin: 6px 0 18px; display: block; }
.item .price.ask { font-size: 15px; color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: center; margin: 0 0 24px; flex-wrap: wrap; }
.buy input { width: 90px; text-align: center; }
.buy .primary { padding: 11px 24px; border-radius: 22px; }
.ask-link { font-size: 14px; }
.buy .buy-sum { flex-basis: 100%; margin: 0; }
/* Товар упаковками: цена за м², переключатель «м² / упак», шаг — упаковка,
   сумма сразу в карточке (shop.js, data-buy) */
.buy-box { background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 16px; padding: 20px 22px; margin: 0 0 24px; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.buy-box .buy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.item .buy-box .price { margin: 0; font-size: 30px; }
.buy-box .price small { text-transform: none; font-size: 15px; }
.seg { display: inline-flex; background: var(--accent-soft); border-radius: 12px; padding: 3px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--card-fg); }
.seg input:checked + span { background: #fff; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.buy-box .pack-note { margin: 0; color: var(--card-muted); font-size: 14px; }
.buy-box .buy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.stepper { display: flex; align-items: center; background: var(--accent-soft); border-radius: 12px; overflow: hidden; }
.stepper input { flex: 1; min-width: 0; width: 100%; text-align: center; border: 0; background: transparent; font-size: 17px; font-weight: 600; color: var(--card-fg); padding: 12px 4px; }
.stepper button { border: 0; background: transparent; color: var(--accent); font-size: 22px; padding: 6px 14px; border-radius: 0; }
.buy-box .buy-row .primary { padding: 13px 18px; border-radius: 12px; font-size: 16px; }
.buy-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--card-muted); }
.buy-sum b { color: var(--accent); font-size: 22px; font-weight: 800; }
.buy-box .buy-sum { margin: 0; border-top: 1px solid var(--card-line); padding-top: 12px; }
.buy-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.cart .packs, .est-table .packs { display: block; color: var(--card-muted); font-size: 12.5px; font-weight: 500; }
.descr { line-height: 1.6; white-space: pre-line; }
/* Описание и характеристики под фото и покупкой, от левого края: текст —
   читаемой ширины, таблица характеристик — колонками по ширине страницы. */
.item-info { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; }
.item-info > .descr:first-child > h3 { margin-top: 14px; }
.item-info > .descr { max-width: 860px; }
.item-info > .descr:has(.specs) { max-width: none; }
.item-info .specs { width: 100%; border-collapse: collapse; }
.item-info .specs tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 40px; }
.item-info .specs tr { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); }
.item-info .specs th { width: auto; }
.descr h3 { font-size: 16px; margin: 20px 0 8px; }
.specs { font-size: 14px; white-space: normal; }
.specs th { width: 45%; font-weight: 500; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Заявка */
.request { background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 16px; padding: 26px 28px; margin: 20px 0 40px; }
.request h2 { font-size: 24px; margin-bottom: 4px; }
.request .muted { color: var(--card-muted); margin: 0 0 16px; }
.request-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.request-form label { color: var(--card-muted); }
.request-form .wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.request-form label.wide { display: block; }
.request-form .primary { padding: 11px 30px; border-radius: 22px; }

/* Корзина и заказ */
.cart { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding: 26px 0 48px; align-items: start; }
.cart .card { margin: 0; }
.cart h1 { font-size: 26px; margin: 0 0 12px; }
.cart table th { color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 0 10px 10px 0; }
.cart table td { padding: 12px 10px 12px 0; vertical-align: middle; border-top: 1px solid var(--card-line); }
.cart td.r, .cart th.r { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.line-name .thumb { width: 48px; height: 48px; border-radius: 8px; flex: none; overflow: hidden; display: grid; place-items: center; background: #f3f3f6; color: #9a9aa6; font-weight: 700; font-size: 18px; line-height: 1; }
.line-name .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-name > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line-name > div > b { line-height: 1.25; }
.line-name > div > span, .line-name .sub { color: var(--card-muted); font-size: 12.5px; line-height: 1.35; }
.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty form { margin: 0; }
.qty button { padding: 2px 10px; border-radius: 6px; }
.qty b { min-width: 2.2em; text-align: center; display: inline-block; }
.cart button.x, .cart .x button { border: 0; background: none; box-shadow: none; color: var(--card-muted); padding: 4px 8px; font-size: 18px; line-height: 1; }
.cart button.x:hover, .cart .x button:hover { color: #8a2622; filter: none; }
.cart table td:last-child { width: 1%; padding: 12px 0 12px 8px; }
.cart table td form { margin: 0; }
.cart td.price-col, .cart td.r { white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--card-line); }
.total .price { font-size: 20px; }
.order-form label { margin-bottom: 10px; }
.order-form .primary { width: 100%; padding: 12px; margin-top: 6px; border-radius: 22px; }
.order-form .f { color: var(--card-muted); font-size: 12.5px; margin-top: 10px; }
.done { max-width: 560px; margin: 40px auto 60px; text-align: center; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.done h1 { font-size: 26px; margin-bottom: 8px; }
.done .button { margin-top: 18px; }

/* Подвал */
.shop-foot { background: var(--foot); color: var(--foot-fg); padding: 36px 0 24px; margin-top: 20px; }
.shop-foot a { color: var(--foot-fg); }
.shop-foot a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 14px; line-height: 1.9; }
.foot-title { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 4px; }
.shop-foot .muted { color: #9a9aa3; }
.foot-links { display: none; }
.powered { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #9a9aa3; }

@media (max-width: 1000px) {
  .goods, .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-brand { max-width: 50%; }
}
@media (max-width: 760px) {
  .shop-wrap { padding: 0 16px; }
  .shop-line { display: none; }
  .shop-main { flex-wrap: wrap; gap: 12px; min-height: 0; padding: 12px 16px; }
  .shop-brand { max-width: 70%; font-size: 18px; }
  .shop-search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { font-size: 0; gap: 0; }
  .cart-btn .n { font-size: 14px; width: 32px; height: 32px; }
  .shop-menu .shop-wrap { overflow-x: auto; flex-wrap: nowrap; }
  .shop-menu .mi > a { white-space: nowrap; padding: 11px 14px; font-size: 13.5px; }
  .shop-menu .sub { display: none !important; }
  .goods, .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-hero.with-cats { padding: 24px 20px; }
  .shop-hero h1, .cat-title { font-size: 26px; }
  .shop-hero h1.hero-logo img { max-height: 96px; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .request-form { grid-template-columns: minmax(0, 1fr); }
  .request { padding: 20px 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .goods { grid-template-columns: minmax(0, 1fr); }
  .good .pic { aspect-ratio: 4 / 3; }
}

/* Расчет цены услуги (item.html, data-calc): варианты, метраж, адрес и зона;
   итог считает shop.js, сервер пересчитывает при заказе. */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; background: var(--card); color: var(--card-fg); border: 1px solid var(--card-line); border-radius: 14px; padding: 18px 20px; margin: 0 0 24px; }
.calc .calc-f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--card-muted); }
.calc .calc-f .fine { font-weight: 400; }
.calc select, .calc input { font: inherit; font-weight: 500; color: var(--card-fg); background: #fff; border: 1px solid var(--card-line); border-radius: 9px; padding: 8px 10px; width: 100%; box-sizing: border-box; }
.calc .calc-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--card-line); padding-top: 12px; font-size: 15px; }
.calc .calc-total b { color: var(--accent); font-size: 22px; font-weight: 800; }
.calc .calc-total small { color: var(--card-muted); font-weight: 600; }
.calc .buy { grid-column: 1 / -1; margin: 0; }
.shop [hidden] { display: none !important; }
.calc-addr, .order-form .calc-addr { display: flex; gap: 6px; align-items: stretch; }
.calc-addr input { flex: 1 1 auto; min-width: 0; margin: 0; }
.calc-addr button { margin: 0; flex: 0 0 auto; }
.calc .calc-f.wide { grid-column: 1 / -1; }
.calc-addr button, .order-form .calc-addr button { font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; border-radius: 9px; border: 1px solid var(--card-line); background: #fff; color: var(--card-fg); cursor: pointer; white-space: nowrap; }
.calc .calc-map { grid-column: 1 / -1; }
.calc .calc-map .fine, .order-form .f .fine { margin: 6px 0 0; }
.calc .map-msg, .order-form .map-msg { margin: 6px 0 0; font-size: 13px; color: var(--card-muted); }
.pmap-box { height: 320px; }
@media (max-width: 640px) { .pmap-box { height: 260px; } }
.calc .fine { grid-column: 1 / -1; margin: 0; color: var(--card-muted); }
.cart .zone-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 14px 0 6px; }
.cart .zone-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--card-muted); font-weight: 600; min-width: 220px; }
.cart .total.sub { font-size: 14px; color: var(--card-muted); border: 0; padding-bottom: 0; }
@media (max-width: 640px) { .calc { grid-template-columns: 1fr; } }
/* Телефон: строка корзины в две линии — товар сверху, количество,
   сумма и «убрать» под ним. */
@media (max-width: 640px) {
  .cart table, .cart table tbody { display: block; width: 100%; }
  .cart table tr:first-child { display: none; }
  .cart table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 12px 0; border-top: 1px solid var(--card-line); }
  .cart table td { display: block; border: 0; padding: 0; }
  .cart table td:first-child { grid-column: 1 / -1; margin-bottom: 10px; }
  .cart table td:last-child { width: auto; padding: 0; }
  .cart .price-col { display: none !important; }
  .line-name { gap: 10px; }
  .line-name .thumb { width: 44px; height: 44px; font-size: 16px; }
}

/* Расчет стоимости (templates/shop/estimate.html): смета по этапам, как
   коммерческое предложение — сверху общая стоимость и предоплата, по
   этапам таблицы «вид работы / объем / стоимость» с итогом и графиком
   оплаты. Шапка таблиц — --head, подложки итогов — --accent-soft. */
.estimate { display: grid; gap: 18px; padding: 26px 0 48px; }
.estimate .sub { color: var(--card-muted); font-size: 14px; margin: 6px 0 0; }
.estimate h1 { font-size: 30px; margin: 2px 0 0; }
.estimate h2 { font-size: 24px; margin: 2px 0 0; }
.estimate h3 { font-size: 17px; margin: 18px 0 8px; }
.est-kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.est-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.est-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.est-stages-k { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.est-total { margin-top: 8px; }
.est-total span, .est-prepay span { display: block; color: var(--card-muted); font-size: 14px; }
.est-total b { font-size: 28px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.est-prepay { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.est-prepay b { font-size: 22px; font-variant-numeric: tabular-nums; }
.est-list { list-style: none; margin: 14px 0 0; padding: 0; }
.est-list li { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--card-line); }
.est-list .n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; width: 24px; }
.est-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.est-list .nm { font-size: 14px; }
.est-list b { font-variant-numeric: tabular-nums; }
.est-table { margin-top: 14px; border-radius: 10px; overflow: hidden; }
.est-table th { background: var(--head); color: var(--head-fg); font-weight: 600; font-size: 13px; padding: 10px 12px; }
.est-table td { padding: 9px 12px; border-top: 1px solid var(--card-line); vertical-align: middle; }
.est-table tr:nth-child(odd) td { background: color-mix(in srgb, var(--card-fg) 3%, var(--card)); }
.est-table td .sub { display: block; font-size: 12.5px; margin: 1px 0 0; }
.estimate .card .est-table td a { color: var(--card-fg); }
.est-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-table .x-col { width: 1%; padding-left: 4px; padding-right: 4px; }
.est-table .est-sum td { background: var(--accent-soft) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; padding: 11px 12px; }
.est-table .est-sum td.r { font-size: 16px; text-transform: none; letter-spacing: 0; }
.vol-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.vol-form input[name=qty] { width: 5.5em; text-align: right; padding: 5px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.vol-form .unit { color: var(--card-muted); font-size: 13px; }
.vol-print { display: none; }
.estimate button.x { border: 0; background: none; box-shadow: none; color: var(--card-muted); padding: 4px 6px; font-size: 18px; line-height: 1; }
.estimate button.x:hover { color: #8a2622; filter: none; }
.estimate .est-table td form { margin: 0; }
.est-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; background: var(--accent-soft); border-radius: 10px; overflow: hidden; }
.est-pay > div { padding: 12px 16px; border-left: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 2px; }
.est-pay > div:first-child { border-left: 0; }
.est-pay .pct { color: var(--accent); font-weight: 800; font-size: 22px; }
.est-pay .when { color: var(--card-muted); font-size: 13px; }
.est-pay b { font-size: 17px; font-variant-numeric: tabular-nums; }
.est-note { margin: -6px 4px 0; }
.est-print-head { display: none; }
.est-order .est-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.est-order .wide { grid-column: 1 / -1; }
.est-order .primary { width: auto; min-width: 240px; }
@media (max-width: 760px) {
  .est-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .estimate h1 { font-size: 26px; }
  .estimate h2 { font-size: 21px; }
  .est-order .est-order-grid { grid-template-columns: minmax(0, 1fr); }
  .est-order .primary { width: 100%; }
  .est-table th, .est-table td { padding-left: 8px; padding-right: 8px; }
  .vol-form input[name=qty] { width: 4.5em; }
}
@media (max-width: 640px) {
  /* Телефон: строка таблицы в две линии — работа, под ней объем, сумма и «убрать». */
  .est-table, .est-table tbody { display: block; width: 100%; }
  .est-table tr:first-child { display: none; }
  .est-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 8px 10px; border-top: 1px solid var(--card-line); }
  .est-table td { display: block; border: 0; padding: 0; background: none !important; }
  .est-table td:first-child { grid-column: 1 / -1; margin-bottom: 6px; }
  .est-table tr.est-sum { background: var(--accent-soft); }
  .est-table .est-sum td:first-child { grid-column: 1; margin: 0; }
  .est-table .est-sum td:nth-child(2), .est-table .est-sum td.x-col { display: none; }
  .est-table .est-sum td.r { grid-column: 2 / -1; }
  .est-pay { grid-template-columns: minmax(0, 1fr); }
  .est-pay > div { border-left: 0; border-top: 1px solid rgba(0,0,0,.08); flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .est-pay > div:first-child { border-top: 0; }
  .est-pay b { margin-left: auto; }
}
@media print {
  /* «Сохранить в PDF»: только расчет, без шапки сайта, кнопок и формы. */
  body.shop { background: #fff; color: #111; font-size: 12px; }
  .shop-top, .shop-foot, .est-actions, .est-order, .x-col, .zone-form, .shop-error { display: none !important; }
  .shop-wrap { max-width: none; padding: 0; }
  .estimate { padding: 0; gap: 14px; }
  .estimate .card { border: 0; padding: 0 0 6px; break-inside: avoid; }
  .est-head { break-inside: avoid; }
  .estimate .est-stage { break-inside: auto; }
  .est-table tr, .est-pay { break-inside: avoid; }
  .estimate h2, .estimate h3 { break-after: avoid; }
  .est-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .est-table .est-sum td, .est-pay, .est-prepay { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vol-form input, .vol-form .unit { display: none; }
  .vol-print { display: inline; }
  .est-table td a { color: #111; text-decoration: none; }
  .estimate .sub a { color: inherit; }
  .est-print-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 0 8px; border-bottom: 2px solid var(--accent); font-size: 13px; }
  .est-print-head b { font-size: 18px; }
}

/* Карта зон на сайте — только по кнопке «Показать на карте» (USER
   05.11.2026); окно «Ваш объект» — площадь и адрес на страницах услуг
   (shop_object.go). Без скрипта окно открывается якорем #object. */
.map-open { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--card-line); background: #fff; color: var(--card-fg); cursor: pointer; }
.map-open:hover { border-color: var(--accent); color: var(--accent); }
.map-fold .map-body { margin-top: 10px; }
.obj-bar { margin: 14px 0 0; text-align: right; }
.obj-bar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--card-fg); }
.obj-bar a::before { content: "⌂"; color: var(--accent); }
.obj-bar a:hover { border-color: var(--accent); text-decoration: none; }
.obj-dlg { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(15, 18, 30, .55); align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.obj-dlg.open, .obj-dlg:target { display: flex; }
.obj-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; background: var(--card); color: var(--card-fg); border-radius: 16px; padding: 24px 24px 20px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.obj-card h2 { margin: 0; font-size: 22px; padding-right: 32px; }
.obj-card p.muted { margin: 0; color: var(--card-muted); font-size: 14px; }
.obj-card .calc-f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--card-muted); }
.obj-card input { font: inherit; font-weight: 500; color: var(--card-fg); background: #fff; border: 1px solid var(--card-line); border-radius: 9px; padding: 9px 11px; width: 100%; box-sizing: border-box; }
.obj-card .calc-addr button { font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; border-radius: 9px; border: 1px solid var(--card-line); background: #fff; color: var(--card-fg); cursor: pointer; white-space: nowrap; }
.obj-card .fine, .obj-card .map-msg { margin: 6px 0 0; font-size: 13px; color: var(--card-muted); }
.obj-card .pmap-box { height: 260px; }
.obj-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--card-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.obj-x:hover { background: rgba(0, 0, 0, .06); color: var(--card-fg); }
.obj-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.obj-actions .primary { padding: 10px 22px; }
.obj-skip { font: inherit; border: 0; background: none; color: var(--card-muted); cursor: pointer; text-decoration: underline; }
body.obj-lock { overflow: hidden; }
@media print { .obj-dlg, .obj-bar, .map-fold { display: none !important; } }

/* Обложка раздела — только в теме «Лукбук». */
.cat-hero { display: none; }

/* Тема «Лукбук» (USER 11.11.2026: сайт ювелира как его лукбук): черный
   фон, тонкий светлый шрифт, крупные фото без рамок и подложек, кнопки
   контуром-«таблеткой», название коллекции — по центру с текстом. */
/* Лента фото в карточке (несколько фото товара): кадры листаются пальцем,
   значки под лентой. Каждый кадр — как .pic: картинка абсолютно внутри
   (Safari, см. .pic). */
.item .gallery { min-width: 0; }
.item .gallery .track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.item .gallery .track::-webkit-scrollbar { display: none; }
.item .gallery .slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.item .gallery .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.item .gallery .thumbs a { position: relative; width: 64px; height: 64px; border: 1px solid var(--card-line); border-radius: 8px; overflow: hidden; opacity: .65; }
.item .gallery .thumbs a.on, .item .gallery .thumbs a:hover { opacity: 1; border-color: var(--accent); }
.item .gallery .thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.theme-lookbook { font-weight: 300; letter-spacing: .01em; }
.theme-lookbook h1, .theme-lookbook h2, .theme-lookbook h3 { font-weight: 300; letter-spacing: .01em; }
.theme-lookbook b, .theme-lookbook strong, .theme-lookbook th { font-weight: 500; }
.theme-lookbook a { color: var(--fg); }
.theme-lookbook a:hover { color: var(--accent); text-decoration: none; }
.theme-lookbook input, .theme-lookbook textarea, .theme-lookbook select { color: var(--fg); border-radius: 0; }
.theme-lookbook button, .theme-lookbook .button, .theme-lookbook button.primary, .theme-lookbook .button.primary {
  background: #fff; color: #000; border: 1px solid #fff; border-radius: 0; font-weight: 400; letter-spacing: .03em; }
.theme-lookbook button:hover, .theme-lookbook .button:hover, .theme-lookbook button.primary:hover, .theme-lookbook .button.primary:hover {
  background: transparent; color: #fff; border-color: #fff; filter: none; }
.theme-lookbook .card, .theme-lookbook .request { border-radius: 0; border-color: var(--line); }
.theme-lookbook .card button:not(.primary) { background: #fff; border-color: #fff; color: #000; }
/* Шапка и меню: строчные заглавные с разрядкой, без плашек. */
.theme-lookbook .shop-top { border-bottom-color: var(--line); }
.theme-lookbook .shop-brand { font-weight: 300; text-transform: uppercase; letter-spacing: .24em; font-size: 18px; }
.theme-lookbook .shop-logo { border-radius: 0; background: transparent; color: var(--fg); border: 1px solid var(--fg); font-weight: 300; }
/* Поиск без окантовки, «Найти» — белая, как остальные кнопки (USER 11.11.2026). */
.theme-lookbook .shop-search { background: #111; border-radius: 0; border: 0; }
.theme-lookbook .shop-search input { background: transparent; color: var(--fg); }
.theme-lookbook .shop-search button { background: #fff; color: #000; border: 1px solid #fff; border-radius: 0; }
/* Поиск по центру шапки: логотип слева, корзина справа (USER 11.11.2026). */
@media (min-width: 761px) {
  .theme-lookbook .shop-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); }
  .theme-lookbook .shop-brand { max-width: 100%; justify-self: start; }
  .theme-lookbook .shop-search { max-width: none; }
  .theme-lookbook .shop-tools { justify-self: end; }
}
/* Формы «Напишите нам» на главной нет: заявка — по ссылке под названием. */
.theme-lookbook .shop-hero ~ .request { display: none; }
.theme-lookbook .cart-btn { font-weight: 300; }
.theme-lookbook .lang-switch { font-weight: 300; letter-spacing: .2em; }
.theme-lookbook .lang-switch a.on { box-shadow: inset 0 -1px 0 var(--fg); }
.theme-lookbook .cart-btn .n { background: transparent; color: var(--fg); border: 0; width: auto; height: auto; font-size: 16px; }
.theme-lookbook .request-btn { font-weight: 400; letter-spacing: .14em; }
.theme-lookbook .shop-menu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Меню — одной строкой с прокруткой (у ювелира два десятка коллекций), по
   центру, пока помещается: поля auto у крайних пунктов. */
.theme-lookbook .shop-menu .shop-wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.theme-lookbook .shop-menu .mi:first-child { margin-left: auto; }
.theme-lookbook .shop-menu .mi:last-child { margin-right: auto; }
.theme-lookbook .shop-menu .mi > a { white-space: nowrap; }
.theme-lookbook .shop-menu .mi > a { font-weight: 300; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; padding: 14px 18px; }
.theme-lookbook .shop-menu .mi > a:hover, .theme-lookbook .shop-menu .mi:focus-within > a { background: transparent; color: var(--accent); }
.theme-lookbook .shop-menu .sub { border-radius: 0; }
/* Главная: текст о компании по центру, как вступление лукбука. */
.theme-lookbook .shop-hero, .theme-lookbook .shop-hero.with-cats { background: none; color: var(--fg); border-radius: 0; padding: 56px 0 30px; margin: 0; text-align: center; }
.theme-lookbook .shop-hero h1 { font-size: 40px; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 22px; }
.theme-lookbook .shop-hero p { margin: 0 auto; max-width: 46em; color: var(--muted); line-height: 1.7; }
.theme-lookbook .shop-hero.with-cats a { text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
/* Коллекции (разделы): высокие фото, название поверх снизу. */
.theme-lookbook .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 10px 0 48px; }
.theme-lookbook .cat { position: relative; border: 0; border-radius: 0; background: #111; }
/* Фото — предметная съемка лукбука на темном фоне (USER 11.11.2026: фото
   из таблицы на белом «не вяжутся с темной темой»): плитка 4:5, как кадры
   лукбука, фон под фото темный. Изделие целиком, не обрезано по краям
   («товары сильно залезают по бокам»): фото вписано, не растянуто. */
.theme-lookbook .cat .pic { aspect-ratio: 4 / 5; background: #111; }
.theme-lookbook .cat .pic img { inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.theme-lookbook .cat:hover .pic img { transform: scale(1.03); }
.theme-lookbook .cat .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; flex-direction: column; align-items: flex-start; gap: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-weight: 300; }
.theme-lookbook .cat .name { font-size: 26px; line-height: 1.15; }
.theme-lookbook .cat .cnt { color: rgba(255, 255, 255, .7); font-weight: 300; }
.theme-lookbook .ph { color: #333; font-weight: 200; }
/* Страница коллекции: обложка во всю ширину, название и текст по центру. */
.theme-lookbook .cat-hero { display: block; position: relative; height: min(62vh, 560px); overflow: hidden; margin: 0 0 34px; background: #111; }
.theme-lookbook .cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.theme-lookbook .cat-title { text-align: center; font-size: 42px; margin: 10px 0 14px; }
.theme-lookbook .cat-descr { text-align: center; font-style: italic; color: var(--muted); max-width: 40em; margin: 0 auto 34px; line-height: 1.7; }
.theme-lookbook .crumbs { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.theme-lookbook .crumbs .sep { color: var(--muted); }
.theme-lookbook .list-title { text-align: center; font-size: 30px; margin: 34px 0 18px; }
/* Фильтры и сортировка: списки контуром без заливки. */
.theme-lookbook .kinds a { border: 0; border-radius: 0; padding: 4px 10px; color: var(--muted); }
.theme-lookbook .kinds a.active { background: none; color: var(--fg); font-weight: 400; border-bottom: 1px solid var(--accent); }
.theme-lookbook .toolbar { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 34px; }
.theme-lookbook .tb-sel > span { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; }
.theme-lookbook .tb-sel select { background-color: #111; border-color: transparent; border-radius: 0; font-weight: 300; }
.theme-lookbook .tb-sel select option { background: #111; color: var(--fg); }
.theme-lookbook .tb-sel.on select { border-color: var(--accent); }
/* Плитки: фото 4:5 на всю плитку, текст под ним без подложки. */
.theme-lookbook .goods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.theme-lookbook .good { background: none; border: 0; border-radius: 0; }
.theme-lookbook .good .pic { aspect-ratio: 4 / 5; padding: 0; border: 0; background: #111; }
.theme-lookbook .good .pic img, .theme-lookbook .good .pic.cover img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.theme-lookbook .item .pic img, .theme-lookbook .item .pic.cover img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.theme-lookbook .good .body { padding: 14px 0 0; gap: 4px; }
.theme-lookbook .good .name { font-weight: 300; font-size: 19px; color: var(--fg); }
.theme-lookbook .good .code { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.theme-lookbook .price { color: var(--fg); font-weight: 300; font-size: 19px; }
.theme-lookbook .price small { color: var(--muted); font-weight: 300; text-transform: none; }
.theme-lookbook .good .add { padding: 6px 18px; font-size: 13px; }
.theme-lookbook .good .added { color: var(--accent); font-weight: 400; }
/* Карточка: фото слева во всю высоту, справа — название, артикул, состав,
   цена и «Заказать» контуром, как страница лукбука. */
.theme-lookbook .item { gap: 48px; align-items: start; }
.theme-lookbook .item .pic { border: 0; border-radius: 0; padding: 0; aspect-ratio: 4 / 5; background: #111; }
/* USER 11.11.2026 (Kintsugi): строка над шапкой («О компании»,
   «Контакты») — в подвале, «Заказать звонок» и «Оставить заявку» из шапки
   убраны; коллекции в меню — только на главной, внутри каталога — путь
   «Главная → коллекция → товар»; линий под шапкой и в характеристиках нет
   (под ними ничего не стоит); в карточке — без поля количества: «В
   корзину» кладет одну штуку. */
.theme-lookbook .shop-line { display: none; }
.theme-lookbook .shop-top { border-bottom: 0; }
.theme-lookbook:has(.crumbs) .shop-menu { display: none; }
.theme-lookbook .foot-links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 28px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; }
.theme-lookbook .specs th, .theme-lookbook .specs td { border-bottom: 0; }
.theme-lookbook .item .buy input[data-qty] { display: none; }
/* USER 11.11.2026: «В корзину» в плитке — сразу после цены, а не у правого
   края; на странице товара нет формы «Узнать о наличии» и ссылки на нее; в
   подвале нет названия организации (ИП), список коллекций — в две колонки. */
.theme-lookbook .good .foot { justify-content: flex-start; gap: 10px 18px; }
.theme-lookbook .item ~ .request, .theme-lookbook .item .ask-link { display: none; }
/* Кнопка — в одной строке с ценой, сразу после «руб.» (USER 11.11.2026). */
.theme-lookbook .item .item-buy { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 0 20px; }
.theme-lookbook .item .item-buy > h1, .theme-lookbook .item .item-buy > .meta { flex: 0 0 100%; }
.theme-lookbook .item .item-buy > .price, .theme-lookbook .item.spread .item-buy > .price { margin: 6px 0; }
.theme-lookbook .item .item-buy > .buy { margin: 6px 0; }
.theme-lookbook .item .item-buy > .buy .buy-sum { display: none; }
.theme-lookbook .foot-org { display: none; }
.theme-lookbook .foot-cat { columns: 2; column-gap: 28px; }
/* Карточка с разворотом лукбука (USER 11.11.2026: «на весь экран фотка из
   лукбука, всплывают цены; промотал вниз — плавно вылезают
   характеристики»): разворот — на всю ширину и высоту первого экрана,
   название, цена и «В корзину» — поверх него справа, как текст на странице
   лукбука (там темное поле над изделием), и появляются по очереди. Ниже —
   описание и характеристики, выезжают при прокрутке (shop.js, .rv). */
.theme-lookbook { overflow-x: clip; }
/* Шапка непрозрачная, разворот — отдельно под ней и строкой пути (USER
   11.11.2026: «фотки налезают на верхнюю панель»): высота — остаток окна. */
.theme-lookbook .item.spread { --hero: max(480px, calc(100svh - 132px)); display: block; position: relative; padding: 0 0 30px; }
.theme-lookbook .item.spread .gallery { margin: 0 calc(50% - 50vw); }
.theme-lookbook .item.spread .pic { aspect-ratio: auto; height: var(--hero); background: #000; }
.theme-lookbook .item.spread .slide img { object-fit: contain; }
.theme-lookbook .item.spread .slide:first-child img { object-fit: cover; object-position: 50% 60%; animation: lb-zoom 2.4s cubic-bezier(.2, .6, .2, 1) both; }
.theme-lookbook .item.spread .gallery .thumbs { position: absolute; left: 0; top: calc(var(--hero) - 78px); margin: 0; z-index: 2; }
.theme-lookbook .item.spread .gallery .thumbs a { background: #000; opacity: .8; }
.theme-lookbook .item.spread .item-buy { position: absolute; z-index: 2; top: 0; right: 0; width: min(380px, 34%); height: var(--hero); padding: 9vh 0 0; pointer-events: none; text-shadow: 0 1px 18px rgba(0, 0, 0, .7); }
.theme-lookbook .item.spread .item-buy .buy-sum, .theme-lookbook .item.spread .item-buy .ask-link { display: none; }
.theme-lookbook .item.spread .item-buy .buy { margin: 0; }
/* Мягкое затемнение под текстом: на разворотах со светлым фоном белый
   текст иначе теряется. */
.theme-lookbook .item.spread .item-buy::before { content: ""; position: absolute; z-index: -1; left: -90px; right: calc(50% - 50vw); top: calc(9vh - 80px); height: 330px; background: radial-gradient(ellipse at 45% 45%, rgba(0, 0, 0, .62), rgba(0, 0, 0, .35) 45%, transparent 72%); pointer-events: none; }
.theme-lookbook .item.spread .item-buy > * { pointer-events: auto; animation: lb-rise 1s cubic-bezier(.2, .6, .2, 1) both; }
.theme-lookbook .item.spread .item-buy > h1 { font-size: 40px; animation-delay: .35s; }
.theme-lookbook .item.spread .item-buy > .meta { animation-delay: .55s; color: rgba(255, 255, 255, .7); }
.theme-lookbook .item.spread .item-buy > .price { animation-delay: .8s; font-size: 28px; margin: 4px 0 14px; }
.theme-lookbook .item.spread .item-buy > form, .theme-lookbook .item.spread .item-buy > p { animation-delay: 1.05s; }
.theme-lookbook .item.spread .item-buy input { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .35); }
.theme-lookbook .item.spread .item-buy .primary { text-shadow: none; }
/* Подсказка «дальше — вниз»: тонкая линия у нижнего края разворота. */
.theme-lookbook .item.spread .gallery::after { content: ""; position: absolute; left: 50%; top: calc(var(--hero) - 64px); width: 1px; height: 48px; background: linear-gradient(transparent, var(--accent)); animation: lb-hint 2.2s ease-in-out 1.6s infinite both; }
.theme-lookbook .item.spread .item-info { border-top: 0; margin-top: 56px; }
.theme-lookbook .item.spread .item-info .descr:first-child { font-size: 22px; line-height: 1.6; text-align: center; max-width: 34em; margin: 0 auto 48px; }
@keyframes lb-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes lb-hint { 0% { opacity: 0; transform: translateY(-14px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
/* Появление при прокрутке: класс .rv ставит shop.js (без скрипта все видно сразу). */
.theme-lookbook .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .6, .2, 1); }
.theme-lookbook .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .theme-lookbook .item.spread .item-buy > *, .theme-lookbook .item.spread .slide:first-child img, .theme-lookbook .item.spread .gallery::after { animation: none; }
  .theme-lookbook .rv { opacity: 1; transform: none; transition: none; }
}
.theme-lookbook .item .gallery .thumbs a { border-radius: 0; border-color: #222; width: 72px; height: 50px; }
.theme-lookbook .item .gallery .thumbs a.on, .theme-lookbook .item .gallery .thumbs a:hover { border-color: var(--accent); }
.theme-lookbook .item h1 { font-size: 36px; line-height: 1.15; }
.theme-lookbook .item .meta { letter-spacing: .04em; }
.theme-lookbook .item .price { font-size: 26px; }
.theme-lookbook .buy-box { background: none; border: 0; padding: 0; }
.theme-lookbook .stepper, .theme-lookbook .seg { background: #141414; border-radius: 999px; }
.theme-lookbook .stepper button { color: var(--fg); }
.theme-lookbook .buy-sum b { color: var(--fg); font-weight: 400; }
.theme-lookbook .specs th { font-weight: 300; }
.theme-lookbook .shop-notice { background: #141414; color: var(--fg); border-radius: 0; border-left: 2px solid var(--accent); }
.theme-lookbook .pager a, .theme-lookbook .pager .cur { border-radius: 0; }
.theme-lookbook .pager .cur { background: none; color: var(--fg); border-bottom: 1px solid var(--accent); font-weight: 400; }
.theme-lookbook .shop-foot { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .theme-lookbook .cats, .theme-lookbook .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Узкий экран: разворот — на большую часть экрана, в кадре сторона с
     изделием; название и цена всплывают сразу под ним (поверх фото текст
     закрыл бы изделие). */
  .theme-lookbook .item.spread { --hero: max(380px, calc(100svh - 400px)); }
  .theme-lookbook .item.spread .slide:first-child img { object-position: 84% 50%; }
  .theme-lookbook .item.spread .item-buy { position: static; width: auto; height: auto; padding: 22px 0 0; text-shadow: none; }
  .theme-lookbook .item.spread .item-buy::before { display: none; }
  .theme-lookbook .item.spread .item-buy > h1 { font-size: 32px; }
    .theme-lookbook .item.spread .gallery .thumbs { top: 12px; left: 16px; }
  .theme-lookbook .item.spread .gallery::after { display: none; }
  .theme-lookbook .item.spread .item-info .descr:first-child { font-size: 18px; }
}
@media (max-width: 560px) {
  .theme-lookbook .cats { grid-template-columns: minmax(0, 1fr); }
  .theme-lookbook .goods { gap: 32px 16px; }
  .theme-lookbook .cats { gap: 16px; }
  .theme-lookbook .good .name { font-size: 16px; }
  .theme-lookbook .shop-hero h1, .theme-lookbook .cat-title { font-size: 28px; }
  .theme-lookbook .cat-hero { height: 46vh; }
}

/* --- Тема «Ателье» (shop_atelier.go; макет Kintsugi, USER 14.11.2026) ---
   Светлый серый фон, тонкий шрифт с разрядкой, прямые углы. Шапка —
   меню-бургер, логотип по центру, язык и корзина; главная — обложка во
   всю ширину, лента товаров, баннеры коллекций; каталог — галочки слева и
   крупные фото в две колонки со сдвигом; карточка — темный блок на
   размытом фото. Цвет акцента темы свой (темный), выбранный в настройках
   не используется. */
.shop.theme-atelier { --accent: #1d1d1d; --accent-hover: #000; --accent-fg: #fff; --accent-soft: #ececec; --soft: #555; --tile: #fff; font-weight: 300; letter-spacing: .02em; }
/* Темная тема посетителя (переключатель в шапке, меню и подвале; shopNightOf):
   те же страницы на черном фоне, плитки товаров остаются светлыми. */
.shop.theme-atelier.at-night { --bg: #0b0b0b; --fg: #f1f1f1; --muted: #8c8c8c; --line: #2e2e2e; --raised: #1a1a1a; --soft: #b9b9b9;
  --top: #0b0b0b; --top-fg: #f1f1f1; --top-muted: #8c8c8c; --top-line: #242424; --menu: #0b0b0b; --menu-fg: #f1f1f1;
  --card: #151515; --card-fg: #f1f1f1; --card-muted: #8c8c8c; --card-line: #2a2a2a; --foot: #111; --foot-fg: #c9c9c9;
  --input-bg: #151515; --input-line: #3a3a3a; --head: #f1f1f1; --head-fg: #0b0b0b;
  --accent: #f1f1f1; --accent-hover: #fff; --accent-fg: #0b0b0b; --accent-soft: #1f1f1f; color-scheme: dark; }
.theme-atelier h1, .theme-atelier h2, .theme-atelier h3 { font-weight: 300; letter-spacing: .01em; }
.theme-atelier b, .theme-atelier strong, .theme-atelier th { font-weight: 500; }
.theme-atelier a { color: var(--fg); }
.theme-atelier a:hover { text-decoration: none; opacity: .65; }
.theme-atelier input, .theme-atelier textarea, .theme-atelier select { border-radius: 0; color: var(--fg); }
.theme-atelier button, .theme-atelier .button { border-radius: 0; font-weight: 400; letter-spacing: .06em; background: transparent; border-color: var(--fg); color: var(--fg); }
.theme-atelier button.primary, .theme-atelier .button.primary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.theme-atelier button.primary:hover, .theme-atelier .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); filter: none; }
.theme-atelier .card, .theme-atelier .request { border-radius: 0; }
.theme-atelier .request-form .primary, .theme-atelier .order-form .primary, .theme-atelier .buy .primary, .theme-atelier .cart img, .theme-atelier .cart .pic { border-radius: 0; }
.theme-atelier .card button:not(.primary) { background: transparent; border-color: var(--fg); color: var(--fg); }
.theme-atelier .shop-notice { border-radius: 0; background: var(--card); border-left: 2px solid var(--fg); color: var(--fg); }
.theme-atelier .shop-error { border-radius: 0; }
.theme-atelier .pager a, .theme-atelier .pager .cur { border-radius: 0; }
.theme-atelier .pager .cur { background: none; color: var(--fg); box-shadow: inset 0 -1px 0 var(--fg); font-weight: 400; }
.theme-atelier .crumbs { text-transform: none; letter-spacing: .08em; font-size: 12px; }
.theme-atelier .crumbs .sep { color: var(--muted); font-size: 0; margin: 0 5px; }
.theme-atelier .crumbs .sep::before { content: "•"; font-size: 12px; }
.theme-atelier .ph { color: #cfcfcf; font-weight: 200; font-size: 64px; }
.theme-atelier.at-night .card a:not(.primary) { color: var(--fg); }
.theme-atelier main.shop-wrap { padding-top: 12px; padding-bottom: 60px; }
body.at-lock { overflow: hidden; }

/* Шапка */
.at-top { background: var(--top); color: var(--top-fg); }
.at-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 124px; padding: 0 48px; }
.theme-atelier .at-top a { color: inherit; }
.at-burger { justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; }
.at-burger svg { width: 28px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.at-logo { display: block; color: inherit; font-size: 22px; letter-spacing: .24em; text-transform: uppercase; text-align: center; }
.at-logo img { display: block; max-height: 64px; max-width: min(46vw, 280px); }
/* Логотип на прозрачном фоне — в цвет шапки: темный на светлой, белый на темной. */
.at-logo.mono img { filter: brightness(0); opacity: .88; }
.at-tools { justify-self: end; display: flex; align-items: center; gap: 30px; }
.at-lang { display: inline-flex; gap: 12px; font-size: 12px; letter-spacing: .14em; }
.theme-atelier .at-lang a { color: var(--muted); }
.theme-atelier .at-lang a.on { color: inherit; }
.at-bag { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; color: inherit; }
.at-bag svg { width: 18px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.at-bag .n { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--top-fg); color: var(--top); font-size: 10px; font-weight: 500; line-height: 16px; text-align: center; letter-spacing: 0; }
/* Переключатель светлой и темной темы: в шапке — значком, в меню и подвале — со словами. */
.at-mode { display: inline-flex; align-items: center; gap: 8px; }
.at-mode svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.at-mode svg path { fill: currentColor; stroke: none; }
.at-tools .at-mode { width: 32px; height: 44px; justify-content: center; margin-right: -10px; }
.at-tools .at-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-mlinks .at-mode { margin-top: 10px; }
/* Меню поверх страницы */
.at-menu { display: none; position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--fg); overflow-y: auto; overscroll-behavior: contain; }
.at-menu:target, .at-menu.open { display: block; }
.at-menu-in { padding: 34px 48px 60px; max-width: 760px; }
.at-x { display: grid; place-items: center; width: 44px; height: 44px; margin: 6px 0 26px -12px; font-size: 34px; font-weight: 200; line-height: 1; }
.at-msearch input { border: 0; border-bottom: 1px solid var(--fg); background: transparent; padding: 10px 0; font-size: 16px; letter-spacing: .06em; }
.at-msearch input:focus { outline: none; border-bottom-width: 2px; }
.at-mlinks { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.at-mlinks a { padding: 5px 0; letter-spacing: .08em; }
.at-mlinks a.big { font-size: 24px; letter-spacing: .03em; }
.at-mlinks.small { font-size: 14px; color: var(--muted); }
.at-mlinks.small a { color: var(--soft); }

/* Страницы во всю ширину */
.at-main { width: 100%; }
.at-note { margin: 16px 48px; }
.at-hero { display: block; background: var(--raised); aspect-ratio: 1076 / 636; max-height: 88vh; width: 100%; overflow: hidden; }
.at-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-sect { margin-top: 44px; }
/* Лента товаров */
.at-strip { position: relative; }
.at-track { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.at-track::-webkit-scrollbar { display: none; }
.at-track .at-card { flex: 0 0 24.2%; scroll-snap-align: start; }
.at-arr { position: absolute; top: 36%; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0 !important; background: rgba(255, 255, 255, .86) !important; color: #1d1d1d !important; font-size: 26px; font-weight: 200; line-height: 1; }
.at-arr.prev { left: 0; }
.at-arr.next { right: 0; }
.at-arr[hidden] { display: none; }
/* Плитка */
.at-card { display: block; color: inherit; }
.at-card:hover { opacity: 1 !important; }
.at-pic { position: relative; display: block; aspect-ratio: 26 / 29; background: var(--tile); overflow: hidden; }
.at-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.at-pic.cover img { object-fit: cover; }
/* Предметное фото на ровном светлом фоне — целиком, с полями цвета фона (shop.js красит рамку по data-bg). */
.at-pic[data-bg] img { inset: 8%; width: 84%; height: 84%; }
/* shop.js ставит fit-w / fit-h (что упирается в рамку — ширина или высота): тогда край фото известен и растворяется в полях. */
.at-pic[data-bg] img.fit-w { inset: 0; margin: auto; width: 84%; height: auto; }
.at-pic[data-bg] img.fit-h { inset: 0; margin: auto; width: auto; height: 84%; }
.at-pic[data-bg] img.fit-w, .at-pic[data-bg] img.fit-h, .at-shot[data-bg] img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.at-card:hover .at-pic img { transform: scale(1.03); }
.at-pic .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.at-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.at-name { font-size: 14px; letter-spacing: .08em; font-weight: 400; }
.at-code { font-size: 10px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.at-price { display: block; padding: 6px 18px 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.at-in { color: var(--muted); font-weight: 300; }
.at-explore { margin: 54px 0; text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.at-explore a { padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 400; }
/* Баннеры коллекций */
.at-banners { display: grid; grid-template-columns: 1fr 1fr; }
.at-banners.one { grid-template-columns: 1fr; }
.at-banner { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #2a2a2a; color: #fff !important; }
.at-banners.one .at-banner, .at-feature .at-banner { aspect-ratio: 1104 / 400; min-height: 320px; }
.at-banner:hover { opacity: 1 !important; }
.at-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.at-banner:hover img { transform: scale(1.02); }
/* Обложка и баннеры по теме сайта (atelierPic): на светлом фото подпись темная, предметное фото (на ровном
   светлом фоне) стоит целиком над подписью, с полями цвета своего фона (shop.js красит рамку по data-bg). */
.at-banner.light, .at-feature .at-banner.light { background: #f1f0ee; color: #1b1b1b !important; }
.at-banner.light .at-btext { background: linear-gradient(to top, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0)); }
.at-banner.plain img { inset: 6% 8% auto; width: 84%; height: 66%; object-fit: contain; }
.at-banner.plain .at-btext { background: none; }
.at-hero.plain img { object-fit: contain; }
.at-btext { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 120px 48px 44px; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.at-bname { font-size: 32px; line-height: 1.15; }
.at-bp { max-width: 30em; font-size: 13px; line-height: 1.6; }
.at-more { margin-top: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.at-text { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; text-align: center; scroll-margin-top: 20px; }
.at-text:last-child { padding-bottom: 72px; }
.at-text h2 { font-size: 26px; margin-bottom: 18px; }
.at-text p { margin: 0; color: var(--soft); line-height: 1.8; white-space: pre-line; }

/* Каталог */
.at-list { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 46px 48px 90px; align-items: start; }
.at-side > summary { display: none; }
.at-search input { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0; font-size: 14px; letter-spacing: .06em; max-width: 220px; }
.at-search input:focus { outline: none; border-bottom-color: var(--fg); }
.at-group { margin-top: 34px; }
.at-gname { margin-bottom: 14px; font-size: 14px; font-weight: 400; letter-spacing: .08em; }
.at-check { position: relative; display: block; padding: 5px 0 5px 28px; font-size: 14px; letter-spacing: .08em; color: var(--muted) !important; }
.at-check::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border: 1px solid #9a9a9a; background: transparent; }
.at-check.round::before { border-radius: 50%; }
.at-check.on { color: var(--fg) !important; }
.at-check.on::before { border-color: var(--fg); }
.at-check.on::after { content: ""; position: absolute; left: 5px; top: 9px; width: 4px; height: 8px; border: solid var(--fg); border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }
.at-check.round.on::after { left: 4px; top: 11px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--fg); transform: none; }
.at-check:hover { color: var(--fg) !important; opacity: 1 !important; }
.at-reset { display: inline-block; margin-top: 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.at-results h1 { font-size: 30px; }
.at-lead { max-width: 46em; margin: 12px 0 0; color: var(--soft); line-height: 1.7; white-space: pre-line; }
.at-found { margin: 10px 0 0; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.at-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 26px; margin-top: 30px; align-items: start; }
.at-grid .at-card:nth-child(odd) { margin-top: 130px; }
.at-grid .at-card:nth-child(odd) .at-pic { aspect-ratio: 9 / 10; }
.at-grid .at-card:nth-child(even) .at-pic { aspect-ratio: 13 / 10; }
.at-grid .at-cap { padding: 16px 0 0; }
.at-grid .at-name { font-size: 24px; font-weight: 300; letter-spacing: .01em; line-height: 1.2; }
.at-grid .at-code { font-size: 12px; }
.at-grid .at-price { padding: 8px 0 0; font-size: 14px; font-weight: 400; }
.at-results .pager { margin-top: 60px; }
/* Золотые трещины поверх каталога (USER 14.11.2026; золотой шов из макета Kintsugi): галочка в настройках витрины (shop.Settings.Cracks, класс at-cracks).
   Как в макете, трещина идет от края до края страницы, поверх фото. shop-crack.webp — трещина из Figma и ее
   зеркальная копия под ней, поэтому рисунок повторяется вниз без шва. Клики проходят сквозь нее; фильтры и
   подписи плиток — над ней. */
.theme-atelier.at-cracks .at-list { position: relative; }
.theme-atelier.at-cracks .at-list::after { content: ""; position: absolute; inset: 150px 0 0; z-index: 2; pointer-events: none;
  background: url(shop-crack.webp?v=2) top center / 100% auto repeat-y; }
/* ?v= — версия рисунка: с ней браузер хранит файл год (securityHeaders); сменился рисунок — сменить номер.
   Большой или плотный (Retina) экран — рисунок вдвое крупнее (USER 15.11.2026: «трещина какая-то пиксельная»). */
@media (min-width: 900px) and (min-resolution: 1.5dppx), (min-width: 1900px) {
  .theme-atelier.at-cracks .at-list::after { background-image: url(shop-crack-2x.webp?v=2); }
}
/* Телефон — рисунок поменьше (те же условия — у preload в shop/layout.html). */
@media (max-width: 700px) {
  .theme-atelier.at-cracks .at-list::after { background-image: url(shop-crack-s.webp?v=1); }
}
.theme-atelier.at-cracks .at-side, .theme-atelier.at-cracks .at-grid .at-cap, .theme-atelier.at-cracks .at-grid .at-price { position: relative; z-index: 3; }

/* Карточка товара (body.at-dark). В темной теме — темная зона с размытым
   фото; в светлой — светлая, как остальной сайт (USER 14.11.2026: «при
   переключении темы в товаре не меняет фон, а только фотки»). Цвета зоны —
   переменные --z-*, тема меняет только их. */
.at-night.at-dark .at-top { background: #000; color: #fff; }
.at-night .at-logo.mono img { filter: brightness(0) invert(1); opacity: 1; }
.at-night.at-dark .at-top .at-lang a { color: #8a8a8a; }
.at-night.at-dark .at-top .at-lang a.on { color: #fff; }
.at-night.at-dark .at-bag .n { background: #fff; color: #000; }
.at-zone { --z-bg: var(--bg); --z-fg: var(--fg); --z-soft: #3a3a3a; --z-muted: #767676; --z-line: rgba(0, 0, 0, .32); --z-tint: rgba(0, 0, 0, .05);
  position: relative; overflow: hidden; background: var(--z-bg); color: var(--z-fg); }
.at-night .at-zone { --z-bg: #000; --z-fg: #fff; --z-soft: #d3d3d3; --z-muted: #b0b0b0; --z-line: rgba(255, 255, 255, .55); --z-tint: rgba(255, 255, 255, .1); }
.at-zone a { color: var(--z-fg); }
.theme-atelier:not(.at-night) .at-blur { display: none; }
.at-blur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(46px) brightness(.3) saturate(.9); pointer-events: none; }
.at-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 48.5%); align-items: start; }
.at-buy { padding: 0 48px 70px; max-width: 520px; }
.at-buy .crumbs { padding: 30px 0 0; color: var(--z-muted); }
.at-buy .crumbs a { color: var(--z-muted); }
.at-buy .crumbs span:last-child { color: var(--z-fg); font-weight: 400; }
.at-buy h1 { margin-top: 84px; font-size: 34px; line-height: 1.15; }
.at-art { margin-top: 6px; font-size: 12px; letter-spacing: .12em; color: var(--z-muted); }
.at-iprice { margin-top: 22px; font-size: 34px; line-height: 1.2; }
.at-iprice small { font-size: 16px; }
.at-iprice .ask { font-size: 22px; }
.at-specs { margin: 46px 0 0; }
.at-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0 6px; border-bottom: 1px solid var(--z-line); font-size: 13px; letter-spacing: .06em; }
.at-specs dt { color: var(--z-muted); }
.at-specs dd { margin: 0; text-align: right; color: var(--z-soft); }
.at-descr { margin-top: 28px; font-size: 13.5px; line-height: 1.75; color: var(--z-soft); white-space: pre-line; }
.at-order { margin-top: 44px; }
.at-opt { margin-bottom: 14px; color: var(--z-muted); }
.at-opt select { margin-top: 4px; background: transparent; color: var(--z-fg); border-color: var(--z-line); }
.at-opt select option { color: #000; }
.at-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.theme-atelier .at-primary { min-width: 260px; height: 48px; background: var(--z-fg); border: 1px solid var(--z-fg); color: var(--z-bg); font-size: 19px; font-weight: 400; letter-spacing: .08em; }
.theme-atelier .at-primary:hover { background: transparent; color: var(--z-fg); filter: none; }
.theme-atelier .at-ghost { height: 48px; padding: 0 6px; background: transparent; border: 0; color: var(--z-fg); font-size: 19px; font-weight: 300; letter-spacing: .04em; display: inline-flex; align-items: center; }
.theme-atelier .at-ghost:hover { opacity: .7; filter: none; }
.at-ask { margin: 22px 0 0; font-size: 12px; letter-spacing: .1em; color: var(--z-muted); }
.at-ask a { color: var(--z-soft); border-bottom: 1px solid var(--z-line); }
.at-zone .shop-notice { margin: 20px 0 0; background: var(--z-tint); border-left-color: var(--z-fg); color: var(--z-fg); }
.at-zone .shop-notice + h1, .at-zone .shop-error + h1 { margin-top: 40px; }
.at-photos { display: flex; flex-direction: column; background: #fff; }
.at-shot { display: block; }
.at-shot img { display: block; width: 100%; height: auto; }
.at-photos .ph { display: grid; place-items: center; aspect-ratio: 1 / 1; }
/* Предметное фото — с полями цвета своего фона (shop.js, data-bg). */
.at-shot[data-bg] { box-sizing: border-box; padding: 8%; background: #fff; }
/* Фото карточки по теме (atelierShotsOf): в темной теме светлые скрыты, в светлой — темные; первым — фото с плитки. */
.at-night .at-photos.no-light .at-shot[data-look="light"], .theme-atelier:not(.at-night) .at-photos.no-dark .at-shot[data-look="dark"] { display: none; }
.at-night .at-shot[data-first~="night"], .theme-atelier:not(.at-night) .at-shot[data-first~="day"] { order: -1; }
.at-series { position: relative; padding: 10px 0 4px; }
.at-series h2 { padding: 0 48px 14px; font-size: 24px; }
.at-series .at-explore { margin: 46px 0 50px; }
.at-feature .at-banner { color: #fff !important; }

/* Подвал */
.at-foot { background: var(--foot); color: var(--foot-fg); font-size: 13px; letter-spacing: .03em; scroll-margin-top: 20px; }
.at-foot a { color: var(--foot-fg); }
.at-foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; gap: 30px 40px; padding: 40px 48px 34px; }
.at-foot-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.at-ft { margin-bottom: 8px; font-size: 14px; font-weight: 400; color: var(--fg); }
.at-fcols { column-count: 2; column-gap: 28px; width: 100%; }
.at-fcols a { display: block; margin-bottom: 7px; break-inside: avoid; }
.at-org { margin-top: 6px; }
.at-sub-row { display: flex; align-items: flex-end; border-bottom: 1px solid #8a8a8a; }
.at-sub-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font-size: 13px; }
.at-sub-row input:focus { outline: none; }
.at-sub-row:focus-within { border-bottom-color: var(--fg); }
.theme-atelier .at-sub-row button { border: 0; padding: 8px 0 8px 14px; font-size: 12px; letter-spacing: .08em; }
.at-sub .fine { margin: 12px 0 0; font-size: 11px; line-height: 1.5; }
.at-foot-low { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 18px 48px 30px; font-size: 12px; }
.at-foot-low .at-lang { letter-spacing: .03em; font-size: 12px; }
.at-foot-low .powered { margin-left: auto; padding: 0; border: 0; color: var(--muted); }
.at-foot-low .powered a { color: var(--muted); border-bottom: 1px solid currentColor; }

@media (max-width: 1100px) {
  .at-list { grid-template-columns: 230px minmax(0, 1fr); }
  .at-grid .at-card:nth-child(odd) { margin-top: 80px; }
  .at-track .at-card { flex-basis: 31%; }
  .at-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .at-bar { min-height: 76px; padding: 0 18px; }
  .at-logo img { max-height: 44px; }
  .at-tools { gap: 12px; }
  .at-tools .at-mode { display: none; }
  .at-lang { gap: 8px; font-size: 11px; }
  .at-menu-in { padding: 14px 18px 50px; }
  .at-note { margin: 12px 18px; }
  .at-hero { aspect-ratio: 4 / 5; max-height: 76vh; }
  .at-sect { margin-top: 26px; }
  .at-track .at-card { flex-basis: 62%; }
  .at-cap { padding: 12px 14px 0; }
  .at-price { padding: 5px 14px 0; }
  .at-arr { display: none; }
  .at-explore { margin: 38px 0; }
  .at-banners { grid-template-columns: 1fr; }
  .at-banner { aspect-ratio: 4 / 5; }
  .at-banners.one .at-banner, .at-feature .at-banner { aspect-ratio: 4 / 5; min-height: 0; }
  .at-btext { padding: 100px 20px 28px; }
  .at-bname { font-size: 26px; }
  .at-text { padding-top: 46px; }
  .at-list { display: block; padding: 16px 18px 60px; }
  .at-side { margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .at-side > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; cursor: pointer; list-style: none; }
  .at-side > summary::-webkit-details-marker { display: none; }
  .at-side > summary::after { content: "+"; font-size: 20px; font-weight: 200; }
  .at-side[open] > summary::after { content: "–"; }
  .at-side[open] { padding-bottom: 22px; }
  .at-search input { max-width: none; }
  .at-group { margin-top: 22px; }
  .at-check { padding-top: 8px; padding-bottom: 8px; }
  .at-check::before { top: 10px; }
  .at-check.on::after { top: 12px; }
  .at-check.round.on::after { top: 14px; }
  .at-results h1 { font-size: 24px; }
  .at-grid { gap: 30px 12px; margin-top: 20px; }
  .at-grid .at-card:nth-child(odd) { margin-top: 44px; }
  .at-grid .at-cap { display: block; padding-top: 10px; }
  .at-grid .at-name { display: block; font-size: 15px; letter-spacing: .03em; font-weight: 400; }
  .at-grid .at-code { display: block; margin-top: 3px; font-size: 10px; }
  .at-grid .at-price { font-size: 12.5px; padding-top: 5px; }
  .theme-atelier.at-cracks .at-list::after { inset: 110px 0 0; }
  .at-item { display: flex; flex-direction: column; }
  .at-photos { order: -1; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; background: var(--z-bg); }
  .at-photos::-webkit-scrollbar { display: none; }
  .at-shot { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; }
  .at-shot:not(:only-child) { flex-basis: 88%; }
  .at-shot img { width: 100%; height: 100%; object-fit: cover; }
  .at-shot[data-bg] img { object-fit: contain; -webkit-mask-image: none; mask-image: none; }
  .at-buy { max-width: none; width: 100%; padding: 0 18px 46px; }
  .at-buy .crumbs { padding-top: 18px; }
  .at-buy h1 { margin-top: 26px; font-size: 26px; }
  .at-iprice { margin-top: 14px; font-size: 26px; }
  .at-specs { margin-top: 24px; }
  .at-order { margin-top: 30px; }
  .theme-atelier .at-primary { flex: 1 1 100%; min-width: 0; }
  .theme-atelier .at-ghost { flex: 1 1 100%; justify-content: center; border: 1px solid var(--z-line); }
  .at-series h2 { padding: 0 18px 12px; font-size: 20px; }
  .at-foot-grid { grid-template-columns: 1fr; gap: 26px; padding: 30px 18px 22px; }
  .at-foot-low { padding: 14px 18px 26px; }
  .at-foot-low .powered { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .at-pic img, .at-banner img { transition: none; }
}
@media print { .at-top, .at-foot { display: none !important; } }
