/* assets/css/style.css */

/* --- 1. ПЕРЕМЕННЫЕ И БАЗА --- */
:root {
    --bg-dark: #0a0a0a;
    --text-light: #FFFFFF;
    --text-gray: #999999;
    --accent-red: #dd2735;
    --accent-gradient: linear-gradient(135deg, #ff4b59 0%, #dd2735 50%, #b0101c 100%);
    --font-main: 'Inter', sans-serif;
    --font-header: 'Oswald', sans-serif;
}

/* Скрываем мобильные элементы по умолчанию */
.burger-btn,
.mobile-menu-overlay {
    display: none;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-light);
    overflow: hidden;
    /* Скролл скрыт, так как у нас SPA-эффект */
    height: 100vh;
    width: 100vw;
}

h1,
h2,
h3,
h4,
button {
    font-family: var(--font-header);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: 0.3s;
}

button {
    outline: none;
    cursor: pointer;
    border: none;
}

/* --- 2. ШАПКА (HEADER) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: transform 0.5s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

/* При разрезании шапка уезжает вверх */
body.is-sliced .site-header {
    transform: translateY(-100%);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 120px;
    height: 120px;
    /* Увеличенный размер */
    border-radius: 50%;
    border: 3px solid var(--accent-red);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(221, 39, 53, 0.4);
}

.club-title {
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-accent {
    color: var(--accent-red);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-red);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Правая часть шапки (Телефон + Иконки) */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    /* Центрируем всё в колонке */
    gap: 12px;
}

.header-phone {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: #fff;
    border: 1px solid rgba(221, 39, 53, 0.6);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.header-phone:hover {
    background: var(--accent-red);
    box-shadow: 0 0 15px rgba(221, 39, 53, 0.6);
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-right: 0 !important;
    padding: 0;
    justify-content: center;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    /* Крупные иконки */
    line-height: 1;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--accent-red);
    transform: scale(1.15);
}


/* --- 3. ГЛАВНЫЙ КОНТЕЙНЕР --- */
#main-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}


/* --- 4. HERO SECTION (ГЛАВНЫЙ ЭКРАН) --- */
.hero-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    /* Шум + Виньетка */
    background-image:
        radial-gradient(circle at 50% 50%, #1f1f1f 0%, #000000 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Фоновый иероглиф */
.bg-kanji {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%) translateX(-20%);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 55vh;
    color: rgba(255, 255, 255, 0.02);
    font-weight: 900;
    pointer-events: none;
}

/* Вертикальный текст справа */
.japan-vertical-text {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Noto Sans JP', serif;
    font-size: 1.2rem;
    letter-spacing: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    border-right: 1px solid rgba(221, 39, 53, 0.5);
    padding-right: 20px;
}

.japan-vertical-text span {
    color: var(--accent-red);
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 100%;
    box-sizing: border-box;
}

/* Контент слева */
.hero-content {
    flex: 1;
    max-width: 600px;
    padding-top: 60px;
    display: block;
    /* Важно для нормального расположения текста */
}

.vertical-line {
    width: 3px;
    height: 50px;
    background: var(--accent-red);
    margin-bottom: 25px;
    display: block;
    box-shadow: 0 0 10px var(--accent-red);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-red);
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Слово прозрачное с обводкой */
.h1-outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 50px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 25px;
    max-width: 450px;
}

/* Фото тренера и свечение */
.hero-visual {
    flex: 1.2;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(221, 39, 53, 0.25) 0%, transparent 70%);
    filter: blur(70px);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.coach-img {
    max-height: 90%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
}


/* --- 5. МЕХАНИКА KATANA SLICE (РАЗРЕЗАНИЕ) --- */

.slice-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.slice-wrapper * {
    pointer-events: auto;
}

/* Слои разреза */
.slice-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.6, 0.05, 0.2, 0.99);
    will-change: transform;
    background: var(--bg-dark);
    /* Фон обязателен */
}

/* В слоях разреза мы скрываем тренера (он будет в safe-layer) */
.slice-layer .coach-img {
    opacity: 0 !important;
}

/* Форма разреза */
.slice-top {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 20%);
    z-index: 12;
}

.slice-bottom {
    clip-path: polygon(0 20%, 100% 80%, 100% 100%, 0 100%);
    z-index: 11;
}

/* Безопасный слой для тренера (лежит поверх разрезов) */
.coach-safe-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.5s ease 0.2s, transform 0.8s ease;
}

/* В безопасном слое убираем фон и всё кроме тренера */
.coach-safe-layer .hero-section {
    background: transparent !important;
    background-image: none !important;
}

.coach-safe-layer .bg-kanji,
.coach-safe-layer .japan-vertical-text,
.coach-safe-layer .hero-content,
.coach-safe-layer .glow-effect {
    opacity: 0 !important;
}

/* Лезвие катаны */
.katana-line {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 140%;
    height: 3px;
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-red);
    z-index: 40;
    opacity: 0;
    transform-origin: left center;
    transform: rotate(20deg) scaleX(0);
    pointer-events: none;
}

