/* Начална страница с видео. Colours and font are only the site's own (Divi_Child + plugins):
   gold #cbb162 / #bfa44e, text #3e3e3e, muted #616162, highlight #f3f3f5, white; Comfortaa. */
:root {
  --ae-gold: #cbb162;
  --ae-gold-d: #bfa44e;
  --ae-text: #3e3e3e;
  --ae-muted: #616162;
  --ae-hl: #f3f3f5;
  --ae-white: #ffffff;
  --ae-free: calc(100svh - var(--ae-top, 230px)); /* the screen under the live header */
}
body { overflow-x: clip; } /* keeps the pinned stage pinned; nothing else on the body changes */
.hx, .hx-after {
  font-family: 'Comfortaa', sans-serif; font-size: 15px; line-height: 1.7; color: var(--ae-text); -webkit-font-smoothing: antialiased;
}
:where(.hx, .hx-after) a { color: inherit; }

/* ================= the opening: a pinned stage that the scroll drives ================= */
.hx { position: relative; }
.hx p { padding: 0; } /* Divi gives every p a bottom padding */
.hx-pin { position: relative; height: 340vh; }
.hx-stage {
  position: sticky; top: var(--header-sticky-height, 123px);
  height: calc(100svh - var(--header-sticky-height, 123px)); min-height: 460px;
  overflow: hidden; background: var(--ae-white);
}
.hx-track { position: absolute; inset: 0; }
.hx[data-v="a"] .hx-track { right: auto; bottom: auto; overflow: hidden; transform: translateZ(0); }
.hx[data-v="a"] .hx-film--2 { right: auto; bottom: auto; visibility: hidden; }
.hx-film { position: absolute; inset: 0; overflow: hidden; background: var(--ae-hl); will-change: transform; }
.hx-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 34%, rgba(0, 0, 0, 0) 55%);
}

/* А: the words around the window */
.hx-a { position: absolute; inset: 0; pointer-events: none; display: none; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; } /* an h1: none of the theme's heading look */
.hx[data-v="a"] .hx-a { display: block; }
/* the words wait for the font and their place, then fade in: no jump while the page loads (layout shift) */
.hx-a { opacity: 0; transition: opacity .5s ease; }
.hx.is-set .hx-a { opacity: 1; }
.hx-a__w {
  position: absolute; white-space: nowrap; font-weight: 300; line-height: 1; letter-spacing: -.01em;
  font-size: var(--a-fs, 72px); color: var(--ae-text);
}

/* what stands on the white at the start */
.hx-open {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: clamp(22px, 6vh, 64px) 24px clamp(18px, 4vh, 40px); pointer-events: none; text-align: center;
}
.hx-open > * { pointer-events: auto; }
.hx-open__kicker { grid-row: 1; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ae-gold); }
.hx-open__bottom { grid-row: 3; display: grid; justify-items: center; gap: 16px; }
.hx-open__cue { width: 1px; height: 34px; background: rgba(203, 177, 98, .25); position: relative; overflow: hidden; }
.hx-open__cue i { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ae-gold); transform: translateY(-100%); animation: hx-drip 2.2s ease-in-out infinite; }
@keyframes hx-drip { to { transform: translateY(250%); } } /* transform, not top: no layout on every frame */

