/* Vitrina blocks.css — the look of every block, shared by public pages and the editor.
 *
 * - Everything is scoped under .vt-page and prefixed vt-.
 * - Theme tokens arrive as --t-* custom properties on .vt-page; sections re-map the working
 *   --c-* variables (color schemes), so nested nodes recolor themselves automatically.
 * - Responsive rules use a *container* query on .vt-page, not the viewport: the editor's
 *   phone/desktop preview is just a narrower/wider .vt-page. Old browsers without container
 *   queries get the mobile layout.
 * - Class names are generated from app/blocks/stylemap.json + tokens.py.
 */

.vt-page {
  --t-bg: #ffffff;
  --t-surface: #f5f4f2;
  --t-text: #1c1a17;
  --t-muted: #6f6a64;
  --t-primary: #d9482b;
  --t-on-primary: #ffffff;
  --t-accent: #f0a23b;
  --t-border: #e6e2dc;
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --btn-radius: 12px;
  --vt-deco: 12px; /* offset of decorative plates/frames behind photos */

  --c-bg: var(--t-bg);
  --c-surface: var(--t-surface);
  --c-text: var(--t-text);
  --c-muted: var(--t-muted);
  --c-ink: var(--t-primary-ink, var(--t-primary)); /* цвет темы для текста: контраст ≥ 4.5 к фону */
  --c-primary: var(--t-primary);
  --c-on-primary: var(--t-on-primary);
  --c-accent: var(--t-accent);
  --c-border: var(--t-border);

  container: vtpage / inline-size;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.vt-page *,
.vt-page *::before,
.vt-page *::after {
  box-sizing: border-box;
}
.vt-page :where(h1, h2, h3, h4, p, figure, ul, ol, hr) {
  margin: 0;
}
.vt-page :where(a) {
  color: inherit;
}
.vt-page :where(:focus-visible) {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ---------- section ---------- */
.vt-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 20px;
  background-color: var(--c-bg);
  color: var(--c-text);
}
.vt-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  align-items: var(--vt-items, flex-start);
}
.vt-w-narrow > .vt-container { max-width: 720px; }
.vt-w-normal > .vt-container { max-width: 1080px; }
.vt-w-wide > .vt-container { max-width: 1280px; }
.vt-w-full > .vt-container { max-width: none; }

/* Every scheme sets all working colours, so schemes nest safely (a light card in a dark section). */
.vt-scheme-default {
  --c-bg: var(--t-bg);
  --c-surface: var(--t-surface);
  --c-text: var(--t-text);
  --c-muted: var(--t-muted);
  --c-primary: var(--t-primary);
  --c-on-primary: var(--t-on-primary);
  --c-accent: var(--t-accent);
  --c-border: var(--t-border);
}
.vt-scheme-surface {
  --c-bg: var(--t-surface);
  --c-surface: var(--t-bg);
  --c-text: var(--t-text);
  --c-muted: var(--t-muted);
  --c-primary: var(--t-primary);
  --c-on-primary: var(--t-on-primary);
  --c-accent: var(--t-accent);
  --c-border: var(--t-border);
}
.vt-scheme-primary {
  --c-bg: var(--t-primary);
  --c-text: var(--t-on-primary);
  --c-muted: var(--t-on-primary);
  --c-muted: color-mix(in srgb, var(--t-on-primary) 80%, transparent);
  --c-surface: rgb(255 255 255 / 14%);
  --c-surface: color-mix(in srgb, var(--t-on-primary) 14%, transparent);
  --c-border: rgb(255 255 255 / 30%);
  --c-border: color-mix(in srgb, var(--t-on-primary) 30%, transparent);
  --c-primary: var(--t-on-primary);
  --c-on-primary: var(--t-primary);
  --c-accent: var(--t-on-primary);
  --c-ink: var(--t-on-primary);
}
.vt-scheme-dark {
  --c-bg: #14161a;
  --c-text: #ffffff;
  --c-muted: rgb(255 255 255 / 72%);
  --c-surface: rgb(255 255 255 / 9%);
  --c-border: rgb(255 255 255 / 18%);
  --c-primary: var(--t-primary-dark, var(--t-primary));
  --c-ink: var(--t-primary-dark, var(--t-primary));
  --c-on-primary: var(--t-on-primary-dark, var(--t-on-primary));
  --c-accent: var(--t-accent);
}

.vt-py-none { padding-block: 0; }
.vt-py-xs { padding-block: 16px; }
.vt-py-sm { padding-block: 28px; }
.vt-py-md { padding-block: 40px; }
.vt-py-lg { padding-block: 56px; }
.vt-py-xl { padding-block: 80px; }
.vt-py-2xl { padding-block: 104px; }

.vt-salign-left { text-align: left; --vt-items: flex-start; --vt-justify: flex-start; }
.vt-salign-center { text-align: center; --vt-items: center; --vt-justify: center; }

.vt-minh-auto { min-height: 0; }
.vt-minh-half { min-height: calc(var(--vt-screen-h, 100svh) / 2); }
.vt-minh-screen { min-height: var(--vt-screen-h, 100svh); }

/* Edge to edge: no side padding, no max width (split heroes, photo strips). */
.vt-section.vt-bleed { padding-inline: 0; }
.vt-section.vt-bleed > .vt-container { max-width: none; }

.vt-has-bgimg {
  background-image:
    linear-gradient(rgb(0 0 0 / var(--vt-overlay, 0%)), rgb(0 0 0 / var(--vt-overlay, 0%))),
    var(--vt-bgimg);
  background-size: cover;
  background-position: center, var(--vt-bgpos, center);
}
.vt-in-modal {
  padding: 28px 20px 24px;
  background-color: transparent;
}

/* ---------- layout ---------- */
.vt-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}
:where(.vt-stack) {
  align-items: var(--vt-items, flex-start);
}
.vt-dir-col { flex-direction: column; }
.vt-dir-row { flex-direction: row; }
:where(.vt-dir-row) {
  align-items: center;
  justify-content: var(--vt-justify, flex-start);
}
.vt-wrap { flex-wrap: wrap; }

.vt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}
.vt-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.vt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vt-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vt-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* Ребёнок колонки никогда не шире самой колонки: во flex-колонке элемент по умолчанию получает ширину
   «по содержимому», и длинное слово в крупном заголовке вылезало за край (напр. «Новосибирске» в 5xl). */
.vt-stack > *,
.vt-grid > *,
.vt-card > *,
.vt-container > * {
  min-width: 0;
  max-width: 100%;
}
/* «Название … 1 200 ₽» and «Бренд … соцсети»: the trailing item of a spaced row keeps its width instead of
   breaking in two (a long text still wraps within 60%). */
.vt-dir-row.vt-justify-between > .vt-text:last-child:not(:first-child) { flex-shrink: 0; max-width: 60%; }
.vt-dir-row.vt-justify-between > .vt-social:last-child:not(:first-child) { flex-shrink: 0; }

.vt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius);
  background-color: var(--c-surface);
  color: var(--c-text);
}
:where(.vt-card) {
  align-items: var(--vt-items, flex-start);
}
.vt-border { border: 1px solid var(--c-border); }

/* Photo card: a lazy <img> under a shade, the content sits on top in light colours. */
.vt-card-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  background-color: #1b1d22;
  color: #ffffff;
  --c-text: #ffffff;
  --c-muted: rgb(255 255 255 / 84%);
  --c-surface: rgb(255 255 255 / 16%);
  --c-border: rgb(255 255 255 / 32%);
  --c-primary: var(--t-primary-dark, var(--t-primary));
  --c-ink: var(--t-primary-dark, var(--t-primary));
  --c-on-primary: var(--t-on-primary-dark, var(--t-on-primary));
}
:where(.vt-card-photo) { justify-content: flex-end; }
.vt-card-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.vt-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / 74%), rgb(0 0 0 / 16%) 58%, rgb(0 0 0 / var(--vt-overlay, 0%)));
}
@media (hover: hover) {
  .vt-card-photo:hover .vt-card-img { transform: scale(1.04); }
}

/* Grid pattern «feature»: the first tile is large (full row on phones, 2×2 from md). */
.vt-grid-feature > :first-child { grid-column: 1 / -1; }
.vt-grid-feature > .vt-image:first-child { aspect-ratio: 4 / 3; }
.vt-grid-feature > .vt-image:first-child img { height: 100%; object-fit: cover; }

/* shared spacing scale */
.vt-gap-none { gap: 0; }
.vt-gap-xs { gap: 4px; }
.vt-gap-sm { gap: 8px; }
.vt-gap-md { gap: 16px; }
.vt-gap-lg { gap: 24px; }
.vt-gap-xl { gap: 40px; }
.vt-gap-2xl { gap: 64px; }
.vt-section.vt-gap-none > .vt-container { gap: 0; }
.vt-section.vt-gap-xs > .vt-container { gap: 4px; }
.vt-section.vt-gap-sm > .vt-container { gap: 8px; }
.vt-section.vt-gap-md > .vt-container { gap: 16px; }
.vt-section.vt-gap-lg > .vt-container { gap: 24px; }
.vt-section.vt-gap-xl > .vt-container { gap: 40px; }
.vt-section.vt-gap-2xl > .vt-container { gap: 64px; }

