/* ==========================================================================
   SPICH — potato chips
   Design tokens taken verbatim from the Figma file (Spich, canvas "Page 1").
   The 1920px layout reproduces the design; everything below 1280px is an
   adaptation, because the Figma file contains no mobile or tablet frames.
   ========================================================================== */

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #000252;
  --cream: #fff8ef;
  --orange: #ff8413;
  --orange-deep: #ff6b00;
  --muted: #999999;
  --white: #ffffff;
  --line: #c6c6c6;

  --r-section: 50px;
  --r-card: 24px;
  --r-pill: 1000px;

  --pad-x: 40px;          /* section side padding   */
  --pad-y: 80px;          /* section top/bottom pad */
  --gap: 20px;            /* grid gap               */
  --edge: 10px;           /* page gutter            */

  --fs-hero: 47px;
  --fs-title: 40px;
  --fs-stat: 60px;
  --fs-lead: 20px;
  --fs-body: 16px;

  --shell: 1920px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
/* The line above beats the browser's own `[hidden]` rule, which left the still
   sitting on top of the film once it started. Put `hidden` back in charge. */
[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* A two-tone ring, so the indicator keeps 3:1 contrast on navy, cream, white
   and on top of the orange buttons. */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--cream);
}
.section:not(.section--cream) :focus-visible,
.footer :focus-visible {
  outline-color: var(--cream);
  box-shadow: 0 0 0 6px var(--navy);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 14px 28px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--r-card) var(--r-card);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------- icons --
   Single-colour icons are painted with the current text colour through a
   CSS mask, so one file serves both the cream-on-navy and navy-on-cream
   placements the design uses.                                             */
.i {
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
/* One icon per feature claim — RemixIcon fill set (Apache-2.0) */
.i-quality     { --i: url('../assets/svg/icon-quality.svg'); }
.i-natural     { --i: url('../assets/svg/icon-natural.svg'); }
.i-tasty       { --i: url('../assets/svg/icon-tasty.svg'); }
.i-play        { --i: url('../assets/svg/icon-play.svg'); }
.i-close       { --i: url('../assets/svg/icon-close.svg'); }
.i-chevron     { --i: url('../assets/svg/icon-chevron.svg'); }
.i-arrow       { --i: url('../assets/svg/icon-arrow.svg'); }
.i-caret       { --i: url('../assets/svg/icon-caret.svg'); }
.i-email       { --i: url('../assets/svg/icon-email.svg'); }
.i-facebook    { --i: url('../assets/svg/icon-facebook.svg'); }
.i-instagram   { --i: url('../assets/svg/icon-instagram.svg'); }
.i-telegram    { --i: url('../assets/svg/icon-telegram.svg'); }
.i-sparkle     { --i: url('../assets/svg/sparkle-104-mono.svg'); }
.i-sparkle-big { --i: url('../assets/svg/sparkle-big.svg'); }

/* --------------------------------------------------------------- shell -- */
.page {
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--edge);
}

/* Sections are stacked rounded cards; the 1px outlines merge into one line. */
.section {
  position: relative;
  border: 1px solid var(--cream);
  border-radius: var(--r-section);
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
}
.section + .section { margin-top: -1px; }
.section--cream { background: var(--cream); color: var(--navy); }
.section--cream.section--hero { border-color: var(--navy); }

