/* ZEO · Высшая школа Storiesmakerov
   Дизайн — оригинальные макеты-сторис из Тильды (1080×1920), разложенные по сетке 320 px.
   Единица --u = ширина колонки / 396 (вся ширина картинок: от −40 до 356 по сетке Тильды). */

@font-face { font-family: 'Montserrat'; font-weight: 300 700; font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 300 700; font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

@font-face { font-family: 'Forum'; font-display: swap; src: url('../fonts/forum-400-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Forum'; font-display: swap; src: url('../fonts/forum-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --gold: #d6c494;
  --gold-hi: #f3e6bf;
  --hdr: 0px;     /* высота шапки (есть только на компьютере) */
  --gap: 0px;     /* промежуток между колонками сторис */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0b0b0b; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0b0b0b; color: #fff; font-family: 'Montserrat', system-ui, sans-serif; overflow-x: clip; }
img { display: block; }
a { color: inherit; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%); padding: 10px 18px; background: var(--gold); color: #000; border-radius: 999px; text-decoration: none; }

/* ---------- Сторис-блок ---------- */
/* Телефон: сторис одна под другой во всю ширину.
   Планшет: две колонки. Компьютер: три колонки во всю ширину экрана (см. медиа-запросы ниже). */
main { position: relative; z-index: 1; container-type: inline-size; }
.story {
  --col: min(100cqw, 620px);
  --u: calc(var(--col) / 396);
  position: relative;
  width: var(--col);
  height: calc(var(--h) * var(--u));
  margin: 0 auto;
  overflow: hidden;
  background: #0b0b0b;
}
.story__in { position: absolute; inset: 0; }
.el {
  position: absolute;
  left: calc(var(--l) * var(--u));
  top: calc(var(--t) * var(--u));
  width: calc(var(--w) * var(--u));
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- ПК-блоки: холст 1000 единиц, куски сторис со своим масштабом ---------- */
.dsec {
  display: none;
  --du: calc(min(100cqw - 48px, 1280px) / 1000);
  position: relative;
  width: calc(1000 * var(--du));
  height: calc(var(--H) * var(--du));
  margin: 0 auto;
}
.pc {
  --u: calc(var(--du) * var(--s));
  position: absolute;
  left: calc(var(--x) * var(--du));
  top: calc(var(--y) * var(--du));
  width: calc(var(--pw) * var(--u));
  height: calc(var(--ph) * var(--u));
}
.pc__clip {
  --f: calc(10 * var(--u));
  position: absolute; inset: 0; overflow: hidden;
  /* мягкие края, чтобы кусок растворялся в фоне */
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(180deg, var(--ft, transparent), #000 var(--f), #000 calc(100% - var(--f)), var(--fb, transparent));
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(180deg, var(--ft, transparent), #000 var(--f), #000 calc(100% - var(--f)), var(--fb, transparent));
  mask-composite: intersect;
}
.nf-t .pc__clip { --ft: #000; }
.nf-b .pc__clip { --fb: #000; }
.pc__in { position: absolute; left: calc(var(--x0) * -1 * var(--u)); top: calc(var(--y0) * -1 * var(--u)); width: calc(396 * var(--u)); height: 0; }

/* ---------- Анимации из Тильды (тайминги один в один) ---------- */
.js .a-slide, .js .a-slide1 { transform: translateX(calc(var(--from) * var(--u))); }
.js .a-grow { transform: scale(var(--s0)); }
.a-slide.go  { animation: tSlide 1.5s linear var(--delay) both; }
.a-slide1.go { animation: tSlide1 var(--dur) linear var(--delay) both; }
.a-grow.go   { animation: tGrow var(--dur) linear var(--delay) both; }
@keyframes tSlide {   /* выезд с перелётом: 900 мс туда, 600 мс назад */
  0%   { transform: translateX(calc(var(--from) * var(--u))); }
  60%  { transform: translateX(calc(var(--over) * var(--u))); }
  100% { transform: none; }
}
@keyframes tSlide1 { from { transform: translateX(calc(var(--from) * var(--u))); } to { transform: none; } }
@keyframes tGrow   { from { transform: scale(var(--s0)); } to { transform: none; } }

/* ---------- Плавающие предметы: телефоны, иконки, билет, подарки ---------- */
.fl { animation: float var(--fd, 6s) ease-in-out var(--fdl, 0s) infinite alternate; }
.a-slide1.go.fl { animation: tSlide1 var(--dur) linear var(--delay) both, float 5.5s ease-in-out calc(var(--delay) + var(--dur)) infinite alternate; }
@keyframes float {
  from { translate: 0 calc(var(--fa, 3) * -1 * var(--u)); rotate: calc(var(--fr, 0deg) * -1); }
  to   { translate: 0 calc(var(--fa, 3) * var(--u)); rotate: var(--fr, 0deg); }
}


/* ---------- Кнопки: настоящие ссылки с картинкой своей кнопки ---------- */
.btn {
  position: absolute; z-index: 2;
  left: calc(var(--l) * var(--u));
  top: calc(var(--t) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  overflow: hidden;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease, box-shadow .35s ease;
}
.btn--rect { border-radius: calc(6 * var(--u)); }
.btn--round { border-radius: 50%; animation: breathe 2.8s ease-in-out infinite; }
.btn img { width: 100%; height: 100%; object-fit: cover; }
.btn::after {               /* блик */
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg) translateX(-120%); pointer-events: none;
}
.btn--flash::after { animation: shine 3.2s ease-in-out 1.5s infinite; }
.btn:hover::after { animation: shine .9s ease-out; }
@keyframes shine { 0% { transform: skewX(-20deg) translateX(-120%); } 45%, 100% { transform: skewX(-20deg) translateX(520%); } }
@media (hover: hover) {
  .btn:hover { transform: translateY(calc(-3 * var(--u))) scale(1.05); filter: brightness(1.12) saturate(1.1); box-shadow: 0 0 calc(18 * var(--u)) rgba(214,196,148,.55); }
}
.btn:active { transform: scale(.96); filter: brightness(.95); transition-duration: .12s; }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
/* Кнопка-вырезка: сама нарисованная кнопка (с прозрачным фоном), под ней — чистый фон */
.btn--cut { overflow: visible; border-radius: 0; box-shadow: none !important; animation: none; }
.btn--cut img { object-fit: fill; filter: drop-shadow(0 calc(3 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.55)); transition: filter .35s ease; }
.btn--cut:hover img { filter: drop-shadow(0 calc(6 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.6)); }
.btn--cut::after {
  top: 0; left: 0; width: 100%; height: 100%; transform: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat;
}
.btn--cut.btn--flash::after { animation: shine2 3.2s ease-in-out 1.5s infinite; }
.btn--cut:hover::after { animation: shine2 .9s ease-out; }
@keyframes shine2 { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
.btn--ball { animation: breathe2 2.8s ease-in-out infinite; }
@keyframes breathe2 { 0%,100% { filter: drop-shadow(0 0 0 rgba(214,196,148,0)); } 50% { filter: drop-shadow(0 0 calc(10 * var(--u)) rgba(214,196,148,.55)); } }
@media (hover: hover) {
  .btn--cut:hover { filter: brightness(1.1) drop-shadow(0 0 calc(10 * var(--u)) rgba(214,196,148,.6)); animation: none; }
}
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(214,196,148,0); } 50% { box-shadow: 0 0 calc(16 * var(--u)) calc(2 * var(--u)) rgba(214,196,148,.45); } }

/* ---------- Меню (как в Тильде) ---------- */
.burger {
  position: fixed; z-index: 50; top: 15px;
  right: 16px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5); cursor: pointer;
  display: grid; place-content: center; gap: 4px;
  transition: background-color .3s ease;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease; }
.burger:hover { background: rgba(0,0,0,.75); }
.burger:hover span:nth-child(1) { transform: translateY(1px); }
.burger:hover span:nth-child(3) { transform: translateY(-1px); }
.burger:focus-visible, .menu a:focus-visible, .menu__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.menu { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .5s; }
.menu.is-open { visibility: visible; transition: none; }
.menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .4s ease; backdrop-filter: blur(3px); }
.menu.is-open .menu__overlay { opacity: 1; }
.menu__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(280px, 84vw);
  background: #000; padding: 72px 20px 30px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: -1px 0 0 rgba(214,196,148,.18);
}
.menu.is-open .menu__panel { transform: none; }
.menu__close { position: absolute; top: 20px; right: 18px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; }
.menu__close span { position: absolute; left: 6px; top: 16px; width: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
.menu__close span + span { transform: rotate(-45deg); }
.menu__list, .menu__social { list-style: none; margin: 0; padding: 0; }
.menu__list li { opacity: 0; transform: translateX(16px); transition: opacity .4s ease, transform .4s ease; }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
.menu__list a { display: block; padding: 7px 0; font-size: 24px; line-height: 1.25; color: #fff; text-decoration: none; transition: color .25s ease, transform .25s ease; }
.menu__list a:hover { color: var(--gold); transform: translateX(-4px); }
.menu__social { display: flex; gap: 10px; }
.menu__social a { display: block; width: 30px; height: 30px; color: #fff; transition: color .25s ease, transform .25s ease; }
.menu__social a:hover { color: var(--gold); transform: translateY(-2px); }
.menu__social svg { width: 100%; height: 100%; }

/* ---------- Украшения: золотая пыль, полоса прокрутки, свечение по бокам ---------- */
.dust { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Шапка (компьютер) и полоски-сторис ---------- */
.header { position: fixed; z-index: 45; inset: 0 0 auto; height: 0; }
.logo, .nav, .header__cta { display: none; }
.progress { position: fixed; z-index: 46; top: 6px; left: 12px; right: 12px; display: flex; gap: 3px; pointer-events: none; }
.progress i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.progress i::before { content: ''; display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 6px rgba(214,196,148,.8); }
.burger { top: 18px; }
@media (min-width: 1024px) {
  :root { --hdr: 76px; }
  .burger, .menu { display: none !important; }
  .header {
    height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 clamp(24px, 4vw, 64px);
    background: rgba(11,11,11,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(214,196,148,.16);
    animation: hdrIn .9s cubic-bezier(.2,.8,.2,1) both;
  }
  .logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
  .logo__mark { font-family: 'Forum', serif; font-size: 26px; letter-spacing: .32em; background: linear-gradient(110deg, #b89b5e, var(--gold-hi) 45%, #b89b5e 60%, var(--gold)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldText 6s ease-in-out infinite; }
  .logo__sub { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #9b958a; }
  .nav { display: block; }
  .nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 30px); }
  .nav__link { position: relative; display: block; padding: 6px 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #d9d4c8; text-decoration: none; transition: color .3s; }
  .nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .nav__link:hover, .nav__link.is-active { color: var(--gold); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .header__cta {
    display: inline-flex; align-items: center; position: relative; overflow: hidden;
    min-height: 46px; padding: 12px 26px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #1a1408;
    background: linear-gradient(110deg, #b89b5e, var(--gold-hi) 45%, #c9b27a 70%, #a8894f); background-size: 200% 100%;
    box-shadow: 0 10px 30px rgba(214,196,148,.22), inset 0 1px 0 rgba(255,255,255,.5);
    transition: transform .3s ease, background-position .6s ease, box-shadow .3s ease;
  }
  .header__cta:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px rgba(214,196,148,.35); }
  .header__cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg) translateX(-120%); animation: shine 4s ease-in-out 2s infinite; }
  .progress { position: absolute; top: auto; bottom: -1px; left: 0; right: 0; }
  /* ПК: свои широкие блоки, собранные из кусков сторис (.dsec), мобильные сторис скрыты */
  body main { display: block; padding: var(--hdr) 0 0; }
  body main .story { display: none; }
  /* фон под сайтом — ровный чёрный (= фон картинок); свечение и золотая пыль — только по бокам, за краями контента */
  html, body { background: #0a0a0a; }
  body { --cw: min(100vw - 48px, 1280px); }
  /* свет за курсором — прежний плавный шар, но его рамка пропускает свет только по бокам */
  .dust, body::before, .glow-wrap {
    -webkit-mask: linear-gradient(90deg, #000, #000 calc(50% - var(--cw) / 2 - 30px), transparent calc(50% - var(--cw) / 2 + 10px), transparent calc(50% + var(--cw) / 2 - 10px), #000 calc(50% + var(--cw) / 2 + 30px));
    mask: linear-gradient(90deg, #000, #000 calc(50% - var(--cw) / 2 - 30px), transparent calc(50% - var(--cw) / 2 + 10px), transparent calc(50% + var(--cw) / 2 - 10px), #000 calc(50% + var(--cw) / 2 + 30px));
  }
  html body::before { display: none; }   /* неподвижных пятен по бокам нет */
  .dsec { display: block; }
  html { scroll-padding-top: var(--hdr); }
}
@keyframes hdrIn { from { transform: translateY(-100%); opacity: 0; } }
@keyframes goldText { 50% { background-position: 100% 0; } }

/* ---------- Золотой свет за курсором (компьютер) ---------- */
.glow-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: fixed; z-index: 0; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(214,196,148,.14), transparent); transform: translate(var(--mx, -999px), var(--my, -999px)); transition: transform .25s ease-out; }
@media (hover: none) { .glow { display: none; } }

/* ---------- Заставка: золотой логотип на полсекунды ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #0b0b0b; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; animation: introOut .7s ease 1.05s forwards; }
.intro__logo { font-family: 'Forum', serif; font-size: 44px; letter-spacing: .4em; padding-left: .4em; background: linear-gradient(110deg, #8a7444, var(--gold-hi) 50%, #8a7444); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: introLogo 1.1s ease both; }
.intro__line { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); animation: introLine .9s ease .15s forwards; }
@keyframes introLogo { from { opacity: 0; letter-spacing: .8em; background-position: 100% 0; } to { opacity: 1; background-position: 0 0; } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
html:not(.js) .intro { display: none; }

/* ---------- Золотая волна при нажатии ---------- */
.ripple { position: absolute; z-index: 3; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(rgba(255,240,200,.9), rgba(214,196,148,0) 70%); pointer-events: none; animation: ripple .7s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
@media (min-width: 640px) {
  :root { --gap: 20px; }
  main { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; column-gap: var(--gap); align-items: start; padding: 0 24px; }
  .story { --col: min(calc((100cqw - var(--gap)) / 2), 520px); margin: 0; }
  #contacts { grid-column: 1 / -1; justify-self: center; }
  .burger { right: 24px; }
  body::before {
    content: ''; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
    background:
      radial-gradient(40% 30% at 20% 30%, rgba(214,196,148,.10), transparent 70%),
      radial-gradient(35% 30% at 82% 70%, rgba(214,196,148,.08), transparent 70%);
    animation: drift 18s ease-in-out infinite alternate;
  }

}
@keyframes sideGlow { to { background-position: 0 100%, 0 0; } }
@keyframes drift { to { transform: translate(4%, -3%) scale(1.06); } }


/* ---------- Вылетающие текстовые блоки ---------- */
.ent { z-index: 2; will-change: transform, opacity; }
.js .ent {
  opacity: 0;
  transition: opacity .7s ease, transform 1s cubic-bezier(.2,.9,.25,1.08), filter .9s ease, clip-path 1s cubic-bezier(.7,0,.2,1);
  transition-delay: var(--ed, 0ms);
}
.js .e-left  { transform: translateX(-38%); }
.js .e-right { transform: translateX(38%); }
.js .e-up    { transform: translateY(45%); }
.js .e-down  { transform: translateY(-45%); }
.js .e-zoom  { transform: scale(.55); }
.js .e-blur  { transform: scale(1.12); filter: blur(14px); }
.js .e-clip  { clip-path: inset(0 100% 0 0); opacity: 1; transform: translateX(-4%); }
.js .e-flip  { transform: perspective(500px) rotateX(-95deg); transform-origin: 50% 0; }
.js .e-skew  { transform: translateX(-30%) skewX(-22deg); }
.js .e-pop   { transform: scale(.2) rotate(-8deg); transition-timing-function: ease, cubic-bezier(.3,1.7,.5,1), ease, ease; }
.js .ent.go  { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .a-slide, .js .a-slide1, .js .a-grow, .js .ent { transform: none; opacity: 1; filter: none; clip-path: none; }
  .intro, .glow { display: none; }
}

/* ---------- Текстовый блок внизу (для людей и поисковиков) ---------- */
.seo { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 36px 22px 56px; color: #8e897f; font-size: 13px; line-height: 1.65; text-align: center; grid-column: 1 / -1; justify-self: center; }
.seo h2 { margin: 0 0 14px; font-family: 'Forum', serif; font-weight: 400; font-size: 22px; letter-spacing: .04em; color: var(--gold); }
.seo p { margin: 0 0 12px; }
.seo strong { color: #c9c3b5; font-weight: 500; }
.seo__tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seo__tags li { padding: 5px 12px; border: 1px solid rgba(214,196,148,.22); border-radius: 999px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #a39d90; }
