/* =============================================================
   TOLKUN — style.css
   Единый файл. Заменяет старые style.css, catalog-frame-fix.css
   и tolkun-ui.css. Подключается один:

   <link rel="stylesheet" href="style.css">

   1. Шрифт и токены
   2. База
   3. Загрузочный экран и прогресс прокрутки
   4. Шапка
   5. Герой
   6. Каталог напитков
   7. Durmuşyň içinde
   8. Biz barada
   9. Habarlaşmak
  10. Футер
  11. Появление блоков
  12. Адаптив
   ============================================================= */

/* =============================================================
   1. ШРИФТ И ТОКЕНЫ
   ============================================================= */

/* Один файл на все начертания: браузер рисует жирность сам.
   Если добавишь Montserrat-SemiBold / Bold / Black отдельными
   файлами и опишешь их через font-weight — заголовки станут
   заметно чище. */
@font-face {
  font-family: "Tolkun Sans";
  src: url("assets/fonts/Montserrat.ttf") format("truetype");
  font-display: swap;
}

:root {
  --blue: #0753b8;
  --blue-dark: #03459f;
  --blue-deep: #012a66;
  --cyan: #27cdd3;
  --yellow: #ffeb68;
  --white: #fffef7;
  --ink: #06499f;

  --page: clamp(22px, 5vw, 96px);
  --header-height: 104px;
  --header-compact: 72px;
  --footer-arch: clamp(34px, 5vw, 66px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. БАЗА
   ============================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Якорь не уезжает под фиксированную шапку */
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--blue);
  font-family: "Tolkun Sans", Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--blue);
  background: var(--yellow);
}

main > section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

/* =============================================================
   3. ЗАГРУЗОЧНЫЙ ЭКРАН И ПРОГРЕСС
   ============================================================= */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none; /* поставь grid, если хочешь показывать заставку */
  place-content: center;
  gap: 22px;
  color: var(--yellow);
  background: var(--blue);
  transition: transform 0.9s var(--ease), visibility 0.9s;
}

.loading-screen span {
  font-size: clamp(60px, 11vw, 170px);
  font-weight: 900;
  letter-spacing: -0.075em;
}

.loading-screen i {
  width: min(340px, 65vw);
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.loading-screen i::after {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  content: "";
  animation: loading-line 1s var(--ease) both;
}

.loading-screen.is-hidden {
  visibility: hidden;
  transform: translateY(-105%);
}

@keyframes loading-line {
  from { transform: translateX(-101%); }
  to { transform: translateX(0); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(90deg, var(--yellow), #fff7b0 55%, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* =============================================================
   4. ШАПКА
   ============================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page);
  color: var(--white);
  background: transparent;
  /* ВАЖНО: без will-change/transform на .site-header — иначе он
     становится containing block для .main-nav (position: fixed
     внутри position: fixed), и мобильное меню на весь экран
     (inset: 0) считает "экран" от размеров шапки, а не вьюпорта,
     и схлопывается в маленькую коробку вместо full-screen оверлея */
  transition:
    height 0.4s var(--ease),
    transform 0.5s var(--ease);
}

/* Стеклянная плашка отдельным слоем — над героем шапка чистая */
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px max(12px, calc(var(--page) - 22px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 83, 184, 0.74), rgba(3, 58, 132, 0.64));
  box-shadow:
    0 18px 40px rgba(0, 28, 76, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  opacity: 0;
  transform: translateY(-10px) scaleY(0.8);
  transform-origin: top;
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  height: var(--header-compact);
}

.site-header.is-scrolled::before {
  opacity: 1;
  transform: none;
}

/* Шапка прячется при прокрутке вниз, возвращается при прокрутке вверх */
.site-header.is-hidden {
  transform: translateY(calc(-100% - 20px));
}

body.menu-open .site-header {
  transform: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: clamp(150px, 13vw, 235px);
  transition: transform 0.4s var(--ease);
}

.brand img {
  width: 100%;
  height: auto;
}

.brand:hover {
  transform: scale(1.03);
}

/* Меню */

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(30px, 3vw, 58px);
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.86;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
  color: var(--yellow);
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Языки — сегментированная «таблетка» */

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.lang-button {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s ease, background 0.35s var(--ease);
}

.lang-button:hover {
  color: var(--yellow);
}

.lang-button.is-active {
  color: var(--blue);
  background: var(--yellow);
  box-shadow: 0 4px 12px rgba(0, 24, 68, 0.22);
}

/* Кнопка меню */

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.3s ease;
}

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

body.menu-open .menu-button {
  border-color: rgba(255, 255, 255, 0.55);
}

body.menu-open .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Видимый фокус с клавиатуры */

.brand:focus-visible,
.main-nav a:focus-visible,
.lang-button:focus-visible,
.menu-button:focus-visible,
.footer-top:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 8px;
}