.section__head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}
.section__title {
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.section--cream .section__title { color: var(--navy); }

/* the three decorative "chip" marks that sit beside every section title */
.sparkle {
  flex: none;
  margin-left: 12px;      /* always clears the heading — never sits on the type */
  margin-top: -60px;
  width: 104px;
  height: 104px;
  color: var(--cream);
  pointer-events: none;
}
.section--cream .sparkle { color: var(--orange-deep); }
/* on the two wrapped titles the mark is placed by coordinate, not by flow */
/* On the two wrapped headings the mark is placed by coordinate at the design
   width. The Figma file paints it over the last word; here it sits behind the
   type so the heading stays legible. */
.faq > .section__head .section__title,
.cta .section__head .cta__title { position: relative; z-index: 1; }

.sparkle img, .sparkle .i { width: 100%; height: 100%; }

/* -------------------------------------------------------------- header -- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 94px;
  padding: 12px var(--pad-x);
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--r-section);
  margin-bottom: var(--edge);
}
.nav__logo { flex: none; width: 128px; height: 70px; }
.nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-left: 80px;
}
.nav__link {
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color .18s ease;
}
.nav__link:hover { color: var(--orange-deep); }
.nav__link[aria-current='page'] {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav__side { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* language switcher — the design's 80x36 pill, now a real control */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 80px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 20px;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--navy);
  cursor: pointer;
  transition: background .18s ease;
}
.lang__btn:hover { background: rgba(0, 2, 82, .06); }
.lang__btn .i { width: 6px; height: 8px; transition: transform .2s ease; }
.lang.is-open .lang__btn .i { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  z-index: 40;
  display: none;
  min-width: 80px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 2, 82, .18);
}
.lang.is-open .lang__menu { display: block; }
.lang__menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--navy);
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.lang__menu a:hover { background: rgba(0, 2, 82, .07); }
.lang__menu a.is-current { color: var(--orange-deep); }

.burger {
  display: none;
  width: 48px; height: 48px;
  margin-left: auto;
  padding: 12px;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }
.burger span + span { margin-top: 5px; }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn .i { flex: none; width: 24px; height: 16px; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  display: grid;
  grid-template-columns: 749px 1fr 277px;
  align-items: start;
  gap: var(--gap);
  padding-top: 100px;
  padding-bottom: 150px;
  min-height: 538px;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__text { display: flex; flex-direction: column; gap: 12px; }
.hero__title {
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__lead {
  max-width: 749px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-line;   /* keeps the line breaks the design sets */
}
/* The middle column contributes no height. The art is pinned to the section
   at the Figma coordinates (art frame 670x606 @826,75 inside a 1900-wide
   section with 40/100 padding), so the pack overflows and is clipped by the
   section exactly as in the design. */
.hero__art { position: relative; height: 0; pointer-events: none; }
.hero__pack {
  position: absolute;
  left: 50%; top: -25px;
  width: 440px; height: 606px;
  max-width: 100%;
  transform: translateX(-50%);
  object-fit: cover;
}
.hero__spark-a { position: absolute; right: 0; top: 70px;  width: 116px; height: 116px; }
.hero__spark-b { position: absolute; left: 0;  top: 350px; width: 164px; height: 188px; }

/* only at the design width do the Figma coordinates fit the columns */
@media (min-width: 1920px) {
  .hero__art { position: static; }
  .hero__pack { left: 959px; top: 74px; transform: none; }
  .hero__spark-a { left: 1379px; right: auto; top: 144px; }
  .hero__spark-b { left: 825px; top: 424px; }
}
.hero__features { display: flex; flex-direction: column; gap: 30px; }

/* icon + label + copy row, reused in the hero and in the advantage cards */
.feature { display: flex; align-items: flex-start; gap: 20px; }
.feature__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  color: var(--white);
}
.feature__icon .i { width: 32px; height: 32px; }
.feature__icon--orange { background: var(--orange); }
.feature__icon--navy   { background: var(--navy); }
.feature__icon--deep   { background: var(--orange-deep); }
.feature__title {
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature__text { font-size: var(--fs-body); line-height: 1.3; color: var(--muted); }

/* ------------------------------------------------------------- products -- */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.product {
  position: relative;
  display: block;
  aspect-ratio: 287 / 326;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--cream);
  transition: transform .2s ease;
}
.product:hover { transform: translateY(-4px); }
.product__img { width: 100%; height: 100%; object-fit: cover; }
.product::after {                       /* the 5% black wash from the design */
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .05);
  pointer-events: none;
}
.product__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-transform: uppercase;
}
/* the last tile — "all products" */
/* the "all products" tile: navy circle, label centred underneath it */
.product--all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 20px;
  background: var(--cream);
  text-align: center;
}
.product--all::after { content: none; }
.product__all-circle {
  flex: none;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  transition: transform .18s ease;
}
.product--all:hover .product__all-circle { transform: scale(1.08); }
.product__all-circle .i { width: 24px; height: 24px; }
.product__all-text {
  width: 137px;               /* the design's text box, so it breaks in two */
  min-width: min-content;     /* …but a longer word (uz MAHSULOTLAR) stays whole */
  max-width: 100%;
  overflow-wrap: break-word;
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
}

