@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;800&display=swap');

/* Lazy Video Overlay */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(139, 92, 246, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.lazy-video:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-main);
}

:root {
  --bg-main: #0A0A0A;
  --bg-card: #111111;
  --bg-section: #1A1A1A;
  --accent-main: #8B5CF6;
  --accent-secondary: #A855F7;
  --accent-tertiary: #C084FC;
  --text-main: #FFFFFF;
  --text-secondary: #A1A1AA;
  --gradient-glow: linear-gradient(135deg, #8B5CF6, #A855F7, #7C3AED);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* scroll-behavior: smooth; removed to prevent unwanted smooth scrolling on load */
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loaded {
  /* Keep class for potential other uses, but remove opacity transition */
}

::selection {
  background: var(--accent-main);
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-main);
  border-radius: 4px;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(40px, 8vw, 120px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.subtitle {
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  background: var(--accent-main);
  filter: blur(100px);
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 20s infinite alternate ease-in-out;
  will-change: transform;
  contain: strict;
  transition: opacity 2s ease, visibility 2s ease;
}

.orb-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; bottom: -200px; right: -100px; animation-delay: -10s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 50px); }
}

/* Glassmorphism & Neon */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 16px;
}

.neon-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--gradient-glow);
  color: #FFFFFF !important;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: normal;
  border-radius: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #A855F7, #8B5CF6, #C084FC);
  z-index: -1;
  transition: var(--transition-smooth);
  opacity: 0;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.mobile-cta {
  display: none;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active {
  color: var(--text-main);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent-main);
  transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after {
  width: 100%;
  box-shadow: 0 0 10px var(--accent-main);
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 101;
}

.burger div {
  width: 25px; height: 2px;
  background: var(--text-main);
  margin: 5px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 120px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 10;
  max-width: 1000px;
  padding: 0 20px;
}

/* Hero Brand (декоративный заголовок) */
.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    will-change: transform;
}

.hero-title-light {
    font-weight: 300;
    font-size: clamp(48px, 12vw, 150px);
    letter-spacing: -0.05em;
    display: block;
    line-height: 0.9;
    color: var(--text-main);
    text-transform: uppercase;
}

.hero-title-bold {
    font-weight: 800;
    font-size: clamp(36px, 10vw, 120px);
    display: block;
    line-height: 1;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Навигация и кнопки в Hero должны быть видны сразу */
.hero .subtitle,
.hero .btn,
.scroll-down {
  opacity: 1;
  transform: none;
  animation: none;
}

.scroll-down {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.scroll-down svg {
  width: 30px; height: 30px;
  stroke: var(--text-secondary);
}

.scroll-down.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Social Proof */
.social-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 40px;
  border-radius: 16px;
  max-width: 800px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.proof-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.proof-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
}

/* Sections Common */
section {
  padding: 100px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.category-card .badge,
.category-card .like-badge,
.category-avatars {
  display: none; /* Hidden on desktop */
}

.category-card {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.1s;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: var(--transition-smooth);
}

.category-card:hover::before {
  background: var(--gradient-glow);
}

.category-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-smooth);
}

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 1;
}

.category-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 24px;
  background: transparent; /* Removed gradient here as it's now in ::after */
  transform: translateZ(30px);
  z-index: 2;
}

.category-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-content p {
  color: #E4E3E0; /* Lighter text for better contrast */
  font-size: 12px;
  margin-bottom: 16px;
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-link {
  display: inline-block;
  color: var(--accent-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.category-card:hover .category-link {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
}

.feature-icon svg {
  width: 32px; height: 32px;
}

.feature-card h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-main);
  opacity: 0.7;
  margin-bottom: 16px;
}

.categories-nav {
  display: none;
}

/* Reviews Slider — ИСПРАВЛЕННАЯ ВЕРСИЯ */
.reviews-wrapper {
  position: relative;
  overflow: hidden;
}

.reviews-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
}

.reviews-slider.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 320px;
  max-width: 380px;
  flex-shrink: 0;
  padding: 32px;
  scroll-snap-align: start;
}

/* Стрелки навигации для отзывов */
.reviews-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.reviews-nav button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.reviews-nav button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.reviews-nav button.review-prev:hover svg {
  transform: translateX(-3px);
}

.reviews-nav button.review-next:hover svg {
  transform: translateX(3px);
}

.reviews-nav button:hover {
  background: var(--accent-main);
  border-color: var(--accent-main);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

/* Индикатор скролла (точки) */
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: var(--transition-smooth);
}

.reviews-dots .dot.active {
  background: var(--accent-main);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-main);
}

