/* footer.css - Стили для футера сайта в эко-стиле */

/* Общие стили футера */
.site-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    font-family: var(--font-family-base);
    border-top: 3px solid var(--color-eco-forest);
}

.footer-logo img {
    max-width: 150px;
}

/* Верхняя часть футера */
.footer-top {
    padding: 50px 0;
    border-bottom: 1px solid rgba(139, 197, 61, 0.2);
    background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.2) 0%, 
                rgba(0, 0, 0, 0.15) 25%,
                rgba(0, 0, 0, 0.1) 50%,
                transparent 100%);
}

.footer-top__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Колонки футера */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column__title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-eco-horizontal);
    border-radius: 1px;
}

/* Колонка с логотипом */
.footer-column--logo {
    grid-column: span 1;
}

.footer-logo {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.footer-logo__img {
    max-height: 40px;
    width: auto;
    display: block;
}

.footer-logo__text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.2;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--color-white);
    font-size: var(--font-size-small);
    opacity: 0.9;
}

.footer-description p {
    margin: 0 0 15px 0;
}

/* Социальные сети в футере */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-white);
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(44, 120, 32, 0.3);
}

/* Telegram */
.footer-social__link.tg-link {
    background: linear-gradient(135deg, var(--color-telegram), #0066cc);
}

.footer-social__link.tg-link:hover {
    background: linear-gradient(135deg, #0066cc, var(--color-telegram));
}

/* ВКонтакте */
.footer-social__link.vk-link {
    background: linear-gradient(135deg, var(--color-vk), #0055aa);
}

.footer-social__link.vk-link:hover {
    background: linear-gradient(135deg, #0055aa, var(--color-vk));
}

/* Max */
.footer-social__link.max-link {
    background: linear-gradient(135deg, var(--color-max), #5a2fd4);
}

.footer-social__link.max-link:hover {
    background: linear-gradient(135deg, #5a2fd4, var(--color-max));
}

.footer-social__link svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Колонка с контактами */
.footer-column--contacts {
    grid-column: span 1;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-contact-item {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    gap: 12px;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-eco-fresh), var(--color-eco-green));
    border-radius: 50%;
    padding: 4px;
}

.footer-contact-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    color: var(--color-white);
}

.footer-contact-text {
    color: var(--color-white);
    font-size: var(--font-size-small);
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--transition);
    opacity: 0.9;
}

.footer-contact-text:hover {
    color: var(--color-eco-fresh);
    opacity: 1;
}

.footer-contact-item a.footer-contact-text:hover {
    color: var(--color-eco-vibrant);
}

/* Кнопка заказать звонок в футере */
.footer-callback-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gradient-eco-horizontal);
    color: var(--color-black);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(44, 120, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-callback-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-callback-btn:hover::before {
    left: 100%;
}

.footer-callback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 120, 32, 0.4);
    color: var(--color-eco-forest);
}

.footer-callback-btn .callback-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Колонки с меню */
.footer-column--menu {
    grid-column: span 1;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: all var(--transition);
    display: inline-block;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    opacity: 0.9;
}

.footer-menu a:hover {
    color: var(--color-eco-fresh);
    border-bottom-color: var(--color-eco-fresh);
    transform: translateX(5px);
    opacity: 1;
}

/* Нижняя часть футера */
.footer-bottom {
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(139, 197, 61, 0.1);
}

.footer-bottom__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
    min-width: 300px;
}

.footer-copyright span {
    display: block;
    margin-bottom: 10px;
    color: var(--color-white);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
}

.footer-disclaimer {
    color: var(--color-white);
    font-size: var(--font-size-smaller);
    line-height: 1.4;
    margin: 10px 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-smaller);
    transition: all var(--transition);
    padding: 2px 0;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--color-eco-fresh);
    text-decoration: underline;
    opacity: 1;
}

/* Разработчик */
.footer-developer img {
    max-width: 70px;
}

.footer-developer {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 197, 61, 0.2);
    margin-top: 20px;
}

.footer-developer a {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    color: var(--color-white);
    gap: 15px;
    transition: color var(--transition);
    opacity: 0.9;
}

.footer-developer a:hover {
    color: var(--color-eco-fresh);
    opacity: 1;
}

/* Колонка с менеджером */
.footer-column--manager {
    grid-column: span 1;
}

.footer-manager {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 197, 61, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-manager::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 1, 0.05) 100%);
    border-radius: 0 0 0 100%;
}

.footer-manager-photo {
    margin-bottom: 15px;
}

.footer-manager-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-eco-fresh);
}

.footer-manager-info {
    text-align: center;
}

.footer-manager-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: 5px;
}

.footer-manager-position {
    font-size: var(--font-size-small);
    color: var(--color-white);
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-manager-phone {
    font-size: 15px;
    font-weight: var(--font-weight-medium);
}

.footer-manager-phone a {
    color: var(--color-eco-vibrant);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: var(--font-weight-semibold);
}

.footer-manager-phone a:hover {
    color: var(--color-eco-fresh);
}

/* Кнопка заказать звонок в колонке менеджера */
.footer-column--manager .footer-callback-btn {
    width: 100%;
    justify-content: center;
}

/* Попап */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-eco-green);
}

.popup-header {
    background: var(--gradient-eco-horizontal);
    color: var(--color-black);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: var(--font-size-larger);
    font-weight: var(--font-weight-bold);
}

.popup-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: opacity var(--transition);
    color: var(--color-black);
}

.popup-close:hover {
    opacity: 0.8;
}

.popup-content {
    padding: 30px;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .footer-top__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-column--logo {
        grid-column: span 2;
    }

    .footer-column--manager {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0;
    }

    .footer-top__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column--logo {
        grid-column: span 1;
    }

    .footer-column--manager {
        grid-column: span 1;
    }

    .footer-bottom__content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-copyright {
        min-width: auto;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-callback-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-manager {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 30px 0;
    }

    .footer-contact-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start; /* На мобильных выравнивание по левому краю */
    }

    .footer-contact-icon {
        align-self: flex-start;
    }

    .footer-menu {
        gap: 8px;
    }

    .popup-container {
        width: 95%;
        margin: 0 10px;
    }

    .popup-content {
        padding: 20px;
    }
}