/* ==========================================================================
   Главная страница «тайныйсанта» — 1:1 стиль и скролл-анимации guide.aviasales.ru
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background: var(--c-ink);
  color: var(--c-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-cabin] {
  background: var(--c-cabin);
  transition: background-color var(--night-dur) linear;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--c-on-cabin);
  transition: color var(--night-dur) linear;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   TOPBAR, ОВАЛ -> СЕТКА 2x5 И ХОВЕР-СТИКЕРЫ
   ========================================================================== */

.topbar {
  position: fixed;
  inset: var(--screen-scene-inset);
  z-index: 50;
  pointer-events: none;
}

html[data-cabin] .topbar::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 126px;
  z-index: 0;
  background: linear-gradient(to bottom, var(--c-cabin) 58%, transparent 100%);
  pointer-events: none;
  transition: background var(--night-dur) linear;
}

.topbar .screen__logo,
.topbar .menu {
  z-index: 2;
}

.topbar .menu {
  position: relative;
}

.screen__logo {
  pointer-events: auto;
  position: absolute;
  z-index: 3;
  left: calc(50% - (50% - 24px) * var(--t, 0));
  top: calc(32px - 10px * var(--t, 0));
  transform: translateX(calc(-50% * (1 - var(--t, 0))));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  animation: logo-in 0.8s var(--spring-like) both, logo-fade 0.45s ease both;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(6, 86, 254, 0.22);
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  transition: color 0.14s ease;
}

html[data-cabin] .logo-wordmark {
  color: var(--c-on-cabin);
}

