/* global-dark.css
 * Глобальный темный стиль для volkovyinfo.рф
 * Включает: общие сбросы, темный фон, стили текста, адаптивность
 */

/* --- Глобальные Сбросы и Основные Стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра для темного фона */
    --color-bg-dark: #0a0e27;
    --color-bg-light-accent: #1a1f3a;
    --color-text-light: white;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-link-alena: #2ecc71; /* Зеленый - Психология */
    --color-link-alex: #3498db;  /* Синий - Маркетинг */
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg-dark);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--color-text-muted);
    /* Скрываем стандартный курсор только на больших экранах */
    cursor: default; 
}

/* Кастомный курсор */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999 !important;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
    display: none; /* Сначала скрыт */
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100000 !important;
    transition: all 0.1s ease;
    display: none; /* Сначала скрыт */
}

/* Показываем курсор только на экранах, где он имеет смысл (не мобильные) */
@media (min-width: 969px) {
    body {
        cursor: none; /* Скрываем системный курсор, если кастомный активен */
    }
    .custom-cursor, .cursor-dot {
        display: block;
    }
}


/* Динамический фон с градиентами (распространяется на все страницы) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(39, 174, 96, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 80%, rgba(52, 152, 219, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1428 100%);
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Плавающие декоративные элементы */
.float-element {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    z-index: 1;
}
.float-1 {
    width: 400px; height: 400px; background: radial-gradient(circle, rgba(39, 174, 96, 0.3), transparent); top: 10%; left: -10%; animation-delay: 0s;
}
.float-2 {
    width: 350px; height: 350px; background: radial-gradient(circle, rgba(52, 152, 219, 0.3), transparent); bottom: 10%; right: -10%; animation-delay: 7s;
}
.float-3 {
    width: 300px; height: 300px; background: radial-gradient(circle, rgba(155, 89, 182, 0.2), transparent); top: 50%; left: 50%; animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* --- Стили для INDEX.HTML/PHP (Выбор профиля) --- */

.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.choice-container {
    max-width: 1500px;
    width: 100%;
    animation: fadeInScale 1s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.header-section {
    text-align: center;
    margin-bottom: 100px;
    animation: slideDown 1.2s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-area h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6em;
    font-weight: 700;
    /* Градиентный текст */
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -3px;
    position: relative;
    display: inline-block;
}

.logo-area h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.logo-area p {
    color: var(--color-text-muted);
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 1px;
    max-width: 600px;
    margin: 0 auto;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8em;
    margin-top: 60px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.profiles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

.profile-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--color-border-subtle);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardReveal 0.8s cubic-bezier(0.23, 1, 0.320, 1) backwards;
    transform-style: preserve-3d;
}

.profile-card:nth-child(1) { animation-delay: 0.3s; }
.profile-card:nth-child(2) { animation-delay: 0.5s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(80px) rotateX(20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.profile-card:hover::before { opacity: 1; }

.profile-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-card.alena:hover {
    box-shadow: 0 40px 100px rgba(39, 174, 96, 0.4), 0 0 80px rgba(39, 174, 96, 0.2), inset 0 1px 0 rgba(39, 174, 96, 0.3);
}

.profile-card.alex:hover {
    box-shadow: 0 40px 100px rgba(52, 152, 219, 0.4), 0 0 80px rgba(52, 152, 219, 0.2), inset 0 1px 0 rgba(52, 152, 219, 0.3);
}

.profile-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.profile-card.alena .profile-image {
    background-image: url('path-to-alena-photo.jpg');
    background-color: #27ae60;
}

.profile-card.alex .profile-image {
    background-image: url('path-to-alex-photo.jpg');
    background-color: #3498db;
}

.profile-info {
    padding: 50px;
    position: relative;
    z-index: 2;
}

.profile-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.profile-card.alena .profile-tag {
    background: rgba(39, 174, 96, 0.15);
    color: var(--color-link-alena);
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.2);
}

.profile-card.alex .profile-tag {
    background: rgba(52, 152, 219, 0.15);
    color: var(--color-link-alex);
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

.profile-card:hover .profile-tag { transform: scale(1.05); }

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text-light);
    letter-spacing: -1px;
    line-height: 1.2;
}

.profile-role {
    font-size: 1.15em;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}

.profile-description {
    font-size: 1.08em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 40px;
}

.profile-stats {
    display: flex; gap: 30px; margin-bottom: 35px; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-size: 2em; font-weight: 800; color: var(--color-text-light); line-height: 1; margin-bottom: 5px;
}

.profile-card.alena .stat-number { color: var(--color-link-alena); }
.profile-card.alex .stat-number { color: var(--color-link-alex); }

.stat-label {
    font-size: 0.85em; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 1px;
}

.profile-button {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 40px; border-radius: 50px; font-size: 1.05em;
    font-weight: 700; color: white; transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative; overflow: hidden;
}

.profile-button::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    border-radius: 50%; background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}

