/* SREDA 2026 — основные стили. Значения берутся из tokens.css. */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Лёгкое «зерно» поверх всего, как на лендингах */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc-btn); color: #000; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--acc-btn); color: #000; padding: 12px 18px; border-radius: var(--r-pill); }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: calc(880px + var(--gut) * 2); }
.sec { padding: var(--sec) 0; }
.sec--tight { padding: clamp(48px, 5.5vw, 80px) 0; }

.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .hero-title, .h-lead, .display {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300;
  letter-spacing: -.04em; line-height: 1; overflow-wrap: break-word;
}
.h1 { font-size: clamp(46px, 7vw, 116px); }
.h2 { font-size: clamp(38px, 5.6vw, 92px); }
.h3 { font-size: clamp(28px, 2.8vw, 42px); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
.h-lead { font-size: clamp(30px, 3.2vw, 50px); font-weight: 300; line-height: 1.16; letter-spacing: -.02em; }

/* Акцентные слова — тем же начертанием, золотом */
.h1 em, .h2 em, .h3 em, .hero-title em, .h-lead em, .display em { font: inherit; font-style: normal; color: var(--acc); }

.eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500;
  color: var(--tx3); margin-bottom: clamp(20px, 2.4vw, 32px);
}
.eyebrow-n { color: var(--acc); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow-n::after { content: ""; width: 32px; height: 1px; background: var(--bd-str); }

.lede { font-size: clamp(17px, 1.45vw, 21px); font-weight: 400; color: var(--tx2); line-height: 1.55; max-width: 580px; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  padding: 17px 28px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; line-height: 1;
  transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .35s;
}
.btn .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-a { background: var(--acc-btn); color: #000; }
.btn-a:hover { background: var(--acc-btn-hover); color: #000; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(232, 188, 116, .25); }
.btn-p { background: var(--tx); color: var(--bg); }
.btn-p:hover { opacity: .88; }
.btn-s { background: rgba(255, 255, 255, .03); border-color: var(--bd-str); color: var(--tx); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-s:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 12px 18px; font-size: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--acc);
}
.link-arrow .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover .ic, a:hover > .link-arrow .ic, a:hover .floor-text .link-arrow .ic, .space:hover .link-arrow .ic { transform: translateX(5px); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--bd-str); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--tx); flex: none;
  transition: border-color .3s, color .3s, background .3s, transform .35s var(--ease);
}
.round-btn:hover { border-color: var(--acc); color: var(--acc); }
.round-btn--acc { background: var(--acc-btn); border-color: var(--acc-btn); color: #000; }

/* ---------- Шапка ---------- */
.prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--acc); z-index: 210; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s;
}
.admin-bar .nav { top: 32px; }
.nav.stuck { background: var(--overlay); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-bottom-color: var(--bd-sub); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut); display: flex; align-items: center; gap: 28px; transition: padding .4s; }
.nav.stuck .nav-in { padding-top: 14px; padding-bottom: 14px; }
.nav-logo { color: var(--tx); flex: none; }
.nav-logo .logo-svg { height: 24px; width: auto; }
.nav-logo:hover { color: var(--acc); }

.nav-links { flex: 1; display: flex; justify-content: center; }
.nav-links .menu { display: flex; gap: 2px; }
.nav-links .menu > li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500;
  color: var(--tx2); padding: 10px 15px; border-radius: var(--r-pill); transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }
