@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Oswald:wght@500;700&display=swap');
:root {
  --emerald-deep: #152b20;
  --emerald-main: #1d3c2d;
  --emerald-light: #28523e;
  --white: #ffffff;
  --dark-metal: #0c0e0d;
  --snap-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --click-ease: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--emerald-deep);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .brand-font {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.container {
  width: 90%;
  max-width: 1320px;
  margin: 0 auto;
}

a, button, .flip-card, .filter-btn, .masonry-item, .option-card {
  cursor: pointer;
}

/* НАВИГАЦИЯ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(21, 43, 32, 0.92), rgba(21, 43, 32, 0));
  backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  height: 46px;
  width: auto;
  /* Делаем чёрный силуэт белым и убираем белый фон картинки */
  filter: invert(1) contrast(1.4) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
  mix-blend-mode: screen;
  transition: transform 0.25s var(--snap-ease), filter 0.25s var(--snap-ease);
}

.logo-group:hover .logo-icon {
  transform: scale(1.06);
  filter: invert(1) contrast(1.4) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
}
.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
  border: 2px solid var(--white);
  padding: 4px 14px;
  transition: text-shadow 0.25s var(--snap-ease),
              box-shadow 0.25s var(--snap-ease);
}

.logo-group:hover .logo {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
               0 0 22px rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8),
              0 0 26px rgba(255, 255, 255, 0.45),
              inset 0 0 10px rgba(255, 255, 255, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links:hover a {
  opacity: 0.4;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  position: relative;
  padding-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  transition: opacity 0.25s var(--snap-ease),
              text-shadow 0.25s var(--snap-ease),
              transform 0.25s var(--snap-ease);
}

/* При наведении буквам добавляется яркое LED-свечение */
.nav-links a:hover {
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
               0 0 24px rgba(255, 255, 255, 0.6);
}

/* Светящаяся линия-индикатор снизу */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
              0 0 20px rgba(255, 255, 255, 0.7);
  transition: width 0.25s var(--snap-ease);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 1. HERO + СВЕТЯЩИЕСЯ СОТЫ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--emerald-deep);
}
.hero-video-wrap {
  position: absolute;
  inset: -10% 0;
  z-index: 1;
  opacity: 0.24;
  will-change: transform;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, rgba(29, 60, 45, 0.55) 0%, rgba(14, 30, 22, 0.96) 85%);
}
  .hex-ceiling-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 96%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.95) 84%, transparent 100%),
                      linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.95) 84%, transparent 100%),
              linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, var(--emerald-main) 100%);
  z-index: 4;
  pointer-events: none;
}

/* Плавные градиентные стыки между всеми секциями */
.services-section::after,
.barbers-section::after,
.gallery-section::after,
.booking-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 2;
}

/* Услуги (--emerald-main) -> Мастера (--emerald-deep) */
.services-section::after {
  background: linear-gradient(to bottom, transparent 0%, var(--emerald-deep) 100%);
}

/* Мастера (--emerald-deep) -> Галерея (--emerald-main) */
.barbers-section::after {
  background: linear-gradient(to bottom, transparent 0%, var(--emerald-main) 100%);
}

/* Галерея (--emerald-main) -> Онлайн-запись (--emerald-deep) */
.gallery-section::after {
  background: linear-gradient(to bottom, transparent 0%, var(--emerald-deep) 100%);
}

/* Онлайн-запись (--emerald-deep) -> Футер (--dark-metal) */
.booking-section::after {
  background: linear-gradient(to bottom, transparent 0%, var(--dark-metal) 100%);
}

/* Чтобы контент секций всегда оставался поверх градиента */
section > .container {
  position: relative;
  z-index: 3;
}

.hex-svg {
  width: 100%;
  height: 100%;
  opacity: 0.72;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75)) 
          drop-shadow(0 0 24px rgba(255, 255, 255, 0.35));
}

