/* Page CSS for Техно-Строй: tokens only, colours live in theme.css. */

body { padding-bottom: 72px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
.display, .h2 { text-transform: uppercase; }
.h2 { line-height: 1.2; }
.h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.prose p, .prose li { max-width: 66ch; }
.prose ul { display: grid; gap: 8px; margin-top: 12px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }
.prose h2 { margin-top: 40px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }

/* ── Header ── */
.site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-mark { display: inline-block; width: 14px; height: 14px; background: var(--accent-fill); align-self: center; }
.brand small { display: none; font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
@media (min-width: 1100px) { .brand small { display: inline; } }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-actions .button { display: none; min-height: 44px; padding: 10px 18px; }
@media (min-width: 760px) { .header-phone { display: inline; } }
@media (min-width: 900px) { .header-actions .button { display: inline-flex; } }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

.mnav { position: static; }
.mnav summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-button); font-weight: 700; font-size: var(--fs-small); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { border-color: var(--ink); }
.mnav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line-strong); padding: 8px 16px 20px; }
.mnav-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.mnav-panel a[aria-current] { color: var(--accent-text); }
@media (min-width: 900px) { .mnav { display: none; } }

/* ── Bottom action bar on phones: the call and the request never hide. ── */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line-strong); }
.action-bar .button { min-height: 48px; padding: 10px 12px; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ── Breadcrumbs ── */
.crumbs { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted-strong); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }

/* ── Hero ── */
.hero { min-height: 0; padding-block: clamp(32px, 6vw, 88px); }
.hero-media { aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-media { aspect-ratio: 5 / 4; } }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 16px; border-top: 2px solid var(--ink); max-width: 34rem; }
.hero-price strong { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1; }
.hero-price span { color: var(--muted-strong); font-size: var(--fs-small); }
.hero-compact .display { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); }

/* ── Signature: volume strip, the size painted large like on a container side ── */
.volumes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.volumes > a, .volumes > div { display: grid; gap: 6px; align-content: start; padding: 20px 16px 24px 0; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.volumes .vol { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 4.4vw, 6.5rem); line-height: 0.9; letter-spacing: -0.01em; }
.volumes .vol sup { font-size: 0.4em; vertical-align: top; margin-left: 2px; }
.volumes .vol-price { font-weight: 700; font-size: 1.125rem; }
.volumes .vol-note { color: var(--muted); font-size: var(--fs-small); }
.volumes .is-new .vol { color: var(--accent-text); }
.volumes > a:hover .vol { color: var(--accent-text); }
@media (min-width: 900px) { .volumes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .volumes > a, .volumes > div { padding-right: 24px; border-bottom: 0; } .volumes > * + * { padding-left: 24px; border-left: 1px solid var(--line-strong); } }
.tag-new { display: inline-block; justify-self: start; padding: 2px 8px; background: var(--accent-fill); color: var(--accent-on-fill); font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--radius-sm); }

/* ── Service rule list with links ── */
.rule-list a.h3 { text-decoration: none; }
.rule-list a.h3:hover { color: var(--accent-text); }
.rule-list .price-line { font-weight: 700; }

/* ── Price board: rows become blocks on phones, nothing is cut off ── */
.board-wrap { overflow-x: auto; }
.board td small { display: block; color: var(--muted); font-size: var(--fs-small); }
.board .big { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; white-space: nowrap; }
@media (max-width: 999px) {
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .board tr:first-child { border-top: 0; }
  .board td { padding: 4px 0; border: 0; text-align: left; }
  .board td.num-cell { text-align: left; }
  .board td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tr-eyebrow); color: var(--muted); }
}

/* ── Photo strip ── */
.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-strip figure:first-child { grid-column: 1 / -1; }
.photo-strip img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .photo-strip { grid-template-columns: 2fr 1fr; } .photo-strip figure:first-child { grid-column: auto; grid-row: span 2; } .photo-strip figure:first-child img { aspect-ratio: auto; height: 100%; } }

/* ── Reviews ── */
.reviews { display: grid; gap: 0 clamp(24px, 4vw, 56px); }
.reviews figure { padding-block: 20px 24px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; }
.reviews blockquote { font-size: 1.0625rem; line-height: 1.5; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Fields with links ── */
.field a { color: inherit; }
.field .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }

/* ── Order form (the brief) ── */
.brief { align-items: start; }
.order-form { display: grid; gap: 16px; }
.order-form .row { display: grid; gap: 16px; }
@media (min-width: 560px) { .order-form .row { grid-template-columns: 1fr 1fr; } }
.order-form label { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-small); }
.order-form input, .order-form select, .order-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: 1rem; font-weight: 400; }
.order-form textarea { min-height: 96px; resize: vertical; }
.order-form input:focus-visible, .order-form select:focus-visible, .order-form textarea:focus-visible { border-color: var(--accent); }
.order-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.order-form .consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--accent-fill); }
.order-form .consent a { color: var(--accent-text); }
.order-form .error { color: var(--accent-text); font-weight: 600; font-size: var(--fs-small); min-height: 0; }
.order-form .error:empty { display: none; }
.order-form .button { justify-self: start; }
.form-done { display: grid; gap: 12px; }
.form-done[hidden] { display: none; }
.demo-note { font-size: var(--fs-small); color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; }
.req { color: var(--accent-text); }

/* ── Map ── */
.map { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .map { aspect-ratio: 16 / 10; } }

/* ── Footer ── */
.footer-top { display: grid; gap: 20px; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.footer-top .brand { font-size: 1.6rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }
.footer-legal { margin-top: 40px; color: var(--muted); }

.page-404 { min-height: 60svh; }
a.field { text-decoration: none; min-height: 150px; }
a.field .h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a.field:hover .h3 { text-decoration-thickness: 3px; }
.order-form[hidden] { display: none; }