.vt-p-none { padding: 0; }
.vt-p-xs { padding: 4px; }
.vt-p-sm { padding: 8px; }
.vt-p-md { padding: 16px; }
.vt-p-lg { padding: 24px; }
.vt-p-xl { padding: 40px; }
.vt-p-2xl { padding: 64px; }

.vt-items-start { align-items: flex-start; }
.vt-items-center { align-items: center; }
.vt-items-end { align-items: flex-end; }
.vt-items-stretch { align-items: stretch; }
.vt-justify-start { justify-content: flex-start; }
.vt-justify-center { justify-content: center; }
.vt-justify-end { justify-content: flex-end; }
.vt-justify-between { justify-content: space-between; }

.vt-align-left { text-align: left; align-self: flex-start; --vt-items: flex-start; --vt-justify: flex-start; }
.vt-align-center { text-align: center; align-self: center; --vt-items: center; --vt-justify: center; }
.vt-align-right { text-align: right; align-self: flex-end; --vt-items: flex-end; --vt-justify: flex-end; }

/* min(100%, …): заданная ширина текста не может превысить колонку, в которой стоит */
.vt-maxw-xs { max-width: min(100%, 320px); }
.vt-maxw-sm { max-width: min(100%, 480px); }
.vt-maxw-md { max-width: min(100%, 640px); }
.vt-maxw-lg { max-width: min(100%, 800px); }
.vt-maxw-xl { max-width: min(100%, 1000px); }
.vt-maxw-full { max-width: 100%; }

/* ---------- typography ---------- */
.vt-heading {
  hyphens: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
  text-wrap: balance;
}
.vt-hl-1 { font-size: 2.25rem; font-size: clamp(2.125rem, 5.6cqi, 3.5rem); line-height: 1.08; }
.vt-hl-2 { font-size: 1.75rem; font-size: clamp(1.625rem, 4cqi, 2.5rem); }
.vt-hl-3 { font-size: 1.25rem; font-size: clamp(1.1875rem, 2.4cqi, 1.375rem); line-height: 1.25; letter-spacing: -0.01em; }
.vt-hl-4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: 0; }

.vt-text {
  color: var(--c-text);
  text-wrap: pretty;
}
.vt-text p + p { margin-top: 0.75em; }
.vt-text a,
.vt-list a,
.vt-acc-a a {
  color: var(--c-ink);
  text-underline-offset: 2px;
}

.vt-size-xs { font-size: 0.75rem; }
.vt-size-sm { font-size: 0.875rem; }
.vt-size-md { font-size: 1rem; }
.vt-size-lg { font-size: 1.125rem; }
.vt-size-xl { font-size: 1.25rem; font-size: clamp(1.1875rem, 2.4cqi, 1.375rem); }
.vt-size-2xl { font-size: 1.5rem; font-size: clamp(1.4375rem, 3.2cqi, 1.75rem); }
.vt-size-3xl { font-size: 1.75rem; font-size: clamp(1.625rem, 4cqi, 2.5rem); }
.vt-size-4xl { font-size: 2.25rem; font-size: clamp(2.125rem, 5.6cqi, 3.5rem); }

.vt-size-5xl { font-size: 2.5rem; font-size: clamp(2.5rem, 8.5cqi, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.vt-caps { text-transform: uppercase; letter-spacing: 0.06em; }
.vt-heading.vt-caps { letter-spacing: 0.01em; }

.vt-weight-normal { font-weight: 400; }
.vt-weight-medium { font-weight: 500; }
.vt-weight-semibold { font-weight: 600; }
.vt-weight-bold { font-weight: 700; }
.vt-weight-black { font-weight: 800; }

.vt-color-bg { color: var(--c-bg); }
.vt-color-surface { color: var(--c-surface); }
.vt-color-text { color: var(--c-text); }
.vt-color-muted { color: var(--c-muted); }
.vt-color-primary { color: var(--c-ink); }
.vt-color-onPrimary { color: var(--c-on-primary); }
.vt-color-accent { color: var(--c-accent); }
.vt-color-border { color: var(--c-border); }
.vt-color-white { color: #ffffff; }
.vt-color-black { color: #000000; }

.vt-bg-bg { background-color: var(--c-bg); }
.vt-bg-surface { background-color: var(--c-surface); }
.vt-bg-text { background-color: var(--c-text); }
.vt-bg-muted { background-color: var(--c-muted); }
.vt-bg-primary { background-color: var(--c-primary); }
.vt-bg-onPrimary { background-color: var(--c-on-primary); }
.vt-bg-accent { background-color: var(--c-accent); }
.vt-bg-border { background-color: var(--c-border); }
.vt-bg-white { background-color: #ffffff; }
.vt-bg-black { background-color: #000000; }

/* ---------- media ---------- */
.vt-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-surface);
}
.vt-image img {
  display: block;
  width: 100%;
  height: auto;
}
.vt-image[class*="vt-ratio-"] img {
  height: 100%;
  object-fit: cover;
}
.vt-image.vt-fit-cover img { object-fit: cover; }
.vt-image.vt-fit-contain img { object-fit: contain; }
.vt-image-empty {
  aspect-ratio: 4 / 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%239a948c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.vt-ratio-auto { aspect-ratio: auto; }
.vt-ratio-1x1 { aspect-ratio: 1 / 1; }
.vt-ratio-4x3 { aspect-ratio: 4 / 3; }
.vt-ratio-3x4 { aspect-ratio: 3 / 4; }
.vt-ratio-16x9 { aspect-ratio: 16 / 9; }
.vt-ratio-3x2 { aspect-ratio: 3 / 2; }
.vt-ratio-2x3 { aspect-ratio: 2 / 3; }
.vt-ratio-21x9 { aspect-ratio: 21 / 9; }

.vt-imgw-xs { width: 64px; flex: none; }
.vt-imgw-sm { width: 96px; flex: none; }
.vt-imgw-md { width: 160px; flex: none; }
.vt-imgw-lg { width: 240px; flex: none; }
.vt-imgw-full { width: 100%; }

/* Fill the grid cell: height follows the neighbouring column (split heroes). */
.vt-image.vt-fill { position: relative; aspect-ratio: 4 / 3; }
.vt-image.vt-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.vt-radius-none { border-radius: 0; }
.vt-radius-sm { border-radius: 6px; }
.vt-radius-md { border-radius: 10px; }
.vt-radius-lg { border-radius: 16px; }
.vt-radius-xl { border-radius: 24px; }
.vt-radius-full { border-radius: 9999px; }

.vt-shadow-none { box-shadow: none; }
.vt-shadow-sm { box-shadow: 0 1px 2px rgb(16 12 8 / 6%), 0 1px 3px rgb(16 12 8 / 8%); }
.vt-shadow-md { box-shadow: 0 2px 4px rgb(16 12 8 / 5%), 0 8px 20px rgb(16 12 8 / 9%); }
.vt-shadow-lg { box-shadow: 0 4px 8px rgb(16 12 8 / 5%), 0 20px 48px rgb(16 12 8 / 14%); }
.vt-shadow-offset { box-shadow: var(--vt-deco) var(--vt-deco) 0 0 var(--c-accent); }
.vt-shadow-frame { box-shadow: var(--vt-deco) var(--vt-deco) 0 -2px var(--c-bg), var(--vt-deco) var(--vt-deco) 0 0 var(--c-accent); }
.vt-shadow-ring { box-shadow: 0 0 0 3px var(--c-accent); }

.vt-video,
.vt-map {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-surface);
}
/* the default shape; a ratio token on the node (.vt-ratio-*) wins */
:where(.vt-video, .vt-map) { aspect-ratio: 16 / 9; }
.vt-video iframe,
.vt-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.vt-video-link {
  display: grid;
  place-items: center;
  padding: 16px;
}
.vt-embed {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- button ---------- */
.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  font: 600 1rem / 1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vt-btn:hover { filter: brightness(1.06); }
.vt-btn:active { transform: scale(0.98); }
.vt-btn-primary { background-color: var(--c-primary); color: var(--c-on-primary); }
.vt-btn-secondary { background-color: var(--c-surface); color: var(--c-text); }
.vt-btn-outline { background-color: transparent; color: var(--c-text); border-color: currentColor; }
.vt-btn-ghost { background-color: transparent; color: var(--c-ink); }
.vt-btn-ghost:hover { background-color: var(--c-surface); filter: none; }
.vt-btn-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vt-btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.875rem; }
.vt-btn-md { min-height: 48px; }
.vt-btn-lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }
.vt-btn-full { width: 100%; }
.vt-btn-icon { display: inline-flex; flex: none; }
.vt-btn-icon svg { width: 1.2em; height: 1.2em; }

/* ---------- small things ---------- */
.vt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: vt-li;
}
/* Items hold inline rich text (<strong>, <a>, text runs). Never make them grid/flex
 * containers: every text run would become its own grid item (see test_rich_text_containers). */
.vt-list > li {
  position: relative;
  padding-left: calc(1.25em + 10px);
}
.vt-list > li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0.425em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: var(--c-primary);
}
.vt-list-check > li::before {
  top: 0.175em;
  left: 0;
  width: 1.25em;
  height: 1.25em;
  border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vt-list-number > li { counter-increment: vt-li; padding-left: calc(1.6em + 10px); }
.vt-list-number > li::before {
  content: counter(vt-li) ".";
  top: 0;
  left: 0;
  width: 1.6em;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--c-primary);
  font-weight: 700;
  text-align: right;
}
.vt-list-none > li { padding-left: 0; }
.vt-list-none > li::before { display: none; }
.vt-list-bullet > li::before { display: block; }

.vt-icon {
  display: inline-flex;
  flex: none;
  color: var(--c-primary);
}
.vt-icon svg { width: 28px; height: 28px; }
.vt-icon-sm svg { width: 20px; height: 20px; }
.vt-icon-md svg { width: 28px; height: 28px; }
.vt-icon-lg svg { width: 40px; height: 40px; }
.vt-icon-xl svg { width: 56px; height: 56px; }
.vt-icon-boxed {
  padding: 12px;
  border-radius: calc(var(--radius) * 0.75);
  background-color: var(--c-surface);
  background-color: color-mix(in srgb, currentColor 12%, transparent);
}

.vt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background-color: var(--c-surface);
  background-color: color-mix(in srgb, var(--c-primary) 12%, transparent);
  color: var(--c-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.vt-badge-soft { border-color: transparent; }
.vt-badge-solid { background-color: var(--c-primary); color: var(--c-on-primary); }
.vt-badge-outline { background-color: transparent; border-color: currentColor; }

.vt-divider {
  width: 100%;
  height: 1px;
  border: 0;
  background-color: var(--c-border);
}
.vt-spacer { width: 100%; height: 32px; flex: none; }
.vt-h-none { height: 0; }
.vt-h-xs { height: 8px; }
.vt-h-sm { height: 16px; }
.vt-h-md { height: 32px; }
.vt-h-lg { height: 48px; }
.vt-h-xl { height: 72px; }
.vt-h-2xl { height: 104px; }

.vt-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--c-border);
}
.vt-acc-item { border-bottom: 1px solid var(--c-border); }
.vt-acc-q {
  display: block; /* not flex: the question is rich text, see .vt-list > li */
  position: relative;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.vt-acc-q::-webkit-details-marker { display: none; }
.vt-acc-q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.vt-acc-item[open] > .vt-acc-q::after { transform: translateY(-25%) rotate(-135deg); }
.vt-acc-a {
  padding: 0 0 20px;
  color: var(--c-muted);
}
.vt-acc-a p + p { margin-top: 0.75em; }

.vt-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: var(--vt-justify, flex-start);
}
.vt-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--c-text);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.vt-social-link:hover { transform: translateY(-2px); }
.vt-social-link svg { width: 22px; height: 22px; }
.vt-social-plain .vt-social-link { background: none; }
.vt-social-soft .vt-social-link,
.vt-social:not(.vt-social-plain):not(.vt-social-solid) .vt-social-link { background-color: var(--c-surface); }
.vt-social-solid .vt-social-link { background-color: var(--c-primary); color: var(--c-on-primary); }