/* 6 некратных циклов с задержками для полного хаоса по всей сетке */
.glitch-tube-1 { animation: ledFlicker1 5.3s infinite; }
.glitch-tube-2 { animation: ledFlicker2 8.7s infinite 0.9s; }
.glitch-tube-3 { animation: ledFlicker3 10.9s infinite 2.3s; }
.glitch-tube-4 { animation: ledFlicker1 7.7s infinite 3.1s; }
.glitch-tube-5 { animation: ledFlicker2 6.1s infinite 1.4s; }
.glitch-tube-6 { animation: ledFlicker3 12.7s infinite 0.4s; }
.glitch-tube-7 { animation: ledFlicker1 9.5s infinite 2.1s; }

@keyframes ledFlicker1 {
  0%, 14%, 16%, 18%, 22%, 68%, 70%, 100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
  }
  15%, 17%, 69% {
    opacity: 0.04;
    filter: none;
  }
  19%, 21% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
  }
}

@keyframes ledFlicker2 {
  0%, 28%, 35%, 71%, 79%, 100% {
    opacity: 0.06;
    filter: none;
  }
  29%, 31%, 33%, 72%, 74%, 77% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
  }
  30%, 32%, 73%, 75% {
    opacity: 0.15;
    filter: none;
  }
}

@keyframes ledFlicker3 {
  0%, 44%, 53%, 88%, 92%, 100% {
    opacity: 0.65;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }
  45%, 47%, 89% {
    opacity: 0.02;
    filter: none;
  }
  46%, 48%, 90% {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
  }
  49%, 52% {
    opacity: 0.2;
    filter: none;
  }
}
.hero-grid {
  position: relative;
  z-index: 5;
  padding-top: 80px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 720px;
  text-shadow: 0 4px 24px rgba(10, 22, 16, 0.85);
}

.hero-aside {
  background: rgba(12, 26, 19, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.aside-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

.aside-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 6px;
}

.aside-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.aside-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 6px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  border-left: 3px solid #ffffff;
  padding-left: 14px;
  margin-bottom: 20px;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(8, 18, 13, 0.95),
               0 0 18px rgba(255, 255, 255, 0.35);
}
.hero-title {
  font-size: clamp(3.5rem, 8.5vw, 7.2rem);
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
  filter: drop-shadow(0 4px 12px rgba(8, 18, 13, 0.95))
          drop-shadow(0 0 28px rgba(8, 18, 13, 0.85));
}
.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.char-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-sub {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #ffffff;
  max-width: 640px;
  margin-bottom: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(8, 18, 13, 1),
               0 0 22px rgba(8, 18, 13, 0.9);
}
.magnetic-wrap {
  display: inline-block;
  padding: 15px;
  margin: -15px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--white);
  color: var(--emerald-deep);
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 44px;
  border: 2px solid var(--white);
  box-shadow: 0 12px 30px rgba(8, 18, 13, 0.85),
              0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--snap-ease),
              box-shadow 0.25s var(--snap-ease),
              background-color 0.25s var(--snap-ease),
              color 0.25s var(--snap-ease);
  will-change: transform;
}

.btn-primary:hover {
  background-color: var(--emerald-deep);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
               0 0 22px rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 36px rgba(8, 18, 13, 0.95),
              0 0 14px rgba(255, 255, 255, 0.9),
              0 0 32px rgba(255, 255, 255, 0.55),
              inset 0 0 12px rgba(255, 255, 255, 0.35);
}

/* ОБЩИЕ СЕКЦИИ */
section {
  padding: 110px 0;
  position: relative;
}
.section-header {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 24px;
}
.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
}
.section-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  opacity: 0.6;
  letter-spacing: 2px;
}

/* 2. УСЛУГИ */
.services-section { background-color: var(--emerald-main); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.flip-card {
  height: 340px;
  perspective: 1200px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--snap-ease);
  transform-style: preserve-3d;
  will-change: transform;
}
@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.flip-front {
  background: linear-gradient(145deg, rgba(21, 43, 32, 0.95), rgba(14, 28, 21, 0.98));
}
.flip-back {
  background-color: var(--white);
  color: var(--emerald-deep);
  transform: rotateY(180deg);
}
.service-icon {
  width: 54px;
  height: 54px;
}
.service-icon path, .service-icon line, .service-icon circle, .service-icon rect {
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flip-front h3 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}
.flip-front p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}
.flip-hint {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
}
.service-price {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}
.service-duration {
  display: inline-block;
  background: var(--emerald-deep);
  color: var(--white);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
}
.btn-card-book {
  display: block;
  text-align: center;
  background: var(--emerald-deep);
  color: var(--white);
  padding: 14px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-card-book:hover { background: var(--dark-metal); }

/* 3. МАСТЕРА (3 КОЛОНКИ, ЦВЕТ + БИО-ШТОРКА) */
.barbers-section {
  background-color: var(--emerald-deep);
}

.barbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.barber-card {
  position: relative;
  width: 100%;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1f17;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.barber-card:hover,
.barber-card.is-open {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.barber-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.barber-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.04) saturate(1.05);
  transition: transform 0.6s var(--snap-ease), filter 0.4s ease;
}

.barber-card:hover img {
  transform: scale(1.04);
}

.barber-card.is-open img {
  filter: brightness(0.42) contrast(1.05);
}

.barber-exp-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 26, 19, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--snap-ease);
}