/* =============================================================
   5. ГЕРОЙ
   ============================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: var(--blue);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scroll-cue {
  position: absolute;
  right: var(--page);
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.scroll-cue i {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.scroll-cue i::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 11px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

body.is-past-hero .scroll-cue {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* =============================================================
   6. КАТАЛОГ НАПИТКОВ
   -------------------------------------------------------------
   В спрайтах flavor-panels*.png по четыре арки в ряд.
   Единственный размер фона, при котором
   background-position-x: 0 / 33.333 / 66.667 / 100%
   попадает ровно в сектор, — это 400% × 100%.
   Любое другое значение (440%, 112%) затаскивает в кадр кусок
   соседней арки. Скруглять контейнер тоже нельзя: арка уже
   вырезана в самом PNG, вторая маска поверх режет углы.
   ============================================================= */

.flavor-catalog {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding:
    clamp(54px, 6vw, 92px)
    clamp(24px, 3vw, 58px)
    clamp(76px, 8vw, 128px);
  background-color: #2bcbd8;
  /* если файла v2 нет — поставь catalog-background.png */
  background-image: url("assets/scenes/catalog-background-v2.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  /* fixed не работает в iOS Safari и даёт рывки при прокрутке */
  background-attachment: scroll;
}

.flavor-catalog__title {
  position: relative;
  z-index: 5;
  max-width: 850px;
  margin: 0 0 clamp(44px, 4.5vw, 72px);
  color: var(--blue);
  font-size: clamp(62px, 7vw, 138px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  pointer-events: none;
}

.flavor-catalog__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  width: 100%;
  column-gap: clamp(16px, 1.35vw, 28px);
  row-gap: clamp(50px, 4.5vw, 80px);
}

.catalog-card {
  --x: 0px;
  --y: 0px;
  --rotate: 0deg;
  --bottle-shift-x: 0%;
  --bottle-bottom: -5%;
  --bottle-size: 1;
  --bottle-hover: 1.035;
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.catalog-card__background {
  /* толщина срезаемой технической кромки PNG — теперь в % от размера
     карточки (масштабируется на любом экране), плюс форма обрезки
     повторяет саму арку (round), а не просто прямоугольник — иначе
     серо-белая окантовка на изогнутой части (купол сверху, скругления
     снизу) никуда не девается, только на ровных боках. */
  --seam-x: 1.6%;
  --seam-top: 1.6%;
  --seam-bottom: 2.4%;
  --arch-radius: 50% 50% 14px 14px / 32% 32% 14px 14px;

  position: relative;
  width: 100%;
  aspect-ratio: 0.67;
  overflow: hidden;
  border: 0;
  border-radius: var(--arch-radius);
  box-shadow: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position-y: center;
  background-size: 400% 100%;
  /* обрезка теперь идёт по контуру арки, а не прямым прямоугольником */
  clip-path: inset(
    var(--seam-top) var(--seam-x) var(--seam-bottom) var(--seam-x)
    round var(--arch-radius)
  );
  transform: translateZ(0);
  transform-origin: center bottom;
  transition: filter 0.4s ease;
}

.catalog-card__bottle {
  position: absolute;
  bottom: var(--bottle-bottom);
  left: 50%;
  z-index: 3;
  display: block;
  width: auto;
  height: 120%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 15px rgba(0, 57, 105, 0.22));
  opacity: 0;
  transform:
    translateX(-50%)
    translateX(var(--bottle-shift-x))
    scale(var(--bottle-size));
  transform-origin: center bottom;
  transition: transform 0.45s var(--ease), filter 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* Пока картинка бутылки не догрузилась — она невидима (opacity: 0),
   класс is-loaded ставит script.js по событию load/complete.
   Так бутылка плавно проявляется ровно в момент готовности,
   а не выскакивает рывком, если сеть подтормозила. */
.catalog-card__bottle.is-loaded {
  opacity: 1;
}

/* Подписи одинаковой высоты — длинные названия не сдвигают ряд */
.catalog-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 2.4em;
  margin: 14px 0 0;
  color: var(--blue);
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

/* --- Выделение ------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {
  .catalog-card:hover {
    z-index: 4;
  }

  .catalog-card:hover .catalog-card__background {
    filter: brightness(1.025) saturate(1.045);
  }

  .catalog-card:hover .catalog-card__bottle {
    filter: drop-shadow(0 22px 17px rgba(0, 48, 100, 0.27));
    transform:
      translateX(-50%)
      translateX(var(--bottle-shift-x))
      translate(var(--x), var(--y))
      translateY(-2px)
      rotate(var(--rotate))
      scale(var(--bottle-hover));
  }
}

.catalog-card.is-active .catalog-card__background,
.catalog-card:focus-visible .catalog-card__background {
  filter: brightness(1.025) saturate(1.045);
}

.catalog-card.is-active .catalog-card__bottle,
.catalog-card:focus-visible .catalog-card__bottle {
  transform:
    translateX(-50%)
    translateX(var(--bottle-shift-x))
    translateY(-2px)
    scale(var(--bottle-hover));
}

.catalog-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 8px;
  border-radius: 16px;
}

/* --- Положение бутылок ---------------------------------------- */

.catalog-card--limon             { --bottle-shift-x: 4.5%;  --bottle-bottom: -4%;   --bottle-size: 0.84; --bottle-hover: 0.87; }
.catalog-card--tutti             { --bottle-shift-x: 2.1%;  --bottle-bottom: 2%;    --bottle-size: 0.76; --bottle-hover: 0.79; }
.catalog-card--mango             { --bottle-shift-x: 1.6%;  --bottle-bottom: 3%;    --bottle-size: 0.70; --bottle-hover: 0.73; }
.catalog-card--mohito            { --bottle-shift-x: 2.5%;  --bottle-bottom: 2%;    --bottle-size: 0.79; --bottle-hover: 0.82; }

.catalog-card--limonad           { --bottle-shift-x: 1.5%;  --bottle-bottom: 3%;    --bottle-size: 0.73; --bottle-hover: 0.76; }
.catalog-card--saray             { --bottle-shift-x: -0.3%; --bottle-bottom: 4%;    --bottle-size: 0.70; --bottle-hover: 0.73; }
.catalog-card--tarhun            { --bottle-shift-x: -0.2%; --bottle-bottom: 3%;    --bottle-size: 0.75; --bottle-hover: 0.78; }
.catalog-card--kola              { --bottle-shift-x: -0.1%; --bottle-bottom: 2%;    --bottle-size: 0.76; --bottle-hover: 0.79; }

.catalog-card--buratino          {                          --bottle-bottom: 7%;    --bottle-size: 0.62; --bottle-hover: 0.65; }
.catalog-card--pyrtykal          {                          --bottle-bottom: 3%;    --bottle-size: 0.74; --bottle-hover: 0.77; }
.catalog-card--strawberry-cream  { --bottle-shift-x: -1.4%; --bottle-bottom: 4%;    --bottle-size: 0.76; --bottle-hover: 0.79; }
.catalog-card--tarhun-05         { --bottle-shift-x: 5.5%;  --bottle-bottom: 0;     --bottle-size: 0.76; --bottle-hover: 0.79; }

.catalog-card--limonad-05        { --bottle-shift-x: 2%;    --bottle-bottom: 9%;    --bottle-size: 0.72; --bottle-hover: 0.75; }
.catalog-card--pyrtykal-05       { --bottle-shift-x: 1.5%;  --bottle-bottom: 11%;   --bottle-size: 0.68; --bottle-hover: 0.71; }
.catalog-card--kola-05           {                          --bottle-bottom: 7%;    --bottle-size: 0.70; --bottle-hover: 0.73; }
.catalog-card--saray-05          {                          --bottle-bottom: 8%;    --bottle-size: 0.75; --bottle-hover: 0.78; }

.catalog-card--kumus             {                          --bottle-bottom: 5%;    --bottle-size: 0.80; --bottle-hover: 0.83; }
.catalog-card--kumus-05          {                          --bottle-bottom: 5%;    --bottle-size: 0.80; --bottle-hover: 0.83; }
.catalog-card--kumus-03          {                          --bottle-bottom: 5%;    --bottle-size: 0.80; --bottle-hover: 0.83; }
.catalog-card--mineral-water     {                          --bottle-bottom: -4%;   --bottle-size: 0.91; --bottle-hover: 0.94; }
.catalog-card--nar               {                          --bottle-bottom: -16%;  --bottle-size: 1.20; --bottle-hover: 1.23; }
.catalog-card--setdaly           {                          --bottle-bottom: 0%;    --bottle-size: 0.83; --bottle-hover: 0.86; }

.catalog-card--kumus-garpuz,
.catalog-card--kumus-tutti,
.catalog-card--kumus-tropiki,
.catalog-card--kumus-limon       { --bottle-shift-x: 2%;    --bottle-bottom: 0%;    --bottle-size: 0.78; --bottle-hover: 0.81; }

.catalog-card--yer-garpuz        { --bottle-shift-x: 1.5%;  --bottle-bottom: -2%;   --bottle-size: 0.87; --bottle-hover: 0.90; }
.catalog-card--mohito-yertudana  { --bottle-shift-x: 3%;    --bottle-bottom: -2%;   --bottle-size: 0.94; --bottle-hover: 0.97; }
.catalog-card--tropic-fruits-05  { --bottle-shift-x: 3%;    --bottle-bottom: -3%;   --bottle-size: 0.98; --bottle-hover: 1.01; }
.catalog-card--nar-05            { --bottle-shift-x: -1%;   --bottle-bottom: -1%;   --bottle-size: 0.86; --bottle-hover: 0.89; }

.catalog-card--tuweley           {                          --bottle-bottom: -4.5%; --bottle-size: 0.87; --bottle-hover: 0.89; }
.catalog-card--tolkun-zirk       {                          --bottle-bottom: -9.5%; --bottle-size: 1.04; --bottle-hover: 1.06; }
.catalog-card--gold-zirk         { --bottle-shift-x: 1.5%;  --bottle-bottom: 0.5%;  --bottle-size: 0.86; --bottle-hover: 0.88; }

.catalog-card--bizon             { --bottle-shift-x: -1.5%; --bottle-bottom: -7%;   --bottle-size: 1.03; --bottle-hover: 1.05; }

/* --- Спрайты арок --------------------------------------------- */

/* flavor-panels.png */
.catalog-card--limon .catalog-card__background,
.catalog-card--tutti .catalog-card__background,
.catalog-card--mango .catalog-card__background,
.catalog-card--mohito .catalog-card__background,
.catalog-card--buratino .catalog-card__background,
.catalog-card--pyrtykal .catalog-card__background,
.catalog-card--strawberry-cream .catalog-card__background,
.catalog-card--tarhun-05 .catalog-card__background,
.catalog-card--pyrtykal-05 .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels.png");
}

/* flavor-panels-02.png */
.catalog-card--limonad .catalog-card__background,
.catalog-card--saray .catalog-card__background,
.catalog-card--tarhun .catalog-card__background,
.catalog-card--kola .catalog-card__background,
.catalog-card--limonad-05 .catalog-card__background,
.catalog-card--kola-05 .catalog-card__background,
.catalog-card--saray-05 .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels-02.png");
}