.menu ul {
  position: fixed;
  inset: var(--screen-scene-inset);
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.menu li {
  position: absolute;
  pointer-events: auto;
  left: calc(50% + var(--x, 0px));
  top: calc(50% + var(--y, 0px));
  transform:
    translate(
      calc(-50% * (1 - var(--t, 0)) + var(--tx, 0px) * var(--t, 0)),
      calc(-50% * (1 - var(--t, 0)) + var(--ty, 0px) * var(--t, 0))
    )
    rotate(calc(var(--rot, 0deg) * (1 - var(--t, 0))));
  animation: btn-fade 0.5s ease both;
  animation-delay: calc(0.18s + var(--idx, 0) * 0.03s);
  will-change: transform;
}

.btn {
  --pad: var(--btn-pad-x);
  --reserve: calc(var(--btn-gap) + var(--btn-icon));
  --shift: calc(var(--reserve) / 2);
  --ease: cubic-bezier(0.33, 0, 0.2, 1);
  --dur: 0.26s;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--btn-height);
  padding-inline: calc(var(--pad) + var(--shift));
  border-radius: var(--btn-radius);
  background: var(--c-ink);
  color: var(--c-paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--btn-font-size);
  line-height: var(--btn-line-height);
  white-space: nowrap;
  overflow: clip;
  box-shadow: 0 6px 18px rgba(12, 19, 29, 0.16);
  transition: transform 0.12s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn--cta {
  background: var(--c-orange);
  color: var(--c-white);
}

.btn[data-current] {
  background: var(--c-brand-lift);
  color: var(--c-paper);
}

.btn__label {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__label,
.btn:focus-visible .btn__label {
  transform: translateX(var(--shift));
}

.btn__arrow {
  position: absolute;
  left: var(--pad);
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--btn-icon);
  height: var(--btn-icon);
  margin-top: calc(var(--btn-icon) / -2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 0.07s;
}

/* Вылетающий стикер .sticker */
.sticker {
  --w: 170px;
  --h: 92px;
  --ax: 0px;
  --ay: 0px;
  --rot: -8deg;
  --extra: -14deg;
  --sc: 0.65;
  --sx-out: -14px;
  --t: 0.36s;
  --out: 0.2s;
  --pop: var(--spring-tip);
  --turn: cubic-bezier(0.22, 1, 0.36, 1);
  --move: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: var(--w);
  height: var(--h);
  margin-left: calc(var(--w) / -2);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(var(--ax), var(--ay), 0);
  transition: opacity var(--out) var(--turn), visibility 0s linear var(--out);
  --dur: var(--out);
  --sck: 1;
  --extra-k: 1;
  --sxk: 1;
}

.sticker[data-state="in"] {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t) var(--turn), visibility 0s linear 0s;
  --dur: var(--t);
  --sck: 0;
  --extra-k: 0;
  --sxk: 0;
}

.sticker__sway {
  transform-origin: 50% 0;
  transform: rotate(var(--sway, 0deg));
  transition: transform 0.14s ease-out;
}

.sticker__move {
  transform: translateX(calc(var(--sx-out) * var(--sxk)));
  transition: transform var(--dur) var(--move);
}

.sticker__turn {
  transform: rotate(calc(var(--rot) + var(--extra) * var(--extra-k)));
  transition: transform var(--dur) var(--turn);
}

.sticker__pop {
  transform: scale(calc(1 - (1 - var(--sc)) * var(--sck)));
  transition: transform var(--dur) var(--pop);
  display: grid;
  place-items: center;
}

.stk--marquee {
  position: relative;
  width: 184px;
  height: 62px;
  background: var(--c-orange);
  border: 4px solid var(--c-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(12, 19, 29, 0.22);
}

.stk__run {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  gap: 20px;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--c-white);
  animation: stk-run 2.4s linear infinite;
}

.stk-pill {
  padding: 10px 18px;
  border-radius: 100px;
  border: 4px solid var(--c-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  box-shadow: 0 10px 26px rgba(12, 19, 29, 0.2);
  white-space: nowrap;
}

.stk-pill--pink { background: var(--c-pink-300); color: var(--c-pink-800); }
.stk-pill--yellow { background: var(--c-yellow-300); color: var(--c-yellow-800); }
.stk-pill--green { background: var(--c-green-300); color: var(--c-green-800); }
.stk-pill--purple { background: var(--c-purple-300); color: var(--c-purple-800); }
.stk-pill--red { background: var(--c-red-300); color: var(--c-red-800); }
.stk-pill--brand { background: var(--c-brand-300); color: var(--c-brand-800); }
.stk-pill--blue { background: var(--c-blue-300); color: var(--c-blue-800); }
.stk-pill--orange { background: var(--c-orange-300); color: var(--c-orange-800); }

.mm-trigger,
.mm-drawer {
  display: none;
}

@media (max-width: 1023.98px) {
  .topbar {
    inset: 0;
  }
  html[data-cabin] .topbar::before {
    display: none;
  }
  .screen__logo {
    left: 16px;
    top: 14px;
    transform: none;
    background: rgba(12, 19, 29, 0.25);
  }
  html[data-cabin] .screen__logo {
    background: rgba(242, 244, 245, 0.92);
  }
  html[data-night] .screen__logo {
    background: rgba(27, 39, 51, 0.92);
  }
  .menu ul {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    pointer-events: auto;
    background: linear-gradient(to top, rgba(12, 19, 29, 0.52), transparent);
    scrollbar-width: none;
  }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu li {
    position: static;
    transform: none !important;
    flex: none;
  }
  .sticker {
    display: none !important;
  }
  .mm-trigger {
    pointer-events: auto;
    position: fixed;
    right: 16px;
    top: 14px;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    border: none;
    background: var(--c-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .mm-trigger span {
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--c-white);
  }
  .mm-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(12, 19, 29, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }
  .mm-drawer[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
  }
  .mm-box {
    position: absolute;
    right: 16px;
    top: 16px;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 20px;
    background: var(--c-cabin);
    color: var(--c-on-cabin);
  }
  .mm-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .mm-box__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
  }
  .mm-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--c-fill);
  }
  .mm-box__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .mm-box__grid a {
    display: grid;
    place-items: center;
    height: 44px;
    padding: 0 10px;
    border-radius: 13px;
    background: var(--c-ink);
    color: var(--c-paper);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
  }
}

/* ==========================================================================
   1. .hero-track (500svh скролл-сцена)
   ========================================================================== */

.hero-track {
  position: relative;
  z-index: 1;
  height: calc(100svh + var(--story-len));
}

.screen {
  --po-out: calc(var(--screen-scene-inset) * var(--po-open, 0));
  position: sticky;
  top: 0;
  height: 100svh;
  padding: var(--screen-scene-inset);
  background: var(--c-ink);
  transition: background-color var(--night-dur) linear;
}

html[data-cabin] .screen {
  background: var(--c-cabin);
}

.scene {
  position: absolute;
  inset: calc(var(--screen-scene-inset) - var(--po-out));
  border-radius: calc(var(--screen-scene-radius) * (1 - var(--po-open, 0)));
  background: var(--c-cabin);
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--night-dur) linear;
}

