:root {
  --color-green: #0b6f3a;
  --color-green-dark: #064b2a;
  --color-green-soft: #eaf3ec;
  --color-lime-muted: #8baa16;
  --color-dark: #2b2b2b;
  --color-text: #202020;
  --color-muted: #666;
  --color-border: #dfe5dc;
  --container: 1170px;
  --green: var(--color-green);
  --green-dark: var(--color-green-dark);
  --green-soft: var(--color-green-soft);
  --black: var(--color-dark);
  --black-2: #303030;
  --text: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-border);
  --soft: #f6f7f1;
  --white: #fff;
  --shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 15px/1.62 Arial, Helvetica, sans-serif;
}

a { color: var(--green-dark); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.18; color: #202020; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
ul { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.min-0 { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-top: 0;
  transition: background .24s ease, box-shadow .24s ease, backdrop-filter .24s ease;
}
.header-main {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  transition: min-height .24s ease, padding .24s ease, opacity .18s ease, max-height .24s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--black);
}
.brand img { width: auto; max-width: 240px; max-height: 66px; object-fit: contain; }
.brand-title { display: block; font-size: 30px; font-weight: 700; letter-spacing: 0; }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.header-contacts {
  display: grid;
  gap: 5px;
  justify-items: end;
  min-width: 240px;
}
.phone-main { color: var(--black); font-size: 25px; font-weight: 700; line-height: 1.1; }
.phone-extra, .mail-link, .worktime { color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--black);
  box-shadow: 0 6px 0 var(--black), 0 -6px 0 var(--black);
}

