:root {
  --ink: #1a2744;
  --ink-soft: #4a5d7a;
  --sun: #ff8a3d;
  --sun-hot: #ff6b1a;
  --lemon: #ffd84d;
  --sky: #3db8f5;
  --sky-deep: #1e8fd6;
  --coral: #ff6f61;
  --mist: #eaf7ff;
  --cloud: #fff8f1;
  --line: rgba(26, 39, 68, 0.12);
  --accent: var(--sun);
  --accent-hover: var(--sun-hot);
  --on-dark: #fffdf8;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 680px at 12% -10%, rgba(255, 186, 120, 0.28), transparent 60%),
    radial-gradient(1100px 620px at 92% 0%, rgba(90, 178, 230, 0.42), transparent 56%),
    radial-gradient(900px 520px at 78% 48%, rgba(120, 196, 235, 0.22), transparent 58%),
    radial-gradient(1000px 560px at 18% 100%, rgba(92, 184, 92, 0.32), transparent 58%),
    radial-gradient(820px 480px at 70% 92%, rgba(126, 200, 110, 0.22), transparent 60%),
    linear-gradient(180deg, #d8effc 0%, #eaf6fb 28%, #f7faf4 62%, #e4f2d8 100%);
  background-size: 125% 125%, 120% 120%, 115% 115%, 120% 120%, 115% 115%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 60% 40%, 10% 100%, 80% 100%, center;
  animation: sky-drift 36s ease-in-out infinite alternate;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}

@keyframes sky-drift {
  0% {
    background-position: 0% 0%, 100% 0%, 58% 42%, 8% 100%, 78% 100%, center;
  }
  50% {
    background-position: 8% 6%, 90% 4%, 62% 48%, 16% 96%, 72% 98%, center;
  }
  100% {
    background-position: 4% 10%, 96% 2%, 55% 38%, 12% 100%, 84% 94%, center;
  }
}

/* Soft atmosphere layer */
.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.58;
  will-change: transform;
}

.orb-sun {
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  top: -10%;
  left: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 220, 170, 0.95) 0%, rgba(255, 186, 120, 0.4) 42%, transparent 74%);
  animation: orb-drift-a 26s var(--ease) infinite alternate;
}

.orb-sky {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: -4%;
  right: -10%;
  background: radial-gradient(circle at 45% 40%, rgba(150, 214, 245, 0.95) 0%, rgba(74, 176, 235, 0.5) 46%, transparent 74%);
  opacity: 0.7;
  animation: orb-drift-b 30s var(--ease) infinite alternate;
}

.orb-lemon {
  width: min(44vw, 440px);
  height: min(44vw, 440px);
  bottom: 6%;
  left: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(150, 210, 120, 0.9) 0%, rgba(92, 184, 92, 0.45) 44%, transparent 72%);
  opacity: 0.62;
  animation: orb-drift-c 28s var(--ease) infinite alternate;
}

.orb-coral {
  width: min(40vw, 400px);
  height: min(40vw, 400px);
  bottom: -8%;
  right: 8%;
  background: radial-gradient(circle at 50% 45%, rgba(170, 220, 140, 0.85) 0%, rgba(110, 190, 100, 0.4) 48%, transparent 74%);
  opacity: 0.5;
  animation: orb-drift-a 32s var(--ease) infinite alternate-reverse;
}

.beam {
  position: absolute;
  width: min(64vw, 640px);
  height: 140px;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.2;
  transform: rotate(-18deg);
}

.beam-a {
  top: 22%;
  left: -10%;
  background: linear-gradient(90deg, transparent, rgba(130, 200, 240, 0.65), transparent);
  animation: beam-sweep 22s ease-in-out infinite alternate;
}

.beam-b {
  bottom: 18%;
  right: -14%;
  background: linear-gradient(90deg, transparent, rgba(120, 190, 100, 0.55), transparent);
  transform: rotate(14deg);
  animation: beam-sweep 26s ease-in-out infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes orb-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 4vh, 0) scale(1.06);
  }
}

@keyframes orb-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-4vw, 5vh, 0) scale(0.96);
  }
}

@keyframes orb-drift-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.98);
  }
  to {
    transform: translate3d(4vw, -4vh, 0) scale(1.05);
  }
}

@keyframes beam-sweep {
  from {
    transform: translate3d(0, 0, 0) rotate(-18deg);
    opacity: 0.14;
  }
  to {
    transform: translate3d(8vw, 3vh, 0) rotate(-14deg);
    opacity: 0.26;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand-mark,
.logo,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  color: var(--on-dark);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 248, 241, 0.92);
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: center;
  perspective: 1000px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
  position: relative;
  
  /* Glassmorphic default on dark header */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.15),
    0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Glassmorphic default on scrolled light header */
.site-header.is-scrolled .nav-btn,
.legal-page .site-header .nav-btn,
.storage-page .site-header .nav-btn {
  background: rgba(26, 39, 68, 0.04);
  border: 1px solid rgba(26, 39, 68, 0.15);
  color: var(--ink) !important;
  box-shadow:
    0 3px 0 rgba(26, 39, 68, 0.15),
    0 6px 12px rgba(26, 39, 68, 0.05);
}

