:root {
  color-scheme: light;
  --ink: #242624;
  --muted: #535b57;
  --accent: #b30202;
  --line: #d7dad6;
  --panel: #f4f4ef;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
/* Подключённый перед этим файлом style.css сбрасывает отступы, подчёркивание и шрифт у всех элементов.
   Оформление карточки задано внутри main, шапку и подвал оформляет style.css, как на остальном сайте. */
body.product-page { background: #fff; }
.product-page main { color: var(--ink); font: 17px/1.55 "Open Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; }
:where(.product-page main) a { color: inherit; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(.product-page main) :is(a, summary):hover { color: var(--accent); }
:where(.product-page main) :is(a, summary, button, input, textarea):focus-visible { outline: 3px solid #9f3100; outline-offset: 4px; }
:where(.product-page main) :where(h1, h2, h3, p, dl, dd, ol, ul, figure) { margin: 0; }
:where(.product-page main) :is(h1, h2, h3) { font-weight: 700; text-wrap: balance; line-height: 1.12; }
:where(.product-page main) h1 { font-size: clamp(2.25rem, 4.8vw, 4.6rem); letter-spacing: -.05em; }
:where(.product-page main) h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); letter-spacing: -.04em; }
:where(.product-page main) h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.wrap { width: min(1240px, calc(100% - clamp(32px, 8vw, 120px))); margin-inline: auto; }
.skip { position: absolute; left: 18px; top: 0; transform: translateY(-120%); background: white; padding: 8px 16px; z-index: 2; }
.skip:focus { transform: none; }
.crumbs { margin: clamp(18px, 2.4vw, 34px) 0; color: var(--muted); font-size: .88rem; }
.crumbs ol { padding: 0; list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.crumbs li + li::before { content: "/"; color: #969b96; margin-right: 10px; }
.crumbs a { text-decoration: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.hero-copy { padding-block: clamp(12px, 2vw, 30px); }
.product-intro { margin-top: 20px; max-width: 53ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.24rem); line-height: 1.48; }
.price { font-size: clamp(1.85rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -.045em; margin-top: clamp(18px, 2.6vw, 34px); line-height: 1.05; }
.price span { font-size: .64em; letter-spacing: -.025em; }
.price .price-vat { display: inline-block; margin-left: .35em; padding: .2em .45em; border-radius: 3px; background: var(--panel); color: var(--muted); font-size: .34em; font-weight: 650; letter-spacing: 0; vertical-align: .55em; white-space: nowrap; }
.price-note { color: var(--muted); font-size: .95rem; margin: 7px 0 22px; max-width: 42ch; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; background: var(--accent); color: white; padding: 11px 22px; border: 0; border-radius: 4px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.cta:hover { background: #8e0808; color: white; }
.cta:disabled { opacity: .68; cursor: progress; }
.cta span { display: inline-block; line-height: 1; font-size: 1.3em; }
.hero-photo { position: relative; margin: 0; overflow: hidden; border-radius: 5px; background: #e6e2d9; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1160 / 773; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; padding: 6px 12px; border-top-left-radius: 4px; background: rgb(29 31 28 / 82%); color: #fff; font-size: .78rem; }
.tabs { margin: clamp(32px, 5vw, 70px) 0 0; display: flex; flex-wrap: wrap; column-gap: clamp(18px, 3vw, 46px); padding: 6px 0; border-block: 1px solid var(--line); }
.tabs a { padding: 9px 0; text-decoration: none; font-size: .95rem; font-weight: 700; }
.spec-grid, .delivery, .questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 90px); padding: clamp(36px, 5vw, 72px) 0; scroll-margin-block-start: 20px; }
.spec-grid { align-items: start; }
.spec-list { margin-top: 24px; }
.spec-list > div { display: grid; grid-template-columns: 1fr 1.16fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 650; }
.spec-list dt, .spec-list dd { margin: 0; }
.source { margin-top: 14px; color: var(--muted); font-size: .91rem; }
.note { background: var(--panel); padding: clamp(22px, 3vw, 42px); border-left: 3px solid var(--accent); }
.note p, .delivery p { margin-top: 14px; }
.delivery, .questions { border-top: 1px solid var(--line); }
.delivery p, .questions p { color: var(--muted); }
.article-link { display: inline-block; margin-top: 18px; }
.article-link + .article-link { display: block; margin-top: 8px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 16px 34px 16px 0; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; font-size: 1.4em; color: var(--accent); font-weight: 400; line-height: 1; top: 18px; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; }
.estimate { background: var(--panel); }
.estimate-inner { padding: clamp(35px, 5vw, 72px) 0; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 92px); }
.estimate .selected { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-top: 24px; }
.estimate p + p { margin: 6px 0 18px; }
.estimate-phone { display: inline-block; font-weight: 700; }
.estimate-files { margin-top: 16px; color: var(--muted); font-size: .95rem; max-width: 34ch; }
.estimate .contact-form, .estimate .form-field { display: block; }
.lead-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.form-field { min-width: 0; }
.form-field:has(.addressInput), .form-field:has(.commentInput) { grid-column: 1 / -1; }
.form-field label { display: block; font-size: .95rem; font-weight: 650; margin: 0 0 5px; }
.form-field input, .form-field textarea { display: block; width: 100%; font: inherit; color: var(--ink); border: 1px solid #a1a6a1; border-radius: 4px; background: white; padding: 10px 12px; min-height: 48px; }
.form-field textarea { resize: vertical; }
/* Форма остаётся прежней: правила формы из style.css (высоты, отступы, фокус, цвет ссылки) здесь отменяются */
.estimate .form-field input:not([type="hidden"]):not([name="website"]) { height: auto; min-height: 48px; padding: 10px 12px; font-size: inherit; }
.estimate .ask-form-section .lead-form-fields textarea { height: auto; min-height: 48px; line-height: inherit; }
.estimate .ask-form-section .form-field :is(input, textarea) { line-height: inherit; }
.estimate .ask-form-section .form-field :is(input, textarea):focus { border: 1px solid #6d6c64 !important; border-radius: 4px !important; background: #fff !important; box-shadow: none !important; }
.estimate .ask-form-section .consent-checkbox-container { margin: 20px 0 12px; }
.estimate .ask-form-section button[type="submit"] { min-width: 0; padding: 11px 22px; }
.estimate .ask-form-section .consent-checkbox-container + button[type="submit"] { margin-top: 8px; }
.estimate .consent-link { color: inherit; }
.form-field input:focus, .form-field textarea:focus { border-color: #6d6c64; }
.form-field-error { display: block; color: #9c1111; font-size: .9rem; }
.form-field-error:empty { display: none; }
.form-field .is-invalid, .consent-checkbox-container.is-invalid { border-color: var(--accent); }
.consent-checkbox-container { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 12px; }
.estimate .consent-checkbox-container input[type="checkbox"] { position: static !important; appearance: auto; width: 20px !important; height: 20px !important; min-height: 0 !important; flex: none; accent-color: var(--accent); margin: 2px 0 0 !important; padding: 0 !important; overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important; border: 0 !important; }
.consent-checkbox-container label { font-size: .92rem; }
form .cta { margin-top: 8px; }
.section-thanks-message { display: none; padding: 14px 0; font-weight: 700; }
.related { padding-block: clamp(35px, 4vw, 58px); }
.related-links { display: flex; gap: 12px 30px; flex-wrap: wrap; margin-top: 20px; }
.related-links a { padding: 6px 0; }
.related-links span { color: var(--accent); }
/* Блок «Для организаций», сравнение пород и справочные таблицы по ГОСТ */
.delivery .org { grid-column: 1 / -1; padding: clamp(20px, 3vw, 34px); background: var(--panel); }
.org-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px clamp(24px, 4vw, 56px); margin-top: 16px !important; }
.org-list li { position: relative; padding-left: 20px; color: var(--muted); }
.org-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--accent); }
.rock-compare, .reference { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.rock-compare > p, .reference > p { margin-top: 16px; max-width: 78ch; color: var(--muted); font-size: .95rem; }
.rock-table-wrap { margin-top: 22px; overflow-x: auto; }
.rock-link { white-space: nowrap; }
.rock-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .97rem; }
.rock-table :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rock-table thead :is(th, td) { border-bottom: 2px solid var(--ink); font-weight: 700; }
.rock-table tbody th { color: var(--muted); font-weight: 400; width: 30%; }
.rock-table tbody td { font-weight: 650; }
.rock-table .is-current { background: var(--panel); }
.rock-table thead .is-current { box-shadow: inset 0 3px 0 var(--accent); }
.reference-table tbody th { color: var(--ink); font-weight: 650; width: auto; }
/* Плавающая кнопка сайта: иконки вместо шрифта Font Awesome */
.callBottom .messageBlock, .callBottom .iconPhone { display: flex; align-items: center; justify-content: center; height: 60px; }
.callBottom .iconPhone img { width: 26px; height: auto; }
/* Шапка сайта без обложки: тёмный фон под белые иконки, на компьютере — отступ под фиксированную шапку */
.nav-wrapper-mobile.nav-wrapper-plain { min-height: 0; padding-block: 10px; background: #2a2b2a; }
@media (min-width: 1025px) {
  html { scroll-padding-top: 120px; }
  .product-page main { padding-top: 107px; }
}
/* Визуализации товаров: кадр из кода, сравнение образцов, модель с видами */
.viz { position: relative; }
.viz-stage { position: relative; aspect-ratio: 1160 / 773; overflow: hidden; background: #e9e6df; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero-photo .viz-layer { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.viz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.viz-alt { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 68%)); }
.viz-divider { position: absolute; top: 0; bottom: 0; left: var(--split, 68%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 22%); pointer-events: none; }
.viz-grip { display: none; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 35%); }
.viz-grip::before, .viz-grip::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border: 5px solid transparent; }
.viz-grip::before { left: 7px; border-right: 6px solid var(--ink); border-left-width: 0; }
.viz-grip::after { right: 7px; border-left: 6px solid var(--ink); border-right-width: 0; }
.viz.is-ready .viz-grip { display: block; }
.viz-compare.is-ready .viz-stage { cursor: ew-resize; }
.viz-range:focus-visible + .viz-stage .viz-grip { outline: 3px solid #9f3100; outline-offset: 3px; }
.viz-tag { position: absolute; top: 10px; padding: 4px 9px; border-radius: 3px; background: rgb(255 255 255 / 92%); color: var(--ink); font-size: .8rem; font-weight: 700; line-height: 1.25; pointer-events: none; transition: opacity .2s; }
.viz-tag-main { left: 10px; padding-left: 12px; box-shadow: inset 3px 0 0 var(--accent); }
.viz-tag-alt { right: 10px; color: var(--muted); font-weight: 600; }
.viz.is-alt-small .viz-tag-alt, .viz.is-main-small .viz-tag-main { opacity: 0; }
.viz-tag small { display: block; margin-top: 1px; color: var(--muted); font-size: .72em; font-weight: 600; }
.viz-mark { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 35%); pointer-events: none; }
.viz-inset { position: absolute; aspect-ratio: 1; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 2px 8px rgb(0 0 0 / 35%); overflow: hidden; background: #8c877e; }
.hero-photo .viz-inset img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.viz-ruler-inset { left: 8px; bottom: 20px; }
.viz-ruler-inset::before { inset: -6px -7px -17px; }
.viz-inset-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgb(255 255 255 / 90%); color: var(--ink); font-size: .68rem; font-weight: 650; line-height: 1.25; }
.viz-scheme { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-label { position: absolute; padding: 1px 5px; border-radius: 3px; background: rgb(233 230 223 / 86%); color: var(--ink); font-size: .74rem; font-weight: 650; line-height: 1.25; white-space: nowrap; pointer-events: none; }
.viz-label-dark { background: rgb(47 49 46 / 72%); color: #fff; }
.viz-label-muted { color: var(--muted); font-weight: 600; }
.viz-label sub { font-size: .75em; }
.viz-views.viz-views-right { left: auto; right: 10px; }
.viz-label-formula { padding: 3px 9px; background: #fff; font-size: .9rem; font-weight: 750; box-shadow: inset 3px 0 0 var(--accent); }
.viz-scheme-block .viz-tag { max-width: calc(100% - 20px); }
.viz-flow { animation: viz-dash 1.1s linear infinite; animation-play-state: paused; }
.viz.is-visible .viz-flow { animation-play-state: running; }
@keyframes viz-dash { to { stroke-dashoffset: -19; } }
.viz-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr); align-items: end; gap: 8px 10px; padding: 14px 14px 12px; background: var(--panel); }
.viz-calc label { display: grid; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.viz-calc input { width: 100%; min-height: 40px; padding: 6px 9px; border: 1px solid #a1a6a1; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.viz-calc input:focus-visible { outline: 3px solid #9f3100; outline-offset: 2px; }
.viz-calc-op { padding-bottom: 9px; font-weight: 700; color: var(--muted); }
.viz-calc-out { padding-bottom: 8px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.viz-calc-out output { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.viz-calc-note { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
/* У модели забора подписи размеров доходят до нижнего края кадра — подпись блока выводим под кадром */
.hero-photo:has(.viz-model) figcaption { position: static; display: block; border-radius: 0; background: #e6e2d9; color: var(--muted); }
.hero-photo:has(.viz-with-calc) figcaption { top: 0; bottom: auto; border-radius: 0 0 0 4px; }
@media (prefers-reduced-motion: reduce) { .viz-flow { animation: none; } }
.viz-ruler { position: absolute; left: 14px; bottom: 26px; width: var(--ruler); height: 8px; color: #1f211f; pointer-events: none; }
.viz-ruler::before { content: ""; position: absolute; inset: -7px -9px -19px; border-radius: 3px; background: rgb(255 255 255 / 92%); }
.viz-ruler-bar { position: absolute; inset: 0; border: solid currentColor; border-width: 0 1.5px 1.5px; background: repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px calc(100% / var(--ticks))); }
.viz-ruler-0, .viz-ruler-n { position: absolute; top: 9px; font-size: .72rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.viz-ruler-0 { left: 0; }
.viz-ruler-n { right: 0; }
.viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.viz-stage.is-live .viz-canvas { opacity: 1; }
.viz-stage.is-live { cursor: grab; }
.viz-stage.is-live:active { cursor: grabbing; }
.viz-dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.viz-dims path { fill: none; stroke: #2f312e; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.viz-dim { position: absolute; transform: translate(-50%, -50%); padding: 1px 5px; border-radius: 3px; background: rgb(233 230 223 / 90%); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.viz-dim[hidden] { display: none; }
.viz-views { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; padding: 2px; border-radius: 4px; background: rgb(255 255 255 / 94%); box-shadow: 0 1px 3px rgb(0 0 0 / 16%); }
.viz-views[hidden] { display: none; }
.viz-views button { min-height: 32px; padding: 5px 10px; border: 0; border-radius: 3px; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 650; line-height: 1.2; cursor: pointer; }
.viz-views button:hover { color: var(--ink); }
.viz-views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .hero, .spec-grid, .delivery, .questions, .estimate-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 22px; }
  .hero-copy { padding: 0; }
  .hero-photo { max-width: 640px; }
  .tabs { margin-top: 26px; gap: 0 18px; }
  .spec-grid, .delivery, .questions { gap: 24px; }
  .org-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .product-page main { font-size: 16px; }
  .lead-form-fields { grid-template-columns: 1fr; }
  .crumbs { font-size: .81rem; }
  .spec-list > div { grid-template-columns: .95fr 1.05fr; }
  .price .price-vat { margin: 6px 0 0; vertical-align: baseline; }
}
/* Компактные подписи визуализации зависят от ширины самого кадра: узкий кадр бывает и на планшете,
   где карточка выводится в две колонки. Для браузеров без контейнерных запросов — то же по ширине экрана. */
.hero-photo { container: viz / inline-size; }
@container viz (max-width: 500px) {
  .viz-ruler-inset .viz-ruler-0 { display: none; }
  .viz-tag { top: 8px; padding: 3px 7px; font-size: .74rem; }
  .viz-tag-main { left: 8px; padding-left: 10px; }
  .viz-tag-alt { right: 8px; }
  .viz-ruler { left: 12px; bottom: 24px; }
  .viz-views { top: 8px; left: 8px; }
  .viz-views.viz-views-right { left: auto; right: 8px; }
  .viz-views button { min-height: 34px; padding: 5px 8px; font-size: .74rem; }
  .viz-dim { font-size: .7rem; padding: 1px 4px; }
  .viz-label { font-size: .62rem; padding: 0 3px; }
  .viz-label-formula { font-size: .76rem; padding: 2px 6px; }
  .viz-opt { display: none; }
  .viz-inset-label { font-size: .58rem; padding: 2px 4px; }
  .viz-calc { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 12px; }
  .viz-calc-out { grid-column: 1 / -1; padding-bottom: 0; }
  .viz-calc-op:nth-of-type(2) { display: none; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 440px) {
    .viz-tag { top: 8px; padding: 3px 7px; font-size: .74rem; }
    .viz-tag-main { left: 8px; padding-left: 10px; }
    .viz-tag-alt { right: 8px; }
    .viz-ruler { left: 12px; bottom: 24px; }
    .viz-views { top: 8px; left: 8px; }
    .viz-views.viz-views-right { left: auto; right: 8px; }
    .viz-views button { min-height: 34px; padding: 5px 8px; font-size: .74rem; }
    .viz-dim { font-size: .7rem; padding: 1px 4px; }
    .viz-label { font-size: .62rem; padding: 0 3px; }
    .viz-label-formula { font-size: .76rem; padding: 2px 6px; }
    .viz-opt { display: none; }
    .viz-inset-label { font-size: .58rem; padding: 2px 4px; }
    .viz-calc { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 12px; }
    .viz-calc-out { grid-column: 1 / -1; padding-bottom: 0; }
    .viz-calc-op:nth-of-type(2) { display: none; }
  }
}
@media print {
  .primary-header, .callBottom, .tabs, .cta, .estimate, .footer, .related, .skip { display: none; }
  .wrap { width: 100%; }
  section, .note { break-inside: avoid; }
  .hero-photo { max-width: 300px; }
}
