/* ============================================================
   ООО «Катран» — стили сайта
   Палитра: медь (цвет обмоточного провода) + графит
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f4f6f8;
  --surface:       #ffffff;
  --text:          #18212b;
  --text-muted:    #5a6775;
  --border:        #e1e6eb;
  --accent:        #b45309;
  --accent-hover:  #92400e;
  --accent-soft:   #fdf4ec;
  --dark:          #18212b;
  --on-dark:       #eef2f6;
  --on-dark-muted: #a8b5c2;

  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(24, 33, 43, .06), 0 4px 16px rgba(24, 33, 43, .06);
  --shadow-lg: 0 8px 40px rgba(24, 33, 43, .14);

  --wrap:    1180px;
  --gap:     clamp(1.5rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #11161d;
    --bg-alt:       #161d26;
    --surface:      #1a222c;
    --text:         #e7ecf1;
    --text-muted:   #9dabb9;
    --border:       #2a3542;
    --accent:       #e08a3c;
    --accent-hover: #f0a05a;
    --accent-soft:  #221a12;
    --dark:         #0c1118;
    --shadow:       0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-lg:    0 8px 40px rgba(0, 0, 0, .5);
  }
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .18s;
}
.skip-link:focus { top: 0; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  font: inherit; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 88px;
}

/* Логотип содержит слово «Катран», поэтому название рядом
   не дублируем — только пояснение, чем компания занимается. */
.brand { display: flex; align-items: center; gap: .95rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 152px; height: auto; }

.brand-tagline {
  font-size: .82rem;
  line-height: 1.3;
  color: var(--text-muted);
  max-width: 8.5em;
  padding-left: .95rem;
  border-left: 1px solid var(--border);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--text); font-size: .95rem; font-weight: 500;
  padding: .35rem 0; position: relative;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .22s;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--accent); }

.nav-phone {
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  padding: .55rem 1.1rem;
  border: 2px solid var(--accent); border-radius: var(--radius);
}
.nav-phone:hover { background: var(--accent); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-toggle-bars { margin: 0 auto; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; color: #fff; }

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg,
              rgba(12, 17, 24, .93) 0%,
              rgba(12, 17, 24, .82) 45%,
              rgba(12, 17, 24, .55) 100%);
}

.hero-inner {
  padding-block: clamp(4rem, 12vw, 8rem);
  max-width: 780px;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin-bottom: 1.1rem;
  letter-spacing: -.03em;
}
.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
  max-width: 60ch; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-note { font-size: .9rem; color: rgba(255, 255, 255, .62); margin: 0; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700;
  color: var(--accent); margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  margin-bottom: .6rem;
}
.section-lead {
  color: var(--text-muted); max-width: 62ch;
  margin-bottom: 2.5rem; font-size: 1.02rem;
}
.section-title + .cards,
.section-title + .steps { margin-top: 2.5rem; }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 1.4rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

.card-icon {
  width: 40px; height: 40px; margin-bottom: 1.1rem;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.card-num { position: relative; padding-top: 3.4rem; }
.card-num::before {
  content: var(--num);
  position: absolute; top: 1.4rem; left: 1.6rem;
  font-size: 1.9rem; font-weight: 800;
  color: var(--accent); opacity: .28; letter-spacing: -.04em;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 2.6rem;
  border-top: 3px solid var(--border);
}
.steps li::before {
  content: counter(step);
  position: absolute; top: -1.35rem; left: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1rem;
  border-radius: 50%;
  border: 4px solid var(--bg);
}
.steps h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.steps p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Видео ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.video-embed iframe,
.video-embed .video-player {
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #000;
  object-fit: contain;
}
.video-embed noscript { display: contents; }

/* Хронометраж в углу постера — сразу видно, сколько займёт просмотр */
.video-duration {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: .25rem .55rem;
  background: rgba(8, 12, 17, .78);
  color: #fff; font-size: .82rem; font-weight: 600;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.video-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(12, 17, 24, .3);
  transition: background .2s;
}
.video-play:hover::after { background: rgba(12, 17, 24, .12); }

.video-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px; z-index: 2;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .4);
  transition: transform .2s, background .2s;
}
.video-play-icon::before {
  content: ""; position: absolute;
  top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #fff;
}
.video-play:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.08); }

.video-note { margin-top: .9rem; font-size: .85rem; color: var(--text-muted); }

.video-error {
  margin-top: .9rem;
  padding: .8rem 1rem;
  font-size: .9rem;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Галерея ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
}
.g-item {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  background: var(--surface);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.g-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(8, 12, 17, .94);
  padding: clamp(1rem, 4vw, 3rem);
  animation: lb-in .18s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-img {
  max-width: 100%; max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lb-caption {
  color: #e7ecf1; font-size: .95rem;
  margin-top: 1rem; max-width: 62ch; margin-inline: auto;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .18s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .25); }

.lb-close {
  top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem);
  width: 46px; height: 46px; font-size: 1.9rem; line-height: 1;
}
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; font-size: 2.2rem; line-height: 1;
}
.lb-prev { left: clamp(.5rem, 2vw, 1.6rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.6rem); }