/* ----------------------------------------------------------- advantages -- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.advantage {
  position: relative;
  aspect-ratio: 593 / 280;
  border-radius: var(--r-card);
  overflow: hidden;
}
.advantage__img { width: 100%; height: 100%; object-fit: cover; }
.advantage::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .05);
  pointer-events: none;
}
.advantage__box {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 1;
  width: 372px;
  max-width: calc(100% - 16px);
  padding: 12px 20px 24px;      /* 112px tall, as in the design */
  background: var(--cream);
  border-radius: 0 var(--r-card) 0 var(--r-card);
  color: var(--navy);
}

.section__cta-top { position: absolute; right: var(--pad-x); top: 74px; }

/* ---------------------------------------------------------------- stats -- */
.video {
  position: relative;
  aspect-ratio: 1820 / 620;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--navy);
}
.video__media { width: 100%; height: 100%; object-fit: cover; }
.video__btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border: 0; border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  transition: transform .18s ease;
}
.video__btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video__btn .i { width: 32px; height: 32px; }
.video__close {
  position: absolute;
  right: 40px; top: 40px;
  display: none;
  place-items: center;
  width: 72px; height: 72px;
  border: 0; border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  z-index: 2;
}
.video__close .i { width: 28px; height: 28px; }
.video.is-playing .video__btn { display: none; }
.video.is-playing .video__close { display: grid; }
/* The still is a wide banner crop; the film itself is 16:9, so the box grows to
   the film's shape on play instead of cutting the tops off the workers' heads. */
.video { transition: aspect-ratio .3s ease; }
.video.is-playing { aspect-ratio: 16 / 9; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.stat {
  min-height: 188px;
  padding: 40px 20px;
  background: var(--cream);
  border-radius: var(--r-card);
  color: var(--navy);
}
.stat__num {
  font-weight: 500;
  font-size: var(--fs-stat);
  /* Figma applies CAP_HEIGHT leading-trim, so the numeral box is its cap
     height (0.7em), not the 1.3 line box — that is what makes the card 188px */
  line-height: .7;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.stat__label { font-size: var(--fs-body); line-height: 1.3; color: var(--muted); white-space: pre-line; }

/* ----------------------------------------------------------------- news -- */
.news-card {
  position: relative;
  aspect-ratio: 593 / 280;
  border-radius: var(--r-card);
  overflow: hidden;
}
.news-card__btn {
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.news-card__img { width: 100%; height: 100%; object-fit: cover; }
.news-card__label {
  position: absolute;
  left: 8px; bottom: 8px;
  width: 370px;                 /* 328px of text, matching the design box */
  max-width: calc(100% - 16px);
  padding: 12px 20px;
  background: var(--cream);
  border-radius: 0 var(--r-card) 0 var(--r-card);
  color: var(--navy);
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-transform: uppercase;
}
.news-card--open .news-card__img { transition: transform .3s ease; }
.news-card--open:hover .news-card__img { transform: scale(1.03); }

/* ------------------------------------------------------------------ faq -- */
.faq { display: grid; grid-template-columns: 593px 1fr; gap: var(--gap); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--cream);
  border-radius: var(--r-card);
  color: var(--navy);
}
.faq__h { margin: 0; font: inherit; }
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding: 20px;
  border: 0;
  border-radius: var(--r-card);
  background: transparent;
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}
/* draw the ring inside the card so the rounded corners cannot clip it */
.faq__q:focus-visible { outline-offset: -5px; box-shadow: none; }
/* the toggle is a plus that becomes a minus when the answer is open */
.faq__mark {
  position: relative;
  flex: none;
  width: 46px; height: 46px;
  margin: -10px 0 -10px auto;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
}
.faq__mark::before,
.faq__mark::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; visibility: hidden; }
.faq__item.is-open .faq__a > div { visibility: visible; }
.faq__a p {
  padding: 0 20px 20px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
  text-transform: none;
  white-space: pre-line;   /* keeps the line breaks the design sets */
}
/* no answer supplied yet — plain text instead of a control that does nothing */
.faq__item--noanswer .faq__q { cursor: default; }

