:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #1e2524;
  --muted: #65716f;
  --line: #d9dfdc;
  --brand: #245b52;
  --brand-dark: #163d38;
  --accent: #c45f3d;
  --accent-soft: #f2d8cd;
  --steel: #dfe5e2;
  --shadow: 0 18px 45px rgba(22, 61, 56, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Open Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-strip {
  background: var(--brand-dark);
  color: #eef5f1;
  font-size: 13px;
}

.top-strip__inner,
.header__inner,
.section,
.footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo img {
  width: 48px;
  height: 48px;
}

.logo strong {
  display: block;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0;
}

.logo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav a {
  border-radius: 6px;
  color: #263231;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--steel);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.button--ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--steel);
  color: var(--brand-dark);
}

.whatsapp-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #25d366;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  padding: 0 18px;
  text-align: center;
  white-space: nowrap;
}

.whatsapp-product-button:hover {
  background: #1ebe5d;
  color: #ffffff;
}

.whatsapp-product-button:active {
  background: #169c46;
}

.whatsapp-product-button:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 3px;
}

.whatsapp-product-button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.product-card .whatsapp-product-button {
  width: 100%;
  margin-top: auto;
}

.hero {
  background:
    linear-gradient(90deg, rgba(22, 61, 56, 0.92), rgba(36, 91, 82, 0.75)),
    radial-gradient(circle at 82% 16%, rgba(196, 95, 61, 0.42), transparent 34%),
    linear-gradient(135deg, #203632, #7b8a83);
  color: #ffffff;
}

.hero .section {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0;
}

.eyebrow {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 14px 0 18px;
}

.hero p,
.page-title p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  margin: 0;
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-machine {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-machine img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
  margin: 0;
}

.section-head p,
.muted {
  color: var(--muted);
  margin: 8px 0 0;
}

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

.category-card,
.product-card,
.info-panel,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(31, 43, 41, 0.06);
}

.category-card {
  min-height: 254px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: contain;
  background: #eef2ef;
  border-radius: 6px;
  padding: 16px;
}

.category-card strong {
  font-size: 17px;
  line-height: 1.15;
}

.category-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  background: #eef2ef;
  padding: 18px;
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-card__body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 13px;
}

.spec-list span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: 34px;
  align-items: start;
}

.info-panel {
  padding: 28px;
}

.info-panel h2,
.info-panel h3 {
  margin-top: 0;
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  display: flex;
  gap: 10px;
}

.check-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.page-title {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #ffffff;
  padding: 56px 0;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
}

.product-detail__image {
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.product-detail__image img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.quote-box {
  background: var(--accent-soft);
  border-radius: 8px;
  margin-top: 22px;
  padding: 18px;
}

.quote-box .whatsapp-product-button {
  margin-top: 12px;
}

.mobile-product-sticky {
  display: none;
}

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

.contact-panel {
  padding: 22px;
}

.footer {
  margin-top: auto;
  background: #162522;
  color: #dce6e1;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 44px 0;
}

.footer h2,
.footer h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer a {
  display: block;
  color: #dce6e1;
  margin: 9px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebcb7;
  font-size: 13px;
  padding: 16px 0;
}

.search-panel,
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(22, 37, 34, 0.54);
}

.search-panel.is-open,
.mobile-panel.is-open {
  display: block;
}

.search-panel__box,
.mobile-panel__box {
  width: min(520px, calc(100% - 28px));
  background: var(--surface);
  border-radius: 8px;
  margin: 72px auto 0;
  padding: 22px;
  box-shadow: var(--shadow);
}

.mobile-panel__box {
  margin: 0 0 0 auto;
  min-height: 100%;
  border-radius: 0;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
}

.close-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-weight: 700;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(92vw, 460px);
  transform: translateX(-50%);
  background: var(--brand-dark);
  color: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

@media (max-width: 1020px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero .section,
  .split,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
  }

  .header__inner {
    min-height: 74px;
    gap: 12px;
  }

  .logo {
    min-width: 0;
  }

  .logo strong {
    font-size: 14px;
  }

  .logo span {
    display: none;
  }

  .hero .section,
  .section {
    padding: 40px 0;
  }

  .hero .section {
    min-height: auto;
  }

  .hero h1,
  .page-title h1 {
    font-size: 36px;
  }

  .stat-grid,
  .category-grid,
  .product-grid,
  .footer__inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .header-actions .button {
    display: none;
  }

  .whatsapp-product-button {
    width: 100%;
    white-space: normal;
  }

  body:has(.mobile-product-sticky) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .mobile-product-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: block;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(246, 247, 244, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-product-sticky .whatsapp-product-button {
    max-width: 720px;
    margin: 0 auto;
  }
}
