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

:root {
    --red-primary: #DC143C;
    --red-dark: #B71C1C;
    --red-light: #FF1744;
    --yellow-primary: #FFD700;
    --yellow-dark: #FFC107;
    --yellow-light: #FFEB3B;
    --academy-red: #C8102E;
    --academy-yellow: #FFC72C;
    --blue-primary: #0066CC;
    --blue-dark: #004499;
    --blue-light: #3388FF;
    --white: #FFFFFF;
    --dark: #1a1a2e;
    --gray-light: #f5f5f5;
    --gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch improvements */
* {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(220, 20, 60, 0.1);
}

/* Language Switcher */
/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 35px;
    /* Lowered slightly as requested */
    right: 10px;
    /* Moved maximally right as requested */
    z-index: 1005;
    display: flex;
    gap: 2px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2px 4px !important;
    /* Further reduced size */
    border-radius: 12px;
    border: 1.5px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-switcher button {
    background: transparent;
    border: none;
    padding: 2px 4px !important;
    /* Reduced to match menu buttons */
    cursor: pointer;
    font-size: 9px !important;
    /* Smaller to match menu */
    font-weight: 700;
    color: var(--dark);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 20px !important;
    /* Reduced */
    min-height: 18px !important;
    /* Reduced */
    line-height: 1.2;
}

.lang-switcher button:hover {
    background: var(--red-primary);
    color: white;
}

.lang-switcher button.active {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--yellow-primary) 100%);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 8px 0 !important;
    /* Уменьшен padding еще: было 12px */
    z-index: 99999 !important;
    /* Выше WordPress admin bar (99999) */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow: visible;
    /* Изменено с hidden на visible, чтобы меню не обрезалось */
    min-height: 70px !important;
    height: auto !important;
    /* Высота авто чтобы меню не выливалось */
    display: flex !important;
    align-items: center !important;
}

/* Adjust header position when WordPress admin bar is visible - ОПУСКАЕМ МЕНЮ НИЖЕ */
body.admin-bar header {
    top: 32px !important;
    /* WordPress admin bar height - 32px */
    margin-top: 0 !important;
    position: fixed !important;
    z-index: 99999 !important;
}

/* Убеждаемся что меню видно под admin bar */
body.admin-bar .header-menu,
body.admin-bar .header-actions,
body.admin-bar nav.header-menu {
    position: relative !important;
    z-index: 100000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Сохраняем flexbox для header-container чтобы меню оставалось по центру */
body.admin-bar .header-container {
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Убеждаемся что кнопки меню видны */
body.admin-bar .header-actions .btn,
body.admin-bar .header-actions a {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px !important;
        /* Mobile WordPress admin bar height - 46px */
    }

    body.admin-bar .lang-switcher {
        top: 76px !important;
        /* 30px base + 46px admin bar */
    }
}

/* Компенсация для языкового переключателя при admin bar */
body.admin-bar .lang-switcher {
    top: 67px !important;
    /* 35px base + 32px admin bar */
}

/* Убеждаемся что контент не перекрывается header */
body.admin-bar {
    padding-top: 0 !important;
}

/* ВАЖНО: НЕ сбрасываем padding для main и .site-content если у них есть специфичные классы профилей */
/* Эти страницы управляют своими отступами через inline стили */

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    /* Distribute items: Logo - Menu - Actions */
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    position: relative;
    -webkit-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 0 !important;
    min-height: 90px !important;
    height: auto !important;
    /* Auto height to prevent menu overflow */
}

.logo-container {
    display: flex;
    align-items: center;
    position: absolute !important;
    /* Float logo to allow overlap */
    left: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent;
    z-index: 100;
    overflow: visible !important;
    max-width: 200px !important;
    height: auto !important;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    margin-left: 0 !important;
}

.logo-container img {
    height: 135px !important;
    /* Icon-only logo - bigger for visibility */
    width: auto !important;
    max-width: none !important;
    /* Square icon */
    background: transparent;
    object-fit: contain;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}


.header-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    position: absolute !important;
    right: 180px !important;
    top: 50%;
    transform: translateY(-50%);
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    min-width: 150px;
    z-index: 1010;
}

/* Responsive fix for header actions */
@media (max-width: 1200px) {
    .header-actions {
        right: 140px !important;
    }
}

@media (max-width: 992px) {
    .header-actions {
        right: 100px !important;
    }
}

/* Ensure menu stays centered */
.header-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 0 !important;
    padding-left: 0;
}

/* ... existing code ... */

/* Player Grid Layout Styles - 3 columns */
.spt-players-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 20px;
    width: 100%;
}

/* Fix for spt-favorites-container which is also spt-players-grid */
#spt-favorites-container.spt-players-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {

    .spt-players-grid,
    #spt-favorites-container.spt-players-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {

    .spt-players-grid,
    #spt-favorites-container.spt-players-grid {
        grid-template-columns: 1fr !important;
    }
}

.spt-player-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spt-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.spt-player-card .player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spt-player-card .player-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.spt-player-card .player-position {
    background: #000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.spt-player-card .player-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

justify-content: flex-end;
position: absolute !important;
/* Fixed right position */
right: 180px !important;
top: 50%;
transform: translateY(-50%);
-webkit-flex-shrink: 0;
flex-shrink: 0;
/* Prevent shrinking */
min-width: 150px;
z-index: 1010;
/* Ensure space for user menu */
}

/* Ensure menu stays centered */
.header-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    /* Aligned left to prevent overlap with logo */
    margin-left: 0 !important;
    padding-left: 0;
}


