﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800;900&family=Unbounded:wght@500;700;800&display=swap&subset=cyrillic");

:root {
  --font-body: "Manrope", Arial, Helvetica, sans-serif;
  --font-display: "Unbounded", "Manrope", Arial, Helvetica, sans-serif;
  --bg: #f4f7f3;
  --surface: #ffffff;
  --ink: #13251b;
  --text: #25372d;
  --muted: #627166;
  --line: #d9e2d8;
  --primary: #358621;
  --primary-dark: #236514;
  --primary-soft: #e7f2e3;
  --accent: #efdd3d;
  --accent-dark: #d8c422;
  --shadow: 0 18px 46px rgba(19, 37, 27, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 10px 14px; background: var(--ink); color: #fff; z-index: 30; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 116px; height: auto; }
.brand span { max-width: 118px; color: var(--muted); font-size: 12px; line-height: 1.25; font-weight: 700; }

.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 6px; }
.desktop-nav > a,
.dropdown-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.desktop-nav > a:hover,
.desktop-nav > a:focus,
.dropdown:hover .dropdown-toggle,
.dropdown-toggle:focus {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.dropdown { position: relative; }
.dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(780px, calc(100vw - 40px));
  margin: 0;
  padding: 12px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-menu a {
  min-height: 78px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border-radius: 6px;
  border-left: 3px solid transparent;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #f7faf5;
  border-left-color: var(--accent);
}
.dropdown-menu span { color: var(--ink); font-weight: 900; }
.dropdown-menu small { color: var(--muted); font-size: 12px; line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 900; }
.phone-dropdown {
  position: relative;
}
.phone-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.phone-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.phone-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.phone-dropdown:hover .phone-menu,
.phone-dropdown:focus-within .phone-menu,
.phone-dropdown.is-open .phone-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.phone-menu a {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
}
.phone-menu a:hover,
.phone-menu a:focus {
  background: var(--primary-soft);
}
.phone-menu strong {
  color: var(--ink);
  font-size: 14px;
}
.phone-menu span {
  color: var(--muted);
  font-size: 12px;
}
.menu-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 14px;
  font-weight: 900;
}
.contact-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
}
.mobile-drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-drawer .container { display: grid; gap: 4px; padding: 12px 0 18px; }
.mobile-contact-drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-contact-drawer.is-open { display: block; }
.mobile-contact-drawer .container {
  display: grid;
  gap: 8px;
  padding: 12px 0 16px;
}
.mobile-contact-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.mobile-contact-drawer a:hover,
.mobile-contact-drawer a:focus {
  background: var(--primary-soft);
}
.mobile-contact-drawer .contact-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.mobile-contact-drawer .contact-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.mobile-drawer a,
.mobile-products {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border: 0;
  background: transparent;
  border-bottom: 1px solid #edf3ec;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
}
.mobile-submenu { display: none; padding: 4px 0 8px 14px; }
.mobile-submenu.is-open { display: grid; }
.mobile-submenu a { color: var(--muted); font-weight: 800; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(53, 134, 33, .24);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover, .btn:focus { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--primary-soft); color: var(--primary-dark); }
.btn-small { min-height: 40px; padding: 9px 14px; font-size: 14px; }

