/* MIC-213: above-the-fold homepage (header + editor-picks hero). Blocking on home only; full styles.css stays deferred. */

:root {
    --White-light: #ffffff;
    --Surface-light: #f8f7f7;
    --Line: #e9e9e9;
    --On-surface: #161616;
}

#wrapper {
    background-color: var(--White-light);
    overflow-x: clip;
}

.tf-container {
    max-width: 1830px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-top: 0 !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Stack columns on mobile before deferred bootstrap.css */
@media (max-width: 991.98px) {
    .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }

    .section-editor-pick .wrap {
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .section-editor-pick .wrap {
        gap: 0;
    }
}

.bg-surface-color {
    background-color: var(--Surface-light);
}

.topbar {
    padding-top: 35px;
    padding-bottom: 35px;
}

.site-logo {
    max-width: 193px;
}

.site-logo img,
.main-logo {
    width: 100%;
    height: auto;
    display: block;
}

.tf-spacing-1 {
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    .tf-spacing-1 {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.feature-post-item {
    position: relative;
}

.feature-post-item .img-style {
    position: relative;
    border-radius: 12px;
}

.hover-image-translate .img-style {
    overflow: hidden;
}

.feature-post-item .img-style > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

/* MIC-213: отложить layout/paint секций ниже fold */
.section-our-best,
.section-latest-news {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}