.scene__box {
  position: absolute;
  inset: var(--po-out);
  overflow: hidden;
  opacity: max(0, calc(1 - var(--po-open, 0) * 1.4));
  pointer-events: none;
}

.field {
  position: absolute;
  inset: calc(-1 * var(--po-out));
  background: var(--c-brand);
}

.dots {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.35px, transparent 1.35px);
  background-size: 24px 24px;
  opacity: calc(0.82 * (1 - var(--po-open, 0)));
  animation: dots-in 0.8s ease both;
}

.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: calc(1 - var(--po-open, 0));
}

.dots--card {
  inset: 0;
  opacity: 0.72;
  z-index: 0;
}

.garland-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 54px;
  pointer-events: none;
  z-index: 1;
}

.g-bulb {
  stroke: var(--c-white);
  stroke-width: 2.5px;
  animation: bulb-glow 2.8s ease-in-out infinite;
}

.g-bulb--2 { animation-delay: 0.4s; }
.g-bulb--3 { animation-delay: 0.8s; }
.g-bulb--4 { animation-delay: 1.2s; }
.g-bulb--5 { animation-delay: 1.6s; }
.g-bulb--6 { animation-delay: 2.0s; }
.g-bulb--7 { animation-delay: 2.4s; }

.pattern {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2400px;
  height: 1600px;
  margin-left: -1200px;
  margin-top: -800px;
  display: grid;
  grid-template-columns: repeat(6, 260px);
  gap: 54px;
  transform: translate3d(calc(-1 * var(--ground, 0px)), 0, 0) rotate(15deg);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

html[data-pattern="on"] .pattern {
  opacity: calc(1 - var(--po-open, 0));
}

.pattern__cell {
  width: 260px;
  height: 260px;
  transform: scale(0.72);
  transition: transform 0.75s var(--spring-like);
}

.pattern__cell:nth-child(odd) {
  transform: translateX(130px) scale(0.72);
}

html[data-pattern="on"] .pattern__cell {
  transform: scale(1);
}

html[data-pattern="on"] .pattern__cell:nth-child(odd) {
  transform: translateX(130px) scale(1);
}

.shape {
  position: absolute;
  width: clamp(220px, 24vw, 340px);
  height: clamp(220px, 24vw, 340px);
  pointer-events: none;
}

.shape--tl {
  left: -70px;
  top: -70px;
  transform: translate(calc(-140px * var(--t-edges, 0)), calc(-140px * var(--t-edges, 0))) rotate(60deg);
}

.shape--tr {
  right: -90px;
  top: -80px;
  transform: translate(calc(160px * var(--t-edges, 0)), calc(-140px * var(--t-edges, 0))) rotate(-24deg);
}

.shape--bl {
  left: -80px;
  bottom: -95px;
  transform: translate(calc(-150px * var(--t-edges, 0)), calc(150px * var(--t-edges, 0))) rotate(18deg);
}

.shape--br {
  right: -75px;
  bottom: -85px;
  transform: translate(calc(150px * var(--t-edges, 0)), calc(150px * var(--t-edges, 0))) rotate(-42deg);
}

.peepka {
  position: absolute;
  left: var(--px);
  width: 209px;
  height: 95px;
  color: var(--c-ink);
  z-index: 3;
  pointer-events: none;
}

.peepka--top {
  top: 0;
  transform: translateX(-50%) translateY(calc(-100% * var(--t-edges, 0)));
  animation: peep-top 0.7s var(--spring-like) both;
}

.peepka--bottom {
  bottom: 0;
  transform: translateX(-50%) translateY(calc(100% * var(--t-edges, 0))) rotate(180deg);
  animation: peep-bottom 0.7s var(--spring-like) both;
}

.hero-title-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 4;
  padding: 24px;
  pointer-events: none;
  opacity: calc(1 - var(--t-lines, 0));
  transform: translateY(calc(-40px * var(--t-lines, 0))) scale(calc(1 - 0.08 * var(--t-lines, 0)));
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--title-size);
  line-height: var(--title-lh);
  letter-spacing: -0.02em;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-line {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
}

.hero-line--1 { animation: line-fade 0.55s ease 0.05s both; }
.hero-line--2 { animation: line-fade 0.55s ease 0.14s both; }
.hero-line--3 { animation: line-fade 0.55s ease 0.22s both; }

.u-word {
  position: relative;
  display: inline-block;
}

