﻿/* ============================================================
   WELCOME / ГЛАВНАЯ СТРАНИЦА
   Hero, Как это работает, Слайдер, Пазл, Шапка лендинга
   (Тарифы — стили в site.css)
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative;
    margin: 0 0 64px 0;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.08) 0%, rgba(125, 154, 184, 0.02) 50%, rgba(76, 175, 132, 0.06) 100%);
    border-radius: 24px;
    overflow: hidden;
}

    .hero-section::before,
    .hero-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.3;
        pointer-events: none;
    }

    .hero-section::before {
        width: 280px;
        height: 280px;
        background: var(--color-submit-btn-bg);
        top: -100px;
        right: -100px;
    }

    .hero-section::after {
        width: 220px;
        height: 220px;
        background: var(--color-task-options-accent);
        bottom: -80px;
        left: -80px;
    }

.hero-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hero-image:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.hero-image-placeholder {
    background: var(--color-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-link);
    font-size: 14px;
}

.hero-text {
    font-size: 16px;
    color: var(--color-html-text);
    line-height: 1.6;
}

    .hero-text h1, .hero-text h2, .hero-text h3 {
        color: var(--color-header);
        margin-top: 0;
    }

    .hero-text p {
        margin: 0 0 12px 0;
    }

        .hero-text p:last-child {
            margin-bottom: 0;
        }

/* ============================================================
   КНОПКИ HERO
   ============================================================ */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    min-width: 180px;
}

.hero-btn-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--color-submit-btn-bg) 0%, var(--color-focus-border) 100%);
    color: var(--color-submit-btn-text);
    box-shadow: 0 4px 14px rgba(125, 154, 184, 0.35);
    border: 2px solid transparent;
}

    .hero-btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
        transition: left 0.6s ease;
    }

    .hero-btn-primary:hover::before {
        left: 100%;
    }

    .hero-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(125, 154, 184, 0.45);
        color: var(--color-submit-btn-text);
        text-decoration: none;
    }

        .hero-btn-primary:hover .hero-btn-icon {
            transform: translateX(4px);
        }

    .hero-btn-primary:active {
        transform: translateY(-1px);
    }

    .hero-btn-primary::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 14px;
        border: 2px solid var(--color-submit-btn-bg);
        opacity: 0;
        animation: heroBtnPulse 2.5s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes heroBtnPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.06);
    }
}

.hero-btn-secondary {
    background: var(--color-card-bg);
    color: var(--color-header);
    border: 2px solid var(--color-card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .hero-btn-secondary:hover {
        transform: translateY(-3px);
        border-color: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-bg);
        background: var(--color-card-bg);
        box-shadow: 0 6px 20px rgba(125, 154, 184, 0.15);
        text-decoration: none;
    }

        .hero-btn-secondary:hover .hero-btn-icon {
            transform: translateX(4px);
        }

    .hero-btn-secondary:active {
        transform: translateY(-1px);
    }

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.how-section {
    position: relative;
    margin: 64px 0;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.06) 0%, rgba(125, 154, 184, 0.02) 50%, rgba(76, 175, 132, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
}

    .how-section::before,
    .how-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
        pointer-events: none;
    }

    .how-section::before {
        width: 240px;
        height: 240px;
        background: var(--color-submit-btn-bg);
        top: -80px;
        left: -80px;
    }

    .how-section::after {
        width: 200px;
        height: 200px;
        background: var(--color-task-options-accent);
        bottom: -60px;
        right: -60px;
    }

.how-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.how-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.how-subtitle {
    font-size: 16px;
    color: var(--color-link);
    margin: 0;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

    .how-steps::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 16.66%;
        right: 16.66%;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--color-card-border) 0, var(--color-card-border) 8px, transparent 8px, transparent 16px);
        z-index: 0;
    }

.how-card {
    position: relative;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 32px 20px 24px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .how-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-color: var(--color-submit-btn-bg);
    }

.how-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.1), rgba(76, 175, 132, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.how-card:hover .how-card-glow {
    opacity: 1;
}

.how-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-submit-btn-bg), var(--color-focus-border));
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(125, 154, 184, 0.25);
    transition: transform 0.3s ease;
}

