/* ============================================
   SENSE ROOM V4 — CINEMATIC SPA EXPERIENCE
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --text: #f0ede8;
  --accent: #c9a96e;
  --card-bg: #161616;
  --card-bg-hover: #1e1e1e;
  --muted: #8c8c8c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: none; color: inherit; }
@media (max-width: 768px) {
  button { cursor: pointer; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-circle {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.23,1,0.32,1), height 0.35s cubic-bezier(0.23,1,0.32,1), border-color 0.3s, background 0.3s;
}
.cursor-circle.active {
  width: 64px; height: 64px;
  border-color: rgba(201,169,110,0.6);
  background: rgba(201,169,110,0.07);
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-circle { display: none !important; }
}

/* ============================================
   FILM GRAIN OVERLAY
   ============================================ */
.film-grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 99990;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-10px, -15px); }
  66% { transform: translate(5px, 10px); }
  100% { transform: translate(0, 0); }
}
@media (max-width: 768px) {
  .film-grain { opacity: 0.02; animation-duration: 1s; }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #050505;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: clip-path;
}
.loader.exit {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(0.77,0,0.175,1);
}
.loader.done {
  pointer-events: none;
  visibility: hidden;
}
.loader-brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  overflow: hidden;
}
.loader-brand .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  background: linear-gradient(180deg, #888 0%, #fff 40%, #c8c8c8 60%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.5rem 0;
}
.loader-bar-track {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #e8d5a8);
  transition: width 0.15s ease-out;
}
.loader-percent {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 300;
  opacity: 0;
}
.loader-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 2rem;
  opacity: 0;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.6s, background 0.4s;
}
.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.visible { opacity: 1; }
/* FIX: при открытом меню навбар поднимается НАД меню и теряет blend-режим — крестик виден и кликабелен */
.nav.menu-open {
  z-index: 10001;
  mix-blend-mode: normal;
}
.nav.menu-open .hamburger { position: relative; z-index: 2; }
.nav.menu-open .hamburger span { background: #fff; }
.mobile-menu { -webkit-tap-highlight-color: transparent; }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(201,169,110,0.08);
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 12px;
  width: 48px;
  height: 48px;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.4s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5,5,5,0.97);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: var(--bg);
}
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-mobile {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-canvas { display: none; }
  .hero-video-mobile { display: block; }
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* Только мягкое вертикальное затемнение для глубины и читаемости.
     Центральный radial-эллипс убран — он создавал прямоугольную «плашку» за заголовком. */
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.18) 38%, rgba(10,10,10,0.22) 62%, rgba(10,10,10,0.72) 100%);
  z-index: 2;
}
.hero-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 14vw, 12rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 
    0 0 80px rgba(0,0,0,1), 
    0 0 40px rgba(0,0,0,0.9),
    0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: 0.2em;
    white-space: nowrap;
  }
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}
.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.6);
  font-weight: 300;
  /* собственная тень для читаемости на светлом фоне (вместо центральной плашки) */
  text-shadow: 0 2px 22px rgba(0,0,0,0.92), 0 0 44px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(20px);
}
.hero-offer {
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.05vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.85);
  font-weight: 300;
  margin-top: 1.1rem;
  text-shadow: 0 2px 22px rgba(0,0,0,0.92), 0 0 44px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(20px);
}
.hero-offer .dot {
  display: inline-block;
  margin: 0 0.55em;
  color: rgba(201,169,110,0.5);
}
@media (max-width: 768px) {
  .hero-offer {
    letter-spacing: 0.16em;
    padding: 0 1.5rem;
  }
  .hero-offer .dot { margin: 0 0.4em; }
}
.hero-line {
  width: 1px;
  height: 0;
  background: var(--accent);
  margin-top: 3rem;
  opacity: 0;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}
.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
.section-pad {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem);
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1rem;
}
.gold-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ============================================
   PHILOSOPHY / ABOUT
   ============================================ */