/* Подсказка "Листайте →" на мобильных */
.scroll-hint {
  display: none;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
  animation: fadeInOut 3s ease infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.stars {
  color: var(--accent-main);
  margin-bottom: 16px;
  font-size: 20px;
}

.review-text {
  font-size: 16px;
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author h4 {
  font-size: 16px;
}

.review-date {
  color: var(--text-secondary);
  font-size: 12px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 100px 40px;
  background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05));
  border-radius: 24px;
  margin: 100px auto;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-main), transparent);
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 18px;
}

.cta-contact {
  margin-top: 24px;
  color: var(--text-secondary);
}

.cta-contact a {
  color: var(--text-main);
  font-weight: 700;
  margin-left: 8px;
}

/* Map */
.map-container {
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: var(--glass-border);
}

/* Footer */
footer {
  padding: 60px 40px;
  border-top: var(--glass-border);
  margin-top: 100px;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links h4 {
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-main);
}

.footer-bottom {
  max-width: 1440px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Chatbot */
.chatbot-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  animation: pulse 2s infinite;
  transition: var(--transition-smooth);
}

.chatbot-btn:hover {
  transform: scale(1.1);
}

.chatbot-btn svg {
  width: 30px; height: 30px; fill: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.chatbot-window {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 350px;
  height: 500px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.chatbot-window.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  padding: 20px;
  border-bottom: var(--glass-border);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  cursor: pointer;
  color: var(--text-secondary);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg b {
  color: var(--accent-tertiary);
  font-weight: 700;
}

.chat-msg a {
  color: var(--accent-main);
  text-decoration: underline;
}

.chat-contact-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: var(--gradient-glow);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.chat-contact-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.chat-msg.bot {
  background: rgba(255,255,255,0.1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent-main);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-reply {
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--accent-main);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-reply:hover {
  background: var(--accent-main);
}

.chat-input {
  padding: 16px;
  border-top: var(--glass-border);
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  outline: none;
}

.chat-input button {
  background: var(--accent-main);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  align-self: flex-start;
  width: fit-content;
}

.typing-indicator span {
  width: 6px; height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Category Pages Specifics */
.category-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 160px;
  padding-bottom: 60px;
}

.category-hero p {
  max-width: 600px;
  margin: 20px auto;
  color: var(--text-secondary);
}

.price-tag {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-main);
  margin-bottom: 32px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.1);
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-overlay span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  width: 80%;
  height: 80%;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.1);
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 40px; right: 40px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  cursor: pointer;
  color: white;
  padding: 20px;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.pricing-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

.pricing-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.pricing-table td {
  padding: 24px;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent-main);
  white-space: nowrap;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
  padding: 24px 0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

/* Before/After Slider */
/* ===== BEFORE/AFTER SLIDER ===== */
.ba-slider-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    line-height: 0;
    margin-bottom: 40px;
}

/* AFTER image — sits as base, defines height */
.ba-slider .ba-after {
    position: relative;
    width: 100%;
    display: block;
}

.ba-slider .ba-after img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* BEFORE image — overlaid on top, clipped */
.ba-slider .ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* JS will control this */
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-slider .ba-before img {
    width: auto;
    height: 100%;
    object-fit: cover;
    /* This is KEY: the image must match the after image dimensions exactly */
    /* We use the wrapper width, not the clipped width */
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
}

/* Labels */
.ba-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

/* Handle */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS will control this */
    width: 4px;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle-line {
    flex: 1;
    width: 3px;
    background: var(--accent-main, #8b5cf6);
    border-radius: 2px;
}

.ba-handle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-main, #8b5cf6);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
    pointer-events: auto;
    cursor: ew-resize;
}

.ba-handle-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .ba-slider-wrapper {
        max-width: 100%;
    }

    .ba-handle-btn {
        width: 36px;
        height: 36px;
    }

    .ba-handle-btn svg {
        width: 16px;
        height: 16px;
    }

    .ba-label {
        font-size: 11px;
        padding: 4px 12px;
        top: 12px;
    }

    .ba-label-before {
        left: 12px;
    }

    .ba-label-after {
        right: 12px;
    }
}

.ba-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.ba-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ba-dot.active {
  background: var(--accent-main);
  box-shadow: 0 0 10px var(--accent-main);
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 200px;
    }
    .scroll-down {
        bottom: 130px;
    }
    
    .hero-title-light {
        font-size: clamp(40px, 16vw, 80px);
    }
    
    .hero-title-bold {
        font-size: clamp(32px, 14vw, 70px);
    }
    
    .hero-h1 {
        font-size: clamp(12px, 3vw, 16px);
        letter-spacing: 0.08em;
    }
    
    .hero .subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title-light {
        font-size: clamp(36px, 18vw, 60px);
    }
    
    .hero-title-bold {
        font-size: clamp(28px, 16vw, 50px);
    }
}