.hero {
  padding: 56px 0 42px;
  background:
    linear-gradient(135deg, rgba(53, 134, 33, .14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f3f8f1 100%);
}
.hero-compact { padding: 48px 0 38px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: 34px; align-items: center; }
.hero-copy h1 {
  max-width: 940px;
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.35vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.hero-copy p { max-width: 780px; margin: 0; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.hero-panel {
  min-height: 350px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #13251b;
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(53,134,33,.42), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(239,221,61,.30), transparent 28%);
}
.hero-panel img { position: relative; z-index: 1; max-height: 300px; object-fit: contain; padding: 22px; filter: drop-shadow(0 24px 28px rgba(0,0,0,.28)); }
.hero-catalog { padding: 18px; place-items: stretch; }
.catalog-preview { position: relative; z-index: 1; display: grid; gap: 8px; width: 100%; }
.catalog-preview a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  color: #fff;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}
.catalog-preview a:hover { background: rgba(255,255,255,.13); border-color: rgba(239,221,61,.65); transform: translateX(2px); }
.catalog-preview small { color: #dce8d9; }

.metrics-band { padding: 0 0 26px; background: #f3f8f1; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metrics-grid div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.metrics-grid strong { color: var(--primary); font-size: 28px; line-height: 1; }
.metrics-grid span { color: var(--muted); font-weight: 800; }

.section { padding: 54px 0; }
.section h2 { margin: 0 0 16px; color: var(--ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: 0; }
.section h2,
.footer h2,
.cert-item h2 {
  font-family: var(--font-display);
}
.section-head > p:not(.eyebrow) { max-width: 760px; margin: 0 0 22px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card {
  display: grid;
  grid-template-rows: 160px 1fr;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: rgba(53,134,33,.45); box-shadow: var(--shadow); }
.category-card img { width: 100%; height: 160px; object-fit: contain; padding: 16px; background: #edf5e9; }
.category-card div { display: grid; align-content: start; gap: 8px; padding: 18px; }
.category-card p { margin: 0; color: var(--primary); font-size: 13px; font-weight: 900; }
.category-card h3 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.16; }
.category-card span { color: var(--muted); }
.category-card a { margin-top: 6px; color: var(--primary-dark); font-weight: 900; }

.subcategory-showcase {
  background: #fff;
}
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.subcategory-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.subcategory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 134, 33, .45);
  box-shadow: var(--shadow);
}
.subcategory-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 16px;
  background: #eef5eb;
}
.subcategory-card div {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 18px;
}
.subcategory-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.18;
}
.subcategory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.subcategory-card a {
  width: fit-content;
  margin-top: 4px;
  color: var(--primary-dark);
  font-weight: 900;
}

.muted { background: #eaf3e7; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-cloud { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.brand-cloud.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brand-grid span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #cfdcca;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.brand-grid span:hover { border-color: var(--primary); background: #fbfae5; transform: translateY(-1px); }
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.show-brands-btn {
  display: none;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.show-brands-btn:hover,
.show-brands-btn:focus {
  background: var(--primary-soft);
}
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; align-items: start; }
.detail p, .wide-text { max-width: 780px; color: var(--muted); font-size: 17px; }
.info-box {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.info-box h2 { font-size: 23px; }
.info-box li { margin: 10px 0; }

.cert-section {
  background: #f7faf5;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cert-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cert-item:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 134, 33, .45);
  box-shadow: var(--shadow);
}
.cert-item h2 {
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}
.cert-image-link {
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe8dc;
  border-radius: 6px;
  background: #eef5eb;
}
.cert-image-link img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 10px;
  transition: transform .16s ease;
}
.cert-image-link:hover img {
  transform: scale(1.025);
}

.contacts-section {
  background: #f7faf5;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .95fr;
  gap: 16px;
  align-items: stretch;
}
.contact-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 37, 27, .06);
}
.contact-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}
.contact-panel p {
  color: var(--muted);
}
.contact-panel a {
  color: var(--primary-dark);
  font-weight: 900;
}
.contact-phone-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.contact-phone-list a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbf7;
}
.schedule-panel dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 14px;
  margin: 0;
}
.schedule-panel dt {
  color: var(--ink);
  font-weight: 900;
}
.schedule-panel dd {
  margin: 0;
  color: var(--muted);
}

.lead-section { padding: 58px 0; background: #13251b; color: #fff; }
.lead-grid {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
  gap: 28px;
  align-items: stretch;
}
.lead-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.lead-section p { color: #d8e5d4; }
.lead-points { display: grid; gap: 8px; margin-top: 4px; }
.lead-points span {
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.06);
  font-weight: 800;
}
.contact-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-strip a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; }
.lead-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lead-form label,
.lead-form fieldset { display: grid; gap: 8px; margin: 0 0 14px; color: var(--ink); font-size: 14px; font-weight: 800; }
.lead-form fieldset:not(.client-type) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.lead-form legend { padding: 0 6px; }
.lead-form fieldset:not(.client-type) label { display: flex; align-items: center; gap: 7px; margin: 0; }
.client-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5eb;
}
.client-type legend {
  margin-left: 2px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}
.client-type label {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.client-type label:hover {
  background: rgba(255, 255, 255, .72);
  border-color: #d6e2d2;
}
.client-type label:has(input:checked),
.client-type label.is-selected {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: inset 0 -3px 0 var(--accent), 0 8px 18px rgba(53, 134, 33, .12);
}
.client-type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.client-type label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edrpou-field { display: none !important; }
.edrpou-field.is-visible { display: grid !important; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #cbd8c8;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdfb;
  color: var(--ink);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #7a837c; opacity: 1; }
.lead-form input:focus,
.lead-form textarea:focus { outline: 3px solid rgba(53,134,33,.16); border-color: var(--primary); }
.lead-form textarea { min-height: 132px; resize: vertical; }
.lead-form .btn { width: 100%; background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px rgba(239,221,61,.24); }
.lead-form .btn:hover,
.lead-form .btn:focus { background: var(--accent-dark); }
.form-note { margin: 12px 0 0; color: var(--muted) !important; font-size: 13px; }

.modal-open { overflow: hidden; }
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lead-modal.is-open { display: flex; }
.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 13, .72);
  backdrop-filter: blur(6px);
}
.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #f8fbf7;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lead-modal-close:hover,
.lead-modal-close:focus {
  border-color: var(--primary);
  outline: none;
}
.lead-modal-head {
  padding: 24px 70px 16px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #eef5eb 100%);
}
.lead-modal-head h2 {
  margin: 2px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}