.nav-links .is-current > a { color: var(--acc); }
.nav-links .menu-item-has-children > a::after {
  content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-links .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px; padding: 8px;
  background: var(--menu-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bd); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.nav-links .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links .sub-menu a { border-radius: var(--r-sm); padding: 13px 14px; letter-spacing: .12em; }

.nav-act { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
.nav-tel { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--tx); white-space: nowrap; }
.nav-tel:hover { color: var(--acc); }

.burger { display: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--bd-str); border-radius: var(--r-pill); padding: 12px 14px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--tx); margin: 4px 0; transition: transform .35s var(--ease), opacity .25s; }
.burger.x span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 190; background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.drawer.on { opacity: 1; pointer-events: auto; }
.drawer-in {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); background: var(--deep);
  border-left: 1px solid var(--bd-sub); padding: 96px 28px 32px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
}
.drawer.on .drawer-in { transform: none; }
.drawer-menu > li > a { display: block; font-family: var(--display); font-stretch: var(--display-stretch); font-size: 26px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; padding: 14px 2px; border-bottom: 1px solid var(--bd-sub); }
.drawer-menu a:hover { color: var(--acc); }
.drawer-menu .sub-menu { padding: 4px 0 10px 14px; border-bottom: 1px solid var(--bd-sub); }
.drawer-menu .sub-menu a { display: block; font-size: 16px; color: var(--tx2); padding: 9px 0; }
.drawer-in .btn { margin-top: 28px; width: 100%; padding: 19px 24px; }
.drawer-ft { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--tx3); }
.drawer-ft a:hover { color: var(--tx); }
body.lock { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero { position: relative; display: flex; min-height: max(100svh, 700px); overflow: hidden; background: #000; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  animation: kb 32s ease-in-out infinite alternate; filter: brightness(.5) contrast(1.08) saturate(.85);
}
@keyframes kb { 0% { transform: scale(1.04); } 100% { transform: scale(1.15) translate(-1.2%, 1.6%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 78% 18%, rgba(0, 0, 0, 0) 0%, rgba(4, 5, 8, .45) 58%, rgba(4, 5, 8, .85) 100%),
    linear-gradient(180deg, rgba(4, 5, 8, .75) 0%, rgba(4, 5, 8, .15) 24%, rgba(4, 5, 8, .62) 60%, rgba(0, 0, 0, .97) 100%);
}
.hero-in { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(112px, 15vh, 160px); padding-bottom: clamp(48px, 8vh, 96px); }
.h-tag {
  display: inline-flex; align-items: center; gap: 11px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; color: var(--acc);
  margin-bottom: clamp(22px, 3vh, 34px); padding: 9px 16px 9px 13px;
  border: 1px solid var(--acc-line); border-radius: var(--r-pill); background: rgba(232, 188, 116, .07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.h-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: rip 2.6s infinite; }
@keyframes rip { 0% { box-shadow: 0 0 0 0 rgba(232, 188, 116, .5); } 70% { box-shadow: 0 0 0 9px rgba(232, 188, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 188, 116, 0); } }
.hero-title { font-size: clamp(50px, min(8.4vw, 15vh), 148px); line-height: .96; letter-spacing: -.035em; margin-bottom: clamp(28px, 4vh, 44px); max-width: 10ch; }
.hero-title .l1 { display: block; font-family: var(--sans); font-stretch: 100%; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: 0; line-height: 1.3; color: var(--tx2); font-weight: 400; margin-bottom: clamp(14px, 2vh, 22px); }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lede nums" "btns nums";
  align-items: end; column-gap: clamp(28px, 5vw, 96px); row-gap: 26px;
  padding-top: clamp(24px, 3vh, 36px); border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-foot .hero-lede { grid-area: lede; }
.hero-foot .hero-nums { grid-area: nums; }
.hero-foot .hero-btns { grid-area: btns; }
.hero-lede { font-weight: 400; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .82); max-width: 520px; line-height: 1.5; }
.hero-nums { display: flex; gap: clamp(24px, 3.4vw, 56px); }
.hn { display: flex; flex-direction: column-reverse; }
.hn dd { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300; font-size: clamp(34px, 3.6vw, 58px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.hn .u { font-family: var(--sans); font-stretch: 100%; font-size: 15px; color: rgba(255, 255, 255, .55); margin-left: 8px; font-weight: 300; letter-spacing: 0; }
.hn dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .5); margin-top: 12px; white-space: nowrap; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; right: var(--gut); top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center;
  display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .4);
}
.scroll-cue .bar { width: 44px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6)); animation: cue 2.2s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleX(.5); } 50% { opacity: 1; transform: scaleX(1); } }

/* ---------- Бегущая строка ---------- */
.mq { border-top: 1px solid var(--bd-sub); border-bottom: 1px solid var(--bd-sub); background: var(--deep); overflow: hidden; padding: 20px 0; }
.mq-t { display: flex; width: max-content; animation: mv 52s linear infinite; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes mv { to { transform: translateX(-50%); } }
.mq-t span { display: flex; align-items: center; gap: 30px; padding-right: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--tx3); white-space: nowrap; }
.mq-t span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); opacity: .7; }

/* ---------- Заголовки секций ---------- */
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head-side { max-width: 440px; color: var(--tx2); display: flex; flex-direction: column; gap: 24px; }
.scroller-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- О пространстве + видео ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.about-side p { color: var(--tx2); font-size: 17px; line-height: 1.7; margin-bottom: 28px; max-width: 420px; }
.about--page .about-grid { margin-bottom: 0; }
.about--page .about-side p:not(:last-of-type) { margin-bottom: 14px; }
.video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; border: 0; padding: 0;
  border-radius: var(--r-xl); overflow: hidden; cursor: pointer; background: #000; isolation: isolate;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.78); }
.video-frame:hover img { transform: scale(1.03); filter: brightness(.62); }
.video-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7)); pointer-events: none; }
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: clamp(76px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%;
  background: var(--acc-btn); color: #000; display: grid; place-items: center; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 16px rgba(232, 188, 116, .14); transition: transform .5s var(--ease), box-shadow .5s;
}
.video-play .ic { width: 28%; height: 28%; margin-left: 6%; }
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 26px rgba(232, 188, 116, .1); }
.video-cap { position: absolute; left: 28px; bottom: 24px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .78); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 3; }

/* ---------- Этажи ---------- */
.floors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.floor { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 6; isolation: isolate; border: 1px solid var(--bd-sub); }
.floor-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.6) saturate(.9); transition: transform 1.6s var(--ease), filter .6s; }
.floor::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .9) 100%); }
.floor:hover .floor-img { transform: scale(1.05); filter: brightness(.72) saturate(1); }
.floor-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 44px); }
.floor-num { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300; font-size: clamp(120px, 14vw, 220px); line-height: .8; letter-spacing: -.04em; color: rgba(255, 255, 255, .92); transition: color .6s; }
.floor:hover .floor-num { color: var(--acc); }
.floor-text h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 14px; }
.floor-text p { color: rgba(255, 255, 255, .76); max-width: 460px; margin-bottom: 22px; }