.hero-underline {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -0.14em;
  height: 0.13em;
  background: var(--c-white);
  border-radius: 999px;
  transform-origin: left center;
  animation: underline-in 0.7s var(--e-pop) 0.35s both;
}

.hero-stk--snow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--c-blue-300);
  color: var(--c-blue-800);
  border: 4px solid var(--c-white);
  transform: rotate(-14deg);
  box-shadow: 0 8px 20px rgba(12, 19, 29, 0.2);
}

.hero-stk--snow svg {
  width: 58%;
  height: 58%;
  animation: snow-spin 18s linear infinite;
}

.hero-stk--pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.24em;
  line-height: 1;
  padding: 0.38em 0.65em;
  border-radius: 999px;
  background: var(--c-orange-300);
  color: var(--c-orange-800);
  border: 4px solid var(--c-white);
  transform: rotate(8deg) translateY(-0.08em);
  white-space: nowrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1023.98px) {
  .peepka {
    width: 132px;
    height: 60px;
  }
  .hero-title-wrap {
    padding: 76px 16px 128px;
  }
  .hero-line {
    gap: 0.16em;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stk--pill {
    font-size: 0.28em;
    border-width: 3px;
  }
  .hero-stk--snow {
    border-width: 3px;
  }
  .hero-scroll-hint {
    bottom: 92px;
    width: calc(100% - 32px);
  }
  .road-text {
    left: 20px;
    right: 20px;
    top: 96px;
    max-width: none;
  }
  .rv__line span {
    font-size: clamp(24px, 6.8vw, 34px);
  }
}

/* Дорога .road */
.road {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4792px;
  height: 4376px;
  margin-left: -2396px;
  margin-top: -2188px;
  overflow: visible;
  pointer-events: none;
  opacity: calc(var(--t-road, 0));
  transform: translate3d(calc(-1 * var(--ground, 0px)), 0, 0) scale(var(--road-k, 0.75));
  z-index: 3;
}

.road__blue { fill: none; stroke: var(--c-brand); }
.road__dark { fill: none; stroke: var(--c-ink); }
.road__text { fill: var(--c-white); font-family: var(--font-display); font-weight: 800; }

.road-text {
  position: absolute;
  left: clamp(28px, 5vw, 84px);
  top: clamp(120px, 17vh, 172px);
  z-index: 5;
  max-width: 580px;
  pointer-events: none;
  opacity: calc(var(--t-road-text, 0));
}

.rv__line { overflow: hidden; }
.rv__line span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.06;
  color: var(--c-white);
  transform: translateY(calc(110% * (1 - var(--t-rv, 0))));
  transition: transform 0.12s linear;
}

/* Иллюминатор */
.porthole {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  visibility: hidden;
  opacity: var(--po-open, 0);
}

html[data-porthole] .porthole { visibility: visible; }

.porthole__zoom {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 0;
  height: 0;
  transform: translateY(var(--po-dy, 0px)) scale(var(--po-k, 2.85));
}

.porthole__plate {
  position: relative;
  width: 310px;
  height: 390px;
  margin-left: -155px;
  margin-top: -150px;
}

.porthole__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 112px;
  background: linear-gradient(145deg, #ffffff 0%, #e4e8ed 55%, #cfd6df 100%);
  padding: 26px;
  box-shadow: 0 24px 54px rgba(12, 19, 29, 0.2), inset 0 4px 10px rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

html[data-night] .porthole__frame {
  background: linear-gradient(145deg, #324152 0%, #23303d 60%, #17212b 100%);
}

.porthole__glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 86px;
  overflow: hidden;
  background: var(--c-brand);
}

.porthole__peek,
.porthole__peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.porthole__badge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(12, 19, 29, 0.82);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.porthole__blind {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  height: calc(100% - 44px);
  border-radius: 88px;
  background: linear-gradient(180deg, #f3f5f8 0%, #dfe5ec 100%);
  transform: translateY(var(--po-shutter, -105%));
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 18px;
  overflow: hidden;
}

html[data-night] .porthole__blind {
  background: linear-gradient(180deg, #273545 0%, #1c2834 100%);
}

.porthole__blind-ribs {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(12, 19, 29, 0.04) 0 2px, transparent 2px 18px);
}

.porthole__blind-handle {
  position: relative;
  width: 68px;
  height: 10px;
  border-radius: 999px;
  background: #c2cbd6;
}

.porthole__rim-bevel {
  position: absolute;
  inset: 26px;
  border-radius: 86px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.porthole__hit {
  position: absolute;
  inset: 20px;
  border-radius: 90px;
  pointer-events: none;
  touch-action: pan-y;
}

html[data-porthole-landed] .porthole__hit {
  pointer-events: auto;
  cursor: grab;
}

.porthole__copy {
  position: absolute;
  top: clamp(134px, 16vh, 148px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 40px));
  text-align: center;
  pointer-events: auto;
}

.porthole__copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.04;
  color: var(--c-on-cabin);
}

.porthole__copy p {
  margin: 0 auto 14px;
  max-width: 560px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.35;
  color: var(--c-ink-500);
}

.porthole__blind-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink-150);
  background: var(--c-card-surface);
  color: var(--c-on-cabin);
  font-size: 14px;
  font-weight: 600;
}

