:root {
  --bg0: #f7fcf7;
  --bg1: #ffffff;
  --card: #ffffff;
  --text: #173727;
  --muted: #4f6758;
  --border: rgba(31, 138, 77, 0.25);
  --shadow: 0 10px 28px rgba(24, 66, 41, 0.10);
  --blue: #1f8a4d;
  --blue2: #1f8a4d;
  --blueSoft: rgba(31, 138, 77, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 0 8px;
}
.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}
.lang-switch {
  position: absolute;
  top: 10px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.lang-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px 0 8px;
  white-space: nowrap;
}
.lang-link {
  min-width: 42px;
  height: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
}
.lang-code {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.lang-flag {
  font-size: 12px;
  line-height: 1;
  margin-top: 1px;
}
.lang-link:hover { background: var(--blueSoft); }
.lang-link.is-active {
  background: var(--blue);
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 240px;
}
.brand-logo {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
}

.nav { position: relative; }
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.nav-toggle-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 5px 0 var(--text), 0 10px 0 var(--text);
  opacity: 0.85;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.88);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.nav-link:hover { background: var(--blueSoft); color: var(--text); }

.nav-item-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  display: none;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown-link {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 600;
  font-size: 14px;
}
.nav-dropdown-link:hover { background: var(--blueSoft); }

