/* === ОБЩИЙ ФУТЕР === */
.footer {
    background-color: #ffffff;
    color: #333;
    padding: 40px 0 20px;
    font-size: 0.95em;
    border-top: 1px solid #e0e0e0;
}

/* Верхняя часть футера */
.footer .f.sb.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* как в header */
    flex-wrap: wrap;
    gap: 20px;
}

/* ЛОГОТИП В ФУТЕРЕ */
.footer .logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer .logo:hover img {
    transform: scale(1.05);
}

/* МЕНЮ В ФУТЕРЕ (2 колонки) */
.footer .navfoot {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 8px;
    max-width: 420px;
}

.footer .navfoot li {
    width: 30%;
}

.footer .navfoot li a {
    display: inline-block;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer .navfoot li a:hover,
.footer .navfoot li a.active {
    color: #0066cc;
    font-weight: bold;
}

/* АДРЕС И ТЕЛЕФОН */
.footer .contacts-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer .fadd,
.footer .ftel {
    position: relative;
    padding-left: 30px;
    font-size: 0.9em;
}

.footer .fadd span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.footer .fadd i {
    font-style: normal;
    color: #666;
}

.footer .fadd:before,
.footer .ftel:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    display: block;
    color: #e23c40;
    font-size: 18px;
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
}

.footer .fadd:before {
    content: "\f3c5";
}

.footer .ftel:before {
    content: "\f879";
}

.footer .ftel span {
    font-size: 16px;
    font-weight: 700;
    color: #284693;
    font-family: 'Montserrat', sans-serif;
}

.footer .ftel i {
    font-size: 14px;
    line-height: 25px;
    font-weight: 600;
    font-style: normal;
    color: #1b202e;
}

/* НИЖНЯЯ ПОЛОСА */
.footer .f.sb.content-wrapper:last-child {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    font-size: 0.85em;
    color: #666;
    align-items: center;
}

.footer .f.sb.content-wrapper:last-child span {
    white-space: nowrap;
}

.footer .f.sb.content-wrapper:last-child a {
    color: #0066cc;
    text-decoration: none;
}

.footer .f.sb.content-wrapper:last-child a:hover {
    color: #004080;
}

/* МОДАЛКА ОБРАТНОГО ЗВОНКА */
#bell2 {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#bell2 h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

#bell2 p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

#bell2 form .frm-blk {
    margin-bottom: 15px;
}

#bell2 input[type="text"],
#bell2 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#bell2 input[type="text"]:focus,
#bell2 textarea:focus {
    border-color: #0066cc;
}

#bell2 .w12.center {
    text-align: center;
}

#bell2 input[type="submit"] {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#bell2 input[type="submit"]:hover {
    background-color: #004080;
}

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {

    .footer .f.sb.content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        gap: 20px;
    }

    /* меню футера: 2 колонки на телефонах */
    .footer .navfoot {
        max-width: 320px;      /* чтобы смотрелось компактно */
        justify-content: center;
    }

    .footer .navfoot li {
        width: 40%;            /* две колонки */
        text-align: left;
    }

    .footer .fadd,
    .footer .ftel {
        padding-left: 0;
        align-items: center;
    }

    .footer .fadd:before,
    .footer .ftel:before {
        display: none;
    }

    #bell2 {
        padding: 20px;
        max-width: 90%;
    }
}
