/* Custom CSS Variables */
:root {
    --bg-color: #0E0A1F;
    --primary-color: #1A1433;
    --accent-color: #C749FF;
    --secondary-color: #00F0B5;
    --text-color: #EFEFEF;
    --soft-accent: #2B2355;
    --contrast-element: #FFA630;
    --card-bg: rgba(26, 20, 51, 0.8);
    --glass-bg: rgba(26, 20, 51, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: rgba(14, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--soft-accent);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(199, 73, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28239, 239, 239, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--accent-color)20 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-color)20 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05) rotate(2deg);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 260px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(199, 73, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 181, 0.4);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline-light:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    background: var(--primary-color);
    position: relative;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--soft-accent);
    backdrop-filter: blur(10px);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-bg);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(199, 73, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Levels Section */
.levels-section {
    background: var(--bg-color);
}

.level-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--soft-accent);
    height: 100%;
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 25px 50px rgba(199, 73, 255, 0.3);
}

.level-header {
    padding: 1.5rem;
    position: relative;
}

.level-header h3 {
    color: var(--accent-color);
    margin-bottom: 0;
}

.level-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level-content {
    padding: 1.5rem;
}

.level-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.level-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.level-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.level-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--soft-accent));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, var(--accent-color)15 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, var(--secondary-color)15 0%, transparent 50%);
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--soft-accent);
}

.footer-brand h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: var(--soft-accent);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    opacity: 0.7;
    margin-bottom: 0;
}

/* Form Styles */
.form-control, .form-select {
    background: var(--card-bg);
    border: 1px solid var(--soft-accent);
    color: var(--text-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--card-bg);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(199, 73, 255, 0.25);
}

.form-control::placeholder {
    color: rgba(239, 239, 239, 0.6);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--soft-accent)), url('img/15.jpg') center center/cover no-repeat;
    padding: 8rem 0 4rem;
    margin-top: 76px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--accent-color)20 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-color)20 0%, transparent 50%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
}

.content-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--soft-accent);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(199, 73, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 240, 181, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .btn {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .level-card,
    .content-card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Privacy Policy specific styles */
.policy-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    opacity: 0.8;
}

.policy-nav {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--soft-accent);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.policy-nav h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.policy-nav .nav-link {
    color: var(--text-color);
    padding: 0.5rem 0;
    border: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.policy-nav .nav-link:hover {
    color: var(--accent-color);
}

.policy-content {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--soft-accent);
    padding: 3rem;
}

.policy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--soft-accent);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.policy-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.policy-section h5 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.policy-section ul {
    margin-bottom: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(199, 73, 255, 0.1), rgba(0, 240, 181, 0.1));
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.alert-box {
    background: linear-gradient(135deg, rgba(255, 166, 48, 0.1), rgba(199, 73, 255, 0.1));
    border: 1px solid var(--contrast-element);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.alert-box h5 {
    color: var(--contrast-element);
    margin-bottom: 1rem;
}

.action-box {
    background: linear-gradient(135deg, rgba(0, 240, 181, 0.1), rgba(199, 73, 255, 0.1));
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.action-box h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-details {
    background: var(--soft-accent);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-details h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .policy-nav {
        position: static;
        margin-bottom: 2rem;
    }
    
    .policy-content {
        padding: 2rem;
    }
    
    .policy-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .policy-content {
        padding: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
}

/* --- Improved Cookie Consent Popup Styles --- */
.cookie-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14, 10, 31, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.cookie-popup-content {
    background: var(--card-bg, #1A1433);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
    border: 1px solid var(--accent-color, #C749FF);
    max-width: 90vw;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-popup-content p {
    color: var(--text-color, #EFEFEF);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cookie-popup-content a {
    color: var(--secondary-color, #00F0B5);
    text-decoration: underline;
}

.cookie-popup-content .cookie-btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-popup-content .btn {
    min-width: 120px;
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .cookie-popup-content {
        padding: 1.2rem 0.7rem;
        width: 95vw;
    }
    .cookie-popup-content .cookie-btn-group {
        flex-direction: column;
        gap: 0.7rem;
        align-items: stretch;
    }
    .cookie-popup-content .btn {
        width: 100%;
        min-width: 0;
    }
}

.footer .row > [class^="col-"],
.footer .row > [class*=" col-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer h6 {
    text-align: center;
    width: 100%;
}

@media (max-width: 991.98px) {
    .footer .row > [class^="col-"],
    .footer .row > [class*=" col-"] {
        align-items: center;
        text-align: center;
    }
}

.row.g-4.justify-content-center {
    display: flex;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-features {
    flex-grow: 1;
}

/* Специально для кнопки на третьей карточке */
.pricing-card:last-child .btn {
    margin-bottom: 1.5rem;
}

.logo-image {
    max-width: 120px;
    max-height: 70px;
    height: auto;
    width: auto;
    display: block;
}