/* 1. Помещения (Spaces) - "Сдвижной ящик" (Sliding Drawer) */
.nav-spaces:hover {
  background: linear-gradient(135deg, #4ec4f0, #1e8fd6);
  border-color: #156aa8;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow:
    0 5px 0 #156aa8,
    0 10px 18px rgba(30, 143, 214, 0.35);
}
.nav-spaces:active {
  transform: translateY(2px) translateZ(-12px) rotateX(12deg);
  box-shadow:
    0 1px 0 #156aa8,
    0 3px 6px rgba(30, 143, 214, 0.15);
}

/* 2. Юридический адрес (Legal) - "Штамп / Печать" (Stamp Seal) */
.nav-legal:hover {
  background: linear-gradient(135deg, #2a3c5a, #1a2744);
  border-color: #0d1624;
  color: #fff !important;
  transform: translateY(-4px) rotate(1.5deg);
  box-shadow:
    0 5px 0 #0d1624,
    0 10px 18px rgba(26, 39, 68, 0.35);
}
.nav-legal:active {
  transform: translateY(1px) translateZ(-15px) rotate(-4deg);
  box-shadow:
    0 1px 0 #0d1624,
    0 3px 6px rgba(26, 39, 68, 0.15);
}

/* 3. Кладовки / Склады (Storage) - "Откидная крышка" (Hinged Lid) */
.nav-storage:hover {
  background: linear-gradient(135deg, #ff9a3c, #ff6a1a);
  border-color: #d45510;
  color: #fff !important;
  transform: translateY(-4px) rotateX(8deg);
  box-shadow:
    0 5px 0 #d45510,
    0 10px 18px rgba(255, 107, 26, 0.35);
}
.nav-storage:active {
  transform: translateY(1px) translateZ(-10px) rotateX(-15deg);
  box-shadow:
    0 1px 0 #d45510,
    0 3px 6px rgba(255, 107, 26, 0.15);
}

/* 4. Адрес (Address) - "Компас / Карта" (Compass Tilt) */
.nav-address:hover {
  background: linear-gradient(135deg, #2ec4b6, #0f9f90);
  border-color: #0a6b5f;
  color: #fff !important;
  transform: translateY(-4px) rotateY(-12deg);
  box-shadow:
    0 5px 0 #0a6b5f,
    0 10px 18px rgba(15, 159, 144, 0.35);
}
.nav-address:active {
  transform: translateY(1px) translateZ(-10px) rotateY(18deg);
  box-shadow:
    0 1px 0 #0a6b5f,
    0 3px 6px rgba(15, 159, 144, 0.15);
}

/* 5. Связаться (Contact) - "Пружинный звонок" (Spring Bell) */
.nav-contact:hover {
  background: linear-gradient(135deg, #ff6b1a, #e84d12);
  border-color: #9e2f00;
  color: #fff !important;
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 5px 0 #9e2f00,
    0 10px 18px rgba(232, 77, 18, 0.35);
}
.nav-contact:active {
  transform: translateY(3px) translateZ(-18px) scale(0.92) rotate(3deg);
  box-shadow:
    0 1px 0 #9e2f00,
    0 2px 5px rgba(232, 77, 18, 0.15);
}

/* 6. Вопросы (FAQ) - "Качели / Маятник" (Pendulum Seesaw) */
.nav-faq:hover {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: #5b21b6;
  color: #fff !important;
  transform: translateY(-4px) rotate(3deg);
  box-shadow:
    0 5px 0 #5b21b6,
    0 10px 18px rgba(124, 58, 237, 0.35);
}
.nav-faq:active {
  transform: translateY(1px) translateZ(-10px) rotate(-8deg);
  box-shadow:
    0 1px 0 #5b21b6,
    0 3px 6px rgba(124, 58, 237, 0.15);
}

/* 7. Личный кабинет (Cabinet) - "Поворот ключа" (Key Turn) */
.nav-cabinet:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #b45309;
  color: #fff !important;
  transform: translateY(-4px) rotateY(-8deg);
  box-shadow:
    0 5px 0 #b45309,
    0 10px 18px rgba(217, 119, 6, 0.35);
}
.nav-cabinet:active {
  transform: translateY(1px) translateZ(-15px) rotateY(180deg);
  box-shadow:
    0 1px 0 #b45309,
    0 3px 6px rgba(217, 119, 6, 0.15);
}

.contact-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0.7rem 1.15rem;
  border: 1px solid #1c71a3;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #4ec4f0, #2a8fc9);
  box-shadow: 
    0 5px 0 #1c71a3,
    0 10px 20px rgba(30, 143, 214, 0.28);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.contact-call-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-4px);
  box-shadow: 
    0 7px 0 #145e8c,
    0 14px 24px rgba(30, 143, 214, 0.34);
}

.contact-call-btn:active {
  filter: brightness(0.96);
  transform: translateY(2px);
  box-shadow: 
    0 1px 0 #0f4d73,
    0 4px 10px rgba(30, 143, 214, 0.18);
}

.contact-call-btn:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-phone:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.site-header.is-scrolled .header-phone {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.28);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--on-dark);
  perspective: 1200px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/hero.webp") center / cover no-repeat;
  transform: scale(1.06);
  animation: hero-ken 18s var(--ease) forwards;
  filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 44, 72, 0.3) 0%, rgba(28, 44, 72, 0.08) 38%, rgba(22, 34, 58, 0.66) 100%),
    linear-gradient(115deg, rgba(255, 150, 100, 0.32) 0%, transparent 46%),
    linear-gradient(250deg, rgba(110, 180, 200, 0.28) 0%, transparent 48%);
}

/* 3D shapes stage */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1400px;
}

.shape-stage {
  position: absolute;
  right: clamp(2%, 6vw, 10%);
  top: 18%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  transition: transform 0.4s var(--ease);
}

.shape {
  position: absolute;
  transform-style: preserve-3d;
}

/* Cube — sunny orange */
.shape-cube {
  width: 120px;
  height: 120px;
  left: 12%;
  top: 22%;
  animation: spin-cube 14s linear infinite;
}

.shape-cube .face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backface-visibility: hidden;
}