.barber-card:hover .barber-exp-badge {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

.barber-badge-svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.barber-badge-svg path,
.barber-badge-svg line,
.barber-badge-svg circle,
.barber-badge-svg rect {
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 1. Анимация ножниц (Полина) */
.scissor-blade-1 {
  transform-origin: 12px 12px;
  animation: snipTop 3.6s ease-in-out infinite;
}
.scissor-blade-2 {
  transform-origin: 12px 12px;
  animation: snipBottom 3.6s ease-in-out infinite;
}
.barber-card:hover .scissor-blade-1,
.barber-card:hover .scissor-blade-2 {
  animation-duration: 1.2s;
}

@keyframes snipTop {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes snipBottom {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}

/* 2. Анимация опасной бритвы (Илья) */
.razor-blade {
  transform-origin: 19px 17px;
  animation: razorSwing 4s ease-in-out infinite;
}
.barber-card:hover .razor-blade {
  animation-duration: 1.5s;
}

@keyframes razorSwing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(16deg); }
}

/* 3. Анимация барбер-пола (Акмаль) */
.barber-pole-stripes {
  animation: poleSpin 3s linear infinite;
}
.barber-card:hover .barber-pole-stripes {
  animation-duration: 1.1s;
}

@keyframes poleSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.barber-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 48px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(10, 22, 16, 0.98) 0%,
    rgba(10, 22, 16, 0.88) 65%,
    rgba(10, 22, 16, 0) 100%
  );
  transition: background 0.35s ease;
}