/* flavor-panels-05.png */
.catalog-card--kumus .catalog-card__background,
.catalog-card--kumus-05 .catalog-card__background,
.catalog-card--kumus-03 .catalog-card__background,
.catalog-card--mineral-water .catalog-card__background,
.catalog-card--nar .catalog-card__background,
.catalog-card--setdaly .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels-05.png");
}

/* flavor-panels-06.png */
.catalog-card--kumus-garpuz .catalog-card__background,
.catalog-card--kumus-tutti .catalog-card__background,
.catalog-card--kumus-tropiki .catalog-card__background,
.catalog-card--kumus-limon .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels-06.png");
}

/* flavor-panels-07.png */
.catalog-card--yer-garpuz .catalog-card__background,
.catalog-card--mohito-yertudana .catalog-card__background,
.catalog-card--tropic-fruits-05 .catalog-card__background,
.catalog-card--nar-05 .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels-07.png");
}

/* flavor-panels-08.png */
.catalog-card--tuweley .catalog-card__background,
.catalog-card--tolkun-zirk .catalog-card__background,
.catalog-card--gold-zirk .catalog-card__background {
  background-image: url("assets/scenes/flavor-panels-08.png");
}

/* Bizon — отдельная картинка, а не спрайт из четырёх */
.catalog-card--bizon .catalog-card__background {
  background-image: url("assets/scenes/bizon-platinum-arch.png");
  background-size: 100% 100%;
  background-position: center center;
}

