/* ==========================================================================
   SST — components.css
   Header / Nav, Footer, Buttons, Sections, Cards, Sliders, Forms, Modal,
   Gridder, Catalog, Product, Contacts. Matches BEM markup in the HTML.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background-color: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.btn--primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 8px 24px -8px var(--brand-shadow);
}
.btn--ghost {
  background-color: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--ghost:hover { background-color: var(--brand); color: var(--on-brand); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

/* Ghost button on dark/hero backgrounds */
.hero__actions .btn--ghost,
.production .btn--ghost {
  color: var(--on-brand);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero__actions .btn--ghost:hover,
.production .btn--ghost:hover {
  background-color: var(--on-brand);
  color: var(--brand-dark);
  border-color: var(--on-brand);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand-dark); }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--accent); }

.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section__title { margin: 0; }
.section__title--light { color: var(--on-brand); }
.section__link {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.section__link:hover { color: var(--brand-dark); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.25); }

.topbar {
  background-color: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar__contacts { display: flex; gap: 1.4rem; }
.topbar__link { color: rgba(255, 255, 255, 0.85); }
.topbar__link:hover { color: var(--on-brand); }
.topbar__link--phone { font-weight: 600; }

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}
.logo__tag {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.logo--light .logo__mark { color: var(--on-brand); }
.logo--light .logo__tag { color: rgba(255, 255, 255, 0.6); }

.main-nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  padding: 0.4rem 0;
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width 0.25s ease;
}
.main-nav__link:hover { color: var(--brand); }
.main-nav__link:hover::after,
.main-nav__link.is-active::after { width: 100%; }
.main-nav__link.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.header-phone:hover { color: var(--brand); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 36, 23, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background-color: var(--bg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__close {
  align-self: flex-end;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  margin-bottom: 1rem;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:hover { color: var(--brand); }
.mobile-menu__footer { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__phone { font-size: 1.3rem; font-weight: 700; color: var(--brand); }

/* ==========================================================================
   BLOCK 1 — HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--on-brand);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 36, 23, 0.9) 0%, rgba(15, 36, 23, 0.6) 45%, rgba(15, 36, 23, 0.15) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero__content { max-width: 640px; }
.hero__title {
  color: var(--on-brand);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.4rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__stats { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.hero__stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.35rem; }

/* ==========================================================================
   BLOCK 2 — ADVANTAGES
   ========================================================================== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.adv-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -24px var(--brand-shadow);
  border-color: transparent;
}
.adv-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.adv-card__icon svg { width: 28px; height: 28px; }
.adv-card__title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.adv-card__text { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   BLOCK 3 — PRODUCTS
   ========================================================================== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -26px var(--brand-shadow); }
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-card__text { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.product-card__link { margin-top: auto; font-weight: 600; color: var(--brand); }
.product-card__link:hover { color: var(--brand-dark); }

/* ==========================================================================
   BLOCK 4 — USE CASES (Owl slider)
   ========================================================================== */
.usecases__slider { margin-top: 0.5rem; }
.usecase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.usecase img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.usecase:hover img { transform: scale(1.07); }
.usecase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 23, 0.85), transparent 55%);
}
.usecase__label {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  color: var(--on-brand);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ==========================================================================
   BLOCK 5 — PRODUCTION (dark split)
   ========================================================================== */
.production__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.production__media { border-radius: var(--radius-lg); overflow: hidden; }
.production__media img { width: 100%; height: 100%; object-fit: cover; }
.production__text { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.6rem; }
.production__list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.production__list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.production__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--brand-dark);
}

/* ==========================================================================
   BLOCK 6 — STEPS
   ========================================================================== */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card {
  position: relative;
  padding: 2.2rem 1.6rem 1.8rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-card__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.step-card__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-card__text { color: var(--muted); font-size: 0.92rem; margin: 0; }
.step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.step-card:hover::before { transform: scaleY(1); }

/* ==========================================================================
   BLOCK 7 — PROJECTS
   ========================================================================== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.5rem;
}
.project-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}
.project-tile--lg { grid-column: span 2; grid-row: span 2; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-tile:hover img { transform: scale(1.06); }
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 23, 0.85), transparent 60%);
}
.project-tile__cap {
  position: absolute;
  left: 1.4rem;
  bottom: 1.3rem;
  right: 1.4rem;
  z-index: 1;
  color: var(--on-brand);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}
.project-tile__cap strong { font-family: var(--font-serif); font-size: 1.2rem; }

/* ==========================================================================
   BLOCK 8 — CTA BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--on-brand);
  text-align: center;
  padding: 5rem 0;
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 36, 23, 0.78);
}
.cta-banner__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-banner__title { color: var(--on-brand); margin-bottom: 1rem; }
.cta-banner__text { color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; font-size: 1.1rem; }

/* ==========================================================================
   BLOCK 9 — NUMBERS
   ========================================================================== */
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.number-card {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
}
.number-card:last-child { border-right: none; }
.number-card__value {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--brand);
  line-height: 1;
  display: block;
}
.number-card__label { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; display: block; }

