/* Техно-Строй page CSS. Tokens only; values live in theme.css. */

body { padding-bottom: 72px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Header */
.site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-mark { width: 14px; height: 28px; background: var(--field-1); box-shadow: 8px 0 0 var(--accent-fill); margin-right: 8px; }
.header-phone { display: none; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-micro); color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .button { min-height: 44px; padding: 10px 18px; }
@media (min-width: 1100px) { .header-phone { display: block; } }
@media (max-width: 899px) { .header-cta { display: none; } }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: var(--fs-small); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: var(--surface); border-top: 3px solid var(--accent-fill); box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 18%, transparent); padding: 8px 0; }
.menu-panel a { display: block; padding: 12px 20px; text-decoration: none; font-weight: 600; }
.menu-panel a[aria-current] { color: var(--accent-text); }
@media (min-width: 900px) { .menu { display: none; } }

/* Mobile action bar: the call and the request never hide */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-field); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-weight: 700; text-decoration: none; color: var(--on-ink); }
.action-bar a + a { background: var(--accent-fill); color: var(--accent-on-fill); }
.action-bar svg, .button svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* Hero */
.hero-home { min-height: 0; padding-block: clamp(28px, 5vw, 72px) 0; }
.hero-home .hero-inner { align-items: end; }
.hero-home .display { max-width: 12ch; }
.hero-media { aspect-ratio: 16 / 11; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); text-decoration: none; font-variant-numeric: tabular-nums; }
.hero-phone span { display: block; font-family: var(--font-body); font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.hero-sub { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.hero-sub .display { font-size: clamp(2rem, 1rem + 3.6vw, 4rem); }
.crumbs { font-size: var(--fs-small); color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: inherit; }

/* Signature: container price strip, colour blocks that touch */
.containers { display: grid; margin-top: clamp(32px, 4vw, 56px); }
.container-block { display: grid; gap: 8px; align-content: space-between; padding: clamp(20px, 3vw, 36px); background: var(--field-bg); color: var(--field-ink); min-height: 190px; }
.container-block .vol { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; }
.container-block .vol sup { font-size: 0.35em; vertical-align: top; letter-spacing: 0; }
.container-block .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-variant-numeric: tabular-nums; }
.container-block p { font-size: var(--fs-small); }
@media (min-width: 700px) { .containers { grid-template-columns: 5fr 4fr 3fr; } }

/* Service rows: a list that reads like a yard signboard */
.service-rows > li { border-top: 1px solid var(--line-strong); }
.service-rows > li:last-child { border-bottom: 1px solid var(--line-strong); }
.service-rows a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding-block: 22px; text-decoration: none; }
.service-rows a:hover .h3 { color: var(--accent-text); }
.service-rows .h3 { transition: color 200ms var(--ease-out); }
.service-rows p { grid-column: 1; color: var(--muted-strong); max-width: 56ch; }
.service-rows .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-text); }

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

/* Reviews */
.reviews { display: grid; gap: clamp(32px, 4vw, 56px); }
.review-small { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .reviews { grid-template-columns: 7fr 5fr; align-items: start; } }

/* Prices */
.board td.num-cell strong { font-family: var(--font-display); font-size: 1.05rem; }
.board th[scope="row"] { font-weight: 600; }
.board-note { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 639px) {
  .board thead { display: none; }
  .board tr { display: grid; padding: 14px 16px; border-top: 1px solid var(--line); }
  .board th, .board td { padding: 2px 0; border: 0; }
  .board td.num-cell { text-align: left; white-space: normal; }
}

/* Service detail sections */
.svc { display: grid; gap: clamp(24px, 4vw, 56px); }
.svc .media img { aspect-ratio: 3 / 2; }
.ticks > li { position: relative; padding-left: 28px; }
.ticks > li + li { margin-top: 10px; }
.ticks > li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 6px; background: var(--accent-fill); }
@media (min-width: 900px) { .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .svc-flip > :first-child { order: 2; } }

/* Other projects */
.projects .field { text-decoration: none; min-height: 180px; }
.projects .field:hover .h3 { text-decoration: underline; }

/* Request form */
.request { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .request { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border-top: 4px solid var(--accent-fill); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label, .form legend { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; }
.form input[type="text"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 0;
  background: var(--bg); font-size: 1rem;
}
.form textarea { min-height: 96px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line-strong); font-weight: 600; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.form .consent { display: flex; margin: 0; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted-strong); }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent-fill); }
.form .button { width: 100%; }
.form-error { color: var(--accent-text); font-weight: 700; font-size: var(--fs-small); min-height: 1.2em; }
.form-done { display: grid; gap: 12px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border-top: 4px solid var(--field-1); }
.stub-note { font-size: var(--fs-micro); color: var(--muted); }

/* Contacts */
.map { width: 100%; height: clamp(320px, 50vw, 480px); border: 0; display: block; background: var(--surface-2); }
.kv a { font-weight: 700; }

/* Footer */
.footer-top { display: grid; gap: 24px; padding-bottom: 40px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-decoration: none; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }
.footer-legal { margin-top: 32px; color: var(--muted); }
.header-call-m { padding: 10px 12px; }
@media (max-width: 899px), (min-width: 1100px) { .header-call-m { display: none; } }
.band-ink .index-list > li { border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.band-ink .index-list > li::before { color: var(--field-1); }
.band-ink .index-list p { color: var(--on-ink-muted); }
.h2, .display { overflow-wrap: break-word; }
.svc .h2 { font-size: clamp(1.45rem, 1rem + 1.3vw, 2.1rem); }
.hero-sub { min-height: 0; }