.face-front {
  background: linear-gradient(145deg, #ffb067, var(--sun));
  transform: translateZ(60px);
  box-shadow: 0 20px 40px rgba(255, 107, 26, 0.35);
}
.face-back {
  background: linear-gradient(145deg, var(--sun-hot), #e85a00);
  transform: rotateY(180deg) translateZ(60px);
}
.face-right {
  background: linear-gradient(145deg, #ff9a4a, var(--sun-hot));
  transform: rotateY(90deg) translateZ(60px);
}
.face-left {
  background: linear-gradient(145deg, #ffc078, #ff8a3d);
  transform: rotateY(-90deg) translateZ(60px);
}
.face-top {
  background: linear-gradient(145deg, var(--lemon), #ffc94d);
  transform: rotateX(90deg) translateZ(60px);
}
.face-bottom {
  background: linear-gradient(145deg, #e86a20, #c44e0a);
  transform: rotateX(-90deg) translateZ(60px);
}

/* Pyramid — lemon / coral */
.shape-pyramid {
  width: 0;
  height: 0;
  left: 58%;
  top: 8%;
  transform-style: preserve-3d;
  animation: float-tilt 9s var(--ease) infinite;
}

.py-face {
  position: absolute;
  width: 110px;
  height: 110px;
  left: -55px;
  top: -55px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0.92;
  transform-origin: 50% 100%;
}

.py-front {
  background: linear-gradient(180deg, var(--lemon), var(--sun));
  transform: rotateX(30deg) translateZ(38px);
}
.py-right {
  background: linear-gradient(180deg, #ffe08a, var(--coral));
  transform: rotateY(90deg) rotateX(30deg) translateZ(38px);
}
.py-left {
  background: linear-gradient(180deg, #ffd060, #ff8a3d);
  transform: rotateY(-90deg) rotateX(30deg) translateZ(38px);
}
.py-back {
  background: linear-gradient(180deg, #ffb84d, #ff6b1a);
  transform: rotateY(180deg) rotateX(30deg) translateZ(38px);
}

/* Sphere — sky blue glass */
.shape-sphere {
  width: 150px;
  height: 150px;
  left: 48%;
  top: 48%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 50% 50%, #7ed4ff 0%, var(--sky) 45%, var(--sky-deep) 78%, #0f6fb0 100%);
  box-shadow:
    inset -18px -22px 40px rgba(10, 60, 110, 0.35),
    inset 12px 14px 28px rgba(255, 255, 255, 0.45),
    0 28px 50px rgba(30, 143, 214, 0.45);
  animation: float-bob 6s var(--ease) infinite;
  transform: translateZ(40px);
}

/* Prism — cyan block */
.shape-prism {
  width: 90px;
  height: 140px;
  left: 8%;
  top: 55%;
  transform-style: preserve-3d;
  animation: spin-y 18s linear infinite;
}

.pr-face {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pr-front,
.pr-back {
  width: 90px;
  height: 140px;
  left: 0;
  top: 0;
}
.pr-front {
  background: linear-gradient(160deg, #6ed0ff, var(--sky-deep));
  transform: translateZ(28px);
  box-shadow: 0 24px 40px rgba(61, 184, 245, 0.35);
}
.pr-back {
  background: linear-gradient(160deg, var(--sky-deep), #156aa8);
  transform: rotateY(180deg) translateZ(28px);
}
.pr-right,
.pr-left {
  width: 56px;
  height: 140px;
  left: 17px;
  top: 0;
}
.pr-right {
  background: linear-gradient(160deg, #4ab8ef, #1a7fc4);
  transform: rotateY(90deg) translateZ(45px);
}
.pr-left {
  background: linear-gradient(160deg, #8adfff, #3db8f5);
  transform: rotateY(-90deg) translateZ(45px);
}
.pr-top,
.pr-bottom {
  width: 90px;
  height: 56px;
  left: 0;
  top: 42px;
}
.pr-top {
  background: linear-gradient(160deg, #b8ecff, #6ed0ff);
  transform: rotateX(90deg) translateZ(70px);
}
.pr-bottom {
  background: linear-gradient(160deg, #1e8fd6, #0f5f96);
  transform: rotateX(-90deg) translateZ(70px);
}

/* Ring / torus-like */
.shape-ring {
  width: 160px;
  height: 160px;
  left: 62%;
  top: 62%;
  border-radius: 50%;
  border: 22px solid transparent;
  border-top-color: var(--coral);
  border-right-color: var(--lemon);
  border-bottom-color: var(--sky);
  border-left-color: var(--sun);
  box-shadow:
    0 20px 40px rgba(255, 111, 97, 0.3),
    inset 0 0 24px rgba(255, 255, 255, 0.25);
  transform: rotateX(68deg) rotateZ(20deg) translateZ(-20px);
  animation: spin-ring 12s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vh, 4rem);
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 1s var(--ease) 0.25s forwards;
  perspective: 1000px;
  transform-style: preserve-3d;
}

#hero-brand-mark {
  display: inline-block;
  transform: translateZ(40px);
  transition: transform 0.15s ease-out;
  text-shadow: 
    0 1px 0 #c44e0a,
    0 2px 0 #b34305,
    0 3px 0 #a23800,
    0 4px 0 #913000,
    0 5px 12px rgba(255, 107, 26, 0.45);
}

#hero-title {
  transform: translateZ(60px);
  transition: transform 0.15s ease-out;
  text-shadow: 
    0 1px 0 #156aa8,
    0 2px 0 #0f5f96,
    0 3px 0 #0a4f7c,
    0 4px 0 #053f62,
    0 5px 15px rgba(30, 143, 214, 0.4);
}

.brand-mark {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: none;
  width: 100%;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 253, 248, 0.9);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-lead {
    white-space: normal;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
  position: relative;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: linear-gradient(145deg, #ffb067 0%, var(--sun) 45%, var(--sun-hot) 100%);
  color: #fff;
  border: 1px solid #d45510;
  box-shadow:
    0 6px 0 #d45510,
    0 12px 20px rgba(255, 107, 26, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #ffc078 0%, var(--sun) 40%, #ff5a00 100%);
  transform: translateY(-6px);
  box-shadow:
    0 8px 0 #c44a0c,
    0 16px 24px rgba(255, 107, 26, 0.45);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #9e3600,
    0 4px 8px rgba(255, 107, 26, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--on-dark);
  backdrop-filter: blur(8px);
  box-shadow:
    0 6px 0 rgba(255, 255, 255, 0.25),
    0 12px 20px rgba(30, 143, 214, 0.15);
}

.btn-ghost:hover {
  background: rgba(61, 184, 245, 0.22);
  border-color: #fff;
  transform: translateY(-6px);
  box-shadow:
    0 8px 0 rgba(255, 255, 255, 0.45),
    0 16px 24px rgba(30, 143, 214, 0.25);
}

.btn-ghost:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.15),
    0 4px 8px rgba(30, 143, 214, 0.1);
}

/* Sections */
.section {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.section-intro p,
.location-copy > p,
.contact-intro > p {
  color: var(--ink-soft);
}

.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Spaces */
.spaces-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.space-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  perspective: 1000px;
}

.space-item--reverse {
  grid-template-columns: 1fr 1.15fr;
}

.space-item--reverse .space-visual {
  order: 2;
}

.space-item--reverse .space-copy {
  order: 1;
}

.space-visual {
  position: relative;
  min-height: clamp(220px, 36vw, 380px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 1.25rem;
  transform: rotateY(-6deg) rotateX(4deg);
  box-shadow:
    24px 28px 0 rgba(61, 184, 245, 0.25),
    0 30px 50px rgba(26, 39, 68, 0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.space-item:hover .space-visual {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-6px);
  box-shadow:
    18px 36px 0 rgba(255, 138, 61, 0.28),
    0 36px 60px rgba(26, 39, 68, 0.22);
}

.space-item--reverse .space-visual {
  transform: rotateY(6deg) rotateX(4deg);
  box-shadow:
    -24px 28px 0 rgba(255, 138, 61, 0.28),
    0 30px 50px rgba(26, 39, 68, 0.18);
}

.space-item--reverse:hover .space-visual {
  transform: rotateY(2deg) rotateX(1deg) translateY(-6px);
  box-shadow:
    -18px 36px 0 rgba(61, 184, 245, 0.28),
    0 36px 60px rgba(26, 39, 68, 0.22);
}

.space-visual--cabinet {
  background-image:
    linear-gradient(135deg, rgba(90, 178, 230, 0.18), transparent 45%),
    linear-gradient(225deg, rgba(92, 184, 92, 0.16), transparent 50%),
    url("assets/cabinet.webp?v=3d_v2");
}

.space-visual--open {
  background-image:
    linear-gradient(225deg, rgba(90, 178, 230, 0.2), transparent 48%),
    linear-gradient(135deg, rgba(110, 190, 100, 0.14), transparent 52%),
    url("assets/open.webp?v=3d_v2");
}

.space-visual--hourly {
  background-image:
    linear-gradient(135deg, rgba(255, 138, 61, 0.18), transparent 45%),
    linear-gradient(225deg, rgba(90, 178, 230, 0.16), transparent 50%),
    url("assets/hourly.webp?v=3d_v2");
}

.space-visual--storage {
  background-image:
    linear-gradient(135deg, rgba(92, 184, 92, 0.18), transparent 45%),
    linear-gradient(225deg, rgba(255, 138, 61, 0.16), transparent 50%),
    url("assets/storage.webp?v=3d_v2");
}

.space-copy p {
  color: var(--ink-soft);
  max-width: 28rem;
}

.space-meta {
  margin-top: 1rem !important;
  font-weight: 700;
  color: var(--sun-hot) !important;
}

/* Why 5D Cards */
.why {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(120, 196, 235, 0.22), transparent 62%),
    radial-gradient(640px 260px at 90% 100%, rgba(110, 190, 100, 0.2), transparent 60%);
  border-radius: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.why-list-5d {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  perspective: 1500px;
}

.card-5d {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 248, 255, 0.65));
  border: 1px solid rgba(30, 143, 214, 0.15);
  box-shadow: 
    0 15px 35px rgba(30, 143, 214, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 2.25rem 2rem;
  overflow: hidden;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  transition: 
    opacity 0.8s var(--ease), 
    transform 0.8s var(--ease), 
    border-color 0.3s, 
    box-shadow 0.3s;
  will-change: transform;
}

.card-5d.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* 5D Световой блик, следующий за курсором */
.card-5d-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(61, 184, 245, 0.15),
    transparent 80%
  );
  transition: opacity 0.4s ease;
}

.card-5d-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) var(--sheen-pos, 50%),
    transparent 100%
  );
  mix-blend-mode: overlay;
  transition: opacity 0.4s ease;
}

/* 5D Фоновая сетка геометрии */
.card-5d-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: radial-gradient(var(--sky-deep) 1px, transparent 1px);
  background-size: 16px 16px;
  transform: translateZ(10px);
  transition: transform 0.15s ease-out;
}

.card-5d-inner {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 5D Парящий 3D-бейдж с номером */
.card-5d-badge {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.18) 0%, rgba(30, 143, 214, 0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateZ(55px);
  transition: transform 0.15s ease-out, color 0.3s;
  pointer-events: none;
  user-select: none;
}

.card-5d:hover .card-5d-badge {
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.35) 0%, rgba(30, 143, 214, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-5d-content {
  transform-style: preserve-3d;
}

.card-5d-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sky-deep);
  margin-bottom: 0.85rem;
  transform: translateZ(35px);
  transition: transform 0.15s ease-out, color 0.3s;
}

.card-5d:hover .card-5d-content strong {
  color: var(--sun-hot);
}

.card-5d-content span {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
  transform: translateZ(20px);
  transition: transform 0.15s ease-out;
}

.card-5d:hover .card-5d-glow,
.card-5d:hover .card-5d-sheen {
  opacity: 1;
}

.card-5d:hover {
  border-color: rgba(255, 107, 26, 0.3);
  box-shadow: 
    0 30px 60px rgba(26, 39, 68, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* 3D объемный заголовок секции "Почему Маршрутная" */
#why-title {
  transform: translateZ(50px);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem) !important;
  background: linear-gradient(135deg, var(--sun-hot) 0%, #d45510 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 
    0 1px 0 #c44e0a,
    0 2px 0 #b34305,
    0 3px 0 #a23800,
    0 4px 12px rgba(255, 107, 26, 0.35);
}

#why-lead {
  transform: translateZ(30px);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
}

/* Услуга: юридический адрес — широкий объёмный блок + переливающаяся кнопка */
.service-legal {
  position: relative;
  width: 100%;
  max-width: none;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
  perspective: 1400px;
}

.legal-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.75rem;
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, rgba(255, 252, 248, 0.97), rgba(234, 247, 255, 0.92) 55%, rgba(255, 244, 232, 0.95)) padding-box,
    linear-gradient(135deg, rgba(61, 184, 245, 0.75), rgba(255, 216, 77, 0.45) 42%, rgba(255, 138, 61, 0.7) 78%, rgba(30, 143, 214, 0.55)) border-box;
  box-shadow:
    22px 28px 0 rgba(255, 138, 61, 0.14),
    0 32px 64px rgba(30, 143, 214, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  transform: perspective(1200px) rotateY(-2.5deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    box-shadow 0.55s var(--ease);
}

.legal-panel.is-visible {
  opacity: 1 !important;
  transform: perspective(1200px) rotateY(-2.5deg) rotateX(1.5deg) !important;
}

.legal-panel.is-visible:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg) translateY(-4px) !important;
  box-shadow:
    18px 34px 0 rgba(255, 138, 61, 0.18),
    0 40px 72px rgba(30, 143, 214, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.legal-panel:hover {
  box-shadow:
    18px 34px 0 rgba(255, 138, 61, 0.18),
    0 40px 72px rgba(30, 143, 214, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.legal-aura,
.legal-orb,
.legal-sheen,
.legal-depth {
  position: absolute;
  pointer-events: none;
}

.legal-aura {
  inset: -35% -5% auto auto;
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 184, 245, 0.32), transparent 68%);
  filter: blur(20px);
  animation: legalPulse 7s ease-in-out infinite;
  z-index: 0;
}

.legal-orb {
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}

.legal-orb-a {
  width: 200px;
  height: 200px;
  left: -50px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), transparent 70%);
  animation: legalDrift 16s ease-in-out infinite;
}

.legal-orb-b {
  width: 160px;
  height: 160px;
  right: 18%;
  top: 8%;
  background: radial-gradient(circle, rgba(255, 216, 77, 0.26), transparent 70%);
  animation: legalDrift 20s ease-in-out infinite reverse;
}

.legal-sheen {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.45) 42%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 36%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
  transform: translateX(-120%);
  animation: legalSheen 7.5s ease-in-out infinite;
  border-radius: inherit;
}

.legal-depth {
  inset: auto 8% -12px 12%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 39, 68, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.legal-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--sky-deep);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-eyebrow span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky), var(--sun));
  box-shadow: 0 0 16px rgba(61, 184, 245, 0.55);
  animation: legalDot 2.4s ease-in-out infinite;
}

.legal-copy h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(115deg, var(--ink) 8%, var(--sky-deep) 48%, var(--sun-hot) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-lead {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.65;
}

.legal-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.legal-points li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1rem 1.1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(30, 143, 214, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(234, 247, 255, 0.55));
  box-shadow:
    8px 12px 0 rgba(255, 138, 61, 0.1),
    0 14px 28px rgba(30, 143, 214, 0.08);
  transform: translateZ(24px);
  overflow: hidden;
}

.legal-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--sky), var(--sun));
  opacity: 0.9;
}

