/* 🔤 Шрифт Conthrax (ОБНОВЛЕНО: исправлен путь к файлу шрифта) */
@font-face {
  font-family: 'Conthrax';
  src: url('assets/fonts/Conthrax-Sb-Regular.woff2') format('woff2'),
       url('assets/fonts/Conthrax-Sb-Regular.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #050811;
  --bg-card: rgba(10, 15, 30, 0.65);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --neon-cyan: #00d9ff;
  --neon-purple: #b829dd;
  --neon-pink: #e94560;
  --gradient-1: linear-gradient(135deg, #00d9ff 0%, #b829dd 100%);
  --glow-cyan: 0 0 15px rgba(0, 217, 255, 0.5);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --font-display: 'Conthrax', 'Orbitron', system-ui, -apple-system, sans-serif;
  --font-body: 'Rajdhani', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
}

/* 🌐 Сброс и базовые стили */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 🌌 Космический фон */
.cosmic-bg { position: fixed; inset: 0; z-index: -10; background: radial-gradient(ellipse at 50% 0%, #0a1128 0%, var(--bg-dark) 70%); overflow: hidden; }
.stars, .stars2, .stars3 { position: absolute; inset: 0; pointer-events: none; }
.stars { background-image: radial-gradient(2px 2px at 20px 30px, var(--neon-cyan), transparent), radial-gradient(2px 2px at 40px 70px, var(--neon-purple), transparent), radial-gradient(1px 1px at 90px 40px, #fff, transparent); background-repeat: repeat; background-size: 250px 250px; opacity: 0.4; animation: twinkle 8s ease-in-out infinite; }
.stars2 { background-image: radial-gradient(2px 2px at 30px 50px, var(--neon-purple), transparent), radial-gradient(1px 1px at 70px 120px, #fff, transparent); background-repeat: repeat; background-size: 350px 350px; opacity: 0.3; animation: twinkle 12s ease-in-out infinite reverse; }
.stars3 { background-image: radial-gradient(1px 1px at 50px 90px, var(--neon-pink), transparent); background-repeat: repeat; background-size: 450px 450px; opacity: 0.2; }
.nebula { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(184, 41, 221, 0.12) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(0, 217, 255, 0.08) 0%, transparent 50%); animation: nebulaMove 25s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }
@keyframes nebulaMove { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -20px) scale(1.05); } }

/* 📏 Единые отступы и контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 🖋️ Типографика (адаптивная) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
h1 { font-size: clamp(1.8rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(0.8rem, 3vw, 1.2rem); }
p, li, input, textarea, button, summary { font-size: clamp(0.95rem, 2.2vw, 1.1rem); line-height: 1.6; }
.section-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); color: var(--text-primary); text-shadow: 0 0 10px rgba(0, 217, 255, 0.3); }
.highlight { color: var(--neon-cyan); text-shadow: var(--glow-cyan); }
.neon-text { color: var(--text-primary); }

/* 🧭 Навигация */
header { position: sticky; top: 0; z-index: 100; background: rgba(5, 8, 17, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: var(--glass-border); }
nav { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text-primary); }
.logo-icon { display: inline-flex; align-items: center; color: var(--neon-cyan); line-height: 1; }
.logo-icon svg { width: 24px; height: 24px; animation: rotate 15s linear infinite; filter: drop-shadow(0 0 8px var(--neon-cyan)); }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.3s; position: relative; }
.nav-links a:hover { color: var(--neon-cyan); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-1); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: var(--neon-cyan); font-size: 1.8rem; cursor: pointer; padding: 0.5rem; min-height: 44px; min-width: 44px; z-index: 101; }
/* ✨ Неоновое выделение в логотипе */
.neon-accent {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  display: inline; /* Гарантирует корректное применение text-shadow */
}
/* 🖼️ Герой */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; filter: brightness(0.6) saturate(1.1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,17,0.4) 0%, rgba(10,14,39,0.85) 60%, var(--bg-dark) 100%); z-index: -1; }
.hero .container { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero-content { max-width: 850px; margin: 0 auto; padding: 2rem 1rem; }
.hero-subtitle { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--neon-cyan); margin-bottom: 1.5rem; font-weight: 500; }
.hero-text { font-size: clamp(1rem, 2.5vw, 1.25rem); color: #cbd5e1; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-indicator span { display: block; width: 24px; height: 40px; border: 2px solid var(--neon-cyan); border-radius: 20px; position: relative; }
.scroll-indicator span::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--neon-cyan); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scroll { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); } }
.glitch { animation: glitch 3s infinite; }
@keyframes glitch { 0%, 85%, 100% { transform: translate(0); } 87% { transform: translate(-3px, 2px); } 89% { transform: translate(3px, -1px); } }

