:root {
    
    --footer-scale: 1;
}

@media screen and (min-width: 7680px) {
    :root {
        --footer-scale: 4;
    }
}

@media screen and (min-width: 5760px) and (max-width: 7679px) {
    :root {
        --footer-scale: 3;
    }
}

@media screen and (min-width: 3840px) and (max-width: 5759px) {
    :root {
        --footer-scale: 2;
    }
}

@media screen and (min-width: 2880px) and (max-width: 3839px) {
    :root {
        --footer-scale: 1.5;
    }
}

@media screen and (min-width: 2560px) and (max-width: 2879px) {
    :root {
        --footer-scale: 1.333;
    }
}

@media screen and (min-width: 2400px) and (max-width: 2559px) {
    :root {
        --footer-scale: 1.25;
    }
}

@media screen and (min-width: 2133px) and (max-width: 2399px) {
    :root {
        --footer-scale: 1.111;
    }
}

@media screen and (min-width: 1920px) and (max-width: 2132px) {
    :root {
        --footer-scale: 1;
    }
}

@media screen and (min-width: 1728px) and (max-width: 1919px) {
    :root {
        --footer-scale: 0.9;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1727px) {
    :root {
        --footer-scale: 0.833;
    }
}

@media screen and (min-width: 1536px) and (max-width: 1599px) {
    :root {
        --footer-scale: 0.8;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1535px) {
    :root {
        --footer-scale: 0.711;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1365px) {
    :root {
        --footer-scale: 0.667;
    }
}

@media screen and (min-width: 1097px) and (max-width: 1279px) {
    :root {
        --footer-scale: 0.571;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1096px) {
    :root {
        --footer-scale: 0.533;
    }
}

@media screen and (min-width: 960px) and (max-width: 1023px) {
    :root {
        --footer-scale: 0.5;
    }
}

@media screen and (min-width: 769px) and (max-width: 959px) {
    :root {
        --footer-scale: 0.4;
    }
}

/* Основные стили */
.site-footer {
    width: 100%;
    min-height: calc(280px * var(--footer-scale)); /* Немного уменьшил высоту */
    background-color: #213d3d;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    overflow: hidden;
}

/* Сфера футер */
.footer-orb {
    width: calc(1200px * var(--footer-scale));
    height: calc(500px * var(--footer-scale));
    background: radial-gradient(circle, 
    #122222 0%,
    #223d3d 24%,
    #336161 61%,
    transparent 70%);
    position: absolute;
    top: calc(-300px * var(--footer-scale));
    right: calc(-500px * var(--footer-scale));
    border-radius: 50%;
    filter: blur(calc(60px * var(--footer-scale)));
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.footer-top {
    display: flex;
    align-items: center;
    padding-top: calc(40px * var(--footer-scale));
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: calc(58px * var(--footer-scale));
    margin-left: calc(30px * var(--footer-scale));
    position: relative;
    z-index: 2;
}

.footer-divider {
    font-family: 'Russo One', sans-serif;
    color: #ffffff;
    font-size: calc(35px * var(--footer-scale));
    margin-left: calc(55px * var(--footer-scale));
    line-height: calc(58px * var(--footer-scale));
    position: relative;
    z-index: 2;
}

.footer-nav {
    display: flex;
    align-items: center;
    margin-left: calc(30px * var(--footer-scale));
    gap: calc(20px * var(--footer-scale));
    position: relative;
    z-index: 2;
}

.footer-nav a {
    font-family: 'Russo One', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: calc(18px * var(--footer-scale));
    line-height: calc(35px * var(--footer-scale));
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-phone {
    font-family: 'Golos Text', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: calc(18px * var(--footer-scale));
    line-height: calc(30px * var(--footer-scale));
    text-align: left;
    position: absolute;
    bottom: calc(85px * var(--footer-scale)); /* Привязал к низу */
    left: calc(30px * var(--footer-scale));
    margin: 0;
    z-index: 2;
}

.footer-address {
    font-family: 'Golos Text', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: calc(15px * var(--footer-scale));
    line-height: calc(24px * var(--footer-scale));
    text-align: left;
    position: absolute;
    bottom: calc(50px * var(--footer-scale)); /* Выше политики */
    left: calc(30px * var(--footer-scale));
    margin: 0;
    z-index: 2;
    max-width: calc(600px * var(--footer-scale));
}

.footer-policy {
    font-family: 'Golos Text', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: calc(14px * var(--footer-scale));
    line-height: calc(20px * var(--footer-scale));
    text-align: left;
    position: absolute;
    bottom: calc(15px * var(--footer-scale)); /* Отступ снизу в 15px */
    left: calc(30px * var(--footer-scale));
    margin: 0;
    z-index: 2;
    max-width: calc(600px * var(--footer-scale));
}

.footer-policy-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-policy-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* МОБИЛЬНАЯ ВЕРСИЯ (до 768px) */
@media screen and (max-width: 768px) {
    .site-footer {
        width: 100%;
        min-height: auto;
        background-color: #213d3d;
        position: relative;
        margin: 0;
        padding: 30px 20px;
        border: none;
        outline: none;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Сфера футер */
    .footer-orb {
        width: 600px;
        height: 300px;
        background: radial-gradient(circle, 
        #122222 0%,
        #223d3d 24%,
        #336161 61%,
        transparent 70%);
        position: absolute;
        top: -150px;
        right: -250px;
        border-radius: 50%;
        filter: blur(40px);
        opacity: 0.5;
        z-index: 0;
        pointer-events: none;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0;
        position: relative;
        z-index: 1;
        gap: 20px;
    }

    .footer-logo {
        height: 45px;
        margin-left: 0;
        position: relative;
        z-index: 2;
    }

    .footer-divider {
        display: none;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        gap: 12px;
        position: relative;
        z-index: 2;
    }

    .footer-nav a {
        font-family: 'Russo One', sans-serif;
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        line-height: 1.4;
        transition: opacity 0.3s;
    }

    .footer-nav a:hover {
        opacity: 0.8;
    }

    .footer-phone {
        font-family: 'Golos Text', sans-serif;
        font-weight: 700;
        color: #ffffff;
        font-size: 16px;
        line-height: 1.5;
        text-align: left;
        position: relative;
        bottom: auto;
        left: auto;
        margin: 20px 0 5px 0;
        z-index: 2;
    }

    .footer-address {
        font-family: 'Golos Text', sans-serif;
        font-weight: 400;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        position: relative;
        bottom: auto;
        left: auto;
        margin: 0 0 5px 0;
        z-index: 2;
        max-width: 100%;
    }

    .footer-policy {
        position: relative;
        bottom: auto;
        left: auto;
        font-size: 13px;
        line-height: 1.5;
        margin: 10px 0 25px 0;
        max-width: 100%;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .footer-orb {
        width: 400px;
        height: 200px;
        top: -100px;
        right: -150px;
        filter: blur(30px);
    }

    .footer-logo {
        height: 40px;
    }

    .footer-divider {
        display: none;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .footer-phone {
        font-size: 14px;
    }

    .footer-address {
        font-size: 12px;
    }

    .footer-policy {
        font-size: 11px;
        margin: 8px 0 20px 0;
    }
}

/* Стили для кликабельного номера телефона */
.footer-phone-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Golos Text', sans-serif;
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-phone-link:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

/* Для мобильных устройств - убираем синее выделение */
@media screen and (max-width: 768px) {
    .footer-phone-link {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important; /* Для Safari */
    }
}

/* Дополнительно для всех устройств */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}