.profile-card:hover .profile-button::before { width: 300px; height: 300px; }

.profile-card.alena .profile-button {
    background: linear-gradient(135deg, var(--color-link-alena) 0%, #229954 100%);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
}

.profile-card.alex .profile-button {
    background: linear-gradient(135deg, var(--color-link-alex) 0%, #2980b9 100%);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.profile-card:hover .profile-button { transform: translateX(10px); }
.profile-card.alena:hover .profile-button { box-shadow: 0 20px 50px rgba(39, 174, 96, 0.6); }
.profile-card.alex:hover .profile-button { box-shadow: 0 20px 50px rgba(52, 152, 219, 0.6); }

.arrow { transition: transform 0.3s; position: relative; z-index: 1; }
.profile-card:hover .arrow { transform: translateX(5px); }

/* --- Задача 2: Красивый блок "Нам доверяют" --- */
.trust-section {
    margin-top: 80px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.trust-section > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.trust-item i {
    font-size: 2.2em;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s, transform 0.3s;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.trust-item:hover i {
    color: #3498db; /* Синий акцент при наведении */
    transform: scale(1.1);
}

/* Стили для универсального подвала (Задача 3) */
.universal-footer {
    background: #0a0e27;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.footer-nav a:hover {
    color: white;
    border-bottom: 2px solid white;
}

.footer-nav a.agency-link {
    color: #3498db;
}

.footer-nav a.agency-link:hover {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
}

/* --- АДАПТИВНОСТЬ (УНИКАЛЬНЫЕ ПРАВИЛА INDEX) --- */

@media (max-width: 1200px) {
    .logo-area h1 { font-size: 5em; } 
    .profiles-container { gap: 50px; } 
    .profile-image { height: 450px; } 
}

@media (max-width: 968px) {
    .profiles-container { grid-template-columns: 1fr; gap: 50px; }
    .logo-area h1 { font-size: 4em; } 
    .profile-image { height: 450px; }
    .float-element { display: none; }
}

@media (max-width: 768px) {
    .logo-area h1 { font-size: 3.2em; letter-spacing: -2px; }
    .logo-area p { font-size: 1.15em; }
    .subtitle { font-size: 1.4em; }
    .profile-image { height: 400px; }
    .profile-info { padding: 35px; }
    .profile-name { font-size: 2em; }
    .trust-items { gap: 40px; }
    .trust-section { padding: 40px 30px; }
}

@media (max-width: 480px) {
    .logo-area h1 { font-size: 2.5em; }
    .profile-image { height: 350px; }
    .profile-info { padding: 25px; }
    .profile-stats { gap: 20px; }
}

/* --- Стили для ALENA.PHP --- */

/* Секция Hero (Главный экран) */
.hero-alena {
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.hero-alena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(39, 174, 96, 0.2) 0%, transparent 40%);
    z-index: -1;
    animation: pulseGlow 15s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.tagline-alena {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-link-alena);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 5px;
    animation: fadeIn 1s ease-out;
}

.hero-alena h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5em;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: 30px;
    animation: slideDown 1.2s cubic-bezier(0.23, 1, 0.320, 1) 0.2s backwards;
}

.hero-alena p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-weight: 300;
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

/* Кнопка на Hero секции */
.btn-primary-alena {
    display: inline-flex;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-link-alena) 0%, #229954 100%);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.5);
    animation: scaleIn 0.8s ease-out 0.6s backwards;
}

.btn-primary-alena:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 45px rgba(39, 174, 96, 0.7);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Основной контент-контейнер */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    z-index: 10;
    position: relative;
}

/* Стили для основных блоков контента (Карточки) */
.info-block {
    background: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s, border-color 0.4s;
    animation: fadeIn 1s ease-out backwards;
}

.info-block:hover {
    transform: translateY(-5px);
    border-color: rgba(39, 174, 96, 0.4);
}

.info-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5em;
    color: var(--color-link-alena);
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(39, 174, 96, 0.3);
    padding-bottom: 10px;
    letter-spacing: -1px;
}