/* ---------- Карточка офиса ---------- */
.oc { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--bd-sub); overflow: hidden; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s, opacity .4s; }
.oc:hover { border-color: var(--bd-str); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.oc-link { display: flex; flex-direction: column; height: 100%; }
.oc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--elev); }
.oc-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.oc:hover .oc-img { transform: scale(1.05); }
.oc-img--empty { display: grid; place-items: center; color: var(--tx4); }
.oc-img--empty .logo-svg { width: 38%; height: auto; }
.oc-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.oc-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px; letter-spacing: .10em; text-transform: uppercase; font-weight: 500; color: #fff;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.oc-badge .ic { width: 13px; height: 13px; }
.oc-badge--acc { color: #e8bc74; border-color: rgba(232, 188, 116, .4); }
.oc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; gap: 18px; }
.oc-title { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1.15; }
.oc-block { margin-top: 6px; font-size: 14px; color: var(--tx3); }
.office-block { display: block; margin-top: 14px; font-family: var(--sans); font-stretch: 100%; font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--tx2); }
.oc-facts { display: flex; gap: 28px; }
.oc-facts div { display: flex; flex-direction: column-reverse; gap: 4px; }
.oc-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .10em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.oc-facts dd { font-size: 17px; }
.oc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--bd-sub); }
.oc-price { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.oc-price span { font-family: var(--sans); font-stretch: 100%; font-size: 13px; font-weight: 300; color: var(--tx3); letter-spacing: 0; }
.oc-price--ask { font-family: var(--sans); font-stretch: 100%; font-size: 15px; color: var(--tx2); }
.oc-go { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bd-str); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; flex: none; }
.oc-go .ic { width: 16px; height: 16px; }
.oc:hover .oc-go { background: var(--acc-btn); border-color: var(--acc-btn); color: #000; }
.oc-more { display: grid; place-items: center; min-height: 420px; background: radial-gradient(90% 90% at 70% 20%, rgba(232, 188, 116, .12), transparent 60%), var(--surface); }
.oc-more-in { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 32px; }
.oc-more .h3 { font-size: 36px; }

/* Горизонтальная лента карточек */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 29vw, 420px); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 6px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 28px;
  scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* ---------- Что включено ---------- */
.incl-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bd-sub); border-left: 1px solid var(--bd-sub); }
.incl-item { display: flex; flex-direction: column; min-height: 250px; padding: clamp(24px, 2.6vw, 40px); border-right: 1px solid var(--bd-sub); border-bottom: 1px solid var(--bd-sub); transition: background .45s; }
.incl-item:hover { background: var(--acc-soft); }
.incl-n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--acc); margin-bottom: auto; }
.incl-item h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin: 52px 0 12px; }
.incl-item p { color: var(--tx2); font-size: 15px; line-height: 1.55; }

/* ---------- Пространства и цены ---------- */
.spaces-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.spaces-grid--2 { grid-template-columns: 1fr 1.3fr; }
/* Форма пароля для закрытых страниц */
.pw-form { margin-top: clamp(28px, 3vw, 44px); max-width: 520px; color: var(--tx2); }
.pw-form p { margin-bottom: 18px; }
.pw-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.pw-form input[type="password"] { width: 100%; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--bd); background: var(--surface); color: var(--tx); font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; }
.pw-form input[type="password"]:focus { outline: none; border-color: var(--acc); }
.pw-form input[type="submit"] { margin-top: 12px; padding: 16px 26px; border: 0; border-radius: var(--r-pill); background: var(--acc-btn); color: #000; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.space { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--bd-sub); transition: border-color .4s, transform .5s var(--ease); }
.space:hover { border-color: var(--bd-str); transform: translateY(-4px); }
.space-media { height: clamp(220px, 20vw, 300px); overflow: hidden; }
.space-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.space:hover .space-media img { transform: scale(1.05); }
.space-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px 26px 28px; }
.space-body h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 28px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.space-body p { color: var(--tx2); font-size: 15px; line-height: 1.6; }
.space-body p.space-note { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 19px; font-weight: 400; line-height: 1.3; color: var(--acc); }
.space .link-arrow { margin-top: auto; padding-top: 10px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); margin-top: clamp(40px, 4.5vw, 64px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--bd-sub); }
.prices-h { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--acc); margin-bottom: 14px; }
.prices li { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--bd-sub); color: var(--tx2); font-size: 15px; }
.prices li span { flex: 1; }
.prices li b { font-weight: 400; color: var(--tx); white-space: nowrap; }

/* ---------- Галерея ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(84px, 8.6vw, 132px); gap: clamp(10px, 1.2vw, 18px); }
.mosaic-item { border-radius: var(--r-md); overflow: hidden; background: var(--elev); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: saturate(.92); }
.mosaic-item:hover img { transform: scale(1.05); filter: saturate(1); }
.mosaic-item--1 { grid-column: 1 / 6; grid-row: 1 / 4; }
.mosaic-item--2 { grid-column: 6 / 9; grid-row: 1 / 5; }
.mosaic-item--3 { grid-column: 9 / 13; grid-row: 1 / 3; }
.mosaic-item--4 { grid-column: 9 / 13; grid-row: 3 / 5; }
.mosaic-item--5 { grid-column: 1 / 3; grid-row: 4 / 7; }
.mosaic-item--6 { grid-column: 3 / 6; grid-row: 4 / 7; }
.mosaic-item--7 { grid-column: 6 / 10; grid-row: 5 / 7; }
.mosaic-item--8 { grid-column: 10 / 13; grid-row: 5 / 7; }

/* ---------- Адрес ---------- */
.loc { border-top: 1px solid var(--bd-sub); }
.loc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.loc-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; }
.loc-media img { width: 100%; height: 100%; object-fit: cover; }
.loc-lede { color: var(--tx2); font-size: 18px; line-height: 1.6; margin: 26px 0 32px; max-width: 460px; }
.loc-facts { margin-bottom: 34px; border-top: 1px solid var(--bd-sub); }
.loc-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bd-sub); }
.loc-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.loc-facts a:hover { color: var(--acc); }

