.home-container {
    width: 100%;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
    padding: 22px 24px 28px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.85) 100%), url('/images/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home-panel {
    width: min(1120px, 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(12,54,102,0.82), rgba(11,46,85,0.72));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(18px);
}

    .home-panel h1 {
        margin: 0 0 18px 0;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        letter-spacing: -0.03em;
    }

.home-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
}

.home-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-card--status {
    margin-bottom: 14px;
}

.home-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.home-card-body {
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
}

.home-link {
    color: #d7efff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .home-link:hover {
        color: #ffffff;
        opacity: 1;
    }

.home-list {
    margin: 0;
    padding-left: 18px;
}

.home-card .home-list {
    max-height: 260px;
    overflow: auto;
}

    .home-card .home-list::-webkit-scrollbar {
        width: 6px;
    }

    .home-card .home-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.18);
        border-radius: 999px;
    }

.home-card-info {
    border-left: 6px solid #4a90e2;
}

.home-card-success {
    border-left: 6px solid #2ecc71;
}

.home-card-warning {
    border-left: 6px solid #f1c40f;
}

.home-card-danger {
    border-left: 6px solid #e74c3c;
}

.home-thumb {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-top: 12px;
    cursor: zoom-in;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

    .home-thumb:hover {
        filter: brightness(1.05);
    }

.home-modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.news-strip {
    margin-top: 26px;
}

.news-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 12px;
}

.news-strip-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.news-strip-controls {
    display: flex;
    gap: 0.55rem;
}

.news-strip-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.18s ease, transform 0.18s ease;
}

    .news-strip-btn:hover {
        background: rgba(255,255,255,0.26);
        transform: translateY(-1px);
    }

.news-strip-track {
    position: relative;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .news-strip-track::-webkit-scrollbar {
        display: none;
    }

.news-tile {
    position: relative;
    flex: 0 0 360px;
    min-width: 300px;
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .news-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    }

.news-tile-click {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: default;
}

.news-tile-clickable {
    cursor: pointer;
}

.news-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-tile-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
}

.news-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    background: linear-gradient(to top, rgba(3,10,18,0.88), rgba(3,10,18,0.34), transparent);
    color: #fff;
}

.news-tile-meta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.86;
    margin-bottom: 0.4rem;
}

.news-tile-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 0.42rem;
    letter-spacing: -0.02em;
}