.barber-card.is-open .barber-info {
  background: rgba(10, 22, 16, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.barber-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.barber-info h3 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #ffffff;
}

.barber-role {
  font-size: 0.76rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.barber-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.barber-toggle-btn:hover,
.barber-card.is-open .barber-toggle-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #152b20;
}

.barber-toggle-btn .toggle-icon {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.barber-bio {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--snap-ease), opacity 0.3s ease, margin-top 0.3s ease;
}

.barber-card.is-open .barber-bio {
  max-height: 240px;
  opacity: 1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.barber-bio p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
}

@media (max-width: 960px) {
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .barbers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .barber-card {
    height: 440px;
  }
}

/* 4. ГАЛЕРЕЯ РАБОТ */
.gallery-section { background-color: var(--emerald-main); }
.masonry-grid {
  columns: 3 280px;
  column-gap: 24px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1f17;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
  width: 100%;
  aspect-ratio: 3 / 4; /* Резервирует высоту карточек до загрузки фото */
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(1.05);
  transition: transform 0.6s var(--snap-ease), filter 0.4s ease;
}

/* Подсветка рамки и тень только на устройствах с мышью (десктоп) */
@media (hover: hover) {
  .masonry-item:hover {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .masonry-item:hover img {
    transform: scale(1.04);
  }
}

.masonry-item.is-open {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.masonry-item.is-open img {
  filter: brightness(0.42) contrast(1.05);
}

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 48px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(10, 22, 16, 0.98) 0%,
    rgba(10, 22, 16, 0.88) 65%,
    rgba(10, 22, 16, 0) 100%
  );
  transition: background 0.35s ease;
}

.masonry-item.is-open .work-info {
  background: rgba(10, 22, 16, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.work-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.work-info h3 {
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #ffffff;
}

.work-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.work-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.work-toggle-btn:hover,
.masonry-item.is-open .work-toggle-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #152b20;
}

.work-toggle-btn .toggle-icon {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.work-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--snap-ease), opacity 0.3s ease, margin-top 0.3s ease;
}

.masonry-item.is-open .work-desc {
  max-height: 240px;
  opacity: 1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.work-desc p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
}

/* ЛАЙТБОКС */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 20, 15, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--snap-ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border: 2px solid var(--white);
  transform: scale(0.85);
  transition: transform 0.35s var(--snap-ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
}

/* 5. ОНЛАЙН-ЗАПИСЬ */
.booking-section { background-color: var(--emerald-deep); }
.booking-box {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(29, 60, 45, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 48px;
}
.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 36px;
}
.progress-fill {
  height: 100%;
  width: 50%;
  background: var(--white);
  box-shadow: 0 0 12px var(--white);
  transition: width 0.35s var(--snap-ease);
}
.step-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.8;
}
.form-step {
  display: none;
  animation: stepSlide 0.35s var(--snap-ease) forwards;
}
.form-step.active { display: block; }
@keyframes stepSlide {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
.step-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.option-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 20px;
  background: rgba(15, 31, 23, 0.7);
  transition: transform 0.25s var(--snap-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.option-card:hover, .option-card.selected {
  transform: translateY(-6px);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.option-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.option-card span {
  font-size: 0.9rem;
  opacity: 0.75;
}
.form-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}
.form-inputs input {
  width: 100%;
  padding: 16px;
  background: rgba(12, 24, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  outline: none;
}
.form-inputs input:focus { border-color: var(--white); }
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.btn-step {
  padding: 14px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--emerald-deep);
  font-weight: 700;
  transition: all 0.2s var(--snap-ease);
}
.btn-step.secondary {
  background: transparent;
  color: var(--white);
}
.btn-step:hover { transform: translateY(-2px); }
.booking-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.booking-success.show {
  display: block;
  animation: stepSlide 0.4s var(--snap-ease);
}

/* 6. ФУТЕР */
footer {
  background-color: var(--dark-metal);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.footer-stamp {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--white);
  border: 4px solid var(--white);
  padding: 10px 36px;
  margin-bottom: 32px;
  opacity: 0;
  transform: scale(2.4) rotate(-8deg);
  will-change: transform, opacity;
}
.socials {
  display: flex;
  gap: 14px;
  margin-bottom: 0;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* АДАПТИВ И REDUCED MOTION */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .booking-box { padding: 28px 20px; }
  .form-inputs { grid-template-columns: 1fr; }
  .hex-ceiling-layer { width: 95%; opacity: 0.65; }

.hero {
    min-height: auto;
    padding: 88px 0 48px;
  }

  .hero-grid {
    padding-top: 12px;
    gap: 28px;
  }

  .footer-stamp {
    opacity: 1 !important;
    transform: none !important;
    
  }

   .flip-card {
    height: auto;
    min-height: 250px;
  }

  .flip-card-inner {
    min-height: 250px;
  }

  .flip-front,
  .flip-back {
    position: relative;
    padding: 26px 24px;
    gap: 16px;
  }

  .flip-back {
    position: absolute;
    inset: 0;
  }

  .flip-hint {
    position: static;
    display: block;
    font-size: 0 !important;
    line-height: 1.4;
    margin-top: 16px;
    padding: 0;
  }

  .flip-hint::after {
    content: "Подробнее →";
    display: block;
    font-size: 0.78rem;
    text-align: left;
  }

  /* Постоянная LED-подсветка логотипа на мобильных */
  .logo-icon {
    filter: invert(1) contrast(1.4) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  }

  .logo {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95),
                 0 0 22px rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8),
                0 0 26px rgba(255, 255, 255, 0.45),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
  /* Контурный стиль главной кнопки на мобильных без подсветки */
  .hero .btn-primary,
  .hero .btn-primary:hover,
  .hero .btn-primary:active {
    background-color: #152b20;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
    text-shadow: none;
  }
  /* Компактная шапка без выхода за края экрана на мобильных */
  header {
    width: 100%;
    max-width: 100vw;
    overflow: visible;
  }

  .nav-wrap {
    padding: 0;
    gap: 10px;
  }

  .logo-group {
    gap: 10px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .logo {
    font-size: 1.2rem;
    padding: 4px 10px;
    letter-spacing: 1.2px;
  }

  header .btn-nav,
  header .btn-primary {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .char-inner { transform: none !important; }
  .footer-stamp { opacity: 1 !important; transform: none !important; }
  
  }
  /* ================= КЛИКАБЕЛЬНЫЙ РЕЙТИНГ ЯНДЕКС ================= */
.aside-stats a.rating-link,
.aside-stats a.rating-link:visited {
  display: block;
  text-decoration: none !important;
  color: #ffffff !important;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  transition: transform 0.25s var(--snap-ease), opacity 0.25s ease;
}

.aside-stats a.rating-link:hover {
  transform: translateX(4px);
}

.rating-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rating-top strong,
.stat-box strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}

.rating-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aside-stats a.rating-link:hover .rating-pill {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #152b20 !important;
}

.rating-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s ease;
}

.aside-stats a.rating-link:hover .rating-sub {
  color: #ffffff;
}

/* ================= КЛИКАБЕЛЬНЫЙ АДРЕС В ПРАВОЙ КАРТОЧКЕ ================= */
a.aside-location-link,
a.aside-location-link:visited {
  display: block;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: transform 0.25s var(--snap-ease), border-color 0.25s ease;
}

a.aside-location-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

a.aside-location-link .aside-label {
  color: rgba(255, 255, 255, 0.65);
}

a.aside-location-link:hover .aside-label {
  color: #ffffff;
}

a.aside-location-link .aside-value {
  color: #ffffff !important;
  text-decoration: none !important;
}
/* ================= ПОЛНЫЙ ПРЕЙСКУРАНТ (АККОРДЕОН) ================= */
.full-pricelist {
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 48px;
}

.pricelist-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.pricelist-header h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 1.5px;
}