/* what stands on the film */
.hx-ui {
  position: absolute; left: clamp(22px, 4vw, 76px); bottom: clamp(24px, 6vh, 70px); z-index: 2;
  color: var(--ae-white); opacity: 0; pointer-events: none; max-width: min(760px, 70%);
}
.hx-ui.is-on { pointer-events: auto; }
.hx-ui__lines { display: grid; margin-bottom: 22px; }
.hx-ui__line {
  grid-area: 1 / 1; margin: 0; font-weight: 300; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.08;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hx-ui__line.is-on { opacity: 1; transform: none; }
.hx-count {
  position: absolute; right: clamp(22px, 4vw, 76px); bottom: clamp(30px, 6vh, 76px); z-index: 2; opacity: 0;
  display: flex; align-items: center; gap: 12px; color: var(--ae-white); font-size: 12px; font-weight: 700; letter-spacing: .12em;
}
.hx-count__bars { display: flex; gap: 6px; }
.hx-count__bars i { display: block; width: 46px; height: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hx-count__bars i::after { content: ''; position: absolute; inset: 0; background: var(--ae-gold); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

.hx-btn {
  display: inline-flex; align-items: center; padding: 16px 30px; border-radius: 999px; text-decoration: none;
  font: 600 14px/1 'Comfortaa', sans-serif; letter-spacing: .05em;
  background: var(--ae-gold); color: var(--ae-white); border: 1px solid var(--ae-gold); transition: background .25s, border-color .25s;
}
.hx-btn:hover { background: var(--ae-gold-d); border-color: var(--ae-gold-d); }

/* the shop comes up over the last part of the opening like a sheet */
.hx-after {
  position: relative; z-index: 3; background: var(--ae-white); margin-top: -18vh;
  border-radius: 36px 36px 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .10); padding-top: 10px;
  clip-path: inset(-120px 0 0 0); /* the shadow only falls upward onto the film, never down onto the footer (Kris 27.11) */
}

@media (max-width: 900px) {
  .hx-ui { left: 20px; right: 20px; bottom: 64px; max-width: none; }
  .hx-ui__line { font-size: clamp(28px, 8vw, 40px); }
  .hx-count { right: 20px; bottom: 26px; }
  .hx-count__bars i { width: 34px; }
  .hx-btn { padding: 14px 24px; font-size: 13px; }
  .hx-after { margin-top: -10vh; border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-pin { height: auto; }
  .hx-stage { position: relative; top: 0; }
  .hx-after { margin-top: 0; }
}

/* ================= the kept sections (markup unchanged, only motion on top) ================= */
.hv-sec { width: min(1360px, 90%); margin: 0 auto; padding: 70px 0 0; }
.hv-sec--weekly { padding-bottom: 40px; }
.ae-kept-title { font-family: 'Comfortaa', sans-serif; font-size: 30px; font-weight: 500; color: var(--ae-text); text-align: center; margin: 0 0 28px; line-height: 1.3; }

/* every animated element gets --p (0 hidden, 1 in place) from page.js while it scrolls into view */
[data-sa] { will-change: transform, opacity; }
[data-sa="rise"] { transform: translateY(calc((1 - var(--p, 1)) * 70px)); opacity: calc(.15 + var(--p, 1) * .85); }
[data-sa="box"] { transform: translateY(calc((1 - var(--p, 1)) * 110px)) scale(calc(.93 + var(--p, 1) * .07)); opacity: calc(.2 + var(--p, 1) * .8); }
[data-sa="card"] { transform: translateY(calc((1 - var(--p, 1)) * 90px)) rotate(calc((1 - var(--p, 1)) * 3deg)); opacity: var(--p, 1); }
[data-sa="left"] { transform: translateX(calc((1 - var(--p, 1)) * -60px)); opacity: var(--p, 1); }
[data-sa="right"] { transform: translateX(calc((1 - var(--p, 1)) * 90px)); opacity: var(--p, 1); }
[data-sa="tin"] { transform: rotate(calc((1 - var(--p, 1)) * -140deg)) scale(calc(.62 + var(--p, 1) * .38)); }
[data-sa="line"] { clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); }


@media (prefers-reduced-motion: reduce) {
  [data-sa] { transform: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* От Категории надолу (Kris 27.11: "redesign everything from categories downwards").
   Only the site's colours (gold #cbb162, text #3e3e3e, muted #616162, highlight #f3f3f5, lines #e5e5e8) and Comfortaa. */
.nx { position: relative; }
.nx p { padding: 0; } /* Divi gives every p a bottom padding */
.nx-kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ae-gold); }
.nx-h2 { margin: 0 0 18px; font-weight: 300; font-size: clamp(32px, 3vw, 54px); line-height: 1.1; color: var(--ae-text); letter-spacing: -.01em; }
.nx-link { font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--ae-text); text-decoration: none; border-bottom: 1px solid var(--ae-gold); padding-bottom: 3px; transition: color .25s; }
.nx-link:hover { color: var(--ae-gold); }
.nx-price { margin: 22px 0 20px; font-size: 14px; color: var(--ae-muted); }
.nx-price b { font-size: 28px; font-weight: 400; color: var(--ae-text); }

/* ================= Категории: eight slices, the chosen one opens ================= */
.nx-cats { width: min(1440px, 92%); margin: 0 auto; padding: 130px 0 0; }
.nx-head { margin: 0 0 30px; }
.nx-head .nx-h2 { margin: 0; }
.nx-slices { display: flex; gap: 10px; height: clamp(420px, 64vh, 640px); }
.nx-slice {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--ae-white); background: var(--ae-hl);
  transition: flex-grow .85s cubic-bezier(.65, 0, .25, 1);
}
.nx-slice.is-on { flex-grow: 6; }
.nx-slice img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.nx-slice.is-on img { transform: scale(1); }
.nx-slice::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .14) 46%, rgba(0, 0, 0, .06) 100%);
}
.nx-slice__n { position: absolute; z-index: 2; top: 18px; left: 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.nx-slice__name {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap; font-size: 18px; font-weight: 500; letter-spacing: .04em;
  transition: opacity .35s ease;
}
.nx-slice.is-on .nx-slice__name { opacity: 0; }
.nx-slice__more {
  position: absolute; z-index: 2; left: 34px; bottom: 32px; width: 440px; max-width: calc(100% - 68px);
  display: grid; justify-items: start; gap: 12px;
  opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease;
}
.nx-slice.is-on .nx-slice__more { opacity: 1; transform: none; transition: opacity .6s ease .35s, transform .7s cubic-bezier(.2, .7, .2, 1) .35s; }
.nx-slice__title { font-size: clamp(32px, 2.8vw, 52px); font-weight: 300; line-height: 1.05; }
.nx-slice__desc { font-size: 14px; line-height: 1.6; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-slice__go {
  margin-top: 4px; padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .75); backdrop-filter: blur(6px);
  transition: background .25s, color .25s;
}
.nx-slice:hover .nx-slice__go { background: var(--ae-white); color: var(--ae-text); }
.nx-slice:focus-visible { outline: 2px solid var(--ae-gold); outline-offset: 3px; }

/* ================= Три есетри: one stage, the species change by click (no scroll animation) ================= */
.nx-fish { margin-top: 130px; }
.nx-fish__stage {
  position: relative; height: clamp(560px, calc(100svh - var(--header-sticky-height, 123px)), 780px);
  overflow: hidden; background: var(--ae-white);
}
.nx-fish__kicker { position: absolute; top: clamp(20px, 5vh, 48px); left: 4vw; z-index: 3; }
.nx-fish__names span {
  position: absolute; left: 0; right: 0; top: 40%; text-align: center; white-space: nowrap; pointer-events: none;
  font-weight: 300; font-size: clamp(90px, 16vw, 320px); line-height: 1; letter-spacing: -.03em; color: var(--ae-gold);
  opacity: 0; transform: translateY(-50%) translateX(30px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.nx-fish__names span.is-on { opacity: 1; transform: translateY(-50%); }
.nx-fish__pearls img {
  position: absolute; left: 50%; top: 46%; width: min(80vh, 44vw, 660px); height: auto; aspect-ratio: 1;
  mix-blend-mode: multiply; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.94); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.nx-fish__pearls img.is-on { opacity: 1; transform: translate(-50%, -50%); }
.nx-fish__texts article {
  position: absolute; z-index: 3; left: 4vw; bottom: clamp(24px, 6vh, 60px); width: min(430px, 30vw);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s ease, transform .6s ease, visibility 0s linear .6s;
}
.nx-fish__texts article.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .15s, transform .7s ease .15s, visibility 0s; }
.nx-fish__h { margin: 0 0 12px; font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--ae-text); }
.nx-fish__h i { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ae-gold); }
.nx-fish__texts p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--ae-muted); }
.nx-fish__side { position: absolute; z-index: 3; right: 4vw; bottom: clamp(24px, 6vh, 60px); display: grid; justify-items: end; gap: 16px; }
.nx-fish__photos { position: relative; width: 220px; height: 170px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.nx-fish__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; opacity: 0; transition: opacity .6s ease; }
.nx-fish__photos img.is-on { opacity: 1; }
.nx-fish__nav { display: flex; gap: 6px; }
.nx-fish__nav button {
  all: unset; cursor: pointer; padding: 10px 16px; border-radius: 999px; font: 600 13px/1 'Comfortaa', sans-serif;
  color: var(--ae-muted); border: 1px solid #e5e5e8; transition: background .25s, color .25s, border-color .25s;
}
.nx-fish__nav button b { color: var(--ae-gold); margin-right: 4px; }
.nx-fish__nav button:hover { border-color: var(--ae-gold); color: var(--ae-text); }
.nx-fish__nav button.is-on { background: var(--ae-gold); border-color: var(--ae-gold); color: var(--ae-white); }
.nx-fish__nav button.is-on b { color: var(--ae-white); }
.nx-fish__nav button:focus-visible { outline: 2px solid var(--ae-gold); outline-offset: 2px; }