/* ---------- Запись на экскурсию ---------- */
.booking { background: var(--deep); border-top: 1px solid var(--bd-sub); }
.booking-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 128px); align-items: start; }
.booking-text .h2 { margin-bottom: clamp(36px, 4vw, 60px); }
.booking-contacts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--bd-sub); color: var(--tx2); }
.booking-k { font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.booking-contacts a { color: var(--tx); }
.booking-contacts a:hover { color: var(--acc); }
.booking-tel { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(26px, 2.4vw, 36px); font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.booking-form { background: var(--surface); border: 1px solid var(--bd-sub); border-radius: var(--r-xl); padding: clamp(26px, 3.2vw, 48px); }

/* Contact Form 7 */
.booking-form .wpcf7-form { display: flex; flex-wrap: wrap; gap: 14px; }
.booking-form .wpcf7-form > p:first-of-type { width: 100%; color: var(--tx2); font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.booking-form .wpcf7-form br { display: none; }
.booking-form .wpcf7-form-control-wrap { display: block; flex: 1 1 calc(50% - 7px); min-width: 200px; }
.booking-form input[type="text"], .booking-form input[type="tel"], .booking-form input[type="email"], .booking-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--bd); border-radius: var(--r-md);
  padding: 18px; color: var(--tx); font: inherit; font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.booking-form input::placeholder, .booking-form textarea::placeholder { color: var(--tx3); }
.booking-form input:focus, .booking-form textarea:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(232, 188, 116, .12); }
.booking-form .wpcf7-form-control-wrap[data-name^="acceptance"] { flex: 0 1 auto; min-width: 0; order: 2; }
.booking-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.booking-form .wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 10px; color: var(--tx3); font-size: 13px; cursor: pointer; }
.booking-form input[type="checkbox"] { accent-color: var(--acc); width: 18px; height: 18px; margin: 0; }
.booking-form .wpcf7-form > a { order: 2; align-self: center; margin-left: -8px; color: var(--tx3) !important; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.booking-form .wpcf7-submit {
  order: 3; flex: 1 1 100%; margin-top: 6px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--acc-btn); color: #000; padding: 20px 28px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  transition: background .3s, transform .35s var(--ease), box-shadow .35s;
}
.booking-form .wpcf7-submit:hover { background: var(--acc-btn-hover); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(232, 188, 116, .25); }
.booking-form .wpcf7-spinner { order: 3; }
.booking-form .wpcf7-not-valid-tip { font-size: 12px; color: #f87171; margin-top: 6px; }
.booking-form .wpcf7-response-output { order: 4; flex: 1 1 100%; margin: 4px 0 0 !important; padding: 14px 16px !important; border-radius: var(--r-md); font-size: 14px; color: var(--tx2); }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--bd-sub); padding: clamp(56px, 6.5vw, 96px) 0 32px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.foot-logo { color: var(--tx); display: inline-block; }
.foot-logo .logo-svg { height: 30px; width: auto; }
.foot-brand p { color: var(--tx2); margin: 22px 0 28px; max-width: 340px; }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--tx3); margin-bottom: 18px; }
.foot-menu li { margin-bottom: 10px; }
.foot-menu a { color: var(--tx); opacity: .82; }
.foot-menu a:hover { opacity: 1; }
.foot-mark { margin: clamp(48px, 6vw, 88px) 0 clamp(28px, 4vw, 44px); color: var(--mark); }
.foot-mark .logo-svg { width: 100%; height: auto; }
.foot-bot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: start; padding-top: 26px; border-top: 1px solid var(--bd-sub); font-size: 13px; line-height: 1.6; color: var(--tx3); }
.foot-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal a { color: var(--tx2); }
.foot-legal a:hover { color: var(--tx); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; margin-left: auto;
  display: flex; gap: 18px; align-items: center; padding: 18px 20px; font-size: 13px; line-height: 1.5; color: var(--tx2);
  background: var(--menu-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bd); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.cookie[hidden] { display: none; }
.cookie-btns { display: flex; flex-direction: column; gap: 8px; flex: none; }
.foot-link { padding: 0; border: 0; background: none; font: inherit; color: var(--tx2); cursor: pointer; }
.foot-link:hover { color: var(--tx); }
.cookie a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Внутренние страницы ---------- */
.page-hero {
  padding: calc(132px + 4vw) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--bd-sub);
  background: radial-gradient(70% 120% at 88% 0%, rgba(232, 188, 116, .09), transparent 60%), var(--bg);
}
.page-hero .h1 { margin-bottom: clamp(28px, 3vw, 44px); }
.page-hero .h1:last-child { margin-bottom: 0; }
.page-hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-nums--sm .hn dd { font-size: clamp(30px, 3vw, 48px); }
.hero-nums--sm .hn dt { color: var(--tx3); }
.page-hero--404 { min-height: 70vh; display: flex; align-items: center; border-bottom: 0; }
.page-hero--404 .lede { margin-bottom: 36px; }
.page-hero--article .h1 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; }

.crumbs { margin-bottom: clamp(28px, 3vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--tx4); }
.crumbs a:hover { color: var(--tx); }
.crumbs [aria-current] { color: var(--tx2); }