/* 📦 Карточки и сетка */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1rem, 3vw, 1.5rem); }
.card { background: var(--bg-card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: var(--glass-border); border-radius: var(--radius); padding: 1.8rem; transition: all 0.3s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-1); opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0, 217, 255, 0.15); border-color: rgba(0, 217, 255, 0.3); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.card h3 { color: var(--neon-cyan); }
.card p { color: var(--text-secondary); }
.glass { background: var(--bg-card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: var(--glass-border); border-radius: var(--radius); }

/* 👥 Авторы */
.authors-fullwidth { width: 100%; padding: 0 8px; margin-bottom: 3rem; }
.authors-glass-panel { background: rgba(10, 15, 30, 0.65); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(0, 217, 255, 0.25); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: clamp(280px, 40%, 400px) 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; max-width: 1220px; margin: 0 auto; box-shadow: 0 0 25px rgba(0, 217, 255, 0.08), inset 0 0 0 1px rgba(255,255,255,0.03); }
.author-pair-image { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 15px 30px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); }
.author-pair-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.authors-glass-panel:hover .author-pair-image img { transform: scale(1.03); }
.author-info h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--neon-cyan); }
.author-role { color: var(--neon-purple); font-weight: 600; margin-bottom: 0.8rem; font-size: clamp(1rem, 2.5vw, 1.2rem); }
.author-bio { color: #cbd5e1; line-height: 1.7; margin-bottom: 1.5rem; font-size: clamp(0.95rem, 2.2vw, 1.05rem); }
.author-stats { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.stat { background: rgba(0, 217, 255, 0.1); padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: clamp(0.85rem, 2vw, 0.95rem); border: 1px solid rgba(0, 217, 255, 0.2); text-align: center; }
.stat strong { color: var(--neon-cyan); display: block; font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.1rem; }

/* 🏆 Галерея рекордов */
.records-gallery-section { grid-column: 1 / -1; margin-top: 2rem; padding: 2rem clamp(16px, 5vw, 40px) 0; border-top: 1px solid rgba(0, 217, 255, 0.15); }
.records-title { font-size: clamp(1.2rem, 3vw, 1.5rem); text-align: center; margin-bottom: 1.5rem; }
.records-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.record-card { aspect-ratio: 1 / 1; position: relative; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; border: var(--glass-border); background: var(--bg-card); transition: transform 0.3s, box-shadow 0.3s; }
.record-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 217, 255, 0.15); }
.record-img { position: absolute; inset: 0; z-index: 1; }
.record-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.3s; }
.record-card:hover .record-img img { opacity: 1; }
.record-content { position: relative; z-index: 2; text-align: center; padding: 1rem; width: 100%; background: linear-gradient(to top, rgba(5, 8, 17, 0.95) 0%, rgba(5, 8, 17, 0.7) 60%, transparent 100%); font-size: 0.9rem; color: var(--text-secondary); line-height: 1.3; }
.record-content span { display: block; font-family: var(--font-display); color: var(--neon-cyan); font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 0.3rem; text-shadow: var(--glow-cyan); }