.legal-points strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.legal-points span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.legal-cta {
  display: grid;
  gap: 1rem;
  justify-items: stretch;
  margin-top: 0;
  opacity: 1;
  transform: none;
}

.shimmer-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.65rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1.15rem;
  border: 1px solid #156aa8;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  letter-spacing: -0.015em;
  text-decoration: none;
  text-align: center;
  background:
    linear-gradient(135deg, #1e8fd6, #3db8f5 42%, #ff8a3d) padding-box,
    linear-gradient(135deg, rgba(61, 184, 245, 0.95), rgba(255, 138, 61, 0.8) 55%, rgba(255, 224, 138, 0.75)) border-box;
  box-shadow:
    0 6px 0 #156aa8,
    0 14px 28px rgba(30, 143, 214, 0.32),
    0 0 34px rgba(255, 138, 61, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transform: translateZ(40px);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.shimmer-btn:hover {
  transform: translateZ(40px) translateY(-5px);
  box-shadow:
    0 8px 0 #0f5f96,
    0 20px 35px rgba(30, 143, 214, 0.38),
    0 0 42px rgba(255, 138, 61, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.shimmer-btn:active {
  transform: translateZ(40px) translateY(3px);
  box-shadow:
    0 2px 0 #0a4f7c,
    0 6px 12px rgba(30, 143, 214, 0.22),
    0 0 20px rgba(255, 138, 61, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.shimmer-btn-aura,
.shimmer-btn-sheen {
  position: absolute;
  pointer-events: none;
}

.shimmer-btn-aura {
  inset: -40% -10% auto auto;
  width: 140%;
  height: 160%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 68%);
  filter: blur(12px);
  animation: legalPulse 6.5s ease-in-out infinite;
  z-index: 0;
}

.shimmer-btn-sheen {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.58) 42%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transform: translateX(-120%);
  animation: legalSheen 7.5s ease-in-out infinite;
}

.shimmer-btn-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.shimmer-btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.shimmer-btn:hover .shimmer-btn-arrow {
  transform: translateX(5px);
}

.contact-legal-btn {
  width: auto;
  max-width: fit-content;
  margin-top: 1rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.02rem;
}

.contact-legal-btn .shimmer-btn-label {
  justify-content: flex-start;
}

.legal-note {
  max-width: none;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
  text-align: center;
}

@keyframes legalPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes legalSheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes legalDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
}

@keyframes legalDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

@media (max-width: 900px) {
  .legal-panel,
  .legal-panel:hover,
  .legal-panel.is-visible,
  .legal-panel.is-visible:hover {
    transform: none !important;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }

  .legal-points {
    grid-template-columns: 1fr;
  }

  .shimmer-btn {
    transform: none;
  }

  .shimmer-btn:hover,
  .shimmer-btn:active {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-aura,
  .legal-orb,
  .legal-sheen,
  .shimmer-btn-aura,
  .shimmer-btn-sheen,
  .legal-eyebrow span {
    animation: none;
  }

  .legal-sheen,
  .shimmer-btn-sheen {
    opacity: 0.2;
    transform: none;
  }

  .legal-panel {
    transform: none;
  }
}

/* Location */
.location {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  min-height: clamp(360px, 55vh, 520px);
  background:
    radial-gradient(600px 400px at 0% 100%, rgba(255, 138, 61, 0.45), transparent 55%),
    linear-gradient(145deg, #1a5f9e 0%, #1570c4 45%, #0f4f8a 100%);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.location-copy p {
  color: rgba(255, 253, 248, 0.86);
  max-width: 26rem;
}

.location-map {
  min-height: 320px;
  background: #0f4f8a;
  transform: perspective(900px) rotateY(-2deg);
  transform-origin: left center;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}

/* Contact Tiles Grid */
.contact-tiles-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.contact-tile {
  perspective: 1000px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.contact-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Tile Content Container */
.tile-3d-content {
  height: 100%;
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 225, 235, 0.93) 0%, rgba(220, 240, 255, 0.93) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 30px rgba(30, 143, 214, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transform-style: preserve-3d;
  transition: 
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    border-color 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Декоративная прозрачная травка */
.tile-grass-decor {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 140px;
  height: 140px;
  color: rgba(61, 184, 245, 0.07); /* Очень нежная, прозрачная голубовато-зеленая травка */
  pointer-events: none;
  z-index: 1;
  transform: translateZ(5px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s;
}

.contact-tile:hover .tile-grass-decor {
  transform: translateZ(15px) scale(1.08) rotate(3deg);
  color: rgba(255, 138, 61, 0.12); /* При наведении мягко подсвечивается теплым оттенком */
}

/* Hover effect on 3D Tiles */
.contact-tile:hover .tile-3d-content {
  transform: translateY(-8px) rotateX(3deg) rotateY(-2deg) translateZ(10px);
  box-shadow: 
    0 25px 50px rgba(30, 143, 214, 0.12),
    0 15px 25px rgba(255, 138, 61, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border-color: rgba(61, 184, 245, 0.35);
}

/* Custom styles for tile types */
.tile-form {
  grid-row: span 2;
}

.tile-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.15), rgba(30, 143, 214, 0.15));
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transform: translateZ(20px);
  transition: transform 0.3s var(--ease);
}

.contact-tile:hover .tile-icon {
  transform: translateZ(35px) scale(1.08) rotate(5deg);
}

.contact-tile h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  transform: translateZ(25px);
  transition: transform 0.3s var(--ease);
}

.contact-tile:hover h3 {
  transform: translateZ(35px);
}

.tile-desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  transform: translateZ(15px);
}

/* Inner Form Styling */
.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform-style: preserve-3d;
  flex-grow: 1;
}

.contact-form-inner label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transform: translateZ(15px);
  transition: transform 0.3s var(--ease);
}

.contact-form-inner label.label-message {
  flex-grow: 1;
}

.contact-form-inner textarea {
  flex-grow: 1;
  min-height: 120px;
  resize: vertical;
}

.contact-form-inner input,
.contact-form-inner textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(61, 184, 245, 0.28);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--ink);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.01),
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: translateZ(10px);
  transition: 
    border-color 0.3s, 
    box-shadow 0.3s, 
    background-color 0.3s, 
    transform 0.3s var(--ease);
}

