﻿:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --primary: #1b5e20;
  --primary-700: #174d1b;
  --primary-hover: #155d1f;
  --accent: #2f855a;
  --accent-green: #2f855a;
  --accent-cyan: #3ba99c;
  --accent-gray: #64748b;
  --text: #0f172a;
  --muted: #5b6b78;
  --border: #e3e9e5;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);
  --radius: 18px;
  --container: 1180px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #f7fbf8 0%, #f0f5f0 30%, #f6f9f6 60%, #f0f5f0 100%);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.header {
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo span {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.2);
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.28);
  background: var(--primary-hover);
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  background: rgba(47, 133, 90, 0.1);
  color: var(--primary);
  border-color: transparent;
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(47, 133, 90, 0.16);
  box-shadow: 0 2px 8px rgba(47, 133, 90, 0.18);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.hero {
  padding: 90px 0 60px;
  background: radial-gradient(circle at top left, rgba(47, 133, 90, 0.16), transparent 50%),
    radial-gradient(circle at bottom right, rgba(59, 169, 156, 0.18), transparent 55%),
    linear-gradient(180deg, #f7fbf8 0%, #f2f8f3 50%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-enhanced p {
  color: rgba(255, 255, 255, 0.9);
  /* font-size controlled by .hero-description class */
  margin-bottom: 0;
}

.hero-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.section {
  padding: 70px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 50%, #ffffff 100%);
}

/* Чередование фонов для текстовых секций подряд (исключаем секции с собственным фоном) */
main > .section:not(.cta-banner):not(.catalog-details):not(.product-hero):not(.categories-section):not(.process-section):nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ee 50%, #ffffff 100%);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.section-title p {
  color: var(--muted);
  max-width: 480px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.catalog-details {
  padding-top: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 30%, #eef5ee 60%, #ffffff 100%);
}

/* Чередование фонов для секций каталога */
main > .section.catalog-details:nth-of-type(odd) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 30%, #eef5ee 60%, #ffffff 100%);
}

main > .section.catalog-details:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ee 30%, #f7fbf8 60%, #ffffff 100%);
}

.product-hero {
  padding-top: 36px;
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 60%, #ffffff 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.product-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-intro {
  margin-top: 24px;
  align-items: stretch;
  grid-template-columns: minmax(260px, 0.7fr) minmax(640px, 1.6fr);
  gap: 48px;
}

.catalog-intro .product-gallery {
  display: flex;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.catalog-intro .product-gallery img {
  width: min(100%, 260px);
  height: auto;
  max-height: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.catalog-intro .product-summary,
.catalog-intro .product-specs {
  height: 100%;
}

.intro-card {
  height: 100%;
  background: #fff;
  border: 1px solid #d4e4d4;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  color: var(--text);
  line-height: 1.6;
}

.intro-card p {
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

/* Внутри filter-info-content перекрываем стили intro-card */
.intro-card .filter-info-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 4px;
}

.intro-card .filter-info-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0 6px;
}

.intro-card .filter-info-content li {
  font-size: 0.9rem;
  line-height: 1.4;
}

.intro-title {
  margin: 0 0 18px;
  color: #1a1a1a;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.intro-card h4 {
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 18px 0 10px;
}

.intro-card h4:first-of-type {
  margin-top: 12px;
}

.intro-card p {
  color: #1a1a1a;
}

.intro-card .benefits-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.intro-card .benefits-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  color: #1a1a1a;
  line-height: 1.5;
  font-size: 0.96rem;
}

.intro-card .benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.filter-info-card {
  padding: 28px 32px;
}

.filter-info-card .intro-title {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 12px;
}

.filter-info-content {
  display: grid;
  gap: 6px;
}

.filter-info-content p {
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 4px;
}

.filter-info-content h4 {
  font-size: 0.9rem !important;
  color: #1a1a1a;
  margin: 10px 0 6px;
  font-weight: 600;
}

.filter-info-content .benefits-list,
.filter-info-content .process-steps {
  margin: 0 0 4px;
  gap: 6px;
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.filter-info-content .benefits-list li,
.filter-info-content .process-steps li {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.intro-card .process-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: step-counter;
}

.intro-card .process-steps li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
  color: #1a1a1a;
  line-height: 1.5;
  font-size: 0.96rem;
  counter-increment: step-counter;
}

.intro-card .process-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: rgba(27, 94, 32, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-gallery {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel-main {
  position: relative;
  border-radius: 14px;
  background: #f0f4f0;
  padding: 16px;
}

.carousel-main img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.carousel-thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
}

.carousel-thumb {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-thumb img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}

.carousel-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(27, 94, 32, 0.2);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  backdrop-filter: blur(4px);
  touch-action: pan-y;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  touch-action: pan-x;
  user-select: none;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: #f0f4f0;
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--primary);
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-prev {
  left: -21px;
}