/* --- СОСТОЯНИЯ АНИМАЦИИ --- */
body.is-sliced .slice-top {
    transform: translate(40px, -60px);
    opacity: 0;
}

body.is-sliced .slice-bottom {
    transform: translate(-40px, 60px);
    opacity: 0;
}

body.is-sliced .coach-safe-layer {
    opacity: 0;
    transform: scale(1.05);
}

@keyframes slash {
    0% {
        opacity: 0;
        transform: rotate(20deg) scaleX(0);
    }

    10% {
        opacity: 1;
        transform: rotate(20deg) scaleX(0.5);
    }

    40% {
        opacity: 1;
        transform: rotate(20deg) scaleX(1);
    }

    100% {
        opacity: 0;
        transform: rotate(20deg) scaleX(1);
    }
}



/* --- 6. СЕКЦИЯ КОНТЕНТА (ОТКРЫВАЕТСЯ ПОСЛЕ РАЗРЕЗА) --- */

.content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: #050505;
    z-index: 5;
    display: block;
    background-image: radial-gradient(circle at 50% 50%, #1a0505 0%, #000000 100%);
    opacity: 0;
    transition: opacity 0.5s;
    overflow-y: auto;
    padding: 270px 20px 60px 20px;
    box-sizing: border-box;
}

/* Когда разрез произошел, слой становится видимым и активным */
body.is-sliced .content-layer {
    opacity: 1;
    z-index: 15;
}

/* Контейнер для вставки JS-контента */
#dynamic-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    /* Центрируем */
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease 0.4s;
}

body.is-sliced #dynamic-content {
    opacity: 1;
    transform: translateY(0);
}


/* --- 7. СТИЛИ ВНУТРЕННИХ РАЗДЕЛОВ --- */

/* Кнопка "Вернуться" */
.back-btn {
    margin-top: 40px;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: #fff;
    font-weight: 700;
    transition: 0.3s;
    letter-spacing: 2px;
    display: inline-block;
    font-family: var(--font-header);
    cursor: pointer;
}

.back-btn:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-3px);
}

/* Раздел: ИСТОРИЯ */
.history-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    /* Ограничиваем ширину */
    margin: 0 auto;
    /* Центрируем */
}

.history-photo {
    width: 320px;
    height: 420px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.history-info {
    max-width: 600px;
    text-align: left;
}

.history-info h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 15px;
    color: #fff;
}

.history-dates {
    font-family: var(--font-header);
    color: var(--accent-red);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 2px;
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

/* Раздел: РАСПИСАНИЕ */
.schedule-container {
    max-width: 1200px;
    /* Увеличили до 1200px */
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.schedule-title {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.schedule-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.schedule-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 30px;
    width: 350px;
    text-align: left;
    transition: 0.3s;
}

.schedule-box.active-box {
    border-color: var(--accent-red);
    background: rgba(221, 39, 53, 0.05);
}

.schedule-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.schedule-box .sub-text {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    color: #ccc;
}

.time-row .time {
    color: #fff;
    font-weight: bold;
}

/* Раздел: ГАЛЕРЕЯ */
.gallery-container {
    text-align: center;
    max-width: 1200px;
    /* Фиксируем ширину 1200px */
    width: 100%;
    margin: 0 auto;
    /* Строго по центру */
}

.kudo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.gallery-card.wide {
    grid-column: span 2;
}

.gallery-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s, filter 0.6s;
}

.gallery-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.gallery-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(221, 39, 53, 0.4);
}

.gallery-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.gallery-card .overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px #000;
}

.gallery-card .overlay i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* Раздел: КОНТАКТЫ */
.contacts-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    /* Увеличили до 1200px */
    width: 100%;
    margin: 0 auto;
}

.contacts-text {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #0f0f0f;
    padding: 20px;
    border-left: 3px solid var(--accent-red);
}

