/* ==========================================================================
   TELPA — бюро дизайна и планировки офисов (Рига, Латвия)
   Общие стили сайта.

   СОДЕРЖАНИЕ ФАЙЛА
     Раздел 1. Переменные темы, сброс стилей, декоративный фон, каркас
     Раздел 2. Типографика, утилиты, карточки, кнопки, чипы, формы
     Раздел 3. Шапка, верхняя навигация, боковая навигация, подвал
     Раздел 4. Главная страница: герой, процесс, сравнение планировок
     Раздел 5. 3D-тур, портфолио, калькулятор, запись, финал
     Раздел 6. Внутренние страницы и модальные окна
     Раздел 7. Адаптивные версии (планшет и телефон)
   ========================================================================== */

/* ==========================================================================
   РАЗДЕЛ 1. Базовые стили, тема и общие элементы (каркас, шапка, навигация, карточки, кнопки)
   ========================================================================== */
:root {
  --ink: #0b0c10;
  --ink2: #2a2d36;
  --mut: #7c8291;
  --line: rgba(11,12,16,.09);
  --panel: #f3f4f8;
  --w: #fff;
  --mint: #c8f1e1;
  --lav: #dcd6fb;
  --lime: #d7f46a;
  --sky: #bdd1e8;
  --coral: #e8765a;
  --e: cubic-bezier(.22,1,.36,1);
  --mx: 0;
  --my: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: clamp(9px,min(1.08vw,1.95vh),24px);
  -webkit-text-size-adjust: 100%;
}
@media (max-width:860px),(max-aspect-ratio:5/6) {
  html {
    font-size: clamp(13px,4.05vw,19px);
  }
}
body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Manrope',system-ui,sans-serif;
  color: var(--ink);
  background: #d8dde7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button {
  font-family: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg,#dfe3ec,#cfd6e3 55%,#d7dbe9);
}
.bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(8vmax);
  opacity: .75;
  translate: calc(var(--mx)*3vmax) calc(var(--my)*3vmax);
  animation: bgfloat 18s ease-in-out infinite alternate;
}
.bg i:nth-child(1) {
  width: 46vmax;
  height: 46vmax;
  left: -12vmax;
  top: -14vmax;
  background: #cfeee1;
}
.bg i:nth-child(2) {
  width: 40vmax;
  height: 40vmax;
  right: -10vmax;
  bottom: -14vmax;
  background: #d8d2fa;
  animation-delay: -6s;
}
.bg i:nth-child(3) {
  width: 30vmax;
  height: 30vmax;
  right: 20vw;
  top: -10vmax;
  background: #c3d6ec;
  animation-delay: -11s;
}
@keyframes bgfloat {
  to {
    transform: translate(4vmax,3vmax) scale(1.12);
  }
}
.app {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: .9rem;
}
.frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.4rem;
  background: linear-gradient(180deg,rgba(248,249,252,.92),rgba(237,240,246,.94));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 2.4rem 6rem -1.6rem rgba(30,40,70,.35),inset 0 0 0 1px rgba(255,255,255,.75);
  overflow: hidden;
}
/* topbar */ .topbar {
  position: absolute;
  z-index: 30;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  background: none;
  border: 0;
  text-align: left;
}
.logo-mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.15rem;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .8s var(--e),border-radius .8s var(--e);
}
.logo:hover .logo-mark {
  transform: rotate(90deg);
  border-radius: 50%;
}
.logo-t {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-t b {
  font-size: 1.55rem;
  letter-spacing: -.05em;
  font-weight: 800;
}
.logo-t small {
  font-size: .58rem;
  color: var(--mut);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: .3rem;
  font-weight: 600;
}
.nav {
  display: flex;
  gap: .15rem;
  padding: .3rem;
  background: #fff;
  border-radius: 3rem;
  position: relative;
  box-shadow: 0 .2rem 1rem rgba(20,30,60,.06);
}
.nav button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: .86rem;
  padding: .8rem 1.35rem;
  border-radius: 3rem;
  cursor: pointer;
  color: var(--ink2);
  transition: color .5s var(--e);
}
.nav button:not(.active):hover {
  color: var(--ink);
  background: rgba(11,12,16,.05);
}
.nav .nav-ind {
  position: absolute;
  z-index: 0;
  top: .3rem;
  bottom: .3rem;
  left: 0;
  width: 0;
  background: var(--ink);
  border-radius: 3rem;
  transition: left .7s var(--e),width .7s var(--e);
}
.nav button.active {
  color: #fff;
  background: none!important;
}
.top-r {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.burger {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  place-items: center;
  cursor: pointer;
}
.burger i {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  margin: .18rem 0;
  transition: .5s var(--e);
}
.burger.open i:nth-child(1) {
  transform: translateY(.38rem) rotate(45deg);
}
.burger.open i:nth-child(2) {
  opacity: 0;
}
.burger.open i:nth-child(3) {
  transform: translateY(-.38rem) rotate(-45deg);
}
/* buttons */ .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 0;
  font-weight: 700;
  font-size: .88rem;
  padding: .9rem 1.3rem;
  border-radius: 3rem;
  cursor: pointer;
  transition: transform .5s var(--e),background .4s,color .4s,box-shadow .5s;
  white-space: nowrap;
}
.btn.dark {
  background: var(--ink);
  color: #fff;
}
.btn.dark:hover {
  background: #262a35;
  box-shadow: 0 .8rem 2rem -.6rem rgba(0,0,0,.55);
}
.btn.light {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.light:hover {
  background: var(--lime);
}
.btn.lime {
  background: var(--lime);
  color: var(--ink);
}
.btn.lime:hover {
  background: #fff;
}
.btn .ar {
  width: 1.8rem;
  height: 1.8rem;
  margin: -.4rem -.6rem -.4rem 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: .85rem;
  transition: transform .6s var(--e);
}
.btn:hover .ar {
  transform: rotate(45deg);
}
.btn:active {
  transform: scale(.95);
}
.btn[disabled] {
  opacity: .35;
  pointer-events: none;
}
.round {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 0;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: .5s var(--e);
}
.round:hover {
  background: var(--ink);
  color: #fff;
  transform: scale(1.08);
}
/* rail */ .rail {
  position: absolute;
  z-index: 25;
  left: 1.2rem;
  top: 5.6rem;
  bottom: 1.2rem;
  width: 3.4rem;
  background: var(--ink);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  color: #fff;
  box-shadow: 0 1rem 2rem -1rem rgba(0,0,0,.5);
}
.rail-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .5s var(--e);
  font-size: .95rem;
}
.rail-btn:hover {
  background: var(--lime);
  color: var(--ink);
  transform: scale(1.12);
}
.rail-btn:disabled {
  opacity: .25;
  pointer-events: none;
}
.rail-dots {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: center;
  transition: opacity .4s;
}
.rail.single .rail-dots {
  opacity: 0;
  pointer-events: none;
}
.rail-dots button {
  position: relative;
  width: .55rem;
  height: .55rem;
  border-radius: 1rem;
  border: 0;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  padding: 0;
  transition: height .6s var(--e),width .6s var(--e),background .4s;
}
.rail-dots button:hover {
  background: rgba(255,255,255,.7);
}
.rail-dots button.active {
  height: 2rem;
  background: var(--lime);
}
.rail-dots button::before {
  content: '';
  position: absolute;
  inset: -.35rem -.8rem;
}
.rail-dots button span {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translate(-.6rem,-50%);
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: .5s var(--e);
  box-shadow: 0 .6rem 1.4rem -.6rem rgba(0,0,0,.4);
}
.rail-dots button:hover span {
  opacity: 1;
  transform: translate(0,-50%);
}
.rail-count {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono',monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  font-weight: 500;
  opacity: .75;
}
/* stage / views / slides */ .stage {
  position: absolute;
  z-index: 10;
  left: 5.4rem;
  right: 1.2rem;
  top: 5.6rem;
  bottom: 1.2rem;
}
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(.97);
  transition: opacity .6s,transform .9s var(--e),visibility 0s .9s;
}
.view.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7%) scale(.985);
  transition: opacity .7s var(--e),transform 1.1s var(--e),visibility 0s 1.1s;
}
.slide.past {
  transform: translateY(-7%) scale(.985);
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.8rem);
  }
}
@keyframes riseL {
  from {
    opacity: 0;
    transform: translateX(-2.2rem);
  }
}
@keyframes riseR {
  from {
    opacity: 0;
    transform: translateX(2.2rem);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.88);
  }
}
.slide.active [data-r] {
  animation: rise 1s var(--e) backwards;
  animation-delay: calc(var(--i,0)*85ms + .2s);
}
.slide.active [data-r=left] {
  animation-name: riseL;
}
.slide.active [data-r=right] {
  animation-name: riseR;
}
.slide.active [data-r=pop] {
  animation-name: pop;
}
.card {
  position: relative;
  border-radius: 2rem;
  background: var(--panel);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85);
}
.card.white {
  background: #fff;
}
.card.dark {
  background: var(--ink);
  color: #fff;
}
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
  background: radial-gradient(28rem circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.55),transparent 45%);
  mix-blend-mode: soft-light;
}
.glow:hover::after {
  opacity: 1;
}
.h-xl {
  font-size: 3.6rem;
  line-height: .97;
  letter-spacing: -.048em;
  font-weight: 700;
}
.h-lg {
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 700;
}
.h-md {
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 700;
}
em {
  font-family: 'Playfair Display',serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
}
.lead {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--mut);
  max-width: 36em;
}
.card.dark .lead {
  color: rgba(255,255,255,.6);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mut);
}
.kicker::before {
  content: '';
  width: .5rem;
  height: .5rem;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 .22rem rgba(215,244,106,.4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .5rem .9rem;
  border-radius: 3rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.chip.dot::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #3ccf91;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 .35rem rgba(60,207,145,.2);
  }
}
.mono {
  font-family: 'JetBrains Mono',monospace;
}
.noscroll {
  scrollbar-width: none;
}
.noscroll::-webkit-scrollbar {
  display: none;
}
/* wipe,
preload */ .wipe {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translateY(101%);
  pointer-events: none;
  border-radius: 50% 50% 0 0/14% 14% 0 0;
}
.wipe span {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -.06em;
  opacity: 0;
  transform: translateY(2rem);
  transition: .6s var(--e);
}
.wipe.in {
  transform: none;
  border-radius: 0;
  pointer-events: auto;
  transition: transform .65s var(--e),border-radius .65s var(--e);
}
.wipe.in span {
  opacity: 1;
  transform: none;
}
.wipe.out {
  transform: translateY(-101%);
  border-radius: 0 0 50% 50%/0 0 14% 14%;
  transition: transform .75s var(--e),border-radius .75s var(--e);
}
.wipe.reset {
  transition: none!important;
}
.preload {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 1.1s var(--e) .1s,border-radius 1.1s var(--e);
}
.preload.done {
  transform: translateY(-101%);
  border-radius: 0 0 50% 50%/0 0 12% 12%;
}
.pl-in {
  width: min(26rem,70vw);
}
.pl-logo {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1;
}
.pl-num {
  display: flex;
  justify-content: space-between;
  margin: 1.2rem 0 .6rem;
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
  opacity: .6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pl-bar {
  height: 2px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}
.pl-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width .2s;
}
/* cursor */ .cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  pointer-events: none;
  display: none;
}
body.has-cursor .cursor {
  display: block;
}
body.has-cursor,
body.has-cursor * {
  cursor: none!important;
}
body.walking .cursor {
  display: none;
}
body.walking,
body.walking * {
  cursor: auto!important;
}
.cursor i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.c-dot {
  width: .42rem;
  height: .42rem;
  background: var(--ink);
}
.c-ring {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(11,12,16,.45);
  transition: width .5s var(--e),height .5s var(--e),background .3s,border-color .3s;
}
body.c-hover .c-ring {
  width: 3.8rem;
  height: 3.8rem;
  background: rgba(215,244,106,.4);
  border-color: transparent;
}
body.c-down .c-ring {
  width: 1.3rem;
  height: 1.3rem;
}
/* modal */ .modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  visibility: hidden;
  opacity: 0;
  background: rgba(12,14,20,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity .5s,visibility 0s .6s;
}
.modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.modal-card {
  position: relative;
  width: min(88rem,100%);
  height: min(50rem,100%);
  background: #fff;
  border-radius: 2.2rem;
  overflow: hidden;
  transform: translateY(5rem) scale(.95);
  transition: transform .9s var(--e);
}
.modal.open .modal-card {
  transform: none;
}
.modal-x {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: .6s var(--e);
}
.modal-x:hover {
  transform: rotate(180deg);
  background: var(--lime);
  color: var(--ink);
}
/* mobile menu */ .menu-m {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 6.5rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transform: translateY(-101%);
  transition: transform .8s var(--e);
  border-radius: 0 0 2rem 2rem;
}
.menu-m.open {
  transform: none;
}
.menu-m button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: none;
  border: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -.04em;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
}
.menu-m button span {
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
  opacity: .5;
}
.menu-m .mm-foot {
  margin-top: auto;
  font-size: .8rem;
  opacity: .6;
  line-height: 1.7;
}
/* walk overlay */ .walk {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #0b0c10;
  visibility: hidden;
  opacity: 0;
  transition: opacity .7s,visibility 0s .7s;
  user-select: none;
  -webkit-user-select: none;
}
.walk.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
#walkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.walk-load {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity .8s;
  font-size: .9rem;
}
.walk-load.hide {
  opacity: 0;
  pointer-events: none;
}
.wl-bar {
  width: 14rem;
  height: 2px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}