.pricelist-header span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

.price-category {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 31, 23, 0.65);
  margin-bottom: 14px;
  transition: border-color 0.3s var(--snap-ease), box-shadow 0.3s var(--snap-ease);
}

.price-category:hover,
.price-category.is-open {
  border-color: rgba(255, 255, 255, 0.5);
}

.price-cat-trigger {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: text-shadow 0.25s ease, background 0.25s ease;
}

.price-cat-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.75);
}

.cat-icon {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.35s var(--snap-ease);
}

.price-category.is-open .cat-icon {
  transform: rotate(45deg);
}

.price-cat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--snap-ease);
}

.price-category.is-open .price-cat-body {
  grid-template-rows: 1fr;
}

.price-cat-inner {
  overflow: hidden;
  padding: 0 28px;
}

.price-category.is-open .price-cat-inner {
  padding-bottom: 22px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s var(--snap-ease);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(6px);
}

.p-name {
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.p-dots {
  flex: 1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  margin: 0 6px;
}

.p-val {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
}

.p-book {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--emerald-deep);
  background: var(--white);
  padding: 4px 10px;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s var(--snap-ease);
}

.price-row:hover .p-book {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .price-cat-trigger {
    padding: 18px 20px;
    font-size: 1.15rem;
  }
  .price-cat-inner {
    padding: 0 20px;
  }
  .price-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .p-dots {
    display: none;
  }
  .p-name {
    width: 100%;
  }
  .p-book {
    opacity: 1;
    transform: none;
    margin-left: auto;
  }
}
.aside-location-link,
.aside-location-link:link,
.aside-location-link:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}
.stat-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
}

.aside-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-row.is-picked {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--white);
}

.p-book {
  cursor: pointer;
  border: 1px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--snap-ease);
}

.price-row.is-picked .p-book {
  opacity: 1;
  transform: translateX(0);
  background: transparent;
  color: var(--white);
}

/* Плавающая панель выбранных услуг внизу экрана */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 95;
  width: min(92%, 760px);
  background: rgba(12, 26, 19, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.35s var(--snap-ease);
}