.philosophy {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.philosophy-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.philosophy-text {
  padding-right: 2rem;
}
.philosophy-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.philosophy-heading .word {
  display: inline-block;
  opacity: 0.08;
  transition: opacity 0.5s;
}
.philosophy-heading .word.revealed {
  opacity: 1;
}
.philosophy-features {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.philosophy-feature {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(201,169,110,0.3);
  opacity: 0;
  transform: translateX(40px);
}
.philosophy-feature h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.philosophy-feature p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}
@media (max-width: 768px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .philosophy-text { padding-right: 0; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  padding: 3rem 0;
  overflow: hidden;
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-trust-icon {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.9rem;
  line-height: 1;
}
.stat-label-big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.stat-sublabel {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}
/* (старый мобильный .stats-grid repeat(2) убран — задаётся ниже в MOBILE OPTIMIZATION PACK как repeat(3)) */

/* ============================================
   MASTERS
   ============================================ */
.masters {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.masters-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}
.masters-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
}
.masters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.master-card {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  border-radius: 2px;
}
.master-card:first-child {
  transform: translateY(3rem);
}
.master-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.3);
}
.master-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}
.master-info {
  position: absolute;
  bottom: 0; left: 0;
  padding: 3rem;
  z-index: 2;
  width: 100%;
}
.master-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.master-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77,0,0.175,1);
}
.master-name.revealed {
  clip-path: inset(0 0% 0 0);
}
.master-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(240,237,232,0.7);
  font-weight: 300;
  max-width: 380px;
}
@media (max-width: 768px) {
  .masters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .master-card {
    height: 55vh;
    min-height: 400px;
  }
  .master-card:first-child { transform: none; }
  .master-info { padding: 2rem; }
}

/* ============================================
   SERVICES — HORIZONTAL SCROLL
   ============================================ */
.services-section {
  position: relative;
  overflow: hidden;
}
.services-header {
  text-align: center;
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: 2rem;
}
.services-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  background: linear-gradient(180deg, #888 0%, #fff 40%, #c8c8c8 60%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.services-pin {
  /* GSAP will pin this */
  overflow: hidden;
}
.services-track {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 4rem 4rem;
  will-change: transform;
}
.service-card {
  flex: 0 0 380px;
  min-height: 480px;
  background: var(--card-bg);
  border: 1px solid rgba(201,169,110,0.08);
  border-radius: 3px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(201,169,110,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: rgba(201,169,110,0.25);
  background: var(--card-bg-hover);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 400;
  color: rgba(201,169,110,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-tag {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.service-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.service-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.service-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
}
.service-dur {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.service-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card:hover .service-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.service-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}
.service-card:hover .service-arrow svg { stroke: var(--bg); }

/* Category dividers inside the horizontal services track */
.service-group-label {
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: stretch;
  width: 100px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  position: relative;
}
.service-group-label::before,
.service-group-label::after {
  content: '';
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, transparent, rgba(201,169,110,0.35), transparent);
}
.service-group-label span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}

/* Mobile: vertical stack */
@media (max-width: 768px) {
  .services-track {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .service-card {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 2rem;
  }
  .service-num { font-size: 2.5rem; }
  .service-group-label {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    gap: 1rem;
    padding: 1.5rem 0 0.5rem;
  }
  .service-group-label::before,
  .service-group-label::after {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
  }
  .service-group-label span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.05rem;
  }
}

/* (секция «Первый визит» убрана по решению Льва 07.06.2026) */

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-bg-line {
  position: absolute;
  width: 1px;
  height: 120%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.15;
  top: -10%;
}
.cta-bg-line:nth-child(1) { left: 20%; transform: rotate(15deg); }
.cta-bg-line:nth-child(2) { right: 25%; transform: rotate(-10deg); }
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.cta-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 3rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 3rem;
  border: 1px solid var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  transition: background 0.4s, transform 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  transition: left 0.5s cubic-bezier(0.23,1,0.32,1);
  z-index: -1;
}
.cta-btn:hover::before { left: 0; }
.cta-btn:hover { color: var(--bg); box-shadow: 0 0 40px rgba(201,169,110,0.2); }
.cta-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s;
}
.cta-btn:hover svg { transform: translateX(4px); }

