/* ==========================================================================
   ZADÄGAN — styles
   Type: Times New Roman Regular, letter-spacing -2% everywhere.
   ========================================================================== */

:root {
  /* Stone & kraft */
  --stone: #F4EEE3;         /* page — pale aglay limestone */
  --stone-2: #ECE3D4;
  --stone-3: #E2D6C3;
  --line: rgba(14, 13, 11, .12);
  --kraft: #C9A270;
  --kraft-dark: #A9814F;

  /* Ink */
  --ink: #0E0D0B;
  --ink-soft: #6E655A;
  --ink-faint: #A69A8A;
  --cream: #FBF6EC;

  /* Carpet */
  --garnet: #9C2424;
  --garnet-deep: #5A1216;
  --navy: #10254F;
  --gold: #B49C5A;

  /* Labels */
  --label-yellow: #FFD15C;
  --label-black: #0B0B0B;
  --label-white: #FFFFFF;

  --radius: 4px;
  --radius-sm: 4px;
  --gutter: 40px;
  --container: 1170px;
  /* side padding that lines bar content up with the 1440 container */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Times New Roman", Times, Tinos, "Liberation Serif", serif;
  /* buttons and button-like controls only */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Kraft paper grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .24 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* anchored sections stop below the sticky header (80px once scrolled, 60px on phones) */
#collection, #guide, #faq { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone) var(--grain-soft);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, b, strong { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Everything lives in a 1440px container; bars keep full-bleed backgrounds. */
main { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* "ZADÄGAN" in running text: -18% tracking to match the logo; padding restores the space after it */
.brand-word { letter-spacing: -0.18em; }
.brand-word--gap { padding-right: 0.18em; }
.eyebrow { font-size: 15px; color: var(--ink-soft); }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- UI font: buttons and button-like controls (Inter, same -2% tracking) ---------- */
.btn, .nav__links a, .langs button, .qa__q {
  font-family: var(--font-ui); font-weight: 400; letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 60px; padding: 0 40px;
  border-radius: 4px;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #2A2621; }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
/* Same chip as the active nav item */
.btn--chip { height: 42px; padding: 0 18px; font-size: 15px; background: var(--ink); color: var(--cream); }
.btn--chip:hover { background: #2A2621; }
.btn[disabled] { background: var(--ink-faint); color: var(--cream); cursor: not-allowed; opacity: .7; }

.arrow {
  position: relative; display: inline-block; width: 14px; height: 1px; background: currentColor;
}
.arrow::after {
  content: ""; position: absolute; right: 0; top: -4px;
  width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
}
.arrow--left { transform: rotate(180deg); }
.arrow--down { transform: rotate(90deg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 96px; padding: 0 var(--edge);
  background: color-mix(in srgb, var(--stone) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: box-shadow .3s var(--ease), height .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); height: 80px; }
.nav__logo { display: inline-flex; width: 126px; height: 28px; }
.nav__logo svg { width: 100%; height: 100%; fill: currentColor; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 4px; font-size: 15px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav__links a:hover, .nav__links a:active, .nav__links a.is-active { background: var(--stone-2); }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

/* Language chips — the black AZ / EN / RU tags from the back of the box */
.langs { display: flex; gap: 4px; }
.langs button {
  min-width: 33px; height: 24px; padding: 0 6px; border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft); border: 1px solid transparent;
  transition: background-color .25s, color .25s;
}
.langs button:hover { color: var(--ink); }
.langs button.is-active { background: var(--ink); color: var(--cream); }


.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; padding: 120px 24px 40px;
  background: var(--stone) var(--grain-soft);
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 44px; line-height: 1.2; padding: 6px 0; border-bottom: 1px solid var(--line); }
.langs--menu button { height: 34px; min-width: 48px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { margin-bottom: 0; }
.hero__intro {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 0 80px;
}
.hero__logo { line-height: 0; }
.hero__logo svg { width: 200px; height: 44px; fill: var(--ink); }
.hero__sub { max-width: 640px; margin-top: 28px; font-size: 21px; line-height: 1.3; }
.hero__cta { margin-top: 28px; height: 52px; padding: 0 26px; }
.hero__photo { overflow: hidden; border-radius: 4px; background: #d8c3a6; }
.hero__photo img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  animation: hero-in 1.8s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } }

/* ---------- Fragrance themes ---------- */
.t-golden {
  --fg: var(--ink); --fg-soft: rgba(14, 13, 11, .55);
  background:
    radial-gradient(70% 90% at 72% 40%, #FFE9A8 0%, rgba(255, 209, 92, .75) 30%, transparent 70%),
    linear-gradient(135deg, #E9B64E, #C98E3E 55%, #9E6A33);
}
.t-red {
  --fg: var(--cream); --fg-soft: rgba(251, 246, 236, .6);
  background:
    radial-gradient(60% 80% at 70% 45%, rgba(229, 96, 88, .9) 0%, rgba(156, 36, 36, .7) 40%, transparent 75%),
    linear-gradient(135deg, #3E0B0F, var(--garnet-deep) 40%, #7E1B20);
}
.t-apple {
  --fg: var(--ink); --fg-soft: rgba(14, 13, 11, .48);
  background:
    radial-gradient(55% 70% at 70% 45%, #FFFFFF 0%, rgba(255, 255, 255, .7) 35%, transparent 70%),
    radial-gradient(50% 60% at 90% 100%, rgba(156, 36, 36, .35), transparent 70%),
    linear-gradient(135deg, #F1E6D6, #E8D5C0 60%, #D8BBA0);
}
.t-dune {
  --fg: var(--cream); --fg-soft: rgba(251, 246, 236, .62);
  background:
    radial-gradient(65% 85% at 72% 40%, rgba(240, 200, 140, .9) 0%, rgba(201, 150, 90, .6) 35%, transparent 72%),
    linear-gradient(135deg, #4A2F1A, #7A5230 45%, #A87A48);
}

/* ---------- Product grid ---------- */
.collection { padding-top: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 720px; padding: 48px;
  border-radius: var(--radius);
  color: var(--fg);
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none;
}
.card__name { font-size: clamp(40px, 4.2vw, 64px); line-height: .98; text-transform: uppercase; }
.card__desc { margin-top: 20px; max-width: 17em; font-size: 18px; line-height: 1.35; color: var(--fg-soft); }
.card__buy { margin-top: auto; display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; }
.card__price { font-size: 26px; }
.card__visual {
  position: absolute; right: 12%; bottom: -70px; z-index: 1;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__visual { transform: translateY(-14px); }

/* ---------- 3D box (built from the dieline) ---------- */
.stage { perspective: 1600px; perspective-origin: 50% 0%; }
.box {
  --w: 170px;
  --d: var(--w);
  --h: calc(var(--w) * 2.35);
  --panel: var(--label-yellow);
  --panel-ink: var(--ink);
  --mono: rgba(14, 13, 11, .09);
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(-28deg);
  transition: transform 1.2s var(--ease);
}
.card:hover .box { transform: rotateX(-14deg) rotateY(-18deg); }
.box__face { position: absolute; backface-visibility: hidden; }
.box__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); background: var(--kraft); overflow: hidden; }
.box__side {
  top: 0; left: calc((var(--w) - var(--d)) / 2); width: var(--d); height: var(--h);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #A47A49, #8E673C);
}
.box__top {
  left: 0; top: calc((var(--h) - var(--d)) / 2); width: var(--w); height: var(--d);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
  background: url("assets/img/carpet.webp") center / cover;
  padding: 7%;
}
.box__front::after, .box__side::after {
  content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .55; mix-blend-mode: multiply; pointer-events: none;
}
.box__side::after { opacity: .7; }
.box__top-panel {
  width: 100%; height: 100%; background: var(--panel);
  display: grid; place-items: center;
}
.box__top-panel svg { width: 52%; height: 70%; fill: var(--mono); transform: rotate(180deg); }
.box__carpet {
  position: absolute; left: 0; right: 0; top: 0; height: 66%;
  background: url("assets/img/carpet.webp") center 30% / auto 100%;
  padding: 0 7% 7%;
  display: flex; align-items: flex-end;
}
.box__label {
  width: 100%; height: 56%;
  background: var(--panel); color: var(--panel-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 9% 6% 8%; text-align: center;
}
.box__label svg { width: 64%; height: calc(var(--w) * .12); fill: currentColor; }
.box__label .n { font-size: calc(var(--w) * .145); line-height: 1.02; text-transform: uppercase; }
.box__label .v { font-size: calc(var(--w) * .07); }
.box__shadow {
  position: absolute; left: -10%; right: -40%; bottom: -18px; height: 36px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent);
  transform: translateZ(-60px) rotateX(90deg); filter: blur(4px);
}

.box--black { --panel: var(--label-black); --panel-ink: var(--cream); --mono: rgba(255, 255, 255, .2); }
.box--white { --panel: var(--label-white); --panel-ink: var(--ink); --mono: rgba(14, 13, 11, .07); }

/* ---------- Label guide ---------- */
.guide { padding: 120px 0; }
.guide__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.guide__intro h2 { font-size: clamp(38px, 3.6vw, 52px); line-height: 1.05; }
.guide__intro p { font-size: 19px; color: var(--ink-soft); max-width: 26em; }
.guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.family {
  --fg: var(--ink); --fg-soft: var(--ink-soft); --rule: var(--line);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  color: var(--fg);
}
.family::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.family--white  { background: #FBF8F2; box-shadow: inset 0 0 0 1px var(--line); }
.family--yellow { background: linear-gradient(160deg, #FFE08A, #F2C24E); }
.family--black  { --fg: var(--cream); --fg-soft: rgba(251, 246, 236, .6); --rule: rgba(251, 246, 236, .14); background: linear-gradient(160deg, #1B1917, #0B0A09); }
.family--black::before { opacity: .6; mix-blend-mode: screen; filter: invert(1); }

/* the bottle sticker: carpet frame + coloured panel */
.sticker {
  width: 92px; height: 92px; padding: 7px; margin-bottom: 28px;
  background: url("assets/img/carpet.webp") center / cover;
  border-radius: 4px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease);
}
.sticker span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--panel); }
.sticker svg { width: 70%; height: 16px; fill: var(--ink); }
.family--black .sticker svg { fill: var(--cream); }
.family:hover .sticker { transform: rotate(-4deg) scale(1.04); }

.family__label { font-size: 15px; color: var(--fg-soft); }
.family__title { font-size: clamp(32px, 2.8vw, 40px); line-height: 1.05; margin-top: 6px; }
/* light → medium → dark: 1–3 filled bars */
.family__level { display: flex; gap: 4px; margin-top: 14px; }
.family__level i { width: 28px; height: 4px; border-radius: 4px; background: var(--rule); }
.family__level i.on { background: var(--fg); }
.family__words { margin-top: 16px; font-size: 17px; line-height: 1.4; color: var(--fg-soft); max-width: 24em; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  padding-bottom: 120px;
}
.faq__lead { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; max-width: 14em; margin-bottom: 36px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.qa { border-radius: 4px; background: var(--stone-2); transition: background-color .3s; }
.qa:hover { background: var(--stone-3); }
.qa__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; text-align: left; font-size: 16px;
}
.qa__q .arrow { transform: rotate(90deg); transition: transform .4s var(--ease); flex: none; }
.qa.is-open .qa__q .arrow { transform: rotate(-90deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 24px 24px; color: var(--ink-soft); max-width: 34em; }

/* ---------- Footer ---------- */
.footer__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  padding: 64px var(--edge) 40px;
}
.footer__card::before { /* carpet selvage along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: url("assets/img/carpet.webp") center 0 / 520px auto repeat-x;
  opacity: .9;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 190px; height: 42px; fill: var(--cream); }
.socials { display: flex; gap: 8px; margin-top: 28px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px;
  background: #1C1A17; transition: background-color .3s;
}
.socials a:hover { background: #2C2925; }
.socials svg { width: 22px; height: 22px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.footer__col a:hover { opacity: .7; }
.footer__col--muted { color: rgba(251, 246, 236, .5); }
.footer__legal { margin-top: 80px; font-size: 14px; color: rgba(251, 246, 236, .45); }
.footer__bottom {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(251, 246, 236, .12);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 15px; color: rgba(251, 246, 236, .7);
}
.langs--footer button { color: rgba(251, 246, 236, .55); }
.langs--footer button:hover { color: var(--cream); }
.langs--footer button.is-active { background: var(--cream); color: var(--ink); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .guide__intro { grid-template-columns: 1fr; gap: 16px; }
  .family { padding: 24px; }
  .card__visual { right: 6%; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  #collection, #guide, #faq { scroll-margin-top: 60px; }
  body { font-size: 17px; }
  .nav { grid-template-columns: 1fr auto; height: 68px; }
  .nav.is-scrolled { height: 60px; }
  .nav__links, .nav__right .langs { display: none; }
  .nav__logo { width: 104px; height: 23px; }
  .nav__right { gap: 6px; }
  .burger { display: block; }

  .hero__intro { padding: 44px 0 48px; }
  .hero__logo svg { width: 160px; height: 36px; }
  .hero__sub { font-size: 18px; margin-top: 20px; }
  .hero__cta { margin-top: 22px; }
  .hero__photo img { aspect-ratio: 3 / 2; }


  .collection { padding-top: 10px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 560px; padding: 28px 24px; }
  .card__desc { font-size: 17px; }
  .card { min-height: 0; }
  .card__visual {
    position: relative; right: auto; bottom: auto; order: 2;
    align-self: center; margin: 48px 0 44px; transform: translateX(-12px);
  }
  .card:hover .card__visual { transform: translateX(-12px); }
  .card .box { --w: 128px !important; }
  .card__buy { order: 3; gap: 16px; }
  .card__buy .btn { height: 44px; }
  .card__price { font-size: 22px; }

  .guide { padding: 80px 0; }
  .guide__grid { grid-template-columns: 1fr; }


  .faq { grid-template-columns: 1fr; gap: 36px; padding-bottom: 80px; }
  .qa__q { font-size: 15px; padding: 18px 20px; }
  .qa__a p { padding: 0 20px 20px; }

  .footer__card { padding: 48px var(--edge) 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo { width: 160px; height: 36px; }
  .footer__legal { margin-top: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