.lightbox-next {
  right: -21px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
  background: #f0f4f0;
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Touch hint for mobile */
@media (max-width: 768px) {
  .lightbox-content::after {
    content: "← Свайп →";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
  }
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: 14px;
}

.carousel-track img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #f0f4f0;
  border-radius: 14px;
  padding: 16px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--primary);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-summary h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.product-title-center {
  text-align: center;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  letter-spacing: 0.3px;
  font-weight: 700;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.15;
  margin: 0 0 28px;
}

.product-subtitle {
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 32px auto 24px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  text-align: center;
  width: 100%;
}

.product-price-page {
  max-width: 100%;
  grid-column: 1 / -1;
}

.product-price-card {
  align-items: flex-start;
  margin: 0;
  gap: 6px;
  text-align: left;
}

.product-price-card span {
  color: #64748b;
  font-size: 1rem;
}

.product-price-card strong {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.product-price strong {
  font-size: clamp(2rem, 2.8vw, 2.25rem);
  color: #0f172a;
  font-weight: 800;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.product-tags {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid #d9e2f2;
  padding: 24px 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-card:hover {
  box-shadow: 0 16px 40px rgba(27, 94, 32, 0.1);
  border-color: rgba(27, 94, 32, 0.15);
  transform: translateY(-2px);
}

.spec-card h3 {
  margin-bottom: 12px;
}

.spec-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: #1a1a1a;
  font-size: 1.05rem;
  line-height: 1.55;
}

.spec-card ul li {
  padding-left: 28px;
  position: relative;
}

.spec-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.spec-card ul.spec-list li::before {
  content: "•";
  color: #666;
  font-weight: normal;
  font-size: 1.4rem;
  top: -2px;
}

.spec-card p {
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.spec-card p:empty {
  margin-bottom: 20px;
}

.spec-card h4 {
  color: #1a1a1a;
  margin-top: 20px;
  margin-bottom: 12px;
}

.product-summary {
  padding-top: 0;
}

.product-summary > .product-price span {
  color: #64748b;
  font-size: 1.1rem;
}

@media (max-width: 1140px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-title-center {
    margin-bottom: 18px;
  }
}

.catalog-group {
  margin-bottom: 48px;
}

.catalog-subtitle {
  margin: 18px 0 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-details .section-title {
  align-items: center;
  margin-bottom: 24px;
}

.catalog-details .section-title p {
  max-width: 520px;
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 94, 32, 0.12);
  border-color: rgba(27, 94, 32, 0.2);
}

.card img {
  border-radius: 14px;
  height: 160px;
  width: 100%;
  object-fit: cover;
  background: #edf2ed;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
  transform: scale(1.05);
}

.card-img-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  outline-offset: 3px;
}

.card-img-link img {
  display: block;
  width: 100%;
}

.card-img-link:focus-visible {
  outline: 2px solid var(--primary);
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(27, 94, 32, 0.15);
}

.model-card img {
  height: 140px;
  object-fit: contain;
  padding: 12px;
  background: #f0f4f0;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover img {
  transform: scale(1.08);
}

.catalog-septiki .model-card img {
  height: 200px;
  padding: 8px;
  background: #f0f4f0;
}

.catalog-zhirouloviteli .model-card img {
  height: 200px;
  padding: 8px;
  background: #f0f4f0;
}

.catalog-filtry .model-card img {
  height: 200px;
  padding: 8px;
  background: #f0f4f0;
}

.catalog-avtonomnye .model-card img {
  height: 200px;
  padding: 8px;
  background: #f0f4f0;
}

.catalog-drenazh .catalog-list-card .card-media-button {
  padding: 16px;
}

.catalog-drenazh .catalog-list-card .card-media-button img {
  height: 260px;
}

.catalog-main .model-card img {
  height: 200px;
  padding: 8px;
  background: #f0f4f0;
}

.model-card h3 {
  font-size: 1rem;
}

.model-card p {
  font-size: 0.9rem;
}

.model-card .price {
  font-size: 0.9rem;
}

.model-card .button {
  margin-top: auto;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.card h3 {
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .price {
  color: var(--text);
  font-weight: 600;
}

.card .button {
  width: fit-content;
}

.card .tag {
  font-size: 0.8rem;
  color: var(--primary-700);
  font-weight: 600;
}

.banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  padding: 36px;
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.banner p {
  opacity: 0.88;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.feature h4 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog-hero {
  padding: 5px 0 30px;
  background:
    radial-gradient(1100px 380px at 20% -10%, rgba(47,133,90,0.14), transparent 60%),
    radial-gradient(900px 300px at 85% 8%, rgba(37,99,235,0.12), transparent 60%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27,94,32,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(27,94,32,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 55%, transparent 100%);
  pointer-events: none;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pill {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pill:hover {
  border-color: rgba(27, 94, 32, 0.35);
  color: var(--primary);
}

.pill.is-active {
  background: rgba(47, 133, 90, 0.12);
  color: var(--primary);
  border-color: rgba(27, 94, 32, 0.4);
  font-weight: 600;
}

[data-catalog-card][hidden] {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.contact-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.1), rgba(47, 133, 90, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-card h3 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--primary-700);
}

.contact-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.contact-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.contact-link:hover {
  color: var(--primary-700);
  text-decoration: underline;
  transform: translateX(2px);
}

.map-placeholder {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.05), rgba(47, 133, 90, 0.08));
  border-radius: 20px;
  padding: 80px 40px;
  text-align: center;
  color: var(--muted);
  border: 2px dashed rgba(27, 94, 32, 0.2);
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: none;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--border);
  font-size: 18px;
}

.breadcrumbs a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Floating CTA Button */
.floating-cta {
  display: none !important;
}

.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-single-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-single-row a {
  color: #cbd5e1;
  font-size: 18px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-single-row a:hover {
  color: #ffffff;
}

.footer-separator {
  color: #475569;
  user-select: none;
  font-size: 18px;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    padding: 20px 0;
  }
  
  .footer-single-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-separator {
    display: none;
  }
}

/* === Advantages Section === */
.advantages-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ee 50%, #ffffff 100%);
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 48px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.advantage-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #d4e8d4;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(27, 94, 32, 0.15);
  border-color: var(--primary);
}

.advantage-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: grayscale(0.2);
}

.advantage-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-700);
  margin: 0 0 12px 0;
}