.cart-bar.is-visible {
  transform: translate(-50%, 0);
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-bar-count {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

.cart-bar-total {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.cart-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-clear-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

.cart-go-btn {
  background: var(--white);
  color: var(--emerald-deep);
  text-decoration: none;
  padding: 11px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.booking-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 24, 18, 0.75);
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .cart-bar {
    bottom: 14px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .cart-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cart-go-btn {
    flex: 1;
    text-align: center;
  }
}

.booking-error-msg {
  color: #ff6b6b;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: right;
  margin: -12px 0 16px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.booking-error-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#serviceOptions.has-error .option-card {
  border-color: rgba(255, 107, 107, 0.65);
}

@keyframes shakeBtn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.btn-step.is-shaking {
  animation: shakeBtn 0.35s ease;
}

#bookingTotalPrice {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ================= МОБИЛЬНОЕ БУРГЕР-МЕНЮ ================= */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(12, 26, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0;
  z-index: 110;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.3s var(--snap-ease), opacity 0.2s ease;
}

/* Анимация превращения в крестик */
.burger-btn.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(12, 26, 19, 0.97);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 28px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.35s var(--snap-ease), transform 0.35s var(--snap-ease);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-link {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  transition: transform 0.25s var(--snap-ease), text-shadow 0.25s ease;
}

.mobile-menu-link:active {
  transform: translateX(8px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.mobile-menu-cta {
  margin-top: 10px;
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #152b20;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.35rem;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }
}

.lightbox {
  visibility: hidden;
}
.lightbox.open {
  visibility: visible;
}

.mobile-menu {
  visibility: hidden;
}
.mobile-menu.is-open {
  visibility: visible;
}

@media (max-width: 768px) {
  .mobile-menu {
    background: #0c1a13;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ================= СОЦСЕТИ В ПОДВАЛЕ ================= */
.socials-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--snap-ease);
}

.socials a:hover {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.social-svg-fill {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.social-svg-stroke {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-asterisk {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.extremist-note {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  max-width: 340px;
  margin-top: 2px;
  margin-bottom: 18px;
}

/* ================= ПОЛЯ КОНТАКТОВ И 152-ФЗ (ШАГ 3) ================= */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.form-inputs input.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.25);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
}

/* Скрываем стандартный плавающий кружок YCLIENTS */
.yButton,
[class*="yButton"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.footer-phone {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 22px;
  transition: text-shadow 0.25s var(--snap-ease), transform 0.25s var(--snap-ease);
}

.footer-phone:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95),
               0 0 26px rgba(255, 255, 255, 0.55);
}

.mobile-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 4px;
}

/* ================= КНОПКА ФОНОВОЙ МУЗЫКИ ================= */
.sound-toggle-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(12, 26, 19, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s var(--snap-ease),
              box-shadow 0.25s var(--snap-ease),
              text-shadow 0.25s var(--snap-ease),
              transform 0.25s var(--snap-ease),
              bottom 0.35s var(--snap-ease);
}

.sound-toggle-btn:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7),
              0 0 14px rgba(255, 255, 255, 0.45);
}

/* Активное состояние (музыка играет — белое LED-свечение) */
.sound-toggle-btn.is-playing {
  border-color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
               0 0 20px rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65),
              0 0 14px rgba(255, 255, 255, 0.65),
              inset 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Анимированный эквалайзер */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  width: 17px;
}

.sound-bars span {
  display: block;
  width: 2px;
  height: 4px;
  background-color: #ffffff;
  transition: height 0.2s ease;
}

.sound-toggle-btn.is-playing .sound-bars span {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: soundWave 0.9s ease-in-out infinite alternate;
}

.sound-toggle-btn.is-playing .sound-bars span:nth-child(1) { animation-delay: 0.0s; }
.sound-toggle-btn.is-playing .sound-bars span:nth-child(2) { animation-delay: 0.25s; }
.sound-toggle-btn.is-playing .sound-bars span:nth-child(3) { animation-delay: 0.45s; }
.sound-toggle-btn.is-playing .sound-bars span:nth-child(4) { animation-delay: 0.15s; }

@keyframes soundWave {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Поднимаем кнопку выше, если открыта плавающая корзина услуг */
body:has(.cart-bar.is-visible) .sound-toggle-btn {
  bottom: 108px;
}

@media (max-width: 768px) {
  .sound-toggle-btn {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  body:has(.cart-bar.is-visible) .sound-toggle-btn {
    bottom: 138px;
  }
}

@media (max-width: 768px) {
  .hero-content,
  .hero-aside {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .aside-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
}
