*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

:root {
  --paper: #f4f1ea;
  --ink: #1d1b17;
  --clay: #a8491f;
  --sand: #e7e0d2;
  --muted: #767065;
  --dark: #201e1a;
  --line: #d9d2c3;
  --font-sans: 'Manrope', Arial, sans-serif;
  --font-serif: 'Spectral', Georgia, serif;
}

.section { padding: 6rem 0; }
.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
  max-width: 22ch;
}
.section-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.kicker--dark { color: var(--sand); }

em { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--clay); }

/* Photo slots: intentional placeholders, ready to swap for real photography */
.ph {
  position: relative;
  margin: 0;
  background:
    repeating-linear-gradient(135deg, rgba(29,27,23,0.04) 0 2px, transparent 2px 10px),
    var(--sand);
  border: 1px dashed #b3a992;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ph figcaption {
  padding: 0.9rem 1rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a8172;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.7rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay); color: #fff; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.text-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(29, 27, 23, 0.45);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.logo { font-weight: 800; letter-spacing: 0.08em; font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.logo-note { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.logo-img {
  display: block;
  height: 40px;   /* width auto-computes to ~168px, ratio 724:172 preserved */
  width: auto;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: var(--clay); border-bottom-color: var(--clay); }
.header-side { display: flex; align-items: center; gap: 1.2rem; }
.header-phone {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.header-phone:hover { background: var(--clay); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem 0; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 4.5rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.eyebrow-city {
  white-space: nowrap;  /* не разрывать «Санкт-Петербурге» по дефису */
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
  margin-bottom: 1.4rem;
}
.hero-sub { font-size: 1.1rem; font-weight: 400; color: var(--muted); max-width: 40ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-media { position: relative; }
.ph-hero { aspect-ratio: 4 / 5; width: 78%; margin-left: auto; }
.ph-hero-detail {
  position: absolute;
  left: 0;
  bottom: -2.2rem;
  width: 44%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 48px rgba(29, 27, 23, 0.14);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem;
}
.meta-item { border-top: 1px solid var(--ink); padding-top: 0.8rem; }
.meta-item b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.meta-item span { font-size: 0.78rem; color: var(--muted); }

/* Manifesto */
.manifesto { padding: 5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-inner { max-width: 900px; }
.manifesto-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.35;
}

/* Materials archive */
.material {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}
.material:last-child { border-bottom: 1px solid var(--line); }
.material-index { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--muted); align-self: start; padding-top: 0.4rem; }
.material--flip .material-body { order: 2; }
.material--flip .ph-material { order: 3; }
.ph-material { aspect-ratio: 4 / 3; }
.material-body h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.material-body p { color: var(--muted); max-width: 44ch; margin-bottom: 1.4rem; }
.material-specs { list-style: none; margin-bottom: 1.6rem; }
.material-specs li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}
.material-specs li::before { content: '—'; color: var(--clay); margin-right: 0.6rem; }

/* Library */
.library { background: var(--sand); }
.library-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.chip {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip.is-active, .chip:hover { background: var(--ink); color: var(--paper); }
.library-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.library-preview { margin: 0; position: sticky; top: 110px; }
.ph-swatch { aspect-ratio: 4 / 3; border: 1px solid rgba(29, 27, 23, 0.15); transition: background 0.25s; }
.library-preview figcaption { margin-top: 1rem; }
.library-preview b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.library-preview span { color: var(--muted); font-size: 0.9rem; }
.swatches { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(29, 27, 23, 0.15);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 0;
  font-family: inherit;
  position: relative;
  transition: outline-color 0.2s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.swatch.is-active { outline-color: var(--clay); }
.swatch span {
  background: rgba(244, 241, 234, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.5rem;
  color: var(--ink);
}
.library-note { margin-top: 2.5rem; font-size: 0.85rem; color: var(--muted); max-width: 52ch; }

/* Abstract material tones */
.tone-terracotta { background: linear-gradient(150deg, #b45a33, #8f4222); }
.tone-clay-light { background: linear-gradient(150deg, #c98a63, #a96643); }
.tone-burnt { background: linear-gradient(150deg, #7e4433, #5e3125); }
.tone-smoke { background: linear-gradient(150deg, #776d63, #544c44); }
.tone-mustard { background: linear-gradient(150deg, #cf9d4a, #a97c30); }
.tone-rose { background: linear-gradient(150deg, #c28d7d, #9d6a5b); }
.tone-graphite { background: linear-gradient(150deg, #494543, #2a2826); }
.tone-grey { background: linear-gradient(150deg, #968f85, #6d675f); }
.tone-sand { background: linear-gradient(150deg, #e0c9a0, #c2a474); }
.tone-amber { background: linear-gradient(150deg, #c99a5c, #a3773c); }
.tone-cream { background: linear-gradient(150deg, #efe5d0, #d6c6a8); }
.tone-concrete { background: linear-gradient(150deg, #b0aca3, #8b877f); }

/* Technology (dark) */
.technology { background: var(--dark); color: #efece4; }
.technology .section-title { color: #efece4; }
.technology .section-lead { color: #a49d90; }
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 1rem;
}
.spec-grid > div { border-top: 1px solid #45423c; padding-top: 1rem; }
.spec-grid dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: #a49d90; font-weight: 700; margin-bottom: 0.5rem; }
.spec-grid dd { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* Flexibility */
.curve-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-bottom: 3rem; }
.curve-list li { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.curve-list li::after { content: '·'; margin-left: 1.6rem; color: var(--clay); }
.curve-list li:last-child::after { content: ''; }
.bend-band { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; align-items: end; }
.ph-bend { aspect-ratio: 3 / 4; }
.ph-arch { aspect-ratio: 3 / 4; margin-bottom: 2.2rem; }
.ph-wall { aspect-ratio: 3 / 4; }

/* Montage */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--clay); display: block; margin-bottom: 0.8rem; }
.steps h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.steps p { font-size: 0.85rem; color: var(--muted); }
.montage-note { margin-top: 3rem; font-size: 0.95rem; color: var(--muted); max-width: 56ch; }

/* Application */
.ph-wide { aspect-ratio: 21 / 9; margin-bottom: 3rem; }
.use-index { list-style: none; display: grid; grid-template-columns: 1fr 1fr; counter-reset: use; }
.use-index li {
  counter-increment: use;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}
.use-index li::before {
  content: counter(use, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--clay);
  flex: none;
}

/* Contacts */
.contacts { background: var(--sand); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 1.8rem; }
.room { border-top: 2px solid var(--ink); padding-top: 1rem; }
.room h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; }
.room p { color: var(--muted); font-size: 0.95rem; }
.room-note { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; margin-bottom: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.contact-phones a { font-weight: 700; }
.contact-phones a:hover { color: var(--clay); }

/* Footer */
.site-footer { background: var(--dark); color: #b6b0a3; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.logo--footer { color: #efece4; margin-bottom: 0.9rem; }
.logo-img--footer {
  height: 48px;
  width: auto;
  filter: invert(1);  /* keep: dark artwork -> light, for the dark footer */
}
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { font-size: 0.85rem; }
.footer-nav a:hover, .footer-contacts a:hover { color: #efece4; }
.footer-contacts { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.85rem; }
.footer-contacts p { margin-top: 0.4rem; }
.footer-legal {
  border-top: 1px solid #45423c;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

/* Calculator modal */
.calc-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.calc-modal[hidden] { display: none; }
.calc-overlay { position: absolute; inset: 0; background: rgba(29, 27, 23, 0.55); }
.calc-dialog {
  position: relative;
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.calc-close {
  position: absolute; top: 0.9rem; right: 1rem;
  border: 0; background: none; font-size: 1.9rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.calc-close:hover { color: var(--ink); }

.calc-body { flex: 1; }
.calc-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.6rem; }
.calc-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; line-height: 1.55; }

/* Step 1: cards */
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc-card {
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; padding: 0; text-align: left;
  font-family: inherit; transition: border-color 0.2s;
}
.calc-card.is-selected { border-color: var(--clay); }
.calc-card-img { display: block; aspect-ratio: 4 / 3; background: var(--sand) center / cover; }
.calc-card-label { display: block; padding: 0.8rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* Step 2: radios */
.calc-radios { display: flex; flex-direction: column; gap: 0.8rem; }
.calc-radio {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1.1rem;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.calc-radio.is-selected { border-color: var(--clay); background: #fdf6f1; }
.calc-radio input[type="radio"] { position: absolute; opacity: 0; }
.calc-radio-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); position: relative; transition: border-color 0.2s;
}
.calc-radio.is-selected .calc-radio-dot { border-color: var(--clay); }
.calc-radio.is-selected .calc-radio-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--clay);
}
.calc-radio-label { font-size: 0.95rem; font-weight: 600; }
.calc-radio-extra {
  flex: 1; min-width: 140px; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.3rem 0; font: inherit; background: transparent; outline: none;
}
.calc-radio-extra:focus { border-bottom-color: var(--clay); }
.calc-radio-counter { font-size: 0.75rem; color: var(--muted); margin-left: auto; }

/* Step 3: slider */
.calc-square-input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem 1rem; font: inherit; font-size: 1.1rem; margin-bottom: 1.6rem;
}
.calc-square-input:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: transparent; }
.calc-slider-wrap { display: flex; justify-content: center; gap: 1.4rem; height: 320px; }
.calc-ticks { position: relative; width: 52px; }
.calc-tick {
  position: absolute; right: 0; transform: translateY(50%);
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
}
.calc-slider {
  -webkit-appearance: none; appearance: none;
  writing-mode: vertical-lr;            /* вертикальный слайдер */
  direction: rtl;                       /* max сверху, min снизу */
  width: 36px; height: 100%;
  background: transparent; cursor: pointer;
}
.calc-slider::-webkit-slider-runnable-track {
  width: 10px; border-radius: 999px;
  background: linear-gradient(to top, var(--clay) var(--fill, 0%), #eee var(--fill, 0%));
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--clay); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); margin-left: -8px;
}
.calc-slider::-moz-range-track { width: 10px; border-radius: 999px; background: #eee; }
.calc-slider::-moz-range-progress { background: var(--clay); border-radius: 999px; }
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--clay); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Step 4: form */
.calc-field-label { display: block; font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0.4rem; }
.calc-input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem 1rem; font: inherit;
}
.calc-input:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: transparent; }
.calc-phone-row { display: flex; gap: 0.6rem; }
.calc-phone-prefix {
  display: flex; align-items: center; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 700; background: var(--paper);
}
.calc-submit {
  width: 100%; margin-top: 1.4rem; padding: 1rem;
  border: 0; border-radius: 8px; background: var(--clay); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: filter 0.2s;
}
.calc-submit:hover { filter: brightness(1.08); }
.calc-consent { display: flex; gap: 0.6rem; margin-top: 1rem; font-size: 0.82rem; color: var(--muted); align-items: flex-start; }
.calc-consent input { accent-color: var(--clay); margin-top: 3px; }
.calc-consent a { color: var(--clay); text-decoration: underline; }

/* Footer: progress + nav */
.calc-footer { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.calc-progress { flex: 1; }
.calc-progress-label { font-size: 0.85rem; color: var(--muted); }
.calc-progress-label b { color: var(--ink); }
.calc-progress-bar { height: 6px; border-radius: 999px; background: #eee; margin-top: 0.4rem; overflow: hidden; }
.calc-progress-fill { height: 100%; width: 0; background: var(--clay); border-radius: 999px; transition: width 0.3s; }
.calc-nav {
  border: 0; border-radius: 8px; padding: 0.85rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: filter 0.2s, opacity 0.2s;
}
.calc-nav--next { background: var(--clay); color: #fff; }
.calc-nav--next:hover:not(:disabled) { filter: brightness(1.08); }
.calc-nav--back { background: var(--paper); color: var(--ink); }
.calc-nav:disabled { opacity: 0.4; cursor: default; }

/* Responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: 1fr; }
  .library-preview { position: static; }
}
@media (max-width: 760px) {
  .section { padding: 4rem 0; }
  .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 0.5rem 20px 1.2rem;
    border-bottom: 1px solid var(--line);
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .nav a:hover { border-bottom-color: var(--line); }
  .header-side .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .logo-note { display: none; }
  .eyebrow-city { display: block; }
  .header-phone { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .logo-img { height: 32px; }

  .hero { padding: 2.5rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy h1 { max-width: 100%; }
  .ph-hero { width: 100%; aspect-ratio: 4 / 5; }
  .ph-hero-detail { bottom: -1.8rem; width: 46%; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; margin-top: 3.5rem; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .material { grid-template-columns: 1fr; gap: 1.2rem; padding: 2.8rem 0; }
  .material-index { padding-top: 0; }
  .material--flip .material-body,
  .material--flip .ph-material { order: 0; }

  .swatches { display: flex; overflow-x: auto; gap: 0.7rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .swatches li { flex: 0 0 42%; }
  .library-tools { flex-wrap: nowrap; overflow-x: auto; }

  .spec-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .bend-band { grid-template-columns: 1fr 1fr; }
  .ph-bend { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ph-arch { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .ph-wide { aspect-ratio: 4 / 3; }
  .use-index { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-actions .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .calc-dialog { padding: 2rem 1.2rem 1.2rem; }
  .calc-cards { gap: 0.7rem; }
  .calc-slider-wrap { height: 240px; }
  .calc-footer { flex-wrap: wrap; }
  .calc-progress { flex: 1 1 100%; }
}