/* --- Какой сектор спрайта показывать -------------------------- */

.catalog-card--limon .catalog-card__background,
.catalog-card--limonad .catalog-card__background,
.catalog-card--buratino .catalog-card__background,
.catalog-card--limonad-05 .catalog-card__background,
.catalog-card--kumus .catalog-card__background,
.catalog-card--kumus-05 .catalog-card__background,
.catalog-card--kumus-03 .catalog-card__background,
.catalog-card--kumus-garpuz .catalog-card__background,
.catalog-card--yer-garpuz .catalog-card__background {
  background-position-x: 0%;
}

.catalog-card--tutti .catalog-card__background,
.catalog-card--saray .catalog-card__background,
.catalog-card--strawberry-cream .catalog-card__background,
.catalog-card--saray-05 .catalog-card__background,
.catalog-card--mineral-water .catalog-card__background,
.catalog-card--kumus-tutti .catalog-card__background,
.catalog-card--mohito-yertudana .catalog-card__background,
.catalog-card--tuweley .catalog-card__background {
  background-position-x: 33.333%;
}

.catalog-card--mango .catalog-card__background,
.catalog-card--tarhun .catalog-card__background,
.catalog-card--pyrtykal .catalog-card__background,
.catalog-card--pyrtykal-05 .catalog-card__background,
.catalog-card--nar .catalog-card__background,
.catalog-card--kumus-tropiki .catalog-card__background,
.catalog-card--tropic-fruits-05 .catalog-card__background,
.catalog-card--tolkun-zirk .catalog-card__background {
  background-position-x: 66.667%;
}