/* ===== КАРТА ===== */
.map-block {
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
}

.map-container {
    height: 350px;
    width: 100%;
}

.map-info {
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    gap: 24px;
}

.map-info-left h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.map-address {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.map-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.map-detail svg {
    color: var(--accent-main);
    flex-shrink: 0;
}

.map-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.map-yandex-link {
    color: var(--accent-main);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.map-yandex-link:hover {
    color: var(--accent-tertiary);
}

@media (max-width: 768px) {
    .map-container {
        height: 250px;
    }

    .map-info-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
    }

    .map-info-right {
        width: 100%;
        align-items: stretch;
    }

    .map-info-right .btn {
        text-align: center;
    }

    .map-yandex-link {
        text-align: center;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a:not(.btn) {
    font-size: 13px;
  }
  .nav-container {
    padding: 0 20px;
  }
}

header .btn {
  padding: 12px 24px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .categories-grid, .features-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  header .btn {
    display: none;
  }

  .nav-links.active .mobile-cta {
    display: inline-flex !important;
    margin-top: 32px;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    gap: 32px;
  }

  .nav-links a:not(.btn) {
    font-size: 18px;
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: block;
  }

  .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 5px); }
  .burger.toggle .line2 { opacity: 0; }
  .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -5px); }
}

/* Навигация карусели — скрыта на десктопе */
.carousel-nav {
    display: none;
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .category-hero {
    padding-top: 140px;
    height: auto;
    min-height: 60vh;
  }

  /* Pricing Table Mobile */
  .pricing-table, 
  .pricing-table tbody, 
  .pricing-table tr, 
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tr {
    margin-bottom: 24px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .pricing-table td {
    padding: 16px;
    text-align: left !important;
    border-bottom: none;
  }

  .pricing-table td:first-child {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
    padding-bottom: 8px;
  }

  .pricing-table td:nth-child(2) {
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 0;
    padding-bottom: 16px;
  }

  .pricing-table td:last-child {
    font-size: 20px;
    color: var(--accent-main);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
    white-space: nowrap;
  }

  /* ===== 3D КАРУСЕЛЬ — ТОЛЬКО МОБИЛКА ===== */

  .categories-grid {
      display: flex;
      gap: 0;
      padding: 40px 0 20px;
      position: relative;
      justify-content: center;
      align-items: center;
      min-height: 440px;
      overflow: visible;
  }

  .category-card {
      position: absolute;
      width: 260px;
      height: 380px;
      border-radius: 24px;
      flex-shrink: 0;
      transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                  filter 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                  box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                  opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
      will-change: transform, filter;
      user-select: none;
      -webkit-user-select: none;
      transform-style: preserve-3d;
      margin: 0;
  }

  .category-card:first-child,
  .category-card:last-child {
      margin: 0;
  }

  .category-content {
      padding: 20px;
  }

  .category-content h3 {
      font-size: 20px;
  }

  .category-content p {
      font-size: 13px;
  }

  .category-link {
      opacity: 1;
      transform: none;
  }

  /* Навигация */
  .carousel-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      margin-top: 10px;
  }

  .carousel-prev,
  .carousel-next {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--glass-bg);
      border: var(--glass-border);
      color: var(--text-main);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition-smooth);
      backdrop-filter: blur(10px);
  }

  .carousel-prev svg,
  .carousel-next svg {
      width: 20px;
      height: 20px;
  }

  .carousel-prev:active,
  .carousel-next:active {
      transform: scale(0.9);
      background: var(--accent-main);
  }

  .carousel-dots {
      display: flex;
      gap: 8px;
      align-items: center;
  }

  .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transition: all 0.4s ease;
      cursor: pointer;
  }

  .carousel-dot.active {
      width: 24px;
      border-radius: 4px;
      background: var(--accent-main);
      box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  }

  .review-card {
    min-width: 100%;
    max-width: 100%;
    padding: 24px;
    scroll-snap-align: center;
  }

  .reviews-nav {
    gap: 12px;
  }

  .reviews-nav button {
    display: flex; /* Show arrows on mobile */
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  
  .reviews-dots {
    flex-wrap: wrap;
    margin-top: 0;
  }

  .scroll-hint {
    display: block; /* Show scroll hint on mobile */
  }

  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

  .social-proof {
    flex-direction: column;
    gap: 24px;
    margin: -100px 20px 0;
  }
  
  .proof-divider {
    width: 60px;
    height: 1px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .chatbot-window {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 100px;
  }

  .cursor-glow { 
    display: none; 
  }
}

/* === Contact Popup === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--text-primary);
}

.popup-content h3 {
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--text-primary);
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

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

.popup-btn.telegram {
    background: #2AABEE;
    color: white;
    border: none;
}

.popup-btn.telegram:hover {
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.3);
}

.popup-btn.vk {
    background: #0077FF;
    color: white;
    border: none;
}

.popup-btn.vk:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.popup-btn.max {
    background: #1A1A1A;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.popup-btn.max:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.popup-btn.phone {
    background: #25D366;
    color: white;
    border: none;
}

.popup-btn.phone:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ===== AFTERCARE — ПЕРЕКЛЮЧАТЕЛЬ СПОСОБОВ ===== */

/* Табы */
.method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.method-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.method-tab:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.method-tab.active {
    border-color: var(--accent-main);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-main);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15),
                inset 0 0 30px rgba(139, 92, 246, 0.05);
}