.blind-btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-brand-lift);
}

html[data-night] .blind-btn__dot {
  background: var(--c-yellow-500);
}

@media (max-width: 1023.98px) {
  .porthole__copy {
    top: 76px;
    width: calc(100% - 32px);
  }
  .porthole__copy h2 {
    font-size: clamp(21px, 5.6vw, 28px);
    margin-bottom: 8px;
  }
  .porthole__copy p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .porthole__blind-btn {
    font-size: 12.5px;
    padding: 7px 12px;
  }
  .porthole__zoom {
    top: 67%;
    transform: translateY(var(--po-dy, 0px)) scale(calc(var(--po-k, 2.85) * 0.56));
  }
}

/* ==========================================================================
   2. .talk (Парящие карточки + спиннер)
   ========================================================================== */

.talk {
  position: relative;
  height: var(--tk-h-d);
  background: var(--c-cabin);
  overflow: hidden;
  padding: 185px 24px 60px;
  scroll-margin-top: 0px;
  transition: background-color var(--night-dur) linear;
}

.talk__head {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.talk__head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.04;
  color: var(--c-on-cabin);
}

.talk__head p {
  margin: 0 auto;
  max-width: 540px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.38;
  color: var(--c-ink-500);
}

.talk__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.talk__card {
  position: absolute;
  left: var(--c-x-d);
  top: var(--c-top-d);
  transform: translate(-50%, -50%) translateY(var(--tk-rise)) rotate(var(--rot, 0deg)) scale(var(--tk-scale));
  opacity: 0;
  transition: transform var(--tk-out) var(--e-pop), opacity var(--tk-out) linear;
}

.talk[data-reveal] .talk__card {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1);
  transition: transform var(--tk-dur) var(--e-pop) var(--d, 0s), opacity var(--tk-dur) linear var(--d, 0s);
}

.talk__art {
  pointer-events: auto;
  filter: drop-shadow(0 6px 18px rgba(12, 19, 29, 0.08));
}

.talk-bubble-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 310px;
}

.talk-pill-blue {
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--c-brand-lift);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.talk-tooltip {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--c-card-surface);
  color: var(--c-on-cabin);
  font-size: 14px;
  line-height: 1.35;
}

.talk-tooltip strong { display: block; margin-bottom: 4px; }

.talk-push {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-ink);
}

html[data-night] .talk-push {
  background: #22303f;
  color: var(--c-white);
}

.talk-push__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.talk-push__top span { font-size: 12px; color: var(--c-ink-400); }
.talk-push__body p { margin: 0; font-size: 13.5px; line-height: 1.32; color: var(--c-ink-500); }

.talk-polaroid {
  width: 214px;
  padding: 10px 10px 14px;
  border-radius: 18px;
  background: var(--c-white);
  border: 4px solid var(--c-white);
  color: var(--c-ink);
  text-align: center;
}

.talk-polaroid img {
  width: 100%;
  height: 186px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.talk-polaroid span { font-size: 13px; font-weight: 600; }

.talk-note-pill {
  max-width: 330px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--c-card-surface);
  color: var(--c-on-cabin);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.ld {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--c-card-surface);
  color: var(--c-on-cabin);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(12, 19, 29, 0.09);
  white-space: nowrap;
}

.ld__ring {
  width: 24px;
  height: 24px;
  flex: none;
  animation: ld-spin 1.1s linear infinite;
}