/* ================= Седеф: the spoon lies on the site's grey plate ================= */
.nx-sedef { width: min(1360px, 90%); margin: 0 auto; padding: 130px 0 0; }
.nx-sedef__card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 80px);
  background: var(--ae-hl); border-radius: 24px; padding: clamp(30px, 4vw, 64px); overflow: hidden;
}
.nx-sedef__pic { position: relative; height: clamp(280px, 30vw, 420px); }
.nx-sedef__pic img {
  position: absolute; left: 50%; top: 50%; height: 118%; width: auto;
  transform: translate(-50%, -50%) rotate(var(--rot, -60deg));
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .14));
}
.nx-sedef__txt { max-width: 520px; }
.nx-sedef__txt p:not(.nx-kicker):not(.nx-price) { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ae-muted); }

/* ================= За нас: calm, normal size ================= */
.nx-about {
  width: min(1360px, 90%); margin: 0 auto; padding: 130px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 90px);
}
.nx-about__txt { max-width: 560px; justify-self: end; }
.nx-about__txt p:not(.nx-kicker) { margin: 0 0 14px; font-size: 15px; line-height: 1.75; color: var(--ae-muted); }
.nx-about__ph { margin: 0; }
.nx-about__ph img { display: block; width: 100%; max-width: 620px; border-radius: 24px; }
.nx-btn-line {
  display: inline-flex; margin-top: 12px; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 600 13px/1 'Comfortaa', sans-serif; letter-spacing: .05em; color: var(--ae-gold); border: 1px solid var(--ae-gold);
  transition: background .25s, color .25s;
}
.nx-btn-line:hover { background: var(--ae-gold); color: var(--ae-white); }