.advantage-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* === Enhanced Model Cards === */
.enhanced-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(27, 94, 32, 0.2);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
}

.badge-best {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.specs-list {
  background: #f4f7f4;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.specs-list p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #475569;
}

.specs-list strong {
  color: var(--primary-700);
  font-weight: 600;
}

.card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 16px;
  padding: 16px;
  background: linear-gradient(135deg, #d4ead4 0%, #eaf4ea 100%);
  border-radius: 12px;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
}

.price-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
}

.button-card {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.3);
}

/* === Vertical catalog list cards === */
.catalog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.catalog-list-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 94, 32, 0.12);
}

.catalog-card-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-media-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-media-button:hover,
.card-media-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  outline: none;
}

.catalog-list-card .card-media-button {
  max-width: 320px;
  width: 100%;
  padding: 22px;
  border-radius: 16px;
  background: #f0f4f0;
  border: 1px solid #d4e4d4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.catalog-list-card .card-media-button img {
  height: 220px;
  padding: 0;
  background: transparent;
  border-radius: 12px;
}

.catalog-card-body h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.specs-panel {
  background: #f4f7f4;
  padding: 18px 20px;
  border-radius: 14px;
  margin: 0;
}

.specs-panel p {
  margin: 8px 0;
}

.accordion {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.accordion-item {
  border: 1px solid #d4e4d4;
  border-radius: 16px;
  background: #f8fbf8;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item:hover {
  box-shadow: 0 16px 32px rgba(27, 94, 32, 0.12);
  border-color: rgba(27, 94, 32, 0.2);
}

.accordion-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--primary-700);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eaf4ea;
  transition: all 0.2s ease;
}

.accordion-item summary:hover {
  background: #d9ecd9;
}

.accordion-item[open] summary {
  border-bottom: 1px solid #d4e4d4;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--primary-700);
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-content {
  padding: 16px 20px 20px;
  color: var(--muted);
  display: grid;
  gap: 12px;
  background: #fff;
}

.accordion-content ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.collapsible-card {
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 8px;
}

.collapsible-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
}

.collapsible-card summary:hover {
  background: transparent;
  padding-left: 8px;
}

.collapsible-card summary::-webkit-details-marker {
  display: none;
}

.collapsible-card summary::after {
  content: "";
  width: 32px;
  height: 32px;
  background: rgba(27, 94, 32, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.collapsible-card summary::before {
  content: "›";
  position: absolute;
  right: 8px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  z-index: 1;
}

.collapsible-card[open] summary::before {
  transform: rotate(-90deg);
}

.collapsible-card[open] summary::after {
  background: rgba(27, 94, 32, 0.12);
}

.collapsible-card[open] summary {
  border-bottom: none;
  margin-bottom: 12px;
}

.collapsible-content {
  padding: 0 0 24px 0;
  display: grid;
  gap: 12px;
}

.collapsible-content h4 {
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 18px 0 10px;
}

.collapsible-content h4:first-of-type {
  margin-top: 8px;
}

.collapsible-content p {
  color: #1a1a1a;
  font-size: 0.98rem;
  line-height: 1.6;
}

.price-panel {
  justify-content: center;
  text-align: center;
  padding: 18px 24px;
  border-radius: 14px;
}

.catalog-card-body .button-card {
  width: auto;
  padding: 12px 24px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .catalog-list-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .catalog-list-card .card-media-button img {
    height: 200px;
  }

  .catalog-card-body .button-card {
    width: 100%;
  }
}

/* === Sticky Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--surface);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

@keyframes pulse-subtle {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.35);
  }
  50% {
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.55);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: 64px 16px auto 16px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .hero {
    padding: 70px 0 40px;
  }

  .banner {
    text-align: center;
  }

  .nav-actions {
    display: none;
  }
}

/* ===== NEW HOME PAGE STYLES ===== */

/* Hero Enhanced */
.home-page .hero-enhanced {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: transparent;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-bg,
.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.28) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.hero-bg-layer.is-active {
  opacity: 1;
}

/* ── hero-grid: column layout, position context for absolute children ── */
.hero-enhanced .hero-grid {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* title sticks to top */
  text-align: center;
  width: 100%;
  min-height: 640px;             /* match section min-height */
  padding: 0;
  gap: 0;
}

.hero-text-block {
  margin: 0;
}

.hero-badge {
  display: none;
}

.hero-badge svg {
  display: none;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  animation: heroTitleAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  color: #ffffff;
  /* stronger shadow + subtle dark backdrop to improve readability on busy photos */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.32);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-accent {
  color: var(--accent-green);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--accent-green);
  background-clip: unset;
  display: inline;
  position: relative;
  font-style: normal;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 18px rgba(47, 133, 90, 0.25);
}

.hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: rgba(47, 133, 90, 0.5);
}