.news-tile-text {
    font-size: 0.96rem;
    line-height: 1.4;
    opacity: 0.94;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tile-footer {
    padding: 0.95rem 1.1rem 1.05rem;
    background: rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.news-tile-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 4;
    transition: background 0.18s ease, transform 0.18s ease;
}

    .news-tile-zoom:hover {
        background: rgba(0,0,0,0.76);
        transform: scale(1.05);
    }

.home-weather-card {
    min-height: 100%;
}

.home-weather-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.home-weather-main-icon {
    flex: 0 0 auto;
    line-height: 1;
}

.weather-icon {
    display: block;
    object-fit: contain;
}

.weather-icon-lg {
    width: 64px;
    height: 64px;
}

.weather-icon-sm {
    width: 18px;
    height: 18px;
}

.home-weather-main {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 1.25rem;
    margin-top: .75rem;
}

.home-weather-temp {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.home-weather-meta {
    display: grid;
    gap: .5rem;
}

.home-weather-meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.home-weather-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.home-weather-footer {
    margin-top: 1rem;
    display: grid;
    gap: .25rem;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, 0.55);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.cookie-card {
    width: min(900px, 100%);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 18px 18px 14px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.cookie-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(0, 123, 255, 0.12);
    font-size: 20px;
}

.cookie-title {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1rem;
    color: #111827;
}

.cookie-subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 2px;
}

.cookie-body {
    font-size: 0.98rem;
    color: #111827;
    line-height: 1.35rem;
}

.cookie-link {
    margin-left: 8px;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-details {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(0,0,0,0.06);
}

.cookie-details-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.cookie-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .cookie-actions .btn {
        border-radius: 12px;
        padding: 8px 14px;
        font-weight: 700;
    }

@media (max-width: 900px) {
    .home-container {
        padding: 14px 12px 18px 12px;
        background-attachment: scroll;
        background-position: center center;
        min-height: calc(100vh - 60px);
    }

    .home-panel {
        padding: 18px;
        border-radius: 18px;
    }

        .home-panel h1 {
            margin-bottom: 14px;
            font-size: clamp(1.6rem, 6vw, 2.2rem);
        }

    .home-card {
        padding: 14px;
    }

    .home-card-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .home-weather-header {
        gap: .75rem;
        align-items: center;
    }

    .home-weather-main {
        gap: .85rem;
        margin-top: .5rem;
    }

    .home-weather-temp {
        font-size: 1.8rem;
    }

    .home-weather-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem .75rem;
        margin-top: .25rem;
    }

    .home-weather-meta-item {
        gap: .4rem;
        font-size: .92rem;
        align-items: center;
    }

    .home-weather-meta-icon {
        width: 1rem;
        height: 1rem;
    }

    .weather-icon-lg {
        width: 52px;
        height: 52px;
    }

    .weather-icon-sm {
        width: 16px;
        height: 16px;
    }

    .home-weather-footer {
        margin-top: .75rem;
        gap: .2rem;
        font-size: .85rem;
    }

    .news-strip {
        margin-top: 20px;
    }

    .news-strip-title {
        font-size: 1.2rem;
    }

    .news-strip-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .news-tile {
        flex: 0 0 86%;
        min-width: 86%;
        border-radius: 16px;
    }

    .news-tile-click {
        height: 220px;
    }

    .news-tile-title {
        font-size: 1.15rem;
    }

    .news-tile-text {
        font-size: 0.9rem;
    }

    .news-strip-track::before,
    .news-strip-track::after {
        width: 34px;
    }
}

@media (max-width: 576px) {
    .home-container {
        padding: 12px 10px 16px 10px;
    }

    .home-panel {
        padding: 14px;
        border-radius: 14px;
    }

        .home-panel h1 {
            font-size: 1.45rem;
            line-height: 1.1;
            margin-bottom: 12px;
        }

    .home-top-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .home-card {
        padding: 12px;
        border-radius: 14px;
    }

    .home-card-title {
        font-size: 0.95rem;
    }

    .home-card-body {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .home-thumb {
        max-height: 130px;
        margin-top: 10px;
        border-radius: 10px;
    }

    .home-weather-header {
        gap: .6rem;
        align-items: flex-start;
    }

    .home-weather-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: .6rem;
        margin-top: .45rem;
    }

    .home-weather-temp {
        font-size: 1.55rem;
    }

    .home-weather-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .4rem .6rem;
    }

    .home-weather-meta-item {
        gap: .35rem;
        font-size: .85rem;
    }

    .home-weather-meta-icon {
        width: .9rem;
        height: .9rem;
    }

    .weather-icon-lg {
        width: 42px;
        height: 42px;
    }

    .weather-icon-sm {
        width: 14px;
        height: 14px;
    }

    .home-weather-footer {
        margin-top: .6rem;
        font-size: .78rem;
    }

    .news-strip {
        margin-top: 18px;
    }

    .news-strip-header {
        margin-bottom: 10px;
    }

    .news-strip-title {
        font-size: 1.05rem;
    }

    .news-strip-controls {
        gap: .35rem;
    }

    .news-strip-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .news-tile {
        flex: 0 0 92%;
        min-width: 92%;
        border-radius: 14px;
    }

    .news-tile-click {
        height: 190px;
    }

    .news-tile-overlay {
        padding: .85rem;
    }

    .news-tile-meta {
        font-size: 0.72rem;
        margin-bottom: .3rem;
    }

    .news-tile-title {
        font-size: 1rem;
        margin-bottom: .3rem;
    }

    .news-tile-text {
        font-size: 0.84rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-tile-footer {
        padding: .75rem .85rem .85rem;
    }

    .news-tile-zoom {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }

    .cookie-overlay {
        align-items: flex-end;
    }

    .cookie-card {
        padding: 14px 14px 12px 14px;
        border-radius: 14px;
    }

    .cookie-title {
        font-size: 1rem;
    }

    .cookie-subtitle,
    .cookie-body {
        font-size: 0.88rem;
    }

    .cookie-actions {
        justify-content: stretch;
    }

        .cookie-actions .btn {
            flex: 1;
        }
}

@media (max-width: 380px) {
    .home-panel {
        padding: 12px;
    }

    .home-card {
        padding: 10px;
    }

    .home-panel h1 {
        font-size: 1.3rem;
    }

    .home-weather-temp {
        font-size: 1.35rem;
    }

    .home-weather-meta {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .home-weather-meta-item {
        font-size: 0.8rem;
    }

    .weather-icon-lg {
        width: 36px;
        height: 36px;
    }

    .news-tile-click {
        height: 170px;
    }

    .news-tile-title {
        font-size: 0.95rem;
    }

    .news-tile-text {
        font-size: 0.8rem;
    }
}
