/* Публичная витрина. Общая вёрстка и вологодский стиль (~/design/vitrina/index.html): .vologda - Oswald + Golos Text,
   красный, лента вышивки, птицы (ленты и птицы - в art.css, он генерируется).
   Стиль «УП.Среда» (.upsreda) живёт ЦЕЛИКОМ в theme-upsreda.css: токены и все его правила. Когда владелец выберет новый
   вид, заменяется один этот файл. Здесь для не-вологодских тем остаётся только нейтральная основа (.plain: страницы без
   витрины, платформа и неизвестный адрес).
   Атрибутов style="" в разметке нет (CSP): всё оформление в файлах css. */

/* ---------- Шрифты (локально, кириллица + латиница, рубль отдельным кусочком) ---------- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/oswald-ruble.woff2) format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/golos-ruble.woff2) format('woff2'); unicode-range: U+20BD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-ruble.woff2) format('woff2'); unicode-range: U+20BD; }

/* ---------- Стили (значения из эталона; --ink3 чуть темнее ради контраста 4.5:1) ---------- */
.vologda { --page:#F5F4F2; --card:#FFFFFF; --ink:#1F1C1A; --ink2:#5C5652; --ink3:#6B645F; --line:#E7E3DF;
  --brand:#E3000F; --action:#D2101E; --soft:#FBE9E7; --dark:#171514;
  --font:'Golos Text',system-ui,sans-serif; --head:'Oswald','Arial Narrow',sans-serif; --radius:4px; --cut:10px; }
/* Нейтральная основа без цвета бренда: платформа и страница «нет такой витрины». Тёмные кнопки, тонкие рамки. */
.plain { --page:#FFFFFF; --card:#FFFFFF; --ink:#111111; --ink2:#55595C; --ink3:#5F6468; --line:#E4E6E8;
  --brand:#111111; --action:#111111; --soft:#F3F4F5; --dark:#111111;
  --font:'Inter',system-ui,sans-serif; --head:'Inter',system-ui,sans-serif; --radius:8px; --cut:0px; }

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--page); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.hero :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--dark); color: #fff;
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-size: 14px; }
.skip:focus { top: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ic { width: 18px; height: 18px; flex: none; }
.ring { display: block; flex: none; width: 60px; height: 60px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px;
  padding: 8px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600; line-height: 1.15;
  text-align: center; text-decoration: none; border: 1.5px solid var(--action); background: var(--card);
  color: var(--action); width: 100%; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--soft); }