.hero-description {
  font-size: 26px;
  color: #ffffff;
  margin: 6px 0;
  text-align: left;
  line-height: 1.65;
  animation: slideInLeft 3.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* translucent backdrop for description lines */
  background: rgba(0, 0, 0, 0.32);
  padding: 10px 14px;
  border-radius: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  max-width: none;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.hero-description-1 {
  animation-delay: 0.5s;
}

.hero-description-2 {
  animation-delay: 1.2s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100vw);
    filter: blur(6px);
  }
  60% {
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Ensure larger size on tablet/desktop (overrides mobile @media max-width:600px) */
@media (min-width: 601px) {
  .hero-description {
    font-size: 26px;
  }
}

/* New layout containers */

/* ── Three independent hero blocks ── */
.hero-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

/* Title block — прижат к верху */
.hero-title-block {
  padding-top: 150px;         /* ← отступ от самого верха фото */
}

/* Description block — по центру между заголовком и кнопками */
.hero-description-block {
  margin-top: auto;          /* ← отталкивается от заголовка вниз */
  margin-bottom: auto;       /* ← отталкивается от кнопок вверх → центр */
  display: flex;             /* ensure paragraphs stack vertically */
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* CTA block */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 32px;       /* ← отступ от нижнего края фото */
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  /* start later so buttons feel in rhythm with the 2nd description line */
  animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 3.1s both;
  justify-content: center;
  margin-bottom: 0;
}

.hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.hero-actions .button-large {
  padding: 16px 34px;
}


.button-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
}

.button-large svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-large:hover svg {
  transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
  display: none;
}

.hero-card-primary {
  display: none;
}

.hero-card-primary .card-icon {
  display: none;
}

.hero-card-primary strong {
  display: none;
}

.hero-card-primary ul {
  display: none;
}

.hero-card-primary li {
  display: none;
}

.card-link {
  display: none;
}

.card-link:hover {
  display: none;
}

.card-link svg {
  display: none;
}

/* Stats Section */
.stats-section {
  display: none;
}

.stats-grid {
  display: none;
}

.stat-card {
  display: none;
}

.stat-card:hover {
  display: none;
}

.stat-number {
  display: none;
}

.stat-label {
  display: none;
}

/* Categories Section */
.categories-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8f3 40%, #ffffff 100%);
}

.categories-section .section-header {
  justify-content: center;
}

.categories-section .section-header-content {
  text-align: center;
  align-items: center;
  margin: 0 auto;
  max-width: 720px;
}

.categories-section .section-header-content p {
  margin: 0 auto;
}

.catalog-hero .section-header-content {
  text-align: center;
}

.catalog-hero .section-header-content h1 {
  color: #1a1a1a;
}

.catalog-hero .section-header-content p {
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}

.section-header-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