.info-block p, .info-block ul {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

.info-block li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 30px;
}

.info-block li::before {
    content: '✓';
    color: var(--color-link-alena);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Секция "Книга" */
.book-section {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--color-bg-light-accent);
    padding: 50px;
    border-radius: 20px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* --- Обновленный стиль контейнера для обложки --- */
.book-image-area {
    /* min-width: 300px; */ /* УБИРАЕМ фиксированный минимум */
    flex: 0 0 300px;       /* ЗАДАЕМ базовую ширину в flex-контексте (не растет, не сжимается) */
    max-width: 300px;      /* Ограничиваем максимальную ширину контейнера */
    
    /* height: 400px; */   /* УБИРАЕМ ФИКСИРОВАННУЮ ВЫСОТУ - ГЛАВНЫЙ ВИНИВНИК */
    height: auto;          /* Позволяем контенту (картинке) определять высоту */
    
    background-color: transparent; /* Убираем серый фон-заглушку */
    border-radius: 12px;   /* Скругляем углы самому контейнеру */
    
    /* Сохраняем тени и 3D-эффекты при наведении */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(39, 174, 96, 0.1);
    transform: rotateY(15deg) rotateX(5deg) scale(0.95);
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden; /* Чтобы картинка не вылезала за скругленные углы контейнера */
}

/* Эффект при наведении (возвращаем ровно) */
.book-image-area:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 0 30px 80px rgba(39, 174, 96, 0.5);
}

.book-image-area:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 0 30px 80px rgba(39, 174, 96, 0.5);
}

.book-details {
    flex-grow: 1;
}

.book-details h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

.book-details .author-role {
    color: var(--color-link-alena);
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 600;
}

.book-details p {
    color: var(--color-text-muted);
    font-size: 1.1em;
    line-height: 1.8;
}

/* Адаптивность для страницы Алёны */
@media (max-width: 1000px) {
    .book-section {
        flex-direction: column;
        text-align: center;
    }
    
    .book-image-area {
        margin: 0 auto;
        transform: none; /* Убираем 3D-эффект на мобильных/планшетах */
        width: 100%;     /* Контейнер занимает всю доступную ширину... */
        max-width: 300px; /* ...но не больше 300px */
        height: auto;    /* ВАЖНО: Разрешаем высоте подстраиваться под картинку */
    }
    
    .book-image-area:hover {
        transform: none; /* Отключаем всплывание контейнера при тапе на телефоне */
    }
    
    .book-details h3 {
        margin-top: 20px;
    }
    
    .hero-alena h1 {
        font-size: 4em;
    }
}

@media (max-width: 768px) {
    .hero-alena {
        padding-top: 120px;
    }
    .hero-alena h1 {
        font-size: 3em;
    }
    .hero-alena p {
        font-size: 1.2em;
    }
    .info-block h2 {
        font-size: 2em;
    }
}

/* --- Стили для дополнительных блоков на ALENA.PHP --- */

/* Секция Отзывов */
.reviews-section {
    padding: 80px 20px;
    background: var(--color-bg-light-accent);
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-section h2, .cert-section h2, .contact-section h2, .photo-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5em;
    color: var(--color-link-alena);
    text-align: center;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--color-link-alena);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer-name {
    font-weight: 700;
    color: white;
    font-size: 1.1em;
}

/* Секция Лид-магнита / Форма */
.lead-magnet-section {
    background: linear-gradient(135deg, var(--color-link-alena), #229954);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(39, 174, 96, 0.4);
}

.lead-magnet-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8em;
    color: white;
    margin-bottom: 15px;
}

.lead-magnet-section p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

.lead-magnet-form input[type="email"] {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    width: 300px;
    max-width: 80%;
    margin-right: 15px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s;
}

.lead-magnet-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background: #0a0e27;
    color: white;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.lead-magnet-form button:hover {
    background: #1a1f3a;
}