.wl-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--lime);
  animation: wl 1.2s ease-in-out infinite;
}
@keyframes wl {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
.walk-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(10,12,18,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .6s;
  cursor: pointer;
}
.walk-start.hide {
  opacity: 0;
  pointer-events: none;
}
.ws-card {
  background: rgba(255,255,255,.92);
  border-radius: 2rem;
  padding: 2.2rem 2.6rem;
  text-align: center;
  max-width: 90vw;
  box-shadow: 0 3rem 6rem -2rem rgba(0,0,0,.6);
}
.ws-card h3 {
  font-size: 2rem;
  letter-spacing: -.04em;
  margin-bottom: .4rem;
}
.ws-card p {
  color: var(--mut);
  font-size: .9rem;
  margin-bottom: 1.4rem;
}
.keys {
  display: grid;
  grid-template-columns: repeat(3,2.8rem);
  gap: .35rem;
  justify-content: center;
  margin: 0 auto;
}
.key {
  height: 2.8rem;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 .25rem 0 #c9cdd8,inset 0 0 0 1px #d8dbe3;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  font-family: 'JetBrains Mono',monospace;
  transition: .15s;
}
.key.on {
  background: var(--lime);
  transform: translateY(.2rem);
  box-shadow: 0 .05rem 0 #9bb83a;
}
.key.wide {
  grid-column: span 3;
  width: auto;
  font-size: .7rem;
  letter-spacing: .12em;
}
.ws-go {
  margin-top: 1.4rem;
}
.walk-hud {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  color: #fff;
}
.walk-hud>* {
  pointer-events: auto;
}
.wh-top-l {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.wh-top-r {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wh-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(12,14,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 3rem;
  padding: .7rem 1.1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.wh-chip .live {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s infinite;
}
.seg {
  display: inline-flex;
  background: rgba(12,14,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 3rem;
  padding: .25rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.seg button {
  border: 0;
  background: none;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 3rem;
  cursor: pointer;
  transition: .4s var(--e);
}
.seg button.active {
  background: #fff;
  color: var(--ink);
}
.fov {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(12,14,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 3rem;
  padding: .65rem 1.1rem;
  font-size: .75rem;
  font-weight: 700;
}
.fov input {
  width: 6rem;
  accent-color: #d7f46a;
}
.fov b {
  font-family: 'JetBrains Mono',monospace;
  font-weight: 500;
  width: 2.4rem;
}
.wh-btn {
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: .78rem;
  padding: .75rem 1.2rem;
  border-radius: 3rem;
  cursor: pointer;
  transition: .5s var(--e);
}
.wh-btn:hover {
  background: var(--lime);
  transform: scale(1.05);
}
.wh-keys {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  background: rgba(12,14,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.4rem;
  padding: .9rem 1.1rem;
  font-size: .7rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.wh-keys .keys {
  grid-template-columns: repeat(3,2.1rem);
  gap: .25rem;
  margin: 0;
}
.wh-keys .key {
  height: 2.1rem;
  font-size: .7rem;
  border-radius: .6rem;
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
}
.wh-keys .key.on {
  background: var(--lime);
  color: var(--ink);
}
.wh-keys .key.sp {
  visibility: hidden;
}
.wh-keys .tx {
  opacity: .8;
  line-height: 1.6;
  font-weight: 600;
}
#walkMap {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 13rem;
  height: 9.4rem;
  border-radius: 1.2rem;
  background: rgba(12,14,20,.55);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.wh-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  translate: -50% -50%;
  pointer-events: none!important;
  mix-blend-mode: difference;
}
.wh-joy {
  position: absolute;
  left: 1.4rem;
  bottom: 1.6rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  display: none;
  touch-action: none;
}
.wh-joy i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}
body.touch .wh-joy {
  display: block;
}
body.touch .wh-keys {
  display: none;
}
body.touch #walkMap {
  bottom: auto;
  top: 4.6rem;
  width: 9rem;
  height: 6.5rem;
}
/* ---------- mobile ---------- */
@media (max-width:860px),(max-aspect-ratio:5/6) {
  .app {
    padding: .5rem;
  }
  .frame {
    border-radius: 1.7rem;
  }
  .topbar {
    top: .8rem;
    left: .8rem;
    right: .8rem;
    height: 3rem;
  }
  .nav,
    .top-cta {
    display: none;
  }
  .burger {
    display: grid;
    z-index: 95;
    position: relative;
  }
  .logo-t small {
    display: none;
  }
  .logo-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
  }
  .rail {
    left: .8rem;
    right: .8rem;
    bottom: .8rem;
    top: auto;
    width: auto;
    height: 3.4rem;
    flex-direction: row;
    padding: 0 .6rem;
    border-radius: 2rem;
  }
  .rail-dots {
    flex-direction: row;
  }
  .rail-dots button.active {
    height: .55rem;
    width: 2rem;
  }
  .rail-dots button span {
    display: none;
  }
  .rail-count {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .stage {
    left: .8rem;
    right: .8rem;
    top: 4.5rem;
    bottom: 5rem;
  }
  .slide {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }
  .slide::-webkit-scrollbar {
    display: none;
  }
  .h-xl {
    font-size: 2.7rem;
  }
  .h-lg {
    font-size: 2.15rem;
  }
  .modal {
    padding: .5rem;
  }
  .modal-card {
    height: 100%;
    overflow-y: auto;
    border-radius: 1.7rem;
  }
  .wipe span {
    font-size: 4rem;
  }
  .wh-top-r .fov {
    display: none;
  }
  .wh-keys {
    display: none;
  }
  #walkMap {
    width: 9rem;
    height: 6.5rem;
  }
}

/* ==========================================================================
   РАЗДЕЛ 2. Главная страница: герой, процесс работы, сравнение планировок «до / после»
   ========================================================================== */
/* ===== HERO ===== */ .s-hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.75fr);
  gap: 1rem;
}
.hero-left {
  container-type: inline-size;
  padding: 1.8rem 1.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
}
.hero-left .chips {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.hero-left h1 {
  font-size: min(3.7rem,10.4cqi);
}
.hero-left .lead {
  font-size: .88rem;
}
.stage-pills {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.sp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 0;
  background: var(--panel);
  font-weight: 700;
  font-size: .8rem;
  padding: .7rem 1.05rem .7rem .8rem;
  border-radius: 3rem;
  cursor: pointer;
  transition: background .5s var(--e),color .5s var(--e),transform .5s var(--e);
}
.sp i {
  font-style: normal;
  font-family: 'JetBrains Mono',monospace;
  font-size: .62rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  transition: .5s var(--e);
}
.sp:hover {
  transform: translateY(-.15rem);
  background: var(--mint);
}
.sp.active {
  background: var(--ink);
  color: #fff;
}
.sp.active i {
  background: var(--lime);
  color: var(--ink);
}
.cta-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.proof {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .78rem;
  color: var(--mut);
  font-weight: 600;
  line-height: 1.35;
}
.avs {
  display: flex;
}
.avs img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: .18rem solid #fff;
  margin-left: -.7rem;
  transition: transform .5s var(--e);
}
.avs img:first-child {
  margin-left: 0;
}
.proof:hover .avs img {
  transform: translateY(-.25rem);
}
.proof b {
  color: var(--ink);
  font-size: .95rem;
}
.hero-right {
  background: #fff;
  transition: background 1.6s;
}
.hero-right.rendered {
  background: linear-gradient(160deg,#f7f8fc,#e3e8f2);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11,12,16,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(11,12,16,.055) 1px,transparent 1px);
  background-size: 2.2rem 2.2rem;
  -webkit-mask-image: radial-gradient(ellipse at 55% 55%,#000 30%,transparent 78%);
  mask-image: radial-gradient(ellipse at 55% 55%,#000 30%,transparent 78%);
  transition: opacity 1.6s;
  translate: calc(var(--mx)*-.8rem) calc(var(--my)*-.8rem);
}
.hero-right.rendered .hero-grid-bg {
  opacity: 0;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
#heroDims,
#heroTags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dimtag {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono',monospace;
  font-size: .62rem;
  font-weight: 500;
  color: #6b7385;
  background: rgba(255,255,255,.9);
  padding: .15rem .45rem;
  border-radius: .3rem;
  white-space: nowrap;
  opacity: 0;
  will-change: transform,opacity;
}
.etag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .5rem .8rem .5rem .55rem;
  border-radius: 3rem;
  box-shadow: 0 .6rem 1.6rem -.6rem rgba(20,30,60,.3),inset 0 0 0 1px rgba(255,255,255,.9);
  white-space: nowrap;
  opacity: 0;
  will-change: transform,opacity;
}
.etag::before {
  content: '';
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 .22rem rgba(215,244,106,.5),0 0 0 .1rem #0b0c10 inset;
}
.etag small {
  font-weight: 600;
  color: var(--mut);
}
.hero-top {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
}
.hero-top>* {
  pointer-events: auto;
}
.readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  font-family: 'JetBrains Mono',monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink2);
}
.readout b {
  font-weight: 700;
}
.rbar {
  width: 11rem;
  height: .3rem;
  background: rgba(11,12,16,.1);
  border-radius: 1rem;
  overflow: hidden;
}
.rbar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 1rem;
}
.hero-bottom {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .7rem;
  pointer-events: none;
}
.gstat {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.4rem;
  padding: .85rem 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: transform .6s var(--e),background .4s;
  pointer-events: auto;
}
.gstat:hover {
  transform: translateY(-.3rem);
  background: rgba(255,255,255,.95);
}
.gstat b {
  font-size: 1.7rem;
  letter-spacing: -.05em;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.gstat span {
  font-size: .7rem;
  color: var(--mut);
  line-height: 1.3;
  font-weight: 600;
}
.hero-tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: .8rem;
  padding: .55rem .8rem;
  font-size: .72rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s;
  white-space: nowrap;
  z-index: 5;
}
.hero-tip small {
  display: block;
  font-family: 'JetBrains Mono',monospace;
  font-weight: 400;
  opacity: .6;
  font-size: .62rem;
  margin-top: .1rem;
}
.hero-load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
  transition: opacity .8s;
  pointer-events: none;
}
.hero-load.hide {
  opacity: 0;
}
/* ===== PROCESS ===== */ .s-proc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.s-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: .2rem .6rem 0;
}
.s-head .h-lg {
  margin-top: .5rem;
}
.acc {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: .8rem;
}
.acc-i {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--c,#fff);
  cursor: pointer;
  transition: flex 1.1s var(--e),background .6s,box-shadow .5s;
  padding: 1.5rem;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.acc-i:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8),0 1rem 2.4rem -1.2rem rgba(20,30,60,.35);
}
.acc-i.active {
  flex: 3.6;
  cursor: default;
}
.acc-i.dk {
  color: #fff;
}
.acc-n {
  font-family: 'JetBrains Mono',monospace;
  font-size: .8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.acc-n::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .4;
  transition: width .8s var(--e);
}
.acc-i.active .acc-n::after {
  width: 5rem;
}
.acc-v {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.035em;
  transition: opacity .4s;
}
.acc-i.active .acc-v {
  opacity: 0;
}
.acc-body {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 23rem;
  max-width: calc(100% - 3rem);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .4s,transform .5s var(--e);
}
.acc-i.active .acc-body {
  opacity: 1;
  transform: none;
  transition: opacity .7s .35s,transform 1s var(--e) .35s;
}
.acc-body h3 {
  font-size: 1.9rem;
  letter-spacing: -.045em;
  line-height: 1;
}
.acc-body p {
  font-size: .85rem;
  line-height: 1.55;
  opacity: .7;
}
.acc-meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  list-style: none;
}
.acc-meta li {
  font-size: .68rem;
  font-weight: 700;
  padding: .45rem .75rem;
  border-radius: 3rem;
  background: rgba(11,12,16,.07);
}
.acc-i.dk .acc-meta li {
  background: rgba(255,255,255,.12);
}
.acc-ill {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  width: min(26rem,56%);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .4s,transform .6s var(--e);
}
.acc-i.active .acc-ill {
  opacity: 1;
  transform: none;
  transition: opacity .8s .3s,transform 1.1s var(--e) .3s;
}
.acc-ill svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.i-ln {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.acc-i.active .dr {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 3.2s var(--e) infinite alternate;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.acc-i.active .scan {
  animation: scanx 3.2s ease-in-out infinite alternate;
}
@keyframes scanx {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(200px);
  }
}
.acc-i.active .bx {
  transform-box: fill-box;
  transform-origin: center;
  animation: bxin 4s var(--e) infinite;
  animation-delay: calc(var(--k)*.25s);
}
@keyframes bxin {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  18%,
    80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.acc-i.active .cube {
  transform-box: fill-box;
  transform-origin: center;
  animation: cubef 5s ease-in-out infinite;
}
@keyframes cubef {
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
.acc-i.active .pbar {
  transform-box: fill-box;
  transform-origin: left;
  animation: pbar 4s var(--e) infinite;
  animation-delay: calc(var(--k)*.4s);
}
@keyframes pbar {
  0% {
    transform: scaleX(0);
  }
  55%,
    100% {
    transform: scaleX(1);
  }
}
/* ===== PLAN COMPARE ===== */ .s-plan {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.8fr);
  gap: 1rem;
}
.plan-left {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
}
.metrics {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: auto;
}
.met {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .3rem .8rem;
  align-items: end;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mut);
}
.met b {
  font-size: 1.5rem;
  letter-spacing: -.05em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.met .mb {
  grid-column: 1/-1;
  height: .35rem;
  border-radius: 1rem;
  background: var(--panel);
  overflow: hidden;
}
.met .mb i {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--ink);
  border-radius: 1rem;
  transition: background .4s;
}
.toggles {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.tg {
  border: 0;
  background: var(--panel);
  font-weight: 700;
  font-size: .74rem;
  padding: .6rem .95rem;
  border-radius: 3rem;
  cursor: pointer;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  transition: .5s var(--e);
}
.tg::before {
  content: '';
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #c3c8d4;
  transition: .4s;
}
.tg.on {
  background: var(--ink);
  color: #fff;
}
.tg.on::before {
  background: var(--lime);
}
.tg:hover {
  transform: translateY(-.12rem);
}
.cmp {
  --pos: 50%;
  position: relative;
  background: #f4f5f9;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cmp-svg {
  position: absolute;
  inset: 3% 2%;
  width: 96%;
  height: 94%;
}
.cmp .layer.after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
  background: #fff;
}
.cmp .layer.before {
  position: absolute;
  inset: 0;
  background: #f1f2f6;
}
.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 3;
  pointer-events: none;
}
.cmp-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--ink);
}
.cmp-handle span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .9rem;
  letter-spacing: -.2em;
  box-shadow: 0 .8rem 2rem -.6rem rgba(0,0,0,.6);
  transition: transform .5s var(--e);
}
.cmp:hover .cmp-handle span {
  transform: scale(1.12);
}
.cmp-lab {
  position: absolute;
  top: 1.2rem;
  z-index: 2;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  padding: .55rem .95rem;
  border-radius: 3rem;
  pointer-events: none;
}
.cmp-lab.l {
  left: 1.2rem;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cmp-lab.r {
  right: 1.2rem;
  background: var(--ink);
  color: #fff;
}
.flow {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 2 11;
  opacity: 0;
  transition: opacity .6s;
  animation: flowm 1.2s linear infinite;
}
.show-flow .flow {
  opacity: 1;
}
@keyframes flowm {
  to {
    stroke-dashoffset: -26;
  }
}
.zones .zl {
  transition: opacity .6s;
}
.cmp:not(.show-zones) .zones {
  opacity: 0;
}
.zones {
  transition: opacity .6s;
}
.dimg {
  opacity: 0;
  transition: opacity .6s;
}
.show-dims .dimg {
  opacity: 1;
}
.cmp-svg text {
  font-family: 'Manrope',sans-serif;
}
.cmp-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  translate: -50% 0;
  z-index: 2;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 700;
  padding: .55rem 1rem;
  border-radius: 3rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width:860px),(max-aspect-ratio:5/6) {
  .s-hero,
    .s-plan {
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }
  .hero-right {
    order: -1;
    flex: none;
    height: min(30rem,72vh);
    min-height: 22rem;
  }
  .hero-left {
    flex: none;
    padding: 1.4rem;
  }
  .hero-left h1 {
    font-size: min(3rem,12.5cqi);
  }
  .gstat {
    padding: .6rem .8rem;
    border-radius: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }
  .gstat b {
    font-size: 1.2rem;
  }
  .gstat span {
    font-size: .6rem;
  }
  .hero-bottom {
    gap: .4rem;
    left: .7rem;
    right: .7rem;
    bottom: .7rem;
  }
  .hero-top {
    left: .7rem;
    right: .7rem;
    top: .7rem;
  }
  .hero-top .chip {
    font-size: .62rem;
  }
  .rbar {
    width: 6rem;
  }
  .s-proc {
    display: flex;
    flex-direction: column;
  }
  .s-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    flex: none;
  }
  .acc {
    flex-direction: column;
    flex: none;
  }
  .acc-i {
    flex: none;
    height: 5.2rem;
    padding: 1.1rem 1.3rem;
    transition: height 1s var(--e),background .6s;
  }
  .acc-i.active {
    height: 25rem;
    flex: none;
  }
  .acc-v {
    writing-mode: horizontal-tb;
    transform: none;
    left: auto;
    right: 1.3rem;
    bottom: auto;
    top: 1.1rem;
    font-size: 1.2rem;
  }
  .acc-ill {
    width: 50%;
    top: 3.8rem;
  }
  .acc-body {
    width: auto;
    right: 1.3rem;
    left: 1.3rem;
    bottom: 1.2rem;
  }
  .acc-body h3 {
    font-size: 1.5rem;
  }
  .plan-left {
    flex: none;
    padding: 1.4rem;
  }
  .cmp {
    flex: none;
    height: min(26rem,62vh);
  }
  .metrics {
    margin-top: .4rem;
  }
}

