:root {
  --lime: #d9ff2f;
  --lime-deep: #c8f122;
  --ink: #171727;
  --ink-soft: rgba(23, 23, 39, 0.74);
  --paper: #f7f8ed;
  --white: #ffffff;
  --orange: #ff4a00;
  --magenta: #c21d61;
  --line: rgba(23, 23, 39, 0.18);
  --radius: 8px;
  --page-pad: clamp(18px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: "Avenir Next", Futura, "Trebuchet MS", Arial, sans-serif;
  line-height: 1.35;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 25%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 25%);
  background-size: 240px 240px;
  pointer-events: none;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px var(--page-pad);
  border-bottom: 1px solid rgba(23, 23, 39, 0.14);
  background: rgba(217, 255, 47, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
}

.brand__main {
  display: block;
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  font-weight: 850;
  line-height: 0.92;
}

.brand__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.95rem;
}

.nav a,
.topbar__mail {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.topbar__mail:hover {
  border-color: currentColor;
}

.topbar__mail {
  justify-self: end;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.topbar[data-scrolled="true"] {
  box-shadow: 0 10px 26px rgba(23, 23, 39, 0.08);
}

.hero {
  position: relative;
  min-height: calc(92svh - 78px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 1fr);
  align-items: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 82px) var(--page-pad) clamp(54px, 7vw, 110px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow,
.section__label,
.product-card__index {
  margin: 0 0 24px;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.15rem, 14vw, 13.8rem);
  line-height: 0.8;
  font-weight: 900;
  max-width: 7.4ch;
}

.hero__tagline {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  color: var(--ink-soft);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  background: var(--ink);
  color: var(--lime);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.18);
}

.hero__visual {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 420px;
}

.hero__visual img {
  position: absolute;
  right: min(-8vw, -20px);
  bottom: -42px;
  width: min(58vw, 1050px);
  max-width: none;
  transform: rotate(-2deg);
  filter: drop-shadow(0 28px 38px rgba(23, 23, 39, 0.18));
}

.hero__ghost {
  position: absolute;
  right: -3vw;
  bottom: -0.16em;
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: clamp(7rem, 23vw, 27rem);
  font-weight: 900;
  line-height: 0.78;
  pointer-events: none;
}

.slogan {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.slogan__track {
  display: flex;
  width: max-content;
  animation: slideText 26s linear infinite;
}

.slogan span {
  display: block;
  padding: 16px 34px;
  font-size: clamp(1rem, 2.4vw, 2rem);
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  padding: clamp(60px, 9vw, 132px) var(--page-pad);
}

.intro__grid,
.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 6.7rem);
  line-height: 0.96;
  font-weight: 900;
}

.intro__text {
  display: grid;
  gap: 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  color: var(--ink-soft);
}

.intro__text p,
.section__head p,
.process__lead,
.factory p {
  margin: 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 70px);
}

.section__head p {
  max-width: 480px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: var(--ink-soft);
}

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

.product-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(247, 248, 237, 0.78);
}

.product-card--dark {
  background: var(--ink);
  color: var(--paper);
}

.product-card--dark .product-card__index {
  color: rgba(247, 248, 237, 0.74);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.04 / 1;
  object-fit: cover;
  border-bottom: 1px solid currentColor;
}

.product-card__body {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.5vw, 34px);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  line-height: 0.96;
}

.product-card p {
  margin: 0;
  color: inherit;
}

.product-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: inherit;
}

.gallery {
  padding: clamp(54px, 8vw, 112px) 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.gallery__head {
  padding: 0 var(--page-pad) clamp(28px, 5vw, 60px);
}

.gallery__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 39vw);
  gap: 16px;
  overflow-x: auto;
  padding: 0 var(--page-pad) 10px;
  scroll-snap-type: x proximity;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.gallery figcaption {
  margin-top: 10px;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 850;
}

.process {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.process__lead {
  max-width: 840px;
  margin-top: 28px;
  font-size: clamp(1.06rem, 1.55vw, 1.42rem);
  color: var(--ink-soft);
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink);
}

.timeline span {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  background: var(--lime);
}

.timeline strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.timeline p {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--ink-soft);
}

.factory {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 30px;
  padding: clamp(64px, 9vw, 134px) var(--page-pad);
  background: var(--ink);
  color: var(--lime);
}

.factory::before {
  content: "50 000";
  position: absolute;
  left: var(--page-pad);
  bottom: -0.22em;
  color: rgba(217, 255, 47, 0.12);
  font-size: clamp(8rem, 22vw, 26rem);
  font-weight: 900;
  line-height: 1;
}

.factory__copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.factory .section__label {
  color: rgba(217, 255, 47, 0.76);
}

.factory p:not(.section__label) {
  margin-top: 26px;
  max-width: 670px;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  color: rgba(217, 255, 47, 0.82);
}

.factory img {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(48vw, 800px);
  border-radius: var(--radius);
  transform: rotate(1.2deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.contacts {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(250px, 0.7fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(58px, 9vw, 120px) var(--page-pad);
  overflow: hidden;
}

.contacts::after {
  content: "box seller";
  position: absolute;
  right: -3vw;
  top: -0.2em;
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(5rem, 17vw, 19rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.contacts h2 {
  max-width: 720px;
}

.contacts__links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.contacts__links a {
  width: fit-content;
  font-size: clamp(1.25rem, 2.2vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.contacts > .button {
  position: relative;
  z-index: 1;
  justify-self: end;
}

@keyframes slideText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slogan__track {
    animation: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: minmax(190px, 1fr) auto;
  }

  .nav {
    display: none;
  }

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

  .hero__visual {
    min-height: 360px;
  }

  .hero__visual img {
    right: -7vw;
    width: min(92vw, 820px);
  }

  .intro__grid,
  .process__layout,
  .factory {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1fr);
  }

  .product-card img {
    height: 100%;
    min-height: 360px;
    border-bottom: 0;
    border-right: 1px solid currentColor;
  }

  .factory img {
    justify-self: start;
    width: min(86vw, 760px);
  }

  .contacts {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contacts > .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
  }

  .topbar__mail {
    justify-self: start;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 25vw, 6.2rem);
  }

  .hero__tagline {
    font-size: clamp(1rem, 5vw, 1.55rem);
  }

  .hero__visual {
    min-height: 0;
    margin-top: 18px;
  }

  .hero__visual img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 118vw;
    margin-left: -13vw;
  }

  .hero__ghost {
    display: none;
  }

  .button {
    width: 100%;
  }

  .section__head {
    display: grid;
    align-items: start;
  }

  .product-card {
    display: flex;
  }

  .product-card img {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .gallery__strip {
    grid-auto-columns: minmax(260px, 78vw);
  }

  .timeline li {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .timeline p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .factory {
    min-height: auto;
  }

  .factory img {
    width: 100%;
  }

  .contacts__links a {
    word-break: break-word;
  }
}