/* Альтернативный канал — звонок мастеру напрямую */
.cta-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 1.5rem;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
}
.cta-or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.25), transparent);
}
.cta-phones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-phone {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: 14px;
  background: rgba(22,22,22,0.4);
  color: var(--text);
  text-decoration: none;
  transition: background 0.4s, border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.cta-phone:hover {
  background: rgba(201,169,110,0.06);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.08);
}
.cta-phone-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.cta-phone-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.cta-phone-number {
  font-family: var(--sans);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .cta-phones { flex-direction: column; gap: 0.8rem; }
  .cta-phone { min-width: 0; padding: 1.2rem 1.5rem; }
  .cta-or { margin: 2rem auto 1.2rem; font-size: 0.65rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem clamp(1.5rem, 5vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  font-weight: 400;
}
.footer-note {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  text-align: center;
}
.footer-copy {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 1.1rem 1rem;
  z-index: 9998;
  border-radius: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.15);
  transform: translateY(150%);
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.sticky-cta svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2;
}
@media (max-width: 768px) {
  .sticky-cta.visible { transform: translateY(0); }
}
@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* Service arrow — bigger on mobile */
@media (max-width: 768px) {
  .service-arrow {
    width: 44px;
    height: 44px;
  }
  /* (мёртвый .nav-cta-блок убран: на мобиле кнопка скрыта в MOBILE OPTIMIZATION PACK) */
}

/* ============================================
   SCROLL ANIMATIONS BASE
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}

/* Section clip-path transitions */
.clip-reveal {
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 1.2s cubic-bezier(0.77,0,0.175,1);
}
.clip-reveal.revealed {
  clip-path: inset(0% 0% 0% 0%);
}

/* ============================================
   INTERIOR GALLERY (masonry + lightbox)
   ============================================ */
.interior { position: relative; }
.interior-header { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.interior-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, #888 0%, #fff 40%, #c8c8c8 60%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.interior-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 500px;
  margin: 1rem auto 0;
  line-height: 1.7;
}
.broll {
  max-width: 1080px;
  margin: 0 auto 1.2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #000;
}
.broll video { width: 100%; display: block; aspect-ratio: 16 / 9; }
.studio-shots {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.shot {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.1);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  display: block;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.shot:hover img { transform: scale(1.06); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,169,110,0);
  transition: background 0.4s;
  pointer-events: none;
}
.shot:hover::after { background: rgba(201,169,110,0.08); }
/* Подписи убраны — максимальный минимализм (чистый кадр) */
.shot-cap { display: none; }
@media (max-width: 768px) {
  .studio-shots { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .shot-cap { font-size: 0.7rem; padding: 0.5rem 0.55rem; }
}

/* ============================================
   LOCATION / HOW TO FIND US
   ============================================ */
.location { position: relative; overflow: hidden; }
.location-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.route-video {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.18);
  background: #000;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.route-video video { width: 100%; display: block; aspect-ratio: 9 / 16; }
.route-badge {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 30px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.4s;
}
.address-line {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.loc-rows {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}
.loc-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.loc-row svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.loc-row span { font-size: 0.9rem; line-height: 1.6; color: rgba(240,237,232,0.8); font-weight: 300; }
.loc-row b { color: var(--text); font-weight: 500; }
.map-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.map-btn:hover { background: rgba(201,169,110,0.08); border-color: var(--accent); transform: translateY(-2px); }
.map-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 900px) {
  .location-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .route-video { max-width: 340px; }
  .location-info { text-align: center; }
  .loc-row { text-align: left; }
  .map-btns { justify-content: center; }
}

/* ============================================
   LIGHTBOX — чистый кадр без белой плашки подписи
   ============================================ */
.gslide-description,
.gslide-title,
.gdesc-inner,
.gslide-desc { display: none !important; }
.gslide-media { box-shadow: 0 30px 80px rgba(0,0,0,0.6) !important; }
.goverlay { background: rgba(8,8,8,0.97) !important; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce){
  .film-grain{display:none !important;}
  .scroll-line::after{animation:none !important;}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;}
}

/* ============================================================
   MOBILE OPTIMIZATION PACK — 2026-06-28 (av-relax mobile polish)
   Все правки изолированы в @media (мобильные брейкпоинты) или
   :focus-visible. Десктоп (>768px) НЕ затрагивается. Блок добавлен
   в КОНЕЦ <style>, поэтому только перекрывает существующие правила.
   ============================================================ */

/* A11Y — видимый фокус с клавиатуры (:focus-visible не срабатывает на мышь, cursor:none не конфликтует) */
a:focus-visible,
button:focus-visible,
.service-card:focus-visible,
.cta-phone:focus-visible,
.map-btn:focus-visible,
.shot:focus-visible,
.sticky-cta:focus-visible,
.hamburger:focus-visible,
.nav-logo:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Лоадер: контраст таглайна (общий, severity low) */
.loader-tagline { color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.16em; }
/* Футер: читаемый копирайт (общий) */
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* GLightbox: крупная кнопка закрытия (>=44px) — !important из-за специфичности плагина */
.gclose { width: 44px !important; height: 44px !important; display: flex !important; align-items: center; justify-content: center; padding: 10px; }

@media (max-width: 768px) {
  /* === VIEWPORT / SAFE-AREA / 100vh -> svh === */
  .hero { height: 100vh; height: 100svh; }          /* фолбэк vh -> стабильный svh (не дёргается под адресной строкой) */
  .philosophy, .masters, .cta-section { min-height: auto; } /* убирает баг 100vh и рыхлую пустоту */

  .sticky-cta { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); } /* над home-индикатором */
  .nav { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }      /* навбар не под вырез/Island */
  .mobile-menu { padding-top: env(safe-area-inset-top, 0px); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } /* футер не под фикс-кнопкой */

  /* === НАВИГАЦИЯ: убрать дубль кнопки + мерцание blend над светлым видео === */
  .nav-cta { display: none; }            /* ФИКС: десктопная кнопка «Записаться» ошибочно показывалась на мобиле рядом с бургером */
  .nav:not(.scrolled) { mix-blend-mode: normal; }
  .nav:not(.scrolled)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent); z-index: -1; pointer-events: none; }
  .nav:not(.scrolled) .nav-logo { color: #fff; }
  .nav:not(.scrolled) .hamburger span { background: #fff; }
  .nav-logo { display: inline-flex; align-items: center; min-height: 44px; }

  /* === HERO: оживить vw-член и трекинг === */
  .hero-subtitle { font-size: clamp(0.8rem, 3.5vw, 1rem); letter-spacing: 0.16em; }
  .hero-offer { font-size: clamp(0.78rem, 3.2vw, 0.95rem); }
  .scroll-indicator span { font-size: 0.75rem; letter-spacing: 0.14em; }

  /* === ТИПОГРАФИКА: микро-текст крупнее, трекинг мелкого uppercase меньше === */
  .master-tag, .service-tag { font-size: 0.78rem; letter-spacing: 0.16em; }
  .section-label { letter-spacing: 0.16em; }
  .cta-or { letter-spacing: 0.12em; }
  .sticky-cta { letter-spacing: 0.1em; }
  .stat-label, .stat-sublabel, .service-dur, .footer-note { font-size: 0.75rem; }
  /* контентные абзацы читаемее (вес 300->400, ~14.5px); --muted #8c8c8c НЕ трогаем (AA проходит) */
  .service-desc, .philosophy-feature p, .cta-sub, .master-desc, .interior-sub { font-size: 0.92rem; font-weight: 400; }

  /* === ТАЧ-ТАРГЕТЫ: пункты мобильного меню === */
  .mobile-menu { gap: 1.2rem; }
  .mobile-menu a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0.5rem 1.5rem; box-sizing: border-box; }

  /* === ТАКТИЛЬНЫЙ ОТКЛИК на тап (только тач, чтобы не конфликтовать с gsap/magnetic на десктопе) === */
  .service-card:active, .cta-btn:active, .cta-phone:active, .map-btn:active, .sticky-cta:active { transform: scale(0.98); }

  /* === ТРЕСТ-БАР: 3 коротких пункта в ряд вместо «2+одинокий» === */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 0.6rem; padding: 0 1rem; }
  .stat-label-big { font-size: clamp(1.05rem, 4.2vw, 2.2rem); }
  .philosophy-features { gap: clamp(2rem, 5vw, 3rem); }
  .masters-title-wrap { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
}

