/* KANTIN, концепт: тёмный зал, кремовая бумага, одна красная точка. Углы прямые, как у бренда */
:root {
  --bg: #1D1D1F;
  --bg-2: #151516;
  --cream: #F5F2EB;
  --sand: #D6D0C4;
  --muted: #8A847A;
  --line: rgba(245, 242, 235, .14);
  --red: #FF1313;
  --pad: clamp(16px, 3.4vw, 48px);
  --display: 'Martian Mono', ui-monospace, monospace;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 15px/1.6 var(--mono); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--red); }
.h2 { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: clamp(34px, 6vw, 96px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; margin-top: 18px; }

/* загрузка */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; place-content: center; justify-items: center; gap: 28px; }
html.motion .loader { display: grid; }
.loader-word { display: flex; overflow: hidden; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(48px, 12vw, 180px); line-height: 1; letter-spacing: -.02em; }
.loader-line { width: min(60vw, 520px); height: 2px; background: var(--line); }
.loader-line i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.loader-n { position: absolute; right: var(--pad); bottom: var(--pad); font-family: var(--display); font-size: 14px; color: var(--muted); }

.concept {
  position: fixed; left: 50%; bottom: 12px; z-index: 60; transform: translateX(-50%);
  background: var(--cream); color: var(--bg); font-size: 11px; padding: 6px 12px; text-decoration: none; white-space: nowrap;
  max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis;
}

/* шапка */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 16px var(--pad); mix-blend-mode: difference; color: #fff; }
.brand { display: grid; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 18px; line-height: 1; letter-spacing: .02em; margin-right: auto; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; }
.nav-links { display: none; gap: 28px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border: 1px solid currentColor; padding: 9px 16px; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; padding: 16px 24px; border: 1px solid var(--cream); color: var(--cream); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.btn::after { content: ""; width: 8px; height: 8px; background: var(--red); transition: background-color .3s; }
.btn:hover { border-color: var(--red); }
.btn:hover::before { transform: none; }
.btn:hover::after { background: var(--cream); }

/* первый экран */
.hero { position: relative; min-height: 100svh; padding: 96px var(--pad) 72px; display: flex; flex-direction: column; overflow: hidden; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--sand); }
.dot-live { display: inline-flex; align-items: center; gap: 8px; }
.dot-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.hero-word { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 16.4vw, 340px); line-height: .82; letter-spacing: -.03em; overflow: hidden; }
.hero-word span { display: inline-block; }
.hero-grid { flex: 1; display: grid; gap: 24px; margin-top: 28px; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr minmax(260px, 30vw) 1fr; } }
.hero-sub { font-family: var(--display); font-stretch: 75%; font-size: clamp(22px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; color: var(--sand); }
.hero-frame { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; max-height: 58vh; justify-self: center; width: 100%; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero-side { display: grid; gap: 22px; justify-items: start; }
@media (min-width: 900px) { .hero-side { justify-items: end; text-align: right; } }
.hero-lead { max-width: 30ch; color: var(--sand); }
.scroll-hint { position: absolute; left: var(--pad); bottom: 40px; display: none; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.scroll-hint i { width: 1px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red); animation: drip 1.8s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes drip { to { top: 100%; } }
@media (min-width: 900px) { .scroll-hint { display: flex; } }

/* картинка раскрывается на весь экран */
.zoom { position: relative; height: 220vh; }
.zoom-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.zoom-img { position: absolute; inset: 0; clip-path: inset(22% 34% 22% 34%); }
.zoom-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.zoom-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 29, 31, .1), rgba(29, 29, 31, .65)); }
.zoom-title { position: relative; z-index: 1; display: grid; justify-items: center; font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 9vw, 150px); line-height: .9; letter-spacing: -.03em; text-align: center; mix-blend-mode: difference; }

/* бегущая строка */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee-in { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; white-space: nowrap; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(28px, 5vw, 72px); text-transform: uppercase; letter-spacing: -.02em; will-change: transform; }
.marquee-in b { color: var(--red); font-size: .4em; }

/* философия: слова заливаются при прокрутке */
.philo { padding: clamp(100px, 16vw, 220px) var(--pad); display: grid; gap: 28px; }
.philo-words { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: clamp(28px, 9vw, 170px); line-height: .9; letter-spacing: -.045em; overflow-wrap: anywhere; text-transform: uppercase; display: grid; }
.philo-words .wd { display: block; }
.philo-text { max-width: 42ch; color: var(--sand); font-size: clamp(15px, 1.3vw, 18px); justify-self: end; }

