/* ТЭРЗ. Оформление автономной HTML-версии презентации.
   Цвета, ширина страницы и базовые размеры меняются в :root. */
:root {
  --navy: #07314d;
  --navy-deep: #062b43;
  --red: #d92936;
  --red-dark: #bd1826;
  --ink: #172f3f;
  --muted: #526571;
  --paper: #ffffff;
  --soft: #f2f5f6;
  --line: #d9e1e5;
  --page-width: 1280px;
  --page-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.viewer-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red-dark); }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
figure, h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding-left: 1.25em; }
li + li { margin-top: .45em; }
strong { font-weight: 700; }
::selection { background: #e5b7bf; color: var(--navy-deep); }
:focus-visible { outline: 3px solid #c63a18; outline-offset: 5px; }
.container { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: var(--page-gutter); }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: 12px; padding: 10px 20px; transform: translateY(-180%); background: var(--paper); color: var(--navy); font-weight: 700; border: 2px solid var(--navy); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Верхняя навигация */
.site-header { position: sticky; z-index: 50; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; flex-shrink: 0; width: 284px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; }
.site-nav a { color: var(--navy); font-size: 14px; line-height: 1.3; font-weight: 700; text-decoration: none; padding-block: 10px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: var(--red-dark); border-bottom-color: var(--red); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); background: white; font-weight: 700; font-size: 14px; line-height: 1.4; }

/* Обложка и ключевые показатели */
.hero { overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; gap: 48px; align-items: center; padding-block: 66px 54px; }
.hero-copy { min-width: 0; padding-block: 8px; }
.eyebrow { color: #d5e4eb; font-size: 12px; line-height: 1.6; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 23px; }
.hero h1 { color: #fff; font-size: clamp(34px, 3.65vw, 52px); line-height: 1.13; font-weight: 700; letter-spacing: -.025em; overflow-wrap: normal; }
.hero-lead { max-width: 510px; margin-top: 25px; color: #e1ebef; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 12px 21px; font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: none; border: 1px solid transparent; transition: background-color .18s, border-color .18s; }
.button-primary { color: #fff; background: var(--red); border-color: var(--red); }
.button-primary:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button-outline { color: #fff; border-color: #8ba6b7; background: transparent; }
.button-outline:hover { color: #fff; background: #164761; border-color: #c0d2dd; }
.hero-photo { min-width: 0; }
.hero-photo .media { background: #123e55; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { margin-top: 12px; color: #c9d9e2; font-size: 12px; line-height: 1.5; }
.metrics { background: var(--soft); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0; padding-block: 30px; }
.metric { padding-inline: 38px; border-left: 1px solid #ccd8df; }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric strong { display: block; color: var(--navy); font-size: 39px; line-height: 1.18; font-weight: 700; letter-spacing: -.035em; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.metric-source { color: var(--muted); padding-bottom: 17px; font-size: 11px; line-height: 1.5; }

/* Общие разделы и фотографии */
.section { padding-block: 78px; scroll-margin-top: 108px; }
.section-muted, .section-soft, .section-tint { background: var(--soft); }
.section-heading { max-width: 850px; margin-bottom: 36px; }
.section-kicker { display: block; color: var(--red-dark); font-size: 12px; line-height: 1.4; letter-spacing: .11em; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
h2 { color: var(--navy); font-size: clamp(28px, 2.8vw, 39px); line-height: 1.2; font-weight: 700; letter-spacing: -.022em; }
.section-heading > p:not(.section-kicker) { margin-top: 16px; color: var(--muted); max-width: 760px; }
h3 { color: var(--navy); font-size: 23px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.prose p + p { margin-top: 18px; }
.prose h2, .prose h3 { margin-bottom: 21px; }
.prose { min-width: 0; }
.prose .lead { font-size: 20px; line-height: 1.6; }
.text-link { display: inline-block; margin-top: 23px; font-size: 14px; font-weight: 700; }
.media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e7edef; overflow: hidden; line-height: 0; text-align: left; cursor: zoom-in; }
.media img { width: 100%; object-fit: cover; transition: filter .2s ease; }
.media:hover img { filter: brightness(.94); }
.media:focus-visible { outline-offset: 4px; z-index: 1; }
.zoom-hint { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; min-width: 35px; min-height: 35px; padding: 6px 11px; background: rgba(5,36,55,.88); color: #fff; border: 1px solid rgba(255,255,255,.48); font-size: 13px; line-height: 1.35; font-weight: 700; opacity: 0; transition: opacity .18s; }
.media:hover .zoom-hint, .media:focus-visible .zoom-hint { opacity: 1; }
figcaption { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 11px; }
.about-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 48px; align-items: center; }
.about-grid > figure img { aspect-ratio: 1.7; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.photo-pair img { aspect-ratio: 2.15; object-fit: cover; }

/* Направления ремонта */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; row-gap: 32px; }
.service:first-child { grid-row: span 3; }
.service { position: relative; padding-top: 25px; border-top: 2px solid var(--navy); }
.service .number, .service > .item-number { display: block; color: var(--red-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 11px; }
.service h3 { margin-bottom: 14px; }
.service > p { color: var(--muted); }
.service-list { margin-top: 15px; font-size: 16px; line-height: 1.6; padding-left: 20px; }
.service-list li::marker { color: var(--red); }
.process-band { background: var(--navy); color: #fff; padding-block: 52px; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.process-grid figure img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.process-grid figcaption { color: #c9d9e2; }
.process-copy h2, .process-copy h3 { color: #fff; margin-bottom: 23px; }
.process-copy p { color: #e2edf2; font-size: 18px; }
.process-copy .section-kicker { color: #f3b2b7; }
.process-copy p + p { margin-top: 18px; }

/* Оснащение предприятия */
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 28px; }
.equipment { min-width: 0; background: #fff; border: 1px solid var(--line); }
.equipment-visual { overflow: hidden; background: #e7edef; }
.equipment-visual > .media img { height: 285px; width: 100%; object-fit: cover; }
.equipment-visual > .media { height: 285px; }
.image-pair { display: grid; grid-template-columns: 1.42fr 1fr; gap: 4px; height: 285px; }
.image-pair .media { min-width: 0; height: 100%; }
.image-pair img { height: 100%; width: 100%; object-fit: cover; }
.equipment-copy { padding: 25px 28px 29px; }
.item-number { color: var(--red-dark); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .09em; }
.equipment-copy .item-number { display: block; margin-bottom: 10px; }
.equipment-copy h3 { margin-bottom: 12px; font-size: 22px; }
.equipment-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.equipment-copy p + p { margin-top: 12px; }
.production-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 270px; gap: 24px; }
.production-gallery figure { display: flex; min-width: 0; min-height: 0; flex-direction: column; grid-column: span 3; }
.production-gallery .media { flex: 1 1 auto; min-height: 0; }
.production-gallery img { height: 100%; width: 100%; object-fit: cover; }
.production-gallery figcaption { flex: 0 0 auto; }
.production-gallery .wide { grid-column: span 4; }
.production-gallery .portrait { grid-column: span 2; grid-row: span 2; }
.gallery-heading { margin-top: 55px; margin-bottom: 28px; }

/* Территория и архивные документы */
.territory-intro { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; margin-bottom: 34px; }
.territory-intro figure img { aspect-ratio: 1.55; object-fit: cover; }
.plans-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.plans-grid figure { min-width: 0; }
.plans-grid .media { background: #fff; border: 1px solid var(--line); padding: 14px; }
.plans-grid img { width: 100%; height: 355px; object-fit: contain; background: #fff; }
.source-note { margin-block: 22px; padding: 14px 18px; border-left: 3px solid #b57a20; background: #fff7e7; color: #634b20; font-size: 14px; line-height: 1.6; }
.source-note a { color: inherit; }
.source-note p + p { margin-top: 8px; }
.client-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 26px 0 50px; }
.client-list li { min-width: 0; padding: 16px 0; margin: 0; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.review { min-width: 0; }
.review .media { padding: 18px; background: #f0f3f5; border: 1px solid var(--line); }
.review img { width: 100%; height: 280px; object-fit: contain; }
.review figcaption { margin-top: 14px; }
.review-title { display: block; color: var(--navy); font-size: 15px; line-height: 1.5; font-weight: 700; }
.review-note { display: block; margin-top: 8px; color: #6b4d1a; font-size: 12px; line-height: 1.5; }
.editorial { padding-block: 30px 40px; border-top: 1px solid var(--line); }
.editorial-title { color: var(--navy); font-size: 15px; line-height: 1.65; font-weight: 700; letter-spacing: 0; padding-block: 10px; }
.editorial details { font-size: 14px; color: var(--muted); }
.editorial summary { color: var(--navy); font-weight: 700; font-size: 15px; padding-block: 10px; }
.editorial details[open] summary { margin-bottom: 12px; }
.editorial details p + p, .editorial details ul, .editorial details ol { margin-top: 12px; }
.editorial details li { margin-top: 8px; }
.source-line { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 20px; }

/* Подвал */
.site-footer, footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 34px; }
.footer-inner > img, .footer-inner .brand { width: 245px; flex-shrink: 0; }
.footer-inner p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-inner > a:not(.brand) { font-size: 13px; line-height: 1.5; font-weight: 700; white-space: nowrap; }

/* Просмотр изображений: сканы можно открыть в натуральном размере */
.image-viewer { padding: 0; width: min(1320px, 96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh; border: 0; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 20px 85px rgba(0,0,0,.35); }
.image-viewer::backdrop { background: rgba(2,17,28,.88); }
.viewer-shell { display: flex; flex-direction: column; max-height: 94vh; max-height: 94dvh; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fff; }
#viewer-title { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.viewer-actions { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.viewer-actions button, .viewer-actions a, .viewer-controls button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; color: var(--navy); background: #fff; border: 1px solid #c5d2da; border-radius: 0; font-size: 13px; line-height: 1.4; font-weight: 700; text-decoration: none; }
.viewer-actions button:hover, .viewer-actions a:hover, .viewer-controls button:hover { background: var(--soft); color: var(--red-dark); }
.viewer-actions .viewer-close { min-width: 38px; padding: 3px 10px; font-size: 24px; }
.viewer-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-start; justify-content: flex-start; overflow: auto; padding: 16px; background: #e9edf0; overscroll-behavior: contain; }
#viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 200px); max-height: calc(94dvh - 200px); object-fit: contain; margin: auto; }
.viewer-stage.is-zoomed #viewer-image, #viewer-image.is-zoomed, .image-viewer.is-zoomed #viewer-image { max-width: none; max-height: none; margin: 0 auto; flex: 0 0 auto; }
.viewer-caption { padding: 10px 20px 0; font-size: 12px; color: var(--muted); line-height: 1.5; background: #fff; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; font-size: 13px; color: var(--muted); background: #fff; }

/* Планшет */
@media (max-width: 1100px) {
  .brand { width: 248px; }
  .header-inner { gap: 20px; }
  .site-nav { gap: 10px 16px; }
  .site-nav a { font-size: 13px; }
  .hero-grid { gap: 30px; padding-block: 52px 44px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 17px; }
  .about-grid, .territory-intro { gap: 34px; }
  .process-grid { gap: 38px; }
  .equipment-visual > .media, .image-pair { height: 250px; }
  .equipment-visual > .media img { height: 250px; }
  .production-gallery { grid-auto-rows: 230px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 95px; }
  .header-inner { min-height: 82px; flex-wrap: wrap; padding-block: 12px; gap: 0 20px; }
  .brand { width: 240px; }
  .site-nav { flex-basis: 100%; justify-content: flex-start; padding-top: 16px; gap: 4px 24px; }
  .site-nav a { font-size: 15px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 25px; }
  .hero h1 { font-size: 33px; }
  .hero-photo { padding-top: 30px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .button { padding-inline: 16px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .metric { padding-inline: 24px; }
  .metric strong { font-size: 33px; }
  .section { padding-block: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-grid > figure img { aspect-ratio: 2; }
  .services-grid { column-gap: 30px; }
  .process-grid { gap: 30px; }
  .process-copy p { font-size: 16px; }
  .process-copy h2 { font-size: 29px; }
  .equipment-copy { padding: 22px; }
  .equipment-visual > .media, .image-pair { height: 220px; }
  .equipment-visual > .media img { height: 220px; }
  .equipment-copy h3 { font-size: 20px; }
  .equipment-copy p { font-size: 15px; }
  .production-gallery { gap: 18px; grid-auto-rows: 210px; }
  .plans-grid img { height: 275px; }
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
  .reviews-grid { gap: 24px 20px; }
  .review .media { padding: 12px; }
  .review img { height: 220px; }
  .review-title { font-size: 14px; }
  .footer-inner { flex-wrap: wrap; gap: 22px; }
  .footer-inner > img, .footer-inner .brand { width: 230px; }
  .footer-inner > a:not(.brand) { margin-left: auto; }
  .viewer-toolbar { gap: 12px; padding: 12px 15px; }
  #viewer-title { font-size: 14px; }
}

/* Телефон */
@media (max-width: 640px) {
  :root { --page-gutter: 20px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 76px; }
  .brand { width: min(225px, 66vw); }
  .menu-toggle { padding: 8px 10px; font-size: 12px; }
  .site-nav { column-gap: 22px; padding-bottom: 6px; }
  .site-nav a { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 30px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 11px; margin-bottom: 19px; }
  .hero h1 { font-size: clamp(29px, 7.9vw, 44px); line-height: 1.16; letter-spacing: -.025em; }
  .hero-lead { font-size: 16px; margin-top: 22px; max-width: 100%; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .button { min-height: 46px; padding: 11px 17px; font-size: 13px; }
  .hero-photo { padding-top: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-photo figcaption { font-size: 11px; }
  .metrics-grid { grid-template-columns: 1fr; padding-block: 5px; }
  .metric, .metric:first-child { display: grid; grid-template-columns: minmax(135px, 43%) 1fr; align-items: center; gap: 16px; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .metric strong { font-size: clamp(23px, 6.6vw, 32px); white-space: nowrap; }
  .metric span { margin: 0; font-size: 13px; }
  .metric-source { padding-top: 5px; padding-bottom: 18px; }
  .section { padding-block: 46px; scroll-margin-top: 92px; }
  .section-heading { margin-bottom: 27px; }
  .section-kicker { font-size: 11px; margin-bottom: 12px; }
  h2 { font-size: 29px; line-height: 1.23; }
  h3 { font-size: 22px; }
  .section-heading > p:not(.section-kicker) { font-size: 16px; margin-top: 14px; }
  .about-grid { gap: 24px; }
  .prose .lead { font-size: 18px; }
  .about-grid > figure img { aspect-ratio: 1.6; }
  .photo-pair { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .photo-pair img { aspect-ratio: 2.05; }
  figcaption { font-size: 12px; margin-top: 9px; }
  .zoom-hint { min-width: 30px; min-height: 30px; padding: 5px 9px; right: 9px; bottom: 9px; opacity: 1; font-size: 11px; }
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .service:first-child { grid-row: auto; }
  .service { padding-top: 21px; }
  .service-list { font-size: 15px; }
  .process-band { padding-block: 34px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid figure img { aspect-ratio: 1.5; }
  .process-copy h2 { font-size: 29px; margin-bottom: 18px; }
  .equipment-grid { grid-template-columns: 1fr; gap: 25px; }
  .equipment-visual > .media, .image-pair { height: 240px; }
  .equipment-visual > .media img { height: 240px; }
  .equipment-copy { padding: 22px; }
  .equipment-copy h3 { font-size: 22px; }
  .equipment-copy p { font-size: 15px; }
  .production-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 24px; }
  .production-gallery figure, .production-gallery .wide, .production-gallery .portrait { grid-column: auto; grid-row: auto; }
  .production-gallery .media { flex: none; }
  .production-gallery img { height: auto; aspect-ratio: 1.6; }
  .production-gallery .portrait img { aspect-ratio: 1; object-fit: contain; }
  .gallery-heading { margin-top: 38px; margin-bottom: 24px; }
  .territory-intro { grid-template-columns: 1fr; gap: 25px; margin-bottom: 28px; }
  .territory-intro figure img { aspect-ratio: 1.55; }
  .plans-grid { grid-template-columns: 1fr; gap: 26px; }
  .plans-grid img { height: 310px; }
  .plans-grid .media { padding: 10px; }
  .source-note { font-size: 13px; padding: 13px 15px; margin-block: 18px; }
  .client-list { grid-template-columns: 1fr; margin-block: 15px 36px; }
  .client-list li { padding-block: 13px; font-size: 15px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .review .media { padding: 10px; }
  .review img { height: 205px; }
  .review-title { font-size: 12px; }
  .review-note { font-size: 11px; }
  .editorial { padding-block: 23px 30px; }
  .editorial details { font-size: 13px; }
  .editorial summary { font-size: 14px; }
  .editorial-title { font-size: 14px; }
  .source-line { font-size: 11px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 28px; gap: 18px; }
  .footer-inner > img, .footer-inner .brand { width: 235px; }
  .footer-inner > a:not(.brand) { margin-left: 0; }
  .image-viewer { width: 96vw; max-height: 96vh; max-height: 96dvh; }
  .viewer-shell { max-height: 96vh; max-height: 96dvh; }
  .viewer-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px; }
  .viewer-actions { width: 100%; justify-content: flex-start; gap: 7px; }
  .viewer-actions .viewer-close { margin-left: auto; }
  .viewer-actions button, .viewer-actions a, .viewer-controls button { padding-inline: 10px; font-size: 12px; min-height: 36px; }
  .viewer-stage { padding: 10px; }
  #viewer-image { max-height: calc(96vh - 245px); max-height: calc(96dvh - 245px); }
  .viewer-caption { padding-inline: 13px; font-size: 11px; }
  .viewer-controls { gap: 12px; padding: 10px 13px; font-size: 12px; }
}
@media (max-width: 370px) {
  :root { --page-gutter: 16px; }
  .brand { width: 206px; }
  .menu-toggle { padding: 8px; font-size: 11px; }
  .header-inner { gap: 0 10px; }
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .metric { grid-template-columns: 125px 1fr; gap: 12px; }
  .metric strong { font-size: 23px; }
  .reviews-grid { gap: 23px 12px; }
  .review img { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .site-header { position: static; border-bottom: 1px solid #999; }
  .header-inner { min-height: auto; padding-block: 12pt; }
  .brand { width: 170pt; }
  .site-nav, .menu-toggle, .skip-link, .hero-actions, .zoom-hint, .image-viewer, .footer-inner > a:not(.brand) { display: none !important; }
  .container { max-width: none; padding-inline: 0; }
  .hero, .process-band, .metrics, .section-muted, .section-soft, .section-tint, footer { background: #fff; color: #000; }
  .hero-grid, .process-grid { padding-block: 20pt; gap: 20pt; }
  .hero h1 { color: #000; font-size: 26pt; }
  .hero-lead, .eyebrow, .hero-photo figcaption, .process-copy p, .process-copy h2, .process-copy h3, .process-grid figcaption { color: #333; }
  .section { padding-block: 22pt; }
  .section-heading { margin-bottom: 18pt; }
  h2 { font-size: 22pt; }
  h3 { font-size: 16pt; }
  p, li { widows: 3; orphans: 3; }
  .equipment, .review, figure, .service { break-inside: avoid; }
  .media { background: #fff; border: 0; }
  .media img { filter: none !important; }
  .metrics-grid { padding-block: 16pt; }
  .metric strong { font-size: 26pt; }
  .equipment-grid { gap: 18pt; }
  .equipment-copy { padding: 12pt; }
  .equipment-visual > .media, .image-pair, .equipment-visual > .media img { height: 150pt; }
  .review img { height: 150pt; }
  .source-note { border-left-color: #777; background: #fff; color: #333; }
  .editorial { border-top: 1px solid #aaa; }
  .footer-inner { padding-block: 14pt; }
}