.btn.main { background: var(--action); color: #fff; }
.btn.main:hover { filter: brightness(.93); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink3); background: var(--card); }
.btn.sm { min-height: 44px; }
.btn[disabled], .btn.busy { opacity: .6; cursor: default; pointer-events: none; }
.vologda .btn { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: 14px; }
.vologda .btn.main { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.vologda .btn.main:focus-visible { clip-path: none; }

/* ---------- Типографика ---------- */
.h-cap { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--ink3); }
.vologda .h-cap { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: 12px; }
.price { font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--ink); white-space: nowrap; }
.vologda .price { font-weight: 500; letter-spacing: .02em; }
.price.ask { font-family: var(--font); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--ink2); white-space: normal; line-height: 1.25; }
.pricebox { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pnote { font-size: 12px; color: var(--ink2); font-weight: 400; margin-top: 2px; }
.sec-title { font-family: var(--head); font-weight: 700; font-size: 21px; margin: 26px 0 12px; scroll-margin-top: 70px; }
.vologda .sec-title { font-weight: 600; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; }
.note { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.callout { background: var(--soft); padding: 12px 14px; border-radius: var(--radius); color: var(--ink); font-size: 13px; line-height: 1.5; }
.prose { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.prose p + p { margin-top: 10px; }

/* ---------- Шапка ---------- */
.hero { position: relative; color: #fff; background: var(--brand); overflow: hidden; }
.hero .ribbon { height: 36px; background-repeat: repeat-x; background-position: left bottom; }
.hero .top { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.hero .brandmark { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.hero .mname { font-family: var(--head); font-weight: 600; font-size: 16px; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.vologda .hero .mname { font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
/* логотип магазина: на месте кольца УП.Среды (bar) или крупной эмблемой над заголовком (emblem); картинка мастера как есть */
.mlogo { display: block; flex: none; width: 48px; height: 48px; }
.mlogo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px #00000038); }
.mlogo.sm { width: 36px; height: 36px; }
.mlogo.sm img { filter: drop-shadow(0 1px 4px #0000002e); }
.hero .brandmark { gap: 14px; }
.emblem { display: flex; margin-bottom: 16px; }
.emblem .mlogo { width: 84px; height: 84px; }
.emblem .mlogo img { filter: drop-shadow(0 4px 14px #00000047); }
/* без логотипа название набирается крупнее, первое слово мелко над основным; никакой заглушки */
.hero .mname.big { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.hero .mname.big small { font-size: 12px; font-weight: 500; opacity: .9; }
.hero .mname.big b { font-size: 20px; font-weight: 700; }
.vologda .hero .mname.big small { font-size: 11px; letter-spacing: .2em; }
.vologda .hero .mname.big b { font-size: 21px; font-weight: 600; letter-spacing: .03em; }
.nav { display: none; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; opacity: .95; padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-grid { display: block; padding: 10px 0 24px; }
.hero .h-cap { color: #ffffffd9; margin-bottom: 10px; }
.hero h1 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-size: 34px; overflow-wrap: anywhere; }
.vologda .hero h1 { font-weight: 600; line-height: 1.04; letter-spacing: .01em; text-transform: uppercase; }
.hero p.lead { opacity: .94; line-height: 1.5; margin-top: 14px; font-size: 15px; max-width: 540px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero .btn { min-height: 46px; background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn:hover { background: #ffffffee; }
.hero .btn.wg { background: transparent; color: #fff; border-color: #ffffffaa; }
.hero .btn.wg:hover { background: #ffffff1f; }
.hero-art { margin-top: 22px; }
.hero-cover { border-radius: var(--radius); overflow: hidden; background: #ffffff26; aspect-ratio: 16 / 10; box-shadow: 0 8px 28px #0000002e; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-tiles { display: none; }
.hero-tiles .tile { background: #fff; border-radius: var(--radius); overflow: hidden; }
.hero.compact .hero-grid { padding-bottom: 20px; }

/* ---------- Чипы категорий ---------- */
.chipbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px 0 14px; padding: 2px 20px; margin-left: -20px; margin-right: -20px; scroll-padding: 20px; }
.chipbar::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; border-radius: var(--radius); text-decoration: none; white-space: nowrap; transition: border-color .15s; }
.chip:hover { border-color: var(--ink3); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.vologda .chip { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.chipbar.sticky { position: sticky; top: 0; z-index: 8; background: var(--page); margin-top: 0; padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }

/* ---------- Фото и заглушки ---------- */
.photo { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .bird { width: 68%; height: auto; max-height: 82%; }
.photo .bird.flip { transform: scaleX(-1); }
.photo .strip { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background-repeat: repeat-x; background-position: left bottom; background-size: auto 12px; opacity: .55; }
.photo .ph-ic { width: 46px; height: 46px; opacity: .9; stroke-width: 1.6; }
.ph-card { height: 150px; }
.ph-row { width: 72px; height: 72px; flex: none; border-radius: var(--radius); }
.ph-row .bird { width: 80%; }
.ph-row .strip { height: 6px; background-size: auto 6px; }
.ph-row .ph-ic { width: 28px; height: 28px; }
.ph-big { height: 330px; }
.ph-big .bird { width: 60%; }
.ph-big .ph-ic { width: 64px; height: 64px; }
.ph-thumb { width: 64px; height: 58px; }
.ph-thumb .bird { width: 78%; }
.ph-thumb .strip { height: 6px; background-size: auto 6px; }
.ph-thumb .ph-ic { width: 24px; height: 24px; }
.ph-tile { height: 210px; }
.ph-tile .bird { width: 68%; }
.ph-tile .ph-ic { width: 64px; height: 64px; }
.ph-about { height: 180px; }
.ph-about .bird { width: 60%; }
.ph-about .ph-ic { width: 64px; height: 64px; }

/* тона заглушки фото: вологодский - тёплые, с птицей и лентой; остальные - ровная светлая плашка со значком */
.photo[class*="tone-"] { background: var(--soft); color: var(--ink3); }
.vologda .tone-0 { background: #F4EDD8; color: #C9AE63; } .vologda .tone-1 { background: #F9E7E0; color: #D99B8A; }
.vologda .tone-2 { background: #EFE6DA; color: #BFA583; } .vologda .tone-3 { background: #FBE3CC; color: #DDA36A; }
.vologda .tone-4 { background: #F7E6B5; color: #D1AB3D; } .vologda .tone-5 { background: #ECEAE7; color: #A8A19A; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card .body { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.card .name { font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12.5px; color: var(--ink2); line-height: 1.35; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { display: flex; align-items: center; gap: 8px; padding: 4px 12px 14px; min-height: 52px; }
.card-link:hover .name { color: var(--action); }
.tag { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 600; padding: 4px 8px; background: var(--card); color: var(--ink); border-radius: var(--radius); z-index: 2; line-height: 1.2; max-width: calc(100% - 20px); }
.vologda .tag { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.add { display: none; margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--action); background: var(--card); color: var(--action); align-items: center; justify-content: center; padding: 0; transition: background-color .15s, color .15s; }
.js .add { display: flex; }
.add:hover { background: var(--soft); }
.add.on { background: var(--action); color: #fff; }
.add .ic.done { display: none; } .add.on .ic.done { display: block; } .add.on .ic.plus { display: none; }

/* ---------- О мастере / контакты ---------- */
.about { flex-direction: column; margin-top: 4px; }
.about .a-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.about .a-name { font-weight: 600; font-size: 18px; }
.vologda .about .a-name { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; font-size: 20px; font-weight: 600; }
.about .meta { display: flex; align-items: flex-start; gap: 6px; }
.about .meta .ic { width: 15px; height: 15px; margin-top: 2px; }
.about .vol-line { border-left: 3px solid var(--brand); padding-left: 10px; color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.about .contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.about .contact-row .btn { width: auto; flex: 1 1 140px; }
.about .a-photo { flex: none; }

/* ---------- Меню ---------- */
.mlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.mtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mtext .name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.mtext .sub { font-size: 12.5px; color: var(--ink2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrow-link:hover .name { color: var(--action); }
.mside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; max-width: 104px; text-align: right; }
.mside .pricebox { align-items: flex-end; }
.mside .add { margin-left: 0; width: 34px; height: 34px; }
.mrow .tag { position: static; display: inline-block; align-self: flex-start; padding: 2px 6px; font-size: 10.5px; margin-bottom: 2px; }

/* ---------- Услуги ---------- */
.svc-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.svc { padding: 18px; gap: 10px; }
.svc .s-top { display: flex; align-items: flex-start; gap: 12px; }
.svc .photo { width: 84px; height: 84px; flex: none; border-radius: var(--radius); }
.svc .s-name { font-weight: 600; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.vologda .svc .s-name { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; font-size: 19px; }
.svc .tag { position: static; display: inline-block; margin-bottom: 6px; }
.svc .s-desc { font-size: 14px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.svc .s-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.svc .s-actions { display: flex; flex-direction: column; gap: 8px; }
.svc .s-actions .btn { min-height: 46px; }
.svc-more { font-size: 13px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Пустая витрина ---------- */
.empty { text-align: center; align-items: center; padding: 34px 20px 30px; gap: 12px; margin-top: 22px; }
.empty .e-art { width: 160px; color: var(--brand); margin-bottom: 4px; }
.empty .e-art svg { width: 100%; height: auto; }
.empty .e-ic { width: 72px; height: 72px; border-radius: var(--radius); background: var(--soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.empty .e-ic .ic { width: 34px; height: 34px; }
.empty h2 { font-family: var(--head); font-weight: 700; font-size: 22px; }
.vologda .empty h2 { font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.empty p { color: var(--ink2); font-size: 15px; line-height: 1.5; max-width: 420px; }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 34px; padding: 22px 0 96px; color: var(--ink2); font-size: 13px; }
.foot .f-main { display: flex; align-items: center; gap: 14px; }
.foot .f-text { line-height: 1.5; min-width: 0; }
.foot .f-text b { color: var(--ink); }
.foot .f-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.foot .f-links a { color: var(--ink2); }
.foot .legal { margin-top: 10px; line-height: 1.5; max-width: 760px; }
.foot .ring { color: var(--brand); }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; }

/* ---------- Панель корзины ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--dark); color: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.cartbar .cb-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.cartbar .cb-info { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.cartbar b { white-space: nowrap; }
.cartbar .cb-sum { opacity: .8; white-space: nowrap; }
.cartbar .btn { width: auto; min-height: 42px; background: #fff; color: var(--dark); border-color: #fff; margin-left: auto; white-space: nowrap; padding: 0 16px; }
.cartbar .btn:hover { background: #ffffffee; }
.cartbar :focus-visible { outline-color: #fff; }

/* ---------- Верхняя полоса внутренних страниц ---------- */
.bar { background: var(--card); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 6px; height: 56px; }
.bar .back { width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); border-radius: var(--radius); }
.bar .back .ic { width: 22px; height: 22px; }
.bar .b-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-decoration: none; }

/* ---------- Страница товара ---------- */
.ipage { display: block; padding-bottom: 8px; }
.gal { margin: 0 -20px; }
.gal-main { background: var(--line); }
.gal-main .photo { height: 330px; }
.thumbs { display: flex; gap: 8px; padding: 10px 20px 0; overflow-x: auto; scrollbar-width: none; }
.thumb { flex: none; width: 64px; height: 58px; padding: 0; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); overflow: hidden; display: block; }
.thumb.on { border: 2px solid var(--ink); }
.thumb .photo { width: 100%; height: 100%; }
.i-info { padding-top: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.i-info h1 { font-family: var(--head); font-weight: 600; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.vologda .i-info h1 { text-transform: uppercase; letter-spacing: .01em; }
.i-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.i-price .price { font-size: 28px; }
.i-price .price.ask { font-size: 18px; font-weight: 600; color: var(--ink); }
.i-price .pnote { font-size: 14px; margin: 0; }
.i-sub { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.i-info .tag { position: static; align-self: flex-start; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.related { margin-top: 12px; }

/* ---------- Формы (корзина, оплата) ---------- */
.narrow { max-width: 640px; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.line { flex-direction: row; align-items: center; gap: 12px; padding: 10px; }
.line .l-text { flex: 1; min-width: 0; }
.line .l-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; color: inherit; display: block; }
.line .l-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.line .price { font-size: 16px; }
.line .price.ask { font-size: 12.5px; text-align: right; max-width: 90px; }
.qty { display: flex; align-items: center; }
.qty button { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 0; }
.qty button:hover { border-color: var(--ink3); }
.qty button .ic { width: 16px; height: 16px; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; gap: 12px; }
.total .price { font-size: 24px; }
.total .t-note { font-size: 12.5px; color: var(--ink2); text-align: right; }
.field { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 16px 14px 10px; transition: border-color .15s, box-shadow .15s; }
.field label { position: absolute; left: 12px; top: -8px; background: var(--card); padding: 0 5px; font-size: 11px; color: var(--ink3); line-height: 1.3; }
.vologda .field label { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea { display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 0; font-size: 16px; line-height: 1.4; color: var(--ink); }
.field textarea { resize: vertical; min-height: 44px; }
.field ::placeholder { color: var(--ink3); opacity: .8; }
.field:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--soft); }
.field.bad { border-color: #C62828; }
.field.bad label { color: #C62828; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); line-height: 1.45; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check { width: 20px; height: 20px; border: 1.5px solid var(--ink3); border-radius: 4px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--card); color: transparent; }
.check .ic { width: 13px; height: 13px; stroke-width: 3; }
.check-row input:checked + .check { background: var(--action); border-color: var(--action); color: #fff; }
.check-row input:focus-visible + .check { outline: 2px solid var(--action); outline-offset: 2px; }
.check-row.bad .check { border-color: #C62828; }
.check-row a { color: var(--ink); }
.form-error { color: #B71C1C; background: #FDECEA; border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; line-height: 1.4; }
.form-note { text-align: center; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; font-family: var(--head); }
.step .s-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step .s-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.pay-card { gap: 14px; padding: 16px; }

/* ---------- Спасибо и ошибки ---------- */
.center { max-width: 560px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center; padding: 40px 20px; }
.center .c-art { margin: 0 auto; color: var(--brand); }
.center .c-art svg { width: 180px; height: auto; }
.center .c-ic { width: 84px; height: 84px; border-radius: var(--radius); background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--brand); margin: 0 auto; }
.center .c-ic .ic { width: 40px; height: 40px; }
.center h1 { font-family: var(--head); font-weight: 600; font-size: 32px; line-height: 1.15; }
.vologda .center h1 { text-transform: uppercase; }
.center .c-text { font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
.center .card { text-align: left; padding: 16px; gap: 8px; }
.center .btn { max-width: 320px; margin: 0 auto; }
.center .c-status { font-family: var(--head); font-size: 14px; letter-spacing: .12em; color: var(--ink3); }
.num { font-family: var(--head); font-weight: 600; font-size: 24px; }
.o-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.o-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.35; }
.o-lines .o-sum { white-space: nowrap; color: var(--ink2); }
.o-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.center .rib { height: 30px; margin-top: 10px; background-repeat: repeat-x; background-position: center; }

/* ---------- Политика ---------- */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 8px; }
.doc h1 { font-family: var(--head); font-weight: 600; font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.vologda .doc h1 { text-transform: uppercase; }
.doc h2 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--ink); }
.doc p + p { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li + li { margin-top: 4px; }

/* ---------- Планшет ---------- */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ph-card { height: 210px; }
  .ph-card .ph-ic { width: 60px; height: 60px; }
  .ph-big { height: 420px; }
  .hero h1 { font-size: 48px; }
  .hero p.lead { font-size: 16px; }
  .hero-cta { flex-direction: row; max-width: 520px; }
  .hero-cta .btn { flex: 1 1 auto; width: auto; }
  .hero-cover { aspect-ratio: 16 / 8; }
  .about { flex-direction: row; }
  .about .a-photo { flex: 0 0 40%; }
  .about .contact-row .btn { max-width: 260px; }
  .about .ph-about { height: 100%; min-height: 260px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { margin: 0; }
  .gal-main .photo { border-radius: var(--radius); }
  .thumbs { padding-left: 0; padding-right: 0; }
  .i-info h1 { font-size: 34px; }
  .chipbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; }
  .center { padding: 60px 20px; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tpl-master .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl-master .ph-card { height: 260px; }
  .nav { display: flex; gap: 22px; }
  .mlogo { width: 56px; height: 56px; }
  .emblem .mlogo { width: 116px; height: 116px; }
  .mlogo.sm { width: 36px; height: 36px; }
  .hero .mname { font-size: 16px; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: end; padding: 24px 0 40px; }
  .hero h1 { font-size: 60px; }
  .tpl-master .hero h1 { font-size: 68px; }
  .hero-art { margin-top: 0; }
  .hero-cover { aspect-ratio: 4 / 3; }
  .hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero.compact .hero-grid { grid-template-columns: 1fr; padding: 18px 0 36px; }
  .hero.compact h1 { font-size: 48px; }
  .sec-title { margin-top: 34px; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mlist { background: none; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
  .mrow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .mrow:first-child { border-top: 1px solid var(--line); }
  .ipage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 28px; align-items: start; }
  .gal-main .photo { height: 520px; }
  .i-info { padding-top: 0; }
  .i-info h1 { font-size: 38px; }
  .actions { max-width: 460px; }
  .foot { padding-bottom: 90px; }
  .foot .f-row { display: flex; align-items: center; gap: 14px; }
  .foot .f-links { margin: 0 0 0 auto; }
  .cartbar .cb-in { padding: 0 20px; }
}

.grow { flex: 1; }
.s-title-box { min-width: 0; flex: 1; }
.order-form, .narrow-lines { display: flex; flex-direction: column; gap: 14px; }
.order-form .total { padding-top: 0; }
.order-form .t-note, #cart-total-note { font-size: 12.5px; color: var(--ink2); margin-top: -6px; }
.check-row { position: relative; }
.c-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--ink2); font-size: 13px; line-height: 1.4; text-align: left; }
.mrow .tag, .svc .tag, .i-info .tag { background: var(--soft); color: var(--brand); padding: 3px 8px; }
.vologda .mrow .tag, .vologda .svc .tag, .vologda .i-info .tag { color: var(--brand); }
.ph-about img { position: absolute; inset: 0; }
.grid.one { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
@media (min-width: 700px) { .grid.one { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) { .grid.one, .tpl-master .grid.one { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Платформа: vitrina.rvbit.ru без имени ---------- */
.plat .c-art svg.logo-mark { width: 64px; height: 64px; }
.plat h1 { font-size: 30px; }
.plat .c-text b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.plat .c-hint { font-size: 13px; color: var(--ink3); line-height: 1.5; }