/* Make menu items more compact to fit on screen */
.header-menu a,
.header-menu .btn {
    padding: 8px 10px !important;
    /* Compact padding */
    font-size: 13px !important;
    /* Readable but compact font */
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Global Content Padding */
/* ПРИМЕЧАНИЕ: Профильные страницы (.single-spt_player_profile, .single-spt_club_profile) */
/* управляют своими отступами через inline стили в PHP шаблонах */
main.site-main,
.page-template-default .site-main {
    padding-top: 100px !important;
}

/* FAQ and How It Works pages - reduced padding */
.page-template-page-faq .site-main,
.page-template-page-how-it-works .site-main,
.how-it-works-page {
    padding-top: 80px !important;
}

/* Mobile adjustments */
@media (max-width: 1200px) {

    .header-menu a,
    .header-menu .btn {
        padding: 5px 8px !important;
        font-size: 13px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {

    main.site-main,
    .page-template-default .site-main {
        padding-top: 100px !important;
    }

    .header-menu {
        margin: 0;
    }
}

/* Header Messages Button */
.header-messages-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    color: var(--red-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.header-messages-btn:hover {
    background: var(--red-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.header-messages-btn svg {
    transition: all 0.3s ease;
}

/* Unread Messages Badge */
.header-messages-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Make messages button relative for badge positioning */
.header-messages-btn {
    position: relative;
}

/* User Menu Dropdown */
.user-menu-wrapper {
    position: relative;
    margin-left: 50px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: white;
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: 500;
    color: #333;
}

.user-menu-trigger:hover {
    border-color: var(--red-primary);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.15);
}

.user-menu-trigger svg {
    color: var(--red-primary);
}

.user-menu-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    transition: transform 0.3s ease;
    color: #666;
}

.user-menu-trigger.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: #f8f8f8;
    padding-left: 20px;
}

.user-menu-item svg {
    color: #666;
    flex-shrink: 0;
}

.user-menu-item .lang-content {
    display: none;
}

.user-menu-item .lang-content.active {
    display: inline;
}

.user-menu-logout {
    color: var(--red-primary);
}

.user-menu-logout:hover {
    background: rgba(220, 20, 60, 0.05);
}

.user-menu-logout svg {
    color: var(--red-primary);
}


.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
}

.btn .lang-content {
    display: none;
}

.btn .lang-content.active {
    display: inline;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
}

.btn-secondary:hover {
    background: var(--red-primary);
    color: white;
}

/* Enhanced Hero Section with Competitive Advantages */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 30%, var(--academy-red) 60%, var(--yellow-primary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Компенсация hero при admin bar */
body.admin-bar .hero {
    margin-top: 92px !important;
    /* 60px base + 32px admin bar */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.05;
    /* Очень легкий фон - почти незаметен */
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video-bg video {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video-bg video {
        width: 177.78vh;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.6;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.hero-content .hero-badge {
    order: 1;
}

.hero-content h1 {
    order: 2;
}

.hero-content .hero-subtitle {
    order: 3;
}

.hero-content .advantages-grid {
    order: 4;
}

.hero-content .hero-cta {
    order: 5;
}

.hero-badge {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    margin-top: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.1s both;
    transition: all 0.3s ease;
    order: -1 !important;
}

.hero-badge.lang-content {
    display: none !important;
}

.hero-badge.lang-content.active {
    display: inline-block !important;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #ffffff !important;
}

.hero h1 .hero-subtitle-part {
    font-size: 42px;
    font-weight: 700;
    display: block;
    margin-top: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-subtitle {
    font-size: 26px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.6;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Competitive Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.advantage-card:hover::after {
    left: 100%;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.advantage-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 50px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    transform: scale(1.05);
}

.advantage-card.featured::before {
    content: '⭐';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 28px;
    background: linear-gradient(135deg, var(--yellow-primary) 0%, #FFA500 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

.advantage-card.featured::after {
    display: none;
}

.advantage-card.unique-advantage {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.9) 0%, rgba(0, 102, 204, 0.9) 50%, rgba(138, 43, 226, 0.9) 100%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 50px rgba(220, 20, 60, 0.3), 0 0 30px rgba(0, 102, 204, 0.2);
    position: relative;
}

.advantage-card.unique-advantage::before {
    content: 'УНИКАЛЬНО';
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.advantage-card.unique-advantage h3 {
    color: white;
}

.advantage-card.unique-advantage p {
    color: rgba(255, 255, 255, 0.95);
}

.advantage-card.unique-advantage:hover {
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.4), 0 0 40px rgba(0, 102, 204, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.advantage-card.featured:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.advantage-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.advantage-card:nth-child(1) .advantage-icon {
    animation-delay: 0s;
}

.advantage-card:nth-child(2) .advantage-icon {
    animation-delay: 0.2s;
}

.advantage-card:nth-child(3) .advantage-icon {
    animation-delay: 0.4s;
}

.advantage-card:nth-child(4) .advantage-icon {
    animation-delay: 0.6s;
}

.advantage-card:nth-child(5) .advantage-icon {
    animation-delay: 0.8s;
}

.advantage-card:nth-child(6) .advantage-icon {
    animation-delay: 1s;
}

.advantage-card:nth-child(7) .advantage-icon {
    animation-delay: 1.2s;
}

.advantage-card:nth-child(8) .advantage-icon {
    animation-delay: 1.4s;
}

.advantage-card:nth-child(9) .advantage-icon {
    animation-delay: 1.6s;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.advantage-card p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-hero {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 35px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: white;
    color: var(--red-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--red-primary);
}

/* Unique Features Section */
.unique-features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f5 100%);
    position: relative;
    overflow: hidden;
}

.unique-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.unique-features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unique-features-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.unique-features-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.unique-features-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.unique-features-image {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.unique-features-image-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.unique-feature-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    border: 2px solid rgba(220, 20, 60, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.unique-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.6s;
}

.unique-feature-card:hover::before {
    left: 100%;
}

.unique-feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--red-primary);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.2), 0 0 40px rgba(0, 102, 204, 0.15);
}

.unique-feature-card.premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 240, 1) 100%);
    border: 3px solid var(--red-primary);
    box-shadow: 0 15px 50px rgba(220, 20, 60, 0.15), 0 0 30px rgba(0, 102, 204, 0.1);
}

.unique-feature-card.premium:hover {
    box-shadow: 0 25px 70px rgba(220, 20, 60, 0.25), 0 0 50px rgba(0, 102, 204, 0.2);
    border-color: var(--blue-primary);
}

/* Special styling for УНИКАЛЬНО card */
.unique-feature-card.unique-card {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.9) 0%, rgba(0, 102, 204, 0.9) 50%, rgba(138, 43, 226, 0.9) 100%) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 15px 50px rgba(220, 20, 60, 0.3), 0 0 30px rgba(0, 102, 204, 0.2) !important;
}

.unique-feature-card.unique-card h3.lang-content.active {
    color: white !important;
}

.unique-feature-card.unique-card p.lang-content.active {
    color: rgba(255, 255, 255, 0.95) !important;
}

.unique-feature-card.unique-card .unique-feature-icon {
    filter: brightness(0) invert(1);
}

.unique-feature-card.unique-card:hover {
    box-shadow: 0 25px 70px rgba(220, 20, 60, 0.4), 0 0 50px rgba(0, 102, 204, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.unique-feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.unique-feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.unique-feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.unique-feature-card h3.lang-content {
    display: none !important;
}

.unique-feature-card h3.lang-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.unique-feature-card p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

.unique-feature-card p.lang-content {
    display: none !important;
}

.unique-feature-card p.lang-content.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.unique-feature-card .unique-feature-badge.lang-content {
    display: none !important;
}

.unique-feature-card .unique-feature-badge.lang-content.active {
    display: block !important;
}

.unique-features-section .section-title {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Project Section */
.about-section {
    padding: 48px 0;
    background: var(--white);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 52px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.about-card {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(220, 20, 60, 0.15);
    border-color: var(--red-primary);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
}

.about-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 800;
}

.about-card p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.9;
}

/* Problem/Solution Section */
.problem-solution {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Делаем фото и карточку одинаковой высоты на десктопе */
    align-items: stretch;
}

.split-content {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.split-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
}

.split-content h2 {
    font-size: 40px;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 800;
}

.split-content ul {
    list-style: none;
    padding: 0;
}

.split-content li {
    padding: 18px 0;
    padding-left: 35px;
    position: relative;
    font-size: 19px;
    color: var(--gray);
    line-height: 1.7;
}

.split-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-primary);
    font-weight: bold;
    font-size: 24px;
}

.split-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Partnership Section */
.partnership-section {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 30%, var(--yellow-primary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partnership-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.partnership-section h2 {
    font-size: 48px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.partnership-section p {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Players Section */
.players-section {
    padding: 48px 0;
    background: var(--white);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.player-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(220, 20, 60, 0.2);
    border-color: var(--red-primary);
}

.player-card-image {
    width: 100%;
    max-height: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.player-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    display: block;
}

.split-image img {
    display: block;
    width: 100%;
    height: auto;
}

.split-image {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
}

.player-card-content {
    padding: 30px;
}

.player-card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.player-card-content p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* Clubs & Agents Section */
.clubs-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.clubs-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--yellow-primary) 100%);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.clubs-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.club-benefit-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.club-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--red-primary) 50%, var(--yellow-primary) 100%);
}

.club-benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border-color: var(--blue-primary);
}

.club-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--red-primary) 50%, var(--yellow-primary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
}