/* Список офисов */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--bd); border-radius: var(--r-pill); background: var(--deep); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--tx2); cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .10em; text-transform: uppercase; font-weight: 500; padding: 12px 18px; border-radius: var(--r-pill);
  transition: background .3s, color .3s;
}
.tab span { color: var(--tx4); }
.tab:hover { color: var(--tx); }
.tab.is-on { background: var(--tx); color: var(--bg); }
.tab.is-on span { color: var(--bg); opacity: .55; }
.sort { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--bd); border-radius: var(--r-pill); color: var(--tx); padding: 12px 42px 12px 18px;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none;
}
.sort select:focus { outline: 0; border-color: var(--acc); }
.oc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.oc.is-hidden { display: none; }
.oc-empty { color: var(--tx2); padding: 40px 0; }

/* Карточка офиса */
.office-hero { padding: calc(124px + 3vw) 0 clamp(40px, 5vw, 72px); }
.office-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.office-head .h1 { font-size: clamp(40px, 5.4vw, 88px); }
.office-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.office-price { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(38px, 3.8vw, 58px); font-weight: 300; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.office-price span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.office-price--ask { font-size: 28px; color: var(--tx2); }
.office-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.office-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--elev); }
.office-img { width: 100%; height: 100%; object-fit: cover; }
.office-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: clamp(14px, 1.6vw, 20px); border: 1px solid var(--bd-sub); border-radius: var(--r-lg); background: var(--deep); overflow: hidden; }
.office-facts div { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; border-right: 1px solid var(--bd-sub); }
.office-facts div:last-child { border-right: 0; }
.office-facts dt { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.office-facts dt .ic { width: 16px; height: 16px; color: var(--acc); }
.office-facts dd { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.office-col .h3 { margin-bottom: 26px; }
.office-detail { border-top: 1px solid var(--bd-sub); }
.plan { display: block; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--bd-sub); }
.plan-img { width: 100%; }
.ngg-wrap img { border-radius: var(--r-sm); }
.ngg-wrap .ngg-galleryoverview { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ngg-wrap .ngg-gallery-thumbnail-box, .ngg-wrap .ngg-gallery-thumbnail { margin: 0 !important; float: none !important; width: auto !important; }
.ngg-wrap .ngg-gallery-thumbnail a, .ngg-wrap .ngg-gallery-thumbnail img { border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; }
.ngg-wrap .ngg-clear { display: none; }

/* Тексты */
.page-body, .article-body { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.prose { color: var(--tx2); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; color: var(--tx); letter-spacing: -.01em; line-height: 1.15; margin-top: 1.6em; }
.prose h3 { font-size: 24px; font-weight: 400; color: var(--tx); margin-top: 1.6em; }
.prose strong { color: var(--tx); font-weight: 500; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose img { border-radius: var(--r-md); }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--acc); font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300; font-size: 24px; line-height: 1.35; color: var(--tx); }
.prose--check ul li { padding: 15px 0 15px 36px; border-bottom: 1px solid var(--bd-sub); margin: 0; }
.prose--check ul li + li { margin-top: 0; }
.prose--check ul li::before { left: 4px; top: 22px; width: 13px; height: 7px; border-radius: 0; background: none; border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(-45deg); }
.article-cover img { width: 100%; border-radius: var(--r-xl); margin-top: clamp(32px, 4vw, 56px); }
.notice { border: 1px solid var(--acc-line); background: var(--acc-soft); border-radius: var(--r-lg); padding: 28px 30px; margin-bottom: 40px; }
.notice .eyebrow { margin-bottom: 12px; }
.notice p { color: var(--tx); }
.notice .btn { margin-top: 22px; }
.post-list li a { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bd-sub); }
.post-list time { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--tx3); }
.post-list a:hover span { color: var(--acc); }

