/* ======================
   КРИТИЧЕСКИЕ СТИЛИ (Above the Fold)
   ====================== */

/* Базовые сбросы и типографика */
:root {
    --header-height: 100px;
    --header-height-mobile: 70px;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #2c3e50;
    background: #fff;
}

/* Фиксированная шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgb(4, 80, 160);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Логотип */
.logo__img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

/* Первый слайд */
.top__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 120px;
}

.top__item-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.top__item-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Заголовки секций */
.section-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Скелетоны для изображений */
img:not([src]) {
    background: linear-gradient(110deg, #f5f5f5 8%, #eee 18%, #f5f5f5 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Медиа-запросы для первого экрана */
@media (max-width: 1024px) {
    .top__item {
        grid-template-columns: 1fr;
        padding-top: 90px;
    }

    .top__item-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        height: var(--header-height-mobile);
    }

    .logo__img {
        height: 60px;
    }
}