@font-face {
    font-family: 'ALSGorizontVariable';
    src: url('./fonts/ALSGorizontVariable.ttf'), format('ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Golos';
    src: url('./fonts/GolosTextRegular.woff'), format('woff');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('./public/xxl.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Для очень больших экранов (десктоп) */
@media (min-width: 1400px) {
    body {
        background-image: url('./public/xxl.jpg');
    }
}

/* Для больших экранов (ноутбуки) */
@media (min-width: 1200px) and (max-width: 1399px) {
    body {
        background-image: url('./public/xl.jpg');
    }
}

/* Для средних экранов (планшеты в альбомной ориентации) */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        background-image: url('./public/l.jpg');
    }
}

/* Для малых экранов (планшеты в портретной ориентации) */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        background-image: url('./public/m.jpg');
    }
}

/* Для очень малых экранов (мобильные телефоны) */
@media (max-width: 767px) {
    body {
        background-image: url('./public/s.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

.text-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
    max-width: 100%;
}

.title {
    margin-top: 24px;
    margin-bottom: 16px;
    color: #000;
    text-align: center;
    font-feature-settings: 'liga' off;
    font-family: "ALSGorizontVariable", sans-serif;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-transform: uppercase;
}

/* Адаптивные стили для заголовка */
@media (max-width: 1199px) {
    .title {
        max-width: 770px;
        font-size: 46px;
        line-height: 54px;
    }
}

@media (max-width: 991px) {
    .title {
        max-width: 600px;
        font-size: 42px;
        line-height: 50px;
    }
}

.text {
    max-width: 508px;
    color: rgba(27, 31, 59, 0.80);
    text-align: center;
    font-family: Golos;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1399px) {
    .text {
        max-width: 540px;
    }
}

@media (max-width: 1199px) {
    .text {
        max-width: 498px;
    }
}

@media (max-width: 991px) {
    .text {
        max-width: 450px;
        font-size: 17px;
        line-height: 26px;
    }
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.social-link {
    color: #2196F3;
    text-decoration: none;
    font-family: Golos;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 30px;
    background-color: rgba(33, 150, 243, 0.05);
    border: 1px solid transparent;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-link:hover {
    opacity: 0.9;
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

.contact-email {
    margin: 0 0 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.email-label {
    color: rgba(27, 31, 59, 0.80);
    font-family: Golos;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.email-link {
    color: #2196F3;
    text-decoration: none;
    font-family: Golos;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
}

.email-link:hover {
    opacity: 0.8;
    border-bottom-color: #2196F3;
}

/* Мобильные стили (до 767px) */
@media (max-width: 767px) {
    .container {
        align-items: flex-start;
        padding-top: 20px;
    }

    .text-overlay {
        padding: 10px;
        justify-content: flex-start;
        min-height: 100%;
    }

    .logo {
        width: 100px;
        margin-bottom: 5px;
    }

    .title {
        font-size: 28px;
        line-height: 34px;
        margin-top: 8px;
        margin-bottom: 8px;
        max-width: 100%;
    }

    .text {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
        max-width: 260px;
    }

    .social-links {
        gap: 6px;
        margin-bottom: 12px;
    }

    .social-link {
        font-size: 14px;
        line-height: 18px;
        padding: 4px 10px;
    }

    .social-icon {
        width: 16px;
        height: 16px;
    }

    .email-label,
    .email-link {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-email {
        gap: 3px;
        margin-bottom: 15px;
        flex-direction: row;
    }

    .button {
        width: 200px;
        height: 36px;
        margin-bottom: 25px;
        font-size: 14px;
        padding: 6px 16px;
    }

    .animal {
        width: 160px;
        height: auto;
        margin-top: 5px;
    }
}

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .logo {
        width: 150px;
    }

    .title {
        font-size: 40px;
        line-height: 48px;
    }

    .text {
        font-size: 17px;
        max-width: 400px;
    }

    .animal {
        width: 220px;
        height: auto;
    }
}

/* Планшеты и малые ноутбуки (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .logo {
        width: 160px;
    }

    .title {
        font-size: 46px;
        line-height: 54px;
    }

    .animal {
        width: 240px;
        height: auto;
    }
}

/* Ноутбуки (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .logo {
        width: 170px;
    }
}

.button {
    box-sizing: border-box;
    width: 258px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 71px;
    font-family: Golos;
}

.button span {
    margin-right: 8px;
}

.button:hover {
    background-color: #1976D2;
}

.button:active {
    background-color: #0D47A1;
}

.animal {
    width: 264px;
    height: 282px;
    margin: auto;
}