/* 📚 Книги */
.books-summary-text { background: rgba(10, 15, 30, 0.5); border: 1px solid rgba(0, 217, 255, 0.2); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 2rem; text-align: center; }
.books-summary-text p { font-size: clamp(0.95rem, 2vw, 1.05rem); line-height: 1.7; color: var(--text-secondary); max-width: 900px; margin: 0 auto; }
.books-summary-text p strong { color: var(--neon-cyan); font-weight: 600; }
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); margin-bottom: 2rem; }
.book-card { padding: 1.2rem; text-align: center; }
.book-cover { width: 100%; max-width: 160px; margin: 0 auto 0.8rem; aspect-ratio: 5/7; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.1); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.book-card:hover .book-cover img { transform: scale(1.04) rotateY(6deg); }
.book-year { display: inline-block; background: rgba(184, 41, 221, 0.15); color: var(--neon-purple); padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; margin-bottom: 0.5rem; border: 1px solid rgba(184, 41, 221, 0.3); }
.book-card h3 { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-primary); margin-bottom: 0.4rem; }
.book-desc { color: var(--text-secondary); font-size: clamp(0.85rem, 1.8vw, 0.95rem); }

/* 💬 Отзывы */
.testimonials-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.testimonial-item { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; border: var(--glass-border); background: var(--bg-card); transition: transform 0.3s, box-shadow 0.3s; }
.testimonial-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 217, 255, 0.2); }
.testimonial-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ❓ FAQ */
.faq-list { display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
.faq-item { padding: 1.2rem; cursor: pointer; }
.faq-item[open] { border-color: rgba(0, 217, 255, 0.4); background: rgba(10, 15, 30, 0.75); }
summary { font-weight: 600; color: var(--neon-cyan); list-style: none; position: relative; padding-right: 2rem; display: flex; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.8rem; color: var(--text-secondary); }

/* 📝 Форма */
.contact-form { max-width: 650px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-group { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.9rem; background: rgba(5, 8, 17, 0.6); border: 1px solid rgba(0, 217, 255, 0.25); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: all 0.3s; -webkit-appearance: none; appearance: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(0, 217, 255, 0.25); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ✅ Чекбокс согласия */
.consent {
  display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 0.95rem); color: var(--text-secondary);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.consent input[type="checkbox"] {
  width: 22px; height: 22px; min-width: 22px; min-height: 22px; margin-top: 0.2rem;
  accent-color: var(--neon-cyan); cursor: pointer; border-radius: 4px;
  border: 2px solid rgba(0, 217, 255, 0.4); background: rgba(5, 8, 17, 0.6);
  transition: all 0.2s; -webkit-appearance: none; appearance: none; position: relative;
}
.consent input[type="checkbox"]::after {
  content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  color: #fff; font-size: 14px; font-weight: bold; transition: transform 0.15s ease;
}
.consent input[type="checkbox"]:checked { background: var(--neon-cyan); border-color: var(--neon-cyan); }
.consent input[type="checkbox"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.consent input[type="checkbox"]:hover { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 217, 255, 0.3); }
.consent span { line-height: 1.4; }
.consent a { color: var(--neon-cyan); text-decoration: none; border-bottom: 1px dashed var(--neon-cyan); }
.consent a:hover { border-bottom-style: solid; }

/* 🔘 Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; min-height: 44px; min-width: 44px; -webkit-tap-highlight-color: transparent; }
.btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 217, 255, 0.45); }
.btn-secondary { background: transparent; color: var(--neon-cyan); border: 2px solid var(--neon-cyan); }
.btn-secondary:hover { background: rgba(0, 217, 255, 0.1); box-shadow: var(--glow-cyan); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; width: 100%; }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; white-space: nowrap; }
.btn-loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.loading .btn-text { display: none; } .btn.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.8rem; }
.form-note a { color: var(--neon-cyan); }
.center { text-align: center; } .mt-2 { margin-top: 2rem; }

/* 🌐 Footer & Cookie (Исправлено: добавлены стили иконок и cookie-баннера) */
footer { background: rgba(5, 8, 17, 0.95); border-top: var(--glass-border); padding: clamp(2rem, 5vw, 3rem) 0; margin-top: 2rem; }
.footer-content { text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-primary); }

/* Иконки в футере (как на странице политики) */
.footer-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-links a { 
  display: inline-flex; align-items: center; justify-content: center; 
  width: 44px; height: 44px; font-size: 1.3rem; 
  color: var(--text-secondary); text-decoration: none; 
  transition: all 0.3s; border-radius: 50%; 
  background: rgba(255, 255, 255, 0.05); 
}
.footer-links a:hover { 
  color: var(--neon-cyan); background: rgba(0, 217, 255, 0.15); 
  transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3); 
}

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; padding: 1rem 2rem; display: flex; justify-content: center; align-items: center; gap: 1.5rem; z-index: 999; background: rgba(5, 8, 17, 0.95); border-top: var(--glass-border); flex-wrap: wrap; }
.cookie-banner.hidden { display: none !important; } /* Принудительное скрытие */
.cookie-banner p { color: var(--text-secondary); margin: 0; }
.cookie-banner a { color: var(--neon-cyan); text-decoration: underline; }