/* Process section header spacing (match "Основные направления") */
.process-section .section-header-content.process-header {
  margin-bottom: 40px;
  text-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.process-section .section-header-content.process-header p {
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 133, 90, 0.2), rgba(59, 169, 156, 0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: var(--radius);
}

.category-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-item:hover::before {
  opacity: 0.03;
}

.category-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.category-item:hover .category-image img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 94, 32, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-item:hover .category-overlay {
  opacity: 1;
}

.category-more {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.category-item:hover .category-more {
  gap: 12px;
}

.category-more svg {
  width: 20px;
  height: 20px;
}

.category-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.category-badge {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.category-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.category-item p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Old category cards - REMOVE */
.section-title-center {
  text-align: left;
  max-width: none;
  margin: 0 0 48px;
}

.section-title-center h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: left;
}

.section-title-center p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  text-align: left;
  max-width: 60ch;
  margin-left: 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 133, 90, 0.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  border-color: var(--primary);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f4f6f2, #e6efe6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-icon img {
  width: 40px;
  height: 40px;
}

.category-tag {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.category-card p {
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: gap 0.3s ease;
  margin-top: 8px;
}

.category-card:hover .category-link {
  gap: 12px;
}

.category-link svg {
  width: 20px;
  height: 20px;
}

.hero-card-accent {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  padding: 28px;
  border-radius: var(--radius);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-card-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.accent-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-card-accent strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.hero-card-accent p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-card-accent .button {
  background: white;
  color: var(--primary);
  font-weight: 600;
  width: 100%;
  justify-content: center;
}

.hero-card-accent .button:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8f3 40%, #ffffff 100%);
}

/* Advantages Section */
.advantages-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ee 50%, #ffffff 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.advantage-card {
  padding: 36px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.advantage-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* Process Section */
.process-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 50%, #ffffff 100%);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Process steps — appear one by one */
.process-step {
  opacity: 0;
  transform: translateY(20px) scale(0.995);
  transition: opacity 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Stagger delays: make steps appear one by one, slower rhythm */
.process-step.will-animate:nth-child(1) { transition-delay: 0.30s; }
.process-step.will-animate:nth-child(2) { transition-delay: 0.60s; }
.process-step.will-animate:nth-child(3) { transition-delay: 0.90s; }
.process-step.will-animate:nth-child(4) { transition-delay: 1.20s; }
.process-step.will-animate:nth-child(5) { transition-delay: 1.50s; }
.process-step.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 6%;
  right: 6%;
  height: 2px;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.35) 2px, transparent 2.5px);
  background-size: 18px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
}

.step-number {
  display: none;
}

.step-icon {
  width: 84px;
  height: 84px;
  background: #ffffff;
  border: 2px solid rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  padding: 0 0 80px;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f0 40%, #f7fbf8 100%);
}

.cta-banner-content {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-radius: 24px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  gap: 24px 48px;
}

.cta-banner-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.cta-banner-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-banner-header p {
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  width: fit-content;
  max-width: 100%;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
}

.cta-benefits svg {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  padding: 6px;
  width: 28px;
  height: 28px;
}

.cta-banner-action {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
}

.cta-banner-action .button-large {
  min-width: 220px;
  justify-content: center;
}

/* Ensure consistent sizing across all pages */
.catalog-main .cta-banner-content,
.home-page .cta-banner-content,
body .cta-banner-content {
  padding: 48px 56px !important;
  gap: 32px !important;
}

/* На страницах каталогов cta-banner идёт без process-section выше,
   поэтому добавляем верхний padding чтобы не выглядело висящим */
.catalog-main .cta-banner,
.catalog-septiki .cta-banner,
.catalog-avtonomnye .cta-banner,
.catalog-filtry .cta-banner,
.catalog-drenazh .cta-banner,
.catalog-zhirouloviteli .cta-banner,
.catalog-pogreb .cta-banner,
.contacts-page .cta-banner {
  padding-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f0 40%, #f7fbf8 100%);
}

/* Контакты — единый плавный фон от catalog-hero до cta */
.contacts-page .catalog-hero {
  padding-bottom: 10px;
}

.contacts-page .section:not(.cta-banner) {
  padding-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f0 50%, #ffffff 100%);
}