/* ==========================================================================
   BLOCK 10 — REVIEWS (Owl slider)
   ========================================================================== */
.review {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}
.review__stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
.review__text { font-size: 1rem; color: var(--text); margin-bottom: 1.5rem; }
.review__author { display: flex; flex-direction: column; }
.review__author strong { font-family: var(--font-serif); font-size: 1.05rem; }
.review__author span { color: var(--muted); font-size: 0.85rem; }

/* ==========================================================================
   BLOCK 11 — FAQ
   ========================================================================== */
.faq__inner { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.faq__head { position: sticky; top: 130px; }
.faq__note { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }
.faq__list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background-color: var(--brand);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-item__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-item__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item__a p { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--muted); }

/* ==========================================================================
   BLOCK 12 — CONTACT BLOCK
   ========================================================================== */
.contact-block__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-block__text { color: var(--muted); margin-bottom: 2rem; }
.contact-block__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-block__list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-block__list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-block__list a { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.contact-block__list a:hover { color: var(--brand); }

/* ---------- Forms ---------- */
.lead-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field__label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background-color: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.form-field__input::placeholder { color: var(--muted); }
textarea.form-field__input { resize: vertical; min-height: 90px; }
.form-field.has-error .form-field__input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }
.form-field__error { color: var(--danger); font-size: 0.8rem; }
.lead-form__note { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0; }
.lead-form--card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 30px 60px -40px var(--brand-shadow);
}
.lead-form__title { margin-bottom: 1.5rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
}
.form-success.is-visible { display: block; animation: fadeIn 0.4s ease; }
.form-success::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: var(--surface);
  color: var(--brand);
  font-size: 1.8rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background-color: var(--brand-dark); color: rgba(255, 255, 255, 0.75); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.site-footer__about { margin-top: 1.2rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }
.site-footer__title {
  color: var(--on-brand);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.site-footer__list a { color: rgba(255, 255, 255, 0.72); }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__list--contacts { margin-bottom: 1.4rem; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.72); }
