/* Секция Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.footer__bg {
    background: url("../img/footer-bg.webp");
    background-repeat: no-repeat;
    background-size: 1924px 1371px;
    background-position: center top;
    width: 100vw;
    min-height: 1200px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px;
    box-sizing: border-box;
}

.footer__container {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0 20px;
}

.footer__title {
    margin: 0 0 clamp(40px, 6vh, 80px) 0;
    line-height: 1.2;
    font-size: clamp(20px, 9.0px + 2.0vw, 52px);
    color: rgba(229, 190, 127, 1);
    text-align: center;
    max-width: 80%;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 4vw, 10px);
    width: 100%;
    margin-bottom: clamp(40px, 6vh, 80px);
}

.footer__card {
    width: auto;
    height: auto;
    max-width: 100%;
    background: linear-gradient(90deg,
            rgba(15.51, 15.10, 17.16, 0) 0%,
            rgba(15.51, 15.10, 17.16, 1) 48%,
            rgba(16, 15, 17, 0) 100%);
    position: relative;
    overflow: hidden;
}

.footer__bottom-card {
    width: auto;
    height: auto;
    max-width: 100%;
    background: linear-gradient(90deg,
            rgba(15.51, 15.10, 17.16, 0) 0%,
            rgba(15.51, 15.10, 17.16, 1) 48%,
            rgba(16, 15, 17, 0) 100%);
    position: relative;
    overflow: hidden;
}

.footer__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 3.5vh, 64px);
    box-sizing: border-box;
    position: relative;
}

/* Используем общие классы из common.css */
.footer__buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.footer__content .footer__cta-button {
    display: inline-flex;
    margin: 0;
}

.footer__content::before,
.footer__content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(208, 190, 162, 0) 0%,
            rgba(208, 190, 162, 1) 48%,
            rgba(208, 190, 162, 0) 100%);
}

.footer__content::before {
    top: 0;
}

.footer__content::after {
    bottom: 0;
}

.footer__card-title {
    font-size: clamp(18px, 5.6px + 1.375vw, 24px);
    color: rgba(229, 190, 127, 1);
    margin: 0 0 clamp(8px, 1vh, 16px) 0;
    line-height: 1.2;
    font-family: "Reaver-Bold", serif;
    text-transform: uppercase;
    font-weight: 100;
}

.footer__card-description {
    font-size: clamp(16px, 3.2px + 1.0vw, 24px);
    color: rgba(157, 144, 124, 1);
    margin-bottom: 5%;
    line-height: 1.4;
    text-align: center;
    font-family: "Radiance";
}

.footer__cta-button {
    width: clamp(200px, 20vw, 200px);
    height: 50px;
    flex-shrink: 0;
    /* Стилизация */
    background: linear-gradient(90.00deg, rgba(43.191566467285156, 41.72984313964844, 49.0384635925293, 1), rgba(27, 26, 31, 1) 100%);
    border: 1px solid rgba(208, 190, 162, 1);
    border-radius: 2px;
    color: rgba(229, 190, 127, 1);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: bold;
    font-family: 'Reaver-Bold', sans-serif;
    box-sizing: border-box;

    /* Эффекты */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer__cta-button:hover {
    opacity: 0.7;
    box-shadow: 0 6px 20px rgba(208, 190, 162, 0.4);
}

.footer__bottom {
    display: flex;
    justify-content: center;
}

.footer__bottom-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1920px;
}

.footer__license {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60vw;
    color: rgba(157, 144, 124, 1);
    line-height: 1.4;
    font-family: "Radiance";
    padding: 5vh;
    gap: 10px;
}

.footer__license p {
    font-size: clamp(10px, 3.2px + 1.0vw, 24px);
    text-align: center;
}

.footer__license-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.footer__social {
    position: fixed;
    bottom: 0;
    left: 0;
    margin-left: 5px;
    margin-bottom: 5px;
    gap: 5px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

.footer__social a {
    display: inline-block;
    /* или inline-block */
    width: 32px;
    height: 32px;
    background-size: contain;
    /* или cover — по желанию */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

.footer__social a:hover {
    opacity: 0.9;
}

.footer__social_vk {
    background: url("../img/vk.webp");
}

.footer__social_inst {
    background: url("../img/inst.webp");
}

.footer__social_tg {
    background: url("../img/tg.webp");
}

.footer__social_youtube {
    background: url("../img/youtube.webp");
}

.footer__support {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40vw;
    padding: 5vh 5vh;
}

.footer__support a {
    font-family: "Radiance";
}

/* Общие стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* затемнение */
}

.modal__content {
    position: relative;
    background: linear-gradient(90deg,
            rgba(15.51, 15.10, 17.16, 0) 0%,
            rgba(15.51, 15.10, 17.16, 1) 48%,
            rgba(16, 15, 17, 0) 100%);
    background-color: black;
    border-radius: 10px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    margin: 40vh auto;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    flex-direction: column;
}

.modal__content::before,
.modal__content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(208, 190, 162, 0) 0%,
            rgba(208, 190, 162, 1) 48%,
            rgba(208, 190, 162, 0) 100%);
}

.modal__content::before {
    top: 0;
}

.modal__content::after {
    bottom: 0;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal__close:hover {
    color: #333;
}

.modal__links {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.modal__links li {
    margin: 8px 0;
}

.modal__links a {
    font-family: "Reaver-Bold", sans-serif;
    color: rgba(208, 190, 162, 1);
    text-decoration: none;
    font-weight: 500;
}

.modal__links a:hover {
    text-decoration: underline;
}

/* Адаптивность */

@media (max-width: 1200px) {
    .footer__bg {
        background-size: 1200px auto;
        min-height: calc(1200px * 1371 / 1924);
        padding: clamp(80px, 8vh, 150px) clamp(40px, 4vw, 80px) 0;
    }

    .footer__grid {
        gap: clamp(20px, 3vw, 40px);
    }

}

@media (max-width: 900px) {
    .footer__bottom-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .footer__license,
    .footer__support {
        width: 100%;
    }

    .footer__license {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 1024px) {
    .footer__bg {
        background-size: auto;
        min-height: 1000px;
        padding: clamp(60px, 6vh, 100px) clamp(20px, 3vw, 40px) 0;
    }

    .footer__container {
        padding: 0 10px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: clamp(15px, 2vw, 30px);
    }


    .footer__title {
        margin-bottom: clamp(40px, 6vh, 80px);
    }

}

@media (max-width: 480px) {
    .footer__social {
        left: 0;
        bottom: unset;
        top: 0;
        margin-left: 20px;
        margin-top: 9px;
        flex-direction: row;
    }

    .footer__bg {
        padding: clamp(40px, 5vh, 80px) clamp(15px, 2vw, 30px) 0;
        min-height: 600px;
    }

    .button {
        width: clamp(100px, 10vw, 200px);
        font-size: clamp(10px, 1.8vw, 20px);
        height: clamp(10px, 5vw, 200px);
    }

    .footer__content {
        padding: 5%;
    }

    .footer__container {
        padding: 0 5px;
    }
}

@media (max-width: 320px) {
    .footer__buttons-container {
        flex-direction: column;
        gap: 5px;
    }
}