.header-contact-group {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 16px;
  margin-left: 8px;
  width: max-content;
  max-width: 100%;
}
.header-cta {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
}
.messenger-grid {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, max-content);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
}
.messenger-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.messenger-label--wa {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
}
.messenger-label--tg {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}
.header-contact-group .wa-btn,
.header-contact-group .tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.header-contact-group .wa-btn {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  background: #19b34f;
  box-shadow: 0 6px 16px rgba(25, 179, 79, 0.28);
}
.header-contact-group .tg-btn {
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  height: 44px;
  background: linear-gradient(155deg, #34b6f5 0%, #229ed9 52%, #1d8cc4 100%);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.28);
}
.header-contact-group .wa-btn:hover,
.header-contact-group .tg-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(24, 66, 41, 0.18);
}
.header-contact-group .wa-btn:active,
.header-contact-group .tg-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.header-contact-group .wa-icon {
  width: auto;
  height: auto;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.header-contact-group .wa-icon::before {
  content: "\2706";
  color: #fff;
  font-size: 31.25px;
  line-height: 1;
  font-weight: 800;
}
.header-contact-group .tg-icon {
  width: auto;
  height: auto;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}
.header-contact-group .tg-icon svg {
  display: block;
}
.header-contact-group .wa-sub {
  grid-column: 3;
  grid-row: 1;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  max-width: 11.5em;
  margin: 0;
  align-self: center;
}
.header-contact-right {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 4px;
  align-items: start;
  align-content: start;
  min-width: 0;
  padding: 0;
  border-bottom: none;
}
.contact-mini {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}
.nav {
  position: relative;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 2px 0 0;
  align-items: center;
}
/* Hero */
.hero { padding: 18px 0 10px; }
.hero-carousel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-slide {
  display: none;
  min-height: 420px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.hero-slide-fit {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #eef8ef;
}
.hero-slide.is-active { display: block; }
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(12, 35, 20, 0.38);
}
.hero-content {
  position: relative;
  padding: 56px 0 72px;
  max-width: 780px;
}
.hero-kicker {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 12px;
  text-transform: uppercase;
}
.hero-title {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.1px;
}
.hero-lead {
  margin: 0;
  color: rgba(255,255,255,0.90);
  font-size: 16px;
  line-height: 1.55;
  max-width: 66ch;
}
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.hero-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(15, 23, 42, 0.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.hero-btn:hover { background: rgba(15, 23, 42, 0.35); }
.hero-dots {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.25);
}
.dot.is-active { background: #fff; border-color: #fff; width: 24px; border-radius: 999px; }

/* Sections */
.section {
  padding: 54px 0;
  border-top: 2px solid rgba(31, 138, 77, 0.25);
}
.section-alt {
  background: #f4faf5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { display: grid; gap: 10px; margin-bottom: 20px; }
.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.1px;
}
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(31, 138, 77, 0.15);
  border: 1px solid rgba(31, 138, 77, 0.28);
  font-size: 16px;
  vertical-align: middle;
}
.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 80ch;
}
.about-lead {
  max-width: 92ch;
  line-height: 1.75;
  font-size: 16.5px;
  color: rgba(15, 23, 42, 0.82);
}
.about-stats {
  margin-top: 10px;
}
.about-stats .stat {
  padding: 18px;
  min-height: 122px;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  margin-bottom: 20px;
  align-items: start;
}
.about-top .section-head { margin-bottom: 0; }
.about-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 10px;
}
.about-video-card video {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.about-video-hint {
  margin: 8px 4px 2px;
  font-size: 12px;
  color: var(--muted);
}

.products-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}
.section#products .products-head {
  margin-top: 6px;
}
.products-head .section-head { margin-bottom: 0; }
.product-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  place-items: center;
  padding: 12px;
}
.product-side-card img {
  width: 100%;
  height: 100%;
  max-height: 235px;
  object-fit: contain;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.card, .stat, .contact-card, .form, .media-card, .placeholder-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .stat:hover, .media-card:hover, .placeholder-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.card { overflow: hidden; }
.card-media { border-bottom: 1px solid var(--border); }
.card-media img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: #f3f8f4;
  padding: 8px;
}
.card-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
}
.card-media-pair img {
  height: 170px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.card-body { padding: 16px; }
.card-title { margin: 0 0 8px; font-size: 16px; letter-spacing: 0.1px; }
.card-text { margin: 0; color: var(--muted); line-height: 1.6; }
.more-products-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.more-products-link:hover { text-decoration: underline; }

.img-slot {
  height: 160px;
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.55);
  background: #f2f8f4;
  border: 1px dashed rgba(31, 138, 77, 0.35);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.placeholder-block { padding: 18px; color: var(--muted); line-height: 1.6; }
.placeholder-block strong { color: rgba(15, 23, 42, 0.90); }
.oem-block-img {
  width: 100%;
  height: 190px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

.stat { padding: 16px; }
.stat-title { font-weight: 800; margin-bottom: 6px; }
.stat-text { color: var(--muted); line-height: 1.6; }

.media-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quality-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.other-parts-gallery {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.media-card { overflow: hidden; }
.quality-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.other-parts-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  background: #f2f8f4;
  padding: 8px;
}
.media-caption { padding: 12px 14px; color: var(--muted); font-weight: 600; }
.media-more-link {
  display: inline-flex;
  margin: 0 14px 14px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.media-more-link:hover { text-decoration: underline; }

/* Contact */
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.contact-image-card {
  order: 1;
  background: #eef4f0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-side-img {
  width: 100%;
  height: clamp(260px, 36vw, 420px);
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.contact-card { order: 2; padding: 20px 22px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.contact-line { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.contact-line:last-child { border-bottom: 0; }
.contact-label { font-size: 12px; font-weight: 800; color: rgba(15, 23, 42, 0.62); text-transform: uppercase; letter-spacing: 0.6px; }
.contact-value { color: rgba(15, 23, 42, 0.90); text-decoration: none; line-height: 1.45; }
a.contact-value:hover { color: var(--blue); text-decoration: underline; }
.contact-map-card {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.contact-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f0f8f2;
}
.contact-map-title {
  margin: 0;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.9);
}
.contact-map-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.contact-map-link:hover { text-decoration: underline; }
.contact-map-iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
/* hard disable old contact form block (for cached old HTML) */
#contact-form {
  display: none !important;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
}
.footer-inner {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { font-weight: 800; color: rgba(15, 23, 42, 0.76); }
.footer-copy { text-align: right; }

/* Responsive */
@media (max-width: 920px) {
  .lang-switch { top: 8px; right: 0; }
  .header-left { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-contact-group {
    width: 100%;
    max-width: none;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }
  .messenger-grid {
    grid-template-columns: 40px 40px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
  }
  .messenger-label {
    font-size: 9.5px;
  }
  .header-contact-group .wa-sub {
    font-size: 9.5px;
    max-width: 9.5em;
  }
  .header-contact-group .wa-btn,
  .header-contact-group .tg-btn {
    width: 40px;
    height: 40px;
  }
  .header-contact-group .wa-icon::before {
    font-size: 28.75px;
  }
  .header-contact-group .tg-icon svg {
    width: 17px;
    height: 17px;
  }
  .contact-mini {
    font-size: 11.5px;
  }
  .brand { min-width: unset; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .nav-item-dropdown:hover .nav-dropdown { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; }
  .quality-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-parts-gallery { grid-template-columns: 1fr; }
  .contact-main { grid-template-columns: 1fr; }
  .contact-map-head { flex-direction: column; align-items: flex-start; }
  .contact-map-iframe { height: 280px; }
  .contact-side-img { height: clamp(220px, 52vw, 320px); object-position: center 18%; }
  .hero-content { padding: 44px 0 68px; }
  .about-top { grid-template-columns: 1fr; }
  .products-head { grid-template-columns: 1fr; }
}
