/* =========================================================
   LORKE — Restaurant Complex · Gyumri
   Палитра: травертин, тёмное дерево, латунь, бордо меню,
   индиго барной карты, красная плитка бара, мрамор.
   ========================================================= */
:root {
  --stone: #ece4d6;
  --stone-2: #e1d5c1;
  --paper: #f6f1e8;
  --ink: #1c1815;
  --ink-2: #2a2420;
  --wine: #7a2b2c;
  --wine-d: #3f1516;
  --tile: #b3282b;
  --indigo: #343a8e;
  --indigo-d: #14163b;
  --brass: #c6a15e;
  --brass-l: #e4cc93;
  --cream: #f2e8d3;
  --led: #e8cf98; /* тёплая подсветка арок (бежевый режим диодов) */
  --muted: rgba(28, 24, 21, .62);

  --serif: 'Cormorant Garamond', 'Noto Serif Armenian', 'Times New Roman', serif;
  --sans: 'Jost', 'Noto Sans Armenian', system-ui, sans-serif;
  --cond: 'Fira Sans Extra Condensed', 'Noto Sans Armenian', sans-serif;

  --gut: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --hs: 1; /* масштаб заголовков (меньше для армянского) */

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .03' numOctaves='4' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .36 0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}
html[lang="hy"] { --hs: .84; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--wine); color: var(--cream); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: clamp(90px, 13vw, 190px) 0; }
.sec--dark { background: var(--ink); color: var(--cream); }
.sec--indigo { background: var(--indigo-d); color: var(--cream); }
.sec--warm { background: #17130f; color: var(--cream); }
.sec__head { margin-bottom: clamp(48px, 7vw, 100px); max-width: 900px; }
.sec__head--c { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- type ---------- */
.kicker {
  font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 22px; display: inline-flex; align-items: center; gap: 14px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.sec__head--c .kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.kicker--light { color: var(--brass-l); }
.kicker--brass { color: var(--brass); }
.h2, .h-lead {
  font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em;
  font-size: calc(clamp(40px, 6.2vw, 96px) * var(--hs)); line-height: 1.02;
}
html[lang="hy"] .h2, html[lang="hy"] .h-lead { line-height: 1.15; }
.h-lead { font-size: calc(clamp(30px, 3.6vw, 56px) * var(--hs)); line-height: 1.16; }
.h2--light { color: var(--cream); }
.h2 em, .h-lead em { font-style: italic; color: var(--wine); }
.txt { font-size: clamp(16px, 1.15vw, 19px); color: var(--muted); max-width: 560px; margin: 28px 0 0; }
.txt--light { color: rgba(242, 232, 211, .72); }
.txt--c { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 30px; border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s, transform .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn--brass { background: linear-gradient(120deg, #b88f4b, #e7cf95 45%, #b4883f); color: var(--ink); isolation: isolate; }
.btn--brass::before { background: var(--ink); }
.btn--brass:hover { color: var(--brass-l); }
.btn--ghost { border: 1px solid rgba(242, 232, 211, .5); color: var(--cream); isolation: isolate; }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }
.btn--line { border: 1px solid currentColor; height: 42px; padding: 0 20px; font-size: 11px; isolation: isolate; }
.btn--line::before { background: linear-gradient(120deg, #b88f4b, #e7cf95 45%, #b4883f); }
/* при наведении — латунная заливка и тёмный текст: читается и на тёмной шапке, и на светлой */
.btn--line:hover { color: var(--ink); border-color: #c9a35f; }
.btn--dark { background: var(--ink); color: var(--cream); margin-top: 40px; isolation: isolate; }
.btn--dark::before { background: var(--wine); }
.btn--full { width: 100%; }
.lnk { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; cursor: pointer; }
.lnk:hover { color: var(--brass); }
.lnk--big { font-family: var(--serif); font-size: 30px; border: 0; }

/* ---------- arches ---------- */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--stone-2); isolation: isolate; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--round { border-radius: 999px 999px 18px 18px; }

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 90; height: 84px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut); color: var(--cream); transition: background .6s var(--ease), color .6s, height .6s var(--ease), transform .6s var(--ease);
}
/* фон шапки продолжается вверх за край экрана: на iPhone страница видна и под строкой состояния,
   без этого над шапкой оставалась полоса с текстом страницы */
.hdr::after { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; background: inherit; pointer-events: none; }
.hdr::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(10, 8, 7, .55), transparent); z-index: -1; transition: opacity .6s; }
.hdr.is-solid { background: var(--stone); color: var(--ink); height: 68px; }
.hdr.is-solid::before { opacity: 0; }
.hdr.is-dark { background: #14110f; color: var(--cream); }
/* при прокрутке вниз шапка не уезжает, а ужимается в узкую планку. Safari на iOS 26 красит строку состояния
   в цвет закреплённого элемента у верхнего края; уехавшую шапку он перестаёт замечать, и над вернувшейся шапкой была видна страница */
.hdr.is-compact { height: 50px; }
.hdr__logo svg { display: block; width: 50px; height: 66px; fill: currentColor; transition: height .6s var(--ease), width .6s var(--ease); }
.hdr.is-solid .hdr__logo svg { width: 40px; height: 52px; }
.hdr.is-compact .hdr__logo svg { width: 28px; height: 37px; }
.hdr__nav { display: flex; gap: clamp(16px, 2vw, 34px); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.hdr__nav a { position: relative; padding: 6px 0; }
.hdr__nav a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-on::after { transform: translateX(-50%) scale(1); }
.hdr__right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 2px; font-size: 11px; letter-spacing: .14em; }
.lang button { padding: 6px 8px; opacity: .5; transition: opacity .3s; font-weight: 500; }
.lang button.is-on { opacity: 1; }
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; left: 17px; }
.mnav-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.mnav-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); left: 9px; }

.mnav { position: fixed; inset: 0; z-index: 80; background: var(--indigo-d); color: var(--cream); display: flex; justify-content: center; align-items: flex-start; padding: 84px 22px 0; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.mnav-open .mnav { clip-path: inset(0); }
/* когда меню открыто полностью — без clip-path, чтобы Safari красил панели браузера в синий */
.mnav-open .mnav.is-full { clip-path: none; }
/* арка по высоте видимой области (svh), с запасом под нижнюю панель Safari */
.mnav__arch { width: min(420px, 100%); height: calc(100svh - 84px - 28px - env(safe-area-inset-bottom) * 1.5); border: 1px solid rgba(228, 204, 147, .45); border-radius: 999px 999px 8px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: clamp(40px, 9svh, 60px) 20px clamp(16px, 3svh, 30px); }
.mnav__pend { position: absolute; top: clamp(12px, 2.6svh, 22px); left: 50%; width: min(62%, 26svh); transform: translateX(-50%); color: var(--brass-l); opacity: .8; }
.mnav nav { display: flex; flex-direction: column; align-items: center; gap: clamp(0px, .9svh, 8px); font-family: var(--serif); font-size: calc(clamp(24px, 4.3svh, 34px) * var(--hs)); line-height: 1.3; margin-top: clamp(50px, 11svh, 90px); }
.lang--m { margin-top: clamp(12px, 3svh, 30px); font-size: 13px; flex: none; }
.mnav-open .hdr { background: var(--indigo-d); color: var(--cream); box-shadow: none; transform: none; }
.mnav-open .hdr::before { opacity: 0; }
.mnav-open .hdr.is-compact { height: 66px; }
.mnav-open .hdr.is-compact .hdr__logo svg { width: 40px; height: 52px; }
html.mnav-lock { background: var(--indigo-d); }

/* =========================================================
   ENTRY — дверь
   ========================================================= */
.entry { position: relative; height: 100vh; height: 100svh; }
/* сцена «прилипает» средствами CSS (sticky), а не JS-пином: на iOS так нет дёрганий при инерционной прокрутке */
html.js .entry { height: 290vh; height: 290svh; }
.entry__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0b0908; }
.entry__inside { position: absolute; inset: 0; }
/* холл скрыт до начала открытия дверей (показывает анимация входа); без JS/GSAP класса js нет — холл виден */
html.js .entry__inside { visibility: hidden; }
.entry__hall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.35); }
.entry__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(10, 8, 7, .4) 100%), linear-gradient(transparent 42%, rgba(12, 9, 8, .5) 64%, rgba(12, 9, 8, .88)); }
.entry__welcome { text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.entry__welcome { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 110px); text-align: center; color: var(--cream); padding: 0 var(--gut); opacity: 0; }
.entry__title { font-family: var(--serif); font-weight: 300; font-size: calc(clamp(46px, 8vw, 132px) * var(--hs)); line-height: .98; margin: 0; letter-spacing: -.015em; }
html[lang="hy"] .entry__title { line-height: 1.12; }
.entry__welcome .kicker::before { display: none; }
.entry__sub { max-width: 620px; margin: 22px auto 0; font-size: clamp(15px, 1.2vw, 19px); color: rgba(242, 232, 211, .8); }
.entry__ctas { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.portal {
  position: absolute; inset: 0; will-change: transform;
  --dh: min(70svh, 128vw); --dw: calc(var(--dh) * .5); --r: calc(var(--dw) / 2);
  --top: calc((100svh - var(--dh)) / 2 + 5svh); --left: calc((100vw - var(--dw)) / 2);
  transform-origin: 50% calc(var(--top) + var(--dh) * .55);
}
.portal__wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 58% at 50% 56%, rgba(255, 236, 200, .32), transparent 70%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(40, 30, 20, .55) 100%),
    repeating-linear-gradient(180deg, transparent 0 calc(11svh - 1px), rgba(90, 72, 50, .22) calc(11svh - 1px) 11svh),
    /* текстура камня запечена в картинку: SVG-шум (feTurbulence) iOS пересчитывал при каждом
       изменении масштаба портала — отсюда были рывки при открытии дверей */
    url(../assets/img/wall-stone.jpg), #d9cfbd;
  background-size: auto, auto, auto, 900px 600px, auto;
  -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 calc(var(--r) - .5px), transparent var(--r)), linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-image: radial-gradient(circle at 50% 100%, #000 calc(var(--r) - .5px), transparent var(--r)), linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-size: var(--dw) var(--r), var(--dw) calc(var(--dh) - var(--r) + 1px), 100% 100%;
  mask-size: var(--dw) var(--r), var(--dw) calc(var(--dh) - var(--r) + 1px), 100% 100%;
  -webkit-mask-position: var(--left) var(--top), var(--left) calc(var(--top) + var(--r)), 0 0;
  mask-position: var(--left) var(--top), var(--left) calc(var(--top) + var(--r)), 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.portal__frame {
  position: absolute; left: calc(var(--left) - 30px); top: calc(var(--top) - 30px); width: calc(var(--dw) + 60px); height: calc(var(--dh) + 30px);
  border: 30px solid transparent; border-bottom: 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(#efe7d9, #d7ccb8) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.portal__frame::before, .portal__frame::after { content: ''; position: absolute; border-radius: 999px 999px 0 0; border: 1px solid rgba(120, 95, 60, .35); border-bottom: 0; pointer-events: none; }
.portal__frame::before { inset: -18px -18px 0; }
.portal__frame::after { inset: -6px -6px 0; border-color: rgba(198, 161, 94, .7); }
.portal__sign { position: absolute; left: 0; right: 0; top: calc(var(--top) - 30px - 8svh); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #6b5640; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; font-weight: 500; }
.portal__hy { font-family: var(--cond); font-size: 22px; letter-spacing: .5em; color: var(--wine); font-weight: 300; margin-right: -.5em; }
.portal__rule { width: 40px; height: 1px; background: var(--brass); }
.portal__lamp { position: absolute; top: calc(var(--top) + var(--dh) * .28); width: 14px; height: 54px; border-radius: 8px; background: linear-gradient(#f5e2b5, #b9914f); box-shadow: 0 0 30px 10px rgba(255, 214, 150, .45), 0 0 120px 40px rgba(255, 210, 140, .2); }
.portal__lamp--l { left: calc(var(--left) - 30px - 9vw); } .portal__lamp--r { right: calc(var(--left) - 30px - 9vw); }
.portal__lamp::after { content: ''; position: absolute; left: 50%; top: 54px; width: 1px; height: 24px; background: #8b7350; }
.portal__floor { position: absolute; left: 0; right: 0; top: calc(var(--top) + var(--dh)); bottom: 0; background: linear-gradient(#b9ab95, #8c7f6d); }
.portal__floor::before { content: ''; position: absolute; left: calc(var(--left) - 60px); width: calc(var(--dw) + 120px); top: 0; height: 26px; background: linear-gradient(#5a4f45, #2a241f); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }

.doors { position: absolute; left: var(--left); top: var(--top); width: var(--dw); height: var(--dh); perspective: 1800px; perspective-origin: 50% 60%; }
.doors__light { position: absolute; inset: 0; border-radius: 999px 999px 0 0; background: radial-gradient(ellipse at 50% 60%, #fff6df, #f5d99e 40%, #c58d45 100%); opacity: 0; }
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; will-change: transform; }
.leaf--l { left: 0; transform-origin: 0 50%; }
.leaf--r { right: 0; transform-origin: 100% 50%; }
.leaf__face {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 12%, transparent 88%, rgba(0, 0, 0, .4)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px, rgba(0, 0, 0, .05) 5px 6px, transparent 6px 11px),
    linear-gradient(170deg, #362d27, #221c18 55%, #1a1512);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.leaf--l .leaf__face { border-radius: 999px 0 0 0; }
.leaf--r .leaf__face { border-radius: 0 999px 0 0; }
.leaf__orn { position: absolute; bottom: 0; top: 0; width: 200%; }
.leaf--l .leaf__orn { left: 0; } .leaf--r .leaf__orn { left: -100%; }
.leaf__orn svg { width: 100%; height: 100%; stroke: url(#brassDoor); }
.leaf__orn .fl { fill: url(#brassDoor); }
.fl { fill: currentColor; stroke: none; }
.doors__seam { position: absolute; left: 50%; top: 4%; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(transparent, #ffe6b0 30%, #ffd58a 80%, transparent); box-shadow: 0 0 18px 4px rgba(255, 210, 140, .5); opacity: 0; transition: opacity .6s; }
body.is-ready .doors__seam { opacity: .9; }

.entry__hint { position: absolute; left: 0; right: 0; bottom: 3.2svh; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(242, 232, 211, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; font-weight: 500; opacity: 0; transition: opacity .6s; z-index: 3; }
body.is-ready .entry__hint { opacity: 1; }
.entry__hint p { margin: 0; }
/* «Войти» — латунная табличка с арочным верхом на тёмной двери */
.entry__enter { position: relative; height: 44px; padding: 0 30px 0 calc(30px + .34em); border-radius: 999px 999px 6px 6px; letter-spacing: .34em; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--ink); text-shadow: none;
  background: linear-gradient(120deg, #b88f4b, #ecd59c 45%, #b4883f);
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .35), 0 12px 26px -10px rgba(0, 0, 0, .8), 0 0 34px rgba(255, 214, 150, .35);
  transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease); }
.entry__enter:hover { color: var(--brass-l); background: var(--ink); box-shadow: 0 0 0 1px rgba(228, 204, 147, .7), 0 12px 26px -10px rgba(0, 0, 0, .8), 0 0 44px rgba(255, 214, 150, .5); transform: translateY(-2px); }
.entry__line { color: var(--brass-l); }
.entry__line { width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* статичный режим (без анимаций) */
.entry--static .portal, .entry--static .entry__hint { display: none; }
.entry--static .entry__welcome { opacity: 1; }
.entry--static .entry__hall { transform: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.about__side .txt { margin-top: 0; }
.stats { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(28, 24, 21, .14); }
.stats li { padding: 22px 0 0; display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(56px, 6vw, 92px); line-height: .9; color: var(--wine); }
.stats span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; }
.feats { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.feats li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.feats i { width: 14px; height: 20px; color: var(--brass); flex: none; }
.feats i svg { width: 100%; height: 100%; }
.corner { position: absolute; width: clamp(70px, 9vw, 130px); color: var(--brass); opacity: .75; pointer-events: none; }
.corner svg { width: 100%; height: auto; display: block; }
.corner--tl { top: 32px; left: 32px; }
.corner--tr { top: 32px; right: 32px; transform: scaleX(-1); }
.corner--br { bottom: 22px; right: 22px; transform: scale(-1); }

.name { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; margin-top: clamp(80px, 11vw, 160px); }
.name__word { font-family: 'Noto Sans Armenian', var(--cond); font-stretch: 62.5%; font-weight: 300; font-size: clamp(90px, 15vw, 240px); line-height: .85; color: var(--wine); letter-spacing: -.01em; }
.name__p { font-family: var(--serif); font-size: calc(clamp(22px, 2.2vw, 34px) * var(--hs)); line-height: 1.35; margin: 0; max-width: 760px; }

.about__pano { margin: clamp(80px, 10vw, 150px) 0 0; padding: 0 var(--gut); }
.about__pano-in { height: clamp(320px, 62vw, 820px); overflow: hidden; border-radius: 50vw 50vw 0 0 / 22vw 22vw 0 0; }
.about__pano img { width: 100%; height: 120%; object-fit: cover; }

/* marquee */
.marquee { background: var(--wine); color: var(--cream); overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(228, 204, 147, .25); }
.marquee__track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: calc(clamp(28px, 3.4vw, 52px) * var(--hs)); white-space: nowrap; display: inline-flex; align-items: center; gap: 38px; padding-right: 38px; }
.marquee__track i { width: 16px; height: 24px; color: var(--brass-l); display: inline-block; }
@keyframes mq { to { transform: translateX(-50%); } }

/* =========================================================
   SPACES
   ========================================================= */
.spaces__grid { display: grid; grid-template-columns: 1fr minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); }
.spaces__list { list-style: none; margin: 0; padding: 0; counter-reset: sp; }
.sp { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid rgba(28, 24, 21, .12); padding: 40px 0; opacity: .35; transition: opacity .6s var(--ease); }
.sp.is-on { opacity: 1; }
.sp__n { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 20px; color: var(--wine); }
.sp__t { font-family: var(--serif); font-weight: 300; font-size: calc(clamp(40px, 5vw, 80px) * var(--hs)); line-height: 1.05; margin: 10px 0 18px; }
.sp__d { color: var(--muted); max-width: 470px; margin: 0; }
.sp__tag { display: inline-flex; margin-top: 22px; align-self: flex-start; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--indigo); border: 1px solid currentColor; padding: 7px 14px; border-radius: 999px; }
.sp__media { display: none; }
.spaces__frame { position: sticky; top: 13vh; height: 76vh; align-self: start; }
.spaces__frame .arch { height: 100%; box-shadow: 0 50px 90px -50px rgba(40, 25, 10, .6); }
.spaces__frame .arch::after { content: ''; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(242, 232, 211, .55); border-bottom: 0; border-radius: inherit; z-index: 3; pointer-events: none; }
.spimg { position: absolute; inset: 0; opacity: 0; transform: scale(1.12); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.spimg.is-on { opacity: 1; transform: none; z-index: 2; }
.spimg img { width: 100%; height: 100%; object-fit: cover; }
.spaces__counter { position: absolute; right: 0; bottom: -40px; font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 18px; color: var(--muted); }

.soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: var(--wine); color: var(--brass-l); text-align: center; }
.soon > div { width: 56%; max-width: 280px; }
.soon span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream); }
.soon--indigo { background: radial-gradient(ellipse at 50% 30%, #3f46a3, var(--indigo) 60%, #262a6e); }
.soon--ink { background: radial-gradient(ellipse at 50% 30%, #3a302a, var(--ink)); }
.soon .soon__fan { width: 50%; height: 60%; }
.soon .soon__fan svg { width: 100%; height: 100%; }

/* =========================================================
   BARS
   ========================================================= */
.bars { background: var(--wine-d); color: var(--cream); overflow: hidden; }
.bars__tiles {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='84'%3E%3Cg stroke='%23f1d9c4' stroke-opacity='.35' stroke-width='1.2'%3E%3Cpath fill='%23a8282a' d='M10 -3l10 6v36l-10 6l-10 -6v-36z'/%3E%3Cpath fill='%239b2224' d='M10 39l10 6v36l-10 6l-10 -6v-36z'/%3E%3Cpath fill='%23b42d2e' d='M30 18l10 6v36l-10 6l-10 -6v-36z'/%3E%3Cpath fill='%238e1f21' d='M30 -24l10 6v36l-10 6l-10 -6v-36z'/%3E%3Cpath fill='%23a52628' d='M30 60l10 6v36l-10 6l-10 -6v-36z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%);
}
.bars .wrap { position: relative; }
/* без большого заголовка: только «Бары» над фото, фото ближе к началу раздела */
.bars.sec { padding-top: clamp(70px, 8vw, 120px); }
.bars .sec__head { margin-bottom: clamp(30px, 3.6vw, 52px); }
.bars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1100px; margin: 0 auto; }
.barcard .arch { aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px rgba(228, 204, 147, .3), 0 60px 100px -50px #000; }
/* нижний бар: красный круг потолка (верхние 17% фото) стоит по центру и всегда касается вершины арки.
   Фото прижато к верху, сдвиг при прокрутке мягче (data-speed="4": ±4%, масштаб 1.16): верх фото ходит в пределах
   −12…−4% высоты арки, поэтому над красным кругом никогда не видно белого потолка, а сам круг всегда в кадре */
.arch--chandelier img { object-position: 50% 0; }
.barcard__body { padding: 30px 6px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; }
.barcard__n { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 26px; color: var(--brass-l); grid-row: span 2; line-height: 1.3; }
.barcard h3 { font-family: var(--serif); font-weight: 300; font-size: calc(clamp(30px, 3vw, 46px) * var(--hs)); margin: 0; line-height: 1.1; }
.barcard p { margin: 10px 0 0; color: rgba(242, 232, 211, .7); max-width: 440px; }

/* =========================================================
   EVENTS
   ========================================================= */
.events { overflow: hidden; }
.events::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 45% at 50% 42%, rgba(232, 200, 140, .13), transparent 70%), linear-gradient(#1c1712, #120f0c); }
.events .wrap { position: relative; }
.events__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: clamp(60px, 8vw, 110px); }
.events__top .txt { margin: 0; }
.events__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; max-width: 1100px; margin: 0 auto; }
.glowarch { position: relative; margin: 0; }
.glowarch .arch { aspect-ratio: 1 / 1.12; border-radius: 999px 999px 0 0; }
/* сцена большого зала: светящаяся арка на фото (центр 534×718 px, радиус 379 px в кадре 1085×1221)
   встаёт концентрично вырезу — сразу за золотой рамкой идёт голубое свечение. --k: дуга чуть внутри края выреза */
.arch.arch--stage img {
  --k: .965; position: absolute; left: 0; top: 0; height: auto; max-width: none; object-fit: fill;
  width: calc(1085 / 379 * 50% * var(--k));
  margin-left: calc(50% - 534 / 379 * 50% * var(--k));
  margin-top: calc(50% - 718 / 379 * 50% * var(--k));
}
.glowarch::before { content: ''; position: absolute; inset: -14px -14px 0; border: 2px solid var(--led); border-bottom: 0; border-radius: 999px 999px 0 0; box-shadow: 0 0 30px rgba(245, 210, 145, .65), 0 0 70px rgba(245, 210, 145, .22), inset 0 0 24px rgba(245, 210, 145, .32); z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 75%); mask-image: linear-gradient(#000 35%, transparent 75%); }
.evlist { list-style: none; padding: 0; margin: clamp(70px, 9vw, 130px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(242, 232, 211, .16); }
.evlist li { padding: 34px 26px 10px 0; border-right: 1px solid rgba(242, 232, 211, .1); margin-right: 26px; }
.evlist li:last-child { border: 0; margin: 0; }
.evlist__n { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; color: var(--brass); font-size: 18px; }
.evlist h3 { font-family: var(--serif); font-weight: 400; font-size: calc(clamp(24px, 2vw, 32px) * var(--hs)); margin: 10px 0 12px; line-height: 1.15; }
.evlist p { margin: 0; font-size: 15px; color: rgba(242, 232, 211, .65); }

/* =========================================================
   GAZEBO
   ========================================================= */
.gz { background: linear-gradient(#f3ecdf, var(--stone) 60%); overflow: hidden; padding-top: 0; }
.gz__scene { position: relative; height: clamp(300px, 46vw, 640px); color: #8a6a3a; }
.gz__art { position: absolute; inset: 0; }
.gz__art svg { width: 100%; height: 100%; }
.gz__art .refl { opacity: .28; }
.gz__art .lf { stroke-width: 1.3; }
.gz__art .bulb { fill: #d9a54a; stroke: none; }
.gz__scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--stone)); }
@keyframes twinkle { 50% { opacity: .35; } }
.gz__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; margin-top: clamp(30px, 5vw, 70px); }
.gz__pts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; }
.gz__pts li { padding: 14px 0; border-bottom: 1px solid rgba(28, 24, 21, .12); font-family: var(--serif); font-size: calc(24px * var(--hs)); display: flex; align-items: center; gap: 16px; }
.gz__pts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.gz__photo { position: relative; margin: 0; aspect-ratio: 1; }
.gz__ring { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; box-shadow: 0 60px 100px -60px rgba(30, 30, 60, .6); }
.gz__ring img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.gz__ring2 { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--brass); }
.gz__ring2::before { content: ''; position: absolute; inset: 3.5%; border-radius: 50%; border: 1px dashed rgba(198, 161, 94, .6); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gz__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 44px); margin-top: clamp(80px, 10vw, 150px); }
.gz__strip .arch { aspect-ratio: 3 / 4; }
.gz__strip figure { margin: 0; }
.gz__strip figure:nth-child(2) { transform: translateY(-60px); }
.gz__strip figcaption { margin-top: 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   MENU — обложки по оригиналам, книга-меню из текста
   ========================================================= */
.menu { color: var(--cream); overflow: hidden; overflow: clip; }
.menu__marble { position: absolute; inset: 0; }
.menu { background: #161514; }
/* мрамор рисует js/marble.js (WebGL), без WebGL остаётся тёмный фон раздела */
.menu__marble canvas, .book3d__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mcover figcaption span { color: rgba(242, 232, 211, .78); }
.menu__marble::before, .menu__marble::after { content: ''; position: absolute; left: 0; right: 0; height: 140px; z-index: 1; pointer-events: none; }
.menu__marble::before { top: 0; background: linear-gradient(rgba(22, 21, 20, .9), transparent); }
.menu__marble::after { bottom: 0; background: linear-gradient(transparent, rgba(22, 21, 20, .9)); }
.menu .wrap { position: relative; }
:root { --k-red: #7d2e2a; --k-ink: #3a1c1a; --k-paper: #f2ede3; --b-ind: #3a3d8c; --b-paper: #f5f0e5; --m-cream: #f4e7c6; }

.mcovers { display: flex; justify-content: center; align-items: flex-end; gap: clamp(40px, 8vw, 140px); }
.mcover { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mcover figcaption { position: relative; margin-top: 46px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 300px; }
.mcover figcaption > * { position: relative; }
/* тень под подписью: золото прожилок не спорит с текстом */
.mcover figcaption::before { content: ''; position: absolute; left: 50%; top: 50%; width: 150%; height: 170%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(10, 9, 8, .7), rgba(10, 9, 8, .3) 62%, transparent); pointer-events: none; }
.mcover figcaption b { font-family: var(--serif); font-weight: 400; font-size: calc(30px * var(--hs)); line-height: 1.1; }
.mcover figcaption span { font-size: 14px; color: rgba(242, 232, 211, .62); line-height: 1.5; }
.mcover figcaption .lnk { margin-top: 8px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-l); }
.menu__text { text-align: center; margin: 26px 0 0; font-size: 14px; letter-spacing: .08em; color: var(--brass-l); }
.menu__note { text-align: center; margin: clamp(50px, 6vw, 80px) 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 232, 211, .45); }

/* обложка кухни: бордовая папка с заклёпками */
.kcover { position: relative; display: block; width: clamp(220px, 24vw, 330px); aspect-ratio: 1 / 1.43; background: var(--k-red); border-radius: 3px 6px 6px 3px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 255, 255, .05) inset; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.kcover::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--noise); background-size: 220px; opacity: .22; mix-blend-mode: multiply; }
/* обложка в разделе «Меню» — крышка книги: при наведении приоткрывается и видна первая страница */
.mbook { position: relative; display: block; perspective: 1700px; perspective-origin: 70% 50%; transition: transform .7s var(--ease); }
.mbook--k { width: clamp(220px, 24vw, 330px); aspect-ratio: 1 / 1.43; }
.mbook--b { width: clamp(170px, 17vw, 236px); aspect-ratio: 1 / 2.25; }
.mbook__page { position: absolute; inset: 0; text-align: left; }
.mbook__page > .pg { inset: auto; left: 0; top: 0; width: calc(100% / var(--ps, 1)); height: calc(100% / var(--ps, 1)); transform: scale(var(--ps, 1)); transform-origin: 0 0; }
.mbook--k .mbook__page { border-radius: 3px 6px 6px 3px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); }
.mbook--b .mbook__page .pg--b { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); }
.mbook__lid { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.6, .05, .25, 1); }
.mbook__lid > .kcover, .mbook__lid > .bcover, .mbook__in { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* mix-blend-mode ломает скрытие обратной стороны в Safari — как и в книге */
.mbook .kcover::before, .mbook .bcover::before { mix-blend-mode: normal; opacity: .1; }
/* внутренняя сторона обложки */
.mbook__in { transform: rotateY(180deg); }
.mbook--k .mbook__in { border-radius: 6px 3px 3px 6px; background: linear-gradient(90deg, #5e211e, var(--k-red) 70%, #6a2622); box-shadow: inset 0 0 0 6px #6c2723, inset 0 0 0 7px rgba(244, 231, 198, .35); }
.mbook--b .mbook__in { border-radius: 50% 50% 3% 3% / 22.2% 22.2% 1.4% 1.4%; background: linear-gradient(90deg, #2c2e6d, var(--b-ind) 70%, #33357c); box-shadow: inset 0 0 0 1px rgba(244, 231, 198, .3); }
@media (hover: hover) {
  .mbook:hover { transform: translateY(-6px) scale(1.12); }
  .mbook:hover .mbook__lid, .mbook:focus-visible .mbook__lid { transform: rotateY(-118deg); }
}
.kcover__rivets { position: absolute; left: 3.6%; top: 7%; bottom: 7%; display: flex; flex-direction: column; justify-content: space-between; }
.kcover__rivets i { width: clamp(7px, .8vw, 11px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e6c98a, #8a6a34 60%, #4f3a1a); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.kcover__frame { position: absolute; inset: 4% 4% 4% 11%; background: var(--m-cream); }
.kcover__frame::after { content: ''; position: absolute; inset: 1.5px; background: var(--k-red); border-radius: 9% / 6.3%; }
.kcover__fan { position: absolute; left: 22%; width: 70%; top: 13%; height: 46%; fill: var(--m-cream); }
.kcover__logo { position: absolute; left: 44%; width: 26%; top: 64%; height: 22%; fill: var(--m-cream); }
.kcover--back .kcover__frame { left: 4%; }
.kcorner { position: absolute; width: 17%; color: var(--m-cream); }
.kcorner svg { display: block; width: 100%; }
.kcorner--0 { left: 7%; top: 5%; transform: scaleY(-1); }
.kcorner--1 { right: 7%; top: 5%; transform: scale(-1, -1); }
.kcorner--2 { left: 7%; bottom: 5%; }
.kcorner--3 { right: 7%; bottom: 5%; transform: scaleX(-1); }

/* обложка бара: синяя арка с подвесками */
.bcover { position: relative; display: block; text-align: center; width: clamp(170px, 17vw, 236px); aspect-ratio: 1 / 2.25; background: var(--b-ind);
  border-radius: 50% 50% 3% 3% / 22.2% 22.2% 1.4% 1.4%; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); color: var(--m-cream); transition: transform .7s var(--ease); }
.bcover::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--noise); background-size: 220px; opacity: .2; mix-blend-mode: multiply; }
.bcover__frame { position: absolute; inset: 0; color: var(--m-cream); }
.bcover__frame svg { display: block; width: 100%; height: 100%; }
.bcover__top { position: absolute; left: 0; right: 0; top: 0; }
.bcover__bot { position: absolute; left: 0; right: 0; bottom: 0; }
.bcover__top svg, .bcover__bot svg { display: block; width: 100%; }
.bcover__logo { position: absolute; left: 25%; width: 40%; top: 38.8%; height: 23.25%; fill: var(--m-cream); }
.bcover__label { position: absolute; left: 0; right: 0; top: 68.1%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; font-family: 'Montserrat', 'Noto Sans Armenian', sans-serif; }
.bcover__label b { font-size: clamp(8px, .72vw, 10.5px); font-weight: 600; letter-spacing: .08em; }
.bcover__label small { font-size: clamp(6.5px, .58vw, 8.5px); font-weight: 500; letter-spacing: .06em; }

/* ---------- книга ---------- */
.book3d { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .6s var(--ease), visibility 0s .6s; --r: .707; }
.book3d--bar { --r: .4444; }
.book3d.is-open { visibility: visible; opacity: 1; transition: opacity .6s var(--ease); }
.book3d__bg { position: absolute; inset: 0; background: #121110; }
.book3d__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(12, 12, 11, .1), rgba(10, 10, 9, .6)); }
.book3d__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: center; align-items: center; z-index: 3; }
.book3d__lang { display: flex; padding: 4px; border-radius: 999px; background: rgba(12, 12, 13, .55); border: 1px solid rgba(242, 232, 211, .18); }
.book3d__lang button { padding: 9px 16px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .14em; color: rgba(242, 232, 211, .65); transition: all .3s; }
.book3d__lang button.is-on { background: var(--m-cream); color: var(--ink); }
.book3d__x { position: absolute; right: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242, 232, 211, .35); background: rgba(12, 12, 13, .55); color: var(--cream); font-size: 24px; line-height: 1; }
.book3d__scene { position: relative; perspective: 2600px; --pw: min(43vw, calc((100svh - 190px) * var(--r))); width: calc(var(--pw) * 2); height: calc(var(--pw) / var(--r)); margin-top: 10px; }
.book3d__book { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease); }
/* --z разводит листы по глубине на доли пикселя: без этого Safari сортирует совпадающие плоскости как попало
   и во время поворота показывает куски соседних страниц */
.sheet { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(var(--z, 0px)) rotateY(0deg); transition: transform 1.2s cubic-bezier(.6, .05, .25, 1); cursor: pointer; }
.sheet.is-flipped { transform: translateZ(var(--z, 0px)) rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; transform: translateZ(0); }
.face--back { transform: rotateY(180deg) translateZ(0); }
.face--meas { visibility: hidden; pointer-events: none; width: var(--pw); height: calc(var(--pw) / var(--r)); left: 0; }
.face--blank { background: transparent; }
.face > .kcover, .face > .bcover { position: absolute; inset: 0; width: 100%; height: 100%; }
/* внутри книги шум без mix-blend-mode: смешивание слоёв ломает скрытие обратной стороны листа в Safari */
.face .kcover::before, .face .bcover::before, .face .pg--b::before { mix-blend-mode: normal; opacity: .1; }
.face > .kcover { border-radius: 2px 6px 6px 2px; }
.face--back > .kcover { border-radius: 6px 2px 2px 6px; }
.book3d__ctrl { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--cream); font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: .14em; font-variant-numeric: lining-nums tabular-nums; z-index: 3; }
#bookPage { min-width: 64px; text-align: center; }
.book3d__nav { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 232, 211, .35); background: rgba(12, 12, 13, .5); font-size: 22px; line-height: 1; padding-bottom: 3px; }

/* страница */
.pg { position: absolute; inset: 0; container-type: size; }
.pg__body { position: absolute; display: flex; flex-direction: column; overflow: hidden; }
.pg__foot { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: lining-nums tabular-nums; }
.mi { display: flex; justify-content: space-between; align-items: baseline; gap: 4cqw; }
.mi__t { display: flex; flex-direction: column; min-width: 0; }
.mi__p { white-space: nowrap; flex: none; font-variant-numeric: lining-nums tabular-nums; }

/* — кухня: кремовая бумага, бордовая рамка — */
.pg--k { background: var(--k-paper); color: var(--k-ink); font-family: 'Fira Sans', 'Noto Sans Armenian', sans-serif; border-radius: 2px 5px 5px 2px; box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .35); }
.face--back .pg--k { border-radius: 5px 2px 2px 5px; box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, .35); }
.pg--k::before { content: ''; position: absolute; inset: 4.2% 4.5%; background: var(--k-red); }
.pg--k::after { content: ''; position: absolute; inset: calc(4.2% + 1.5px) calc(4.5% + 1.5px); background: var(--k-paper); border-radius: 6% / 4.2%; }
.pg--k .pg__body, .pg--k .pg__foot, .pg--k > p, .pg--k > svg, .pg--k > small { z-index: 1; }
.pg--k .pg__body { inset: 10% 11% 10% 11%; gap: max(6px, 1.7cqw); }
.pg--k .pg__foot { bottom: 6%; padding: 0 11%; font-size: max(9px, 1.7cqw); letter-spacing: .06em; color: rgba(58, 28, 26, .55); }
.pg--k .mh { margin-top: max(6px, 2.2cqw); padding-bottom: max(4px, 1cqw); border-bottom: 1px solid rgba(125, 46, 42, .25); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2.2cqw; }
.pg--k .mh:first-child { margin-top: 0; }
.pg--k .mh b { font-size: max(12px, 2.9cqw); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--k-red); }
.pg--k .mh small { font-size: max(9.5px, 2cqw); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: rgba(58, 28, 26, .45); }
.pg--k .mh i { font-style: normal; font-size: max(9.5px, 1.9cqw); color: rgba(58, 28, 26, .5); }
.pg--k .mi b { font-size: max(12px, 2.65cqw); font-weight: 600; line-height: 1.25; }
.pg--k .mi span { font-size: max(10px, 2cqw); line-height: 1.35; color: rgba(58, 28, 26, .66); margin-top: .2em; }
.pg--k .mi__p { font-size: max(12px, 2.65cqw); font-weight: 600; color: var(--k-red); }

/* — бар: арочные страницы, синие линии и подвески — */
.face--bar { overflow: visible; }
.pg--b { background: var(--b-paper); color: var(--b-ind); font-family: 'Montserrat', 'Noto Sans Armenian', sans-serif; border-radius: 50% 50% 2% 2% / 22.2% 22.2% 1% 1%; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.pg--b::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--noise); background-size: 220px; opacity: .14; mix-blend-mode: multiply; }
.pg--b::after { content: ''; position: absolute; inset: 3% 5% 3.6%; border: 1.5px solid var(--b-ind); border-radius: 50% 50% 6% 6% / 21% 21% 3% 3%; }
.pg--b .pg__orn, .pg--b .pg__body, .pg--b .pg__foot, .pg--b > p, .pg--b > svg { z-index: 1; }
.pg--b .pg__orn { position: absolute; left: 0; right: 0; top: 0; }
.pg--b .pg__orn svg { display: block; width: 100%; }
.pg--b .pg__body { inset: 21% 13% 9% 13%; gap: max(5px, 1.5cqw); }
.pg--b .pg__foot { bottom: 5.4%; padding: 0 14%; font-size: max(8.5px, 2.4cqw); color: rgba(59, 62, 155, .6); }
.pg--b .mh { margin-top: max(8px, 3.4cqw); display: flex; flex-direction: column; line-height: 1.2; }
.pg--b .mh:first-child { margin-top: 0; }
.pg--b .mh b { font-size: max(12.5px, 4.6cqw); font-weight: 600; }
.pg--b .mh small { font-size: max(10px, 3.3cqw); font-weight: 600; opacity: .7; }
.pg--b .mh i { font-size: max(9.5px, 3cqw); opacity: .7; }
.pg--b .msh { margin-top: max(4px, 1.6cqw); font-size: max(11px, 3.8cqw); font-weight: 600; font-style: italic; opacity: .85; }
.pg--b .mi b { font-size: max(12px, 4cqw); font-weight: 500; line-height: 1.3; }
.pg--b .mi__p { font-size: max(12px, 4cqw); font-weight: 500; }

/* страница-девиз с армянским логотипом */
.pg--slogan { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9%; text-align: center; }
.pg--slogan p { position: relative; margin: 0; padding: 0 16%; font-family: 'Montserrat', 'Noto Sans Armenian', sans-serif; font-style: italic; font-weight: 500; line-height: 1.3; }
.pg--b.pg--slogan p { font-size: max(15px, 6.4cqw); }
.pg--k.pg--slogan p { font-size: max(15px, 4.4cqw); color: var(--k-red); }
.pg__logo { position: relative; width: 22%; aspect-ratio: 167.5 / 200; fill: currentColor; }
.pg--k .pg__logo { fill: var(--k-red); width: 18%; }
.pg--slogan small { position: relative; font-size: max(10px, 2cqw); letter-spacing: .14em; color: rgba(58, 28, 26, .55); }

/* =========================================================
   GALLERY — ровная сетка
   ========================================================= */
.gal__head { margin-bottom: clamp(40px, 5vw, 70px); }
.gal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 22px); }
.gal__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: #2a2420; }
.gal__item.is-more { display: none; }
.is-all .gal__item.is-more { display: block; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal__item:hover img { transform: scale(1.04); }
.gal__more { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 56px); }

/* слайды в «Пространствах» */
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: rgba(20, 17, 15, .6); color: var(--cream); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }

/* =========================================================
   NIGHT
   ========================================================= */
.night { position: relative; height: 110vh; overflow: hidden; background: #050506; color: var(--cream); display: grid; place-items: center; }
.night__img, .night__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); }
/* на широком экране — горизонтальное ночное фото, на телефоне (вертикальный экран) — вертикальное */
.night picture { display: contents; }
.night source { display: none; }
/* телефон: подпись внизу, на тёмной воде, а не на огнях */
@media (max-aspect-ratio: 4/5) { .night .night__text { align-self: end; margin: 0 0 15vh; } }
.night::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#050506, transparent 30%, transparent 60%, #050506); }
.night__stars { position: absolute; inset: 0 0 52%; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.night__stars canvas { display: block; width: 100%; height: 100%; }
.star { opacity: .8; }
.night__text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gut); align-self: start; margin-top: 15vh; }
.night__q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: calc(clamp(34px, 5vw, 80px) * var(--hs)); line-height: 1.12; margin: 0; max-width: 1000px; text-shadow: 0 10px 50px #000; }

/* =========================================================
   BOOKING
   ========================================================= */
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.book__orn { width: 170px; height: 300px; color: var(--wine); margin-top: 50px; opacity: .85; }
.book__orn svg { width: 100%; height: 100%; }
.form { position: relative; background: var(--paper); padding: clamp(28px, 4vw, 60px); border-radius: 999px 999px 10px 10px / 220px 220px 10px 10px; padding-top: clamp(90px, 9vw, 130px); box-shadow: 0 50px 100px -60px rgba(60, 40, 20, .5); }
.form { padding-bottom: clamp(96px, 9vw, 120px); }
.form .corner { width: 70px; opacity: .55; }
/* углы только внизу: сверху у формы арка, прямого угла там нет */
.form .corner--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.form .corner--br { bottom: 22px; right: 22px; }
.fld { display: block; position: relative; margin-bottom: 22px; }
.fld span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(28, 24, 21, .25); padding: 8px 0 10px; outline: none; border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.fld select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a2b2c' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; }
.fld textarea { resize: vertical; min-height: 70px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--wine); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .btn { margin-top: 10px; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form__note.is-err { color: var(--tile); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--indigo-d); color: var(--cream); position: relative; overflow: hidden; padding-bottom: 30px; }
/* панорама озера: сцена в ~11 раз шире своей высоты, её листают (main.js, «панорама озера»); плавающие фигуры — CSS-анимации */
.pano { position: relative; }
.pano::before, .pano::after { content: ''; position: absolute; top: 0; bottom: 0; width: clamp(24px, 6vw, 90px); z-index: 1; pointer-events: none; }
.pano::before { left: 0; background: linear-gradient(90deg, var(--indigo-d), transparent); }
.pano::after { right: 0; background: linear-gradient(-90deg, var(--indigo-d), transparent); }
.foot__pano { --ph: clamp(280px, 30vw, 460px); height: var(--ph); color: var(--brass); position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.foot__pano.is-drag { cursor: grabbing; }
.foot__pano:focus-visible { box-shadow: inset 0 0 0 1px rgba(228, 204, 147, .5); }
.foot__pano svg { display: block; height: 100%; width: calc(var(--ph) * 9040 / 440); max-width: none; will-change: transform; }
.foot__pano .refl { opacity: .2; }
.foot__pano .win { fill: rgba(228, 204, 147, .16); }
.foot__pano .win2 { fill: rgba(240, 196, 108, .42); }
.foot__pano .bulb { fill: #f0c46c; stroke: none; animation: twinkle 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.41s); }
.foot__pano .star { fill: #f3e3b8; stroke: none; }
.foot__pano .star.tw { animation: twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.53s); }
.foot__pano .lf { stroke-width: 1; }
.foot__pano .olf { stroke: #ecdcae; stroke-width: .9; opacity: .8; }
.foot__pano .blk { fill: var(--indigo-d); }
.foot__pano .blk0, .foot__pano .tr { fill: var(--indigo-d); }
.foot__pano .blk2 { fill: var(--indigo-d); }
.foot__pano .ln--thin { stroke-width: 1; }
.foot__pano .crs { stroke: rgba(198, 161, 94, .2); stroke-width: .7; }
.foot__pano .cor { fill: var(--indigo-d); stroke-width: 1; }
.foot__pano .pf { stroke: #f0c276; stroke-width: 1.1; opacity: .7; }
.foot__pano .rust { stroke-width: 1.2; }
.foot__pano .dl { stroke: rgba(198, 161, 94, .35); stroke-width: .8; stroke-dasharray: 5 4; }
.foot__pano .pn-word { fill: var(--brass-l); }
.foot__pano .glow { fill: url(#pnGlow); stroke: none; }
.foot__pano .lamp { fill: #f6d68f; stroke: none; }
.foot__pano .board { fill: rgba(228, 204, 147, .22); stroke-width: 1; }
.foot__pano .ring { stroke-width: 2.2; }
.foot__pano .rl { stroke-width: .8; opacity: .85; }
.foot__pano .hill { opacity: .7; }
.foot__pano .slit { fill: rgba(240, 196, 108, .3); stroke: none; }
/* беседка: фонари-абажуры с бахромой (чуть покачиваются) и подсветка колонн; размеры — в единицах беседки (она уменьшена в .28) */
.foot__pano .lglow { fill: url(#pnLant); stroke: none; animation: pn-flick 4.4s ease-in-out infinite; }
.foot__pano .lant { transform-box: fill-box; transform-origin: 50% 0; animation: pn-sway 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.foot__pano .lcord { stroke: var(--brass); stroke-width: 1.6; }
.foot__pano .lbody { fill: #f19a43; stroke: #f7c27a; stroke-width: 1.8; }
.foot__pano .lfr { stroke: #ffd08c; stroke-width: 1; opacity: .7; }
.foot__pano .lcore { fill: #ffe3a8; stroke: none; opacity: .85; }
.foot__pano .upl { fill: url(#pnGlow); stroke: none; }
.foot__pano .upd { fill: #f6d68f; stroke: none; }
@keyframes pn-sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes pn-flick { 50% { opacity: .72; } }
/* Manifest: вывеска из кортена, ночью светятся буквы и знак */
.foot__pano .mglow { fill: url(#pnSign); stroke: none; }
.foot__pano .msign { fill: var(--indigo-d); stroke: rgba(214, 150, 104, .75); }
.foot__pano .mmark { stroke: #f4a24e; stroke-width: 1.3; stroke-linecap: butt; }
.foot__pano .mmark--x { stroke-width: 2.4; }
.foot__pano .mtxt, .foot__pano .mtxt-s { stroke: none; font-family: var(--sans); font-weight: 500; }
.foot__pano .mtxt { fill: #f6a84f; font-size: 21px; }
.foot__pano .mtxt-s { fill: #d98d68; font-size: 5.6px; }
/* Lorke: карнизная подсветка, заливка стены светом, окна со шторами */
.foot__pano .cove { stroke: #fbe3a6; stroke-width: 1.6; }
.foot__pano .wash-dn { fill: url(#pnWashDn); stroke: none; }
.foot__pano .wash-up { fill: url(#pnWashUp); stroke: none; }
.foot__pano .win3 { fill: rgba(240, 214, 160, .2); }
.foot__pano .fold { stroke: rgba(240, 214, 160, .42); stroke-width: .6; }
/* Чёрная крепость: оранжевые камни арки и эмблема над воротами */
.foot__pano .vs { fill: rgba(232, 160, 88, .55); }
.foot__pano .emb { fill: #e8954a; stroke: none; }
.foot__pano .emb-x { stroke: #f6ebcc; stroke-width: .7; }
.foot__pano .moon { fill: #f6ebcc; stroke: none; }
.foot__pano .halo { fill: url(#pnHalo); stroke: none; }
.foot__pano .meteor { stroke: #f3e3b8; stroke-width: 1.2; opacity: 0; animation: pn-meteor 13s linear var(--t) infinite; }
.foot__pano .rip { stroke: rgba(228, 204, 147, .28); stroke-width: 1; animation: pn-rip 7s ease-in-out infinite; }
.foot__pano .rip--1 { animation-delay: -2.3s; animation-duration: 8.5s; }
.foot__pano .rip--2 { animation-delay: -4.6s; animation-duration: 6.2s; }
.foot__pano .glint { stroke: #f6ebcc; stroke-width: 1.4; opacity: .55; animation: pn-glint 3.2s ease-in-out infinite; }
.foot__pano .glint--1 { animation-delay: -1.6s; }
/* фигуры на воде — та же линейная графика: латунный контур, внутри цвет неба */
.foot__pano .rf { opacity: .24; }
.foot__pano .wake { stroke: rgba(228, 204, 147, .45); stroke-width: 1; }
.foot__pano .duck, .foot__pano .hull, .foot__pano .seat, .foot__pano .neck-h, .foot__pano .head, .foot__pano .raft, .foot__pano .hut, .foot__pano .roof { fill: var(--indigo-d); stroke: var(--brass); stroke-width: 1; }
.foot__pano .duck { stroke: var(--brass-l); }
.foot__pano .beak, .foot__pano .eye { fill: var(--brass-l); stroke: none; }
.foot__pano .neck-o, .foot__pano .torso-o { stroke: var(--brass); stroke-width: 7.5; }
.foot__pano .neck, .foot__pano .torso { stroke: var(--indigo-d); stroke-width: 5.2; }
.foot__pano .torso-o { stroke-width: 8.5; }
.foot__pano .torso { stroke-width: 6.2; }
.foot__pano .arm { stroke: var(--brass); stroke-width: 1.4; }
.foot__pano .swim { animation: pn-swim var(--d) ease-in-out var(--t) infinite alternate; }
.foot__pano .face { animation: pn-face calc(var(--d) * 2) linear var(--t) infinite; }
.foot__pano .bob { animation: pn-bob 3.4s ease-in-out var(--t, 0s) infinite; }
.foot__pano .wheel { animation: spin 2.6s linear infinite; }
.foot__pano .ride { animation: pn-ride 1.3s ease-in-out infinite; }
.foot__pano:not(.is-live) svg * { animation-play-state: paused !important; }
@keyframes pn-swim { to { transform: translateX(var(--dx)); } }
@keyframes pn-face { 0%, 49.9% { transform: none; } 50%, 100% { transform: scaleX(-1); } }
@keyframes pn-bob { 50% { transform: translateY(1.4px) rotate(-1.4deg); } }
@keyframes pn-ride { 50% { transform: rotate(-4deg); } }
@keyframes pn-rip { 50% { transform: translateX(9px); opacity: .35; } }
@keyframes pn-glint { 50% { opacity: .2; } }
@keyframes pn-meteor { 0%, 88% { opacity: 0; transform: none; } 89% { opacity: .9; } 96%, 100% { opacity: 0; transform: translate(-230px, -80px); } }
/* кнопки и подсказка */
.pano__btn { position: absolute; z-index: 2; top: 38%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(228, 204, 147, .45); background: rgba(20, 22, 59, .6); color: var(--brass-l); display: grid; place-items: center; transition: opacity .4s, border-color .3s, background .3s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pano__btn:hover { border-color: var(--brass-l); background: rgba(20, 22, 59, .85); }
.pano__btn svg { width: 18px; height: 18px; }
.pano__btn--l { left: var(--gut); }
.pano__btn--r { right: var(--gut); }
.pano__hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-l); opacity: .8; pointer-events: none; transition: opacity .8s; }
.pano__hint i { font-style: normal; display: inline-block; animation: pn-nudge 1.8s ease-in-out infinite; }
.pano__hint i + span + i { animation-direction: reverse; }
.pano.is-used .pano__hint { opacity: 0; }
@keyframes pn-nudge { 50% { transform: translateX(-5px); } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .foot__pano svg *, .pano__hint i { animation: none !important; } }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; border-top: 1px solid rgba(228, 204, 147, .2); }
.foot__brand { display: flex; flex-direction: column; gap: 6px; }
.foot__brand { flex-direction: row; align-items: flex-end; gap: 22px; }
/* в подвале — только армянский логотип: английский уже есть в шапке */
.foot__hy { width: 117px; height: 140px; fill: var(--brass-l); }
@media (max-width: 900px) {
  .pano__btn { width: 38px; height: 38px; top: 30%; }
  .pano__hint { font-size: 10px; letter-spacing: .18em; bottom: 10px; }
}
.foot__col p { margin: 0 0 6px; }
.foot__col .kicker { display: flex; margin-bottom: 12px; }
.foot__title { font-family: var(--serif); font-weight: 300; font-size: calc(clamp(30px, 3vw, 48px) * var(--hs)); line-height: 1.1; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: .1em; color: rgba(242, 232, 211, .5); flex-wrap: wrap; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 160; background: rgba(8, 7, 6, .94); display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .5s, visibility 0s .5s; }
.lb.is-open { visibility: visible; opacity: 1; transition: opacity .5s; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 40px 100px #000; }
.lb__x { position: absolute; top: 18px; right: 22px; font-size: 34px; color: var(--cream); width: 50px; height: 50px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 50px; color: var(--cream); width: 60px; height: 90px; opacity: .7; }
.lb__prev { left: 10px; } .lb__next { right: 10px; }

/* cursor */
/* латунное кольцо, догоняющее курсор; без инверсии цветов — одинаково читается на светлом и тёмном */
.cur { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 250; opacity: 0; transition: opacity .3s; }
.cur.is-on { opacity: 1; }
.cur::before { content: ''; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(198, 161, 94, .75); box-shadow: 0 0 0 1px rgba(20, 16, 12, .06);
  transition: transform .45s var(--ease), background .45s, border-color .45s, opacity .3s; }
.cur.is-big::before { transform: scale(1.65); background: rgba(228, 204, 147, .12); border-color: rgba(228, 204, 147, .95); }
.cur.is-read::before { transform: scale(.35); background: var(--brass); opacity: .8; }
@media (hover: none) { .cur { display: none; } }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.draw-ready .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw-ready .fl { opacity: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .burger { display: block; }
  .hdr__cta { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .about__grid, .events__top, .gz__grid, .book__grid, .bars__grid { grid-template-columns: 1fr; gap: 40px; }
  .name { grid-template-columns: 1fr; gap: 20px; }
  .spaces__grid { grid-template-columns: 1fr; }
  .spaces__frame { display: none; }
  .sp { min-height: 0; opacity: 1; padding: 50px 0; }
  .sp__media { display: block; margin-top: 30px; aspect-ratio: 4 / 4.6; }
  .sp__media .arch { height: 100%; }
  .events__media { grid-template-columns: 1fr; gap: 56px; padding: 0 6px; }
  .evlist { grid-template-columns: 1fr 1fr; }
  .evlist li { margin-right: 0; padding-right: 20px; border-right: 0; border-bottom: 1px solid rgba(242, 232, 211, .1); }
  .gz__strip { grid-template-columns: 1fr 1fr; }
  /* на телефоне две фотографии: терраса и лужайка у озера */
  .gz__strip figure:nth-child(2) { display: none; }
  .gz__photo { width: 86%; margin: 0 auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .is-single .book3d__scene { --pw: min(92vw, calc((100svh - 170px) * var(--r))); width: var(--pw); }
  .is-single .sheet { left: 0; width: 100%; }
  /* перевёрнутый лист прячем только когда поворот закончен; opacity во время поворота «сплющивает» 3D в Safari */
  .is-single .sheet.is-flipped { visibility: hidden; transition: transform 1.2s cubic-bezier(.6, .05, .25, 1), visibility 0s 1.2s; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .mcovers { gap: 50px; }
}
@media (max-width: 600px) {
  .hdr { height: 66px; }
  .hdr__logo svg { width: 40px; height: 52px; }
  .mcovers { flex-direction: column; align-items: center; gap: 70px; }
  .kcover { width: min(300px, 78vw); }
  .bcover { width: min(220px, 56vw); }
  .bcover__label b { font-size: 9.5px; } .bcover__label small { font-size: 7.5px; }
  .lang { display: none; }
  .mnav .lang { display: flex; }
  .stats b { font-size: 54px; }
  .corner { width: 54px; }
  .corner--tl { top: 14px; left: 14px; } .corner--tr { top: 14px; right: 14px; }
  .evlist { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .portal__lamp { display: none; }
  .form { border-radius: 999px 999px 10px 10px / 160px 160px 10px 10px; }
  .form .corner { width: 54px; }
  .form .corner--bl { bottom: 14px; left: 14px; }
  .form .corner--br { bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .gz__ring2::before, .star, .bulb, .glowarch::before { animation: none !important; }
}

/* слои, которые анимируются при прокрутке — отдельно на GPU */
.portal, .entry__hall, .entry__welcome, .night__img, .night__video, .night__q, [data-speed], .about__pano img { will-change: transform; }
.night__q { text-shadow: 0 6px 24px rgba(0, 0, 0, .8); }
.doors__light, .doors__seam, .entry__hint { will-change: opacity; }

/* =========================================================
   TORCH — бра-факел второго этажа
   ========================================================= */
.torch { position: absolute; aspect-ratio: 120 / 440; pointer-events: none; }
.torch > div { position: relative; width: 100%; height: 100%; }
.torch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.torch__glow {
  position: absolute; left: 50%; top: 27%; width: 520%; height: 120%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 246, 225, .85), rgba(255, 224, 168, .34) 40%, rgba(255, 210, 140, .1) 70%, transparent);
  animation: flicker 6s ease-in-out infinite; will-change: opacity;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 18% { opacity: .9; } 22% { opacity: .97; } 47% { opacity: .88; } 52% { opacity: 1; } 76% { opacity: .93; } }
.portal__torch { height: calc(var(--dh) * .42); top: calc(var(--top) + var(--dh) * .16); transform: translateX(-50%); }
.portal__torch--l { left: calc(var(--left) - 30px - 8vw); }
.portal__torch--r { left: calc(100vw - var(--left) + 30px + 8vw); }
.bars__torch { height: 230px; top: -40px; }
.bars__torch--l { left: var(--gut); } .bars__torch--r { right: var(--gut); }
.soon--torch { background: radial-gradient(ellipse at 50% 30%, #3b322b, #1a1512 75%); }
.soon--torch::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 59px, rgba(0, 0, 0, .28) 59px 60px), var(--noise); background-size: auto, 220px 220px; opacity: .55; }
.soon__torch { height: 52%; top: 16%; transform: translateX(-50%); }
.soon__torch--1 { left: 28%; } .soon__torch--2 { left: 72%; }
.soon--torch span { position: absolute; bottom: 12%; }
@media (max-width: 900px) { .bars__torch { display: none; } }
@media (max-width: 600px) { .portal__torch { display: none; } }
@media (prefers-reduced-motion: reduce) { .torch__glow { animation: none; } }
.soon__torch .torch__glow { width: 380%; }

/* этаж в списке пространств и ссылки «Ещё в Lorke» */
.sp__floor { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-left: 14px; }
.sp__floor::before { content: '·'; margin-right: 14px; color: var(--brass); }