/* Секция Сертификатов */
.cert-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.certificate-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s;
    cursor: zoom-in;
}

.certificate-item img:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Секция Фото с мероприятий */
.photo-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.photo-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-item img:hover {
    transform: scale(1.1);
}

/* Секция Контактов */
.contact-section {
    padding: 60px;
    background: var(--color-bg-light-accent);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    color: white;
    font-size: 1.5em;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-link-alena);
    transform: translateY(-5px) scale(1.1);
}

/* Адаптивность для новых блоков */
@media (max-width: 800px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .lead-magnet-form input[type="email"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .lead-magnet-form button {
        width: 100%;
    }
    .lead-magnet-section {
        padding: 40px;
    }
    .lead-magnet-section h3 {
        font-size: 2em;
    }
    .contact-section {
        padding: 40px;
    }
}

/* --- Стили для ALEX.PHP --- */

/* Секция Hero для Алекса */
.hero-alex {
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.hero-alex::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(52, 152, 219, 0.2) 0%, transparent 40%);
    z-index: -1;
    animation: pulseGlowAlex 15s infinite ease-in-out;
}

@keyframes pulseGlowAlex {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.tagline-alex {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-link-alex);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 5px;
    animation: fadeIn 1s ease-out;
}

.hero-alex h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5em;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: 30px;
    animation: slideDown 1.2s cubic-bezier(0.23, 1, 0.320, 1) 0.2s backwards;
}

.hero-alex p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-weight: 300;
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

/* Кнопка на Hero секции */
.btn-primary-alex {
    display: inline-flex;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-link-alex) 0%, #2980b9 100%);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
    animation: scaleIn 0.8s ease-out 0.6s backwards;
}

.btn-primary-alex:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 45px rgba(52, 152, 219, 0.7);
}

/* Общие стили для info-block, но с синим акцентом */
.content-section .info-block-alex h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5em;
    color: var(--color-link-alex);
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 10px;
    letter-spacing: -1px;
}

.content-section .info-block-alex li::before {
    content: '★'; /* Использование другой иконки для разнообразия */
    color: var(--color-link-alex);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.content-section .info-block-alex:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 152, 219, 0.4);
}

/* Секция Кейсов (вместо Сертификатов) */
.case-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.case-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5em;
    color: var(--color-link-alex);
    text-align: center;
    margin-bottom: 40px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(52, 152, 219, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
}