/* ==========================================================================
   РАЗДЕЛ 3. 3D-тур, портфолио на главной, калькулятор, запись на консультацию, финал
   ========================================================================== */
/* ===== TOUR ===== */ .s-tour {
  border-radius: 2rem;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.tour-bg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: .7;
  filter: saturate(.8) contrast(1.05);
  translate: calc(var(--mx)*-2rem) calc(var(--my)*-1.4rem);
  z-index: -2;
  transition: opacity .8s;
}
.s-tour::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,rgba(11,12,16,.92) 8%,rgba(11,12,16,.35) 55%,rgba(11,12,16,.7)),linear-gradient(0deg,rgba(11,12,16,.8),transparent 45%);
}
.tour-in {
  position: absolute;
  inset: 0;
  padding: 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tour-in .kicker {
  color: rgba(255,255,255,.65);
}
.tour-h {
  font-size: 5.6rem;
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 700;
  margin-top: 1rem;
}
.tour-h em {
  color: var(--lime);
}
.tour-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.tour-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 32rem;
  margin-top: 1.2rem;
}
.tour-chips .chip {
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: .5s var(--e);
}
.tour-chips .chip:hover {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-.2rem);
}
.tour-play {
  position: absolute;
  right: 11%;
  top: 50%;
  translate: 0 -50%;
  width: 15rem;
  height: 15rem;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: transform .8s var(--e);
}
.tour-play:hover {
  transform: scale(1.1);
}
.tour-play svg.t-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.tour-play .core {
  position: absolute;
  inset: 3.4rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  box-shadow: 0 0 0 0 rgba(215,244,106,.5);
  animation: ripple 2.4s infinite;
  transition: .6s var(--e);
}
.tour-play:hover .core {
  background: #fff;
}
@keyframes ripple {
  70% {
    box-shadow: 0 0 0 2rem rgba(215,244,106,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(215,244,106,0);
  }
}
.tour-keys {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.6rem;
  padding: 1rem 1.3rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.tour-keys .keys {
  grid-template-columns: repeat(3,2.3rem);
  gap: .28rem;
  margin: 0;
}
.tour-keys .key {
  height: 2.3rem;
  font-size: .75rem;
  border-radius: .65rem;
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: none;
  animation: keyp 3s infinite;
}
.tour-keys .key.sp {
  visibility: hidden;
  animation: none;
}
.tour-keys .key:nth-child(2) {
  animation-delay: 0s;
}
.tour-keys .key:nth-child(4) {
  animation-delay: .75s;
}
.tour-keys .key:nth-child(5) {
  animation-delay: 1.5s;
}
.tour-keys .key:nth-child(6) {
  animation-delay: 2.25s;
}
@keyframes keyp {
  0%,
    18%,
    100% {
    background: rgba(255,255,255,.16);
    color: #fff;
    transform: none;
  }
  6%,
    12% {
    background: var(--lime);
    color: var(--ink);
    transform: translateY(.15rem);
  }
}
.tour-keys .tx {
  font-size: .74rem;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}
/* ===== PROJECTS BENTO ===== */ .s-projs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.s-projs .s-head {
  align-items: center;
}
.bento {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .8rem;
}
.pj {
  position: relative;
  border-radius: 1.8rem;
  overflow: hidden;
  cursor: pointer;
  background: #cfd4de;
  isolation: isolate;
  transition: transform .8s var(--e),box-shadow .6s;
  transform-style: preserve-3d;
}
.pj:nth-child(1) {
  grid-row: 1/3;
}
.pj:nth-child(4) {
  grid-column: 2/4;
}
.pj img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  transition: transform 1.4s var(--e);
  z-index: -2;
  translate: calc(var(--px,0)*-1rem) calc(var(--py,0)*-1rem);
}
.pj:hover img {
  transform: scale(1.09);
}
.pj::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,rgba(11,12,16,.78),transparent 55%);
  transition: opacity .6s;
}
.pj:hover {
  box-shadow: 0 1.4rem 3rem -1rem rgba(11,12,16,.5);
}
.pj-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: .4rem;
}
.pj-top .chip {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  font-size: .66rem;
}
.pj-info {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  gap: 1rem;
}
.pj-info h3 {
  font-size: 1.35rem;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.pj-info p {
  font-size: .72rem;
  opacity: .75;
  margin-top: .35rem;
  font-weight: 600;
  transform: translateY(.6rem);
  opacity: 0;
  transition: .6s var(--e);
}
.pj:hover .pj-info p {
  opacity: .8;
  transform: none;
}
.pj-go {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: .7s var(--e);
}
.pj:hover .pj-go {
  background: var(--lime);
  transform: rotate(45deg) scale(1.1);
}
/* ===== CALCULATOR ===== */ .s-calc {
  display: grid;
  grid-template-columns: minmax(0,1.75fr) minmax(0,.85fr);
  gap: 1rem;
}
.calc {
  padding: 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #fff;
}
.calc-top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.calc-top .kicker {
  white-space: nowrap;
}
.qbar {
  flex: 1;
  height: .3rem;
  background: var(--panel);
  border-radius: 1rem;
  overflow: hidden;
}
.qbar i {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0;
  border-radius: 1rem;
  transition: width .9s var(--e);
}
.calc-body {
  flex: 1;
  min-height: 0;
  position: relative;
}
.q-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: qin .8s var(--e) both;
  overflow: hidden auto;
  scrollbar-width: none;
}
.q-step::-webkit-scrollbar {
  display: none;
}
.q-step.back {
  animation-name: qinb;
}
@keyframes qin {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }
}
@keyframes qinb {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
}
.q-title {
  font-size: 2.1rem;
  letter-spacing: -.05em;
  font-weight: 700;
  line-height: 1.02;
}
.q-sub {
  font-size: .85rem;
  color: var(--mut);
  margin-top: -.5rem;
}
.opts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .6rem;
  flex: 1;
  min-height: 0;
  grid-auto-rows: 1fr;
}
.opts.c4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.opts.c3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.opt {
  border: 0;
  background: var(--panel);
  border-radius: 1.4rem;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .5rem;
  transition: transform .6s var(--e),background .4s,color .4s,box-shadow .5s;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.opt:hover {
  transform: translateY(-.25rem);
  background: var(--mint);
}
.opt.sel {
  background: var(--ink);
  color: #fff;
}
.opt .oi {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .9rem;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: .5s var(--e);
}
.opt.sel .oi {
  background: var(--lime);
  transform: rotate(-8deg);
}
.opt .oi svg {
  width: 1.3rem;
  height: 1.3rem;
}
.opt b {
  font-size: .95rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  display: block;
}
.opt small {
  font-size: .7rem;
  opacity: .6;
  line-height: 1.35;
  display: block;
  margin-top: .2rem;
  font-weight: 500;
}
.opt .chk {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  transform: scale(0);
  transition: .6s var(--e);
}
.opt.sel .chk {
  transform: scale(1);
}
.opt .pr {
  font-family: 'JetBrains Mono',monospace;
  font-size: .7rem;
  font-weight: 500;
  opacity: .7;
}
.big-val {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: 6.5rem;
  letter-spacing: -.07em;
  font-weight: 700;
  line-height: .9;
}
.big-val small {
  font-size: 1.4rem;
  letter-spacing: -.03em;
  color: var(--mut);
}
.rng {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: .5rem;
  border-radius: 1rem;
  background: linear-gradient(90deg,var(--ink) var(--p,20%),var(--panel) var(--p,20%));
  outline: none;
  cursor: pointer;
}
.rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lime);
  border: .35rem solid var(--ink);
  box-shadow: 0 .4rem 1rem rgba(0,0,0,.3);
  transition: transform .4s var(--e);
}
.rng:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}
.rng::-moz-range-thumb {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--lime);
  border: .35rem solid var(--ink);
}
.rng-lab {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  font-weight: 700;
  color: var(--mut);
  font-family: 'JetBrains Mono',monospace;
}
.presets {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.stepper button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 0;
  background: var(--panel);
  font-size: 1.6rem;
  cursor: pointer;
  transition: .5s var(--e);
}
.stepper button:hover {
  background: var(--ink);
  color: #fff;
  transform: scale(1.1);
}
.density {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  border-radius: 1.2rem;
  background: var(--panel);
  font-size: .8rem;
  font-weight: 600;
  margin-top: auto;
}
.density i {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #3ccf91;
  flex: none;
}
.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.res {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
}
.res-l {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.res-price {
  font-size: 4.8rem;
  letter-spacing: -.07em;
  line-height: .9;
  font-weight: 700;
}
.res-price small {
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.brk {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: auto;
}
.brk div {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: .7rem;
  align-items: center;
  font-size: .74rem;
  font-weight: 600;
  color: var(--mut);
}
.brk i {
  display: block;
  height: .45rem;
  border-radius: 1rem;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.brk i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w,0%);
  background: var(--ink);
  border-radius: 1rem;
  transition: width 1.4s var(--e) .3s;
}
.brk b {
  color: var(--ink);
  font-family: 'JetBrains Mono',monospace;
  font-weight: 500;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--panel);
  border-radius: 1.6rem;
  padding: 1.2rem;
}
.lead-form h4 {
  font-size: 1.1rem;
  letter-spacing: -.03em;
}
.fld {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 1rem;
  padding: .9rem 1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .4s;
}
.fld:focus {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.fld.err {
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
textarea.fld {
  resize: none;
  min-height: 5rem;
}
.calc-side {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.calc-side .kicker {
  color: rgba(255,255,255,.55);
}
.sp-price {
  font-size: 4rem;
  letter-spacing: -.07em;
  font-weight: 700;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.sp-price small {
  font-size: 1.2rem;
  color: var(--lime);
  margin-right: .2rem;
}
.sp-range {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.dots {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: .28rem;
  align-content: center;
  padding: .4rem 0;
}
.dots i {
  aspect-ratio: 1;
  border-radius: .25rem;
  background: rgba(255,255,255,.12);
  transition: background .5s var(--e),transform .5s var(--e);
  transition-delay: calc(var(--n)*8ms);
}
.dots i.on {
  background: var(--lime);
  transform: scale(.92);
}
.dots i.z {
  background: #bdd1e8;
}
.sum {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .74rem;
}
.sum li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.sum li b {
  color: #fff;
  font-weight: 700;
  text-align: right;
}
.ok {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  flex: 1;
}
.ok .tick {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  animation: pop .8s var(--e) both;
}
.ok .tick svg {
  width: 2.6rem;
  height: 2.6rem;
}
.ok .tick path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw2 .8s .4s var(--e) forwards;
}
@keyframes draw2 {
  to {
    stroke-dashoffset: 0;
  }
}
/* ===== BOOKING ===== */ .s-book {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.9fr);
  gap: 1rem;
}
.book-side {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.book-side .kicker {
  color: rgba(255,255,255,.55);
}
.book-side .h-lg {
  font-size: 2.3rem;
}
.bsteps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .4rem;
}
.bsteps li {
  display: flex;
  gap: .8rem;
  align-items: center;
  font-size: .84rem;
  font-weight: 600;
  opacity: .4;
  transition: opacity .5s var(--e);
}
.bsteps li i {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: .68rem;
  font-family: 'JetBrains Mono',monospace;
  transition: .6s var(--e);
}
.bsteps li.on {
  opacity: 1;
}
.bsteps li.on i {
  background: var(--lime);
  color: var(--ink);
  border-color: transparent;
  transform: scale(1.1);
}
.bsteps li.done {
  opacity: .8;
}
.bsteps li.done i {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
}
.legend {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}
.legend span {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.legend i {
  width: .9rem;
  height: .9rem;
  border-radius: .3rem;
  flex: none;
}
.lg-free {
  background: var(--mint);
}
.lg-few {
  background: #f7d77a;
}
.lg-busy {
  background: repeating-linear-gradient(45deg,#6b7385 0 2px,#2a2d36 2px 5px);
}
.addr {
  font-size: .74rem;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .9rem;
}
.addr b {
  color: #fff;
}
.book-main {
  padding: 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
}
.b-body {
  flex: 1;
  min-height: 0;
  position: relative;
}
.book-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.b-note {
  font-size: .78rem;
  color: var(--mut);
  font-weight: 600;
}
.cal-wrap {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(0,.8fr);
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
}
.cal {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 0;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-head h4 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
  text-transform: capitalize;
}
.cal-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  grid-template-rows: auto repeat(6,minmax(0,1fr));
  gap: .35rem;
}
.cal-dow {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 700;
  text-align: center;
  padding-bottom: .2rem;
}
.day {
  position: relative;
  border: 0;
  border-radius: 1rem;
  background: var(--panel);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .5s var(--e),background .35s,color .35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 0;
}
.day small {
  font-size: .54rem;
  font-weight: 600;
  opacity: .55;
  letter-spacing: .02em;
}
.day:hover {
  transform: scale(1.08);
  background: var(--mint);
  z-index: 2;
}
.day.few {
  background: #fbefc6;
}
.day.few:hover {
  background: #f7d77a;
}
.day.busy {
  background: repeating-linear-gradient(45deg,#eceef3 0 2px,#f6f7fa 2px 6px);
  color: #b3b9c6;
  cursor: not-allowed;
  pointer-events: none;
}
.day.off,
.day.past {
  background: transparent;
  color: #c9cdd8;
  pointer-events: none;
  font-weight: 500;
}
.day.void {
  visibility: hidden;
  pointer-events: none;
}
.day.today::after {
  content: '';
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--coral);
}
.day.sel {
  background: var(--ink);
  color: #fff;
  transform: scale(1.05);
}
.day.sel small {
  opacity: .7;
}
.cal-side {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.info-card {
  background: var(--panel);
  border-radius: 1.5rem;
  padding: 1.1rem 1.2rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--mut);
  font-weight: 600;
}
.info-card b {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -.03em;
  margin: .2rem 0 .5rem;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .55rem;
  align-content: start;
  flex: 1;
}
.slot {
  border: 0;
  background: var(--panel);
  border-radius: 1.2rem;
  padding: 1.1rem .5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono',monospace;
  font-size: .95rem;
  cursor: pointer;
  transition: .5s var(--e);
}
.slot:hover {
  background: var(--mint);
  transform: translateY(-.2rem);
}
.slot.busy {
  background: repeating-linear-gradient(45deg,#eceef3 0 2px,#f6f7fa 2px 6px);
  color: #b3b9c6;
  pointer-events: none;
  text-decoration: line-through;
}
.slot.sel {
  background: var(--ink);
  color: #fff;
}
.ticket {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-radius: 1.8rem;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  animation: pop .9s var(--e) both;
  margin: auto 0;
  position: relative;
}
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  left: 58.3%;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  translate: -50% 0;
}
.ticket::before {
  top: -.8rem;
}
.ticket::after {
  bottom: -.8rem;
}
.tk-l {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.tk-l h3 {
  font-size: 2.4rem;
  letter-spacing: -.05em;
  line-height: 1;
}
.tk-l dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1.2rem;
  font-size: .8rem;
}
.tk-l dt {
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.tk-l dd {
  font-weight: 700;
}
.tk-r {
  border-left: 2px dashed rgba(255,255,255,.2);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: var(--lime);
  color: var(--ink);
}
.tk-r svg {
  width: 8rem;
  height: 8rem;
}
.tk-r b {
  font-family: 'JetBrains Mono',monospace;
  font-size: 1.1rem;
  letter-spacing: .1em;
}
.fmt {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .7rem;
  flex: 1;
  min-height: 0;
}
.fmt .opt {
  padding: 1.3rem;
}
.fmt .opt b {
  font-size: 1.15rem;
}
.fmt .opt .oi {
  width: 3rem;
  height: 3rem;
}
.fmt .opt .big {
  font-size: 2.6rem;
  letter-spacing: -.06em;
  font-weight: 700;
  line-height: 1;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
}
.formcol {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
/* ===== FINALE ===== */ .s-end {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) auto;
  gap: 1rem;
}
.end-main {
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--lime);
}
.end-main h2 {
  font-size: 5.4rem;
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 700;
}
.end-main h2 em {
  font-weight: 600;
}
.mq {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1.5px solid rgba(11,12,16,.25);
  border-bottom: 1.5px solid rgba(11,12,16,.25);
  padding: .8rem 0;
  margin: .6rem -2.4rem;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.mq-in {
  display: inline-flex;
  gap: 2rem;
  animation: mq 28s linear infinite;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.mq:hover .mq-in {
  animation-play-state: paused;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
.end-col {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-height: 0;
}
.ec {
  padding: 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: #fff;
}
.ec a.big {
  font-size: 1.7rem;
  letter-spacing: -.04em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: .5s var(--e);
}
.ec a.big:hover {
  transform: translateX(.5rem);
}
.ec a.big span {
  font-size: 1rem;
  transition: .5s var(--e);
}
.ec a.big:hover span {
  transform: rotate(45deg);
}
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: auto;
}
.links button {
  border: 0;
  background: var(--panel);
  border-radius: 1.2rem;
  padding: .9rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: .5s var(--e);
}
.links button:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-.2rem);
}
.foot {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .8rem;
  font-size: .7rem;
  color: var(--mut);
  font-weight: 600;
  flex-wrap: wrap;
}
.foot a:hover {
  color: var(--ink);
}
@media (max-width:860px),(max-aspect-ratio:5/6) {
  .s-tour {
    flex: none;
    min-height: 100%;
  }
  .tour-h {
    font-size: 3.2rem;
  }
  .tour-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .tour-play {
    right: auto;
    left: 50%;
    translate: -50% -50%;
    top: 44%;
    width: 9rem;
    height: 9rem;
  }
  .tour-play .core {
    inset: 2.2rem;
    font-size: 1.4rem;
  }
  .tour-in {
    padding: 1.5rem;
    min-height: 36rem;
    position: relative;
    inset: auto;
    height: 100%;
  }
  .tour-keys {
    display: none;
  }
  .s-projs {
    flex: none;
  }
  .bento {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .pj {
    height: 14rem;
    flex: none;
  }
  .s-calc,
    .s-book,
    .s-end {
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }
  .calc,
    .book-main {
    flex: none;
    padding: 1.3rem;
    min-height: 36rem;
  }
  .calc-side {
    flex: none;
    padding: 1.4rem;
  }
  .q-title {
    font-size: 1.6rem;
  }
  .opts,
    .opts.c4,
    .opts.c3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-rows: minmax(5.5rem,auto);
  }
  .q-step {
    overflow-y: auto;
  }
  .big-val {
    font-size: 4.6rem;
  }
  .res {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .res-price {
    font-size: 3.4rem;
  }
  .dots {
    grid-template-columns: repeat(12,1fr);
    flex: none;
    min-height: 5rem;
  }
  .book-side {
    flex: none;
    padding: 1.4rem;
  }
  .bsteps {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .bsteps li span {
    display: none;
  }
  .legend,
    .addr {
    display: none;
  }
  .cal-wrap,
    .two {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .cal-grid {
    min-height: 24rem;
  }
  .slots {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .fmt {
    grid-template-columns: 1fr;
  }
  .ticket {
    grid-template-columns: 1fr;
  }
  .ticket::before,
    .ticket::after {
    display: none;
  }
  .tk-r {
    border-left: 0;
    border-top: 2px dashed rgba(11,12,16,.2);
  }
  .end-main {
    flex: none;
    padding: 1.5rem;
  }
  .end-main h2 {
    font-size: 3.2rem;
  }
  .mq {
    margin: .6rem -1.5rem;
  }
  .end-col {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .foot {
    flex: none;
    padding-bottom: .4rem;
  }
}

/* ==========================================================================
   РАЗДЕЛ 4. Внутренние страницы: портфолио, студия, блог, контакты, модальные окна, адаптив
   ========================================================================== */
/* ===== INNER PAGES ===== */ .s-pall {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filters {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.fchip {
  border: 0;
  background: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: .7rem 1.15rem;
  border-radius: 3rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: .5s var(--e);
}
.fchip:hover {
  background: var(--mint);
  transform: translateY(-.15rem);
}
.fchip.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.pgrid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: .8rem;
}
.pcard {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .7s var(--e),box-shadow .6s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}
.pcard:hover {
  box-shadow: 0 1.4rem 2.6rem -1.2rem rgba(20,30,60,.45);
}
.pcard .ph {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem 1.6rem 0 0;
}
.pcard .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--e);
}
.pcard:hover .ph img {
  transform: scale(1.1);
}
.pcard .ph .chip {
  position: absolute;
  top: .8rem;
  left: .8rem;
  font-size: .62rem;
  padding: .4rem .7rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
}
.pcard .pm {
  padding: .85rem 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.pcard .pm h3 {
  font-size: 1rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.pcard .pm p {
  font-size: .68rem;
  color: var(--mut);
  font-weight: 600;
  margin-top: .25rem;
}
.pcard .pm span {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  transition: .6s var(--e);
  font-size: .85rem;
}
.pcard:hover .pm span {
  background: var(--lime);
  transform: rotate(45deg);
}
.pcard.gone {
  display: none;
}
.pcard.enter {
  animation: pop .7s var(--e) both;
}
/* materials */ .s-mat {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,.9fr);
  gap: 1rem;
}
.mat-stage {
  background: linear-gradient(160deg,#f7f8fc,#e1e6f0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mat-stage .kicker {
  position: absolute;
  left: 1.6rem;
  top: 1.5rem;
}
.mat-stage h2 {
  position: absolute;
  left: 1.6rem;
  top: 3.4rem;
  font-size: 2.3rem;
}
#isoRoom {
  width: min(100%,64rem);
  height: 92%;
  overflow: visible;
  translate: calc(var(--mx)*1rem) calc(var(--my)*.6rem);
}
.iso-i {
  transition: transform .6s var(--e);
  cursor: pointer;
}
.iso-i:hover {
  transform: translateY(-8px);
}
.iso-sw {
  transition: fill .8s var(--e);
}
.mat-tag {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: flex-end;
}
.mat-panel {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  overflow: hidden auto;
  scrollbar-width: none;
}
.mgroup h4 {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: .6rem;
  display: flex;
  justify-content: space-between;
}
.mgroup h4 b {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: .78rem;
}
.swatches {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.swatch {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1.1rem;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform .6s var(--e),box-shadow .4s;
  box-shadow: inset 0 0 0 1px rgba(11,12,16,.12);
}
.swatch:hover {
  transform: translateY(-.25rem) scale(1.06);
}
.swatch.sel {
  box-shadow: 0 0 0 .2rem #fff,0 0 0 .32rem var(--ink);
}
.mat-total {
  margin-top: auto;
  background: var(--panel);
  border-radius: 1.4rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mat-total b {
  font-size: 1.9rem;
  letter-spacing: -.05em;
}
.mat-total span {
  font-size: .74rem;
  color: var(--mut);
  font-weight: 600;
  line-height: 1.3;
}
/* about */ .s-ab1 {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 1rem;
}
.ab-text {
  padding: 2.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ab-text .h-lg {
  font-size: 3.1rem;
}
.nums {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .8rem;
  margin-top: auto;
}
.num {
  border-top: 1.5px solid var(--ink);
  padding-top: .7rem;
}
.num b {
  display: block;
  font-size: 2.4rem;
  letter-spacing: -.06em;
  line-height: 1;
  font-weight: 700;
}
.num span {
  font-size: .7rem;
  color: var(--mut);
  font-weight: 600;
  line-height: 1.3;
  display: block;
  margin-top: .4rem;
}
.collage {
  background: linear-gradient(160deg,#dfe6f2,#f1f3f8);
}
.collage .cl {
  position: absolute;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 1.6rem 3rem -1rem rgba(20,30,60,.4);
  translate: calc(var(--mx)*var(--k,1)*1.2rem) calc(var(--my)*var(--k,1)*1.2rem);
  transition: transform 1s var(--e);
}
.collage .cl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--e);
}
.collage .cl:hover {
  transform: scale(1.04) rotate(0deg)!important;
  z-index: 5;
}
.collage .cl:hover img {
  transform: scale(1.08);
}
.cl.a {
  left: 6%;
  top: 6%;
  width: 62%;
  height: 48%;
  --k: -1;
  transform: rotate(-2deg);
}
.cl.b {
  right: 5%;
  top: 30%;
  width: 46%;
  height: 38%;
  --k: 1.6;
  transform: rotate(2.5deg);
}
.cl.c {
  left: 12%;
  bottom: 5%;
  width: 50%;
  height: 36%;
  --k: .6;
  transform: rotate(-1deg);
}
.cl-badge {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  line-height: 1.3;
  animation: spin 16s linear infinite;
  z-index: 6;
}
.cl-badge span {
  display: block;
  animation: spin 16s linear infinite reverse;
}
.s-ab2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vals {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .8rem;
  flex: 1;
  min-height: 0;
}
.val {
  border-radius: 1.8rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg,#fff);
  transition: transform .7s var(--e),box-shadow .6s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.val:hover {
  transform: translateY(-.5rem);
  box-shadow: 0 1.6rem 3rem -1.4rem rgba(20,30,60,.5);
}
.val .vn {
  font-family: 'JetBrains Mono',monospace;
  font-size: .75rem;
}
.val .vi {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  display: grid;
  place-items: center;
  transition: .8s var(--e);
}
.val:hover .vi {
  transform: rotate(360deg) scale(1.1);
  background: var(--ink);
  color: var(--lime);
}
.val svg {
  width: 2rem;
  height: 2rem;
}
.val h3 {
  font-size: 1.5rem;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin-bottom: .5rem;
}
.val p {
  font-size: .8rem;
  line-height: 1.5;
  opacity: .7;
}
.tl {
  position: relative;
  padding: 1.4rem 1rem 0;
  flex: none;
}
.tl-line {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1.9rem;
  height: 2px;
  background: rgba(11,12,16,.12);
}
.tl-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 2.4s var(--e) .6s;
}
.slide.active .tl-line i {
  width: 100%;
}
.tl-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: .8rem;
}
.tln {
  padding-top: 1.6rem;
  position: relative;
  cursor: default;
}
.tln::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ink);
  transition: .6s var(--e);
}
.tln:hover::before {
  background: var(--lime);
  transform: scale(1.5);
}
.tln b {
  font-size: 1.3rem;
  letter-spacing: -.04em;
  display: block;
}
.tln span {
  font-size: .72rem;
  color: var(--mut);
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-top: .2rem;
}
.s-ab3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.team {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: .8rem;
}
.tm {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 1.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex 1.1s var(--e);
  isolation: isolate;
  background: #ccd2de;
}
.tm.active {
  flex: 3;
}
.tm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(1) contrast(1.05);
  transition: filter .9s,transform 1.3s var(--e);
}
.tm.active img,
.tm:hover img {
  filter: grayscale(0);
}
.tm.active img {
  transform: scale(1.04);
}
.tm::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,rgba(11,12,16,.85),transparent 55%);
}
.tm-i {
  position: absolute;
  left: 1.3rem;
  bottom: 1.3rem;
  right: 1.3rem;
  color: #fff;
}
.tm-i h3 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
  line-height: 1.05;
  white-space: nowrap;
}
.tm-i small {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  display: block;
  margin-top: .3rem;
  white-space: nowrap;
}
.tm-i p {
  font-size: .8rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: .8s var(--e);
  margin-top: 0;
  min-width: 18rem;
}
.tm.active .tm-i p {
  opacity: .85;
  max-height: 8rem;
  margin-top: .7rem;
  transition-delay: .3s;
}
.tm:not(.active) .tm-i h3 {
  font-size: 1.1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.tm:not(.active) .tm-i small {
  display: none;
}
.tm-i h3,
.tm-i small {
  transition: .5s;
}
/* blog */ .s-blog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: 1rem;
}
.post-big {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
}
.post-big img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.5s var(--e);
}
.post-big:hover img {
  transform: scale(1.07);
}
.post-big::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,rgba(11,12,16,.85),rgba(11,12,16,.05) 65%);
}
.post-big h3 {
  font-size: 2.3rem;
  letter-spacing: -.05em;
  line-height: 1;
  max-width: 20em;
  margin: .8rem 0;
}
.post-big p {
  font-size: .85rem;
  opacity: .75;
  max-width: 30em;
  line-height: 1.5;
}
.pmeta {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
}
.pmeta .chip {
  background: rgba(255,255,255,.2);
  color: inherit;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.plist {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 0;
}
.prow {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: .7rem 1.1rem .7rem .7rem;
  background: #fff;
  border-radius: 1.6rem;
  cursor: pointer;
  transition: transform .6s var(--e),box-shadow .6s;
  animation: rise .8s var(--e) backwards;
  animation-delay: calc(var(--n)*70ms);
}
.prow:hover {
  transform: translateX(-.5rem);
  box-shadow: 0 1rem 2rem -1rem rgba(20,30,60,.4);
}
.prow .th {
  height: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
}
.prow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--e);
}
.prow:hover img {
  transform: scale(1.15);
}
.prow h4 {
  font-size: 1.02rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.prow .pmeta {
  color: var(--mut);
  margin-bottom: .35rem;
  font-weight: 600;
}
.prow .go {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  transition: .6s var(--e);
}
.prow:hover .go {
  background: var(--lime);
  transform: rotate(45deg);
}
.reader {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  height: 100%;
}
.reader .rimg {
  position: relative;
}
.reader .rimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reader .rtxt {
  padding: 3rem 3.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reader h2 {
  font-size: 2.6rem;
  letter-spacing: -.05em;
  line-height: 1;
}
.reader p {
  font-size: .95rem;
  line-height: 1.7;
  color: #414652;
}
.reader .pmeta {
  color: var(--mut);
}
.reader blockquote {
  border-left: 3px solid var(--lime);
  padding: .3rem 0 .3rem 1.2rem;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  font-weight: 600;
  line-height: 1.35;
}
.pd {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  height: 100%;
}
.pd .rimg {
  position: relative;
}
.pd .rimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-t {
  padding: 2.6rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.pd-t h2 {
  font-size: 3rem;
  letter-spacing: -.055em;
  line-height: .98;
}
.pd-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .4rem;
}
.pd-g div {
  background: var(--panel);
  border-radius: 1.2rem;
  padding: .9rem 1.1rem;
}
.pd-g b {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -.05em;
}
.pd-g span {
  font-size: .68rem;
  color: var(--mut);
  font-weight: 600;
}
.pd-t p {
  font-size: .9rem;
  line-height: 1.65;
  color: #414652;
}
.tagr {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
/* contacts */ .s-ct {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: 1rem;
}
.ct-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}
.ct-info {
  padding: 1.6rem 1.8rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.ct-info .h-lg {
  font-size: 2.6rem;
}
.ct-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.ct-row {
  background: var(--panel);
  border-radius: 1.2rem;
  padding: .8rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mut);
  transition: .5s var(--e);
  display: block;
}
.ct-row:hover {
  background: var(--lime);
  transform: translateY(-.2rem);
}
.ct-row b {
  display: block;
  color: var(--ink);
  font-size: .92rem;
  margin-top: .15rem;
  letter-spacing: -.02em;
}
.ct-form {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1.8rem;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ct-form h3 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
}
.ct-form .fld {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.ct-form .fld::placeholder {
  color: rgba(255,255,255,.4);
}
.ct-form .fld:focus {
  box-shadow: inset 0 0 0 1.5px var(--lime);
}
.ct-form textarea.fld {
  flex: 1;
  min-height: 3rem;
}
.topics {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.topic {
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  padding: .55rem .9rem;
  border-radius: 3rem;
  cursor: pointer;
  transition: .5s var(--e);
}
.topic:hover {
  background: rgba(255,255,255,.25);
}
.topic.on {
  background: var(--lime);
  color: var(--ink);
}
.map {
  background: #e7ecf3;
}
.map svg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
}
.map .lyr {
  transition: transform .8s var(--e);
  translate: calc(var(--mx)*var(--k)*1rem) calc(var(--my)*var(--k)*1rem);
}
.pin {
  cursor: pointer;
}
.pin-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pinp 2.4s ease-out infinite;
}
@keyframes pinp {
  from {
    transform: scale(.4);
    opacity: .9;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.map-card {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 1rem 2.4rem -1rem rgba(20,30,60,.4);
}
.map-card b {
  font-size: 1.05rem;
  letter-spacing: -.03em;
  display: block;
}
.map-card span {
  font-size: .72rem;
  color: var(--mut);
  font-weight: 600;
  line-height: 1.4;
  display: block;
}
.s-faq {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 1rem;
}
.faq {
  padding: 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  overflow: auto;
  scrollbar-width: none;
  flex: 1;
}
.fq {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.fq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.025em;
}
.fq-q i {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  font-style: normal;
  transition: .6s var(--e);
}
.fq:hover .fq-q i {
  background: var(--lime);
}
.fq.open .fq-q i {
  transform: rotate(135deg);
  background: var(--ink);
  color: #fff;
}
.fq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .8s var(--e);
  font-size: .85rem;
  line-height: 1.6;
  color: var(--mut);
}
.fq-a p {
  padding-bottom: 1rem;
}
.visit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}
.visit-img {
  flex: 1;
  min-height: 0;
  position: relative;
}
.visit-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--e);
}
.visit-img:hover img {
  transform: scale(1.07);
}
.visit-steps {
  padding: 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.vs {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.vs b {
  color: #fff;
  display: block;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.vs i {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: 'JetBrains Mono',monospace;
  font-size: .7rem;
  font-weight: 700;
}
@media (max-width:860px),(max-aspect-ratio:5/6) {
  .pgrid {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .pcard {
    height: 17rem;
    flex: none;
  }
  .s-mat,
    .s-ab1,
    .blog-wrap,
    .s-ct,
    .s-faq {
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }
  .s-mat {
    flex: none;
  }
  .mat-stage {
    flex: none;
    height: 26rem;
  }
  .mat-panel {
    flex: none;
    overflow: visible;
  }
  .mat-stage h2 {
    font-size: 1.6rem;
    top: 3rem;
  }
  .ab-text {
    flex: none;
    padding: 1.5rem;
  }
  .ab-text .h-lg {
    font-size: 2.2rem;
  }
  .nums {
    grid-template-columns: repeat(2,1fr);
  }
  .collage {
    flex: none;
    height: 24rem;
  }
  .vals {
    display: flex;
    flex-direction: column;
    flex: none;
  }
  .val {
    min-height: 11rem;
  }
  .tl {
    padding-top: 1rem;
  }
  .tl-nodes {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.2rem;
  }
  .tl-line {
    display: none;
  }
  .team {
    flex-direction: column;
    flex: none;
  }
  .tm {
    flex: none;
    height: 5.5rem;
    transition: height 1s var(--e);
  }
  .tm.active {
    height: 22rem;
    flex: none;
  }
  .tm:not(.active) .tm-i h3 {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
  }
  .tm:not(.active) .tm-i {
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
  }
  .s-blog {
    flex: none;
  }
  .blog-wrap {
    flex: none;
  }
  .post-big {
    min-height: 22rem;
    flex: none;
  }
  .plist {
    flex: none;
  }
  .prow {
    flex: none;
    height: 6.5rem;
    grid-template-columns: 5rem 1fr auto;
    gap: .8rem;
  }
  .prow h4 {
    font-size: .88rem;
  }
  .post-big h3 {
    font-size: 1.7rem;
  }
  .reader,
    .pd {
    grid-template-columns: 1fr;
    height: auto;
  }
  .reader .rimg,
    .pd .rimg {
    height: 14rem;
  }
  .reader .rtxt,
    .pd-t {
    padding: 1.5rem;
    overflow: visible;
  }
  .reader h2,
    .pd-t h2 {
    font-size: 2rem;
  }
  .ct-left {
    flex: none;
  }
  .ct-form {
    flex: none;
  }
  .map {
    flex: none;
    height: 26rem;
  }
  .ct-rows {
    grid-template-columns: 1fr;
  }
  .faq {
    flex: none;
    padding: 1.4rem;
  }
  .visit {
    flex: none;
  }
  .visit-img {
    flex: none;
    height: 14rem;
  }
}

/* ==========================================================================
   ДОПОЛНИТЕЛЬНО. Правила, которые раньше добавлялись скриптом в <head>
   ========================================================================== */
[data-magnet] {
  transition: translate .6s var(--e),transform .5s var(--e),background .4s,color .4s,box-shadow .5s!important;
}
.pj,
.pcard,
.post-big {
  will-change: transform;
}
body.lock {
  overflow: hidden;
}
