/* =========================================================
   ИП Яковлев — отделочные работы
   Стиль: «Тёплая отделка»
   ========================================================= */

:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --muted: #6e675e;
  --line: #e4ddd1;
  --line-dark: #2c2925;
  --brass: #a98456;
  --brass-dark: #8a6a3f;
  --dark: #141312;
  --dark-2: #1d1b19;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(28, 27, 26, 0.25);
  --container: 1200px;
  --header-h: 76px;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.section--dark {
  background: var(--dark);
  color: #f3efe8;
}

.section--line { border-top: 1px solid var(--line); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn svg { flex: none; }

.btn--primary {
  background: var(--ink);
  color: #f7f3ec;
}

.btn--primary:hover {
  background: var(--brass-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(138, 106, 63, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--light {
  background: #f7f3ec;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--brass);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: #f7f3ec;
  border-color: rgba(247, 243, 236, 0.35);
}

.btn--outline-light:hover {
  border-color: #f7f3ec;
  transform: translateY(-2px);
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px -22px rgba(0, 0, 0, 0.6);
}

.header .logo { color: #f7f3ec; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.logo__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brass);
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: rgba(243, 239, 232, 0.68);
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover { color: #f7f3ec; }
.nav a:hover::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: #f7f3ec; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__phone {
  padding: 11px 20px;
  font-size: 0.95rem;
  background: #f7f3ec;
  color: var(--ink);
}

.header__phone:hover {
  background: var(--brass);
  color: #151311;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.7);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
}

.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #f7f3ec;
  transition: transform 0.25s ease, opacity 0.2s ease;
  content: "";
}

.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.burger span::before,
.burger span::after {
  left: 0;
  right: 0;
}

.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 40;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn { margin-top: 22px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 132, 86, 0.16), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 20px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.hero h1 { max-width: 15ch; }

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--dark);
  color: #f5f1ea;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.hero__badge strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fff;
}

.hero__badge span {
  font-size: 0.82rem;
  color: rgba(245, 241, 234, 0.72);
}

/* ---------- Заголовок секции ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 { margin: 0; }

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.section--dark .section-head p { color: rgba(243, 239, 232, 0.7); }

.section-head--row {
  flex-wrap: wrap;
  justify-content: space-between;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-more:hover { color: var(--brass-dark); gap: 12px; }

/* ---------- О компании ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__text p { color: var(--muted); }

.about__text p strong { color: var(--ink); }

.about__slides {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.about__slides img.is-active { opacity: 1; }

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #d5ccbd;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(169, 132, 86, 0.12);
  display: grid;
  place-items: center;
  color: var(--brass-dark);
  flex: none;
}

.service-card h3 { margin: 0; }

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card__num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brass-dark);
}

/* ---------- Цифры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--dark-2);
  padding: clamp(26px, 3.5vw, 44px) clamp(20px, 3vw, 40px);
}

.stat__num {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f7f3ec;
  font-variant-numeric: tabular-nums;
}

.stat__num span { color: var(--brass); }

.stat__label {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(243, 239, 232, 0.66);
}

/* ---------- Портфолио-превью ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.preview-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.preview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 19, 18, 0) 35%, rgba(20, 19, 18, 0.78));
}

.preview-card:hover img { transform: scale(1.05); }

.preview-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #f7f3ec;
  z-index: 2;
}

.preview-card__body h3 { margin: 0 0 6px; color: #fff; }

.preview-card__body p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(247, 243, 236, 0.75);
}

.preview-card__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

/* ---------- Заказчики ---------- */
.customers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
}

.customers__label {
  width: 100%;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.customers__item {
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.customers__item:hover { opacity: 1; color: var(--brass-dark); }

.customers__sep {
  color: var(--brass);
  font-weight: 400;
  opacity: 0.6;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 { margin-bottom: 14px; }

.cta p { color: rgba(243, 239, 232, 0.7); margin-bottom: 28px; }

.cta .btn { font-size: 1.05rem; padding: 17px 34px; }

/* ---------- Футер ---------- */
.footer {
  background: var(--dark);
  color: rgba(243, 239, 232, 0.75);
  padding: clamp(40px, 6vw, 64px) 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}

.footer .logo { color: #f7f3ec; margin: 0 0 14px; }

.footer__desc { font-size: 0.95rem; max-width: 34ch; }

.footer h4 {
  color: #f7f3ec;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.footer a { transition: color 0.2s ease; }
.footer a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(243, 239, 232, 0.5);
}

.footer__req { font-variant-numeric: tabular-nums; }

/* ---------- Внутренняя страница: шапка ---------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
}

.page-head h1 { max-width: 20ch; }

.page-head p {
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.05rem;
}

/* ---------- Услуги: детальные блоки ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
}

.service-row:last-of-type { border-bottom: 1px solid var(--line); }

.service-row--text {
  grid-template-columns: 1fr;
  padding-block: clamp(22px, 3vw, 34px);
}

.service-row--text .service-row__body { max-width: 720px; }

.service-row:nth-child(even) .service-row__media { order: 2; }

.service-row__media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-row__body h3 { margin-bottom: 12px; }

.service-row__body p { color: var(--muted); }

.service-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.98rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--brass);
}

/* ---------- Как мы работаем ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(18px, 3vw, 32px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.process__step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.process__step:last-child { padding-bottom: 0; }

.process__step:last-child::before { display: none; }

.process__num {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: var(--bg);
  color: var(--brass-dark);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.process__body h3 { margin: 12px 0 10px; }

.process__body p { color: var(--muted); margin: 0; }

.process__body .service-list { margin-top: 14px; }

/* ---------- Гарантия ---------- */
.warranty {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.warranty__text h2 { margin: 0 0 14px; }

.warranty__text p { color: var(--muted); }

.warranty__note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--brass);
  background: rgba(169, 132, 86, 0.09);
  color: var(--ink);
  font-weight: 600;
}

.warranty__list {
  list-style: none;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.warranty__list li {
  position: relative;
  padding-left: 38px;
}

.warranty__list li strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--ink);
}

.warranty__list li span {
  color: var(--muted);
  font-size: 0.96rem;
}

.warranty__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: rgba(169, 132, 86, 0.08);
}

.warranty__list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brass-dark);
  border-bottom: 2px solid var(--brass-dark);
  transform: rotate(-45deg);
}

/* ---------- Портфолио ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.filter button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter button:hover { border-color: var(--ink); color: var(--ink); }

.filter button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f3ec;
}

.gallery {
  columns: 3;
  column-gap: 20px;
}

.gallery__item {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery__item img {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery__item:hover img { transform: scale(1.04); }

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(20, 19, 18, 0.8));
  color: #f7f3ec;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}

.gallery__item.is-hidden { display: none; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 14, 13, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 236, 0.35);
  background: transparent;
  color: #f7f3ec;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover { background: rgba(247, 243, 236, 0.12); border-color: #f7f3ec; }

.lightbox__hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(247, 243, 236, 0.55);
  font-size: 0.85rem;
}

/* ---------- Контакты ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px;
  margin: 0 auto;
}

.contact-card .service-card__num {
  display: block;
  margin-bottom: 8px;
}

.contact-card__lead {
  color: var(--muted);
  margin: 6px 0 22px;
  max-width: 46ch;
}

.req {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.req strong { color: var(--ink); font-weight: 600; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Фокус с клавиатуры ---------- */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: block; }
}

@media (max-width: 860px) {
  .warranty { grid-template-columns: 1fr; }
  .hero__grid,
  .about__grid,
  .service-row,
  .preview-grid { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .hero__badge { left: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__actions .btn { width: 100%; }
  .process__step { grid-template-columns: 44px 1fr; gap: 16px; }
  .process__num { width: 44px; height: 44px; font-size: 0.85rem; }
  .process__step::before { left: 21px; top: 44px; }
  .process__body h3 { margin-top: 6px; }
}