.contact-form-inner input:focus,
.contact-form-inner textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #ffffff;
  box-shadow: 
    0 12px 24px rgba(30, 143, 214, 0.12),
    0 0 0 4px rgba(61, 184, 245, 0.2);
  transform: translateZ(25px) scale(1.02);
}

.contact-form-inner .btn {
  justify-self: start;
  margin-top: 0.5rem;
  transform: translateZ(20px);
  box-shadow: 0 4px 15px rgba(255, 138, 61, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s;
}

.contact-tile:hover .contact-form-inner .btn {
  transform: translateZ(30px);
}

.contact-form-inner .btn:hover {
  transform: translateZ(40px) scale(1.05) !important;
  box-shadow: 0 10px 25px rgba(255, 138, 61, 0.4);
}

.contact-form-inner .btn:active {
  transform: translateZ(15px) scale(0.98) !important;
}

/* Phone Links Styling in Tile */
.tile-phones-list {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  transform-style: preserve-3d;
}

.tile-phone-link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(61, 184, 245, 0.15);
  text-decoration: none;
  transform: translateZ(15px);
  transition: 
    background 0.3s, 
    border-color 0.3s, 
    transform 0.3s var(--ease), 
    box-shadow 0.3s;
}

.tile-phone-link:hover {
  background: #ffffff;
  border-color: var(--sky);
  transform: translateZ(30px) scale(1.03);
  box-shadow: 0 10px 20px rgba(30, 143, 214, 0.08);
}

