:root {
  --page-ink: #12231a;
  --page-text: #455449;
  --page-muted: #69786c;
  --page-paper: #fffdf8;
  --page-soft: #f3f8f0;
  --page-green: #245b39;
  --page-green-2: #6ca56b;
  --page-gold: #d99a3d;
  --page-blue: #e7f2f3;
  --page-line: rgba(18, 35, 26, 0.1);
  --page-shadow: 0 22px 70px rgba(32, 63, 43, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-paper);
  color: var(--page-ink);
  padding-top: 0;
}

.products-page {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0) 0, #fffdf8 620px),
    var(--page-paper);
}

.products-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.product-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #dfeadd;
}

.banner-image-container,
.banner-image,
.banner-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.banner-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 34, 18, 0.7),
      rgba(10, 34, 18, 0.28) 56%,
      rgba(10, 34, 18, 0.05)
    ),
    linear-gradient(0deg, rgba(10, 34, 18, 0.5), rgba(10, 34, 18, 0.02) 55%);
}

.banner-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 76px;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffe1aa;
  font:
    700 13px/1 "Montserrat",
    sans-serif;
  backdrop-filter: blur(12px);
  animation: productUp 0.7s ease both;
}

.banner-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: #fff;
  font:
    800 58px/1.04 "Montserrat",
    sans-serif;
  letter-spacing: 0;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  animation: productUp 0.78s 0.08s ease both;
}

.highlight {
  color: #ffd38d;
}

.banner-description {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.6;
  animation: productUp 0.78s 0.16s ease both;
}

.products-section,
.tech-section {
  padding: 84px 0;
}

.products-section {
  background: var(--page-paper);
}

.tech-section {
  background: linear-gradient(180deg, #fffdf8, #f1f8f1);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--page-ink);
  text-align: center;
  font:
    800 44px/1.12 "Montserrat",
    sans-serif;
  letter-spacing: 0;
}

.section-title::after {
  display: block;
  content: "";
  width: 58px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--page-green);
}

.section-subtitle {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--page-text);
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(32, 63, 43, 0.13);
  border-color: rgba(36, 91, 57, 0.18);
}

.product-image-container {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--page-soft);
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-image {
  transform: none !important;
  filter: none !important;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--page-green);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  font-size: 20px;
}

.product-info {
  padding: 22px;
}

.product-name {
  margin: 0 0 10px;
  color: var(--page-ink);
  font:
    800 22px/1.2 "Montserrat",
    sans-serif;
}

.product-description {
  margin: 0 0 16px;
  color: var(--page-text);
  line-height: 1.65;
}

.product-note {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f7fbf5);
  border: 1px solid var(--page-line);
  color: var(--page-text);
  line-height: 1.6;
}

.product-features {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--page-text);
  font-size: 14px;
  line-height: 1.45;
}

.product-features li i {
  color: var(--page-green-2);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.tech-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.tech-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(108, 165, 107, 0.12);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(32, 63, 43, 0.13);
  border-color: rgba(36, 91, 57, 0.18);
}

.tech-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--page-blue);
  color: #2a7781;
  font-size: 26px;
}

.tech-name {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: var(--page-ink);
  font:
    800 22px/1.2 "Montserrat",
    sans-serif;
}

.tech-description {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--page-text);
  line-height: 1.65;
}

.product-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

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

@keyframes productUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-column: span 1;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .products-shell,
  .banner-content {
    width: min(100% - 28px, 1180px);
  }

  .product-banner {
    min-height: 430px;
  }

  .banner-content {
    padding: 122px 0 52px;
  }

  .banner-title {
    font-size: 38px;
  }

  .banner-description {
    font-size: 16px;
  }

  .products-section,
  .tech-section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .product-image-container {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .products-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
