:root {
  --ink: #241711;
  --muted: #705f55;
  --cream: #fbf7f1;
  --paper: #fffdf9;
  --brand: #6f233b;
  --brand-dark: #411223;
  --gold: #c89b45;
  --line: #eadfd3;
  --shadow: 0 18px 50px rgba(36, 23, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 70px);
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(234, 223, 211, 0.8);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a,
.phone-link {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.phone-link:hover {
  color: var(--brand);
}

.phone-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 680px;
  padding: 130px clamp(22px, 7vw, 96px);
  color: white;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(32, 14, 8, 0.76), rgba(32, 14, 8, 0.28), rgba(32, 14, 8, 0.36)),
    var(--hero-image) center / cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f2c979;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 510px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  color: white;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.button-light {
  color: var(--brand-dark);
  background: white;
}

.button-light:hover {
  color: white;
}

.hero-dots {
  position: absolute;
  right: clamp(22px, 7vw, 96px);
  bottom: 38px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 40px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: white;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.section h2,
.certificates h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.intro > p,
.section-heading p:last-child,
.contact-copy p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

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

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(36, 23, 17, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.product-card div {
  padding: 20px;
}

.product-card h3,
.advantage-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

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

.product-card a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.advantages {
  padding-top: 30px;
}

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

.advantage-grid article {
  min-height: 250px;
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.advantage-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 700;
}

.certificates {
  color: white;
  background: var(--brand);
}

.certificates-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.certificates p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
}

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

.certificate-grid img {
  width: 100%;
  height: 150px;
  padding: 14px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background:
    linear-gradient(rgba(36, 23, 17, 0.76), rgba(36, 23, 17, 0.76)),
    url("images/almond-hero.jpg") center / cover no-repeat;
  color: white;
}

.stats div {
  padding: clamp(34px, 6vw, 72px) 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 54px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--brand);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1fr;
  gap: 44px;
  padding: 52px clamp(20px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-dark);
}

.site-footer img {
  width: 150px;
  margin-bottom: 18px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 15px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer p {
  margin: 0 0 10px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .phone-link {
    display: none;
  }

  .site-header.is-open .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .site-header.is-open .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .phone-link {
    grid-column: 1 / -1;
    display: block;
    padding-top: 6px;
  }

  .hero,
  .hero-slide {
    min-height: 590px;
  }

  .intro,
  .certificates-inner,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .brand img {
    width: 122px;
  }

  .hero,
  .hero-slide {
    min-height: 520px;
  }

  .hero-slide {
    padding-top: 100px;
  }

  .product-grid,
  .advantage-grid,
  .stats,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stats div:last-child {
    border-bottom: 0;
  }
}