/* 📱 Адаптив */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .authors-glass-panel { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1rem; }
  .author-pair-image { max-width: 320px; margin: 0 auto 1.2rem; }
  .author-stats { justify-content: center; }
  
  /* 🍔 Бургер-меню */
  .nav-links {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(5, 8, 17, 0.98); flex-direction: column; padding: 1.5rem; gap: 1rem;
    border-bottom: var(--glass-border); z-index: 99; max-height: calc(100vh - 60px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  
  .hero { min-height: 75vh; padding: 2rem 0; }
  section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
  .contact-form { padding: 1.2rem; }
  
  /* Чекбокс и Cookie на мобильных */
  .consent { flex-wrap: wrap; gap: 0.5rem; }
  .consent input[type="checkbox"] { margin-top: 0; }
  .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; padding: 1rem; }
  .cookie-banner .btn-small { width: 100%; max-width: 200px; }

  /* Иконки в футере на мобильных */
  .footer-links {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }
  .footer-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* 🏆 Карусель рекордов */
  .records-gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    padding-bottom: 1rem; -webkit-overflow-scrolling: touch; margin-left: -0.5rem; margin-right: -0.5rem;
    padding-left: 0.5rem; padding-right: 0.5rem;
  }
  .record-card { flex: 0 0 80%; scroll-snap-align: center; margin-bottom: 0; }
  .records-gallery::-webkit-scrollbar { height: 4px; }
  .records-gallery::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
  .records-gallery::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 4px; }

  /* 📚 Мобильная карусель книг + текст */
  .books-summary-text { text-align: left; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
  .books-summary-text p { font-size: 0.95rem; }
  .books-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    padding-bottom: 1rem; -webkit-overflow-scrolling: touch; margin-left: -0.5rem; margin-right: -0.5rem;
    padding-left: 0.5rem; padding-right: 0.5rem;
  }
  .book-card { flex: 0 0 75%; scroll-snap-align: center; padding: 1rem; }
  .book-cover { max-width: 140px; }
  .books-grid::-webkit-scrollbar { height: 4px; }
  .books-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
  .books-grid::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 4px; }

  /* 💬 Карусель отзывов */
  .testimonials-gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    padding-bottom: 1rem; -webkit-overflow-scrolling: touch; margin-left: -0.5rem; margin-right: -0.5rem;
    padding-left: 0.5rem; padding-right: 0.5rem;
  }
  .testimonial-item { flex: 0 0 80%; scroll-snap-align: center; }
  .testimonials-gallery::-webkit-scrollbar { height: 4px; }
  .testimonials-gallery::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
  .testimonials-gallery::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 4px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  h1 { font-size: clamp(1.6rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }
}

/* 🔧 Дополнительные фиксы для мобильных браузеров */
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, .cookie-banner { background: rgba(10, 15, 30, 0.95); }
}
a, button, input, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:target { scroll-margin-top: 80px; }