.button-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.button-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-note {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cta-note strong {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Scroll Animation */
.will-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-enhanced .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header-content h2 {
    font-size: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .cta-banner-content {
    padding: 56px 32px;
    gap: 32px;
  }

  .cta-banner-header h2 {
    font-size: 2.2rem;
  }

  .cta-benefits {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .section-title-center h2 {
    font-size: 2rem;
  }

  .categories-section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .hero-enhanced {
    min-height: 480px;
  }

  .hero-enhanced .hero-grid {
    padding: 90px 0 70px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 90vw;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header-content h2 {
    font-size: 1.75rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-placeholder {
    padding: 60px 24px;
    min-height: 250px;
  }

  .button-large {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-content {
    padding: 44px 24px;
    gap: 32px;
    text-align: center;
  }

  .cta-banner-header h2 {
    font-size: 1.85rem;
  }

  .cta-banner-header p {
    font-size: 1.05rem;
  }

  .cta-benefits {
    gap: 20px;
  }

  .cta-benefits li {
    font-size: 0.95rem;
  }

  .cta-banner-action {
    width: 100%;
    justify-self: start;
  }

  .cta-banner-action .button-large {
    width: 100%;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  .categories-section {
    padding: 60px 0;
  }
}

/* =============================================
   BIOSTATION EXPLAINER — premium animated section
   ============================================= */

.biostation-explainer {
  position: relative;
  background:
    radial-gradient(1100px 380px at 20% -10%, rgba(47,133,90,0.14), transparent 60%),
    radial-gradient(900px 300px at 85% 8%, rgba(37,99,235,0.12), transparent 60%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 50%, #ffffff 100%);
  padding: 5px 0 56px;
  overflow: hidden;
}

.biostation-hero-title {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.biostation-hero-title h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.biostation-hero-title p {
  font-size: 1.05rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

.biostation-explainer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27,94,32,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(27,94,32,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 55%, transparent 100%);
  pointer-events: none;
}

.biostation-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  z-index: 1;
}

.biostation-kicker {
  display: none;
}

.biostation-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.biostation-header p {
  font-size: 1.03rem;
  color: #4a5568;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.65;
}

.biostation-visual-wrap {
  position: relative;
  margin: 0 auto 52px;
  max-width: 1100px;
  border-radius: 24px;
  padding: 32px 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(241,250,244,0.7));
  border: 1px solid rgba(47,133,90,0.16);
  box-shadow: 0 18px 40px rgba(27,94,32,0.1);
  backdrop-filter: blur(10px);
}

.biostation-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bs-house,
.bs-pipe,
.bs-ground,
.bs-station {
  position: relative;
  z-index: 1;
}

.bs-house {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bs-house svg {
  filter: drop-shadow(0 8px 14px rgba(47,133,90,0.15));
}

.bs-house span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2f855a;
  letter-spacing: 0.04em;
}

.bs-pipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bs-pipe svg {
  filter: drop-shadow(0 5px 10px rgba(27,94,32,0.08));
}

.bs-pipe-label {
  font-size: 0.68rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes dropFlow {
  0%   { transform: translateX(-82px) scale(0.85); opacity: 0; }
  10%  { opacity: 0.9; }
  45%  { transform: translateX(0) scale(1); }
  90%  { opacity: 0.9; }
  100% { transform: translateX(82px) scale(0.85); opacity: 0; }
}

.bs-drop { animation: dropFlow 2.25s cubic-bezier(0.4,0,0.2,1) infinite; }
.bs-drop-1 { animation-delay: 0s; }
.bs-drop-2 { animation-delay: 0.75s; }
.bs-drop-3 { animation-delay: 1.5s; }

@keyframes cleanFlow {
  0%   { transform: translateX(-82px) scale(0.85); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(82px) scale(0.85); opacity: 0; }
}

.bs-clean { animation: cleanFlow 2.05s cubic-bezier(0.4,0,0.2,1) infinite; }
.bs-clean-1 { animation-delay: 0.15s; }
.bs-clean-2 { animation-delay: 0.83s; }
.bs-clean-3 { animation-delay: 1.51s; }

.bs-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bs-station-body {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(180deg, #edfaf0 0%, #cfead5 100%);
  border: 2px solid rgba(47,133,90,0.8);
  border-radius: 16px;
  padding: 16px 20px 52px;
  width: 380px;
  height: 195px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 14px 26px rgba(27,94,32,0.14);
}

.bs-station-body::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(129,212,250,0.32) 0%, rgba(76,175,80,0.32) 100%);
  animation: waterLevel 3.8s ease-in-out infinite alternate;
}

.bs-station-body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  animation: waterShine 3.2s ease-in-out infinite;
}

@keyframes waterLevel {
  0% { height: 56%; opacity: 0.75; }
  100% { height: 66%; opacity: 1; }
}

@keyframes waterShine {
  0%, 100% { transform: translateX(-16px); opacity: 0.5; }
  50% { transform: translateX(16px); opacity: 0.95; }
}

.bs-station-ground {
  width: 420px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #7a5a43 0 12px, #a28673 12px 24px);
  border-radius: 999px;
  opacity: 0.55;
}

.bs-station-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1b5e20;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bs-chamber {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 4px;
  z-index: 1;
}

.bs-chamber-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1b5e20;
  text-align: center;
  line-height: 1.2;
  position: absolute;
  bottom: 6px;
  white-space: nowrap;
}

.bs-chamber-divider {
  width: 2px;
  background: linear-gradient(180deg, rgba(47,133,90,0.24), rgba(47,133,90,0.6), rgba(47,133,90,0.24));
  border-radius: 2px;
  margin: 0 2px;
  z-index: 1;
}

.bs-bubbles {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 90px;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.bs-bubble {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: 1.2px solid rgba(47,133,90,0.55);
  animation: bubbleRise 1.9s ease-in infinite;
  position: absolute;
  bottom: 24px;
}

.bs-chamber-2 .bs-bubble {
  background: rgba(255,255,255,0.96);
  border-color: rgba(47,133,90,0.7);
}

.bs-bubble:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 1.6s; }
.bs-bubble:nth-child(2) { left: 35%; animation-delay: 0.48s; animation-duration: 2.1s; }
.bs-bubble:nth-child(3) { left: 62%; animation-delay: 0.94s; animation-duration: 1.45s; }
.bs-bubble:nth-child(4) { left: 82%; animation-delay: 1.34s; animation-duration: 1.95s; }

.bs-chamber-1 .bs-bubble:nth-child(1) { left: 20%; }
.bs-chamber-1 .bs-bubble:nth-child(2) { left: 55%; }
.bs-chamber-1 .bs-bubble:nth-child(3) { left: 80%; }
.bs-chamber-3 .bs-bubble:nth-child(1) { left: 15%; }
.bs-chamber-3 .bs-bubble:nth-child(2) { left: 60%; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0.92; }
  55%  { transform: translateY(-52px) scale(1); opacity: 0.68; }
  100% { transform: translateY(-88px) scale(1.35); opacity: 0; }
}

.bs-compressor {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.82);
  border: 1.3px solid rgba(47,133,90,0.6);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.53rem;
  font-weight: 800;
  color: #1b5e20;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
  animation: compressorPulse 2.1s ease-in-out infinite;
}

@keyframes compressorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,133,90,0.35); }
  50% { box-shadow: 0 0 0 7px rgba(47,133,90,0); }
}

