/* apps/main/assets/css/home.css */

/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */

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

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   ГЕРОЙ СЕКЦИЯ
   ============================================================ */

.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    border-radius: 20px;
    margin: 20px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(52, 152, 219, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(231, 76, 60, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 25px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.badge-pulse {
    color: #2ecc71;
    animation: pulse 2s infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
    transform: translateY(-2px);
}

/* ============================================================
   СЕКЦИЯ ВОЗМОЖНОСТЕЙ
   ============================================================ */

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

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    padding: 4px 0;
}

.feature-list li i {
    color: #2ecc71;
    font-size: 14px;
}

/* ============================================================
   СЕКЦИЯ ПОДРОБНОГО ФУНКЦИОНАЛА
   ============================================================ */

.details-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 40px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.detail-item {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.detail-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.detail-item p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
}

/* ============================================================
   СЕКЦИЯ БЛОГА
   ============================================================ */

.blog-preview-section {
    padding: 60px 0;
}

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

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: #f0f2f5;
}

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

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

.blog-card-body {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #95a5a6;
}

.blog-card-date i {
    margin-right: 4px;
}

.blog-card-category {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3498db;
}

.blog-card-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    gap: 14px;
}

.blog-preview-footer {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   CTA СЕКЦИЯ - ИСПРАВЛЕНА
   ============================================================ */

.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    margin: 40px 0 20px;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text {
    flex: 1;
    min-width: 280px;
}

.cta-text h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ============================================================
   АДАПТИВНОСТЬ CTA
   ============================================================ */

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px;
        margin: 30px 0 15px;
        border-radius: 16px;
    }
    
    .cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .cta-text {
        min-width: auto;
        width: 100%;
    }
    
    .cta-text h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .cta-text p {
        font-size: 16px;
        max-width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 30px 15px;
        margin: 20px 0 10px;
        border-radius: 12px;
    }
    
    .cta-text h2 {
        font-size: 20px;
    }
    
    .cta-text p {
        font-size: 14px;
    }
    
    .cta-actions {
        gap: 10px;
    }
    
    .cta-actions .btn {
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 15px 40px;
        margin: 10px 0 40px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .detail-item {
        padding: 20px;
    }
}

/* Дополнительные стили для кнопок в CTA блоке */
.cta-actions .btn {
    min-width: 200px;
}

.cta-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.cta-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.cta-actions .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}


/* ============================================================
   МОДАЛЬНОЕ ОКНО ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ============================================================ */

.privacy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.privacy-modal-overlay.active {
    display: flex;
}

.privacy-modal {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Шапка модального окна */
.privacy-modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 30px 30px 20px;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.privacy-modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.privacy-modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.privacy-modal-subtitle {
    font-size: 15px;
    opacity: 0.8;
}

.privacy-modal-version {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Тело модального окна */
.privacy-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 4px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #f0f2f5;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.privacy-modal-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}

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

.privacy-modal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.privacy-modal-section p {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 8px;
}

.privacy-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 10px;
}

.privacy-modal-section ul li {
    position: relative;
    padding: 4px 0 4px 24px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.privacy-modal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
}

.privacy-modal-highlight {
    background: #f0f7ff;
    border-left: 3px solid #3498db;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

.privacy-modal-highlight p {
    margin: 0;
    color: #2c3e50;
}

.privacy-modal-warning {
    background: #fff8e6;
    border-left: 3px solid #f39c12;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

.privacy-modal-warning p {
    margin: 0;
    color: #856404;
}

/* ===== ПОДВАЛ МОДАЛЬНОГО ОКНА - ИСПРАВЛЕНО ===== */
.privacy-modal-footer {
    padding: 18px 30px 22px;
    background: #f8f9fa;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.privacy-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.privacy-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.privacy-modal-btn-secondary {
    padding: 12px 28px;
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.privacy-modal-btn-secondary:hover {
    background: #f0f0f0;
}

/* ===== АДАПТИВНОСТЬ МОДАЛЬНОГО ОКНА ===== */
@media (max-width: 768px) {
    .privacy-modal {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .privacy-modal-header {
        padding: 25px 20px 18px;
    }
    
    .privacy-modal-header h2 {
        font-size: 22px;
    }
    
    .privacy-modal-icon {
        font-size: 40px;
    }
    
    .privacy-modal-body {
        padding: 20px;
    }
    
    .privacy-modal-footer {
        padding: 15px 20px 20px;
        gap: 10px;
    }
    
    .privacy-modal-btn,
    .privacy-modal-btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .privacy-modal-overlay {
        padding: 10px;
    }
    
    .privacy-modal {
        border-radius: 12px;
        max-height: 98vh;
    }
    
    .privacy-modal-header {
        padding: 20px 15px 15px;
    }
    
    .privacy-modal-header h2 {
        font-size: 18px;
    }
    
    .privacy-modal-icon {
        font-size: 32px;
    }
    
    .privacy-modal-body {
        padding: 15px;
    }
    
    .privacy-modal-footer {
        padding: 12px 15px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .privacy-modal-btn,
    .privacy-modal-btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        flex: none;
        min-width: auto;
        justify-content: center;
    }
    
    .privacy-modal-section h3 {
        font-size: 14px;
    }
    
    .privacy-modal-section p,
    .privacy-modal-section ul li {
        font-size: 13px;
    }
}

/* ============================================================
   КНОПКА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ В CTA БЛОКЕ
   ============================================================ */

.cta-policy-wrapper {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.cta-policy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cta-policy-btn i {
    font-size: 15px;
    color: #3498db;
}

.cta-policy-btn:hover i {
    color: #5dade2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cta-policy-wrapper {
        margin-top: 20px;
        padding-top: 18px;
    }
    
    .cta-policy-btn {
        padding: 8px 20px;
        font-size: 13px;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .cta-policy-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
}