.main-nav {
  background: var(--black);
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
  transition: background .24s ease, box-shadow .24s ease;
}
.main-nav .container {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.main-nav li { min-width: 0; }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { background: var(--green); color: #fff; }
.sticky-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  white-space: nowrap;
}
.sticky-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(43,43,43,.22);
  border-radius: 5px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  animation: phonePulse 2.8s ease-in-out infinite;
  transition: transform .18s ease, border-color .18s ease;
}
.sticky-phone:hover {
  color: var(--color-dark);
  border-color: rgba(11,111,58,.34);
  transform: scale(1.04);
}
.btn-sticky {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
}
@keyframes phonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11,111,58,.18); }
  50% { box-shadow: 0 0 0 5px rgba(11,111,58,.06); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11,111,58,.18); }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.btn-light { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.btn-light:hover { background: #fff; color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.hero {
  position: relative;
  min-height: clamp(620px, calc(100vh - 134px), 760px);
  overflow: hidden;
  background: #202020;
  color: #fff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity .7s ease, transform 4s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.42), rgba(0,0,0,.2)); }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  padding: 96px 0 80px;
  text-align: center;
}
.kicker {
  margin: 0 0 12px;
  color: var(--color-green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero .kicker,
.optimization-strip .kicker { color: #dce8cf; }
.hero h1 { margin-bottom: 18px; color: #fff; font-size: 48px; }
.hero p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 18px; }
.hero .btn-row { justify-content: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; padding: 0; list-style: none; }
.hero-tags li { padding: 6px 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; }
.slider-dots {
  display: none;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.slider-dot.active { background: var(--green); border-color: var(--green); }

.section { padding: 62px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black-2); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 820px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  color: var(--color-green-dark);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0;
}
.lead { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 24px; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout {
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.content-box {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,.035);
}
.plain-box { min-width: 0; }

.card {
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 22px;
  overflow: hidden;
  transition: .2s ease;
}
a.card { display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd6ad; }
.card h3, .card h2 { color: var(--black); }
.card p, .card li { overflow-wrap: anywhere; }
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin: -22px -22px 18px;
  max-width: calc(100% + 44px);
}
.product-icon {
  width: 88px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 14px;
}
.product-pack {
  width: min(230px, 100%);
  max-height: 230px;
  object-fit: contain;
}
.more-link { display: inline-flex; margin-top: 8px; font-weight: 700; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feature {
  min-width: 0;
  padding: 18px;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}
.feature strong { display: block; margin-bottom: 4px; color: var(--black); }

.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: #fff;
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
}
.check-list { margin: 0; padding-left: 20px; }
.check-list li { margin: 6px 0; }

.sidebar {
  position: sticky;
  top: 16px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.sidebar h2 {
  margin: 0;
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  font-size: 21px;
}
.product-menu, .product-menu ul { margin: 0; padding: 0; list-style: none; }
.product-menu li { border-top: 1px solid var(--line); }
.product-menu a, .product-menu button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  color: var(--black);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.product-menu button { font-weight: 700; }
.product-menu button::after { content: "+"; color: var(--green-dark); font-weight: 700; }
.product-menu li.open > button::after { content: "−"; }
.product-menu a:hover, .product-menu button:hover,
.product-menu a.active, .product-menu button.active { background: var(--green-soft); color: var(--green-dark); }
.product-menu ul {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: #fbfcf7;
  transition: max-height .28s ease;
}
.product-menu li.open > ul { max-height: 620px; }
.product-menu ul a { padding-left: 28px; font-size: 14px; line-height: 1.35; }

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { color: var(--muted); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.badge {
  display: inline-flex;
  padding: 7px 10px;
  background: var(--green-soft);
  color: #536300;
  font-size: 13px;
  font-weight: 700;
}
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
.doc-card {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  font-weight: 700;
}
.doc-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 400; }
.doc-card:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

.form-panel {
  display: grid;
  gap: 22px;
}
.form-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fbfcf7;
}
.form-section h2 { font-size: 22px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .wide { grid-column: 1 / -1; }
label { display: block; min-width: 0; color: var(--black); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #cbd2c1;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(138,160,0,.22); border-color: var(--green); }
.form-message {
  display: none;
  margin: 14px 0 0;
  padding: 13px 15px;
  background: #edf6d7;
  border: 1px solid #bdd67b;
  color: #425400;
  font-weight: 700;
}
.form-message.show { display: block; }

.contact-card strong { display: block; margin-bottom: 6px; }
.contact-phone { color: var(--black); font-size: 24px; font-weight: 700; }
.schedule-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.schedule-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

.object-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.65);
  backdrop-filter: none;
}
.modal.open { display: flex; }
.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.footer { background: #303030; color: #d8d8d8; }
.footer a { color: #fff; }
.footer-cta { background: #242424; border-top: 4px solid var(--green); }
.footer-cta .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 32px;
  padding: 38px 0;
}
.footer h2, .footer h3 { color: #fff; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 7px 0; }
.footer-bottom { padding: 14px 0; background: #202020; color: #aaa; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 18px; }

@media (max-width: 1100px) {
  .header-main { grid-template-columns: 1fr auto; }
  .header-contacts { grid-column: 1 / -1; justify-items: start; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 18px; }
  .main-nav a { padding: 0 11px; font-size: 12px; }
}

@media (max-width: 992px) {
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  .grid-4, .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout, .cta-band, .product-hero { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-pack { justify-self: start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 24px, 1170px); }
  .header-main { min-height: auto; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; }
  .brand-title { font-size: 25px; }
  .brand img { width: 72px; }
  .header-contacts { display: block; }
  .header-contacts > * { display: block; margin-top: 4px; }
  .phone-main { font-size: 23px; }
  .header-actions { justify-content: space-between; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .main-nav ul { display: none; flex-direction: column; }
  body.menu-open .main-nav ul { display: flex; }
  .main-nav a { min-height: 46px; padding: 0 14px; }
  .hero { min-height: 500px; }
  .hero-content { padding: 72px 0 68px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4, .feature-list, .form-grid, .doc-grid, .footer-cta .container, .footer-main { grid-template-columns: 1fr; }
  .content-box, .cta-band, .form-section, .modal-dialog { padding: 22px; }
  .footer-bottom .container { display: block; }
}

@media (max-width: 420px) {
  body { font-size: 14px; }
  h1 { font-size: 28px; }
  .brand { align-items: flex-start; }
  .brand-title { font-size: 22px; }
  .phone-main { font-size: 20px; }
  .btn { width: 100%; }
  .hero h1 { font-size: 30px; }
  .hero-tags { display: none; }
}

/* Homepage block rework */
.home-header { border-top: 0; }
.home-header .header-main {
  grid-template-columns: minmax(220px, 270px) minmax(420px, 1fr) minmax(280px, 320px);
  min-height: 80px;
  gap: 20px;
  padding: 8px 0;
}
.header-main::before,
.header-main::after,
.award-layout::before,
.award-layout::after,
.footer-map-layout::before,
.footer-map-layout::after {
  display: none;
  content: none;
}
.brand-logo {
  min-width: 0;
  padding: 0;
}
.brand-logo img {
  width: min(240px, 100%);
  max-height: 64px;
}
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.header-contact-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f4540;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}
.header-phone:hover { color: var(--color-green-dark); transform: translateY(-1px); }
.worktime { font-size: 12px; line-height: 1.2; white-space: nowrap; }
.btn-header {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-items: end;
  align-content: center;
  min-width: 0;
}
.site-search {
  display: flex;
  width: min(100%, 320px);
  min-width: 0;
  border: 1px solid var(--color-border);
  background: #fff;
}
.hero-slide { background-position: center center; }
.site-search input {
  margin: 0;
  min-height: 38px;
  border: 0;
  padding: 8px 10px;
}
.site-search button {
  border: 0;
  padding: 0 13px;
  background: var(--color-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hero::after { background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.48), rgba(0,0,0,.24)); }
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.site-header.is-scrolled .header-main {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.site-header.is-scrolled .brand-logo,
.site-header.is-scrolled .site-search,
.site-header.is-scrolled .worktime {
  display: none;
}
.site-header.is-scrolled .main-nav {
  background: transparent;
  box-shadow: none;
}
.site-header.is-scrolled .main-nav .container {
  min-height: 64px;
}
.site-header.is-scrolled .main-nav ul {
  align-items: center;
  gap: 18px;
}
.site-header.is-scrolled .main-nav a {
  min-height: auto;
  padding: 6px 0;
  background: transparent;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 650;
  text-transform: none;
  border-bottom: 2px solid transparent;
}
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.active {
  background: transparent;
  color: var(--color-green-dark);
  border-bottom-color: var(--color-green);
}
.site-header.is-scrolled .sticky-actions {
  display: inline-flex;
}
.products-section {
  background:
    linear-gradient(135deg, rgba(11,111,58,.10), rgba(234,243,236,.78) 46%, rgba(255,255,255,.9)),
    #eef5ef;
}
.product-card {
  background: rgba(255,255,255,.96);
  border-color: rgba(11,111,58,.16);
}

.about-company { background: #fff; }
.about-row {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
}
.about-row:first-of-type { border-top: 0; }
.about-row.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr); }
.about-row--image-only { grid-template-columns: minmax(260px, 420px); justify-content: end; }
.about-row--image-only .about-image { width: 100%; }
.about-image {
  min-width: 0;
  background: #f4f6f1;
  border: 1px solid var(--color-border);
  padding: 14px;
}
.about-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.about-logo-card img {
  max-height: 320px;
  object-fit: contain;
}
.about-text { min-width: 0; }
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.inline-list li {
  padding: 7px 10px;
  background: var(--color-green-soft);
  color: var(--color-green-dark);
  font-weight: 700;
}

.optimization-strip {
  position: relative;
  padding: 66px 0;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
}
.optimization-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,45,29,.74), rgba(14,45,29,.50));
}
.optimization-strip .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.optimization-strip h2 { color: #fff; font-size: 34px; }
.optimization-strip p { font-size: 18px; }

.about-us-awards { background: #fff; }
.award-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: 34px;
  align-items: start;
}
.award-copy { min-width: 0; }
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.tab-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-dark);
  padding: 10px 14px;
  font-weight: 700;
}
.tab-btn.active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}
.award-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.award-badges img {
  width: auto;
  max-height: 92px;
  object-fit: contain;
}
.award-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.reviews-section { background: #f3f7f2; }
.reviews-grid, .diplomas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.review-thumb, .diploma-thumb {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
}
.review-thumb:hover, .diploma-thumb:hover {
  border-color: var(--color-green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.review-thumb img, .diploma-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.diploma-thumb img { aspect-ratio: 4 / 5; }
.diploma-thumb.is-extra { display: none; }
.diplomas-section.show-all .diploma-thumb.is-extra { display: block; }
.center { text-align: center; }
.diplomas-section .center { margin-top: 20px; }

.original-footer {
  background: #252725;
  border-top: 4px solid var(--color-green);
}
.footer-map-layout {
  display: grid;
  width: min(1440px, calc(100% - 80px));
  max-width: 1440px;
  grid-template-columns: minmax(180px, 220px) minmax(360px, 680px) minmax(240px, 300px);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
  margin: 0 auto;
  padding: 32px 0;
}
.footer-map-layout--real {
  grid-template-columns: minmax(180px, 220px) minmax(360px, 680px) minmax(240px, 300px);
}
.original-footer h3 {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.original-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 2px;
  background: var(--color-green);
}
.original-footer p,
.original-footer li,
.original-footer span { color: #d7ddd7; }
.original-footer a { color: #fff; }
.original-footer a:hover { color: #b9d8bd; }
.map-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    #dfe4dc;
  background-size: 32px 32px;
  color: var(--color-dark);
  text-align: center;
}
.footer-map-card {
  display: grid;
  width: 100%;
  max-width: 680px;
  gap: 10px;
  justify-self: center;
  min-width: 0;
  overflow: hidden;
}

.footer-map-card iframe {
  display: block;
  width: 100%;
  height: clamp(220px, 18vw, 260px);
  border: 0;
  border-radius: 6px;
  background: #dfe4dc;
}

.footer-map-link {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--color-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.footer-map-link:hover {
  background: #0b6f3a;
  color: #fff !important;
}
.map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-green);
  transform: rotate(-45deg);
}
.map-pin::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 9px;
  left: 9px;
  border-radius: 50%;
  background: #fff;
}

.message-tab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  transform: none;
  border: 0;
  background: var(--color-green);
  color: #fff;
  padding: 11px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,.18);
}
.message-tab:hover { background: var(--color-green-dark); }
.lightbox-dialog {
  width: auto;
  max-width: 90vw;
  background: #fff;
  border: 1px solid rgba(11,111,58,.20);
  padding: 44px 16px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
}
.lightbox-dialog img {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.lightbox-modal .modal-close {
  top: 8px;
  right: 10px;
  color: var(--color-dark);
}

@media (max-width: 1200px) {
  .home-header .header-main {
    grid-template-columns: minmax(190px, 230px) minmax(390px, 1fr) minmax(250px, 300px);
    gap: 14px;
  }
  .brand-logo img { max-height: 58px; }
  .main-nav a { padding: 0 10px; font-size: 11px; }
  .site-search { width: min(100%, 300px); }
  .header-phone { font-size: 17px; }
  .header-center { gap: 12px; }
  .btn-header { padding-inline: 12px; }
  .site-header.is-scrolled .main-nav ul { gap: 11px; }
  .site-header.is-scrolled .main-nav a { font-size: 13px; }
  .sticky-actions { gap: 8px; margin-left: 12px; }
  .sticky-phone { padding-inline: 9px; font-size: 13px; }
  .btn-sticky { padding-inline: 10px; }
}
@media (max-width: 992px) {
  .home-header .header-main {
    grid-template-columns: minmax(170px, 210px) minmax(330px, 1fr) minmax(210px, 260px);
    gap: 12px;
  }
  .header-center { justify-items: start; }
  .header-right { grid-column: auto; justify-items: end; }
  .site-search { width: min(100%, 280px); }
  .header-contact-text { display: grid; gap: 2px; }
  .section-head h2 { font-size: 31px; }
  .reviews-grid, .diplomas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-card { min-height: 190px; }
  .site-header.is-scrolled .header-main {
    max-height: none;
    min-height: 0;
    padding: 8px 0;
    opacity: 1;
    pointer-events: auto;
  }
  .site-header.is-scrolled .brand-logo,
  .site-header.is-scrolled .site-search,
  .site-header.is-scrolled .worktime { display: none; }
  .site-header.is-scrolled .home-header { background: rgba(255,255,255,.92); }
  .site-header.is-scrolled .main-nav { background: var(--color-dark); }
  .site-header.is-scrolled .main-nav .container { min-height: auto; }
  .site-header.is-scrolled .main-nav ul { gap: 0; }
  .site-header.is-scrolled .main-nav a {
    min-height: 46px;
    padding: 0 12px;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 0;
  }
  .site-header.is-scrolled .main-nav a:hover,
  .site-header.is-scrolled .main-nav a.active {
    background: var(--color-green);
    color: #fff;
  }
  .site-header.is-scrolled .sticky-actions { display: none; }
}
@media (max-width: 768px) {
  .home-header .header-main { grid-template-columns: 1fr; }
  .header-center, .header-right { justify-content: stretch; justify-items: stretch; }
  .header-center { display: grid; gap: 8px; }
  .header-contact-text { display: grid; gap: 3px; white-space: normal; }
  .header-phone { font-size: 20px; }
  .site-search { width: 100%; }
  .about-row, .about-row.reverse, .award-layout { grid-template-columns: 1fr; }
  .about-row--image-only { justify-content: stretch; }
  .about-row.reverse .about-image { order: -1; }
  .reviews-grid, .diplomas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-tab { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); padding: 10px 13px; font-size: 12px; }
}
@media (max-width: 900px) {
  .footer-map-layout,
  .footer-map-layout--real {
    width: min(100% - 24px, 1170px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .footer-map-card {
    max-width: 100%;
    justify-self: stretch;
  }
  .footer-map-card iframe {
    height: 220px;
  }
}
@media (max-width: 480px) {
  .brand-logo img { max-width: 220px; }
  .hero { min-height: 560px; }
  .reviews-grid, .diplomas-grid { grid-template-columns: 1fr; }
}

/* Stable compact header layer */
.site-header {
  position: relative;
  top: auto;
  z-index: 20;
}

.compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.compact-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.compact-header__inner {
  width: min(1420px, calc(100% - 32px));
  max-width: 1420px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 3.2vw, 52px);
}

.compact-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.compact-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  color: #252b28;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease;
}

.compact-header__nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.compact-header__nav a:hover,
.compact-header__nav a.active {
  color: var(--color-green);
}

.compact-header__nav a:hover::before,
.compact-header__nav a.active::before {
  transform: scaleX(1);
}

.compact-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.compact-header__phone {
  color: #1f2d27;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.compact-header__phone:hover {
  color: #1f2d27;
}

.compact-header__request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 4px;
  background: var(--color-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.compact-header__request:hover {
  background: var(--color-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.compact-header__burger,
.compact-header .mobile-label {
  display: none;
}

@media (max-width: 1200px) {
  .compact-header__inner {
    width: min(1180px, calc(100% - 24px));
    gap: 28px;
  }
  .compact-header__nav { gap: 16px; }
  .compact-header__nav a { font-size: 13px; }
  .compact-header__actions { gap: 14px; }
  .compact-header__phone { font-size: 15px; }
  .compact-header__request { padding-inline: 12px; font-size: 13px; }
}

@media (max-width: 992px) {
  .compact-header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .compact-header__inner {
    position: relative;
    width: min(100% - 24px, 1170px);
    min-height: 56px;
    gap: 8px;
  }

  .compact-header__nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.98);
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
    white-space: normal;
  }

  body.menu-open .compact-header.is-visible .compact-header__nav {
    display: flex;
  }

  .compact-header__nav a {
    min-height: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .compact-header__nav a::before { display: none; }

  .compact-header__actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 8px;
  }

  .compact-header__phone {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .compact-header__request {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .compact-header .desktop-label { display: none; }
  .compact-header .mobile-label { display: inline; }

  .compact-header__burger {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 4px;
    background: rgba(255,255,255,.68);
    color: #1f2d27;
    cursor: pointer;
  }

  .compact-header__burger span,
  .compact-header__burger span::before,
  .compact-header__burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .compact-header__burger span {
    position: relative;
  }

  .compact-header__burger span::before,
  .compact-header__burger span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .compact-header__burger span::before { top: -6px; }
  .compact-header__burger span::after { top: 6px; }
}

@media (max-width: 380px) {
  .compact-header__actions {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 6px;
  }

  .compact-header__phone { font-size: 13px; }
  .compact-header__request {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .compact-header__burger {
    width: 36px;
    height: 36px;
  }
}

/* Product catalog rework */
.products-grid { align-items: stretch; }
.product-category-card, .product-card { display: flex; flex-direction: column; gap: 10px; }
.mini-product-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.product-doc-note {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}
.product-detail h2 { margin-top: 28px; }
.product-detail h2:first-child { margin-top: 0; }
.product-detail table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.product-detail td, .product-detail th {
  padding: 9px 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.product-detail ul { padding-left: 22px; }
.product-detail li { margin: 6px 0; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.source-note, .muted-note {
  color: var(--muted);
  font-size: 13px;
}
.product-menu a.active {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}
@media (max-width: 768px) {
  .product-actions .btn { width: 100%; }
}

/* Full site rework */
.narrow { max-width: 920px; }
.linked-card { display: block; color: inherit; }
.linked-card:hover { color: inherit; transform: translateY(-3px); }
.linked-card span,
.linked-card em {
  display: inline-block;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
}
.lab-hero__grid {
  display: grid;
  grid-template-columns: minmax(360px, 45%) minmax(0, 55%);
  gap: clamp(40px, 4vw, 60px);
  align-items: start;
}
.lab-hero__grid::before,
.lab-hero__grid::after {
  display: none;
  content: none;
}
.lab-hero__image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lab-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lab-hero__content { min-width: 0; }
.test-grid,
.object-grid,
.diploma-grid,
.review-grid {
  display: grid;
  gap: 22px;
}
.test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.object-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.diploma-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.test-card,
.diploma-card,
.review-card,
.article-row {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.test-card {
  padding: 24px;
  border-top: 4px solid var(--green);
}
.test-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 24px;
}
.lab-contact-mini {
  max-width: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.lab-contact-mini p {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}
.section-compact { padding-top: 28px; }
.optimization-form {
  background: linear-gradient(135deg, #e5f2e8, #f7fbf4);
  border: 1px solid rgba(11,111,58,.18);
  box-shadow: 0 18px 42px rgba(11,111,58,.12);
}
.optimization-form .form-section {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(11,111,58,.12);
}
.optimization-form h2 { color: var(--green-dark); }
.optimization-form input,
.optimization-form select,
.optimization-form textarea {
  background: #fff;
  border-color: rgba(11,111,58,.22);
}
.article-list {
  display: grid;
  gap: 22px;
}
.article-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 18px;
}
.article-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.article-detail .content-box { margin-top: 22px; }
.rich-text p { font-size: 16px; }
.detail-media {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-soft);
}
.detail-media img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.detail-media figcaption {
  padding: 12px 16px;
  color: var(--green-dark);
  font-weight: 700;
}
.diploma-card,
.review-card {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.diploma-card img,
.review-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.diploma-card span,
.review-card span {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 700;
}
.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  box-shadow: var(--shadow);
}
.map-panel iframe {
  width: 100%;
  height: 460px;
  border: 0;
}
.map-fallback {
  position: absolute;
  right: 18px;
  bottom: 18px;
}
.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: 24px;
  background: rgba(0,0,0,.72);
}
.lightbox-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 92vh;
}
.lightbox-dialog img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .lab-hero__grid,
  .article-row { grid-template-columns: 1fr; }
  .lab-hero__grid { gap: 24px; }
  .test-grid,
  .object-grid,
  .diploma-grid,
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .test-grid,
  .object-grid,
  .diploma-grid,
  .review-grid { grid-template-columns: 1fr; }
  .map-panel iframe { height: 360px; }
  .map-fallback {
    position: static;
    margin: 14px;
  }
}



/* next iteration lab/articles */
.product-menu li.open > button::after { content: "-"; }
.director-message {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.director-message[hidden] { display: none; }
.director-message h3 { margin-top: 0; }
.lab-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: center;
}
.lab-intro__panel {
  padding: 34px;
  background: linear-gradient(135deg, #f7faf2, #fff);
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
}
.lab-intro__panel img,
.lab-info-grid img,
.article-row img,
.object-card .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f5f7f0;
}
.lab-tests-showcase .test-grid { align-items: stretch; }
.lab-test-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  text-decoration: none;
}
.lab-test-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--green);
}
.lab-test-card span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-soft);
}
.lab-test-card em,
.object-card em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}
.lab-info-grid figure { margin: 0; }
.lab-info-grid article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
}
.lab-detail-list { margin: 20px 0; }
@media (max-width: 900px) {
    .lab-info-grid { grid-template-columns: 1fr; }
  .lab-intro__panel { padding: 24px; }
}


/* emergency image rollback and lab fix */
.lab-title-section {
  background: #f7faf2;
  border-bottom: 1px solid var(--line);
}
.lab-title-section .narrow {
  max-width: 1040px;
}
.lab-info-grid--photo-right {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
}
.lab-info-grid--aligned {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.lab-info-grid--aligned figure,
.lab-info-grid--aligned article {
  align-self: start;
}
.lab-info-grid--aligned figure {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.lab-info-grid--aligned img {
  display: block;
  width: 100%;
  min-height: 360px;
  max-height: 460px;
  object-fit: cover;
}
.lab-info-grid--aligned article {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.lab-detail-container {
  max-width: 1180px;
}
.lab-detail-page h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lab-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.lab-detail-sections section {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.lab-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 700;
}
.lab-icon-mix::before { content: "⚗"; }
.lab-icon-press::before { content: "■"; }
.lab-icon-bend::before { content: "⌁"; }
.lab-icon-frost::before { content: "❄"; }
.lab-icon-water::before { content: "◒"; }
.lab-icon-density::before { content: "⚖"; }
.lab-test-card span.lab-card-icon {
  background: var(--green-soft);
}
.lab-test-card span.lab-card-icon::before {
  line-height: 1;
}
.lab-test-card:hover .lab-card-icon {
  background: var(--green);
  color: #fff;
}
@media (max-width: 900px) {
  .lab-info-grid--photo-right,
  .lab-info-grid--aligned,
  .lab-detail-sections { grid-template-columns: 1fr; }
  .lab-info-grid--aligned figure,
  .lab-info-grid--aligned article {
    grid-column: auto;
    grid-row: auto;
  }
  .lab-info-grid--aligned img {
    min-height: 260px;
    max-height: 360px;
  }
}


/* Search and CRM-ready lead forms */
.search-page .section-head { max-width: 860px; }
.site-search-wide { display: flex; gap: 12px; align-items: stretch; margin: 0 0 28px; max-width: 820px; }
.site-search-wide input { flex: 1; min-width: 0; border: 1px solid #d6ded8; border-radius: 8px; padding: 13px 16px; font-size: 16px; }
.search-results { display: grid; gap: 14px; }
.search-result-card { display: grid; gap: 10px; padding: 20px; border: 1px solid #e0e7e2; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(21, 44, 31, .06); }
.search-result-card h2 { margin: 0; font-size: 22px; }
.search-result-card p { margin: 0; color: #4d5d52; }
.search-result-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 10px; background: #e7f2eb; color: #0b6b38; font-weight: 700; font-size: 13px; }
.search-empty { margin-top: 22px; padding: 24px; border: 1px dashed #b9c8be; border-radius: 8px; background: #f8fbf9; }
.lead-modal-dialog { max-width: 720px; }
.lead-source-summary { margin: -8px 0 18px; color: #526258; font-size: 14px; }
.field-hint { display: block; margin-top: 6px; color: #66736b; font-size: 13px; line-height: 1.35; }
.optimization-form select,
.optimization-form input,
.optimization-form textarea,
.lead-modal-dialog input,
.lead-modal-dialog textarea { width: 100%; }
@media (max-width: 640px) {
  .site-search-wide { flex-direction: column; }
  .search-result-card { padding: 16px; }
}


/* Forms modal cleanup */
.modal {
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 24px;
}
.modal *,
.modal *::before,
.modal *::after {
  box-sizing: border-box;
}
.modal-dialog {
  width: 100%;
  max-width: min(900px, calc(100vw - 32px));
  overflow-x: hidden;
}
.lead-modal-dialog {
  width: 100%;
  max-width: min(720px, calc(100vw - 32px));
}
.lead-modal-dialog .modal-close {
  top: 10px;
  right: 10px;
}
.lead-modal-dialog form,
.lead-modal-dialog .form-grid,
.lead-modal-dialog label,
.lead-modal-dialog input,
.lead-modal-dialog select,
.lead-modal-dialog textarea,
.lead-modal-dialog .btn-row {
  min-width: 0;
  max-width: 100%;
}
.lead-modal-dialog .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lead-modal-dialog textarea {
  resize: vertical;
}
.lead-modal-dialog .btn {
  width: auto;
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 640px) {
  .modal { padding: 16px; }
  .modal-dialog,
  .lead-modal-dialog {
    max-width: calc(100vw - 32px);
    padding: 22px;
  }
.lead-modal-dialog .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Image replacements and restrained motion polish */
.product-logo-main {
  width: min(104px, 100%);
  height: auto;
  justify-self: center;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.10));
}

.home-lab-highlight {
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, #fff 0%, #fff 62%, #f7fbf8 100%);
  color: var(--text);
  border: 1px solid var(--color-border);
  border-top: 3px solid rgba(11,111,58,.82);
  box-shadow: 0 12px 28px rgba(17,24,39,.06);
}

.home-lab-highlight .about-text h3,
.home-lab-highlight .about-text p {
  color: var(--text);
}

.home-lab-highlight .about-text p {
  opacity: 1;
}

.home-lab-highlight .about-image {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11,111,58,.06);
}

.lab-building-photo {
  object-position: center center;
}

.product-card-image {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  margin-bottom: 8px;
  background: #f5f7f0;
}

.detail-media--contain {
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-media--contain img,
.detail-media img[src*="replacements/object-"] {
  max-height: none;
  object-fit: contain;
}

.object-card,
.article-row,
.product-card,
.product-category-card,
.doc-card,
.diploma-card,
.review-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.object-card,
.article-row,
.diploma-card,
.review-card {
  overflow: hidden;
}

.object-card .card-img,
.article-row img,
.product-card-image {
  transition: transform .32s ease;
}

.object-card:hover,
.article-row:hover,
.product-card:hover,
.product-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11,111,58,.28);
  box-shadow: 0 18px 38px rgba(0,0,0,.10);
}

.object-card:hover .card-img,
.article-row:hover img {
  transform: scale(1.035);
}

.product-card:hover .product-card-image,
.product-category-card:hover .product-icon {
  transform: scale(1.04);
}

.linked-card em,
.more-link {
  transition: color .22s ease, text-decoration-color .22s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.linked-card:hover em,
.article-row:hover .btn,
.product-card:hover .more-link,
.product-category-card:hover .more-link {
  text-decoration-color: currentColor;
}

.modal.open .modal-dialog {
  animation: modalSoftIn .18s ease both;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { --reveal-delay: 45ms; }
.reveal-on-scroll:nth-child(3) { --reveal-delay: 90ms; }
.reveal-on-scroll:nth-child(4) { --reveal-delay: 135ms; }

.product-workspace .reveal-on-scroll,
.layout .content-box.product-detail.reveal-on-scroll,
.product-card.reveal-on-scroll {
  transition-duration: .16s;
  transition-delay: 0ms;
}

@keyframes modalSoftIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: none) {
  .object-card:hover,
  .article-row:hover,
  .product-card:hover,
  .product-category-card:hover,
  .btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Laboratory white layout polish */
.lab-title-section {
  background: #fff;
  border-bottom: 1px solid #e3e8e2;
  box-shadow: 0 10px 28px rgba(17,24,39,.04);
}

.lab-title-section h1 {
  color: #111827;
}

.lab-title-section .lead {
  color: #4b5563;
}

.lab-tests-showcase {
  background: #fff;
}

.lab-tests-showcase .test-card,
.lab-tests-showcase .lab-test-card {
  background: #fff;
  border: 1px solid #e3e8e2;
  border-top: 4px solid var(--green);
  box-shadow: 0 14px 32px rgba(17,24,39,.07);
}

.lab-tests-showcase .lab-test-card:hover {
  border-color: rgba(11,111,58,.28);
  box-shadow: 0 18px 38px rgba(17,24,39,.10);
}

.lab-tests-showcase .lab-test-card h3 {
  color: #111827;
}

.lab-tests-showcase .lab-test-card p {
  color: #4b5563;
}

.lab-info-grid--dark-accent {
  padding: clamp(24px, 4vw, 36px);
  background: #fff;
  color: #111827;
  border: 1px solid #e3e8e2;
  box-shadow: 0 18px 42px rgba(17,24,39,.07);
}

.lab-info-grid--dark-accent article {
  background: #fff;
  border: 1px solid #e3e8e2;
  box-shadow: 0 12px 28px rgba(17,24,39,.05);
}

.lab-info-grid--dark-accent .kicker {
  color: var(--green-dark);
}

.lab-info-grid--dark-accent h2 {
  color: #111827;
}

.lab-info-grid--dark-accent p {
  color: #4b5563;
}

.lab-info-grid--dark-accent .btn {
  color: #fff;
}

.lab-info-grid--dark-accent .btn-outline {
  color: #111827;
  border-color: #cfd8cf;
  background: #fff;
}

.lab-info-grid--dark-accent .btn-outline:hover {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

/* WordPress test-site refinement: the full header and product workspace. */
.home-header .header-main {
  grid-template-columns: minmax(300px, 330px) minmax(370px, 1fr) minmax(290px, 310px);
  min-height: 102px;
  gap: clamp(18px, 2vw, 32px);
  padding: 10px 0;
}

.brand-logo img {
  width: min(320px, 100%);
  max-width: none;
  max-height: 82px;
}

.header-center { gap: clamp(16px, 1.8vw, 26px); }
.header-contact-text { display: grid; justify-items: start; gap: 3px; }
.header-phone { font-size: 20px; font-weight: 700; }
.worktime { font-size: 13px; }
.btn-header { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.header-center,
.header-right { align-self: center; }
.header-center { align-items: center; }
.header-right { display: flex; align-items: center; min-height: 42px; }
.site-search { width: min(100%, 350px); height: 42px; min-height: 42px; margin: 0; align-self: center; align-items: stretch; }
.site-search input { min-height: 40px; padding: 9px 12px; font-size: 14px; }
.site-search button { min-width: 68px; padding: 0 14px; font-size: 14px; }

.product-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 305px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.product-workspace .sidebar { grid-column: 1; grid-row: 1 / span 2; }
.product-workspace__content { grid-column: 2; display: grid; gap: 24px; min-width: 0; }
.product-panel {
  min-width: 0;
  min-height: 270px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .055);
}

.product-panel.is-updating { animation: productPanelIn .16s ease both; }
.product-panel .kicker { margin-bottom: 10px; }
.product-panel h2 { color: var(--color-green-dark); }
.product-panel p { max-width: 760px; color: #414741; }
.product-panel__link { margin-top: 10px; }
@keyframes productPanelIn { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.product-menu button[data-product-category] { position: relative; }
.product-menu__nested { background: #fbfcf7; }
.product-menu__nested > button { padding-left: 28px; font-size: 14px; }
.product-menu__nested > ul a { padding-left: 40px; }

@media (max-width: 1200px) {
  .home-header .header-main {
    grid-template-columns: minmax(245px, 290px) minmax(390px, 1fr) minmax(270px, 310px);
    min-height: 94px;
    gap: 16px;
  }
  .brand-logo img { width: min(280px, 100%); max-height: 72px; }
  .header-center { gap: 14px; }
  .header-phone { font-size: 18px; }
  .worktime { font-size: 12px; }
  .btn-header { padding-inline: 12px; font-size: 13px; }
  .site-search { width: min(100%, 305px); }
}

@media (max-width: 992px) {
  .home-header .header-main {
    grid-template-columns: minmax(200px, 230px) minmax(320px, 1fr) minmax(220px, 255px);
    min-height: 86px;
    gap: 12px;
  }
  .brand-logo img { width: min(220px, 100%); max-height: 62px; }
  .header-center { gap: 10px; }
  .header-phone { font-size: 16px; }
  .worktime { font-size: 11px; }
  .btn-header { min-height: 36px; padding: 9px 10px; font-size: 12px; }
  .site-search { width: min(100%, 250px); }
  .site-search button { min-width: 56px; padding-inline: 10px; font-size: 12px; }
}

@media (max-width: 768px) {
  .home-header .header-main {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
    padding: 14px 0 16px;
  }
  .brand-logo { display: flex; width: 100%; justify-self: stretch; justify-content: center; }
  .brand-logo img {
    width: min(250px, calc(100vw - 48px));
    max-width: none;
    max-height: 66px;
    margin-inline: auto;
  }
  .header-center {
    display: grid;
    justify-items: center;
    gap: 2px;
  }
  .header-center .btn-header { display: none; }
  .header-contact-text { display: grid; justify-items: center; gap: 3px; text-align: center; }
  .header-phone { font-size: 20px; }
  .worktime { font-size: 12px; }
  .header-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .site-search { width: 100%; min-width: 0; height: 44px; min-height: 44px; }
  .site-search input, .site-search button { min-width: 0; min-height: 0; height: 42px; line-height: 1.2; }
  .site-search button { min-width: 62px; }
  .menu-toggle {
    display: inline-flex;
    min-width: 94px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    line-height: 1;
  }
  .product-workspace { grid-template-columns: 1fr; gap: 18px; }
  .product-workspace .sidebar { grid-column: auto; grid-row: auto; }
  .product-workspace__content { grid-column: auto; }
  .product-panel { min-height: 0; }
}

@media (max-width: 360px) {
  .brand-logo img { width: min(226px, calc(100vw - 40px)); }
  .header-right { grid-template-columns: minmax(0, 1fr) 86px; gap: 6px; }
  .menu-toggle { min-width: 86px; padding-inline: 7px; font-size: 13px; }
  .site-search button { min-width: 54px; padding-inline: 8px; font-size: 12px; }
}


/* 2026-07-13 requested catalogue, spacing and articles corrections. */
body[data-page="products"] #primary:not(.section) > .container:first-child,
body[data-page="optimization"] #primary:not(.section) > .container:first-child {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.product-hero--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.product-panel__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-panel__product {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf7;
  color: var(--black);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.product-panel__product strong {
  color: var(--green-dark);
  line-height: 1.3;
}

.product-panel__product span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-panel__product:hover {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}

.product-menu__nested > button::after {
  content: "+";
}

.product-menu__nested.open > button::after {
  content: "-";
}

.articles-page__extra > .section:first-child {
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  body[data-page="products"] #primary:not(.section) > .container:first-child,
  body[data-page="optimization"] #primary:not(.section) > .container:first-child {
    padding-top: 32px;
    padding-bottom: 44px;
  }

  .product-panel__products {
    grid-template-columns: 1fr;
  }
}
