.footer {
    background: #151515;
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    overflow-x: clip;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 32px;
    padding-top: 42px;
    align-items: start;
}

/* --- Columns --- */
.footer__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer__col--sections {
    max-width: 220px;
}

.footer__col--about {
    max-width: 294px;
}

.footer__col--contacts {
    min-width: 0;
}

.footer__col--socials {
    justify-self: end;
}

/* --- Heading / accordion toggle --- */
.footer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
}

.footer__heading {
    display: block;
    color: #aaaaaa;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    line-height: 20px;
    margin: 0 0 18px;
}

.footer__toggle .footer__heading {
    margin-bottom: 18px;
}

.footer__chevron {
    display: none;
    width: 9px;
    height: 6px;
    flex-shrink: 0;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.footer__panel {
    display: block;
}

.footer__panel-inner {
    min-height: 0;
}

/* --- Links list --- */
.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.footer__links li {
    line-height: 20px;
    margin-bottom: 8px;
}

.footer__links li:last-child {
    margin-bottom: 0;
}

.footer__links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: opacity 0.2s;
}

.footer__links a:hover {
    opacity: 0.7;
}

/* --- Contacts list --- */
.footer__contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.footer__contacts-list li {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer__contacts-list li:last-child {
    margin-bottom: 0;
}

.footer__contacts-list a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer__contacts-list a:hover {
    opacity: 0.7;
}

/* --- Contact buttons (WhatsApp / Telegram / Карта) --- */
.footer__contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.footer__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.footer__contact-btn:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* --- Social icons --- */
.footer__social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 0.2s;
    flex-shrink: 0;
}

.footer__social-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.footer__social-icon:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* --- Bottom bar --- */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 49px;
    height: auto;
    padding-block: 16px;
    box-sizing: border-box;
    border-top: 0.74px solid rgba(255, 255, 255, 0.20);
    margin-top: 58px;
}

.footer__copy {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.footer__dev {
    color: rgba(255, 255, 255, 0.60);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}