/* ------------------------------------------------------------------ cta -- */
.cta { display: grid; grid-template-columns: 573px 1fr; gap: 40px; }
.cta .section__head { margin-bottom: 40px; }
.cta__title {
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
  max-width: 529px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: var(--r-card);
}
.contact-card__group { display: flex; flex-direction: column; gap: 12px; }
.contact-card__label { font-size: var(--fs-body); line-height: 1.25; color: var(--muted); }
.contact-card__value {
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
  white-space: pre-line;
}
.socials { display: flex; align-items: center; gap: 20px; }
.socials a, .socials .socials__soon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  color: currentColor;
  transition: color .18s ease, transform .18s ease;
}
.socials a:hover { color: var(--orange); transform: translateY(-2px); }
.socials .i { width: 32px; height: 32px; }

.cta__right { position: relative; }
.cta__map {
  position: relative;
  aspect-ratio: 1207 / 508;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.cta__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* The form overlays the map only at the design width, where the map is tall
   enough to hold it. Below that it stacks underneath — nesting it inside the
   map would let the map's fixed aspect ratio clip the submit button away. */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: var(--gap);
}
.form__fields { display: flex; flex-direction: column; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: var(--r-card);
  font-size: var(--fs-body);
  line-height: 1.25;
  color: var(--navy);
  resize: none;
}
/* Never below 16px: iOS Safari zooms the whole page in when a focused field is
   smaller than that, and body copy steps down to 15px on narrow screens. */
.form input, .form textarea { font-size: max(16px, var(--fs-body)); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form textarea { min-height: 174px; }
.form input[aria-invalid='true'], .form textarea[aria-invalid='true'] {
  border-color: #c0392b;
  box-shadow: inset 0 0 0 1px #c0392b;
}
.form__status { font-size: 14px; line-height: 1.4; color: var(--navy); min-height: 1.4em; }
.form__status--err { color: #c0392b; }

/* The confirmation itself is the full-screen .modal--thanks dialog, styled
   next to the other modals. */

@media (min-width: 1920px) {
  .form {
    position: absolute;
    left: 40px; top: 40px;
    z-index: 1;
    width: 400px;
    margin-top: 0;
  }
}

/* -------------------------------------------------------------- footer -- */
.footer {
  position: relative;
  border: 1px solid var(--cream);
  border-radius: var(--r-section);
  margin-top: -1px;
  padding: var(--pad-y) var(--pad-x);
  min-height: 332px;
  display: grid;
  grid-template-columns: 128px 1fr auto;
  align-items: start;
  gap: 40px;
}
.footer__logo { width: 128px; height: 70px; }
.footer__links { display: flex; gap: 60px; justify-content: flex-start; margin-left: 80px; }
.footer__link {
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .18s ease;
}
.footer__link:hover { color: var(--orange-deep); }
.footer__link[aria-current='page'] {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.footer__socials { color: var(--cream); }
.footer__bottom {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 62px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--cream);
}

/* at the design width the footer blocks sit at their Figma coordinates */
@media (min-width: 1281px) {
  .footer { display: block; padding: 80px 40px 0; }
  .footer__logo    { position: absolute; left: 40px;  top: 80px; }
  .footer__links   { position: absolute; left: 248px; top: 103px; margin: 0; }
  .footer__socials { position: absolute; right: 40px; top: 99px; }
  .footer__bottom  { top: 230px; bottom: auto; }
}


/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.cat-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 287 / 326;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card__pack {
  position: absolute;
  left: 0; top: -3.4%;
  width: 100%; height: 88%;
  object-fit: contain;
}
.cat-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 2, 82, .20);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative;
  display: grid;
  grid-template-columns: 553px 1fr;
  gap: var(--gap);
  width: min(1206px, 100%);
  padding: 40px;
  background: var(--cream);
  border-radius: var(--r-section);
  color: var(--navy);
}
.modal__img {
  width: 100%;
  aspect-ratio: 553 / 520;
  object-fit: contain;
  border-radius: var(--r-card);
  background: var(--white);
}
.modal__body { display: flex; flex-direction: column; gap: 20px; }
.modal__title {
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.3;
  text-transform: uppercase;
  padding-right: 60px;
}
.modal__group { display: flex; flex-direction: column; gap: 12px; }
.modal__label { font-size: var(--fs-body); line-height: 1.25; color: var(--muted); }
.modal__text { font-weight: 600; font-size: var(--fs-lead); line-height: 1.3; }
/* Ingredients read as label fine print in Figma: 14px, regular weight. Gilroy
   Regular is not among the three faces we ship, so Medium stands in for it. */