.catalog-card--mohito .catalog-card__background,
.catalog-card--kola .catalog-card__background,
.catalog-card--tarhun-05 .catalog-card__background,
.catalog-card--kola-05 .catalog-card__background,
.catalog-card--setdaly .catalog-card__background,
.catalog-card--kumus-limon .catalog-card__background,
.catalog-card--nar-05 .catalog-card__background,
.catalog-card--gold-zirk .catalog-card__background {
  background-position-x: 100%;
}

/* =============================================================
   7. DURMUŞYŇ IÇINDE
   ============================================================= */

.section {
  position: relative;
  padding: clamp(85px, 10vw, 160px) var(--page);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(65px, 8vw, 145px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  /* подстраховка: если где-то встретится ещё одно длинное слово
     без пробелов, пусть лучше перенесётся, чем распирает колонку */
  overflow-wrap: break-word;
}

.life {
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 35%),
    linear-gradient(180deg, #20d3d5, #18c4cc);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(32px, 4vw, 50px);
}

/* aspect-ratio здесь один, без max-height/height рядом с ним.
   Именно сочетание aspect-ratio + max-height в прошлый раз
   схлопывало карточку: когда высота упирается в потолок,
   браузер ужимает вместе с ней и ширину, чтобы сохранить
   пропорцию, — карточка не растягивается на колонку.
   Без второго ограничения по высоте всё просто: ширина = ширина
   колонки (stretch по умолчанию), высота = ширина / 3:4. */

.life-card {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(22px, 2vw, 34px);
  background: rgba(255, 255, 255, 0.15);
}

.life-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 80, 160, 0.18));
  content: "";
  pointer-events: none;
}

.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.life-card:hover img {
  transform: scale(1.04);
}

/* =============================================================
   8. BIZ BARADA
   ============================================================= */

.about {
  display: grid;
  justify-items: center;
  color: var(--yellow);
  background:
    linear-gradient(180deg, #19c8cf 0%, #0758b7 8%, #0753b8 90%, #23cbd2 100%);
}

.about-word {
  display: none;
}

.about-intro,
.about-details,
.about-future,
.about-film,
.factory-gallery {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
}

.about-intro h2 {
  max-width: 950px;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 0.98;
}

.about-intro__lead {
  max-width: 820px;
  margin: 38px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 600;
  line-height: 1.62;
}

.about-details {
  margin-top: clamp(60px, 8vw, 112px);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.about-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 6vw, 90px);
  min-width: 0;
  padding: clamp(32px, 4vw, 58px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.about-detail h3 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(23px, 2.35vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.about-detail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.17vw, 19px);
  line-height: 1.8;
}

.about-future {
  padding-top: clamp(40px, 5vw, 70px);
}

.about-future p {
  max-width: 820px;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.17vw, 19px);
  line-height: 1.8;
}

.about-future strong {
  display: block;
  max-width: 850px;
  padding-left: 24px;
  border-left: 4px solid var(--yellow);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.about-film {
  margin-top: clamp(60px, 8vw, 112px);
}

.about-film__heading h3 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -0.05em;
}