.tile-phone-link .phone-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sun-hot), var(--sky-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tile-phone-link .phone-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* Legal Address Button in Tile */
.tile-legal .contact-legal-btn {
  margin-top: auto;
  align-self: start;
  transform: translateZ(15px);
  transition: transform 0.3s var(--ease);
}

.contact-tile:hover .contact-legal-btn {
  transform: translateZ(30px);
}

.tile-legal .contact-legal-btn:hover {
  transform: translateZ(40px) scale(1.03) !important;
}

/* 3D Success Flip Animation for Form Tile */
@keyframes tile-success-flip {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
  }
  50% {
    transform: perspective(1000px) rotateY(180deg) scale(0.9);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg) scale(1);
  }
}

.tile-form.is-success-anim .tile-3d-content {
  animation: tile-success-flip 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(61, 184, 245, 0.08));
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--sun-hot), var(--sky-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Legal Page Specific Styles */
.legal-page .site-header,
.storage-page .site-header {
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.legal-page .site-header .logo,
.storage-page .site-header .logo {
  color: var(--ink) !important;
}

.legal-page .site-header .nav a,
.storage-page .site-header .nav a {
  color: var(--ink) !important;
}

.legal-page .brand-mark,
.storage-page .brand-mark {
  color: var(--sun-hot);
  text-shadow: none;
}

.legal-page .hero-lead,
.storage-page .hero-lead {
  color: var(--ink-soft);
}

.legal-page .btn-ghost,
.storage-page .btn-ghost {
  background: rgba(26, 39, 68, 0.05);
  border: 1px solid rgba(26, 39, 68, 0.2);
  color: var(--ink);
  box-shadow:
    0 6px 0 rgba(26, 39, 68, 0.15),
    0 12px 20px rgba(26, 39, 68, 0.05);
}

.legal-page .btn-ghost:hover,
.storage-page .btn-ghost:hover {
  background: rgba(30, 143, 214, 0.1);
  border-color: var(--sky-deep);
  color: var(--sky-deep);
  box-shadow:
    0 8px 0 rgba(30, 143, 214, 0.25),
    0 16px 24px rgba(30, 143, 214, 0.15);
}

.legal-page .btn-ghost:active,
.storage-page .btn-ghost:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 rgba(30, 143, 214, 0.1),
    0 4px 8px rgba(30, 143, 214, 0.05);
}

.legal-hero,
.storage-hero {
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.legal-hero-content,
.storage-hero-content {
  max-width: 42rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.8s var(--ease) forwards;
}

.hero-price-tag {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.hero-price-tag strong {
  font-size: 1.85rem;
  color: var(--sun-hot);
  font-weight: 800;
}

/* Use Cases Grid */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.usecase-card {
  padding: 2rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 143, 214, 0.08);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.usecase-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: var(--sky);
}

.usecase-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.usecase-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sky-deep);
  text-decoration: none;
  transition: transform 0.2s var(--ease), color 0.2s;
}

.back-link:hover {
  color: var(--sun-hot);
  transform: translateX(-4px);
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.adv-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 255, 0.75));
  border: 1px solid rgba(30, 143, 214, 0.12);
  box-shadow: 0 10px 30px rgba(30, 143, 214, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.adv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(30, 143, 214, 0.08);
}

.adv-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(61, 184, 245, 0.12);
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.adv-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.adv-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Tariffs Grid */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 255, 0.75));
  border: 1px solid rgba(30, 143, 214, 0.12);
  box-shadow: 
    0 10px 30px rgba(30, 143, 214, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s;
  transform-style: preserve-3d;
}