.bs-ground {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bs-ground span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #558b2f;
  text-align: center;
  max-width: 90px;
  line-height: 1.35;
}

@keyframes seepDown {
  0%   { transform: translateY(-10px) scale(0.85); opacity: 0; }
  18%  { opacity: 1; }
  75%  { opacity: 0.72; }
  100% { transform: translateY(38px) scale(1.1); opacity: 0; }
}

.bs-seep { animation: seepDown 2.45s ease-in infinite; }
.bs-seep-1 { animation-delay: 0s; }
.bs-seep-2 { animation-delay: 0.82s; }
.bs-seep-3 { animation-delay: 1.64s; }

.bs-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bs-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(244,251,246,0.9));
  border: 1px solid rgba(47,133,90,0.18);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 10px 24px rgba(27,94,32,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
}

.bs-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(27,94,32,0.14);
  border-color: rgba(47,133,90,0.35);
}

.bs-step-num {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f855a, #1b5e20);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(47,133,90,0.28);
}

.bs-step-text {
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.52;
}

.bs-step-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

.biostation-note {
  margin: 16px auto 0;
  max-width: 940px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #6b7280;
}

.biostation-visual-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(200px 180px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), transparent 70%);
  opacity: var(--glowOpacity, 0);
  transition: opacity 0.25s ease;
}

.biostation-explainer.is-visible .biostation-hero-title,
.biostation-explainer.is-visible .biostation-header,
.biostation-explainer.is-visible .biostation-visual-wrap,
.biostation-explainer.is-visible .bs-step {
  opacity: 1;
  transform: translateY(0);
}

.biostation-hero-title,
.biostation-header,
.biostation-visual-wrap,
.bs-step {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.biostation-explainer.is-visible .biostation-visual-wrap {
  transition-delay: 0.08s;
}

.biostation-explainer.is-visible .bs-step:nth-child(1) { transition-delay: 0.12s; }
.biostation-explainer.is-visible .bs-step:nth-child(2) { transition-delay: 0.2s; }
.biostation-explainer.is-visible .bs-step:nth-child(3) { transition-delay: 0.28s; }
.biostation-explainer.is-visible .bs-step:nth-child(4) { transition-delay: 0.36s; }

.bs-step.is-active {
  transform: translateY(-5px);
  border-color: rgba(47,133,90,0.52);
  box-shadow: 0 16px 30px rgba(27,94,32,0.18);
}

.bs-step.is-active .bs-step-num {
  box-shadow:
    0 8px 16px rgba(47,133,90,0.28),
    0 0 0 6px rgba(47,133,90,0.14);
}

/* v2.1 — подсветка камер / элементов сцены, синхронизированная с шагами */
.bs-chamber {
  transition: filter 0.45s ease, transform 0.4s ease;
  filter: brightness(1) drop-shadow(0 0 0 transparent);
}

.bs-chamber.is-lit {
  filter: brightness(1.08) drop-shadow(0 0 12px rgba(76,175,80,0.5));
  transform: scaleY(1.03);
}

.bs-chamber.is-lit .bs-chamber-label {
  color: #2e7d32;
  text-shadow: 0 0 6px rgba(76,175,80,0.3);
}

.bs-chamber.is-lit .bs-bubble {
  animation-duration: 1.1s !important;
  border-color: rgba(76,175,80,0.9);
  background: rgba(255,255,255,1);
}

[data-bs-highlight] {
  transition: filter 0.45s ease, opacity 0.45s ease;
  filter: brightness(1);
}

[data-bs-highlight].is-lit {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(76,175,80,0.45));
}

.bs-pipe.is-lit svg rect {
  stroke-width: 2.5;
}

