/* res/css/index.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #191919;
    line-height: 1.3;
    letter-spacing: 0.8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Фиксированный прозрачный header → зелёный при скролле */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background-color: rgba(93, 145, 95, 0);
    backdrop-filter: blur(10px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background-color: #5D915F;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__nav {
    display: flex;
    gap: 25px;
}

.header__icon {
    height: 32px;
    width: auto;
    transition: transform 0.3s;
}

.header__icon:hover {
    transform: scale(1.1);
}

.header__logo img {
    height: 48px;
}

/* Frame 1 — разделён на две половины */
.frame-1 {
    height: 100vh;
    background: url('../imgs/bg-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.frame-1__grid {
    display: flex;
    width: 100%;
    height: 100%;
}

.frame-1__left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 130px;
}

.frame-1__right {
    flex: 1;
}

.frame-1__content {
    max-width: 700px;
}

.frame-1__title {
    font-size: 110px;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    line-height: 1;
}

.frame-1__subtitle {
    font-size: 30px;
    margin-top: 15px;
    color: #ACACAC;
    font-weight: 500;
    line-height: 1.2;
}

/* Цвета */
.green { color: #5D915F; }
.white { color: #FFFFFF; }
.gray { color: #ACACAC; }

/* Frame 2 — обновлённые стили */
.frame-2 {
    padding: 120px 0;
    background-color: #191919;
}

.frame-2__container {
    display: flex;
    align-items: center;
    gap: 40px; /* Больше пространства между изображением и текстом */
}

.frame-2__image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.frame-2__image img {
    max-width: 80%; /* Уменьшено изображение */
    height: auto;
}

.frame-2__text {
    flex: 4;
    text-align: right;
    font-size: 26px; /* Увеличен размер текста */
    line-height: 1; /* Растянуты строки (больше межстрочный интервал) */
}

.frame-2__text p {
    max-width: 900px; /* Текст занимает больше ширины, чтобы строк было меньше */
    margin-left: auto;
}

/* Анимация плавания */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

/* Frame 3 — полное изображение */
.frame-3 {
    width: 100%;
    overflow: hidden;
}

.frame-3__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Frame 4 — контактная секция */
.frame-4 {
    padding: 100px 0;
    background-color: #191919;
    text-align: center;
}

.frame-4__title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.3;
}

.frame-4__links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.frame-4__link img {
    height: 55px;
    transition: transform 0.3s;
}

.frame-4__link img:hover {
    transform: scale(1.15);
}

.frame-4__terms {
    font-size: 24px;
    color: #5D915F;
    text-decoration: underline;
}

.frame-4__terms:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 25px 0;
    background-color: #5D915F;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__logo {
    height: 40px;
}

.footer__text {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 500;
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 968px) {
    .frame-2__container {
        flex-direction: column;
        gap: 50px;
    }

    .frame-2__image img {
        max-width: 60%;
    }

    .frame-2__text {
        text-align: center;
        font-size: 26px;
    }

    .frame-2__text p {
        margin: 0 auto;
        max-width: 90%;
    }

    .frame-1__left {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
        text-align: center;
    }

    .frame-1__right {
        display: none;
    }

    .frame-1__title {
        font-size: 70px;
        letter-spacing: 6px;
    }

    .frame-1__subtitle {
        font-size: 24px;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
    }
}