/* ---------- form ---------- */
.vt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
}
.vt-field { display: flex; flex-direction: column; gap: 6px; }
.vt-label { font-size: 0.875rem; font-weight: 600; color: var(--c-text); }
.vt-req { color: var(--c-ink); }
.vt-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: calc(var(--btn-radius) * 0.85 + 2px);
  border-radius: min(var(--btn-radius), 14px);
  background-color: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem / 1.4 var(--font-body); /* 16px: no zoom-on-focus in iOS */
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vt-input::placeholder { color: var(--c-muted); opacity: 0.8; }
.vt-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
.vt-textarea { min-height: 112px; resize: vertical; }
.vt-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23807a73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.vt-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  cursor: pointer;
}
.vt-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--c-primary);
}
.vt-consent { font-size: 0.8125rem; line-height: 1.45; color: var(--c-muted); }
.vt-consent a { color: inherit; text-underline-offset: 2px; }
.vt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.vt-form-status { min-height: 0; font-size: 0.9375rem; }
.vt-form-status:empty { display: none; }
.vt-form-status.is-error { color: #c0392b; }
.vt-invalid { border-color: #c0392b; }
.vt-form.is-sending .vt-btn { opacity: 0.6; pointer-events: none; }
.vt-form-done {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
}
.vt-form-done strong { font: 700 1.25rem / 1.25 var(--font-heading); }
.vt-form-done span { color: var(--c-muted); }

/* ---------- booking widget (DOM is built by runtime.js) ---------- */
.vt-booking {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background-color: var(--c-bg);
  color: var(--c-text);
  text-align: left;
}
.vt-bk-title { font: 700 1.25rem / 1.25 var(--font-heading); }
.vt-bk-step { display: flex; flex-direction: column; gap: 10px; }
.vt-bk-label { font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
.vt-bk-options { display: flex; flex-direction: column; gap: 8px; }
.vt-bk-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: min(var(--btn-radius), 14px);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vt-bk-option small { display: block; color: var(--c-muted); }
.vt-bk-option.is-active,
.vt-bk-chip.is-active {
  border-color: var(--c-primary);
  background-color: color-mix(in srgb, var(--c-primary) 10%, transparent);
}
.vt-bk-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.vt-bk-chips.is-wrap { flex-wrap: wrap; overflow: visible; }
.vt-bk-chip {
  flex: none;
  min-width: 64px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: min(var(--btn-radius), 12px);
  background: none;
  color: inherit;
  font: 500 0.9375rem / 1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
}
.vt-bk-chip small { display: block; font-size: 0.75rem; color: var(--c-muted); }
.vt-bk-empty { color: var(--c-muted); font-size: 0.9375rem; }

/* ---------- modal ---------- */
.vt-modal {
  width: calc(100% - 24px);
  max-width: 520px;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background-color: var(--t-bg);
  color: var(--t-text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
  overflow: auto;
}
.vt-modal::backdrop { background-color: rgb(12 10 8 / 55%); }
.vt-modal-box { position: relative; }
.vt-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background-color: var(--t-surface);
  color: var(--t-text);
  cursor: pointer;
}
.vt-modal-close svg { width: 20px; height: 20px; }

/* ---------- platform footer on public pages ---------- */
.vt-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid var(--t-border);
  background-color: var(--t-bg);
  color: var(--t-muted);
  font-size: 0.8125rem;
}
.vt-legal a { color: inherit; text-underline-offset: 2px; }

/* ---------- platform elements outside the page: «back to the showcase» bar and the badge ----------
 * They sit outside .vt-page and speak in the platform's voice, not the site's theme. */
.vt-from-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: env(safe-area-inset-top, 0px) 12px 0;
  background: #141c2b; color: #fff; font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.vt-from-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.vt-from-back svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.vt-from-back:hover svg { transform: translateX(-3px); }
.vt-from-back:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 6px; }
.vt-from-brand { color: rgb(255 255 255 / 70%); font-size: 13px; }

.vt-made {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(115deg, #00864e 0%, #0f9e62 50%, #35c98f 100%);
  color: #fff; text-decoration: none; text-align: center;
  font: 500 15px/1.3 "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.vt-made-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgb(255 255 255 / 18%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}
.vt-made-mark svg { width: 18px; height: 18px; }
.vt-made-text b { font-weight: 800; letter-spacing: -0.01em; }
.vt-made-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: #23349c; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 16px -8px rgb(10 16 40 / 60%);
}
.vt-made-cta svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.vt-made:hover .vt-made-cta svg { transform: translateX(3px); }
.vt-made:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
/* phones: the floating «Задать вопрос» button must not cover the badge's button at the very bottom */
@media (max-width: 639px) {
  body[data-ask] .vt-made { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- cookie consent (only when Yandex Metrika is enabled) ---------- */
.vt-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  background-color: var(--t-bg);
  color: var(--t-text);
  box-shadow: 0 8px 32px rgb(0 0 0 / 16%);
  font-size: 0.875rem;
  line-height: 1.45;
}
.vt-cookie p { flex: 1 1 260px; }
.vt-cookie div { display: flex; gap: 8px; }
.vt-cookie .vt-btn { width: auto; }

/* ---------- responsive: md = container >= 768px ---------- */
@container vtpage (max-width: 479.98px) {
  .vt-btn:not(.vt-btn-sm):not(.vt-btn-link) { width: 100%; }
}
@container vtpage (max-width: 767.98px) {
  .vt-hide-mobile { display: none !important; }
}
@container vtpage (min-width: 768px) {
  .vt-hide-desktop { display: none !important; }
  .vt-section { --vt-deco: 18px; }

  .vt-image.vt-fill { aspect-ratio: auto; height: 100%; min-height: 380px; }
  .vt-minh-half .vt-image.vt-fill { min-height: calc(var(--vt-screen-h, 100svh) / 2); }
  .vt-minh-screen .vt-image.vt-fill { min-height: var(--vt-screen-h, 100svh); }

  .vt-grid-feature > :first-child { grid-column: span 2; grid-row: span 2; }
  .vt-grid-feature > .vt-image:first-child { position: relative; aspect-ratio: auto; height: 100%; min-height: 260px; }
  .vt-grid-feature > .vt-image:first-child img { position: absolute; inset: 0; width: 100%; }
  .vt-grid-feature > .vt-card:first-child { height: 100%; }
  .vt-grid-feature.vt-md-cols-1 > :first-child,
  .vt-grid-feature.vt-cols-1:not([class*="vt-md-cols-"]) > :first-child { grid-column: auto; grid-row: auto; }
  .vt-section { padding: 88px 32px; }
  .vt-container { gap: 32px; }
  .vt-py-none { padding-block: 0; }
  .vt-py-xs { padding-block: 16px; }
  .vt-py-sm { padding-block: 28px; }
  .vt-py-md { padding-block: 56px; }
  .vt-py-lg { padding-block: 88px; }
  .vt-py-xl { padding-block: 128px; }
  .vt-py-2xl { padding-block: 176px; }
  .vt-in-modal { padding: 36px 32px 32px; }

  .vt-md-dir-row { flex-direction: row; }
  .vt-md-dir-row.vt-justify-between > .vt-text:last-child:not(:first-child) { flex-shrink: 0; max-width: 60%; }
  .vt-md-dir-row.vt-justify-between > .vt-social:last-child:not(:first-child) { flex-shrink: 0; }
  :where(.vt-md-dir-row) {
    align-items: center;
    justify-content: var(--vt-justify, flex-start);
  }
  .vt-md-dir-col { flex-direction: column; }
  :where(.vt-md-dir-col) {
    align-items: var(--vt-items, flex-start);
    justify-content: flex-start;
  }
  .vt-md-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .vt-md-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-md-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vt-md-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vt-md-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vt-md-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vt-grid { gap: 24px; }
  .vt-gap-none { gap: 0; }
  .vt-gap-xs { gap: 4px; }
  .vt-gap-sm { gap: 8px; }
  .vt-gap-md { gap: 16px; }
  .vt-gap-lg { gap: 24px; }
  .vt-gap-xl { gap: 40px; }
  .vt-gap-2xl { gap: 64px; }
  .vt-card { padding: 28px; }
  .vt-p-none { padding: 0; }
  .vt-p-xs { padding: 4px; }
  .vt-p-sm { padding: 8px; }
  .vt-p-md { padding: 16px; }
  .vt-p-lg { padding: 24px; }
  .vt-p-xl { padding: 40px; }
  .vt-p-2xl { padding: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-page * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- shop: catalogue cards (products node, catalogue and product pages) ---------- */
/* ---------- masters: «Мастера, которым я доверяю» ---------- */
.vt-masters { width: 100%; }
.vt-mst-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vt-mst-link {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border-radius: var(--radius);
  background: var(--c-surface); color: inherit; text-decoration: none; text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vt-mst-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / 8%); }
.vt-mst-link:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.vt-mst-avatar {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%;
  background: var(--mst-accent, var(--c-primary)); color: var(--mst-ink, var(--c-on-primary));
  font: 700 1.375rem/1 var(--font-heading);
}
.vt-mst-photo { width: 100%; height: 100%; object-fit: cover; }
.vt-mst-body { display: grid; gap: 2px; min-width: 0; }
.vt-mst-name { font-weight: 600; line-height: 1.3; }
.vt-mst-meta { color: var(--c-muted); font-size: 0.875rem; }
.vt-mst-note { margin-top: 4px; color: var(--c-text); font-size: 0.9375rem; line-height: 1.45; }
.vt-mst-note::before { content: "«"; }
.vt-mst-note::after { content: "»"; }
@media (prefers-reduced-motion: reduce) { .vt-mst-link, .vt-mst-link:hover { transition: none; transform: none; } }

/* ---------- services: живой список услуг из кабинета ---------- */
.vt-services { width: 100%; }
.vt-srv-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vt-srv {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--c-surface);
}
.vt-srv-main { display: grid; gap: 2px; min-width: 0; }
.vt-srv-name { margin: 0; font-weight: 600; }
.vt-srv-note { margin: 0; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.45; }
.vt-srv-meta { margin: 0; color: var(--c-muted); font-size: 0.875rem; }
.vt-srv-side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.vt-srv-price { font-weight: 700; white-space: nowrap; }
.vt-srv-book { white-space: nowrap; }
.vt-srv-empty { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--c-surface); color: var(--c-muted); }
@container vtpage (max-width: 479.98px) {
  .vt-srv { flex-direction: column; gap: 10px; }
  .vt-srv-side { justify-items: start; text-align: left; width: 100%; }
}

.vt-products { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.vt-prod-grid { display: grid; width: 100%; margin: 0; padding: 0; list-style: none; }
:where(.vt-prod-grid) { gap: 28px 12px; } /* a gap token on the node wins */
.vt-prod { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; }
.vt-prod[hidden] { display: none; }
.vt-prod-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.vt-prod-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--c-surface);
}
.vt-prod-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .vt-prod-link:hover .vt-prod-img { transform: scale(1.04); }
}
.vt-prod-media.is-empty,
.vt-pp-slide.is-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%239a948c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3Cpath d='M3.103 6.034h17.794'/%3E%3Cpath d='M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.vt-prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}
.vt-prod-badge.is-out { background-color: rgb(20 18 16 / 72%); color: #ffffff; }
.vt-prod-name {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vt-prod-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.vt-prod-price b { font-weight: 700; }
.vt-prod-price s { color: var(--c-muted); font-size: 0.875rem; }
.vt-prod-add { width: 100%; margin-top: auto; }
.vt-prod-empty { color: var(--c-muted); }
.vt-prod-more {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid currentColor;
  border-radius: var(--btn-radius);
  font-weight: 600;
  text-decoration: none;
}
.vt-prod-filters {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.vt-prod-filters::-webkit-scrollbar { display: none; }
.vt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  background: transparent;
  color: var(--c-text);
  font: 500 0.9375rem / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vt-chip:hover { border-color: color-mix(in srgb, var(--c-text) 45%, transparent); }
.vt-chip[aria-pressed="true"],
.vt-chip[aria-current="page"] { border-color: var(--c-text); background-color: var(--c-text); color: var(--c-bg); }
.vt-chip.is-na { opacity: 0.45; text-decoration: line-through; }

/* ---------- shop pages: top bar, breadcrumbs ---------- */
.vt-shop-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--c-border);
  background-color: color-mix(in srgb, var(--c-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.vt-shop-bar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 20px;
}
.vt-shop-home {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 700 1.125rem / 1.2 var(--font-heading);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-shop-nav a { color: var(--c-muted); font-weight: 600; text-decoration: none; }
.vt-shop-nav a:hover { color: var(--c-text); }
.vt-shop-cart {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background-color: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}
.vt-shop-cart svg { width: 22px; height: 22px; }
.vt-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  font: 700 0.75rem / 20px var(--font-body);
  text-align: center;
}
.vt-cart-count[hidden] { display: none; }
.is-bump { animation: vt-bump 0.45s ease; }
@keyframes vt-bump {
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
}
.vt-shop-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 64px;
}
.vt-shop-narrow { max-width: 720px; }
.vt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--c-muted); font-size: 0.875rem; }
.vt-crumbs a { text-decoration: none; }
.vt-crumbs a:hover { color: var(--c-text); }
.vt-catalog-title { font: 700 clamp(1.75rem, 6cqi, 2.75rem) / 1.1 var(--font-heading); letter-spacing: -0.02em; }