.method-tab-icon {
    font-size: 36px;
}

.method-tab-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-main);
    text-transform: uppercase;
}

.method-tab-desc {
    font-size: 13px;
    opacity: 0.6;
}

.method-tab.active .method-tab-title {
    color: var(--accent-tertiary);
}

/* Контент способов */
.method-content {
    display: none;
    animation: fadeInMethod 0.5s ease;
}

.method-content.active {
    display: block;
}

@keyframes fadeInMethod {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Видео */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-main), transparent);
}

.timeline-item {
    position: relative;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 32px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-main);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.timeline-day {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-main);
    margin-bottom: 8px;
}

.timeline-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Плюсы / Что купить */
.pros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pros-card {
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.pros-card:hover {
    transform: translateY(-5px);
}

.pros-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.pros-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.pros-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Чего нельзя */
.dont-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dont-card {
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.dont-card:hover {
    transform: translateY(-5px);
}

.dont-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.dont-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ef4444;
}

.dont-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== МОБИЛКА ===== */
@media (max-width: 768px) {
    .method-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .method-tab {
        padding: 16px 12px;
    }

    .method-tab-icon {
        font-size: 28px;
    }

    .method-tab-title {
        font-size: 14px;
    }

    .method-tab-desc {
        font-size: 11px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -23px;
    }

    .pros-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dont-grid {
        grid-template-columns: 1fr;
    }
}

/* SEO Blocks */
.seo-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-text h2 {
    margin-bottom: 16px;
}

.seo-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.seo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.seo-feature {
    text-align: center;
    padding: 24px 16px;
}

.seo-feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.seo-feature h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.seo-feature p {
    font-size: 13px;
    margin-bottom: 0;
}

.seo-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.seo-columns h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent-tertiary);
}

.seo-columns p {
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .seo-block {
        text-align: center;
    }
    .seo-text h2 {
        font-size: 24px;
    }
    .seo-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .seo-feature {
        padding: 20px 12px;
    }
    .seo-feature h3 {
        font-size: 16px;
    }
    .seo-feature p {
        font-size: 12px;
    }
    .seo-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .seo-features {
        gap: 8px;
    }
    .seo-feature {
        padding: 16px 8px;
    }
    .seo-feature h3 {
        font-size: 14px;
    }
    .seo-feature-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

/* ===== HORIZONTAL GALLERY ===== */
.coverup-gallery {
    padding: 60px 20px 80px;
}

.coverup-gallery h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 40px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-horizontal {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARD ===== */
.gallery-h-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-h-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.gallery-h-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-h-card:hover img {
    transform: scale(1.02);
}

/* ===== LABELS ДО / ПОСЛЕ ===== */
.gallery-h-labels {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.gh-label {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 20px;
    text-transform: uppercase;
}

.gh-label-after {
    background: var(--accent-main, #8b5cf6);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .coverup-gallery {
        padding: 40px 12px 60px;
    }

    .gallery-horizontal {
        gap: 16px;
    }

    .gallery-h-card {
        border-radius: 12px;
    }

    .gallery-h-labels {
        padding: 10px 12px;
    }

    .gh-label {
        font-size: 10px;
        padding: 4px 12px;
        letter-spacing: 1.5px;
    }
}

/* Legal Pages Styling */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 700;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-page p, .legal-page li {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-page a {
    color: #fff;
    text-decoration: underline;
}

/* Footer Legal Links */
.footer-legal { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-legal span { color: rgba(255,255,255,0.6); margin: 0 8px; font-size: 12px; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  color: var(--text-secondary);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--accent-main);
  text-decoration: underline;
}

.cookie-btn {
  background: var(--accent-main);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.cookie-btn:hover {
  background: var(--accent-secondary);
}

@media (min-width: 600px) {
  .cookie-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
  }
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-btn {
    align-self: center;
  }
}