/* ---------- Появление при прокрутке ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .oc[data-reveal].in:hover { transform: translateY(-4px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 1100px) {
  .hero-foot { grid-template-columns: 1fr; grid-template-areas: "lede" "nums" "btns"; }
  .oc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incl-list { grid-template-columns: repeat(2, 1fr); }
  .spaces-grid { grid-template-columns: 1fr 1fr; }
  .space--wide { grid-column: 1 / -1; order: -1; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-bot { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 900px) {
  .about-grid, .booking-in, .loc-grid, .office-grid { grid-template-columns: 1fr; }
  .floors-grid { grid-template-columns: 1fr; }
  .floor { aspect-ratio: auto; }
  .floor-body { position: relative; min-height: 560px; gap: 40px; }
  .floor-num { font-size: clamp(110px, 30vw, 170px); }
  .prices { grid-template-columns: 1fr; }
  .video-frame { aspect-ratio: 16 / 10; }
  .scroll-cue { display: none; }
  /* Телефон: 8 фото в сетке 2×8 без пустот — широкое, высокое + два, два + высокое, широкое */
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 38vw, 170px); }
  .mosaic-item--1 { grid-column: 1 / -1; grid-row: 1 / 3; }
  .mosaic-item--2 { grid-column: 1; grid-row: 3 / 5; }
  .mosaic-item--3 { grid-column: 2; grid-row: 3; }
  .mosaic-item--4 { grid-column: 2; grid-row: 4; }
  .mosaic-item--5 { grid-column: 1; grid-row: 5; }
  .mosaic-item--6 { grid-column: 1; grid-row: 6; }
  .mosaic-item--7 { grid-column: 2; grid-row: 5 / 7; }
  .mosaic-item--8 { grid-column: 1 / -1; grid-row: 7 / 9; }
}
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
@media (max-width: 760px) {
  .nav-tel, .nav-cta { display: none; }
  .nav-in { padding-top: 16px; padding-bottom: 16px; }
  .hero { min-height: 620px; }
  .hero-nums { gap: 22px; flex-wrap: wrap; }
  .hero-btns .btn { flex: 1 1 auto; }
  .sec-head-side { max-width: none; }
  .oc-grid { grid-template-columns: 1fr; }
  .incl-list { grid-template-columns: 1fr; }
  .incl-item { min-height: 0; }
  .incl-item h3 { margin-top: 26px; }
  .spaces-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .booking-contacts li { grid-template-columns: 1fr; gap: 6px; }
  .office-cta { align-items: flex-start; }
  .office-btns { justify-content: flex-start; }
  .office-media { aspect-ratio: 4 / 3; }
  .office-facts { grid-template-columns: 1fr 1fr; }
  .office-facts div { border-bottom: 1px solid var(--bd-sub); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: space-between; }
  .tab { padding: 12px 12px; letter-spacing: .1em; }
  .sort { justify-content: space-between; }
  .post-list li a { grid-template-columns: 1fr; gap: 4px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-btns { flex-direction: row; }
  .cookie-btns .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Внутренние страницы: услуги, тарифы, контакты, новости
   ========================================================= */

/* Шапка страницы с фото */
.phero { padding: calc(124px + 3vw) 0 clamp(56px, 7vw, 104px); background: radial-gradient(60% 100% at 90% 0%, rgba(232, 188, 116, .08), transparent 60%), var(--bg); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.phero .h1 { margin-bottom: clamp(24px, 2.6vw, 36px); }
.phero .lede { margin-bottom: clamp(28px, 3vw, 40px); }
.phero-facts { margin-bottom: clamp(32px, 3.4vw, 48px); padding-top: 24px; border-top: 1px solid var(--bd-sub); flex-wrap: wrap; }
.phero-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--elev); }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Комнаты и таблицы цен */
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.room { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--bd-sub); }
.room-media { aspect-ratio: 16 / 10; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.room:hover .room-media img { transform: scale(1.04); }
.room-body { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: clamp(26px, 3vw, 44px); }
.room-body h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.room-body > p { color: var(--tx2); }
.room-body .btn { align-self: flex-start; margin-top: auto; }
.room-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.ptable { border-top: 1px solid var(--bd-sub); margin: 6px 0 4px; }
.ptable div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bd-sub); }
.ptable dt { color: var(--tx2); }
.ptable dd { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; line-height: 1; white-space: nowrap; }
.room-note { font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 500; color: var(--acc) !important; margin-bottom: 8px; }
.room--price { min-height: 100%; }
.room--acc { background: radial-gradient(90% 90% at 80% 0%, rgba(232, 188, 116, .14), transparent 60%), var(--surface); border-color: var(--acc-line); }
.room--acc .ptable dd { color: var(--acc); }

/* Полоса-цитата на фото */
.quote-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--bd-sub); border-bottom: 1px solid var(--bd-sub); }
.quote-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.32) saturate(.8); }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35)); }
.quote-band-text { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300; font-size: clamp(32px, 4.4vw, 72px); line-height: 1.1; letter-spacing: -.015em; max-width: 18ch; }
.quote-band-text em { font-style: normal; color: var(--acc); }

/* Отзывы */
.reviews { border-top: 1px solid var(--bd-sub); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.rev { position: relative; display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--bd-sub); margin: 0; }
.rev-q { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 120px; line-height: .6; height: 48px; color: var(--acc); }
.rev blockquote { margin: 0; flex: 1; }
.rev blockquote p { font-family: var(--sans); font-stretch: 100%; font-weight: 400; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--tx); }
.rev figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--bd-sub); }
.rev figcaption b { font-weight: 400; }
.rev figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }

/* Фотосетка */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.pgrid-item { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--elev); }
.pgrid-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.pgrid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pgrid-item:hover img { transform: scale(1.05); }

/* Три колонки преимуществ */
.incl-list--3 { grid-template-columns: repeat(3, 1fr); }

/* Локации для съёмок */
.locs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.locc { margin: 0; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--bd-sub); }
.locc-media { aspect-ratio: 4 / 3; overflow: hidden; }
.locc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.locc:hover .locc-media img { transform: scale(1.05); }
.locc figcaption { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.locc-n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--acc); }
.locc h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.locc p { color: var(--tx2); font-size: 15px; }

/* Шаги */
.steps-sec { border-top: 1px solid var(--bd-sub); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--bd-str); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--acc); }
.step-n { display: block; font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 300; font-size: clamp(56px, 5.4vw, 84px); line-height: .8; color: var(--acc); margin-bottom: 24px; }
.step h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 24px; font-weight: 400; line-height: 1.15; margin-bottom: 10px; }
.step p { color: var(--tx2); font-size: 15px; }

