/* Футер */
.footer {
    background-color: #2a2a2a;
    min-height: 530px;
    padding: 37px 40px 30px;
    position: relative;
}

/* Мобильные элементы - скрыты на десктопе */
.footer__logo--mobile,
.footer__hotline--mobile,
.footer__mobile-blocks,
.footer__accordions {
    display: none;
}

/* Десктопные элементы видны по умолчанию */
.desktop-only {
    display: flex;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

/* Левая колонка */
.footer__left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 346px;
    flex: 1;
    min-width: 280px;
}

.footer__logo {
    width: 219px;
    height: auto;
}

.footer__logo img {
    width: 100%;
    height: auto;
}

/* Блок подписки */
.footer__subscribe {
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 16px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__subscribe-text {
    font-size: 15px;
    line-height: normal;
    color: #ffffff;
}

.footer__subscribe-btn {
    background-color: #f23300;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 40px;
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer__subscribe-btn:hover {
    background-color: #d62e00;
}

/* Блок отзывов */
.footer__review {
    padding: 16px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__review-text {
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
}

.footer__review-btn {
    background-color: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 40px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.footer__review-btn:hover {
    background-color: #ffffff;
    color: #2a2a2a;
}

/* Меню */
.footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex: 2;
}

.footer__menu-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 180px;
}

.footer__menu-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
}

.footer__menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__menu-list li a {
    font-size: 12px;
    color: #ffffff;
    transition: color 0.3s;
}

.footer__menu-list li a:hover {
    color: #f23300;
}

/* Горячая линия */
.footer__hotline {
    background-color: #f23300;
    border-radius: 10px;
    padding: 30px 31px;
    max-width: 490px;
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.footer__hotline-icon {
    position: absolute;
    top: 30px;
    left: 32px;
    width: 43px;
    height: 43px;
}

.footer__hotline-icon img {
    width: 100%;
    height: 100%;
}

.footer__hotline-title {
    font-size: 23px;
    font-weight: normal;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
    margin-left: 51px;
    margin-bottom: 39px;
}

.footer__hotline-phone {
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    margin-bottom: 18px;
    transition: opacity 0.3s;
}

.footer__hotline-phone:hover {
    opacity: 0.8;
}

.footer__hotline-btn {
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 40px;
    border-radius: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.footer__hotline-btn:hover {
    background-color: #e8e8e8;
}

.footer__hotline-email {
    font-size: 15px;
    color: #ffffff;
    margin-top: 39px;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.footer__hotline-email:hover {
    opacity: 0.8;
}

.footer__hotline-hours {
    font-size: 15px;
    color: #ffffff;
}

/* Копирайт */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    max-width: 100%;
}

.footer__copyright {
    display: flex;
    gap: 35px;
    font-size: 12px;
    color: #888888;
    line-height: 21px;
	justify-content: center;
}

.footer__copyright a {
    transition: color 0.3s;
}

.footer__copyright a:hover {
    color: #ffffff;
}

.footer__developer {
    font-size: 10px;
    color: #888888;
}

.footer__developer a{
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1440px) {
    .footer__container {
        gap: 30px;
    }

    .footer__menu {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .footer__left {
        width: 100%;
    }

	.footer__developer {
		margin-bottom: 32px;
    }

    .footer__menu {
        width: 100%;
        justify-content: space-between;
    }

    .footer__hotline {
        min-width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 0;
    }

    /* Скрыть десктопные элементы */
    .desktop-only,
    .footer__container {
        display: none !important;
    }

    /* Показать мобильные элементы */
    .footer__logo--mobile,
    .footer__hotline--mobile,
    .footer__mobile-blocks,
    .footer__accordions {
        display: block;
    }

    /* Логотип мобильный */
    .footer__logo--mobile {
        text-align: center;
        padding: 5px 0 20px;
    }

    .footer__logo--mobile img {
        width: 147px;
        height: auto;
    }

    /* Горячая линия мобильная */
    .footer__hotline--mobile {
        background-color: #f23300;
        border-radius: 5px;
        padding: 20px;
        margin: 0 10px 20px;
        position: relative;
    }

    .footer__hotline--mobile .footer__hotline-icon {
        position: absolute;
        top: 17px;
        left: 20px;
        width: 24px;
        height: 24px;
    }

    .footer__hotline--mobile .footer__hotline-title {
        font-size: 18px;
        margin-left: 34px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .footer__hotline--mobile .footer__hotline-phones {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .footer__hotline--mobile .footer__hotline-phone {
        font-size: 15px;
        flex: 1;
    }

    .footer__hotline--mobile .footer__hotline-phone:first-child {
        margin-right: 10px;
    }

    .footer__hotline--mobile .footer__hotline-btn {
        width: 100%;
        margin-bottom: 10px;
        font-size: 12px;
        height: 30px;
        padding: 0;
    }

    .footer__hotline--mobile .footer__hotline-contact {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    .footer__hotline--mobile .footer__hotline-hours {
        font-size: 12px;
        margin: 0;
    }

    .footer__hotline--mobile .footer__hotline-email {
        font-size: 12px;
        margin: 0;
        text-align: right;
    }

    /* Мобильные блоки с кнопками */
    .footer__mobile-blocks {
        padding: 0 60px;
    }

    .footer__subscribe--mobile,
    .mobile-review {
        border: 1px solid #ffffff;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .mobile-review {
        border: none;
        padding: 15px 24px;
    }

    .footer__mobile-text {
        font-size: 12px;
        color: #ffffff;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .footer__mobile-btn--primary {
        background-color: #f23300;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        width: 100%;
        height: 30px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .footer__mobile-btn--primary:hover {
        background-color: #d62e00;
    }

    .footer__mobile-btn--secondary {
        background-color: transparent;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        width: 100%;
        height: 30px;
        border: 1px solid #ffffff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }

    .footer__mobile-btn--secondary:hover {
        background-color: #ffffff;
        color: #2a2a2a;
    }

    /* Аккордеоны */
    .footer__accordions {
        padding: 0 10px 20px;
    }

    .footer__accordion {
        margin-bottom: 10px;
    }

    .footer__accordion-header {
        background-color: rgba(244, 244, 244, 0.1);
        border: 1px solid rgba(42, 42, 42, 0.1);
        border-radius: 5px;
        width: 100%;
        height: 50px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        transition: background-color 0.3s;
    }

    .footer__accordion-header:hover {
        background-color: rgba(244, 244, 244, 0.15);
    }

    .footer__accordion-icon {
        transform: rotate(270deg) scaleY(1);
        transition: transform 0.3s;
    }

    .footer__accordion.active .footer__accordion-icon {
        transform: rotate(180deg) scaleY(-1);
    }

    .footer__accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .footer__accordion.active .footer__accordion-content {
        max-height: 500px;
    }

    .footer__accordion-list {
        padding: 15px;
    }

    .footer__accordion-list li {
        margin-bottom: 12px;
    }

    .footer__accordion-list li:last-child {
        margin-bottom: 0;
    }

    .footer__accordion-list li a {
        font-size: 12px;
        color: #ffffff;
        transition: color 0.3s;
    }

    .footer__accordion-list li a:hover {
        color: #f23300;
    }

    /* Копирайт мобильный */
    .footer__bottom {
        display: block;
        padding: 20px 10px;
        margin-top: 0;
    }

    .footer__copyright {
        text-align: center;
        font-size: 12px;
        gap: 0;
    }

    .footer__copyright span {
        display: block;
        margin-bottom: 10px;
    }

    .footer__copyright a {
        display: none;
    }

    .footer__developer {
        font-size: 10px;
        text-align: center;
        padding: 0 10px;
		margin-bottom: 40px;
    }
}