.about-film__switch {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.about-film__switch button {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.about-film__switch button:hover,
.about-film__switch button.is-active {
  border-color: var(--yellow);
  color: var(--blue-deep);
  background: var(--yellow);
}

.about-film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(22px, 2.5vw, 36px);
  background: var(--blue-deep);
  box-shadow: 0 28px 70px rgba(1, 34, 83, 0.24);
}

.about-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--blue-deep);
}

.about-film__poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 25px);
  width: 100%;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(39, 205, 211, 0.65), transparent 42%),
    radial-gradient(circle at 15% 90%, rgba(39, 205, 211, 0.35), transparent 38%),
    linear-gradient(140deg, #0870c8, #03418d 70%);
  cursor: pointer;
}

.about-film__poster::before {
  position: absolute;
  inset: 10% 15%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg) scaleX(1.5);
  pointer-events: none;
}

.about-film__brand {
  font-size: clamp(24px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.07em;
}

.about-film__play {
  display: grid;
  place-items: center;
  width: clamp(58px, 7vw, 100px);
  aspect-ratio: 1;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-size: clamp(19px, 2vw, 29px);
  box-shadow: 0 12px 42px rgba(0, 32, 77, 0.28);
  transition: transform 0.25s var(--ease);
}

.about-film__poster:hover .about-film__play,
.about-film__poster:focus-visible .about-film__play {
  transform: scale(1.08);
}

.about-film__watch {
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-film.is-playing .about-film__poster {
  display: none;
}

.about-film__error {
  margin: 15px 0 0;
  color: var(--white);
  font-size: 15px;
}

.about-film__error[hidden] {
  display: none;
}

.factory-gallery {
  margin-top: clamp(70px, 9vw, 130px);
}

.factory-gallery__heading h3 {
  max-width: 900px;
  margin: 0 0 clamp(30px, 4vw, 48px);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.factory-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}

.factory-gallery__grid a {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: clamp(14px, 1.8vw, 25px);
  background: rgba(255, 255, 255, 0.12);
}

.factory-gallery__grid a::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--yellow);
  content: "↗";
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.factory-gallery__grid a:hover::after,
.factory-gallery__grid a:focus-visible::after {
  opacity: 1;
  transform: none;
}

.factory-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.factory-gallery__grid a:hover img {
  transform: scale(1.045);
}

.factory-gallery__more {
  margin-top: 24px;
}

.factory-gallery__more summary {
  display: table;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.factory-gallery__more summary::-webkit-details-marker {
  display: none;
}

.factory-gallery__more summary::after {
  margin-left: 14px;
  content: "+";
  font-size: 20px;
  line-height: 0;
  vertical-align: -2px;
}

.factory-gallery__more[open] summary::after {
  content: "−";
}

.factory-gallery__more summary:hover,
.factory-gallery__more summary:focus-visible {
  border-color: var(--yellow);
  color: var(--blue-deep);
  background: var(--yellow);
}

.factory-gallery__grid--more {
  margin-top: 24px;
}

.factory-gallery + .about-future {
  padding-top: clamp(55px, 7vw, 95px);
}

.contact-copy > p:last-child {
  max-width: 62ch;
  margin: 35px 0 0;
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 550;
  line-height: 1.65;
}

/* =============================================================
   9. HABARLAŞMAK
   ============================================================= */

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: clamp(40px, 5vw, 70px);
  color: var(--blue);
  background: linear-gradient(180deg, #23cbd2 0%, var(--cyan) 62%, #21c4cc 100%);
}

/* Без min-width: 0 колонка с длинным словом без пробелов
   (напр. туркменское "HABARLAŞALYŇ.") растягивается по своему
   min-content и отжимает вторую колонку (карту) — она перестаёт
   слушаться grid-template-columns. min-width: 0 заставляет обе
   колонки честно делить ширину по fr, независимо от длины слова. */

.contact-copy,
.contact-aside {
  min-width: 0;
}

/* Заголовок в контактах — меньше общего .section-heading/.about h2,
   чтобы даже самое длинное слово (туркменское "HABARLAŞYŇ.")
   гарантированно влезало в одну строку и не отжимало карту справа. */

.contact h2 {
  font-size: clamp(48px, 6vw, 100px);
}

/* Немного воздуха между строк в заголовке блока "Biz barada" —
   общий line-height: 0.82 слишком плотный именно для этого текста */
.about h2 {
  line-height: 0.95;
}

/* Адрес, email, телефон — список с иконками слева */

.contact-list {
  display: grid;
  gap: 4px;
  max-width: 440px;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 6px;
}

.contact-list__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--blue);
}