.tariff-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(30, 143, 214, 0.25);
  box-shadow: 
    0 24px 48px rgba(30, 143, 214, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.tariff-card.popular {
  border: 2px solid var(--sun);
  background: linear-gradient(145deg, #fffdfa 0%, rgba(255, 248, 241, 0.9) 100%);
  box-shadow: 
    0 15px 35px rgba(255, 138, 61, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.tariff-card.popular:hover {
  border-color: var(--sun-hot);
  box-shadow: 
    0 28px 50px rgba(255, 138, 61, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.tariff-popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--sun-hot);
  color: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(255, 138, 61, 0.3);
}

.tariff-header h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.tariff-header .price {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink) 30%, var(--sky-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.tariff-card.popular .tariff-header .price {
  background: linear-gradient(135deg, var(--sun-hot) 0%, var(--ink) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tariff-header .price span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft); /* Сброс градиента для текста "/ мес." */
  letter-spacing: normal;
}

.tariff-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.tariff-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.tariff-features li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tariff-features li.disabled {
  color: var(--ink-soft);
  opacity: 0.5;
}

.tariff-features .check {
  color: #2e7d32;
  font-weight: 700;
}

.tariff-features .cross {
  color: #c62828;
  font-weight: 700;
}

.tariff-btn {
  width: 100%;
  text-align: center;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 251, 255, 0.75));
  border: 1px solid rgba(30, 143, 214, 0.12);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.is-active {
  border-color: var(--sky);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sky-deep);
  transition: transform 0.3s;
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Motion */
@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-cube {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

@keyframes spin-y {
  from {
    transform: rotateX(8deg) rotateY(0deg);
  }
  to {
    transform: rotateX(8deg) rotateY(360deg);
  }
}

@keyframes spin-ring {
  from {
    transform: rotateX(68deg) rotateZ(0deg) translateZ(-20px);
  }
  to {
    transform: rotateX(68deg) rotateZ(360deg) translateZ(-20px);
  }
}

@keyframes float-bob {
  0%,
  100% {
    transform: translateZ(40px) translateY(0);
  }
  50% {
    transform: translateZ(40px) translateY(-18px);
  }
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotateZ(-8deg) translateY(0);
  }
  50% {
    transform: rotateZ(8deg) translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-content,
  .section-intro,
  .space-item,
  .why-list li,
  .legal-cta,
  .legal-panel,
  .contact-tile,
  .tile-3d-content,
  .shape-cube,
  .shape-prism,
  .shape-sphere,
  .shape-ring,
  .shape-pyramid {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .hero-content,
  .section-intro,
  .space-item,
  .why-list li,
  .legal-cta,
  .legal-panel,
  .contact-tile,
  .tile-3d-content {
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .shape-stage {
    opacity: 0.55;
    right: -4%;
    top: 8%;
    width: 62vw;
    height: 62vw;
  }

  .space-item,
  .space-item--reverse {
    grid-template-columns: 1fr;
  }

  .space-item--reverse .space-visual,
  .space-item--reverse .space-copy {
    order: initial;
  }

  .space-visual,
  .space-item--reverse .space-visual,
  .space-item:hover .space-visual,
  .space-item--reverse:hover .space-visual {
    transform: none;
    box-shadow:
      12px 16px 0 rgba(61, 184, 245, 0.22),
      0 20px 36px rgba(26, 39, 68, 0.14);
  }

  .why-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .location-panel,
  .contact-tiles-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    transform: none;
  }

  .contact-tile,
  .tile-3d-content {
    transform: none !important;
  }
  
  .tile-form {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .header-phone {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .shape-stage {
    display: none;
  }

  .call-widget {
    right: 1rem;
    bottom: 1rem;
  }

  .call-fab {
    width: 58px;
    height: 58px;
  }

  .call-panel {
    min-width: min(280px, calc(100vw - 2rem));
  }
}

/* Floating call widget */
.call-widget {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.call-fab-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.call-fab-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, #ff9a3c 0%, #ff6a1a 100%);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(232, 77, 18, 0.35);
  white-space: nowrap;
  pointer-events: none;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}

.call-fab {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle at 30% 28%, #ffd27a 0%, transparent 42%),
    linear-gradient(145deg, #ff9a3c 0%, #ff6a1a 48%, #e84d12 100%);
  box-shadow:
    0 10px 24px rgba(232, 77, 18, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 -3px 8px rgba(140, 40, 0, 0.25) inset;
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.28s var(--ease);
}

.call-fab .phone-stop-a { stop-color: #fff6e8; }
.call-fab .phone-stop-b { stop-color: #ffe08a; }
.call-fab .phone-stop-c { stop-color: #ff8a3d; }

/* Вдавливание при нажатии */
.call-fab:active:not(.is-active) {
  transform: scale(0.92);
  background:
    radial-gradient(circle at 35% 30%, #ffd84d 0%, transparent 48%),
    radial-gradient(circle at 70% 70%, #ff8a3d 0%, transparent 50%),
    linear-gradient(145deg, #ffd84d 0%, #ff8a3d 42%, #ff6b1a 100%);
  box-shadow:
    0 4px 10px rgba(255, 107, 26, 0.3),
    0 4px 10px rgba(140, 40, 0, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.call-fab:active:not(.is-active) .phone-stop-a { stop-color: #fff6e8; }
.call-fab:active:not(.is-active) .phone-stop-b { stop-color: #ffe08a; }
.call-fab:active:not(.is-active) .phone-stop-c { stop-color: #ff8a3d; }
.call-fab:active:not(.is-active) .phone-shadow { flood-color: #8c2800; }

/* Во время звонка — больше зелёного и увеличение */
.call-fab.is-active {
  transform: scale(1.18);
  background:
    radial-gradient(circle at 32% 28%, #6ee0a8 0%, transparent 46%),
    radial-gradient(circle at 72% 68%, #3eb89a 0%, transparent 52%),
    linear-gradient(145deg, #45d492 0%, #2fa87a 45%, #2b8590 100%);
  box-shadow:
    0 14px 32px rgba(30, 120, 100, 0.45),
    0 2px 0 rgba(210, 255, 230, 0.45) inset,
    0 -3px 10px rgba(15, 70, 75, 0.3) inset;
  animation: call-active-pulse 1.8s ease-in-out infinite;
}

.call-fab.is-active:active {
  transform: scale(1.08);
  animation: none;
}

.call-fab.is-active .phone-stop-a { stop-color: #d2ffe8; }
.call-fab.is-active .phone-stop-b { stop-color: #45d98a; }
.call-fab.is-active .phone-stop-c { stop-color: #1f8f62; }
.call-fab.is-active .phone-shadow { flood-color: #0d4a38; }

.call-fab:hover:not(:active):not(.is-active) {
  box-shadow:
    0 14px 28px rgba(232, 77, 18, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}

.call-fab-icon {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 1px 1px rgba(120, 40, 0, 0.35));
  transform: none;
  transform-origin: center center;
  transition: filter 0.22s var(--ease);
  pointer-events: none;
}

.call-fab.is-active .call-fab-icon {
  filter: drop-shadow(0 1px 1px rgba(10, 70, 50, 0.4));
}

.call-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 140, 50, 0.65);
  animation: call-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.call-fab:active .call-fab-pulse,
.call-fab.is-active .call-fab-pulse {
  display: none;
}

.call-fab-wrap:has(.call-fab:active:not(.is-active)) .call-fab-label {
  background: linear-gradient(145deg, #ff9a3c 0%, #e84d12 100%);
  box-shadow: 0 4px 12px rgba(232, 77, 18, 0.3);
  transform: scale(0.96);
}

.call-fab-wrap:has(.call-fab.is-active) .call-fab-label {
  background: linear-gradient(145deg, #45d492 0%, #2b8590 100%);
  box-shadow: 0 6px 16px rgba(30, 120, 100, 0.4);
  transform: scale(1.06);
}

@keyframes call-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes call-active-pulse {
  0%, 100% { transform: scale(1.18); }
  50% { transform: scale(1.26); }
}

.call-panel {
  width: min(320px, calc(100vw - 2.5rem));
  padding: 0.85rem;
  border-radius: 1.15rem;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(255, 150, 80, 0.28);
  box-shadow:
    0 18px 40px rgba(26, 39, 68, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(10px);
  display: grid;
  gap: 0.45rem;
  transform-origin: bottom right;
  animation: call-panel-in 0.28s var(--ease);
}

.call-panel[hidden] {
  display: none;
}

@keyframes call-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.call-panel-title {
  margin: 0 0.25rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 39, 68, 0.55);
}

.call-panel-lead {
  margin: 0 0.25rem 0.65rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(26, 39, 68, 0.62);
}

.call-form {
  display: grid;
  gap: 0.65rem;
}

.call-destinations {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.4rem;
}

.call-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
  border: 1px solid rgba(255, 140, 60, 0.18);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.call-choice:has(input:checked) {
  border-color: rgba(255, 122, 26, 0.55);
  box-shadow: 0 6px 14px rgba(255, 122, 26, 0.12);
}

.call-choice input {
  margin-top: 0.2rem;
  accent-color: #ff6a1a;
}

.call-choice strong {
  display: block;
  font-size: 0.95rem;
}

.call-choice em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(26, 39, 68, 0.55);
}

.call-phone-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(26, 39, 68, 0.65);
}

.call-phone-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(61, 184, 245, 0.28);
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.call-phone-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(61, 184, 245, 0.22);
}

.call-submit {
  width: 100%;
  justify-self: stretch;
}

.call-hangup {
  width: 100%;
  justify-self: stretch;
  background: #c43d2e;
  color: #fff;
  border: none;
}

.call-hangup:hover {
  filter: brightness(1.05);
}

#call-remote-audio {
  display: none;
}

.call-status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  max-width: 12rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: #1a2744;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.14);
  pointer-events: none;
}

.call-status[hidden] {
  display: none;
}

.call-status.is-error {
  color: #c43d2e;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.call-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
  border: 1px solid rgba(255, 140, 60, 0.18);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.call-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.14);
}

.call-link-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M17.7 14.4c-.7-.4-1.5-.9-2.2-.6l-1 .5c-.4.2-.8.1-1.2-.2-1-.8-1.9-1.7-2.6-2.7-.3-.4-.4-.8-.2-1.2l.5-1c.3-.7 0-1.5-.5-2.2-.5-.7-1.1-1.4-1.8-1.8-.8-.5-1.6-.2-2.2.3L6.8 6c-.7.6-1 1.4-.9 2.2.1 2.4 1.4 5 3.6 7.2 2.2 2.2 4.8 3.5 7.2 3.6.8.1 1.6-.2 2.2-.9l.6-.7c.5-.6.8-1.4.3-2.2-.4-.7-1.1-1.3-1.8-1.8z'/%3E%3C/svg%3E")
      center / 18px 18px no-repeat,
    radial-gradient(circle at 35% 30%, #ffe6b0, transparent 45%),
    linear-gradient(145deg, #ff9f45, #ff6a1a);
  box-shadow: 0 4px 10px rgba(255, 106, 26, 0.35);
}

.call-link-icon::before {
  content: none;
}

.call-link-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.call-link-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.call-link-text em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(26, 39, 68, 0.58);
}

/* Sticky button for legal address page */
.sticky-top-btn {
  position: fixed;
  top: 95px;
  right: clamp(1rem, 4vw, 2.5rem);
  z-index: 39;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--sun-hot) 0%, var(--sun) 100%);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #d45510;
  box-shadow: 
    0 5px 0 #d45510,
    0 10px 25px rgba(255, 107, 26, 0.25);
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sticky-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 7px 0 #c44a0c,
    0 15px 30px rgba(255, 107, 26, 0.35);
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-hot) 100%);
}

.sticky-top-btn:active {
  transform: translateY(2px);
  box-shadow: 
    0 1px 0 #9e3600,
    0 4px 10px rgba(255, 107, 26, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  body,
  .orb,
  .beam,
  .call-fab-icon,
  .call-fab-pulse,
  .call-fab.is-active,
  .call-panel {
    animation: none !important;
  }
}

/* Cabinet Page Specific Styles */
.cabinet-page .contact-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.cabinet-intro-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2rem;
  border: 1px solid rgba(30, 143, 214, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cabinet-intro-card h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.cabinet-intro-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.cabinet-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cabinet-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cabinet-benefit-icon {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.1);
  color: var(--sun-hot);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cabinet-benefit-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.cabinet-benefit-text span {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.cabinet-support-info {
  border-top: 1px solid rgba(30, 143, 214, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cabinet-support-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.cabinet-support-phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sky-deep);
  text-decoration: none;
  transition: color 0.3s;
}

.cabinet-support-phone:hover {
  color: var(--sun-hot);
}

/* Premium Form Card */
.cabinet-form-card {
  position: relative;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 248, 255, 0.7) 100%);
  border: 1px solid rgba(30, 143, 214, 0.15);
  box-shadow: 
    0 30px 60px rgba(26, 39, 68, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 3rem 2.5rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.cabinet-form-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg) translateZ(10px);
  border-color: rgba(255, 107, 26, 0.3);
  box-shadow: 
    0 40px 80px rgba(26, 39, 68, 0.12),
    0 15px 30px rgba(255, 107, 26, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.cabinet-form-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 107, 26, 0.08),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cabinet-form-card:hover .cabinet-form-glow {
  opacity: 1;
}

.cabinet-form-inner {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

.cabinet-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
  transform-style: preserve-3d;
}

.cabinet-form-icon-wrap {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.12) 0%, rgba(30, 143, 214, 0.12) 100%);
  color: var(--sun-hot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 107, 26, 0.15);
  box-shadow: 0 10px 20px rgba(255, 107, 26, 0.05);
  transform: translateZ(25px);
  transition: transform 0.3s, background 0.3s;
}

.cabinet-form-card:hover .cabinet-form-icon-wrap {
  transform: translateZ(40px) scale(1.05) rotate(5deg);
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.18) 0%, rgba(30, 143, 214, 0.18) 100%);
}

.cabinet-form-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  transform: translateZ(20px);
}

.cabinet-form-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
  transform: translateZ(15px);
}

/* Premium Input Group */
.premium-input-group {
  position: relative;
  margin-bottom: 1.75rem;
  transform-style: preserve-3d;
}

.premium-input-group input {
  width: 100%;
  padding: 1.15rem 1.1rem 1.15rem 3.25rem;
  border: 1px solid rgba(30, 143, 214, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1rem;
  color: var(--ink);
  transform: translateZ(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-input-group label {
  position: absolute;
  left: 3.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--ink-soft);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Floating label logic */
.premium-input-group input:focus ~ label,
.premium-input-group input:not(:placeholder-shown) ~ label {
  top: 0;
  left: 1rem;
  transform: translateY(-50%) scale(0.85);
  background: #fff;
  padding: 0 0.5rem;
  color: var(--sun-hot);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(30, 143, 214, 0.04);
}

.input-icon-wrapper {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.3s, transform 0.3s;
  transform-style: preserve-3d;
}

.premium-input-group input:focus ~ .input-icon-wrapper {
  color: var(--sun-hot);
  transform: translateY(-50%) scale(1.1);
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sun-hot), var(--sky));
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

.premium-input-group input:focus ~ .input-focus-line {
  width: 80%;
}

.premium-input-group input:focus {
  border-color: rgba(255, 107, 26, 0.4);
  background: #ffffff;
  box-shadow: 
    0 15px 30px rgba(30, 143, 214, 0.08),
    0 0 0 5px rgba(255, 107, 26, 0.12);
}

/* Premium Submit Button */
.premium-submit-btn {
  width: 100%;
  padding: 1.15rem 2rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--sun-hot) 0%, #e84d12 100%);
  border: 1px solid #d45510;
  box-shadow: 
    0 6px 0 #b34305,
    0 12px 25px rgba(255, 107, 26, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(20px);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
}

.premium-submit-btn:hover {
  transform: translateZ(30px) translateY(-2px);
  box-shadow: 
    0 8px 0 #b34305,
    0 18px 35px rgba(255, 107, 26, 0.4);
  background: linear-gradient(135deg, #ff7a2e 0%, var(--sun-hot) 100%);
}

.premium-submit-btn:active {
  transform: translateZ(10px) translateY(4px);
  box-shadow: 
    0 2px 0 #b34305,
    0 6px 12px rgba(255, 107, 26, 0.2);
}

.btn-arrow {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: none;
}

.premium-submit-btn:hover .btn-shine {
  left: 100%;
  transition: left 0.8s ease-in-out;
}

.tile-form.is-success-anim .cabinet-form-card {
  animation: tile-success-flip 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 968px) {
  .cabinet-page .contact-tiles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