.modal__text--fine { font-weight: 500; font-size: 14px; line-height: 1.35; }
.modal__text--muted {
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--muted);
  white-space: pre-line;
}
.modal .btn { margin-top: auto; align-self: flex-start; }
.modal__close {
  position: absolute;
  right: 34px; top: 34px;        /* keeps the glyph centre where the design puts
                                    it while clearing the 50px corner radius */
  z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.modal__close .i { width: 24px; height: 24px; }
.modal__close:hover { color: var(--orange); }
/* a compact ring, so focus never spills past the rounded corner */
.modal__close:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: none; }
/* the dialog itself takes focus on open, so no ring lands on the close button */
.modal__box:focus { outline: none; }

/* ------------------------------------------------- thank-you dialog -- */
/* Opened by the contact form once a lead is through. One centred column
   instead of the image + copy split the product and news dialogs use. */
.modal--thanks .modal__box {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  width: min(720px, 100%);
  padding: 80px 40px 72px;
  text-align: center;
}
.thanks__mark { color: var(--orange); line-height: 0; }
.thanks__title {
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.1;
  text-transform: uppercase;
}
.thanks__text {
  max-width: 30ch;
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.35;
}
@media (max-width: 600px) {
  .modal--thanks .modal__box { padding: 64px 24px 48px; }
}

/* ==========================================================================
   About
   ========================================================================== */
/* The Figma About hero holds only the copy and an 811x470 art frame @966,53;
   there is no feature column on this page. */
/* Below the design width the About hero is a plain two-column layout, so the
   wordmark can never drop out of the section. */
.hero--about { grid-template-columns: 1fr minmax(360px, 620px); }
.about-hero__art { position: relative; height: 0; pointer-events: none; }
.about-hero__logo    { position: absolute; left: 50%; top: 40px; width: 430px; height: 236px; max-width: 100%; transform: translateX(-50%); }
.about-hero__spark-a { position: absolute; right: 0;  top: 0;   width: 116px; height: 116px; }
.about-hero__spark-b { position: absolute; left: 0;   top: 282px; width: 164px; height: 188px; }

@media (min-width: 1920px) {
  .hero--about { grid-template-columns: 1fr; }
  .hero--about .hero__copy { max-width: 749px; }
  .about-hero__art { position: absolute; left: 965px; top: 52px; width: 811px; height: 470px; }
  .about-hero__logo    { left: 181px; top: 47px; width: 526px; height: 288px; transform: none; }
  .about-hero__spark-a { left: 695px; right: auto; top: 0; }
  .about-hero__spark-b { left: 0; top: 282px; }
}