body.lb-open { overflow: hidden; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-list { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg {
  flex: 0 0 24px; width: 24px; height: 24px; margin-top: 4px;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-label {
  display: block; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: .2rem;
}
.contact-list address { font-style: normal; }
.contact-list a { display: block; font-weight: 600; font-size: 1.05rem; }

/* карта подгружается по клику */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg,
      var(--bg-alt) 0 14px,
      color-mix(in srgb, var(--border) 45%, var(--bg-alt)) 14px 28px);
}
.map-embed iframe, .map-embed > ymaps { width: 100%; height: 100%; border: 0; }
.map-button {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .8rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
  transition: background .2s;
}
.map-button:hover { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.map-button-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.map-button-icon::before {
  content: ""; position: absolute; inset: 0;
  margin: auto; width: 16px; height: 16px;
  border: 2.5px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.map-fallback {
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Форма ---------- */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.form-intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.2rem; }
.field > label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem;
}
.field > label span { color: var(--accent); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%; padding: .8rem .95rem;
  font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .65; }

.field.has-error input,
.field.has-error textarea { border-color: #d92d20; }
.field-error {
  display: none; margin-top: .35rem;
  font-size: .85rem; color: #d92d20;
}
.field.has-error .field-error { display: block; }

.field-check {
  display: grid; grid-template-columns: auto 1fr; gap: .65rem .7rem;
  align-items: start; margin-bottom: 1.6rem;
}
.field-check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--accent); }
.field-check label { font-size: .88rem; color: var(--text-muted); font-weight: 400; }
.field-check .field-error { grid-column: 1 / -1; margin-top: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: .95rem; font-weight: 500; }
.form-status.ok    { color: #067647; }
.form-status.error { color: #d92d20; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-top: 0;
}
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 2.5rem;
}
.footer-col h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--on-dark-muted); margin-bottom: 1rem; font-weight: 700;
}
.footer-col p { color: var(--on-dark-muted); font-size: .93rem; }
.footer-col a { color: var(--on-dark); font-weight: 500; }
.footer-col a:hover { color: var(--accent); }
.footer-logo { width: 176px; height: auto; margin-bottom: 1.1rem; }
.footer-about { max-width: 42ch; }
.footer-req { font-size: .88rem; line-height: 1.8; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .86rem; color: var(--on-dark-muted); }
.to-top { color: var(--on-dark-muted); font-size: .86rem; }

/* ---------- Внутренние страницы ---------- */
.wrap-narrow { max-width: 760px; }

.page-body h2 {
  font-size: 1.25rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.page-body h2:first-of-type { margin-top: 2rem; }
.page-body p { color: var(--text-muted); }
.page-body strong { color: var(--text); }

.page-date {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.req-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  line-height: 2;
  font-size: .95rem;
}

.doc-list { margin: 0 0 1em; padding-left: 1.4rem; list-style: disc; }
.doc-list li { color: var(--text-muted); margin-bottom: .4rem; }

.back-link { margin-top: 3rem; font-weight: 600; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Страница «спасибо» */
.thanks { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.thanks .section-lead { margin-inline: auto; }
.thanks-icon {
  width: 76px; height: 76px; margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: grid; place-items: center;
}
.thanks-icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--accent); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.thanks-phones {
  display: flex; flex-wrap: wrap; gap: .8rem;
  justify-content: center; margin-bottom: 1rem;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
  /* Меню становится тесным — освобождаем место, убирая пояснение
     рядом с логотипом. Сам логотип не уменьшаем. */
  .brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav { gap: 1.2rem; }
  .site-nav a { font-size: .9rem; }
  .nav-phone { font-size: .9rem; padding: .5rem .8rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }

  .header-inner { min-height: 74px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed; inset: 74px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .5rem clamp(1rem, 4vw, 2rem) 1.5rem;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform .22s, opacity .22s, visibility .22s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: .95rem 0; font-size: 1.02rem; }
  .site-nav a::after { display: none; }
  .nav-phone { margin-top: 1.2rem; text-align: center; padding: .8rem; font-size: 1.05rem; }

  .brand img { width: 126px; }
  /* На узком экране пояснение убираем — логотип говорит сам за себя,
     а место нужно кнопке меню. */
  .brand-tagline { display: none; }

  .hero-actions .btn { flex: 1 1 100%; }

  .cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }

  .video-play-icon { width: 62px; height: 62px; }
  .video-play-icon::before { border-width: 11px 0 11px 18px; }

  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-img { max-height: 68vh; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Уважение к настройкам пользователя ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .g-item:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .video-section, .map-embed,
  .contact-form-wrap, .lightbox, .to-top { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero::after { display: none; }
  .hero { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