.how-card:hover .how-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.how-card-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-submit-btn-bg);
    opacity: 0;
    animation: howPulse 3s ease-in-out infinite;
}

.how-card:nth-child(1) .how-card-icon::before {
    animation-delay: 0s;
}

.how-card:nth-child(2) .how-card-icon::before {
    animation-delay: 0.5s;
}

.how-card:nth-child(3) .how-card-icon::before {
    animation-delay: 1s;
}

@keyframes howPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

.how-emoji {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.how-card-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-card-border);
    line-height: 1;
    opacity: 0.5;
}

.how-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.how-card-text {
    font-size: 14px;
    color: var(--color-link);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   БЛОК АННОНСОВ (карусель)
   ============================================================ */
.announce-section {
    position: relative;
    margin: 64px 0;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.04) 0%, rgba(125, 154, 184, 0.01) 50%, rgba(76, 175, 132, 0.04) 100%);
    border-radius: 24px;
    overflow: hidden;
}

    .announce-section::before {
        content: '';
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(125, 154, 184, 0.12) 0%, transparent 70%);
        pointer-events: none;
        filter: blur(40px);
        opacity: 0.5;
    }

.announce-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.announce-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.announce-subtitle {
    font-size: 16px;
    color: var(--color-link);
    margin: 0;
}