/* Тарифы */
.tariffs-sec .tabs { align-self: flex-end; }
.tgroup-h { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--acc); margin-bottom: 22px; }
.tgroup-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 88px); }
.tcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tcard { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.2vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--bd-sub); transition: border-color .4s, transform .5s var(--ease); }
.tcard:hover { border-color: var(--bd-str); transform: translateY(-4px); }
.tcard-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--bd-sub); }
.tcard h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.tcard-price { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(32px, 2.8vw, 44px); font-weight: 300; line-height: 1; white-space: nowrap; }
.tcard-price span { font-family: var(--sans); font-stretch: 100%; font-size: 14px; font-weight: 300; color: var(--tx3); margin-left: 6px; }
.tcard-list { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tcard-list li { position: relative; padding-left: 22px; color: var(--tx2); font-size: 14px; line-height: 1.45; }
.tcard-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(-45deg); }
.tcard .btn { align-self: flex-start; }
.trows { border-top: 1px solid var(--bd-sub); }
.trow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--bd-sub); }
.trow-title { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; line-height: 1; }
.trow-facts { display: flex; gap: 20px; color: var(--tx2); }
.trow-price { font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(22px, 1.8vw, 28px); font-weight: 300; white-space: nowrap; }
.trow-price span { font-family: var(--sans); font-stretch: 100%; font-size: 13px; color: var(--tx3); margin-left: 4px; }
.trow .round-btn { width: 44px; height: 44px; }
.trow-inc { grid-column: 1 / -1; margin-top: -8px; font-size: 14px; line-height: 1.55; color: var(--tx3); }
.tpanel[hidden] { display: none; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.contacts-tel { display: block; font-family: var(--display); font-stretch: var(--display-stretch); font-size: clamp(36px, 4.2vw, 68px); font-weight: 300; line-height: .95; letter-spacing: -.01em; margin-bottom: 14px; }
.contacts-mail { display: inline-block; font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; color: var(--acc); margin-bottom: 36px; }
.contacts-tel:hover, .contacts-mail:hover { color: var(--acc-hover); }
.contacts .loc-facts dd { text-align: right; max-width: 380px; color: var(--tx2); }
.contacts-socials { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.contacts-socials a:hover { color: var(--acc); }
.contacts-legal { margin-bottom: 34px; color: var(--tx3); font-size: 14px; line-height: 1.6; }
.map { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--bd-sub); background: var(--elev); aspect-ratio: 4 / 3.4; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }
.howto { border-top: 1px solid var(--bd-sub); }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.ncard { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--bd-sub); transition: border-color .4s, transform .5s var(--ease); }
.ncard:hover { border-color: var(--bd-str); transform: translateY(-4px); }
.ncard-link { display: flex; flex-direction: column; height: 100%; }
.ncard-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--elev); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ncard:hover .ncard-media img { transform: scale(1.04); }
.ncard-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--tx4); background: radial-gradient(80% 80% at 70% 20%, rgba(232, 188, 116, .1), transparent 60%), var(--elev); }
.ncard-empty .logo-svg { width: 34%; height: auto; }
.ncard-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px 24px 26px; }
.ncard-body time { font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; color: var(--tx3); }
.ncard-title { font-family: var(--display); font-stretch: var(--display-stretch); font-size: 22px; font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.ncard-ex { color: var(--tx2); }
.ncard .link-arrow { margin-top: auto; padding-top: 6px; }
.ncard--featured { grid-column: 1 / -1; }
.ncard--featured .ncard-link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.ncard--featured .ncard-media { aspect-ratio: auto; min-height: 420px; }
.ncard--featured .ncard-body { padding: clamp(28px, 3.4vw, 52px); justify-content: center; }
.ncard--featured .ncard-title { font-size: clamp(30px, 3vw, 46px); line-height: 1.1; }
.pager { margin-top: clamp(40px, 5vw, 72px); }
.pager ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--bd); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--tx2); }
.pager a:hover { border-color: var(--tx2); color: var(--tx); }
.pager .current { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.pager .dots { border: 0; }

/* Статья */
.wrap--cover { max-width: calc(1100px + var(--gut) * 2); }
.article-cover img { max-height: 640px; object-fit: cover; }
.h1--page { font-size: clamp(34px, 5vw, 80px); }
@media (min-width: 400px) { .h1--page { font-size: clamp(40px, 5vw, 80px); } }
.more-news { border-top: 1px solid var(--bd-sub); }

@media (max-width: 1100px) {
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-grid, .locs-grid { grid-template-columns: 1fr 1fr; }
  .rev:last-child, .locc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .trow { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 6px; }
  .trow-title { grid-column: 1; grid-row: 1; }
  .trow-facts { grid-column: 1; grid-row: 2; font-size: 14px; }
  .trow-price { grid-column: 2; grid-row: 1 / span 2; }
  .trow .round-btn { grid-column: 3; grid-row: 1 / span 2; }
  .trow-inc { grid-row: 3; margin-top: 6px; }
}
@media (max-width: 900px) {
  .phero-grid, .contacts-grid { grid-template-columns: 1fr; }
  .phero-media { aspect-ratio: 4 / 3; order: -1; }
  .rooms-grid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .incl-list--3 { grid-template-columns: 1fr; }
  .ncard--featured .ncard-link { grid-template-columns: 1fr; }
  .ncard--featured .ncard-media { min-height: 0; aspect-ratio: 16 / 10; }
  .contacts .loc-facts dd { text-align: left; }
  .contacts-socials { justify-content: flex-start; }
  .contacts .loc-facts div { flex-direction: column; gap: 6px; }
}
@media (max-width: 640px) {
  .tcards, .rev-grid, .locs-grid, .steps, .news-grid { grid-template-columns: 1fr; }
  .rev:last-child, .locc:last-child:nth-child(odd) { grid-column: auto; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow-price { grid-column: 1; grid-row: 3; }
  .trow .round-btn { grid-column: 2; grid-row: 1 / span 3; }
  .trow-inc { grid-row: 4; }
  .pgrid-item:nth-child(5n + 1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .ptable div { flex-direction: column; gap: 6px; }
  .map { aspect-ratio: 3 / 4; }
}

/* reCAPTCHA v3: стандартный значок скрыт, уведомление выводится под формой */
.grecaptcha-badge { visibility: hidden !important; }
.form-note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--tx4); }
.form-note a { color: var(--tx3); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Тёмные блоки поверх фото — светлый текст в обеих темах
   ========================================================= */
.hero, .floor, .quote-band, .video-frame, .lb {
  --tx: #fff; --tx2: rgba(255, 255, 255, .78); --tx3: rgba(255, 255, 255, .6); --tx4: rgba(255, 255, 255, .45);
  --bd-str: rgba(255, 255, 255, .35); --acc: #e8bc74; --acc-line: rgba(232, 188, 116, .34);
  color: var(--tx);
}
/* Шапка над первым экраном главной — светлая, пока страницу не прокрутили */
.home:not(.lock) .nav:not(.stuck) { --tx: #fff; --tx2: rgba(255, 255, 255, .78); --bd-str: rgba(255, 255, 255, .35); --acc: #e8bc74; }
/* Выпадающее меню над тёмным первым экраном — тоже тёмное, иначе в светлой теме белый текст на белом */
.home:not(.lock) .nav:not(.stuck) { --menu-bg: rgba(14, 14, 15, .96); --bd: rgba(255, 255, 255, .14); }
:root[data-theme="light"] body::after { opacity: .022; }
:root[data-theme="light"] .floor-img { filter: brightness(.62) saturate(.95); }

/* Переключатель темы */
.theme-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bd-str); background: transparent;
  color: var(--tx); display: inline-grid; place-items: center; cursor: pointer; flex: none;
  transition: border-color .3s, color .3s, background .3s;
}
.theme-btn:hover { border-color: var(--acc); color: var(--acc); }
.theme-btn .ic { width: 18px; height: 18px; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
.theme-btn--wide { width: auto; height: auto; border-radius: var(--r-pill); padding: 12px 18px; gap: 10px; display: inline-flex; align-self: flex-start; margin-bottom: 14px; font: inherit; letter-spacing: .06em; }
.theme-btn--wide .t-to-dark { display: none; }
:root[data-theme="light"] .theme-btn--wide .t-to-light { display: none; }
:root[data-theme="light"] .theme-btn--wide .t-to-dark { display: inline; }
:root[data-theme="light"] .btn-s { background: rgba(0, 0, 0, .02); }
:root[data-theme="light"] .btn-s:hover { border-color: var(--tx); background: rgba(0, 0, 0, .04); }
:root[data-theme="light"] .nav-links a:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme="light"] .burger { background: rgba(0, 0, 0, .03); }
:root[data-theme="light"] .hero .btn-s, :root[data-theme="light"] .floor .btn-s, :root[data-theme="light"] .home:not(.lock) .nav:not(.stuck) .burger,
:root[data-theme="light"] .home:not(.lock) .nav:not(.stuck) .nav-links a:hover { background: rgba(255, 255, 255, .06); }

/* Кнопка «наверх» */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--bd-str); background: var(--menu-bg); color: var(--tx); display: grid; place-items: center;
  cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s, color .3s, bottom .35s var(--ease);
}
.totop .ic { width: 20px; height: 20px; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--acc); color: var(--acc); }

