/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
body {
    background: var(--bg-gradient-start, #f0f9ff);
    background: linear-gradient(135deg, var(--bg-gradient-start, #f0f9ff), var(--bg-gradient-end, #e6f0f5));
    color: var(--text-primary, #1e293b);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

.main-content {
    background: transparent;
    position: relative;
    z-index: 10;
}

/* ===== АНИМИРОВАННЫЙ ФОН ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.1); }
    66% { transform: translate(-5%, 10%) scale(0.9); }
}

/* ===== НАВИГАЦИЯ ===== */
.happy-nav {
    background: linear-gradient(135deg, #4CB2E1 0%, #3A8EB3 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    height: 60px;
    overflow: visible;
    white-space: nowrap;
}

.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
    color: white !important;
    text-decoration: none;
}

.logo-pc {
    display: flex;
    align-items: center;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.logo-mobile {
    display: none;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

/* Анимация логотипа */
.logo-h {
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
    margin-right: -0.1em;
}

.logo-b {
    position: relative;
    z-index: 4;
    margin-left: -0.08em;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
}

.logo-appy {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateX(0em);
    transition: all 0.4s ease 0.1s;
    margin-left: -0.3em;
}

.logo-usiness {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-1.2em);
    transition: all 0.4s ease 0.2s;
    margin-left: 2em;
}

.nav-logo:hover .logo-b {
    transform: translateX(2.14em);
}

.nav-logo:hover .logo-appy {
    opacity: 1;
    transform: translateX(0);
    margin-left: -0.22em;
}

.nav-logo:hover .logo-usiness {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0.8em;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    position: relative;
    padding: 10px 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 1;
}

.nav-btn span {
    position: relative;
    z-index: 2;
    color: white;
}

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

.nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-btn.register {
    background: white;
    border-color: white;
}

.nav-btn.register span {
    color: #4CB2E1 !important;
    font-weight: 600;
}

.nav-btn.register:hover {
    background: transparent;
}

.nav-btn.register:hover span {
    color: white !important;
}

.nav-btn.logout {
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn.logout:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== АДАПТАЦИЯ НАВИГАЦИИ ===== */
@media (max-width: 992px) {
    .nav-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .logo-pc {
        display: none;
    }

    .logo-mobile {
        display: block;
        font-size: 2.2rem;
        line-height: 1;
    }

    .nav-logo {
        height: 40px;
        text-shadow: none;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 15px;
        right: 15px;
        background: linear-gradient(135deg, #4CB2E1 0%, #3A8EB3 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
        border-width: 1.5px;
    }

    .nav-btn::before {
        display: none;
    }

    .nav-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 380px) {
    .logo-mobile {
        font-size: 1.8rem;
    }
}

/* ===== УНИФИЦИРОВАННЫЕ СТИЛИ ДЛЯ СТРАНИЦ АУТЕНТИФИКАЦИИ ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(var(--card-blur, 10px));
    border-radius: 40px;
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px var(--shadow-color, rgba(0,0,0,0.1));
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(76, 178, 225, 0.1), transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

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

.logo-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #4CB2E1 !important;
    transition: transform 0.3s ease;
    line-height: 1;
}

.logo-link:hover {
    transform: scale(1.02);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary, #475569);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn-auth {
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 10px 20px -5px rgba(76, 178, 225, 0.4);
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(76, 178, 225, 0.6);
}

/* Общие стили форм (оставляем как есть для совместимости) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--text-primary, #1e293b);
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #4CB2E1;
    font-size: 1.2rem;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: var(--input-bg, rgba(255,255,255,0.8));
    border: 2px solid transparent;
    border-radius: 24px;
    font-size: 1rem;
    color: var(--text-primary, #1e293b);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px var(--shadow-color, rgba(0,0,0,0.1));
}

.form-input:focus {
    outline: none;
    border-color: #4CB2E1;
    box-shadow: 0 8px 20px rgba(76, 178, 225, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4CB2E1;
    cursor: pointer;
}

.forgot-link {
    color: #4CB2E1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #3A8EB3;
    text-decoration: underline;
}

/* Ссылки */
.register-link,
.login-link {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary, #475569);
}

.register-link a,
.login-link a {
    color: #4CB2E1;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.register-link a:hover,
.login-link a:hover {
    color: #3A8EB3;
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: var(--text-secondary, #475569);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link a:hover {
    color: #4CB2E1;
}

.back-link i {
    font-size: 1.1rem;
}

.alert {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ РЕГИСТРАЦИИ ===== */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #4CB2E1;
    flex-shrink: 0;
}

.terms-checkbox a {
    color: #4CB2E1;
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* ===== ПОПАПЫ ===== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--card-bg, #ffffff);
    border-radius: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    animation: slideUp 0.4s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    background: var(--bg-navbar, transparent);
    color: var(--text-primary, #1e293b);
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    transition: color 0.3s ease;
    padding: 0 10px;
}

.popup-close:hover {
    color: var(--text-primary, #1e293b);
}

.popup-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    color: var(--text-primary, #1e293b);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Стили для попапа решений */
.solution-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-primary, #1e293b);
    border-bottom: 1px solid var(--border-color, rgba(76,178,225,0.1));
}

.solution-features li i {
    color: #4CB2E1;
    font-size: 1.2rem;
}

.solution-full-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary, #1e293b);
    margin-bottom: 24px;
}

.solution-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== СТРАНИЦА ТАРИФОВ ===== */
.plans-container {
    position: relative;
    z-index: 10;
    padding: 40px 0 80px;
}

.plans-header {
    text-align: center;
    margin-bottom: 40px;
}

.plans-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.plans-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary, #475569);
    max-width: 600px;
    margin: 0 auto;
}

.demo-notice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 60px;
    padding: 16px 32px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-primary, #1e293b);
    max-width: 800px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.demo-notice i {
    color: #10b981;
    font-size: 1.2rem;
}

.period-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.period-btn {
    padding: 12px 32px;
    border-radius: 40px;
    border: 2px solid var(--border-color, rgba(76, 178, 225, 0.2));
    background: var(--card-bg, rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    color: var(--text-secondary, #475569);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn.active {
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(76, 178, 225, 0.3);
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block; /* Убедимся, что это блочный элемент */
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.plan-card {
    background: var(--card-bg, rgba(255,255,255,0.9));
    backdrop-filter: blur(var(--card-blur, 10px));
    border-radius: 40px;
    padding: 40px 30px;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    box-shadow: 0 20px 40px -15px var(--shadow-color, rgba(0,0,0,0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px var(--shadow-color, rgba(0,0,0,0.1));
}

.plan-card.popular {
    border: 2px solid #4CB2E1;
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 8px;
}

.plan-description {
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 40px;
}

.plan-price {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
}

.price-period {
    color: var(--text-secondary, #475569);
    font-size: 1rem;
}

.old-price {
    color: var(--text-secondary, #475569);
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 10px;
    opacity: 0.7;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-primary, #1e293b);
}

.plan-features i {
    color: #4CB2E1;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(76, 178, 225, 0.2);
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(76, 178, 225, 0.4);
    color: white;
}

.plan-btn.outline {
    background: transparent;
    border: 2px solid #4CB2E1;
    color: #4CB2E1;
}

.plan-btn.outline:hover {
    background: #4CB2E1;
    color: white;
}

.faq-section {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary, #1e293b);
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: var(--card-bg, rgba(255,255,255,0.9));
    backdrop-filter: blur(var(--card-blur, 10px));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #4CB2E1;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i {
    color: #4CB2E1;
}

.faq-answer {
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    margin-left: 26px;
}

/* ===== ОБЩИЕ АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */

/* Hero секция */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4CB2E1 0%, #7ec8f0 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: slideInLeft 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    opacity: 0.95;
}

.hero-title span {
    display: block;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: none;
    -webkit-text-fill-color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 400;
}

/* Кнопки в hero */
.hero-section .btn-modern.primary {
    background: white;
    color: #4CB2E1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    padding: 16px 36px;
    font-weight: 600;
}

.hero-section .btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.95);
}

.hero-section .btn-modern.outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 34px;
    font-weight: 500;
}

.hero-section .btn-modern.outline:hover {
    background: white;
    color: #4CB2E1;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Облака */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1000px;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.4), inset 0 -5px 20px rgba(0,0,0,0.05);
    filter: blur(2px);
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
    box-shadow: inherit;
    filter: inherit;
}

.cloud1 {
    width: 450px;
    height: 140px;
    top: 5%;
    left: -500px;
    animation: cloudFloat 60s linear infinite;
    opacity: 0.85;
}

.cloud1::before {
    width: 220px;
    height: 220px;
    top: -90px;
    left: 40px;
}

.cloud1::after {
    width: 270px;
    height: 270px;
    top: -130px;
    left: 140px;
}

.cloud2 {
    width: 550px;
    height: 160px;
    bottom: 15%;
    right: -600px;
    animation: cloudFloatReverse 70s linear infinite;
    opacity: 0.8;
}

.cloud2::before {
    width: 280px;
    height: 280px;
    top: -110px;
    left: 70px;
}

.cloud2::after {
    width: 330px;
    height: 330px;
    top: -160px;
    left: 190px;
}

.cloud3 {
    width: 400px;
    height: 120px;
    top: 30%;
    left: -450px;
    animation: cloudFloat 55s linear infinite 5s;
    opacity: 0.9;
}

.cloud3::before {
    width: 200px;
    height: 200px;
    top: -80px;
    left: 50px;
}

.cloud3::after {
    width: 240px;
    height: 240px;
    top: -120px;
    left: 130px;
}

.cloud4 {
    width: 300px;
    height: 90px;
    bottom: 30%;
    left: -350px;
    animation: cloudFloat 40s linear infinite 2s;
    opacity: 0.95;
}

.cloud4::before {
    width: 150px;
    height: 150px;
    top: -60px;
    left: 40px;
}

.cloud4::after {
    width: 180px;
    height: 180px;
    top: -90px;
    left: 90px;
}

.cloud5 {
    width: 650px;
    height: 200px;
    top: 60%;
    right: -750px;
    animation: cloudFloatReverse 90s linear infinite 10s;
    opacity: 0.7;
}

.cloud5::before {
    width: 350px;
    height: 350px;
    top: -150px;
    left: 100px;
}

.cloud5::after {
    width: 400px;
    height: 400px;
    top: -200px;
    left: 240px;
}

@keyframes cloudFloat {
    0% { transform: translateX(0); }
    100% { transform: translateX(150vw); }
}

@keyframes cloudFloatReverse {
    0% { transform: translateX(0); }
    100% { transform: translateX(-150vw); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Карточки преимуществ */
.feature-card {
    background: var(--card-bg, rgba(255,255,255,0.9));
    backdrop-filter: blur(var(--card-blur, 10px));
    border-radius: 40px;
    padding: 40px 30px;
    height: 100%;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    box-shadow: 0 20px 40px -15px var(--shadow-color, rgba(0,0,0,0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76,178,225,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(76, 178, 225, 0.5);
    box-shadow: 0 30px 60px -15px var(--shadow-color, rgba(0,0,0,0.2));
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 15px 25px rgba(76, 178, 225, 0.3);
    transition: all 0.3s ease;
}

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

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary, #475569);
    line-height: 1.6;
}

/* Секция "Как это работает" */
.steps-section {
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    padding: 80px 0;
    color: white;
    border-radius: 60px 60px 0 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

.step-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card p {
    opacity: 0.9;
}

/* Секция безопасности */
.security-section {
    padding: 80px 0;
}

.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary, #1e293b);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.security-list li:nth-child(1) { animation-delay: 0.1s; }
.security-list li:nth-child(2) { animation-delay: 0.2s; }
.security-list li:nth-child(3) { animation-delay: 0.3s; }

.security-list i {
    color: #4CB2E1;
    font-size: 1.5rem;
    background: rgba(76,178,225,0.1);
    padding: 10px;
    border-radius: 50%;
}

.shield-icon {
    animation: pulse 3s infinite;
}

/* ===== МЕДИА-ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* Общие */
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Облака */
    .cloud {
        transform: scale(0.5);
        opacity: 0.3;
    }

    /* Секция "Как это работает" */
    .steps-section .row {
        gap: 30px;
    }

    .step-card {
        margin-bottom: 30px;
        height: auto;
    }

    .steps-section .col-md-4 {
        margin-bottom: 30px;
    }

    /* Тарифы */
    .plans-title {
        font-size: 2.2rem;
    }

    .plan-card.popular {
        transform: scale(1);
    }

    .plan-card.popular:hover {
        transform: translateY(-10px);
    }

    .period-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .demo-notice {
        border-radius: 20px;
        margin-left: 20px;
        margin-right: 20px;
        padding: 16px 20px;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    /* Страницы аутентификации */
    .auth-card {
        padding: 32px 24px;
        border-radius: 30px;
    }

    .auth-title {
        font-size: 1.8rem;
    }
}

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

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

    .plan-name {
        font-size: 1.8rem;
    }

    .price {
        font-size: 2rem;
    }

    .step-card {
        margin-bottom: 40px;
    }
}

/* Информационное сообщение (для forgot) */
.info-message {
    background: rgba(76, 178, 225, 0.1);
    border-left: 4px solid #4CB2E1;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--text-primary, #1e293b);
    font-size: 0.95rem;
}

/* Отступ для контента под фиксированным навбаром */
.content-offset {
    height: 80px; /* Высота навбара на десктопе */
}

@media (max-width: 768px) {
    .content-offset {
        height: 70px; /* Высота навбара на мобильных */
    }
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ КНОПОК MODERN ===== */
.btn-modern {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    background: transparent;
    color: inherit;
    line-height: 1.2;
    text-align: center;
}

.btn-modern.primary {
    background: white;
    color: #4CB2E1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
}

.btn-modern.outline {
    background: transparent;
    border: 2px solid #4CB2E1;
    color: #4CB2E1;
}

.btn-modern.outline:hover {
    background: #4CB2E1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76,178,225,0.3);
}

/* Усиление стилей для заголовков разделов и текста безопасности */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b) !important;
    margin-bottom: 26px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary, #475569) !important;
    margin-bottom: 48px;
}

.security-list li {
    color: var(--text-primary, #1e293b) !important;
}

.step-card h4 {
    color: white;
}

.step-card p {
    color: rgba(255,255,255,0.9);
}

/* Заголовки разделов на главной */
.main-content .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary, #1e293b);
}

.main-content .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary, #475569);
    margin-bottom: 48px;
    font-weight: 400;
}

/* Увеличение отступа сверху для секции "Наши решения" на главной */
.main-content .features-section {
    padding-top: 100px;
}

/* Принудительные цвета для бейджей Bootstrap */
.badge.bg-primary { background-color: #0d6efd !important; color: #fff !important; }
.badge.bg-success { background-color: #198754 !important; color: #fff !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.badge.bg-danger { background-color: #dc3545 !important; color: #fff !important; }
.badge.bg-info { background-color: #0dcaf0 !important; color: #000 !important; }

/* Стили для бейджа скидки */
.discount-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

/* Популярный бейдж */
.popular-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

/* ===== СТИЛИ ДЛЯ БОНУСНОГО БЛОКА ===== */
.bonus-section {
    background: linear-gradient(135deg, rgba(76, 178, 225, 0.05), rgba(58, 142, 179, 0.08));
    border-radius: 20px;
    padding: 16px;
    margin: 20px 0 15px;
    border: 1px solid rgba(76, 178, 225, 0.2);
    transition: all 0.3s ease;
}

.bonus-section:hover {
    border-color: rgba(76, 178, 225, 0.4);
    background: linear-gradient(135deg, rgba(76, 178, 225, 0.08), rgba(58, 142, 179, 0.12));
}

.bonus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(76, 178, 225, 0.3);
}

.bonus-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.bonus-title i {
    font-size: 1.3rem;
    color: #4CB2E1;
    background: rgba(76, 178, 225, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.bonus-amount {
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(76, 178, 225, 0.3);
}

.bonus-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.bonus-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4CB2E1;
    cursor: pointer;
}

.bonus-toggle-text {
    font-size: 0.95rem;
    color: var(--text-secondary, #475569);
}

.bonus-input-container {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bonus-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(76, 178, 225, 0.2);
    transition: all 0.3s ease;
}

.bonus-input-group:focus-within {
    border-color: #4CB2E1;
    box-shadow: 0 0 0 3px rgba(76, 178, 225, 0.2);
}

.bonus-input-prefix {
    background: rgba(76, 178, 225, 0.1);
    padding: 12px 16px;
    font-weight: 600;
    color: #4CB2E1;
    border-right: 2px solid rgba(76, 178, 225, 0.2);
}

.bonus-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.bonus-input-suffix {
    background: rgba(76, 178, 225, 0.05);
    padding: 12px 16px;
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
    border-left: 2px solid rgba(76, 178, 225, 0.1);
    white-space: nowrap;
}

.bonus-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
    padding: 0 4px;
}

.bonus-hint i {
    color: #4CB2E1;
    font-size: 0.9rem;
}

/* Темная тема */
[data-theme="dark"] .bonus-section {
    background: linear-gradient(135deg, rgba(76, 178, 225, 0.1), rgba(58, 142, 179, 0.15));
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bonus-input-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bonus-input-prefix {
    background: rgba(255, 255, 255, 0.1);
    color: #4CB2E1;
    border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bonus-input {
    color: white;
}

[data-theme="dark"] .bonus-input-suffix {
    background: rgba(255, 255, 255, 0.05);
    color: #adb5bd;
}

/* ===== СЕКЦИЯ НОВОСТЕЙ НА ГЛАВНОЙ ===== */
.news-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 10;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(76, 178, 225, 0.25);
    border-color: rgba(76, 178, 225, 0.4);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image-placeholder {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(76, 178, 225, 0.1), rgba(58, 142, 179, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image-placeholder i {
    font-size: 4rem;
    color: #4CB2E1;
    opacity: 0.5;
}

.news-card-date-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    z-index: 2;
}

.news-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #4CB2E1;
}

.news-card-excerpt {
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-card-link {
    color: #4CB2E1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    align-self: flex-start;
    padding: 8px 0;
}

.news-card-link:hover {
    gap: 12px;
    color: #3A8EB3;
}

.news-card-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.news-card-link:hover i {
    transform: translateX(3px);
}

/* Кнопка "Все новости" */
.btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4CB2E1, #3A8EB3);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(76, 178, 225, 0.4);
    border: none;
    cursor: pointer;
}

.btn-news-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(76, 178, 225, 0.6);
    color: white;
    gap: 16px;
}

.btn-news-all i {
    transition: transform 0.2s ease;
}

.btn-news-all:hover i {
    transform: translateX(4px);
}

/* Пустое состояние */
.empty-news {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
}

.empty-news i {
    font-size: 4rem;
    color: #4CB2E1;
    opacity: 0.5;
    margin-bottom: 20px;
    display: inline-block;
}

.empty-news p {
    color: var(--text-secondary, #475569);
    font-size: 1.1rem;
    margin: 0;
}

/* Темная тема */
[data-theme="dark"] .news-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .news-card:hover {
    border-color: rgba(76, 178, 225, 0.4);
}

[data-theme="dark"] .news-card-excerpt {
    color: #94a3b8;
}

[data-theme="dark"] .empty-news {
    background: rgba(30, 41, 59, 0.8);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 0 60px;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 16px;
    }
    
    .news-card {
        margin: 0;
        width: 100%;
    }
    
    .news-card-image,
    .news-card-image-placeholder {
        height: 180px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .btn-news-all {
        padding: 12px 28px;
        font-size: 0.95rem;
        margin-top: 20px;
    }
}

/* ===== СТРАНИЦА НОВОСТИ (ДЕТАЛЬНАЯ) ===== */
.news-detail-container {
    padding: 40px 0 80px;
    position: relative;
    z-index: 10;
}

/* Хлебные крошки */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #4CB2E1;
}

.breadcrumb-current {
    color: #4CB2E1;
}

.breadcrumb-nav i {
    font-size: 0.8rem;
    color: var(--text-secondary, #475569);
}

/* Карточка новости */
.news-detail-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-detail-card:hover .news-detail-image img {
    transform: scale(1.02);
}

/* Заголовок и мета */
.news-detail-header {
    padding: 32px 40px 0 40px;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.9rem;
}

.meta-item i {
    color: #4CB2E1;
    font-size: 1rem;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    line-height: 1.3;
    margin-bottom: 0;
}

/* Контент */
.news-detail-content {
    padding: 32px 40px;
    color: var(--text-primary, #1e293b);
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-detail-content p {
    margin-bottom: 1.2em;
}

.news-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-primary, #1e293b);
}

.news-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-primary, #1e293b);
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

.news-detail-content li {
    margin-bottom: 0.5em;
}

.news-detail-content blockquote {
    border-left: 4px solid #4CB2E1;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-secondary, #475569);
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
}

/* Футер с шарингом */
.news-detail-footer {
    padding: 24px 40px 40px 40px;
    border-top: 1px solid var(--border-color, rgba(76, 178, 225, 0.2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Кнопка назад */
.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4CB2E1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-to-news:hover {
    gap: 12px;
    color: #3A8EB3;
}

/* Темная тема */
[data-theme="dark"] .news-detail-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .news-detail-title,
[data-theme="dark"] .news-detail-content h2,
[data-theme="dark"] .news-detail-content h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .news-detail-content {
    color: #cbd5e1;
}

[data-theme="dark"] .meta-item {
    color: #94a3b8;
}

[data-theme="dark"] .share-label {
    color: #94a3b8;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 20px 0 60px;
    }
    
    .news-detail-header {
        padding: 24px 24px 0 24px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-content {
        padding: 24px;
        font-size: 1rem;
    }
    
    .news-detail-footer {
        padding: 24px;
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .news-detail-meta {
        gap: 12px;
    }
    
    .news-detail-content h2 {
        font-size: 1.5rem;
    }
    
    .news-detail-content h3 {
        font-size: 1.25rem;
    }
}

/* Кнопки шаринга - чистые иконки */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-label {
    color: var(--text-secondary, #475569);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 4px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary, #475569);
    position: relative;
}

/* Фон при наведении */
.share-btn:hover {
    transform: translateY(-2px);
}

/* Цвета соцсетей при наведении */
.share-btn.telegram:hover {
    background: #26A5E4;
    color: white;
    box-shadow: 0 4px 10px rgba(38, 165, 228, 0.3);
}

.share-btn.vk:hover {
    background: #4C75A3;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 117, 163, 0.3);
}

<!-- Стили для Font Awesome -->
.share-btn.vk i {
    font-size: 1.1rem;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 161, 242, 0.3);
}

.share-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.share-btn.copy-link:hover {
    background: #4CB2E1;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 178, 225, 0.3);
}

/* Активное состояние */
.share-btn:active {
    transform: translateY(0);
}

/* Темная тема */
[data-theme="dark"] .share-btn {
    color: #94a3b8;
}

[data-theme="dark"] .share-btn:hover {
    color: white;
}

/* Адаптация для мобильных - чуть меньше кнопки */
@media (max-width: 768px) {
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .share-buttons {
        gap: 6px;
    }
}

/* Анимация карточки при наведении */
.news-detail-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(76, 178, 225, 0.25);
}

.role-selector-container {
    text-align: center;
}