.announce-carousel {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .announce-carousel .carousel-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        background: var(--color-card-bg);
        border: 1px solid var(--color-card-border);
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

        .announce-carousel .carousel-wrapper:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    min-height: 220px;
    background: var(--color-card-bg);
    box-sizing: border-box;
}

    .carousel-slide .slide-image {
        flex: 0 0 40%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 220px;
        background-color: var(--color-input-bg);
        position: relative;
    }

        .carousel-slide .slide-image::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 60px;
            background: linear-gradient(90deg, transparent 0%, var(--color-card-bg) 100%);
            pointer-events: none;
        }

    .carousel-slide .slide-content {
        flex: 1;
        padding: 32px 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: var(--color-card-bg);
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

        .carousel-slide .slide-content h3 {
            font-size: 22px;
            font-weight: 700;
            color: var(--color-header);
            margin: 0 0 12px 0;
            line-height: 1.3;
            letter-spacing: -0.3px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .carousel-slide .slide-content p {
            font-size: 15px;
            color: var(--color-link);
            line-height: 1.5;
            margin: 0 0 16px 0;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .carousel-slide .slide-content .btn-link {
            color: var(--color-submit-btn-bg);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.2s, color 0.2s;
            align-self: flex-start;
            white-space: nowrap;
            padding: 8px 0;
            border-bottom: 1px dotted transparent;
        }

            .carousel-slide .slide-content .btn-link::after {
                content: '→';
                font-size: 14px;
                transition: transform 0.2s ease;
            }

            .carousel-slide .slide-content .btn-link:hover {
                gap: 10px;
                border-bottom-color: var(--color-submit-btn-bg);
                color: var(--color-focus-border);
            }

                .carousel-slide .slide-content .btn-link:hover::after {
                    transform: translateX(4px);
                }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-card-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .carousel-dot:hover {
        border-color: var(--color-submit-btn-bg);
        transform: scale(1.2);
    }

    .carousel-dot.active {
        background: var(--color-submit-btn-bg);
        border-color: var(--color-submit-btn-bg);
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(125, 154, 184, 0.4);
    }

/* ============================================================
   БЛОК-ПАЗЛ (3×2, квадраты)
   ============================================================ */
.puzzle-section {
    position: relative;
    margin: 64px 0;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.06) 0%, rgba(125, 154, 184, 0.02) 50%, rgba(76, 175, 132, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
}

    .puzzle-section::before,
    .puzzle-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
        pointer-events: none;
    }

    .puzzle-section::before {
        width: 240px;
        height: 240px;
        background: var(--color-submit-btn-bg);
        top: -80px;
        right: -80px;
    }

    .puzzle-section::after {
        width: 200px;
        height: 200px;
        background: var(--color-task-options-accent);
        bottom: -60px;
        left: -60px;
    }

.puzzle-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.puzzle-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.puzzle-subtitle {
    font-size: 16px;
    color: var(--color-link);
    margin: 0;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.puzzle-card {
    position: relative;
    overflow: hidden;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: default;
    will-change: transform;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 0;
}

    .puzzle-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    .puzzle-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        transition: opacity 1s ease;
    }

.puzzle-card-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 0.8rem 1.4rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: normal;
    max-width: 85%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 2;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .puzzle-card-label.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

.puzzle-card:hover .puzzle-card-label {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ============================================================
   АДАПТИВНОСТЬ (без тарифов)
   ============================================================ */
@media (max-width: 900px) {
    .hero-section {
        padding: 32px 16px;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-header {
        margin-bottom: 28px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 480px;
    }

        .how-steps::before {
            display: none;
        }

    .how-section, .announce-section, .puzzle-section {
        padding: 32px 16px;
        margin: 40px 0;
    }

    .how-title, .announce-title, .puzzle-title {
        font-size: 26px;
    }

    .how-header, .announce-header, .puzzle-header {
        margin-bottom: 32px;
    }

    .carousel-slide {
        flex-direction: column;
        min-height: auto;
    }

        .carousel-slide .slide-image {
            flex: 0 0 180px;
            min-height: 180px;
            order: -1;
        }

            .carousel-slide .slide-image::after {
                display: none;
            }

        .carousel-slide .slide-content {
            padding: 24px 28px;
        }

            .carousel-slide .slide-content h3 {
                font-size: 20px;
            }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        min-width: 0;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-btn-icon {
        font-size: 16px;
    }

    .how-title, .announce-title, .puzzle-title {
        font-size: 22px;
    }

    .how-subtitle, .announce-subtitle, .puzzle-subtitle {
        font-size: 14px;
    }

    .how-card {
        padding: 24px 16px 20px;
    }

    .how-card-icon {
        width: 64px;
        height: 64px;
    }

    .how-emoji {
        font-size: 28px;
    }

    .how-card-number {
        font-size: 28px;
        top: 12px;
        right: 16px;
    }

    .puzzle-grid {
        gap: 8px;
    }

    .puzzle-card {
        border-radius: 12px;
    }

    .puzzle-card-label {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
        border-radius: 8px;
    }

    .carousel-slide .slide-image {
        flex: 0 0 150px;
        min-height: 150px;
    }

    .carousel-slide .slide-content {
        padding: 18px 20px;
    }

        .carousel-slide .slide-content h3 {
            font-size: 17px;
        }

        .carousel-slide .slide-content p {
            font-size: 14px;
            -webkit-line-clamp: 2;
        }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 400px) {
    .puzzle-grid {
        gap: 6px;
    }

    .puzzle-card {
        border-radius: 10px;
    }

    .puzzle-card-label {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
}

/* ============================================================
   ТЁМНАЯ ТЕМА (без тарифов)
   ============================================================ */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(90, 123, 156, 0.1) 0%, rgba(90, 123, 156, 0.03) 50%, rgba(76, 175, 132, 0.07) 100%);
}

[data-bs-theme="dark"] .hero-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

    [data-bs-theme="dark"] .hero-image:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

[data-bs-theme="dark"] .hero-btn-primary {
    box-shadow: 0 4px 14px rgba(90, 123, 156, 0.4);
}

    [data-bs-theme="dark"] .hero-btn-primary:hover {
        box-shadow: 0 8px 24px rgba(90, 123, 156, 0.55);
    }

[data-bs-theme="dark"] .hero-btn-secondary {
    background: var(--color-card-bg);
    border-color: var(--color-card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    [data-bs-theme="dark"] .hero-btn-secondary:hover {
        border-color: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-bg);
        box-shadow: 0 6px 20px rgba(90, 123, 156, 0.25);
    }

[data-bs-theme="dark"] .how-section {
    background: linear-gradient(135deg, rgba(90, 123, 156, 0.08) 0%, rgba(90, 123, 156, 0.02) 50%, rgba(76, 175, 132, 0.06) 100%);
}

[data-bs-theme="dark"] .how-card {
    background: var(--color-card-bg);
    border-color: var(--color-card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    [data-bs-theme="dark"] .how-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

[data-bs-theme="dark"] .how-card-icon {
    box-shadow: 0 4px 14px rgba(90, 123, 156, 0.4);
}

[data-bs-theme="dark"] .how-card-number {
    color: var(--color-card-border);
    opacity: 0.7;
}

[data-bs-theme="dark"] .announce-section {
    background: linear-gradient(135deg, rgba(90, 123, 156, 0.06) 0%, rgba(90, 123, 156, 0.01) 50%, rgba(76, 175, 132, 0.05) 100%);
}

[data-bs-theme="dark"] .announce-carousel .carousel-wrapper {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

    [data-bs-theme="dark"] .announce-carousel .carousel-wrapper:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

[data-bs-theme="dark"] .carousel-dot.active {
    box-shadow: 0 0 8px rgba(109, 141, 176, 0.5);
}

[data-bs-theme="dark"] .puzzle-section {
    background: linear-gradient(135deg, rgba(90, 123, 156, 0.08) 0%, rgba(90, 123, 156, 0.02) 50%, rgba(76, 175, 132, 0.06) 100%);
}

[data-bs-theme="dark"] .puzzle-card {
    background: var(--color-card-bg);
    border-color: var(--color-card-border);
}

    [data-bs-theme="dark"] .puzzle-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

/* ============================================================
   ШАПКА ЛЕНДИНГА
   ============================================================ */
.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-header);
    letter-spacing: -0.5px;
    transition: color 0.2s;
}

.landing-nav-logo:hover .landing-nav-logo-text {
    color: var(--color-submit-btn-bg);
}

.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.landing-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-link);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

    .landing-nav-link:hover {
        color: var(--color-submit-btn-bg);
        background: rgba(125, 154, 184, 0.08);
        text-decoration: none;
    }

    .landing-nav-link .icon {
        font-size: 14px;
        opacity: 0.7;
    }

.landing-nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.landing-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.landing-nav-btn-secondary {
    color: var(--color-header);
    background: transparent;
    border: 1.5px solid var(--color-card-border);
}

    .landing-nav-btn-secondary:hover {
        border-color: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-bg);
        text-decoration: none;
    }

.landing-nav-btn-primary {
    color: var(--color-submit-btn-text);
    background: linear-gradient(135deg, var(--color-submit-btn-bg) 0%, var(--color-focus-border) 100%);
    border: 1.5px solid transparent;
    box-shadow: 0 4px 14px rgba(125, 154, 184, 0.3);
}

    .landing-nav-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(125, 154, 184, 0.45);
        color: var(--color-submit-btn-text);
        text-decoration: none;
    }

.landing-nav-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    color: var(--color-header);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

    .landing-nav-toggler:hover {
        border-color: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-bg);
    }

.landing-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: var(--color-card-bg);
    border-top: 1px solid var(--color-card-border);
}

    .landing-nav-mobile.open {
        display: flex;
    }