.bs-pipe-in.is-lit svg rect { stroke: #42a5f5; }
.bs-pipe-out.is-lit svg rect { stroke: #4caf50; }

.bs-compressor.is-lit {
  box-shadow: 0 0 0 6px rgba(47,133,90,0.18), 0 0 16px rgba(76,175,80,0.35);
  border-color: #2e7d32;
}

.bs-station-body {
  transition: box-shadow 0.4s ease;
}

.bs-station-body.chamber-active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 14px 26px rgba(27,94,32,0.14),
    0 0 28px rgba(76,175,80,0.2);
}

.biostation-scene {
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .biostation-hero-title,
  .biostation-header,
  .biostation-visual-wrap,
  .bs-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .biostation-scene {
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .bs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .biostation-explainer {
    padding: 36px 0 48px;
  }

  .biostation-visual-wrap {
    padding: 16px;
    border-radius: 18px;
  }

  .biostation-scene {
    flex-direction: column;
    align-items: center;
  }

  .bs-pipe {
    transform: rotate(90deg);
    margin: 2px 0;
  }

  .bs-pipe-label {
    transform: rotate(-90deg);
  }
}

@media (max-width: 560px) {
  .biostation-header h2 {
    font-size: 1.48rem;
  }

  .biostation-header p {
    font-size: 0.95rem;
  }

  .bs-steps {
    grid-template-columns: 1fr;
  }

  .bs-station-body {
    width: 300px;
    height: 165px;
  }

  .bs-station-ground {
    width: 320px;
  }
}

/* ====================================================
   UNIQUE ANIMATIONS — Septic / Drain / Grease / Filter / Cellar
   ==================================================== */

/* Adaptive grid: 3 steps → 3 columns */
.bs-steps:has(.bs-step:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Sediment at the bottom of the chamber (septiki) */
.bs-sediment {
  position: absolute;
  bottom: 24px;
  left: 8%;
  right: 8%;
  height: 14px;
  background: linear-gradient(180deg, rgba(161,136,107,0.4), rgba(141,110,80,0.65));
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

.bs-sediment.bs-sediment-thin {
  height: 8px;
  opacity: 0.5;
}

.bs-sediment.bs-sediment-gravel {
  height: 18px;
  background: repeating-radial-gradient(circle 4px at 25% 60%, rgba(158,158,158,0.7), transparent 5px),
              repeating-radial-gradient(circle 3px at 60% 45%, rgba(120,120,120,0.5), transparent 4px),
              linear-gradient(180deg, rgba(189,189,189,0.3), rgba(158,158,158,0.55));
  border-radius: 0 0 6px 6px;
}

/* Overflow arrow between chambers */
.bs-overflow-arrow {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 0.7;
  animation: overflowPulse 2.5s ease-in-out infinite;
}

@keyframes overflowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.95); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Grease layer on top of chamber (zhirouloviteli) */
.bs-grease-layer {
  position: absolute;
  top: 8px;
  left: 6%;
  right: 6%;
  height: 12px;
  background: linear-gradient(180deg, rgba(255,183,77,0.85), rgba(255,152,0,0.5));
  border-radius: 6px 6px 0 0;
  z-index: 3;
  animation: greaseFloat 3s ease-in-out infinite alternate;
}

@keyframes greaseFloat {
  0% { height: 10px; opacity: 0.75; }
  100% { height: 16px; opacity: 1; }
}

/* Yellow/orange grease bubbles */
.bs-bubble-grease {
  background: rgba(255,224,130,0.9) !important;
  border-color: rgba(255,152,0,0.7) !important;
}

/* Air bubbles (cellar ventilation) */
.bs-bubble-air {
  background: rgba(227,242,253,0.9) !important;
  border-color: rgba(66,165,245,0.5) !important;
  width: 7px !important;
  height: 7px !important;
}

/* Filter media divider (for filtry) */
.bs-chamber-divider.bs-filter-media {
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    rgba(47,133,90,0.5) 0px,
    rgba(47,133,90,0.3) 3px,
    rgba(200,230,201,0.8) 3px,
    rgba(200,230,201,0.8) 6px
  );
  border-radius: 3px;
}

/* Filter dots inside the filter chamber */
.bs-filter-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 6px;
  position: relative;
  z-index: 2;
}

.bs-filter-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(47,133,90,0.5);
  animation: filterDotPulse 2s ease-in-out infinite;
}

.bs-filter-dots span:nth-child(2n) {
  animation-delay: 0.5s;
  background: rgba(47,133,90,0.35);
}

.bs-filter-dots span:nth-child(3n) {
  animation-delay: 1s;
  background: rgba(47,133,90,0.6);
}

@keyframes filterDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* Cellar shelves (pogreb) */
.bs-cellar-shelves {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.bs-shelf {
  font-size: 1.2rem;
  animation: shelfGlow 3s ease-in-out infinite;
}

.bs-shelf:nth-child(2) { animation-delay: 1s; }
.bs-shelf:nth-child(3) { animation-delay: 2s; }

@keyframes shelfGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.2); }
}

/* Temperature display (pogreb) */
.bs-temp-display {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: tempPulse 4s ease-in-out infinite;
}

@keyframes tempPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 3-step layout adaptions */
@media (max-width: 1024px) {
  .bs-steps:has(.bs-step:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .bs-steps:has(.bs-step:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}