/* ценности */
.values { position: relative; padding: 0 var(--pad) clamp(100px, 14vw, 200px); }
.values-list { margin-top: 48px; border-top: 1px solid var(--line); }
.value { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 6px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); cursor: default; }
@media (min-width: 820px) { .value { grid-template-columns: 120px 1fr 1fr; align-items: baseline; padding: 40px 0; } }
.value-n { font-family: var(--display); color: var(--red); font-size: 14px; }
.value h3 { font-family: var(--display); font-stretch: 112%; font-size: clamp(32px, 5vw, 76px); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; transition: transform .6s cubic-bezier(.2, .8, .2, 1), color .3s; }
.value p { color: var(--sand); grid-column: 2; }
@media (min-width: 820px) { .value p { grid-column: 3; } }
.value:hover h3 { transform: translateX(18px); color: var(--red); }
.value-peek { position: fixed; left: 0; top: 0; z-index: 5; width: 260px; aspect-ratio: 3 / 4; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.value-peek img { width: 100%; height: 100%; object-fit: cover; }

/* история имени */
.story { position: relative; overflow: clip; padding: clamp(80px, 12vw, 160px) var(--pad); display: grid; gap: 40px; overflow: hidden; background: var(--cream); color: var(--bg); }
@media (min-width: 900px) { .story { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.story-big { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 38vw; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(29, 29, 31, .12); pointer-events: none; }
.story .kicker { color: #6b665e; }
.story-in { position: relative; display: grid; gap: 20px; max-width: 640px; }
.story-in p:last-child { font-size: clamp(16px, 1.4vw, 20px); max-width: 38ch; }
.story-img { position: relative; margin: 0; aspect-ratio: 9 / 13; overflow: hidden; max-height: 80vh; }
.story-img img { width: 100%; height: 120%; object-fit: cover; }

/* меню */
.menu { padding: clamp(100px, 14vw, 200px) var(--pad); }
.menu-head { display: grid; gap: 4px; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; color: var(--muted); font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 6px 0; cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"], .tabs button:hover { color: var(--cream); }
.tabs-line { position: absolute; bottom: -1px; left: 0; height: 2px; width: 40px; background: var(--red); }
.menu-list { display: grid; margin-top: 24px; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); } }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); cursor: default; }
.row h3 { font-family: var(--display); font-stretch: 85%; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; transition: transform .5s cubic-bezier(.2, .8, .2, 1), color .3s; }
.row:hover h3 { transform: translateX(12px); color: var(--red); }
.row-price { font-family: var(--display); font-weight: 600; white-space: nowrap; font-size: clamp(16px, 1.5vw, 22px); }
.row-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* редкий лот */
.geisha { position: relative; display: grid; gap: 40px; padding: 0 var(--pad) clamp(100px, 14vw, 200px); align-items: center; }
@media (min-width: 900px) { .geisha { grid-template-columns: 1.1fr .9fr; } }
.geisha-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.geisha-img img { width: 100%; height: 115%; object-fit: cover; }
.geisha-text { display: grid; gap: 22px; }
.geisha-text > p:not(.kicker) { color: var(--sand); max-width: 40ch; }
.geisha-price { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(54px, 8vw, 128px); line-height: 1; letter-spacing: -.04em; color: var(--red); font-variant-numeric: tabular-nums; }
.geisha-badge { position: absolute; width: clamp(120px, 14vw, 200px); left: calc(var(--pad) + 20px); top: -50px; fill: var(--cream); font: 500 13.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* галерея */
.gallery { padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.gallery-head { padding: 0 var(--pad); }
.gallery-track { display: flex; gap: 16px; padding: 48px var(--pad) 0; overflow-x: auto; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { margin: 0; flex: none; }
.gallery-track img { height: clamp(320px, 62vh, 640px); width: auto; max-width: none; object-fit: cover; }
.gallery-track figcaption { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.gallery.is-h .gallery-track { overflow: visible; width: max-content; }

/* цифры */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers div { padding: clamp(28px, 4vw, 56px) var(--pad); border-right: 1px solid var(--line); display: grid; gap: 8px; }
.numbers b { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(54px, 8vw, 120px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--sand); font-size: 13px; max-width: 18ch; }

/* адрес */
.visit { display: grid; gap: 48px; padding: clamp(100px, 14vw, 200px) var(--pad); align-items: center; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }
.visit-text { display: grid; gap: 28px; justify-items: start; }
.visit-addr { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(54px, 9vw, 150px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; }
.visit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 520px; }
.visit-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.visit-list span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding-top: 3px; }
.visit-list a { text-decoration: none; border-bottom: 1px solid var(--red); }
.map { width: 100%; max-width: 620px; justify-self: center; color: rgba(245, 242, 235, .16); }
.map-park { fill: rgba(245, 242, 235, .06); stroke: rgba(245, 242, 235, .2); }
.map-route { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 6 8; }
.map-pin circle { fill: var(--red); }
.map-pin .pulse { fill: none; stroke: var(--red); stroke-width: 2; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map-label { font: 500 13px var(--mono); fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.map-label.strong { fill: var(--cream); font-family: var(--display); font-weight: 800; font-size: 18px; }

/* подвал */
.foot { padding: 0 var(--pad) 70px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 16.4vw, 340px); line-height: .9; letter-spacing: -.03em; padding-top: 20px; }
.foot-word span { display: inline-block; transition: color .3s; }
.foot-word span:hover { color: var(--red); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; font-size: 12px; color: var(--muted); }

/* курсор и зерно плёнки */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red); pointer-events: none; display: none; place-items: center; transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1); }
.cursor span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--cream); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-big span { opacity: 1; }
@media (pointer: fine) { .cursor { display: grid; } }
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { background-position: -40px 30px; } 50% { background-position: 30px -50px; } 75% { background-position: -20px 50px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .zoom { height: auto; }
  .zoom-stage { position: relative; height: 80vh; }
  .zoom-img { clip-path: none; }
}

/* телефон: шапка и строка адреса не вылезают за край */
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav-cta { padding: 7px 10px; font-size: 11px; letter-spacing: .06em; }
  .hero-meta { flex-direction: column; gap: 6px; font-size: 11px; }
}