.contact-list__icon svg {
  width: 19px;
  height: 19px;
}

.contact-list__text {
  color: var(--blue);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  transition: color 0.3s ease;
}

a.contact-list__text:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* WhatsApp — отдельный акцентный блок под списком */

.contact-whatsapp {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 440px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(6, 66, 143, 0.18);
}

.contact-whatsapp__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(6, 66, 143, 0.55);
}

.contact-whatsapp__value {
  color: var(--blue);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.contact-whatsapp__value:hover {
  color: var(--blue-dark);
}

/* Карта и соцсети — справа, друг над другом */

.contact-aside {
  display: grid;
  gap: clamp(16px, 1.8vw, 22px);
}

.contact-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 2px solid var(--blue);
  border-radius: 26px;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* лёгкая десатурация — карта не спорит с бирюзой фона */
  filter: saturate(0.85) contrast(0.96);
}

/* Плашка поверх карты — имя и адрес, как всплывающая карточка места */

.contact-map__card {
  position: absolute;
  top: clamp(12px, 1.6vw, 20px);
  left: clamp(12px, 1.6vw, 20px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 2 * clamp(12px, 1.6vw, 20px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 254, 247, 0.94);
  box-shadow: 0 14px 30px rgba(2, 40, 90, 0.22);
  backdrop-filter: blur(6px);
}

.contact-map__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--blue);
}

.contact-map__info strong {
  font-size: 15px;
  font-weight: 800;
}

.contact-map__info span {
  overflow: hidden;
  color: rgba(6, 66, 143, 0.68);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-map__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.contact-map__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(7, 83, 184, 0.1);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.contact-map__btn svg {
  width: 15px;
  height: 15px;
}

.contact-map__btn:hover {
  background: rgba(7, 83, 184, 0.2);
  transform: translateY(-2px);
}

.contact-map__btn--accent {
  color: var(--white);
  background: var(--blue);
}

.contact-map__btn--accent:hover {
  background: var(--blue-dark);
}

.social-links {
  display: grid;
  gap: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 28px;
  border: 2px solid var(--blue);
  border-radius: 22px;
  font-size: 19px;
  font-weight: 800;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.social-links a:hover {
  color: var(--yellow);
  background: var(--blue);
  transform: translateY(-5px);
}

.social-links i {
  font-size: 28px;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.social-links a:hover i {
  transform: translate(4px, -4px);
}

/* =============================================================
   10. ФУТЕР
   ============================================================= */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--footer-arch) + clamp(62px, 7vw, 104px)) var(--page) 32px;
  color: var(--white);
  background:
    radial-gradient(85% 55% at 10% 0%, rgba(39, 205, 211, 0.16), transparent 62%),
    radial-gradient(70% 50% at 92% 18%, rgba(255, 235, 104, 0.07), transparent 60%),
    linear-gradient(180deg, var(--blue-dark) 0%, #023a86 46%, var(--blue-deep) 100%);
}

/* Арочная кромка — тот же мотив, что у карточек каталога */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  z-index: 2;
  height: var(--footer-arch);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='64'%20viewBox='0%200%20120%2064'%3E%3Crect%20width='120'%20height='64'%20fill='%2321c4cc'/%3E%3Cpath%20d='M0%2064V30C0%208%2024%202%2060%202s60%206%2060%2028v34z'%20fill='%2303459f'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 100%;
  pointer-events: none;
}

