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

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #08111f;
}

body.home-page {
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #f7f9fc;
}

.fullscreen-container {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.fullscreen-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(4, 11, 25, 0.78) 0%, rgba(8, 17, 31, 0.48) 45%, rgba(8, 17, 31, 0.82) 100%),
        radial-gradient(circle at 18% 22%, rgba(73, 127, 255, 0.28) 0%, transparent 36%),
        radial-gradient(circle at 86% 78%, rgba(84, 201, 255, 0.18) 0%, transparent 26%);
    z-index: 1;
}

.fullscreen-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.home-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 32px 220px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 48px;
}

.home-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 720px;
    align-self: center;
}

.home-copy-block {
    display: grid;
    gap: 22px;
    max-width: 780px;
    padding: 24px 0 0;
}

.home-title {
    max-width: 8ch;
    font-size: clamp(4rem, 8vw, 7.2rem);
    line-height: 0.84;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-wrap: balance;
    color: #ffffff;
    text-shadow:
        0 24px 54px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(103, 177, 255, 0.12);
}

.home-description {
    max-width: max-content;
    font-size: clamp(1.08rem, 1.4vw, 1.34rem);
    line-height: 1.82;
    letter-spacing: 0.015em;
    color: rgba(247, 249, 252, 0.88);
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    white-space: nowrap;
}

.button-with-info {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100vw - 36px), 560px);
    z-index: 20;
    display: block;
}

.news-wrapper {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    align-self: end;
}

.news-container {
    position: relative;
    width: 100%;
    min-height: 144px;
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(11, 18, 34, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(3, 10, 24, 0.28);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-container:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 181, 255, 0.36);
    box-shadow: 0 28px 68px rgba(3, 10, 24, 0.35);
}

.news-image {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.news-time {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 239, 255, 0.58);
}

.news-text {
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(247, 249, 252, 0.82);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-indicators {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px 0;
}

.news-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.news-indicator.active {
    width: 24px;
    background: #ffffff;
}

.news-indicator:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.78);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.fade-in {
    animation: fadeIn 0.8s ease both;
}

@media (max-width: 980px) {
    .home-wrapper {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 34px;
        padding-top: 120px;
        padding-bottom: 210px;
    }

    .news-wrapper {
        justify-self: start;
        max-width: 560px;
    }

    .home-copy-block {
        max-width: 640px;
        gap: 18px;
        padding-top: 14px;
    }

    .home-title {
        max-width: 8.5ch;
        font-size: clamp(3.4rem, 11vw, 5.4rem);
    }

    .home-description {
        max-width: max-content;
        font-size: 1.04rem;
        line-height: 1.78;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .home-wrapper {
        padding: 112px 18px 190px;
        gap: 28px;
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: stretch;
    }

    .home-info {
        gap: 16px;
        min-height: calc(100svh - 340px);
        justify-content: center;
    }

    .home-copy-block {
        gap: 16px;
        padding-top: 0;
    }

    .home-title {
        max-width: none;
        font-size: clamp(2.9rem, 13vw, 4.2rem);
        line-height: 0.94;
        letter-spacing: -0.055em;
    }

    .home-description {
        max-width: max-content;
        font-size: clamp(0.74rem, 3.4vw, 0.98rem);
        line-height: 1.4;
        letter-spacing: -0.01em;
        color: rgba(247, 249, 252, 0.82);
        white-space: nowrap;
    }

    .button-with-info {
        width: min(calc(100vw - 28px), 560px);
    }

    .news-wrapper {
        max-width: none;
    }

    .button-with-info {
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .news-container {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 14px;
        gap: 14px;
    }

    .news-image {
        min-height: 160px;
    }

    .news-indicators {
        justify-content: center;
    }
}