@media (max-width: 1023.98px) {
  .talk { height: auto; padding: 72px 16px; }
  .talk__cards { position: static; display: grid; gap: 16px; justify-items: center; margin-top: 36px; }
  .talk__card { position: static; max-width: 100%; transform: rotate(calc(var(--rot, 0deg) * 0.45)) !important; opacity: 1 !important; }
  .talk-push, .talk-bubble-card { width: min(340px, 100%); }
  .talk-note-pill { max-width: min(340px, 100%); }
  .ld { white-space: normal; height: auto; min-height: 48px; padding: 10px 16px; font-size: 14.5px; max-width: 100%; }
}

/* ==========================================================================
   3. ОБЛОЖКА ПРАВИЛ И СЕКЦИЯ QR-ДОСТАВКИ
   ========================================================================== */

.guide-block {
  background: var(--c-cabin);
  padding: 40px 24px 64px;
  scroll-margin-top: 128px;
  transition: background-color var(--night-dur) linear;
}

.guide-block > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.in-cover {
  position: relative;
  border-radius: var(--in-radius);
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  color: var(--c-white);
}

.in-cover--blue { background: var(--c-brand); }

.in-cover__peepka {
  position: absolute;
  width: 106px;
  height: 48px;
  color: var(--c-cabin);
  z-index: 2;
  transition: color var(--night-dur) linear;
}

.in-cover__peepka--top { left: 52%; top: 0; transform: translateX(-50%); }
.in-cover__peepka--right { right: -29px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.in-cover__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.in-cover__text h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 0.98;
}

.in-cover__text p {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.orange-cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
  font-size: 17px;
  transition: background-color 0.2s ease;
}

.orange-cta:hover { background: #ff8240; }

.in-cover__hero-art {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.hero-back-shape {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  transform: rotate(-10deg);
}

.hero-gift-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  border: 6px solid var(--c-white);
}

.hero-gift-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-stk {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  border: 4px solid var(--c-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  transform: rotate(var(--r, 0deg));
  white-space: nowrap;
}

.badge-stk--pink { background: var(--c-pink-300); color: var(--c-pink-800); }
.badge-stk--yellow { background: var(--c-yellow-300); color: var(--c-yellow-800); }
.badge-stk--green { background: var(--c-green-300); color: var(--c-green-800); }

.qr-showcase {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 40px;
  border-radius: var(--in-radius-plate);
  background: var(--c-box);
}

.qr-showcase__copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
}

.qr-showcase__copy p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--c-ink-500);
}

.qr-steps {
  display: grid;
  gap: 10px;
}

.qr-step {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--c-card-surface);
  color: var(--c-on-cabin);
  font-size: 15px;
  line-height: 1.38;
}

.plate-card {
  position: relative;
  padding: 20px;
  border-radius: 26px 18px 30px 20px;
  background: var(--c-brand);
  color: var(--c-white);
  transform: rotate(2.5deg);
}

.plate-card__photo {
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.plate-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-card__caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.24;
}

.plate-stk {
  position: absolute;
  padding: 10px 18px;
  border-radius: 999px;
  border: 4px solid var(--c-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}

.plate-stk--orange {
  top: -16px;
  right: 22px;
  background: var(--c-orange-300);
  color: var(--c-orange-800);
  transform: rotate(10deg);
}

.plate-stk--blue {
  bottom: -14px;
  right: -12px;
  background: var(--c-blue-300);
  color: var(--c-blue-800);
  transform: rotate(-8deg);
}

@media (max-width: 1023.98px) {
  .in-cover__grid,
  .qr-showcase {
    grid-template-columns: 1fr;
  }
  .qr-showcase { padding: 24px; }
}

@media (max-width: 639.98px) {
  .guide-block { padding: 24px 14px 44px; }
  .in-cover { padding: 54px 20px 28px; }
  .in-cover__peepka--right { display: none; }
  .orange-cta { width: 100%; justify-content: center; font-size: 15.5px; }
  .badge-stk { font-size: 13px; padding: 6px 12px; border-width: 3px; }
  .badge-stk--pink { left: 6px !important; }
  .badge-stk--yellow { right: 6px !important; }
  .qr-showcase { padding: 20px 16px; gap: 24px; }
  .plate-card { transform: none; padding: 16px; }
  .plate-card__photo { height: 190px; }
  .plate-stk { font-size: 14px; padding: 7px 13px; border-width: 3px; }
  .plate-stk--orange { top: -12px; right: 12px; }
  .plate-stk--blue { bottom: -12px; right: 8px; }
}

/* ==========================================================================
   4. .bx ПОСАДОЧНЫЙ ТАЛОН С ФИЗИКОЙ СТИКЕРОВ И ВХОДОМ
   ========================================================================== */

.bx {
  position: relative;
  background: var(--c-cabin);
  padding: 18px var(--bx-side) var(--bx-foot);
  transition: background-color var(--night-dur) linear;
}

.bx__card,
.bx__strip {
  width: 100%;
  max-width: var(--bx-max);
  margin: 0 auto;
  background: var(--c-box-solid);
  border-radius: var(--bx-radius);
  overflow: hidden;
  transition: background-color var(--night-dur) linear;
}

.bx__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: var(--bx-h);
  padding: 64px var(--bx-px) 180px;
}