/* ---------- product page ---------- */
.vt-pp { display: grid; gap: 24px; }
.vt-pp-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vt-pp-slides {
  display: flex;
  margin-inline: -20px;
  overflow-x: auto;
  background-color: var(--c-surface);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.vt-pp-slides::-webkit-scrollbar { display: none; }
.vt-pp-slide { flex: none; width: 100%; aspect-ratio: 4 / 5; margin: 0; scroll-snap-align: start; }
.vt-pp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-pp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vt-pp-thumb {
  flex: none;
  width: 64px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) * 0.5);
  background-color: var(--c-surface);
  cursor: pointer;
}
.vt-pp-thumb[aria-current="true"] { border-color: var(--c-text); }
.vt-pp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-pp-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vt-pp-title { font: 700 clamp(1.625rem, 5.5cqi, 2.5rem) / 1.15 var(--font-heading); letter-spacing: -0.02em; }
.vt-pp-summary { color: var(--c-muted); font-size: 1.0625rem; }
.vt-pp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.vt-pp-price b { font: 700 1.75rem / 1.1 var(--font-body); letter-spacing: -0.01em; }
.vt-pp-price s { color: var(--c-muted); font-size: 1.125rem; }
.vt-pp-price s[hidden] { display: none; }
.vt-pp-buy { display: flex; flex-direction: column; gap: 16px; }
.vt-pp-opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.vt-pp-opt legend { margin-bottom: 10px; padding: 0; color: var(--c-muted); font-size: 0.875rem; font-weight: 600; }
.vt-pp-values { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-pp-row { display: flex; gap: 10px; }
.vt-pp-add { flex: 1; }
.vt-pp-add svg { width: 20px; height: 20px; }
.vt-pp-add[disabled] { opacity: 0.5; cursor: not-allowed; }
.vt-qty {
  display: inline-flex;
  flex: none;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  border-radius: var(--btn-radius);
}
.vt-qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 53px;
  border: 0;
  background: none;
  color: var(--c-text);
  cursor: pointer;
}
.vt-qty button svg { width: 18px; height: 18px; }
.vt-qty button:disabled { opacity: 0.35; cursor: default; }
.vt-qty input {
  width: 36px;
  height: 53px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 1rem var(--font-body);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.vt-qty input::-webkit-inner-spin-button,
.vt-qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.vt-qty-sm button { width: 34px; height: 36px; }
.vt-qty-num { min-width: 22px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.vt-pp-stock { color: var(--c-muted); font-size: 0.9375rem; }
.vt-pp-stock.is-ok { color: #2f7d4f; }
.vt-pp-stock.is-out,
.vt-pp-stock.is-warn { color: #c0392b; }
.vt-pp-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  background-color: var(--c-surface);
  font-size: 0.9375rem;
  list-style: none;
}
.vt-pp-facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.vt-pp-facts svg { width: 20px; height: 20px; margin-top: 2px; color: var(--c-muted); }
.vt-pp-sku { color: var(--c-muted); font-size: 0.875rem; }
.vt-pp-related { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.vt-pp-related-title { font: 700 1.5rem / 1.2 var(--font-heading); }

/* ---------- order page and totals ---------- */
.vt-order { display: flex; flex-direction: column; gap: 18px; }
.vt-order-kicker { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-weight: 600; }
.vt-order-kicker.is-ok { color: #2f7d4f; }
.vt-order-kicker svg { width: 20px; height: 20px; }
.vt-order-title { font: 700 clamp(1.5rem, 5cqi, 2.25rem) / 1.15 var(--font-heading); letter-spacing: -0.02em; }
.vt-order-meta { color: var(--c-muted); }
.vt-order-note { padding: 14px 16px; border-radius: var(--radius); background-color: var(--c-surface); }
.vt-order-hint { color: var(--c-muted); font-size: 0.875rem; }
.vt-order-hint.is-error { color: #c0392b; }
.vt-order-items { display: flex; flex-direction: column; margin: 0; padding: 0; border-top: 1px solid var(--c-border); list-style: none; }
.vt-order-items li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.vt-order-img { width: 56px; height: 56px; overflow: hidden; border-radius: 10px; background-color: var(--c-surface); }
.vt-order-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-order-name small { display: block; color: var(--c-muted); font-size: 0.875rem; }
.vt-order-qty { color: var(--c-muted); }
.vt-sum { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.vt-sum div { display: flex; justify-content: space-between; gap: 12px; }
.vt-sum dt { color: var(--c-muted); }
.vt-sum dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt-sum .is-discount dd { color: #2f7d4f; }
.vt-sum .is-total { padding-top: 10px; border-top: 1px solid var(--c-border); font-size: 1.125rem; font-weight: 700; }
.vt-sum .is-total dt { color: inherit; }

@container vtpage (min-width: 768px) {
  :where(.vt-prod-grid) { gap: 40px 20px; }
  .vt-shop-wrap { padding: 24px 32px 96px; gap: 28px; }
  .vt-pp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .vt-pp-gallery { position: sticky; top: 84px; }
  .vt-pp-slides { margin-inline: 0; border-radius: var(--radius); }
  .vt-pp-info { padding-top: 8px; }
}

/* ---------- главная кнопка внизу экрана телефона (runtime.js: stickyCta) ----------
   Живёт вне .vt-page (контейнер ловит position:fixed), поэтому переносит к себе цвета темы. */
.vt-cta-bar {
  --t-bg: #ffffff; --t-primary: #d9482b; --t-on-primary: #ffffff; --t-border: #e6e2dc;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --btn-radius: 12px;
  --c-primary: var(--t-primary); --c-on-primary: var(--t-on-primary);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--t-bg); border-top: 1px solid var(--t-border);
  box-shadow: 0 -6px 18px rgb(0 0 0 / 8%);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.25s;
}
.vt-cta-bar.is-on { transform: none; visibility: visible; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.vt-cta-bar .vt-btn { width: 100%; min-height: 52px; font-size: 1.0625rem; }
body.vt-cta-on .vt-ask,
body.vt-cta-on .vt-cart-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.vt-cta-on .vt-cl-toast { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
body.vt-cta-on .vt-cookie { bottom: 84px; }
@media (min-width: 768px) { .vt-cta-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .vt-cta-bar, .vt-cta-bar.is-on { transition: none; } }

/* ---------- cart layer: outside .vt-page, see shop.js ---------- */
.vt-shop-layer {
  --t-bg: #ffffff;
  --t-surface: #f5f4f2;
  --t-text: #1c1a17;
  --t-muted: #6f6a64;
  --t-primary: #d9482b;
  --t-on-primary: #ffffff;
  --t-border: #e6e2dc;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-body);
  --radius: 16px;
  --btn-radius: 12px;
  --c-bg: var(--t-bg);
  --c-surface: var(--t-surface);
  --c-text: var(--t-text);
  --c-muted: var(--t-muted);
  --c-primary: var(--t-primary);
  --c-on-primary: var(--t-on-primary);
  --c-border: var(--t-border);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
.vt-shop-layer *,
.vt-shop-layer *::before,
.vt-shop-layer *::after { box-sizing: border-box; }
.vt-shop-layer :where(h2, h3, p, ul, dl, fieldset) { margin: 0; }
.vt-shop-layer :where(a) { color: inherit; }
.vt-cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 10px 30px rgb(0 0 0 / 22%);
  cursor: pointer;
}
.vt-cart-fab[hidden] { display: none; }
.vt-cart-fab svg { width: 26px; height: 26px; }
.vt-cart-fab .vt-cart-count { top: 0; right: 0; background-color: var(--c-text); color: var(--c-bg); }
.vt-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  background-color: #1c1a17;
  color: #ffffff;
  box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.vt-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vt-toast span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.vt-toast button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1c1a17;
  font: 600 0.875rem var(--font-body);
  cursor: pointer;
}
.vt-cart {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--c-text);
}
.vt-cart::backdrop { background-color: rgb(12 10 8 / 50%); }
.vt-cart-box { display: flex; flex-direction: column; height: 100%; background-color: var(--c-bg); }
.vt-cart-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--c-border); }
.vt-cart-title { flex: 1; font: 700 1.125rem / 1.2 var(--font-heading); text-align: center; }
.vt-cart-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.vt-cart-icon[hidden] { display: grid; visibility: hidden; }
.vt-cart-icon svg { width: 22px; height: 22px; }
.vt-cart-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vt-cart-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-border);
  background-color: var(--c-bg);
}
.vt-cart-foot:empty { display: none; }
.vt-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: auto;
  padding: 32px 8px;
  text-align: center;
}
.vt-cart-empty strong { font: 700 1.25rem / 1.25 var(--font-heading); }
.vt-cart-empty span { color: var(--c-muted); }
.vt-cart-problem {
  padding: 10px 14px;
  border-radius: 12px;
  background-color: rgb(192 57 43 / 10%);
  color: #a33224;
  font-size: 0.9375rem;
}
.vt-cart-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.vt-cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "img info info" "img qty total";
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.vt-cart-img { grid-area: img; width: 64px; height: 80px; overflow: hidden; border-radius: 10px; background-color: var(--c-surface); }
.vt-cart-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-cart-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-cart-name { font-weight: 600; line-height: 1.3; text-decoration: none; }
.vt-cart-variant,
.vt-cart-price { color: var(--c-muted); font-size: 0.875rem; }
.vt-cart-line .vt-qty { grid-area: qty; justify-self: start; }
.vt-cart-total { grid-area: total; align-self: center; font-variant-numeric: tabular-nums; }
.vt-cart-coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vt-cart-coupon .vt-btn { min-height: 50px; }
.vt-cart-coupon-note { grid-column: 1 / -1; font-size: 0.875rem; }
.vt-cart-coupon-note.is-ok { color: #2f7d4f; }
.vt-cart-coupon-note.is-bad { color: #c0392b; }
.vt-cart-hint { color: var(--c-muted); font-size: 0.8125rem; text-align: center; }
.vt-checkout { display: flex; flex-direction: column; gap: 14px; }
.vt-checkout-step { margin-top: 6px; font: 700 1rem / 1.3 var(--font-heading); }
.vt-choices { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vt-choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vt-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: min(var(--btn-radius), 14px);
  cursor: pointer;
}
.vt-choice:has(input:checked) {
  border-color: var(--c-primary);
  background-color: color-mix(in srgb, var(--c-primary) 8%, transparent);
}
.vt-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-primary); }
.vt-choice-text { display: flex; flex-direction: column; min-width: 0; }
.vt-choice-text strong { font-weight: 600; }
.vt-choice-text small { color: var(--c-muted); font-size: 0.875rem; }
.vt-choice-side { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 768px) {
  .vt-cart { inset: 0 0 0 auto; width: 440px; }
  .vt-cart-box { box-shadow: -20px 0 60px rgb(0 0 0 / 18%); }
  .vt-cart-fab { right: 24px; bottom: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .vt-cart[open] .vt-cart-box { animation: vt-cart-in 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
}
@keyframes vt-cart-in {
  from { opacity: 0.6; transform: translateY(24px); }
}

/* ---------- reviews (data-bound: published reviews of the site's clients) ---------- */
.vt-reviews { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.vt-rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.vt-rv-avg { font: 700 2.5rem / 1 var(--font-heading); letter-spacing: -0.02em; }
.vt-rv-stars { color: #e8a400; font-size: 1.25rem; letter-spacing: 2px; }
.vt-rv-count { color: var(--c-muted); }
.vt-rv-list { display: grid; width: 100%; margin: 0; padding: 0; list-style: none; }
:where(.vt-rv-list) { gap: 16px; } /* a gap token on the node wins */
.vt-rv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background-color: var(--c-surface);
  text-align: left;
}
.vt-rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vt-rv-author { font-weight: 600; overflow-wrap: anywhere; }
.vt-rv-rating { flex: none; color: #e8a400; letter-spacing: 1px; white-space: nowrap; }
.vt-rv-text { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.vt-rv-date { color: var(--c-muted); font-size: 0.875rem; }
.vt-rv-reply {
  margin-top: 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--c-primary);
  border-radius: 0 calc(var(--radius) / 2) calc(var(--radius) / 2) 0;
  background-color: var(--c-bg);
  font-size: 0.9375rem;
}
.vt-rv-reply b { display: block; margin-bottom: 2px; font-size: 0.8125rem; color: var(--c-muted); }
.vt-rv-reply p { margin: 0; }
.vt-rv-empty { margin: 0; color: var(--c-muted); }
.vt-rv-add { align-self: flex-start; }
/* Reviews from Yandex Maps under the site's own: the official widget, a link for the full list */
.vt-rv-yandex { display: grid; gap: 8px; width: 100%; max-width: 560px; }
.vt-align-center .vt-rv-yandex { justify-self: center; margin-inline: auto; }
.vt-rv-yandex iframe { width: 100%; height: 640px; border: 1px solid var(--c-border, rgb(0 0 0 / 10%)); border-radius: 12px; background: #fff; }
.vt-rv-yandex a { color: var(--c-muted); font-size: 13px; }
.vt-align-center .vt-rv-head,
.vt-align-center .vt-rv-add { justify-content: center; align-self: center; }

/* ---------- a closed page: the lock screen ---------- */
.vt-lock { flex: 1; display: grid; place-items: center; padding: 48px 20px; background-color: var(--c-surface); }
.vt-lock-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  border-radius: var(--radius);
  background-color: var(--c-bg);
  box-shadow: 0 20px 50px rgb(0 0 0 / 8%);
  text-align: center;
}
.vt-lock-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--c-surface);
  color: var(--c-primary);
}
.vt-lock-icon svg { width: 26px; height: 26px; }
.vt-lock-site { margin: 0; font-size: 0.875rem; }
.vt-lock-site a { color: var(--c-muted); text-decoration: none; }
.vt-lock-title { margin: 0; font: 700 1.625rem / 1.2 var(--font-heading); letter-spacing: -0.01em; }
.vt-lock-teaser { margin: 0; color: var(--c-muted); line-height: 1.55; }
.vt-lock-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; text-align: left; }
.vt-lock-label { font-size: 0.875rem; font-weight: 600; }
.vt-lock-input,
.vt-cl-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: calc(var(--btn-radius, 12px));
  background-color: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem; /* no zoom on focus in iOS */
}
.vt-lock-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.vt-lock-input:focus,
.vt-cl-input:focus { outline: none; border-color: var(--c-primary); }
.vt-lock-input[aria-invalid="true"] { border-color: #c0392b; }
.vt-lock-error { margin: 0; color: #c0392b; font-size: 0.875rem; }
.vt-lock-buy { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.vt-lock-buy p { margin: 0; color: var(--c-muted); font-size: 0.9375rem; }

/* ---------- order page: access codes and news in a messenger ---------- */
.vt-order-access,
.vt-order-tg { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background-color: var(--c-surface); }
.vt-order-access p,
.vt-order-tg p { margin: 0; }
.vt-order-code { padding: 2px 8px; border-radius: 6px; background-color: var(--c-bg); font: 700 1.125rem / 1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.vt-order-tg .vt-btn svg { width: 18px; height: 18px; }
.vt-form-done .vt-remind { margin-top: 12px; }

/* ---------- clients: «Задать вопрос», sign-in and review dialogs (outside .vt-page) ---------- */
.vt-client-layer {
  --t-bg: #ffffff;
  --t-surface: #f5f4f2;
  --t-text: #1c1a17;
  --t-muted: #6f6a64;
  --t-primary: #2457f5;
  --t-on-primary: #ffffff;
  --t-border: #e6e2dc;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-body);
  --radius: 16px;
  --btn-radius: 12px;
  --c-bg: var(--t-bg);
  --c-surface: var(--t-surface);
  --c-text: var(--t-text);
  --c-muted: var(--t-muted);
  --c-primary: var(--t-primary);
  --c-on-primary: var(--t-on-primary);
  --c-border: var(--t-border);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
.vt-client-layer *,
.vt-client-layer *::before,
.vt-client-layer *::after { box-sizing: border-box; }
.vt-client-layer :where(p) { margin: 0; }
.vt-ask {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 39;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background-color: var(--c-text);
  color: var(--c-bg);
  font: 600 0.9375rem / 1 var(--font-body);
  box-shadow: 0 10px 30px rgb(0 0 0 / 22%);
  cursor: pointer;
}
.vt-ask svg { width: 20px; height: 20px; }
body:has(.vt-cart-fab:not([hidden])) .vt-ask { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) {
  .vt-ask { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .vt-ask span:not(.vt-ask-dot) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* «Мастер ответил»: счётчик на кнопке виден и тогда, когда окно разговора закрыто. */
.vt-ask-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: #d92d20;
  color: #ffffff;
  font: 700 0.75rem / 1 var(--font-body);
}
.vt-cl-toast {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background-color: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%);
}
.vt-cl-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-cl-toast-text strong { font: 600 0.9375rem / 1.3 var(--font-body); }
.vt-cl-toast-text span { color: var(--c-muted); font: 400 0.8125rem / 1.35 var(--font-body); }
.vt-cl-toast .vt-btn { min-height: 38px; padding: 0 14px; white-space: nowrap; }
.vt-cl-toast-close {
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
}
.vt-cl-toast-close svg { width: 18px; height: 18px; }
.vt-cl-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.vt-cl-foot .vt-cl-notify { align-self: flex-start; }
.vt-cl-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgb(12 10 8 / 50%);
}
.vt-cl-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 88svh;
  border-radius: 20px 20px 0 0;
  background-color: var(--c-bg);
  box-shadow: 0 -10px 40px rgb(0 0 0 / 18%);
}
@media (min-width: 640px) {
  .vt-cl-backdrop { align-items: center; padding: 24px; }
  .vt-cl-dialog { max-width: 460px; max-height: min(680px, 90svh); border-radius: 20px; }
}
.vt-cl-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--c-border); }
.vt-cl-title { flex: 1; font: 700 1.0625rem / 1.3 var(--font-heading); }
.vt-cl-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.vt-cl-close svg { width: 20px; height: 20px; }
.vt-cl-body { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.vt-cl-note { line-height: 1.5; }
.vt-cl-note:empty { display: none; }
.vt-cl-muted { color: var(--c-muted); font-size: 0.9375rem; }
/* sign-in and news buttons: the messenger's own colour tells them apart at a glance (white text ≥ 4.5:1) */
.vt-cl-providers { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.vt-cl-provider { gap: 10px; color: #ffffff; }
.vt-cl-provider.is-telegram { background-color: #1a7ab0; }
.vt-cl-provider.is-max { background-color: #4f4fe8; background-image: linear-gradient(135deg, #3560f0, #7b3fe4); }
.vt-cl-provider.is-vk { background-color: #0067dd; }
.vt-cl-provider svg,
.vt-cl-send-btn svg { width: 20px; height: 20px; }
.vt-cl-row { display: flex; gap: 8px; align-items: flex-end; }
.vt-cl-row .vt-cl-input { flex: 1; }
.vt-cl-form { display: flex; flex-direction: column; gap: 14px; }
.vt-cl-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.vt-cl-label .vt-cl-input { font-weight: 400; }
textarea.vt-cl-input { min-height: 0; resize: vertical; line-height: 1.45; }
.vt-cl-stars { display: flex; gap: 4px; }
.vt-cl-star {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--c-border);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.vt-cl-star.is-on { color: #e8a400; }
.vt-cl-star:focus-visible { outline: 2px solid var(--c-primary); }
.vt-cl-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; text-align: center; }
.vt-cl-done svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background-color: #e7f6ec; color: #1f8a4c; }
.vt-cl-done span { color: var(--c-muted); }
.vt-cl-messages { display: flex; flex-direction: column; gap: 8px; min-height: 120px; max-height: 46svh; overflow-y: auto; }
.vt-cl-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  background-color: var(--c-surface);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vt-cl-msg.is-client { align-self: flex-end; border-bottom-right-radius: 4px; background-color: var(--c-primary); color: var(--c-on-primary); }
.vt-cl-msg.is-owner { align-self: flex-start; border-bottom-left-radius: 4px; }
.vt-cl-msg.is-system { align-self: center; max-width: 100%; background: none; color: var(--c-muted); font-size: 0.875rem; text-align: center; }
.vt-cl-send { display: flex; flex-direction: column; gap: 10px; }
.vt-cl-send-btn { flex: none; width: 48px; min-height: 48px; padding: 0; }
.vt-cl-consent { font-size: 0.8125rem; }

/* ==========================================================================================================
   Аудит дизайна 21.09.2026: правила из исследования infogra.ru и проверки шаблонов на телефоне и компьютере.
   Только оформление — разметка обоих отрисовщиков не меняется.
   ========================================================================================================== */

/* Текст на фото-карточках читается и на светлых снимках: затемнение гуще там, где текст, и лёгкая тень у букв */
.vt-card-shade {
  background: linear-gradient(to top,
    rgb(0 0 0 / 82%) 0%, rgb(0 0 0 / 62%) 38%, rgb(0 0 0 / 22%) 72%, rgb(0 0 0 / var(--vt-overlay, 0%)) 100%);
}
.vt-card-photo { --c-muted: rgb(255 255 255 / 90%); }
.vt-card-photo :where(.vt-heading, .vt-text) { text-shadow: 0 1px 2px rgb(0 0 0 / 35%); }

/* Фото на фоне секции: темнее там, где лежит текст (снизу на телефоне, слева на компьютере) */
.vt-has-bgimg {
  background-image:
    linear-gradient(to top, rgb(0 0 0 / min(90%, calc(var(--vt-overlay, 0%) * 1.35))), rgb(0 0 0 / calc(var(--vt-overlay, 0%) * 0.7))),
    var(--vt-bgimg);
}
@container vtpage (min-width: 768px) {
  .vt-has-bgimg:not(.vt-salign-center) {
    background-image:
      linear-gradient(to right, rgb(0 0 0 / min(90%, calc(var(--vt-overlay, 0%) * 1.4))) 0%,
        rgb(0 0 0 / calc(var(--vt-overlay, 0%) * 0.9)) 45%, rgb(0 0 0 / calc(var(--vt-overlay, 0%) * 0.35)) 100%),
      var(--vt-bgimg);
  }
}

/* Герой «текст + фото пополам»: колонка текста встаёт по сетке остальных секций, крупный заголовок
   считается от половины экрана, а не от всей страницы */
.vt-section.vt-bleed > .vt-container > .vt-grid > .vt-stack.vt-p-xl { padding: 48px 20px; }
@container vtpage (min-width: 768px) {
  .vt-section.vt-bleed > .vt-container > .vt-grid > .vt-stack.vt-p-xl:first-child {
    padding: 64px 48px 64px max(32px, calc((100cqi - 1080px) / 2));
  }
  .vt-md-cols-2 > * > .vt-size-5xl { font-size: clamp(2.5rem, 5.2cqi, 4.5rem); }
}

/* Кнопки в ряд не сжимаются в две строки: держат ширину, а ряд переносится */
.vt-btn { flex-shrink: 0; max-width: 100%; }
.vt-dir-row:has(> .vt-btn),
.vt-md-dir-row:has(> .vt-btn) { flex-wrap: wrap; }

/* Состояния: заметное наведение на любой теме, видимый фокус с клавиатуры, недоступная кнопка */
.vt-btn:hover { filter: none; background-color: color-mix(in srgb, var(--c-primary) 88%, var(--c-on-primary)); }
.vt-btn-secondary {
  background-color: color-mix(in srgb, var(--c-text) 7%, var(--c-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-text) 16%, transparent);
}
.vt-btn-secondary:hover { background-color: color-mix(in srgb, var(--c-text) 11%, var(--c-bg)); }
.vt-btn-outline:hover { background-color: color-mix(in srgb, currentColor 8%, transparent); }
.vt-btn-ghost:hover { background-color: var(--c-surface); }
.vt-btn-link:hover { background: none; text-decoration-thickness: 2px; }
.vt-btn:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
.vt-btn:disabled,
.vt-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Зоны касания: ссылка-кнопка получает 44 px по высоте, ничего не сдвигая; маленькие кнопки на телефоне — 44 px */
.vt-btn-link { padding-block: 13px; margin-block: -13px; }
@container vtpage (max-width: 479.98px) {
  .vt-btn-sm { min-height: 44px; }
}

/* Рамки полей видны (≈3:1 к фону, норма для границ) */
.vt-input,
.vt-bk-option,
.vt-bk-chip,
.vt-choice { border-color: color-mix(in srgb, var(--c-text) 50%, var(--c-bg)); }

/* Секция цвета темы: серый текст и плашки читаются на любой заливке */
.vt-scheme-primary {
  --c-surface: rgb(255 255 255 / 16%);
  --c-muted: color-mix(in srgb, var(--t-on-primary) 90%, transparent);
}

/* Визитка: круглое фото наезжает на обложку, как в соцсетях, — главная кнопка поднимается на первый экран */
.vt-image.vt-ratio-21x9 + .vt-image.vt-radius-full {
  position: relative;
  margin-top: -104px;
  border: 4px solid var(--c-bg);
}
@container vtpage (min-width: 768px) {
  .vt-image.vt-ratio-21x9 + .vt-image.vt-radius-full { margin-top: -112px; }
}

/* Декоративная плашка за фото не вылезает за колонку */
.vt-image.vt-shadow-offset,
.vt-image.vt-shadow-frame { max-width: calc(100% - var(--vt-deco)); margin-bottom: var(--vt-deco); }

/* «Столбик на телефоне, строка на компьютере» по центру: на телефоне всё выровнено одинаково (подвалы) */
@container vtpage (max-width: 767.98px) {
  .vt-dir-col.vt-md-dir-row.vt-items-center { align-items: var(--vt-items, flex-start); }
}

/* Крупные заголовки: место для Й и Ё над строкой */
.vt-size-5xl { line-height: 1.06; }
.vt-hl-1 { line-height: 1.1; }

/* Шкала: ступень между H2 и текстом */
.vt-hl-3 { font-size: 1.25rem; font-size: clamp(1.25rem, 2.8cqi, 1.625rem); }
.vt-hl-4 { font-size: 1.125rem; font-weight: 700; }

/* Телефон: строка шире и отступы в карточках компактнее — страница короче, читать легче */
@container vtpage (max-width: 479.98px) {
  .vt-size-lg { font-size: 1.0625rem; }
  .vt-card { padding: 20px; }
  .vt-rv { padding: 18px; }
  /* фото-карточки услуг 3:4 на телефоне ниже: три услуги не занимают два с половиной экрана.
     Только карточки в ряду услуг — одиночный портрет на первом экране остаётся высоким */
  .vt-card-photo + .vt-card-photo.vt-ratio-3x4,
  .vt-card-photo.vt-ratio-3x4:has(+ .vt-card-photo) { aspect-ratio: 4 / 3; }
}

/* Вход клиента: Яндекс ID и быстрая регистрация по имени и телефону */
.vt-cl-provider.is-yandex { background-color: #000000; }
.vt-cl-provider.is-telegram:hover { background-color: #1a7ab0; filter: brightness(1.12); }
.vt-cl-provider.is-max:hover { background-color: #4f4fe8; filter: brightness(1.12); }
.vt-cl-provider.is-vk:hover { background-color: #0067dd; filter: brightness(1.12); }
.vt-cl-provider.is-yandex:hover { background-color: #262626; }
.vt-cl-ya {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fc3f1d;
  color: #ffffff;
  font: 700 0.8125rem / 1 Arial, sans-serif;
}
.vt-cl-or { display: flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: 0.875rem; }
.vt-cl-or::before,
.vt-cl-or::after { content: ""; flex: 1; height: 1px; background-color: var(--c-border); }
.vt-cl-subtitle { font-size: 1rem; }
.vt-cl-guest { gap: 12px; }
.vt-cl-guest .vt-cl-note { margin: 0; }

/* «Поделиться» на компьютере и приветствие по личной ссылке (runtime.js). Живут вне .vt-page — цвета темы с собой */
.vt-share-menu,
.vt-friend-note {
  --t-bg: #ffffff; --t-surface: #f5f4f2; --t-text: #1c1a17; --t-muted: #6f6a64; --t-border: #e6e2dc;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px; --btn-radius: 12px;
  position: fixed;
  z-index: 60;
  color: var(--t-text);
  font: 400 0.9375rem / 1.4 var(--font-body);
  background-color: var(--t-bg);
  border: 1px solid var(--t-border);
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
}
.vt-share-menu { display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 14px; }
.vt-share-item {
  display: block;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.vt-share-item:hover,
.vt-share-item:focus-visible { background-color: var(--t-surface); outline: none; }
.vt-friend-note {
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 24px), 520px);
  padding: 12px 8px 12px 16px;
  border-radius: 14px;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}
.vt-friend-note span { flex: 1; }
.vt-friend-note.is-hiding { opacity: 0; }
.vt-friend-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--t-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .vt-friend-note { transition: none; } }

.vt-cl-link { font-size: 0.9375rem; }

/* «Мастера, которым я доверяю» / «Меня рекомендуют» без единой карточки: секция не видна посетителям,
   а не висит заголовком без содержимого (в редакторе вместо пустоты — подсказка, и секция видна) */
.vt-section:has(.vt-masters:empty) { display: none; }

/* ---------- подарочный сертификат (…/gift/<token>): открытка в цветах мастера, печатается на одном листе ---------- */
.vt-gift { display: flex; flex-direction: column; gap: 20px; padding: 32px 0 48px; }
.vt-gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px 32px;
  border-radius: var(--radius);
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  text-align: center;
  overflow: hidden;
}
.vt-gift-card::before {  /* рамка открытки */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid color-mix(in srgb, var(--c-on-primary) 45%, transparent);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.vt-gift-card > * { position: relative; margin: 0; }
.vt-gift-from { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.9; }
.vt-gift-title { font: 700 clamp(1.75rem, 6cqi, 2.5rem) / 1.15 var(--font-heading); text-wrap: balance; }
.vt-gift-what { max-width: 32ch; font-size: 1.0625rem; opacity: 0.92; }
.vt-gift-amount { margin: 8px 0 4px; font: 800 clamp(2.5rem, 11cqi, 4rem) / 1 var(--font-heading); letter-spacing: -0.02em; }
.vt-gift-code { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.vt-gift-code span { font-size: 0.8125rem; opacity: 0.85; }
.vt-gift-code code {
  padding: 8px 18px;
  border: 1.5px dashed color-mix(in srgb, var(--c-on-primary) 70%, transparent);
  border-radius: 10px;
  font: 700 1.375rem / 1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
}
.vt-gift-until { margin-top: 10px !important; font-size: 0.875rem; opacity: 0.85; }
.vt-gift.is-off .vt-gift-card { filter: grayscale(1); opacity: 0.7; }
.vt-gift-how { display: flex; flex-direction: column; gap: 14px; }
.vt-gift-how p { margin: 0; line-height: 1.55; }
.vt-gift-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media print {
  body * { visibility: hidden; }
  .vt-gift-card, .vt-gift-card * { visibility: visible; }
  .vt-gift-card { position: absolute; top: 24px; left: 24px; right: 24px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- «Согласие по ссылке» (…/legal/sign): мастер, текст, форма — и платформа ---------- */
.vt-sign-page { min-height: 100svh; background-color: var(--c-surface); color: var(--c-text); font-family: var(--font-body); }
.vt-sign-by { margin: 0; padding: 10px 16px; text-align: center; font-size: 0.8125rem; background-color: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.vt-sign-by a { color: var(--c-muted); text-decoration: none; }
.vt-sign-by b { color: var(--c-text); }
.vt-sign { display: flex; flex-direction: column; gap: 16px; max-width: 620px; margin: 0 auto; padding: 20px 16px 48px; }
.vt-sign-master { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.vt-sign-master img,
.vt-sign-master > span[aria-hidden] {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background-color: var(--c-primary); color: var(--c-on-primary); font: 700 1.25rem / 1 var(--font-heading);
}
.vt-sign-master span:last-child { display: flex; flex-direction: column; }
.vt-sign-master small { color: var(--c-muted); font-size: 0.8125rem; }
.vt-sign-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: var(--radius); background-color: var(--c-bg); box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.vt-sign-card h1 { margin: 0; font: 700 1.5rem / 1.2 var(--font-heading); letter-spacing: -0.01em; text-wrap: balance; }
.vt-sign-card p { margin: 0; line-height: 1.55; }
.vt-sign-lead { color: var(--c-muted); }
.vt-sign-text {
  max-height: 260px; overflow-y: auto; padding: 4px 16px; border: 1px solid var(--c-border); border-radius: 12px;
  background-color: var(--c-surface); font-size: 0.875rem; line-height: 1.55;
}
.vt-sign-text h2 { margin: 14px 0 4px; font-size: 0.9375rem; }
.vt-sign-text p { margin: 0 0 8px; }
.vt-sign-text:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.vt-sign-note { padding: 10px 14px; border-radius: 12px; background-color: color-mix(in srgb, var(--c-accent) 18%, var(--c-bg)); font-size: 0.9375rem; }
.vt-sign-form { display: flex; flex-direction: column; gap: 14px; }
.vt-sign-error { color: #b42318; font-weight: 600; }
.vt-sign-done a:not(.vt-btn) { color: var(--c-ink); }
.vt-sign-platform { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px dashed var(--c-border); border-radius: var(--radius); }
.vt-sign-platform p { margin: 0; line-height: 1.5; color: var(--c-muted); font-size: 0.9375rem; }
.vt-sign-platform .vt-sign-platform-title { color: var(--c-text); font-weight: 700; font-size: 1rem; }
.vt-sign-platform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }

/* «Вы записаны» (…/visit/<token>): запись, которую сделал мастер */
.vt-visit { display: grid; gap: 10px; margin: 0; }
.vt-visit div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.vt-visit dt { color: var(--c-muted); }
.vt-visit dd { margin: 0; font-weight: 600; }
.vt-visit a,
.vt-sign-lead a,
.vt-visit-ok a { color: var(--c-ink); }
.vt-visit-remind { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.vt-visit-h2 { margin: 0; font: 700 1.1875rem / 1.3 var(--font-heading); }
.vt-visit-ok { margin: 0; font-weight: 600; }
.vt-visit-ok::before { content: "✓ "; color: #1f8a4c; }
.vt-visit-text summary { cursor: pointer; color: var(--c-ink); font-weight: 600; }
.vt-visit-text .vt-sign-text { margin-top: 10px; }

/* Уведомление о cookie (cookies.js) живёт вне .vt-page — у края экрана — и приносит цвета темы с собой */
.vt-cookie {
  --t-bg: #ffffff; --t-surface: #f5f4f2; --t-text: #1c1a17; --t-muted: #6f6a64; --t-border: #e6e2dc;
  --t-primary: #d9482b; --t-on-primary: #ffffff;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px; --btn-radius: 12px;
  --c-bg: var(--t-bg); --c-surface: var(--t-surface); --c-text: var(--t-text); --c-muted: var(--t-muted);
  --c-border: var(--t-border); --c-primary: var(--t-primary); --c-on-primary: var(--t-on-primary);
  --c-ink: var(--t-primary-ink, var(--t-primary));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  font-family: var(--font-body);
}
.vt-cookie p { margin: 0; }
.vt-cookie a { color: var(--c-ink); }
.vt-cookie div { flex-wrap: wrap; }
body.vt-cookie-on .vt-ask,
body.vt-cookie-on .vt-cart-fab { bottom: calc(var(--vt-cookie-h, 96px) + 24px + env(safe-area-inset-bottom, 0px)); }
body.vt-cookie-on .vt-cl-toast { bottom: calc(var(--vt-cookie-h, 96px) + 84px + env(safe-area-inset-bottom, 0px)); }
body.vt-cookie-on.vt-cta-on .vt-cookie { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.vt-cookie-on.vt-cta-on .vt-ask,
body.vt-cookie-on.vt-cta-on .vt-cart-fab { bottom: calc(var(--vt-cookie-h, 96px) + 96px + env(safe-area-inset-bottom, 0px)); }
body.vt-cookie-on.vt-cta-on .vt-cl-toast { bottom: calc(var(--vt-cookie-h, 96px) + 156px + env(safe-area-inset-bottom, 0px)); }
@media print { .vt-cookie { display: none; } }

/* Онлайн-запись: в ряду дней — только свободные, с подписью месяца (runtime.js) */
.vt-bk-month {
  display: flex;
  flex: none;
  align-items: flex-end;
  padding: 0 2px 10px;
  color: var(--c-muted);
  font-size: 0.75rem;
}
.vt-bk-month:first-child { display: none; }  /* первый месяц и так понятен по «сегодня» */
.vt-bk-hint { margin: 6px 0 0; color: var(--c-muted); font-size: 0.8125rem; }

.vt-bk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--c-muted); font-size: 0.875rem; }
.vt-bk-date {
  min-height: 40px;
  padding: 6px 10px;
  border: 1.5px solid var(--c-border);
  border-radius: min(var(--btn-radius), 12px);
  background-color: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  font-size: 0.9375rem;
}
.vt-bk-date:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