.landing-nav-mobile-link {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-header);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

    .landing-nav-mobile-link:hover {
        background: rgba(125, 154, 184, 0.08);
        color: var(--color-submit-btn-bg);
        text-decoration: none;
    }

.landing-nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-card-border);
}

    .landing-nav-mobile-auth .landing-nav-btn {
        width: 100%;
    }

@media (max-width: 900px) {
    .landing-nav-menu {
        display: none;
    }

    .landing-nav-toggler {
        display: flex;
    }

    .landing-nav-auth {
        display: none;
    }
}

@media (max-width: 576px) {
    .landing-nav-container {
        padding: 10px 16px;
    }

    .landing-nav-logo-text {
        font-size: 17px;
    }
}

/* ============================================================
   ОБРАМЛЕНИЕ ВОКРУГ ТАРИФОВ
   ============================================================ */

.tariffs-section {
    position: relative;
    margin: 64px 0;
    padding: 56px 24px;
    background: linear-gradient(180deg, rgba(125, 154, 184, 0.05) 0%, rgba(125, 154, 184, 0.02) 50%, transparent 100%);
    border: 1px solid var(--color-card-border);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

    .tariffs-section::before {
        content: '';
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(125, 154, 184, 0.15) 0%, transparent 70%);
        pointer-events: none;
        filter: blur(40px);
        opacity: 0.5;
    }