.club-benefit-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 800;
}

.club-benefit-card p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    position: relative;
}

.cta-section h2 {
    font-size: 52px;
    margin-bottom: 35px;
    font-weight: 900;
}

.cta-section p {
    font-size: 24px;
    margin-bottom: 60px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 20px 45px;
    font-size: 20px;
}

/* Form Section - At the Bottom */
.form-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.forms-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.form-container {
    background: white;
    padding: 50px;
    border-radius: 35px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    border-radius: 35px;
    z-index: -1;
    opacity: 0.3;
}

.form-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 17px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 17px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.3);
}

.form-message {
    padding: 18px;
    border-radius: 15px;
    margin-top: 25px;
    display: none !important;
    /* Скрыты по умолчанию, показываются только после отправки формы */
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.form-message {
    display: none !important;
    /* Скрыты по умолчанию, показываются только после отправки формы */
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}



/* Footer & Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.trust-badge-logo {
    height: 70px;
    width: auto;
    max-width: 120px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
    object-fit: contain;
}

.trust-badge-item:hover .trust-badge-logo {
    transform: scale(1.1);
    filter: grayscale(0%) opacity(1);
}

.trust-badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.trust-badge-item:hover .trust-badge-text {
    opacity: 1;
    color: white;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content p {
    opacity: 0.8;
    margin-bottom: 12px;
    font-size: 16px;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

/* --------------------
   FAQ PAGE STYLES
   -------------------- */
.faq-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.faq-page .page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-search-wrapper .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.5;
}

.faq-content-wrapper {
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
}

/* Sidebar */
.faq-categories {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
    background: white;
    /* fallback */
    border-color: var(--red-primary);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.1);
    color: var(--red-primary);
}