@media (max-width: 600px) {
  .cta-phones { gap: 1rem; }
}

@media (max-width: 480px) {
  .cta-btn { padding: 1.05rem 1.6rem; letter-spacing: 0.12em; }
  .cta-btn span { white-space: nowrap; }
}

@media (max-width: 360px) {
  .hero-title { font-size: clamp(2rem, 11vw, 4rem); letter-spacing: 0.14em; padding: 0 0.75rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }  /* 3-в-ряд тесно на 320-360 -> 1 колонка */
}

/* ============================================================
   POLISH PASS 2 — 2026-06-28 (остаточная шлифовка + регрессии)
   ============================================================ */

/* Тач: гасим «залипший» :hover после тапа (на десктопе с мышью @media не применяется) */
@media (hover: none) {
  .service-card:hover { border-color: rgba(201,169,110,0.08); background: var(--card-bg); }
  .service-card:hover::before { opacity: 0; }
  .service-card:hover .service-arrow { background: none; border-color: rgba(201,169,110,0.3); transform: none; }
  .service-card:hover .service-arrow svg { stroke: var(--text); }
  .cta-phone:hover { background: rgba(22,22,22,0.4); border-color: rgba(201,169,110,0.28); transform: none; box-shadow: none; }
  .cta-btn:hover { color: var(--text); box-shadow: none; }
  .cta-btn:hover::before { left: -100%; }
  .cta-btn:hover svg { transform: none; }
  .map-btn:hover { background: none; border-color: rgba(201,169,110,0.3); transform: none; }
  .shot:hover img { transform: none; }
  .shot:hover::after { background: rgba(201,169,110,0); }
}