.contact-item h4 {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.icon-red {
    font-size: 2rem;
    color: var(--accent-red);
}

.map-container {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    border: 2px solid #333;
    filter: grayscale(100%);
    transition: 0.5s;
}

.map-container:hover {
    filter: grayscale(0%);
    border-color: var(--accent-red);
}

/* Заголовки разделов */
.section-title {
    font-size: 3rem;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #999;
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-size: 0.9rem;
}


/* --- 8. МОДАЛЬНОЕ ОКНО И ФОРМА --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    border: 1px solid var(--accent-red);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
    transform: translateY(50px);
    transition: 0.4s;
    box-shadow: 0 0 30px rgba(221, 39, 53, 0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--accent-red);
}

.input-group input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-header);
    letter-spacing: 1px;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: var(--accent-red);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-top: 10px;
    font-family: var(--font-header);
    cursor: pointer;
}

.submit-btn:hover {
    background: #fff;
    color: #000;
}

/* Анимация появления для разделов */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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


/* --- 9. АНИМАЦИЯ ПОЯВЛЕНИЯ ТЕКСТА (REVEAL) --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    display: block;
    will-change: transform, opacity;
}

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

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

.delay-5 {
    animation-delay: 0.9s;
}

.delay-6 {
    animation-delay: 1.1s;
}


/* --- СТАТИЧНАЯ И НАДЕЖНАЯ КНОПКА --- */
.main-btn {
    /* Чтобы не ломала верстку */
    display: inline-block;
    margin-top: 30px;
    /* Отступ сверху от текста */

    /* Внешний вид */
    padding: 22px 55px;
    background: var(--accent-gradient);
    /* Красный градиент */
    color: #fff;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    outline: none;
    box-shadow: 0 10px 30px rgba(221, 39, 53, 0.3);

    /* Кликабельность */
    cursor: pointer;
    position: relative;
    z-index: 500;
    /* Достаточно, чтобы быть поверх фона */
    transition: 0.3s ease;
    /* Плавное изменение цвета */
}

/* Простой эффект при наведении */
.main-btn:hover {
    background: #8a0000;
    /* Темно-бордовый */
    color: #fff;
    transform: translateY(-2px);
    /* Чуть приподнимается */
    box-shadow: 0 0 20px rgba(221, 39, 53, 0.6);
    /* Легкое свечение */
}

/* --- REDESIGN CONTACTS (2025 UPDATE) --- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Панель с инфо */
.contacts-info-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacts-info-panel .section-title {
    text-align: left;
    margin-bottom: 20px;
}

/* Карточка контакта */
.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.contact-card:hover {
    background: rgba(221, 39, 53, 0.08);
    border-color: var(--accent-red);
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.5);
}

/* Иконка в карточке */
.card-icon {
    font-size: 1.8rem;
    color: var(--accent-red);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(221, 39, 53, 0.3);
    background: rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.contact-card:hover .card-icon {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-red);
}

/* Текст в карточке */
.card-content h4 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.card-content p,
.card-content .phone-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

/* Декор полоска */
.card-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-red);
    opacity: 0;
    transition: 0.3s;
}

.contact-card:hover .card-decor {
    opacity: 1;
}

/* Мини кнопка WA */
.wa-btn-mini {
    color: #25D366;
    font-size: 1.4rem;
    transition: 0.3s;
    opacity: 0.8;
}

.wa-btn-mini:hover {
    opacity: 1;
    transform: scale(1.2);
    text-shadow: 0 0 10px #25D366;
}

/* --- КАРТА В СТИЛЕ CYBERPUNK --- */
.map-wrapper {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-map {
    height: 450px;
    width: 100%;
    border: none;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    transition: 0.5s;
    position: relative;
    z-index: 2;
}

.map-wrapper:hover .custom-map {
    filter: grayscale(0%) contrast(1) brightness(1);
    box-shadow: 0 0 30px rgba(221, 39, 53, 0.1);
}

/* Уголки карты */
.map-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-red);
    border-style: solid;
    transition: 0.4s;
    z-index: 5;
    pointer-events: none;
}

.top-left {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.top-right {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}

.bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}

.bottom-right {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.map-wrapper:hover .map-corner {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 10px var(--accent-red);
}

/* --- ГАЛЕРЕЯ: ТАБЫ ФИЛЬТРАЦИИ --- */
.gallery-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gallery-tab {
    padding: 10px 22px;
    border: 1px solid #333;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-header);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Сброс браузерного стиля кнопки */
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.gallery-tab:hover,
.gallery-tab.active {
    border-color: var(--accent-red);
    color: #fff;
    background: rgba(221, 39, 53, 0.12);
}

/* --- ГАЛЕРЕЯ: ПРЕВЬЮ ВИДЕО --- */
.video-thumb {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s, filter 0.6s;
}

.gallery-card:hover .video-thumb img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(221, 39, 53, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: 0.3s;
}

.gallery-card:hover .video-play-btn {
    background: var(--accent-red);
    box-shadow: 0 0 20px rgba(221, 39, 53, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- ЛАЙТБОКС ДЛЯ ФОТО И ВИДЕО --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;   /* расстояние между стрелкой, фото, стрелкой */
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: calc(100vw - 160px);  /* оставляем место для стрелок */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(255,255,255,0.1);
}

#lightbox-caption {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* --- Кнопка закрытия --- */
.lightbox-close {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(221, 39, 53, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-family: var(--font-header);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    line-height: 1;
    flex-shrink: 0;
}

.lightbox-close:hover {
    background: #8a0008;
    transform: rotate(90deg) scale(1.1);
}

/* --- Стрелки навигации — flex-siblings рядом с фото --- */
.lb-nav {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.6rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.lb-nav:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.12);
}

.lb-nav:active {
    transform: scale(0.95);
}

.lb-nav[style*="hidden"] {
    pointer-events: none;
    opacity: 0;
}

/* --- \u041f\u0410\u0413\u0418\u041d\u0410\u0426\u0418\u042f \u0413\u0410\u041b\u0415\u0420\u0415\u0418 --- */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.pg-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #333;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.pg-btn:hover:not(:disabled) {
    border-color: var(--accent-red);
    color: #fff;
    background: rgba(221,39,53,0.15);
}

.pg-btn.pg-active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    cursor: default;
}

.pg-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.pg-arrow {
    font-size: 1.1rem;
}

/* --- \u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e --- */
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 100%;
}