.site-footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background-color: rgba(15, 36, 23, 0.6); }
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}
.modal__close:hover { color: var(--text); }
.modal__title { margin-bottom: 0.5rem; }
.modal__text { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ==========================================================================
   SCROLL TOP
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--brand);
  color: var(--on-brand);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 10px 24px -10px var(--brand-shadow);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background-color: var(--brand-dark); }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  color: var(--on-brand);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
}
.page-hero--sm { min-height: 260px; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 23, 0.9), rgba(15, 36, 23, 0.45));
}
.page-hero__inner { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.page-hero__title { color: var(--on-brand); margin: 0.8rem 0 0.6rem; }
.page-hero__lead { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.88rem; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: rgba(255, 255, 255, 0.55); }
.breadcrumbs--dark a { color: var(--muted); }
.breadcrumbs--dark a:hover { color: var(--brand); }
.breadcrumbs--dark span { color: var(--text); }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-intro__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-intro__text p { color: var(--muted); }
.about-intro__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.about-intro__facts li {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.about-intro__facts strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.about-intro__facts span { color: var(--muted); font-size: 0.9rem; }

.certificates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card {
  margin: 0;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -24px var(--brand-shadow); }
.cert-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cert-card figcaption { padding: 1rem; font-weight: 600; font-size: 0.95rem; }

/* ==========================================================================
   CATALOG PAGE
   ========================================================================== */
.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.catalog__filters { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.filter { display: flex; flex-direction: column; gap: 0.4rem; }
.filter__label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filter__select {
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23516153' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  appearance: none;
}
.filter__select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.catalog__count { color: var(--muted); font-size: 0.95rem; }
.catalog__count strong { color: var(--text); }

.gridder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gridder-list {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.gridder-list:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px var(--brand-shadow); }
.gridder-list:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.gridder-list.is-active {
  border-color: var(--brand);
  box-shadow: 0 22px 44px -26px var(--brand-shadow);
}
.product-item__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.product-item__media img {width: 100%;height: 100%;/* object-fit: cover; */transition: transform 0.5s ease;}
.gridder-list:hover .product-item__media img { transform: scale(1.06); }
.product-item__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background-color: var(--brand);
  color: var(--on-brand);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.product-item__badge--static { position: static; display: inline-block; margin-bottom: 1rem; }
.product-item__body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-item__title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.product-item__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}
.product-item__price { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--brand); }

.catalog__empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.catalog__empty.is-visible { display: block; }

/* ---------- Gridder expanded panel ---------- */
.gridder-expanded {
  grid-column: 1 / -1;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  margin: -0.25rem 0 0.5rem;
}
.gridder-content {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  padding: 2.4rem;
  /* align-items: center; */
}
.gridder-content__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gridder-content__media img {width: 100%;height: 100%;/* object-fit: cover; */}
.gridder-content__title { margin-bottom: 0.6rem; }
.gridder-content__desc { color: var(--muted); margin-bottom: 1.4rem; }
.gridder-content__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.gridder-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: var(--bg);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gridder-close:hover { color: var(--text); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 0.7rem 0; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-table th { color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--text); font-weight: 600; text-align: right; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-detail__gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery .owl-stage-outer { border-radius: var(--radius-lg); }
.product-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.product-detail__title { margin: 0.8rem 0 1rem; }
.product-detail__lead { color: var(--muted); margin-bottom: 1.6rem; }
.product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.product-detail__price-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--brand); }
.product-detail__price-unit { color: var(--muted); }
.product-detail__highlights { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.product-detail__highlights li { position: relative; padding-left: 1.8rem; color: var(--text); }
.product-detail__highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.product-detail__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.product-tabs__btn {
  background: none;
  border: none;
  padding: 1rem 1.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.product-tabs__btn:hover { color: var(--text); }
.product-tabs__btn.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.product-tabs__panel { display: none; max-width: 760px; }
.product-tabs__panel.is-active { display: block; animation: fadeIn 0.4s ease; }
.product-tabs__panel p { color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.related .products__grid { margin-top: 0; }

/* ==========================================================================
   CONTACTS PAGE
   ========================================================================== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contacts-grid__info p { color: var(--muted); }
.contacts-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.contact-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 0.3rem; }
.contact-card__value { font-weight: 600; color: var(--text); }
.contact-card__value a { color: var(--text); }
.contact-card__value a:hover { color: var(--brand); }
.contacts-map {
  margin-top: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}
.contacts-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Owl nav/dots theming ---------- */
.owl-theme .owl-nav { margin-top: 1.5rem; display: flex; gap: 0.6rem; justify-content: center; }
.owl-theme .owl-nav [class*="owl-"] {
  background-color: var(--bg) !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--border) !important;
  width: 46px;
  height: 46px;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.owl-theme .owl-nav [class*="owl-"]:hover { background-color: var(--brand) !important; color: var(--on-brand) !important; }
.owl-theme .owl-dots { margin-top: 1.2rem; text-align: center; }
.owl-theme .owl-dots .owl-dot span {
  width: 9px;
  height: 9px;
  background-color: var(--border) !important;
  transition: background-color 0.2s ease, width 0.2s ease;
}
.owl-theme .owl-dots .owl-dot.active span { background-color: var(--brand) !important; width: 24px; border-radius: 6px; }

/* ==========================================================================
   Grass-themed section backgrounds
   ========================================================================== */
.section--grass {
  position: relative;
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(242, 245, 239, 0.9), rgba(242, 245, 239, 0.9)),
    url("/img/grass-texture.png");
  background-size: auto, 340px;
  background-repeat: repeat;
  background-blend-mode: normal, luminosity;
}
/* thin decorative grass strip at the top edge of a grass section */
.section--grass::before,
.section--grass-dark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background-image: url("/img/grass-texture.png");
  background-size: 120px;
  background-repeat: repeat-x;
  opacity: 0.55;
  pointer-events: none;
}

.section--grass-dark {
  position: relative;
  background-color: var(--brand-dark);
  background-image:
    linear-gradient(rgba(15, 36, 23, 0.86), rgba(15, 36, 23, 0.9)),
    url("/img/grass-texture.png");
  background-size: auto, 360px;
  background-repeat: repeat;
  color: var(--on-brand);
}
.section--grass-dark::before { opacity: 0.7; }
.section--grass-dark .number-card { border-right-color: rgba(255, 255, 255, 0.14); }
.section--grass-dark .number-card__value { color: var(--accent); }
.section--grass-dark .number-card__label { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   Certificates slider
   ========================================================================== */
.certificates-slider__note { margin-top: 0.75rem; color: var(--muted); max-width: 620px; }
.cert-slide {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg);
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cert-slide:hover,
.cert-slide:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -26px var(--brand-shadow);
  border-color: var(--brand);
  outline: none;
}
.cert-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.cert-slide__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--brand);
  color: var(--on-brand);
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cert-slide:hover .cert-slide__zoom,
.cert-slide:focus-visible .cert-slide__zoom { opacity: 1; transform: scale(1); }
.cert-slide__cap {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 20, 13, 0.88);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox__figure {
  margin: 0;
  max-width: min(560px, 82vw);
  text-align: center;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  background-color: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
}
.lightbox__close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--on-brand);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover { background-color: var(--brand); }
.lightbox__nav {
  flex: none;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--on-brand);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox__nav:hover { background-color: var(--brand); transform: scale(1.06); }