.bx__peepka {
  position: absolute;
  left: 50%;
  top: 0;
  width: 106px;
  height: 48px;
  transform: translateX(-50%);
  color: var(--c-cabin);
  transition: color var(--night-dur) linear;
}

.bx__spill {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.bx__chip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 15px;
  border-radius: 999px;
  border: 3.5px solid var(--c-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  will-change: transform;
}

.bx__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  text-align: center;
}

.bx__content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  color: var(--c-on-cabin);
}

.bx__content p {
  margin: 0 auto 24px;
  max-width: 580px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.4;
  color: var(--c-ink-500);
}

.bx__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bx__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
}

.bx__btn--primary { background: var(--c-brand-lift); color: var(--c-white); }
.bx__btn--secondary { background: var(--c-ink); color: var(--c-white); }

.bx__again {
  display: none;
  margin: 18px auto 0;
  border: none;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 600;
}

.bx.is-spilled .bx__again {
  display: inline-flex;
  align-items: center;
}

.bx__corner--cut {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 33px;
  color: var(--c-cabin);
  z-index: 4;
}

.bx__fold {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 5;
  color: var(--c-fold);
}

.bx__fold-turn { display: block; transform: rotate(1.25deg); }

.bx__strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--st-h);
  padding: 0 var(--st-px);
  cursor: grab;
  user-select: none;
  transition: transform 0.4s var(--e-pop), opacity 0.35s ease, background-color var(--night-dur) linear;
}

.bx__strip:hover { transform: translateY(3px); }
.bx.is-spilled .bx__strip {
  transform: translateY(42px) rotate(-2deg);
  opacity: 0;
  pointer-events: none;
}

.bx__strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--st-dash);
  background-image: repeating-linear-gradient(
    to right,
    var(--c-cabin) 0 var(--st-dash-on),
    transparent var(--st-dash-on) var(--st-dash-step)
  );
}

.bx__strip-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink-500);
}

.bx__strip:hover .bx__heart path { fill: var(--c-brand-lift); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--c-cabin);
  color: var(--c-on-cabin);
  padding: 56px 24px calc(56px + var(--strip-room, 0px));
  transition: background-color var(--night-dur) linear;
}

@media (max-width: 639.98px) {
  .bx__card {
    min-height: 420px;
    padding: 56px 18px 140px;
  }
  .bx__actions {
    flex-direction: column;
    width: 100%;
  }
  .bx__btn {
    width: 100%;
  }
  .bx__strip {
    height: auto;
    min-height: 76px;
    padding: 14px 16px;
  }
  .bx__strip-text {
    font-size: 14px;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer {
    padding: 40px 16px calc(40px + var(--strip-room, 0px));
  }
}

.footer .inner {
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__meta { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.footer__meta span:first-child { font-weight: 700; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  color: var(--c-ink-500);
}

.footer__links a:hover { color: var(--c-on-cabin); }

@keyframes dots-in { 0% { opacity: 0; } }
@keyframes peep-top { 0% { transform: translateX(-50%) translateY(-100%); } }
@keyframes peep-bottom { 0% { transform: translateX(-50%) translateY(100%) rotate(180deg); } }
@keyframes logo-in { 0% { transform: translateX(-50%) scale(0.35); } }
@keyframes logo-fade { 0% { opacity: 0; } }
@keyframes line-fade { 0% { opacity: 0; transform: translateY(0.24em); } }
@keyframes btn-fade { 0% { opacity: 0; } }
@keyframes underline-in { 0% { transform: scaleX(0); } }
@keyframes stk-run { to { transform: translate(-50%, -50%); } }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes snow-spin { to { transform: rotate(360deg); } }
@keyframes bulb-glow {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}