/* Особенности офиса из основного списка (перегородки, секции) */
.office-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 16px; color: var(--tx2); }
.office-note .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--acc); }

/* Галерея офиса */
.og-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.og-item {
  position: relative; display: block; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--elev); cursor: zoom-in;
}
.og-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.og-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.og-item:hover img { transform: scale(1.04); }
.og-item:nth-child(n+6) { display: none; }
.og--n1 .og-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
.og--n2 .og-item { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
.og--n3 .og-item:not(:first-child) { grid-column: span 2; }
.og--n3 .og-item:not(:first-child), .og--n4 .og-item:last-child { aspect-ratio: 8 / 3; }
.og--n4 .og-item:last-child { grid-column: span 2; }
.og-more {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; letter-spacing: -.01em; transition: background .4s;
}
.og-item:hover .og-more { background: rgba(0, 0, 0, .4); }
.og-bar { display: none; }
[data-gallery] [data-full] { cursor: zoom-in; }

/* Просмотр фото на весь экран */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(4, 4, 5, .985); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb[hidden], .lb-btn[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px 24px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 84px; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s; }
.lb-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.lb-btn .ic { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-cap { padding: 12px 24px 18px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); min-height: 48px; }
body.lb-open { overflow: hidden; }

@media (max-width: 760px) {
  .nav-act .theme-btn { display: none; }
}
@media (max-width: 640px) {
  .og-track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scroll-padding-inline: var(--gut);
  }
  .og-track::-webkit-scrollbar { display: none; }
  .drawer-in { width: 100%; border-left: 0; }
  .og .og-item { display: block; grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .og--n1 .og-track { grid-auto-columns: 100%; }
  .og-more { display: none; }
  .og-bar { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--tx3); }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .lb-cap { padding-bottom: 84px; }
  .totop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