.faq-cat-btn.active {
    background: linear-gradient(to right, #fff5f5, #fff);
    border-left: 4px solid var(--red-primary);
}

.cat-icon {
    font-size: 20px;
}

/* List */
.faq-list {
    flex: 1;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: white;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fcfcfc;
}

.toggle-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--red-primary);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* arbitrary large value */
}

.a-content {
    padding: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    border-top: 1px solid #eee;
}

/* Contact Section */
.faq-contact-section {
    text-align: center;
    padding: 40px 0 80px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.faq-contact-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-content-wrapper {
        flex-direction: column;
    }

    .faq-categories {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .faq-cat-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    display: none !important;
    /* Убрано по запросу пользователя */
}

.whatsapp-tooltip::after {
    display: none !important;
}

.whatsapp-button:hover .whatsapp-tooltip {
    display: none !important;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* Language Content */
.lang-content {
    display: none;
}

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

/* Hide select options by language - use hidden attribute instead of display */
.form-select option.lang-content {
    display: none !important;
    visibility: hidden !important;
}

.form-select option.lang-content.active {
    display: block !important;
    visibility: visible !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 52px;
    }

    .hero h1 .hero-subtitle-part {
        font-size: 38px;
    }

    .section-title {
        font-size: 42px;
    }
}

@media (max-width: 968px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h1 .hero-subtitle-part {
        font-size: 34px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .forms-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-container {
        padding: 50px 35px;
    }
}

@media (max-width: 968px) {
    .unique-features-grid {
        grid-template-columns: 1fr;
    }

    .unique-features-cards {
        grid-template-columns: 1fr;
    }

    .unique-features-image-container {
        position: static;
        margin-top: 30px;
    }

    .unique-features-image {
        max-height: 400px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .logo-container {
        position: static;
        margin-bottom: 10px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero h1 .hero-subtitle-part {
        font-size: 30px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 20px;
    }

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1002 !important;
    }

    /* Меню скрыто по умолчанию */
    .header-menu {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border: 3px solid rgba(220, 20, 60, 0.5) !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
        z-index: 10000 !important;
        /* ОЧЕНЬ ВЫСОКИЙ z-index чтобы быть выше всего */
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 70px) !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Меню показывается при активном классе - МАКСИМАЛЬНО АГРЕССИВНО */
    .header-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        z-index: 10000 !important;
        /* ОЧЕНЬ ВЫСОКИЙ z-index */
        border: 3px solid rgba(220, 20, 60, 0.5) !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    }

    .header-menu-list {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
    }

    .header-menu-list li {
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .header-menu a,
    .header-menu-list a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        margin: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        color: var(--dark) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        background: rgba(220, 20, 60, 0.05) !important;
        border: 1px solid rgba(220, 20, 60, 0.2) !important;
        border-radius: 10px !important;
    }


    .logo-container {
        position: absolute !important;
        left: 50px !important;
        top: -20px !important;
        /* Final position */
        /* Raised even higher */
        /* Removed vertical centering */
        transform: none !important;
        max-width: 150px !important;
        z-index: 1003 !important;
        /* Выше чем меню */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }

    .logo-container img {
        height: 80px !important;
        width: auto !important;
        max-width: 170px !important;
        /* Increased from 150px */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }

    .lang-switcher {
        position: fixed !important;
        top: 10px !important;
        /* Moved up */
        right: 10px !important;
        /* Moved right */
        transform: none !important;
        padding: 3px 5px !important;
        /* Reduced from 6px 8px */
        z-index: 1002 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1.5px solid rgba(220, 20, 60, 0.3) !important;
        /* Thinner border */
        border-radius: 8px !important;
        /* Smaller radius */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        /* Lighter shadow */
    }

    .lang-switcher button {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 2px 5px !important;
        /* Reduced from 4px 8px */
        font-size: 9px !important;
        /* Reduced from 12px */
        min-width: 22px !important;
        /* Reduced from 28px */
    }

    .header-container {
        padding-right: 120px !important;
        padding-left: 60px !important;
        position: relative !important;
    }

    .header-actions {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        position: fixed;
        transform: none;
    }

    .lang-switcher button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .header {
        padding: 10px 0;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 15px;
        padding-left: 50px !important;
        padding-right: 100px !important;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .logo-container {
        position: absolute;
        left: 50px;
        max-width: 120px;
    }

    .logo-container img {
        height: 50px;
    }

    .mobile-menu-toggle {
        left: 10px;
        width: 28px;
        height: 28px;
    }


    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-container {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero h1 .hero-subtitle-part {
        font-size: 28px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .advantage-card {
        padding: 20px;
    }

    .advantage-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .advantage-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .advantage-card p {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
        padding: 16px 30px;
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .unique-features-section {
        padding: 60px 0;
    }

    .unique-features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .unique-features-image-container {
        position: static;
        margin-top: 30px;
    }

    .unique-features-image {
        max-height: 400px;
    }

    .unique-feature-card {
        padding: 30px;
    }

    .unique-feature-icon {
        font-size: 40px;
    }

    .unique-feature-card h3 {
        font-size: 20px;
    }

    .unique-feature-card p {
        font-size: 14px;
    }

    .unique-features-subtitle {
        font-size: 16px;
    }

    .about-card,
    .split-content,
    .club-benefit-card {
        padding: 30px 20px;
        text-align: center;
    }

    /* Fix inline grid override for unique-features section */
    .unique-features-section>.container>div[style*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Center about-card content on mobile */
    .about-card-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .form-container {
        padding: 40px 25px;
    }

    .form-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 14px 18px;
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        width: 100%;
        padding: 16px 30px;
        font-size: 18px;
    }

    .players-grid,
    .clubs-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-card-image {
        height: 180px;
    }

    .split-image {
        margin-bottom: 30px;
    }

    .partnership-section {
        padding: 60px 0;
    }

    .partnership-section h2 {
        font-size: 32px;
    }

    .partnership-section p {
        font-size: 18px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .cta-section p {
        font-size: 18px;
    }

    .about-section,
    .problem-solution,
    .players-section,
    .clubs-section,
    .form-section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Improve touch targets */
    .btn,
    .btn-hero,
    .form-submit {
        min-height: 44px;
        touch-action: manipulation;
    }

    .lang-switcher button {
        min-width: 36px;
        min-height: 36px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero h1 .hero-subtitle-part {
        font-size: 26px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .advantage-card {
        padding: 18px;
    }

    .form-container {
        padding: 30px 20px;
    }
}

/* ============================================
   Page Template Styles (Internal Pages)
   ============================================ */

.site-main.page-template {
    margin-top: 100px !important;
    /* Увеличен отступ: было 50px */
    padding: 40px 20px !important;
    /* Увеличен padding: было 30px 20px */
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Дополнительный отступ когда есть admin bar */
body.admin-bar .site-main.page-template {
    margin-top: 130px !important;
    /* Еще больше когда есть admin bar */
}

/* Специально для страниц регистрации - еще меньше отступ */
.site-main.page-template:has(.spt-register-form),
body.page-template-default:has(.spt-register-form) .site-main {
    margin-top: 90px !important;
    /* Увеличен: было 40px */
    padding-top: 30px !important;
    /* Увеличен: было 20px */
}

/* Дополнительный отступ для страниц регистрации когда есть admin bar */
body.admin-bar .site-main.page-template:has(.spt-register-form),
body.admin-bar body.page-template-default:has(.spt-register-form) .site-main {
    margin-top: 120px !important;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-article {
    background: transparent !important;
    /* Убрана внешняя рамка - прозрачный фон */
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    /* Убран padding внешней рамки */
    box-shadow: none !important;
    /* Убрана тень */
    border: none !important;
    /* Убрана граница */
    border-image: none !important;
    position: relative;
    overflow: visible !important;
}

.page-article::before {
    display: none !important;
    /* Убран градиент сверху */
}

.page-article::after {
    display: none !important;
    /* Убран радиальный градиент */
}

.entry-header {
    margin-bottom: 40px;
    margin-top: 0;
    text-align: center;
    padding-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Уменьшаем отступы для страниц регистрации */
.page-article:has(.spt-register-form) .entry-header,
.site-main:has(.spt-register-form) .entry-header {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    /* Уменьшен: было 40px */
    padding-bottom: 15px !important;
    /* Уменьшен: было 30px */
}

/* Уменьшаем отступы у формы регистрации */
.spt-register-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.form-container {
    margin-top: 0 !important;
    /* Убираем верхний отступ у контейнера формы */
}

.entry-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.entry-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Hide duplicate WordPress page title when plugin form is present */
.page-article:has(.spt-register-form) .entry-title,
.page-article:has(.spt-register-form) .entry-header,
article.page:has(.spt-register-form) .entry-title,
article.page:has(.spt-register-form) .entry-header,
.page-container:has(.spt-register-form) .entry-title,
.page-container:has(.spt-register-form) .entry-header,
.page-article:has(.spt-dashboard) .entry-title,
.page-article:has(.spt-dashboard) .entry-header,
article.page:has(.spt-dashboard) .entry-title,
article.page:has(.spt-dashboard) .entry-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--dark);
    position: relative;
    z-index: 2;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 32px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-content h3 {
    font-size: 24px;
    color: var(--red-primary);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Многоязычность для заголовков форм в плагине */
.spt-register-form h2 .lang-content,
.spt-dashboard h2 .lang-content {
    display: none !important;
}

.spt-register-form h2 .lang-content.active,
.spt-dashboard h2 .lang-content.active {
    display: inline !important;
}

/* Многоязычность для всех элементов на внутренних страницах */
.entry-title .lang-content,
.entry-content .lang-content,
.page-article .lang-content,
.entry-header .lang-content {
    display: none !important;
}

.entry-title .lang-content.active,
.entry-content .lang-content.active,
.page-article .lang-content.active,
.entry-header .lang-content.active {
    display: block !important;
}

.entry-title .lang-content.active[data-lang],
.entry-content .lang-content.active[data-lang] {
    display: block !important;
}

/* Убедиться что меню видно на всех страницах */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    display: -webkit-flex !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop menu styles - только для больших экранов */
@media (min-width: 769px) {
    .header-menu {
        display: -webkit-flex !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: calc(100% - 350px) !important;
        width: auto !important;
        margin-left: 30px !important;
        /* Reduced from 200px - logo is smaller now */
        margin-right: 20px !important;
        -webkit-box-flex: 1 !important;
        -webkit-flex: 1 !important;
        flex: 1 !important;
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        -webkit-align-self: center !important;
        align-self: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    }

    .header-menu-list {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        -webkit-gap: 0 !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    }

    .header-menu-list li {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        border: none !important;
    }
}

.header-menu-list {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Многоязычность для меню - убедиться что работает */
.header-menu .lang-content,
.header-menu-list .lang-content,
header nav .lang-content {
    display: none !important;
}

.header-menu .lang-content.active,
.header-menu-list .lang-content.active,
header nav .lang-content.active {
    display: inline !important;
}

/* Современный сложный дизайн для ссылок меню - компактный размер */
header nav.header-menu a,
header .header-menu a,
.header-menu a,
.header-menu-list a,
nav.header-menu a,
nav .header-menu-list a,
header nav a,
header .header-menu-list a {
    display: inline-block !important;
    padding: 8px 12px !important;
    margin: 0 2px !important;
    text-decoration: none !important;
    color: var(--dark) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(220, 20, 60, 0.15) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    -webkit-flex-shrink: 0 !important;
    min-width: fit-content !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}


header nav.header-menu a::before,
header .header-menu a::before,
.header-menu a::before,
.header-menu-list a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

header nav.header-menu a:hover::before,
header .header-menu a:hover::before,
.header-menu a:hover::before,
.header-menu-list a:hover::before {
    left: 100% !important;
}

header nav.header-menu a:hover,
header .header-menu a:hover,
.header-menu a:hover,
.header-menu-list a:hover,
nav.header-menu a:hover,
nav .header-menu-list a:hover {
    transform: translateY(-3px) scale(1.05) !important;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%) !important;
    border-color: rgba(220, 20, 60, 0.4) !important;
    box-shadow:
        0 8px 25px rgba(220, 20, 60, 0.2),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    color: var(--red-primary) !important;
}

header nav.header-menu a.current-menu-item,
header .header-menu a.current-menu-item,
.header-menu a.current-menu-item,
.header-menu-list a.current-menu-item {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 50%, var(--yellow-primary) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(220, 20, 60, 0.5) !important;
    box-shadow:
        0 6px 20px rgba(220, 20, 60, 0.3),
        0 0 0 1px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Responsive для внутренних страниц */
@media (max-width: 968px) {
    .site-main.page-template {
        margin-top: 45px !important;
        /* Уменьшен: было 85px */
        padding: 25px 15px !important;
        /* Уменьшен: было 30px 15px */
    }

    /* Для страниц регистрации на планшетах */
    .site-main.page-template:has(.spt-register-form) {
        margin-top: 35px !important;
        padding-top: 15px !important;
    }

    .page-article {
        padding: 35px 25px;
    }

    .entry-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .site-main.page-template {
        margin-top: 40px !important;
        /* Уменьшен: было 80px */
        padding: 20px 10px !important;
        /* Уменьшен: было 25px 10px */
    }

    /* Для страниц регистрации на мобильных */
    .site-main.page-template:has(.spt-register-form) {
        margin-top: 30px !important;
        padding-top: 10px !important;
    }

    .page-article {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .entry-title {
        font-size: 28px;
    }

    .entry-content h2 {
        font-size: 24px;
    }

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

/* ============================================
   PRICING PAGE STYLES
   ============================================ */

.pricing-page {
    padding-top: 20px !important;
    /* Minimal top padding */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Дополнительный отступ когда есть admin bar */
body.admin-bar .pricing-page {
    padding-top: 90px !important;
    /* Уменьшен: было 150px */
}

.pricing-hero {
    text-align: center;
    padding: 20px 20px 40px !important;
    /* Уменьшен верхний padding: было 40px */
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
    margin-top: 0 !important;
}

.pricing-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0 !important;
    /* Убран верхний отступ */
    margin-bottom: 20px;
    padding-top: 0 !important;
    /* Убран padding сверху */
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* User Type Toggle */
.pricing-user-toggle {
    display: inline-flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    gap: 5px;
}

.pricing-user-toggle .toggle-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-user-toggle .toggle-btn.active {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.pricing-user-toggle .toggle-btn:hover:not(.active) {
    color: var(--red-primary);
}

/* Billing Period Toggle */
.pricing-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.billing-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.pricing-billing-toggle .billing-btn {
    padding: 8px 20px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-billing-toggle .billing-btn.active {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    border-color: transparent;
}

.pricing-billing-toggle .billing-btn:hover:not(.active) {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.save-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow-primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Pricing Cards Section */
.pricing-cards-section {
    padding: 40px 20px 80px;
}

.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 20, 60, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card-featured {
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%) 1;
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(220, 20, 60, 0.2);
}

.pricing-card-featured::before {
    opacity: 1;
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pricing-plan-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.pricing-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-badge-free {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-dark) 100%);
    color: var(--dark);
}

.pricing-badge-recommended {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
}

.pricing-badge-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-price {
    margin-bottom: 15px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.price-period {
    font-size: 18px;
    color: var(--gray);
    margin-left: 5px;
}

.pricing-original-price {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 30px;
}

.strikethrough {
    text-decoration: line-through;
    margin-left: 5px;
}

.pricing-free-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.disabled {
    opacity: 0.5;
    color: var(--gray);
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pricing-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.pricing-btn-featured {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.4);
    font-size: 18px;
    padding: 18px 30px;
}

.pricing-btn-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.5);
}

/* FAQ Section */
.pricing-faq-section {
    padding: 80px 20px;
    background: white;
    margin-top: 60px;
}

.faq-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.faq-answer {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .pricing-card-featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .pricing-page {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .pricing-hero {
        padding: 15px 15px 30px;
    }

    .pricing-hero-title {
        font-size: 36px;
    }

    .pricing-hero-subtitle {
        font-size: 18px;
    }

    .pricing-user-toggle {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }

    .pricing-user-toggle .toggle-btn {
        width: 100%;
    }

    .pricing-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .pricing-cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .price-amount {
        font-size: 40px;
    }

    .pricing-plan-name {
        font-size: 28px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .pricing-hero-title {
        font-size: 28px;
    }

    .pricing-hero-subtitle {
        font-size: 16px;
    }

    .price-amount {
        font-size: 36px;
    }

    .pricing-plan-name {
        font-size: 24px;
    }

    .feature-item {
        font-size: 14px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer {
        font-size: 15px;
    }
}

/* Payment Success/Error Pages */
.payment-success-page,
.payment-error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.payment-success-content,
.payment-error-content {
    max-width: 600px;
    text-align: center;
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.payment-success-icon,
.payment-error-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-success-title,
.payment-error-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.payment-success-message,
.payment-error-message {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.payment-success-actions,
.payment-error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-success-actions .btn,
.payment-error-actions .btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.payment-success-actions .btn-primary,
.payment-error-actions .btn-primary {
    background: var(--red-primary);
    color: var(--white);
}

.payment-success-actions .btn-primary:hover,
.payment-error-actions .btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.payment-success-actions .btn-secondary,
.payment-error-actions .btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.payment-success-actions .btn-secondary:hover,
.payment-error-actions .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .payment-success-content,
    .payment-error-content {
        padding: 40px 30px;
    }

    .payment-success-title,
    .payment-error-title {
        font-size: 28px;
    }

    .payment-success-message,
    .payment-error-message {
        font-size: 16px;
    }

    .payment-success-actions,
    .payment-error-actions {
        flex-direction: column;
    }

    .payment-success-actions .btn,
    .payment-error-actions .btn {
        width: 100%;
    }
}

/* Status Badge Styles */
/* ========================================
   Status Badge Styles (Task 2.3)
   ======================================== */

.spt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.spt-status-badge .status-icon {
    font-size: 16px;
    line-height: 1;
}

/* Verified - Проверено SpainProTrials */
.spt-status-verified {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

/* Academy Graduate - Выпускник Академии */
.spt-status-academy_graduate {
    background: linear-gradient(135deg, #673AB7 0%, #9575CD 100%);
    color: white;
}

/* Recommended - Рекомендован скаутом */
.spt-status-recommended {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
}

/* Trial Passed - Прошел пробный период */
.spt-status-trial_passed {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
}

.spt-status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MODERN FAQ STYLES (Fixes & Improvements)
   ======================================== */

/* 1. Hero Section Fixes */
.faq-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 20px 0 40px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-page .page-title {
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.faq-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-bottom: 40px !important;
}

/* 2. Search Input Polish */
.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
}

.faq-search-input {
    width: 100% !important;
    padding: 18px 60px 18px 30px !important;
    border-radius: 50px !important;
    border: 2px solid transparent !important;
    font-size: 17px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
}

.faq-search-input:focus {
    border-color: #DC143C !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1) !important;
}

.faq-search-wrapper .search-icon {
    right: 25px !important;
    color: #666 !important;
    font-size: 22px !important;
}

/* 3. Categories Sidebar - Modern Tabs Look */
.faq-categories {
    gap: 15px !important;
}

.faq-cat-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    transition: all 0.2s ease !important;
    color: #475569 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.faq-cat-btn:hover {
    transform: translateX(5px);
    border-color: #DC143C !important;
    color: #DC143C !important;
}

.faq-cat-btn.active {
    background: #DC143C !important;
    color: #ffffff !important;
    border-color: #DC143C !important;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25) !important;
}

/* Fix icon color in active state */
.faq-cat-btn.active .cat-icon {
    filter: brightness(0) invert(1);
}

/* 4. FAQ Items - Cards Style */
.faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.faq-item:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
}

.faq-item.active {
    border-color: #DC143C !important;
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.1) !important;
}

.faq-question {
    background: transparent !important;
    padding: 24px 30px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.toggle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #DC143C !important;
    font-weight: 600;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

.faq-item.active .toggle-icon {
    background: #DC143C;
    color: #ffffff !important;
    transform: rotate(45deg);
}

.faq-answer {
    background: #ffffff !important;
    /* White background for better readability */
    border-top: 1px solid #f1f5f9 !important;
}

.a-content {
    padding: 30px !important;
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* 5. Contact Section Polish */
.faq-contact-section {
    background: #f8fafc !important;
    padding: 80px 0 !important;
    margin-top: 60px !important;
}

.faq-contact-section h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    color: #1e293b !important;
}

.btn.btn-primary {
    background: #DC143C !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4) !important;
    background: #b71c1c !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .faq-hero {
        padding: 50px 0 !important;
    }

    .faq-page .page-title {
        font-size: 32px !important;
    }

    .faq-content-wrapper {
        gap: 30px !important;
    }

    .faq-cat-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .faq-question {
        padding: 18px 20px !important;
        font-size: 16px !important;
    }
}

/* ========================================
   ГЛОБАЛЬНЫЕ УЛУЧШЕНИЯ ДИЗАЙНА
   Версия: 1.0 (27.12.2025)
======================================== */

/* --- Skeleton Loading Animation --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
}

.skeleton-image {
    height: 180px;
    border-radius: 12px 12px 0 0;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* --- Pulse Animation --- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* --- Loading Spinner --- */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--spt-blue-primary, #0066CC);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Улучшенные эффекты Hover на карточках --- */
.player-card,
.demo-player-card,
.feature-card,
.pricing-card,
.partner-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.player-card:hover,
.demo-player-card:hover,
.feature-card:hover,
.pricing-card:hover,
.partner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glow effect on hover */
.player-card::before,
.demo-player-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--spt-red-primary, #DC143C), var(--spt-blue-primary, #0066CC), var(--spt-yellow-primary, #FFD700));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.player-card:hover::before,
.demo-player-card:hover::before,
.feature-card:hover::before {
    opacity: 0.6;
}

/* Card image zoom on hover */
.player-card img,
.demo-player-card img,
.feature-card img {
    transition: transform 0.4s ease;
}

.player-card:hover img,
.demo-player-card:hover img,
.feature-card:hover img {
    transform: scale(1.08);
}

/* --- Улучшенная обратная связь на кнопках --- */
button,
.btn,
[type="submit"],
a.btn,
input[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ripple effect */
button::after,
.btn::after,
[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

button:active::after,
.btn:active::after,
[type="submit"]:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Button press effect */
button:active,
.btn:active,
[type="submit"]:active,
input[type="submit"]:active {
    transform: scale(0.96) translateY(1px);
}

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Enhanced primary button */
.btn-primary,
.btn-cta,
.btn-register,
.spt-btn-primary {
    background: linear-gradient(135deg, var(--spt-red-primary, #DC143C) 0%, #b71c1c 100%);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.35);
    border: none;
}

.btn-primary:hover,
.btn-cta:hover,
.btn-register:hover,
.spt-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Enhanced secondary button */
.btn-secondary,
.btn-outline {
    border: 2px solid var(--spt-blue-primary, #0066CC);
    background: transparent;
    color: var(--spt-blue-primary, #0066CC);
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--spt-blue-primary, #0066CC);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Focus states for accessibility */
button:focus-visible,
.btn:focus-visible,
[type="submit"]:focus-visible,
a:focus-visible {
    outline: 3px solid var(--spt-blue-primary, #0066CC);
    outline-offset: 3px;
}

/* --- Fade In Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered fade in for lists */
.fade-in-stagger>* {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-stagger>*:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-stagger>*:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-stagger>*:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in-stagger>*:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in-stagger>*:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in-stagger>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* --- Tooltip styles --- */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 8px 12px;
    background: #333;
    color: white;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* --- Success/Error animations --- */
@keyframes success-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes success-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.success-animation {
    animation: success-bounce 0.5s ease;
}

.error-animation {
    animation: success-shake 0.5s ease;
}

/* --- Form field feedback --- */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--spt-blue-primary, #0066CC) !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15) !important;
    transition: all 0.3s ease;
}

input.success,
select.success,
textarea.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15) !important;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
    animation: success-shake 0.3s ease;
}

/* --- Кнопка Избранного --- */
.btn-favorite {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #999;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-favorite:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.btn-favorite.active {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    border-color: #ff4757;
    color: white;
}

.btn-favorite .heart-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-favorite:hover .heart-icon,
.btn-favorite.active .heart-icon {
    transform: scale(1.2);
}

.btn-favorite.active .heart-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.3);
    }
}

/* GLOBAL FIX FOR LANGUAGE VISIBILITY - ULTRA PRIORITY */
.lang-content.active,
span.lang-content.active,
div.lang-content.active,
p.lang-content.active,
h1 .lang-content.active,
h2 .lang-content.active,
h3 .lang-content.active,
a .lang-content.active {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Handle block level contexts */
div.lang-content.active,
p.lang-content.active,
h1 .lang-content.active,
h2 .lang-content.active,
h3 .lang-content.active {
    display: block !important;
}

/* Ensure buttons work */
.btn .lang-content.active,
button .lang-content.active,
a.btn .lang-content.active {
    display: inline-block !important;
    /* or inline */
}

/* FALLBACK SAFETY NET: Show Spanish if JS fails (and no active class exists) */
/* We use specific selectors but avoid !important so JS can override it easily if it adds styles */
span.lang-content[data-lang="es"]:not(.active),
div.lang-content[data-lang="es"]:not(.active),
p.lang-content[data-lang="es"]:not(.active),
h1 .lang-content[data-lang="es"]:not(.active),
h2 .lang-content[data-lang="es"]:not(.active),
h3 .lang-content[data-lang="es"]:not(.active),
a .lang-content[data-lang="es"]:not(.active) {
    display: inline;
    opacity: 1;
    visibility: visible;
}

/* === CRITICAL: Hide Registration Links for Logged-In Users === */
/* This is a fail-safe against PHP caching issues */
body.logged-in .header-menu-list a[href*="register"],
body.logged-in .header-menu-list a[href*="регистрация"],
body.logged-in .header-menu-list a[href*="registro"] {
    display: none !important;
}

body.logged-in .header-menu-list li:has(a[href*="register"]),
body.logged-in .header-menu-list li:has(a[href*="регистрация"]),
body.logged-in .header-menu-list li:has(a[href*="registro"]) {
    display: none !important;
}

/* === CRITICAL: Perfect Center Menu (Desktop) === */
@media screen and (min-width: 992px) {
    .header-container {
        position: relative !important;
        justify-content: space-between !important;
        /* Logo left, Auth right */
    }

    .header-menu {
        position: absolute !important;
        left: 50% !important;
        -webkit-transform: translateX(-50%) !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 70%;
        justify-content: center !important;
        margin: 0 !important;
        z-index: 10 !important;
        /* Prevent wrapping interactions */
        white-space: nowrap !important;
    }
}


/* === MOBILE OPTIMIZATION & SAFARI FIXES === */
@media screen and (max-width: 991px) {
    .header-container {
        height: auto !important;
        min-height: 70px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between !important;
    }

    .logo-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        max-width: 120px !important;
        margin-left: 0 !important;
        margin-right: auto;
    }

    .logo-container img {
        height: 60px !important;
        /* Smaller logo for mobile */
        width: auto !important;
        max-width: none !important;
    }

    .header-actions {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-left: auto;
        /* Push to right */
        display: flex;
        align-items: center;
        min-width: 0 !important;
    }
}
/* Admin Bar Fix */
header { height: auto !important; min-height: 70px !important; }
.header-container { height: auto !important; min-height: 90px !important; }
body.admin-bar header { top: 32px !important; }
body.admin-bar .hero { margin-top: 92px !important; }
body.admin-bar .lang-switcher { top: 67px !important; }