/* Водяной знак — как .about-word, чтобы язык дизайна был один */
.site-footer::after {
  content: "TOLKUN";
  position: absolute;
  bottom: -0.3em;
  left: 50%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(150px, 26vw, 460px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.085em;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(30px, 3.5vw, 62px);
  max-width: 1440px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: clamp(150px, 13vw, 208px);
  height: auto;
}

.footer-brand p {
  max-width: 16ch;
  margin: 22px 0 0;
  color: var(--yellow);
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-column a {
  position: relative;
  padding-bottom: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-column a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--yellow);
}

.footer-column a:hover::after,
.footer-column a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-column .phone {
  margin: 2px 0 4px;
  color: var(--yellow);
  font-size: clamp(25px, 2.2vw, 33px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.footer-column .phone::after {
  display: none;
}

.footer-column .phone:hover {
  color: var(--white);
}

.footer-hours {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s var(--ease);
}

.footer-socials a::after {
  display: none;
}

.footer-socials a:hover {
  color: var(--blue);
  border-color: var(--yellow);
  background: var(--yellow);
  transform: translateY(-3px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1440px;
  margin: clamp(46px, 5vw, 74px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.footer-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.footer-top:hover {
  color: var(--blue);
  border-color: var(--yellow);
  background: var(--yellow);
}

.footer-top:hover svg {
  transform: translateY(-3px);
}

/* =============================================================
   11. ПОЯВЛЕНИЕ БЛОКОВ
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Карточки каталога — отдельная, более "живая" анимация появления:
   лёгкий подъём + масштаб, и ступенчатая задержка по позиции в ряду
   (сетка — 4 колонки), чтобы каждая четвёрка выезжала по очереди,
   а не выскакивала разом/рывком после подгрузки картинок бутылок */
.catalog-card.reveal {
  transform: translateY(46px) scale(0.94);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.catalog-card.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.flavor-catalog__grid .catalog-card:nth-child(4n + 1) {
  transition-delay: 0s;
}

.flavor-catalog__grid .catalog-card:nth-child(4n + 2) {
  transition-delay: 0.1s;
}

.flavor-catalog__grid .catalog-card:nth-child(4n + 3) {
  transition-delay: 0.2s;
}

.flavor-catalog__grid .catalog-card:nth-child(4n) {
  transition-delay: 0.3s;
}

/* =============================================================
   12. АДАПТИВ
   ============================================================= */

@media (max-width: 1080px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    row-gap: 46px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .flavor-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 54px;
  }

}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --header-compact: 66px;
    --page: 20px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header::before {
    inset: 8px max(10px, calc(var(--page) - 8px));
    border-radius: 20px;
  }

  .brand {
    width: 145px;
  }

  .menu-button {
    display: block;
  }

  /* Полноэкранное меню */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 120px 26px 60px;
    background: linear-gradient(180deg, #0753b8, #033a86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .main-nav::after {
    position: absolute;
    bottom: -14%;
    left: 50%;
    z-index: -1;
    width: 130%;
    aspect-ratio: 1.55;
    border-radius: 50% 50% 0 0 / 62% 62% 0 0;
    background: radial-gradient(circle at 50% 100%, rgba(39, 205, 211, 0.4), transparent 62%);
    content: "";
    transform: translateX(-50%);
    pointer-events: none;
  }

  body.menu-open .main-nav {
    z-index: 90;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    font-size: clamp(32px, 9vw, 50px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
  }

  body.menu-open .main-nav a {
    opacity: 1;
    transform: none;
  }

  body.menu-open .main-nav a:nth-child(1) { transition-delay: 0.08s; }
  body.menu-open .main-nav a:nth-child(2) { transition-delay: 0.14s; }
  body.menu-open .main-nav a:nth-child(3) { transition-delay: 0.2s; }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    object-position: 55% center;
  }

  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .factory-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 50px;
  }

  .catalog-card.is-active .catalog-card__bottle,
  .catalog-card:focus-visible .catalog-card__bottle {
    transform:
      translateX(-50%)
      translateX(var(--bottle-shift-x))
      scale(var(--bottle-size));
  }
}

@media (max-width: 620px) {
  .about-intro h2 {
    font-size: clamp(42px, 11vw, 68px);
  }

  .about-intro__lead {
    margin-top: 28px;
  }

  .about-details {
    margin-top: 54px;
  }

  .about-film {
    margin-top: 52px;
  }

  .about-detail {
    padding: 32px 0;
  }

  .about-future strong {
    padding-left: 18px;
  }

  .lang-button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  .life-card {
    /* только aspect-ratio, без явной height рядом — иначе тот же
       конфликт: ширина перестанет растягиваться на всю колонку */
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .flavor-catalog {
    padding: 52px 12px 70px;
    background-position: center top;
  }

  .flavor-catalog__title {
    margin-bottom: 42px;
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.9;
  }

  .flavor-catalog__grid {
    column-gap: 10px;
    row-gap: 40px;
  }

  .catalog-card__background {
    aspect-ratio: 0.66;
  }

  .catalog-card h3 {
    min-height: 2.8em;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 17vw;
  }

  .contact-map__card {
    gap: 10px;
    padding: 10px 12px;
  }

  .contact-map__info span {
    max-width: 34vw;
  }

  .contact-map__btn {
    width: 28px;
    height: 28px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header.is-hidden {
    transform: none;
  }
}