.case-card h3 {
    color: white;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.case-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.case-card .case-tag {
    display: inline-block;
    color: var(--color-link-alex);
    font-weight: 700;
    border-bottom: 2px solid var(--color-link-alex);
}

/* Секция Лид-магнита (Синий градиент) */
.lead-magnet-alex {
    background: linear-gradient(135deg, var(--color-link-alex), #2980b9);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.4);
}

.lead-magnet-alex h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8em;
    color: white;
    margin-bottom: 15px;
}
.lead-magnet-alex p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Отзывы и Контакты (Используем общие стили, но меняем акцент) */
.reviews-section-alex {
    /* Наследует reviews-section, но настраивает заголовок и акцент */
    padding: 80px 20px;
    background: var(--color-bg-light-accent);
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-section-alex h2 {
    color: var(--color-link-alex);
}

.review-card-alex {
    /* Наследует review-card, но меняет акцент */
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--color-link-alex);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.contact-section-alex h2 {
    color: var(--color-link-alex);
}

.contact-section-alex .social-links a:hover {
    color: var(--color-link-alex);
    transform: translateY(-5px) scale(1.1);
}

/* Адаптивность для страницы Алекса */
@media (max-width: 1000px) {
    .hero-alex h1 { font-size: 4em; }
    .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-alex { padding-top: 120px; }
    .hero-alex h1 { font-size: 3em; }
    .hero-alex p { font-size: 1.2em; }
    .case-section h2 { font-size: 2em; }
}

/* === Lead magnet form inputs (improved) === */
.lead-magnet-form input[type="text"],
.lead-magnet-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 18px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;

    color: #1a1f3a;
    font-size: 1em;
    font-family: 'Inter', sans-serif;

    outline: none;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Placeholder */
.lead-magnet-form input::placeholder {
    color: rgba(26, 31, 58, 0.5);
}

/* Focus */
.lead-magnet-form input:focus {
    border-color: rgba(39, 174, 96, 0.8);
    box-shadow:
        0 0 0 3px rgba(39, 174, 96, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.profile-card.alena .profile-image {
    background-image: url("/alena foto/glavfoto.jpg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}


/* ==============================================
   Блок "Спасибо" / ошибки после формы лид-магнита
   ============================================== */
.thank-you-box {
    background-color: rgba(39, 174, 96, 0.1); /* мягкий зеленый фон */
    border: 2px solid rgba(39, 174, 96, 0.5); /* зеленая рамка */
    border-radius: 12px;
    padding: 25px 30px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #ffffff; /* текст белый */
    font-size: 1em;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Ошибки */
.thank-you-box.error {
    background-color: rgba(231, 76, 60, 0.1); /* мягкий красный фон */
    border-color: rgba(231, 76, 60, 0.5); /* красная рамка */
    color: #ffffff;
}

/* Заголовок */
.thank-you-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Анимация появления */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ссылки внутри блока (если будут) */
.thank-you-box a {
    color: #27ae60;
    text-decoration: underline;
}

/* ===========================================
   Плавающий крупный дисклеймер
   =========================================== */
.page-disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #e74c3c;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2em; /* крупный текст */
    text-align: center;
    padding: 20px 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    cursor: grab;

    /* Анимация движения по странице */
    animation: moveDisclaimer 12s linear infinite alternate;
}

/* Плавающая анимация */
@keyframes moveDisclaimer {
    0%   { transform: translate(0, 0) rotate(-2deg); }
    25%  { transform: translate(30vw, 10vh) rotate(1deg); }
    50%  { transform: translate(60vw, 5vh) rotate(-1deg); }
    75%  { transform: translate(30vw, 20vh) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(-2deg); }
}

/* ===========================================
   Lightbox / Модальное окно галереи
   =========================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 39, 0.95); /* Темный фон в стиле сайта */
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    object-fit: contain;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

/* Кнопки управления */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(39, 174, 96, 0.8); /* Зеленый акцент для Алёны */
    border-color: rgba(39, 174, 96, 1);
    transform: scale(1.1);
}

.lightbox-close {
    top: 25px;
    right: 35px;
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 35px; }
.lightbox-next { right: 35px; }

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lightbox-prev { left: 10px; width: 45px; height: 45px; }
    .lightbox-next { right: 10px; width: 45px; height: 45px; }
    .lightbox-close { top: 15px; right: 15px; width: 45px; height: 45px; }
}

/* ===========================================
   Слайдер Отзывов
   =========================================== */
.reviews-slider-wrapper {
    position: relative;
    padding: 0 50px; /* Место для стрелок */
    margin: 0 auto;
    max-width: 1200px;
}

.reviews-slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Прилипание карточек при скролле */
    scrollbar-width: none; /* Скрываем ползунок в Firefox */
    -ms-overflow-style: none; /* Скрываем ползунок в IE/Edge */
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.reviews-slider-track::-webkit-scrollbar {
    display: none; /* Скрываем ползунок в Chrome/Safari */
}

/* Настройки ширины карточек в слайдере */
.reviews-slider-track .review-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 карточки в ряд на ПК */
    scroll-snap-align: start;
    height: auto; /* Чтобы карточки тянулись по контенту */
}

/* Кнопки перелистывания */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px; 
    height: 45px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev-btn { left: 0; }
.slider-btn.next-btn { right: 0; }

.slider-btn:hover { 
    background: rgba(39, 174, 96, 0.8); 
    border-color: rgba(39, 174, 96, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Адаптивность слайдера */
@media (max-width: 968px) {
    .reviews-slider-track .review-card {
        flex: 0 0 calc(50% - 15px); /* 2 карточки на планшете */
    }
}

@media (max-width: 600px) {
    .reviews-slider-wrapper {
        padding: 0; /* Убираем отступы на телефоне */
    }
    .reviews-slider-track .review-card {
        flex: 0 0 100%; /* 1 карточка на телефоне */
    }
    .slider-btn {
        display: none; /* Прячем кнопки на телефоне (там листают пальцем) */
    }
}

/* --- Задача 1: Компактные карточки на ПК --- */
@media (min-width: 1200px) {
    .choice-container { max-width: 1200px; } /* Было 1500px */
    .profile-image { height: 380px; } /* Было 500px */
    .profile-info { padding: 40px; } /* Было 50px */
    .profile-name { font-size: 2.2em; } /* Было 2.6em */
}

/* ===========================================
   PREMIUM FOOTER (Сетка)
   =========================================== */
.premium-footer {
    position: relative;
    margin-top: 120px;
    background: #050714; /* Глубокий, почти черный фон */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
}

/* Элегантное фоновое свечение */
.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(52, 152, 219, 0.08) 0%, rgba(39, 174, 96, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 30px;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr; /* Пропорции колонок */
    gap: 60px;
    margin-bottom: 60px;
}

/* Логотип */
.footer-logo {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2em;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.footer-desc {
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 350px;
    margin-bottom: 30px;
}

/* Соцсети под логотипом */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Заголовки колонок */
.footer-col h4 {
    color: white;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Списки ссылок */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 1.1em;
    opacity: 0.5;
    transition: transform 0.3s, opacity 0.3s;
}

/* Анимация при наведении (сдвиг вправо) */
.footer-links a:hover {
    transform: translateX(8px);
}
.footer-links a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Фирменные цвета при наведении */
.footer-links a.hover-white:hover { color: white; }
.footer-links a.hover-white:hover i { color: white; }

.footer-links a.hover-green:hover { color: #2ecc71; }
.footer-links a.hover-green:hover i { color: #2ecc71; }

.footer-links a.hover-blue:hover { color: #3498db; }
.footer-links a.hover-blue:hover i { color: #3498db; }

.footer-links a.hover-purple:hover { color: #9b59b6; }
.footer-links a.hover-purple:hover i { color: #9b59b6; }

/* Копирайт */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .brand-col {
        grid-column: span 2; /* Бренд занимает всю ширину на планшете */
    }
    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .brand-col {
        grid-column: span 1;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-links a:hover {
        transform: translateY(-3px); /* На телефоне сдвигаем вверх, а не вправо */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.profile-card.alex .profile-image {
    background-image: url("/alex foto/glavfoto.jpg"); /* Укажи точное имя твоего файла */
    background-color: #3498db;
    background-size: cover;
    background-position: center 20%; /* Фокус на лице (чуть выше центра) */
    background-repeat: no-repeat;
}

/* ===========================================
   Универсальный Медиа-слайдер (Фото и Сертификаты)
   =========================================== */
.media-slider-wrapper {
    position: relative;
    padding: 0 60px; /* Отступы для кнопок */
    margin: 0 auto;
    max-width: 1200px;
}

.media-slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    align-items: stretch; /* Чтобы карточки были ровными по высоте */
}

.media-slider-track::-webkit-scrollbar {
    display: none;
}

/* Настройки самих картинок в слайдере */
.media-slider-track .certificate-item,
.media-slider-track .photo-item {
    flex: 0 0 calc(25% - 22.5px); /* 4 элемента в ряд на ПК */
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: zoom-in; /* Курсор-лупа */
    background: rgba(255,255,255,0.02); /* Легкий фон на случай загрузки */
}

.media-slider-track .certificate-item img,
.media-slider-track .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает лишнее, делая все превью одинаково красивыми */
    display: block;
    transition: transform 0.5s;
}

/* Ограничиваем высоту превьюшек, чтобы слайдер не был огромным */
.media-slider-track .certificate-item img { height: 350px; }
.media-slider-track .photo-item img { height: 250px; }

/* Зум при наведении на картинку в слайдере */
.media-slider-track .certificate-item:hover img,
.media-slider-track .photo-item:hover img {
    transform: scale(1.05);
}

/* Адаптивность для медиа-слайдера */
@media (max-width: 1000px) {
    .media-slider-track .certificate-item,
    .media-slider-track .photo-item {
        flex: 0 0 calc(33.333% - 20px); /* 3 элемента на планшете */
    }
}

@media (max-width: 768px) {
    .media-slider-wrapper {
        padding: 0;
    }
    .media-slider-track .certificate-item,
    .media-slider-track .photo-item {
        flex: 0 0 calc(50% - 15px); /* 2 элемента на телефоне */
    }
}

@media (max-width: 480px) {
    .media-slider-track .certificate-item,
    .media-slider-track .photo-item {
        flex: 0 0 80%; /* Почти на весь экран на маленьких телефонах */
    }
}