/* the Figma "О НАС" frame closes 40px under the stat row, not 80px */
.section--about { padding-bottom: 40px; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 40px; }
.about-intro p {
  max-width: 900px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #c9c9c9;
  white-space: pre-wrap;   /* the client's copy contains deliberate double spaces */
}

/* -------------------------------------------------------- testimonials -- */
.reviews {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  /* Snap is for thumbs. A touch swipe is one continuous gesture, so the rail
     settles neatly on a card. A mouse wheel or trackpad arrives as separate
     deltas, and snapping each one dragged the rail back to the card it started
     on — short scrolls never advanced. Fine pointers scroll freely instead
     (main.js still steps a whole card per wheel notch, so it stays aligned). */
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
@media (pointer: fine) {
  .reviews { scroll-snap-type: none; }
}
.review {
  flex: 0 0 593px;
  max-width: 100%;
  scroll-snap-align: start;
  padding: 40px 20px;
  background: var(--cream);
  border-radius: var(--r-card);
  color: var(--navy);
}
.review__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.review__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.review__name { font-weight: 600; font-size: var(--fs-lead); line-height: 1.3; text-transform: uppercase; }
.review__text { font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 1060px;
  padding: 0;
  text-align: center;
}
.notfound__inner { position: relative; z-index: 1; }
.notfound__code {
  font-weight: 600;
  font-size: 400px;
  line-height: 1.3;
  color: var(--cream);
  line-height: .7;          /* CAP_HEIGHT trim → a real 280px box */
}
.notfound__text {
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--cream);
  line-height: .7;
  margin-top: 80px;
}
.notfound__spark {
  position: absolute;
  z-index: 0;
  width: 391px; height: 448px;
  color: var(--cream);
  pointer-events: none;
}
.notfound__spark .i { width: 100%; height: 100%; }
.notfound__spark--l { left: 40px;   top: 752px; }
.notfound__spark--r { left: 1469px; top: -140px; transform: rotate(180deg); }
.notfound__back { position: absolute; left: 40px; top: 40px; z-index: 2; }

/* ==========================================================================
   Responsive — the Figma file only contains the 1920 desktop layout,
   everything below is an adaptation that keeps type, colour and spacing.
   ========================================================================== */

@media (max-width: 1600px) {
  :root { --fs-hero: 42px; --fs-title: 36px; --fs-stat: 52px; }
  .hero { grid-template-columns: 1fr minmax(360px, 620px) 277px; }
  .hero--about { grid-template-columns: 1fr minmax(360px, 620px); }   /* no feature column here */
  .hero__pack { width: 368px; height: 506px; }
  .hero__spark-a { top: 58px; width: 96px; height: 96px; }
  .hero__spark-b { top: 300px; width: 136px; height: 156px; }
  .about-hero__spark-a { width: 96px; height: 96px; }
  .about-hero__spark-b { top: 240px; width: 136px; height: 156px; }
  .faq, .cta { grid-template-columns: 480px 1fr; }
  .nav__links { margin-left: 40px; gap: 40px; }
  .footer__links { margin-left: 40px; gap: 40px; }
}