@media (max-width: 768px) {
  /* sticky-cta: тактильный scale не должен стирать translateY (иначе кнопка не уезжает при скрытии) */
  .sticky-cta:active { transform: translateY(0) scale(0.98); }
  /* трест-бар: подпись чуть мельче — ровнее ложится в 3 колонки на 361-430px */
  .stat-sublabel { font-size: 0.7rem; }
  /* фокус-кольцо плитки галереи не залезает на соседнюю */
  .shot:focus-visible { outline-offset: 1px; }
}

/* Узкие складные/мини (~280-330px): заголовок не упирается в края */
@media (max-width: 330px) {
  .hero-title { letter-spacing: 0.08em; font-size: clamp(1.6rem, 9vw, 4rem); }
}

/* Телефон в альбомной ориентации (низкая высота): убрать индикатор скролла, поджать стек hero */
@media (orientation: landscape) and (max-height: 500px) {
  .scroll-indicator { display: none; }
  .hero-line { margin-top: 1.5rem; }
  .hero-offer { margin-top: 0.6rem; }
}

/* Hero: читаемость текста на самых СВЕТЛЫХ кадрах видео-облака (мобайл) —
   тонкая тёмная обводка + плотная тень, без затемнения самого видео. */
@media (max-width: 768px) {
  .hero-title {
    text-shadow: 0 0 70px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.95), 0 2px 12px rgba(0,0,0,0.98);
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.4);
  }
  .hero-subtitle, .hero-offer {
    text-shadow: 0 2px 18px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.85), 0 1px 6px rgba(0,0,0,0.95);
  }
}

/* «О нас»: на мобиле центрируем интро-заголовок в общую ось с остальными секциями
   (карточки-преимущества остаются списком — так удобнее читать). Десктоп (2 колонки) не трогаем. */
@media (max-width: 768px) {
  .philosophy-text { padding-right: 0; text-align: center; }
  .philosophy-text .gold-line { margin-left: auto; margin-right: auto; }
}

/* СКЛАДНЫЕ / ТЕЛЕФОН В АЛЬБОМЕ (touch + низкая высота): согласуем CSS с мобильной JS-веткой —
   показываем видео-hero вместо пустого canvas и делаем услуги вертикальными (без горизонтального пина).
   Условие (hover:none)+(pointer:coarse)+(max-height:540) НЕ задевает десктоп, ноутбуки и iPad. */
@media (hover: none) and (pointer: coarse) and (max-height: 540px) {
  .hero-canvas { display: none; }
  .hero-video-mobile { display: block; }
  .services-track { flex-direction: column; padding: 1.5rem; gap: 1rem; }
  .service-card { flex: none; width: 100%; min-height: auto; padding: 2rem; }
  .service-num { font-size: 2.5rem; }
  .service-group-label { width: 100%; min-height: auto; flex-direction: row; gap: 1rem; padding: 1.5rem 0 0.5rem; }
  .service-group-label::before, .service-group-label::after { width: auto; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent); }
  .service-group-label span { writing-mode: horizontal-tb; transform: none; font-size: 1.05rem; }
}