/* ================= Въпроси ================= */
.nx-faq {
  width: min(1360px, 90%); margin: 0 auto; padding: 160px 0 120px;
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: clamp(30px, 6vw, 110px); align-items: start;
}
.nx-faq__side { position: sticky; top: calc(var(--header-sticky-height, 123px) + 40px); }
.nx-faq__side p:not(.nx-kicker) { margin: 0 0 12px; font-size: 15px; color: var(--ae-muted); }
.nx-faq__call { margin-top: 26px !important; }
.nx-faq__call a { color: var(--ae-text); text-decoration: none; border-bottom: 1px solid var(--ae-gold); font-weight: 600; white-space: nowrap; }
.nx-q { border-top: 1px solid #e5e5e8; }
.nx-q:last-child { border-bottom: 1px solid #e5e5e8; }
.nx-q__s {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 58px 1fr 26px; align-items: center; padding: 26px 0;
}
.nx-q__s:focus-visible { outline: 2px solid var(--ae-gold); outline-offset: 4px; }
.nx-q__n { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--ae-gold); }
.nx-q__t { font-size: clamp(17px, 1.3vw, 21px); font-weight: 400; color: var(--ae-text); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.nx-q__s:hover .nx-q__t { transform: translateX(6px); }
.nx-q__x { position: relative; width: 18px; height: 18px; justify-self: end; }
.nx-q__x::before, .nx-q__x::after { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--ae-gold); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.nx-q__x::after { transform: rotate(90deg); }
.nx-q.is-open .nx-q__x::after { transform: rotate(0deg); }
.nx-q.is-open .nx-q__x::before { transform: rotate(180deg); }
.nx-q__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2, .7, .2, 1); }
.nx-q.is-open .nx-q__a { grid-template-rows: 1fr; }
.nx-q__in { overflow: hidden; padding-left: 58px; font-size: 14px; line-height: 1.7; color: var(--ae-muted); }
.nx-q__in > :last-child { margin-bottom: 28px; }
.nx-q__in p { padding: 0; margin: 0 0 10px; }
.nx-q__in ul { margin: 0 0 10px; padding-left: 18px; }
.nx-q__in .highlight-box { background: var(--ae-hl); border: 0; border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.nx-q__in a { color: var(--ae-text); text-decoration-color: var(--ae-gold); }

/* ================= tablets and phones ================= */
@media (max-width: 900px) {
  .nx-cats { padding-top: 90px; }
  .nx-slices { flex-direction: column; height: auto; gap: 8px; }
  .nx-slice { flex: none; height: 76px; border-radius: 18px; transition: height .7s cubic-bezier(.65, 0, .25, 1); }
  .nx-slice.is-on { height: 330px; }
  .nx-slice__name { writing-mode: horizontal-tb; transform: translateY(50%); left: 20px; bottom: 50%; font-size: 17px; }
  .nx-slice__n { top: 50%; left: auto; right: 20px; transform: translateY(-50%); }
  .nx-slice.is-on .nx-slice__n { top: 18px; transform: none; }
  .nx-slice__more { left: 20px; bottom: 22px; width: auto; max-width: calc(100% - 40px); }
  .nx-slice__title { font-size: 32px; }

  .nx-fish { margin-top: 90px; }
  .nx-fish__stage { height: 760px; }
  .nx-fish__names span { top: 30%; font-size: 19vw; }
  .nx-fish__pearls img { top: 34%; width: 84vw; }
  .nx-fish__texts article { left: 5vw; right: 5vw; width: auto; bottom: 64px; }
  .nx-fish__h { font-size: 20px; }
  .nx-fish__texts p { font-size: 13px; margin-bottom: 12px; }
  .nx-fish__side { left: 5vw; right: 5vw; bottom: 22px; justify-items: start; }
  .nx-fish__nav button { padding: 9px 12px; font-size: 12px; }
  .nx-fish__photos { display: none; }

  .nx-sedef { padding-top: 90px; }
  .nx-sedef__card { grid-template-columns: 1fr; padding: 26px 22px 30px; }
  .nx-sedef__pic { height: 220px; }

  .nx-about { padding-top: 90px; grid-template-columns: 1fr; }
  .nx-about__txt { justify-self: start; }
  .nx-about__ph { order: -1; }
  .nx-faq { grid-template-columns: 1fr; padding-top: 100px; }
  .nx-faq__side { position: static; }
  .nx-q__s { grid-template-columns: 42px 1fr 22px; padding: 20px 0; }
  .nx-q__in { padding-left: 42px; }
}
@media (prefers-reduced-motion: reduce) {
}
