/* «Аура» — по сайту mymind: белая страница, огромный белый круг по центру сверху, вокруг — мягкое
   свечение (жёлто-оранжевое слева, кораллово-розовое справа, сиреневое ниже), чёрная крупная антиква,
   цветные «таблетки» с обводкой, меню с цветными точками, оранжевая кнопка справа;
   ниже — окно с главным снимком, размытыми карточками вокруг и круглыми полупрозрачными кнопками. */

:root {
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
  --ink: #16151a;
  --orange: #ff5b1f;
  --D: min(84vw, 128vh);            /* диаметр круга */
  --cy: calc(var(--D) * .02);       /* где центр круга относительно верха (половина за краем) */
  --winTop: 64vh;
  --swap-out: 320ms;
  --p-font: var(--sans); --p-radius: 24px; --p-accent: #e8604c; --p-btn-bg: var(--orange); --p-title-font: var(--serif); --p-title-weight: 500;
  --p-top: 86px; --p-right: 28px;
  --g-bg: #1e1a24; --g-accent: #ff7a3a;
}
html, body { background: #fff; }
body { font-family: var(--sans); color: var(--ink); }

/* ——— свечение и круг ——— */
.aura { position: fixed; z-index: 0; left: 50%; top: calc(var(--cy) - var(--D) * .62); width: calc(var(--D) * 1.32); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; filter: blur(42px) saturate(1.15); }
.aura i { position: absolute; border-radius: 50%; }
.a1 { left: 0; top: 18%; width: 52%; height: 70%; background: radial-gradient(closest-side, #ffb33a, rgba(255, 179, 58, 0)); transition: background 1.2s; }
.a2 { right: 0; top: 16%; width: 52%; height: 72%; background: radial-gradient(closest-side, #ff7f8f, rgba(255, 127, 143, 0)); }
.a3 { right: 4%; top: 46%; width: 46%; height: 50%; background: radial-gradient(closest-side, #e8bdf2, rgba(232, 189, 242, 0)); }
.a4 { left: 6%; top: 50%; width: 40%; height: 40%; background: radial-gradient(closest-side, var(--warm), rgba(255, 255, 255, 0)); opacity: .7; }
.circle { position: fixed; z-index: 1; left: 50%; top: calc(var(--cy) - var(--D) / 2); width: var(--D); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #fff; pointer-events: none; }

/* ——— верх ——— */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(26px + var(--sat)) clamp(18px, 4vw, 72px) 0; }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 700 21px/1 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.logo svg { width: 24px; height: 24px; }
.logo sup { font-size: .5em; margin-left: 1px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav button { font: 500 19px/1 var(--sans); color: #4a4850; opacity: .85; display: inline-flex; align-items: center; gap: 8px; }
.nav button i { width: 6px; height: 6px; border-radius: 50%; }
.nav button:hover, .nav button[aria-pressed="true"] { opacity: 1; color: var(--ink); }
.top-r { justify-self: end; display: flex; align-items: center; gap: 22px; }
.for { font: 500 17px/1 var(--sans); color: #6b6870; }
.cta-top { height: 46px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 17px/1 var(--sans); box-shadow: 0 10px 26px -12px var(--orange); }
body[data-mode="intro"] .cta-top, body[data-mode="finale"] .cta-top { visibility: hidden; }

/* ——— тексты в круге ——— */
.screen { position: fixed; z-index: 10; left: 0; right: 0; top: calc(var(--sat) + clamp(110px, 17vh, 190px)); bottom: calc(100vh - var(--winTop) + 12px); display: flex; justify-content: center; align-items: flex-start; padding: 0 6vw; }
.copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.6vh, 30px); width: 100%; max-width: 1200px; }
.head { margin: 0; width: 100%; font: 500 clamp(40px, 7.4vw, 132px)/.98 var(--serif); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.pills { margin: 0; max-width: 34em; font: 500 clamp(16px, 1.45vw, 22px)/2.1 var(--sans); color: #55525c; text-wrap: balance; }
.p { display: inline-block; padding: 1px 16px 3px; margin: 0 2px; border-radius: 999px; border: 1.5px solid currentColor; line-height: 1.45; white-space: nowrap; }
.p--o { color: #ef7d36; } .p--p { color: #dc5fa3; } .p--b { color: #6fb6e4; } .p--r { color: #e8604c; } .p--y { color: #e2b91d; }
.p:empty { display: none; }
.note { display: block; margin-top: 6px; font: 500 clamp(15px, 1.2vw, 18px)/1.5 var(--sans); color: #6b6870; }
.cta-main { height: 52px; padding: 0 30px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 18px/1 var(--sans); box-shadow: 0 14px 30px -14px var(--orange); transition: transform .2s var(--ease); }
.cta-main:hover { transform: translateY(-1px); }
[data-swap].is-out { transform: translateY(8px); filter: blur(4px); }

/* ——— окно со снимком ——— */
.window {
  position: fixed; z-index: 12; left: 50%; transform: translateX(-50%);
  top: var(--winTop); width: min(1330px, calc(100vw - 2 * clamp(14px, 11vw, 210px))); height: calc(100vh - var(--winTop) + 40px);
  border-radius: 12px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, #f4f2fb 0%, #dfe2f3 55%, #cdd3ee 100%);
  box-shadow: 0 0 0 1px rgba(30, 30, 60, .05), 0 30px 80px -40px rgba(60, 60, 120, .35);
}
.win-side { position: absolute; left: 14px; top: 34%; margin: 0; display: flex; align-items: center; gap: 8px; transform: rotate(90deg); transform-origin: left top; font: 600 15px/1 var(--sans); color: #8c8da6; white-space: nowrap; }
.win-side svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.tiles { position: absolute; inset: 0; z-index: 0; }
.tile { position: absolute; display: block; border-radius: 4px; background: #fff center / cover no-repeat; filter: blur(7px); opacity: .9; box-shadow: 0 8px 22px -10px rgba(40, 40, 80, .25); transition: left 1s var(--ease-film), top 1s var(--ease-film), width 1s var(--ease-film), height 1s var(--ease-film), background-image .6s; }
.tile--text { padding: 12px; font: 500 13px/1.4 var(--serif); color: #555; overflow: hidden; }
.center { position: absolute; z-index: 2; left: 50%; top: 9%; width: min(30%, 360px); aspect-ratio: 4 / 5; transform: translateX(-50%); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(40, 40, 90, .45); }
.center .ph.is-on img.is-ready { animation: none; }
.win-btns { position: absolute; z-index: 3; left: 50%; top: calc(9% + min(30vw, 360px) * 1.25 * .0 + 12px); transform: translateX(-50%); display: none; }
.tl { position: absolute; z-index: 3; right: 18px; top: 16px; }
.tl-line { display: none; }
.tl-track { gap: 22px; }
.tl-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #8c8da6; padding-top: 10px; }
.tl-pin { position: absolute; top: 0; left: 50%; width: 36px; height: 4px; border-radius: 0 0 4px 4px; margin-left: -18px; background: transparent; transition: background .3s; }
.tl-label { font: 600 15px/1 var(--sans); white-space: nowrap; }
.tl-num { display: none; }
.tl-dot.is-active { color: var(--ink); }
.tl-dot.is-active .tl-pin { background: var(--orange); }
body[data-mode="intro"] .tl { visibility: visible; opacity: 1; pointer-events: auto; }

/* в сценах окно поднимается выше, снимок крупнее — это главный экран */
body[data-mode="scene"] { --winTop: 46vh; }
.window, .screen { transition: top .9s var(--ease-film), height .9s var(--ease-film), bottom .9s var(--ease-film); }
body[data-mode="scene"] .center { top: 12%; width: min(34%, 420px); }
body[data-mode="scene"] .win-btns { display: flex; gap: 14px; top: auto; bottom: 10%; }
.win-btns button { width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 17px/1 var(--sans); color: #6c6d84; transition: background .25s, color .25s; }
.win-btns button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
body.is-sky .window { top: 0; width: 100vw; height: 100vh; border-radius: 0; opacity: 1 !important; visibility: visible !important; }
body.is-sky .center { top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; border-radius: 0; }
body.is-sky .tiles, body.is-sky .tl, body.is-sky .win-btns, body.is-sky .win-side { opacity: 0; pointer-events: none; }
.center { transition: top .9s var(--ease-film), width .9s var(--ease-film), height .9s var(--ease-film), left .9s var(--ease-film), border-radius .9s; }

/* ——— телефон ——— */
@media (max-width: 760px) {
  :root { --D: 150vw; --cy: 4vh; --winTop: 66svh; }
  body[data-mode="scene"] { --winTop: 52svh; }
  .top { grid-template-columns: 1fr auto; padding-top: calc(18px + var(--sat)); }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
  .nav button { font-size: 14px; gap: 6px; }
  .nav button[data-action="start"] { display: none; }
  .for { display: none; }
  .cta-top { height: 38px; padding: 0 18px; font-size: 15px; }
  .screen { top: calc(var(--sat) + 118px); padding: 0 20px; }
  .head { font-size: 40px; }
  .pills { font-size: 15px; line-height: 2; }
  .p { padding: 0 12px 2px; }
  .window { width: calc(100vw - 20px); }
  .center { width: 46%; top: 8%; }
  body[data-mode="scene"] .center { width: 52%; top: 7%; }
  body[data-mode="scene"] .win-btns { bottom: auto; top: calc(7% + 52vw * 1.25 - 40px); }
  .win-btns button { width: 66px; height: 66px; font-size: 13px; }
  .win-side { display: none; }
  .tl { left: 12px; right: 12px; top: auto; bottom: calc(14px + var(--sab)); }
  .tl-track { gap: 18px; }
  .tl-label { font-size: 13.5px; }
}
@media (max-height: 520px) {
  :root { --winTop: 70vh; }
  body[data-mode="scene"] { --winTop: 62vh; }
  .top { padding-top: calc(10px + var(--sat)); grid-template-columns: 1fr auto 1fr; }
  .nav { grid-column: auto; grid-row: auto; margin-top: 0; flex-wrap: nowrap; }
  .nav button { font-size: 13px; }
  .for { display: none; }
  .cta-top { height: 34px; padding: 0 16px; font-size: 14px; }
  .screen { top: calc(64px + var(--sat)); }
  .head { font-size: 30px; }
  .pills { display: none; }
  .note { display: none; }
  .win-btns, .win-side { display: none !important; }
  .tl { top: 10px; bottom: auto; }
  .center, body[data-mode="scene"] .center { top: 26%; width: 24%; }
}