.lead-modal-head p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}
.lead-modal-form { padding: 18px; }
.lead-modal-form .lead-form {
  box-shadow: none;
}
.thank-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.thank-modal.is-open { display: flex; }
.thank-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 13, .74);
  backdrop-filter: blur(6px);
}
.thank-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.thank-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.thank-modal-dialog h2 {
  margin: 4px 42px 10px 0;
  font-size: clamp(24px, 3vw, 34px);
}
.thank-modal-dialog p:not(.eyebrow) {
  color: var(--muted);
}
.lead-id-box {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #dfe8dc;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f4f9f2;
}
.lead-id-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.lead-id-box strong {
  color: var(--primary-dark);
  font-size: 20px;
  letter-spacing: .04em;
}

.footer { padding: 44px 0 22px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .9fr; gap: 28px; }
.footer h2 { margin: 0 0 12px; color: var(--ink); font-size: 18px; }
.footer p, .footer a { color: var(--muted); }
.footer a { display: block; margin: 7px 0; }
.footer .btn { display: inline-flex; color: #fff; }
.footer-logo { width: 120px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.narrow { max-width: 860px; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .42s ease, transform .42s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle, .contact-toggle { display: inline-flex; justify-self: end; align-items: center; justify-content: center; }
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 8px; }
  .mobile-drawer.is-open { display: block; }
  .hero-grid, .detail-grid, .lead-grid { grid-template-columns: 1fr; }
  .lead-copy { padding: 22px; }
  .lead-form { padding: 22px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-cloud, .brand-cloud.compact, .footer-grid, .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: 1fr; }
  .info-box { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1200px); }
  .brand { min-width: 0; }
  .brand img { width: 98px; }
  .brand span { display: none; }
  .menu-toggle, .contact-toggle { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .hero { padding: 38px 0 30px; }
  .hero-copy h1 { font-size: 25px; line-height: 1.16; }
  .hero-copy p { font-size: 16px; }
  .hero-panel { min-height: 280px; }
  .section { padding: 38px 0; }
  .lead-section { padding: 12px 0; }
  .lead-grid { gap: 0; }
  .lead-copy { display: none; }
  .lead-form { padding: 12px; }
  .category-grid, .brand-cloud, .brand-cloud.compact, .footer-grid, .metrics-grid, .form-row { grid-template-columns: 1fr; }
  .subcategory-grid { grid-template-columns: 1fr; gap: 12px; }
  .subcategory-card { grid-template-columns: 112px 1fr; grid-template-rows: auto; min-height: 132px; }
  .subcategory-card img { height: 100%; min-height: 132px; padding: 10px; }
  .subcategory-card div { padding: 12px; gap: 6px; }
  .subcategory-card h3 { font-size: 16px; }
  .subcategory-card p { font-size: 13px; line-height: 1.38; }
  .cert-grid { grid-template-columns: 1fr; gap: 12px; }
  .cert-item { padding: 12px; }
  .cert-item h2 { min-height: 0; font-size: 16px; }
  .cert-image-link { min-height: 190px; }
  .cert-image-link img { height: 190px; }
  .contact-panel { padding: 16px; }
  .schedule-panel dl { grid-template-columns: 74px 1fr; }
  .category-card { min-height: auto; }
  .lead-form fieldset:not(.client-type),
  .client-type { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-form label,
  .lead-form fieldset { gap: 4px; margin-bottom: 8px; font-size: 13px; }
  .client-type { gap: 3px; padding: 5px; margin-bottom: 10px; }
  .client-type legend { font-size: 12px; }
  .client-type label { min-height: 38px; padding: 8px 6px; font-size: 12px; text-align: center; }
  .form-row { gap: 8px; }
  .lead-form input, .lead-form textarea { min-height: 40px; padding: 9px 10px; font-size: 14px; }
  .lead-form textarea { min-height: 64px; }
  .lead-form .btn { min-height: 42px; padding: 10px 14px; }
  .form-note { margin-top: 8px; font-size: 11px; line-height: 1.35; }
  .lead-modal { padding: 8px; align-items: stretch; }
  .lead-modal-dialog { max-height: calc(100vh - 16px); }
  .lead-modal-head { padding: 16px 58px 12px 14px; }
  .lead-modal-head h2 { font-size: 22px; }
  .lead-modal-head p:last-child { font-size: 13px; line-height: 1.4; }
  .lead-modal-form { padding: 10px; }
  .lead-modal-close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 24px; }
  .thank-modal { padding: 10px; }
  .thank-modal-dialog { padding: 22px 16px 16px; }
  .thank-modal-dialog h2 { margin-right: 38px; font-size: 22px; }
  .lead-id-box strong { font-size: 17px; }
  .brand-grid.is-mobile-collapsed span:nth-child(n+6) { display: none; }
  .brand-grid.is-expanded span:nth-child(n+6) { display: flex; }
  .show-brands-btn { display: inline-flex; align-items: center; justify-content: center; }
  .show-brands-btn.is-hidden { display: none; }
  .footer-bottom { flex-direction: column; }
}