.tariffs-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.tariffs-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.tariffs-subtitle {
    font-size: 16px;
    color: var(--color-link);
    margin: 0;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.tariffs-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tariffs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-submit-btn-bg);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px dashed var(--color-submit-btn-bg);
    transition: all 0.2s ease;
}

    .tariffs-link:hover {
        background: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-text);
        border-style: solid;
        transform: translateY(-2px);
    }

@media (max-width: 900px) {
    .tariffs-section {
        padding: 32px 16px;
        margin: 40px 0;
    }

    .tariffs-title {
        font-size: 26px;
    }

    .tariffs-header {
        margin-bottom: 32px;
    }

    .tariffs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .tariffs-title {
        font-size: 22px;
    }

    .tariffs-subtitle {
        font-size: 14px;
    }
}

[data-bs-theme="dark"] .tariffs-section {
    background: linear-gradient(180deg, rgba(90, 123, 156, 0.08) 0%, rgba(90, 123, 156, 0.03) 50%, transparent 100%);
    border-color: var(--color-card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}



/* ============================================================
   БЛОК НОВОСТЕЙ (список из 2 новостей)
   ============================================================ */
.news-section {
    position: relative;
    margin: 64px 0;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(125, 154, 184, 0.06) 0%, rgba(125, 154, 184, 0.02) 50%, rgba(76, 175, 132, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
}

    .news-section::before,
    .news-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
        pointer-events: none;
    }

    .news-section::before {
        width: 240px;
        height: 240px;
        background: var(--color-submit-btn-bg);
        top: -80px;
        right: -80px;
    }

    .news-section::after {
        width: 200px;
        height: 200px;
        background: var(--color-task-options-accent);
        bottom: -60px;
        left: -60px;
    }

.news-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.news-subtitle {
    font-size: 16px;
    color: var(--color-link);
    margin: 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-color: var(--color-submit-btn-bg);
    }

.news-card-image-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-input-bg);
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 24px 24px;
}

.news-card-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-link);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-header);
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .news-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .news-card-title a:hover {
            color: var(--color-submit-btn-bg);
        }

.news-card-description {
    font-size: 14px;
    color: var(--color-link);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-submit-btn-bg);
    text-decoration: none;
    align-self: flex-start;
    padding: 6px 0;
    border-bottom: 1px dotted transparent;
    transition: gap 0.2s, color 0.2s, border-color 0.2s;
    margin-top: auto;
}

    .news-card-link::after {
        content: '→';
        font-size: 14px;
        transition: transform 0.2s ease;
    }

    .news-card-link:hover {
        gap: 10px;
        color: var(--color-focus-border);
        border-bottom-color: var(--color-submit-btn-bg);
    }

        .news-card-link:hover::after {
            transform: translateX(4px);
        }

.news-footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-submit-btn-bg);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px dashed var(--color-submit-btn-bg);
    transition: all 0.2s ease;
}

    .news-link:hover {
        background: var(--color-submit-btn-bg);
        color: var(--color-submit-btn-text);
        border-style: solid;
        transform: translateY(-2px);
    }

/* ---------- Адаптивность ---------- */
@media (max-width: 900px) {
    .news-section {
        padding: 32px 16px;
        margin: 40px 0;
    }

    .news-title {
        font-size: 26px;
    }

    .news-header {
        margin-bottom: 32px;
    }

    .news-list {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 22px;
    }

    .news-subtitle {
        font-size: 14px;
    }

    .news-card-body {
        padding: 16px 18px 20px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-card-image {
        aspect-ratio: 16 / 10;
    }
}

/* ---------- Тёмная тема ---------- */
[data-bs-theme="dark"] .news-section {
    background: linear-gradient(135deg, rgba(90, 123, 156, 0.08) 0%, rgba(90, 123, 156, 0.02) 50%, rgba(76, 175, 132, 0.06) 100%);
}

[data-bs-theme="dark"] .news-card {
    background: var(--color-card-bg);
    border-color: var(--color-card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    [data-bs-theme="dark"] .news-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }