/* VL OYL MONTAJ — общая дизайн-система статических страниц */

:root {
  --bg: #f5f0e8;
  --ink: #102536;
  --muted: #597083;
  --surface: #ffffff;
  --dark: #071a29;
  --accent: #e9771e;
  --accent-dark: #c95f11;
  --line: rgba(16, 37, 54, 0.12);
  --soft: rgba(233, 119, 30, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.page { min-height: 100vh; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Шапка и hero ---------- */

.hero {
  background:
    linear-gradient(90deg, rgba(7, 26, 41, 0.96) 0%, rgba(7, 26, 41, 0.88) 48%, rgba(7, 26, 41, 0.58) 100%),
    var(--hero-image) center/cover no-repeat;
  color: #ffffff;
}

.hero-inner, .content, .footer-inner { width: min(1160px, calc(100vw - 32px)); margin: 0 auto; }
.hero-inner { padding: 28px 0 72px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 18px; border-radius: 20px; background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.logo img { width: 168px; max-width: 48vw; display: block; height: auto; }

.top-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.top-link, .button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 16px; text-decoration: none;
  font-size: 14px; font-weight: 800; line-height: 1.2;
}
.top-link { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.button { background: var(--accent); color: #ffffff; box-shadow: 0 18px 40px rgba(233, 119, 30, 0.24); }
.button:hover, .top-link:hover { filter: brightness(1.06); }
.top-link:focus-visible, .button:focus-visible, .logo:focus-visible,
.service-link:focus-visible, .related-links a:focus-visible {
  outline: 2px solid #ffffff; outline-offset: 3px;
}

.lang-switch { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); }
.lang-switch a {
  padding: 11px 15px; font-size: 13px; font-weight: 900; text-decoration: none;
  color: #ffffff; background: rgba(255,255,255,.06); line-height: 1.2;
}
.lang-switch a[aria-current="true"] { background: var(--accent); }

.hero-title { max-width: 980px; margin: 0 0 18px; font-size: clamp(32px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 950; }
.hero-lead { max-width: 880px; margin: 0 0 18px; color: #d8e4ef; font-size: clamp(16px, 2vw, 20px); line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.badge {
  display: inline-flex; align-items: center; min-height: 40px; padding: 10px 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #fff; font-size: 13px; font-weight: 800;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.hero-fact { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.hero-fact b { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; line-height: 1.1; margin-bottom: 6px; }
.hero-fact span { color: #d8e4ef; font-size: 13px; line-height: 1.55; }

/* ---------- Секции ---------- */

.content { padding: 56px 0 72px; }
.section {
  margin-bottom: 38px; padding: 30px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 46px rgba(16,37,54,.06);
  scroll-margin-top: 20px;
}
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
.section h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.section p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.section p:last-child { margin-bottom: 0; }

.work-list, .object-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.work-list li, .object-list li {
  position: relative; padding: 12px 14px 12px 42px; border-radius: 16px;
  background: rgba(16,37,54,.035); border: 1px solid rgba(16,37,54,.07); color: #243d50;
}
.work-list li::before, .object-list li::before {
  content: ""; position: absolute; left: 16px; top: 22px; width: 8px; height: 8px;
  border-radius: 999px; background: var(--accent);
}

/* Нумерованные этапы работ: вместо точки — номер шага */
ol.work-list { counter-reset: step; }
ol.work-list li { padding-left: 52px; }
ol.work-list li::before {
  counter-increment: step; content: counter(step);
  left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 13px; font-weight: 900;
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mini-card { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: #fffaf4; }
.mini-card p:last-child { margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.stat { padding: 18px; border-radius: 20px; background: var(--dark); color: #fff; }
.stat b { display: block; font-size: 20px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.stat span { color: #d8e4ef; font-size: 13px; line-height: 1.6; }

.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.related-links a {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px;
  background: #fffaf4; border: 1px solid rgba(233,119,30,.24); color: #9c4d0b;
  text-decoration: none; font-size: 14px; font-weight: 900;
}
.related-links a:hover { background: var(--soft); }

/* ---------- Услуги ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line); background: #fffaf4;
}
.service-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e7ded1; }
.service-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 19px; margin-bottom: 10px; }
.service-body p { font-size: 15px; margin-bottom: 14px; }
.service-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: var(--soft);
  border: 1px solid rgba(233,119,30,.28); color: #9c4d0b;
  text-decoration: none; font-size: 14px; font-weight: 900;
}
.service-link:hover { background: rgba(233,119,30,.2); }

/* ---------- Галерея ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.gallery-card { overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #fffaf4; }
.gallery-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e7ded1; }
.gallery-body { padding: 18px; }
.gallery-body h3 { font-size: 17px; margin-bottom: 8px; }
.gallery-body p { font-size: 14px; margin: 0; }

/* ---------- Разрешения и сертификаты ---------- */

.permit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.permit-card { overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #fffaf4; }
.permit-image {
  display: block; width: 100%; aspect-ratio: 1309 / 2048; object-fit: contain;
  background: #ffffff; border-bottom: 1px solid var(--line);
}
.permit-image.cert { aspect-ratio: 1191 / 1684; }
.permit-content { padding: 22px; }
.permit-content h3 { margin: 0 0 10px; }
.permit-validity { margin-top: 12px; color: var(--accent-dark); font-weight: 900; }

.note { padding: 22px; border-radius: 22px; background: var(--soft); border: 1px solid rgba(233,119,30,.18); color: #693404; font-weight: 700; }

/* ---------- Партнёры и заказчики ---------- */

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.logo-card {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px;
  border: 1px solid var(--line); background: #ffffff;
}
.logo-card img { width: 100%; height: 52px; object-fit: contain; object-position: left center; }
.logo-card b { font-size: 15px; line-height: 1.3; }
.logo-card span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.subhead { margin: 26px 0 0; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- Контакты и футер ---------- */

.contacts { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: stretch; }
.contact-box { padding: 26px; border-radius: 24px; background: var(--dark); color: #ffffff; }
.contact-box h2, .contact-box h3 { color: #ffffff; }
.contact-box p, .contact-box a { color: #d8e4ef; }
.phone-list { display: grid; gap: 8px; margin-top: 12px; font-weight: 900; font-size: 20px; line-height: 1.35; }
.phone-list a { text-decoration: none; }
.phone-list a:hover { color: #ffffff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.footer { background: #071a29; color: #d8e4ef; padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.footer a { color: #ffffff; font-weight: 800; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .top-actions { justify-content: flex-start; }
  .contacts, .grid, .permit-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 52px; }
  .section { padding: 22px; border-radius: 22px; }
  .work-list li, .object-list li { padding-left: 36px; }
}

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

/* ---------- Telegram в шапке ---------- */

.tg-link {
  gap: 8px;
  background: #229ED9;
  border-color: #229ED9;
  color: #ffffff;
}
.tg-link:hover { background: #1c8cc0; border-color: #1c8cc0; }
.tg-link svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }

/* ---------- Копирование e-mail ---------- */

.mail-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-mail {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(233, 119, 30, 0.32);
  background: rgba(233, 119, 30, 0.12);
  color: #9c4d0b;
  font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2;
}
.copy-mail:hover { background: rgba(233, 119, 30, 0.22); }
.copy-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-mail.is-done { background: rgba(32, 140, 80, 0.14); border-color: rgba(32, 140, 80, 0.32); color: #1c6b40; }

/* на тёмной карточке контактов */
.contact-box .copy-mail {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.contact-box .copy-mail:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- WhatsApp в шапке ---------- */

.wa-link {
  gap: 8px;
  background: #25D366;
  border-color: #25D366;
  color: #0b3d20;
}
.wa-link:hover { background: #1fbb59; border-color: #1fbb59; }
.wa-link svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }

/* Шапка: девять пунктов в контейнере 1160px — ужимаем только навигацию,
   кнопки в hero и контактах остаются прежнего размера */
.top-actions { gap: 8px; }
.top-actions .top-link,
.top-actions .button { padding: 10px 13px; font-size: 13px; }
.top-actions .lang-switch a { padding: 10px 12px; font-size: 12px; }
.topbar .logo { padding: 10px 14px; }
.topbar .logo img { width: 146px; }

/* ---------- Карточка товара: изображение и характеристики ---------- */

.eq-figure { margin: 22px 0 0; }
.eq-figure img {
  display: block; width: 100%; max-width: 100%;
  border-radius: 20px; border: 1px solid var(--line); background: #ffffff;
}
.eq-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.eq-figure.is-narrow { max-width: 520px; }

.spec-table-wrap { overflow-x: auto; margin-top: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { width: 58%; font-weight: 600; color: #243d50; }
.spec-table td { font-weight: 800; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(odd) { background: rgba(16, 37, 54, 0.03); }

/* Наличие на складе — главный аргумент на странице позиции,
   поэтому плашка выделена цветом, а не теряется среди остальных */
.badge.is-stock {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #ffffff;
  font-size: 15px;
  padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(31, 157, 85, 0.32);
}
.badge.is-stock::before {
  content: "";
  width: 9px; height: 9px; margin-right: 9px;
  border-radius: 999px; background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

/* Строка наличия под лидом — лежит на тёмном hero, поэтому светлая */
.stock-line {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  width: fit-content; max-width: 100%;
  margin: 24px 0 0; padding: 16px 22px; border-radius: 20px;
  background: rgba(31, 157, 85, 0.22);
  border: 1px solid rgba(31, 157, 85, 0.55);
}
.stock-line b { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; color: #ffffff; line-height: 1.15; }
.stock-line span { color: #cdf0dd; font-size: 15px; font-weight: 700; line-height: 1.5; }

/* ---------- Кликабельная карточка целиком ----------
   Ссылка растягивается псевдоэлементом на всю карточку: в дерево
   доступности попадает одна ссылка, а не заголовок с абзацем внутри неё. */

.service-card,
.mini-card.is-linked {
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.service-link::after,
.card-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px;
}

.service-card:hover,
.mini-card.is-linked:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 119, 30, 0.45);
  box-shadow: 0 16px 34px rgba(16, 37, 54, 0.12);
}
.service-card:hover .service-link,
.mini-card.is-linked:hover .card-link { background: rgba(233, 119, 30, 0.22); }

.service-link:focus-visible::after,
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ссылки внутри текста карточки должны оставаться доступными поверх растяжки */
.mini-card.is-linked a:not(.card-link),
.service-body a:not(.service-link) { position: relative; z-index: 2; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid rgba(233, 119, 30, 0.28);
  color: #9c4d0b; text-decoration: none; font-size: 14px; font-weight: 900;
}
