:root {
  --background: #020202;
  --foreground: #f5f5f0;
  --muted: #a8a8a0;
  --line: rgba(245, 245, 240, 0.15);
  --panel: rgba(255, 255, 255, 0.055);
  --accent: #d7ff3f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(215, 255, 63, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.08), transparent 24rem),
    var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

main {
  min-height: 100svh;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

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

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: invert(1);
}

.nav {
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--foreground);
}

.hero-grid {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  position: relative;
  z-index: 1;
  padding: 30px 0 70px;
}

.kicker,
.section-label,
.product-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(2.6rem, 4.05vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.lead {
  max-width: 610px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  background: var(--foreground);
  color: #050505;
  border-color: var(--foreground);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button.whatsapp {
  background: var(--accent);
  border-color: var(--accent);
  color: #050505;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.button.whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.42) 45%,
    transparent 72%
  );
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button.whatsapp:hover {
  background: #ecff8a;
  border-color: #ecff8a;
  box-shadow: 0 0 28px rgba(215, 255, 63, 0.28);
}

.button.whatsapp:hover::before {
  transform: translateX(120%);
}

.button.ghost,
.button.compact {
  color: var(--foreground);
}

.button.ghost:hover,
.button.compact:hover {
  border-color: rgba(245, 245, 240, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button.compact {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.hero-visual {
  min-height: clamp(360px, 52vw, 650px);
  position: relative;
  display: grid;
  place-items: center;
  transform: translateY(-34px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
  clip-path: polygon(14% 0, 100% 10%, 84% 100%, 0 84%);
  transform: rotate(-2deg);
}

.hero-visual img {
  width: min(76%, 520px);
  position: relative;
  z-index: 1;
  filter: invert(1);
  opacity: 0.94;
  animation: floatIn 900ms ease both;
}

.scan-line {
  position: absolute;
  left: 10%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 30px rgba(215, 255, 63, 0.55);
  animation: scan 3.4s ease-in-out infinite;
}

.hero-copy {
  animation: floatIn 700ms ease both;
}

.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: clamp(56px, 9vw, 110px) 0;
}

.intro p {
  max-width: 900px;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.08;
}

.products {
  padding: 0 0 clamp(64px, 10vw, 130px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.contact h2 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5.4vw, 5.8rem);
  line-height: 1;
}

.contact h2 {
  font-size: clamp(2.2rem, 4.1vw, 4.5rem);
  white-space: nowrap;
}

.section-heading > p {
  color: var(--muted);
  line-height: 1.6;
}

.product-list {
  display: grid;
}

.product {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--line);
}

.product-media {
  aspect-ratio: 1.15;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 70% 20%, rgba(215, 255, 63, 0.18), transparent 45%),
    var(--panel);
}

.product-media::after {
  content: "Фото";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(245, 245, 240, 0.48);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-media span {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(245, 245, 240, 0.45);
  font-weight: 800;
}

.product-media img {
  width: 42%;
  filter: invert(1);
  opacity: 0.78;
  transition: transform 240ms ease;
}

.product:hover .product-media img {
  transform: scale(1.08) rotate(2deg);
}

.product-copy h3 {
  max-width: 800px;
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 1.2;
}

.product-copy > p:not(.product-eyebrow) {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.product-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(245, 245, 240, 0.86);
  font-size: 0.88rem;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(46px, 8vw, 86px) 0 clamp(60px, 9vw, 110px);
  border-top: 1px solid var(--line);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-110px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(110px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-shell,
  .intro,
  .products,
  .contact {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    height: 74px;
  }

  .nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero-grid,
  .intro,
  .section-heading,
  .product,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 28px 0 58px;
  }

  h1 {
    font-size: clamp(2rem, 8.2vw, 2.95rem);
    line-height: 1.08;
  }

  .hero-visual {
    min-height: 340px;
    order: -1;
    transform: translateY(0);
  }

  .intro {
    gap: 18px;
  }

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

  .product-media {
    width: min(100%, 360px);
  }

  .product-actions {
    align-self: start;
  }

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

  .contact h2 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .brand {
    align-self: center;
    font-size: 0.82rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero-actions,
  .product-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
    place-items: center;
  }

  .intro p {
    font-size: 1.4rem;
    font-weight: 300;
  }
}

@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;
  }
}
