/* ОБЩИЕ СТИЛИ ФУТЕРА */
.site-footer {
    background: #FFFFFF;
    padding: 60px 0 60px;
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
}

/* СБРОС КУРСИВА ДЛЯ ВСЕХ ЭЛЕМЕНТОВ */
address, 
.footer-legal-text, 
.footer-contact-item, 
.work-time,
.footer-nav-col a {
    font-style: normal !important;
}

/*  ВЕРХНИЙ РЯД (ЛОГОТИП) */
.footer-logo-row {
    margin-bottom: 35px;
}

/* ГЛАВНАЯ СЕТКА (4 КОЛОНКИ) */
.footer-main-grid {
    display: grid;
    grid-template-columns: 320px 300px 180px 300px; 
    justify-content: space-between; 
    align-items: flex-start;
    margin-bottom: 50px;
}

/*  ЗАГОЛОВКИ КОЛОНОК */
.footer-nav-col h4, 
.work-time {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0;
}

/*  СПИСКИ МЕНЮ (УСЛУГИ И НАВИГАЦИЯ) */
.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* РАССТОЯНИЕ МЕЖДУ ПУНКТАМИ МЕНЮ */
.footer-nav-col li {
    margin-bottom: 6px;
}

.footer-nav-col a {
    text-decoration: none;
    color: #000;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.02em;
}

/* ЛЕВАЯ КОЛОНКА (ЮРИДИЧЕСКАЯ ИНФОРМАЦИЯ) */
.footer-legal-text {
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #7E7E7E;
    margin-bottom: 30px;
}

.footer-mini-nav {
		margin-top: 16px;
}

.footer-copy-info p, 
.footer-mini-nav a {
    font-size: 14px;
    line-height: 16px;
    color: #7E7E7E;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
}

/* ПРАВАЯ КОЛОНКА (КОНТАКТЫ) */
.footer-contacts-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
}

/* КРУГЛЫЕ ИКОНКИ */
.footer-social-aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    transition: all .3s;
}

/* КНОПКА ПОДПИСКИ */
.btn-subscribe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 60px;
    background: #E20716;
    border-radius: 62px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

/* НИЖНИЙ БЛОК (ДИСКЛЕЙМЕР И ФАЙЛЫ) */
.footer-line {
    border: none;
    border-top: 1px solid #DFDFDF;
    margin-bottom: 40px;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
}

.disclaimer-text {
    width: 613px;
    font-weight: 300;
    font-size: 14px;
    line-height: 14px;
    color: #000;
    margin: 0; 
}

.downloads-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.dl-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #000;
    line-height: 1; 
}

.dl-content strong {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    text-transform: uppercase;
}

.dl-content span {
    font-size: 10px;
    color: #7E7E7E;
}


@media (max-width: 768px) {

    /* 1. Верхний логотип по центру */
    .footer-logo-row {
        text-align: center;
        margin-bottom: 40px;
    }

    /* 2. Сетка в 2 колонки */
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    /* Делаем блок юр. инфо и контакты на всю ширину (занимают 2 колонки) */
    .footer-brand-col, 
    .footer-contacts-col {
        grid-column: span 2; 
    }

    /* А меню (Услуги и Навигация) встанут рядом друг с другом по 1 колонке */
    .footer-nav-col {
        grid-column: span 1;
    }

    /* 3. Контакты и кнопка */
    .footer-contacts-top-flex {
        flex-direction: row; /* Оставляем в ряд, если место позволяет */
        justify-content: space-between;
    }

    .btn-subscribe {
        width: 100%;
        margin: 0 auto;
    }

    /* 4. Нижний блок (Дисклеймер и Скачать) */
    .footer-bottom-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .disclaimer-text {
        width: 100%;
        max-width: 100%;
        font-size: 10px;
        line-height: 14px;
    }

    .downloads-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
    }

   @media (max-width: 480px) {

        /* Уменьшаем расстояние между колонками Услуги и Навигация */
        .footer-main-grid {
            grid-template-columns: 1fr 1fr;
            gap: 25px 8px !important; /* 8px — минимальное расстояние, чтобы текст не переносился */
        }

        /* Приводим шрифты к 12px для читаемости */
        .footer-nav-col h4 {
            font-size: 12px !important;
            margin-bottom: 10px !important;
            letter-spacing: 0.02em;
        }

        .footer-nav-col a {
            font-size: 11px !important; /* 11px вместо 10px, чтобы не было слишком мелко */
            line-height: 1.2 !important;
            margin-bottom: 6px !important;
            white-space: nowrap; /* Запрещаем перенос строк внутри пунктов меню */
        }

        /* Юридические блоки и инфо */
        .footer-legal-text,
        .footer-copy-info p,
        .footer-mini-nav a {
            font-size: 12px !important;
            line-height: 1.4;
        }

        /* Контакты */
        .work-time {
            font-size: 12px !important;
        }

        .footer-contact-item {
            font-size: 13px !important;
        }

        /* Скачивание файлов - делаем в ряд, уменьшая шрифты */
         .downloads-flex {
 						display: grid;
						grid-template-columns: 1fr 1fr;
						gap: 20px;
						width: 100%;

    }

        .dl-content strong {
            font-size: 9px !important;
        }

        .dl-content span {
            font-size: 8px !important;
        }

        .footer-logo-row {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .btn-subscribe {
            width: 100%;
            height: 50px;
            font-size: 13px;
        }
			 
			 .social-circle {
						width: 54px;
						height: 54px;
			}
    }
}