@media (max-width: 1280px) {
  :root { --pad-x: 32px; --pad-y: 56px; --fs-hero: 36px; --fs-title: 30px; --fs-stat: 44px; --r-section: 40px; }
  .hero { grid-template-columns: 1fr 300px; row-gap: 40px; padding-bottom: 60px; }
  .hero--about { grid-template-columns: 1fr; }
  .hero__art, .about-hero__art { grid-column: 1 / -1; order: 3; height: 380px; }
  .hero__pack { top: 0; width: 276px; height: 380px; }
  .hero__spark-a { right: 8%; top: 30px; width: 80px; height: 80px; }
  .hero__spark-b { left: 4%; top: 220px; width: 110px; height: 126px; }
  .about-hero__art { height: 300px; }
  .about-hero__logo { left: 50%; top: 60px; width: 340px; height: 186px; transform: translateX(-50%); }
  .about-hero__spark-a { left: auto; right: 8%; top: 0; width: 80px; height: 80px; }
  .about-hero__spark-b { left: 4%; top: 200px; width: 110px; height: 126px; }
  .products, .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .faq, .cta { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 20px; }
  .sparkle { width: 80px; height: 80px; margin-top: -40px; }
  .cta__title { margin-bottom: 24px; max-width: none; }
  .about-intro { grid-template-columns: 1fr; }
  .modal__box { grid-template-columns: 1fr; padding: 32px; }
  .modal__close { right: 22px; top: 22px; }
  .modal__title { padding-right: 52px; }
  .notfound { min-height: 620px; }
  .notfound__code { font-size: 220px; }
  .notfound__text { margin-top: 50px; }
  /* Sparks and copy are both cream. Below the design width the centred block
     spans the whole column, so the decoration is pulled into the corners —
     half off-canvas, which the section's overflow clips. */
  .notfound__spark { width: 220px; height: 252px; }
  .notfound__spark--l { left: -70px; top: auto; bottom: -30px; }
  .notfound__spark--r { left: auto; right: -70px; top: -30px; }
  .cta { grid-template-columns: 1fr; gap: var(--gap); }
  .footer { grid-template-columns: 1fr auto; row-gap: 24px; padding-bottom: 120px; }
  .footer__links { grid-column: 1 / -1; margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  :root { --fs-lead: 18px; }
  .stats { grid-template-columns: 1fr; }   /* 3 cards: stack rather than orphan one */
  .nav { flex-wrap: wrap; }
  .nav__links { display: none; }
  .burger { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    z-index: 30;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    margin: 0;
    padding: 16px var(--pad-x) 24px;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(0, 2, 82, .28);
  }
  /* inside the open panel the language chip and the CTA follow the links */
  .nav.is-open .nav__side {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 12px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 2, 82, .12);
  }
  /* in the mobile panel all three languages show at once — a dropdown there
     would open below the fold and force the user to scroll */
  .nav.is-open .lang { align-self: stretch; width: 100%; }
  .nav.is-open .lang__btn { display: none; }
  .nav.is-open .lang__menu {
    display: flex;
    gap: 8px;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open .lang__menu li { flex: 1; }
  .nav.is-open .lang__menu a {
    padding: 12px 8px;
    border: 1px solid var(--navy);
    border-radius: 14px;
  }
  .nav.is-open .lang__menu a.is-current {
    background: var(--navy);
    color: var(--white);
  }

  .nav__link, .footer__link { padding: 11px 0; }
  .footer__links { gap: 4px 32px; }
  .contact-card__value a { display: inline-block; padding: 12px 0; }
  .socials a, .socials .socials__soon { width: 44px; height: 44px; }

  .cards-3 { grid-template-columns: 1fr 1fr; }
  .advantage, .news-card { aspect-ratio: 4 / 3; }
  .advantage__box, .news-card__label { width: auto; right: 8px; }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 20px; --pad-y: 40px; --edge: 8px; --gap: 12px;
    --r-section: 28px; --r-card: 18px;
    --fs-hero: 28px; --fs-title: 24px; --fs-stat: 36px; --fs-lead: 17px; --fs-body: 15px;
  }
  .hero { grid-template-columns: 1fr; row-gap: 36px; padding-top: 40px; }
  .hero__features { gap: 20px; }
  .hero__art { height: 300px; }
  .hero__pack { width: 218px; height: 300px; }
  .hero__spark-a { width: 62px; height: 62px; }
  .hero__spark-b { width: 84px; height: 96px; top: 180px; }
  .about-hero__art { height: 240px; }
  .about-hero__logo { top: 60px; width: 240px; height: 132px; }
  .about-hero__spark-a { width: 56px; height: 56px; }
  .about-hero__spark-b { top: 160px; width: 84px; height: 96px; }
  .products, .catalog-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .advantage, .news-card { aspect-ratio: 3 / 2; }
  /* On a phone the still takes the film's own shape, so nothing resizes on play */
  .video { aspect-ratio: 16 / 9; }
  .video__close { right: 12px; top: 12px; width: 52px; height: 52px; }
  .video__close .i { width: 22px; height: 22px; }
  .btn { width: 100%; }
  .section__cta-top { position: static; width: auto; margin-bottom: 20px; }
  .product__all-text { width: auto; }   /* longer translations need the full tile */
  .review { flex-basis: 85%; padding: 24px 16px; }
  .faq__q { padding: 16px; gap: 12px; }
  .faq__mark { width: 38px; height: 38px; }
  .faq__a p { padding: 0 16px 16px; }
  .modal { padding: 10px; }
  .modal__box { padding: 24px 20px; border-radius: 24px; }
  .modal__title { padding-right: 44px; }
  /* On a phone the design's 553x520 image frame leaves the pack swimming in
     white and pushes the copy far below the fold: keep the pack legible, cut
     the empty space, and step the copy down so the whole card is one glance. */
  .modal__img { aspect-ratio: 1 / 1; max-height: 240px; }
  .modal--product .modal__box, [data-modal="product"] .modal__box,
  [data-modal="news"] .modal__box { gap: 16px; }
  .modal__body { gap: 14px; }
  .modal__group { gap: 6px; }
  .modal__text { font-size: 15px; line-height: 1.35; }
  .modal__text--fine { font-size: 13px; line-height: 1.35; }
  .modal__text--muted { font-size: 14px; }
  .footer { grid-template-columns: 1fr; padding-bottom: 140px; }
  .footer__bottom { flex-direction: column; gap: 8px; bottom: 40px; }
  .notfound { min-height: 460px; }
  .notfound__code { font-size: 120px; }
  .notfound__text { margin-top: 32px; }
  .notfound__spark { width: 150px; height: 172px; }
  .notfound__spark--l { left: -55px; bottom: -22px; }
  .notfound__spark--r { right: -55px; top: -22px; }
  .notfound__back { left: 16px; top: 16px; width: auto; }
}

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

/* ==========================================================================
   Motion — content settles in as it scrolls into view. Everything here is
   opt-in from JS (`.js-anim` on <html>), so with JS off, or when the visitor
   asks for reduced motion, the page renders fully static and visible.
   ========================================================================== */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: opacity, transform;
}
.js-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .65s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
    transform .65s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms);
}
.js-anim [data-reveal].is-in { will-change: auto; }

/* soft entrance for the dialogs */
@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-rise { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985) } to { opacity: 1; transform: none } }
.modal { animation: modal-fade .22s ease both; }
.modal .modal__box { animation: modal-rise .3s cubic-bezier(.22, .61, .36, 1) both; }

/* the open burger panel slides down instead of snapping */
@keyframes menu-drop { from { opacity: 0; transform: translate3d(0, -10px, 0) } to { opacity: 1; transform: none } }
@media (max-width: 900px) {
  .nav.is-open .nav__links { animation: menu-drop .24s cubic-bezier(.22, .61, .36, 1) both; }
}

/* a little more life on the interactive surfaces */
.product, .cat-card, .news-card--open { transition: transform .28s cubic-bezier(.22, .61, .36, 1); }
.product__img, .cat-card__pack, .advantage__img { transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.product:hover .product__img, .cat-card:hover .cat-card__pack { transform: scale(1.04); }
.nav__logo img, .footer__logo img { transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.nav__logo:hover img, .footer__logo:hover img { transform: scale(1.04); }
.faq__item { transition: background .2s ease; }
.faq__item:hover:not(.faq__item--noanswer) { background: #fffdf9; }

@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .modal, .modal .modal__box, .nav.is-open .nav__links { animation: none; }
}
