/* =========================================
   FOOTER.CSS - Стили подвала
   ========================================= */

.footer {
    background-color: var(--footer-bg);
    padding: 60px 0;
    border-top: 2px solid var(--gold);
}
.footer .grid-3 {
    display: grid;
    /* Равные боковые колонки — навигация в центре ровно по оси страницы,
       центральной колонке достаточно ширины, чтобы все ссылки шли одной строкой */
    grid-template-columns: 1fr 2.2fr 1fr;
    gap: 32px;
    align-items: start;
}
.footer .logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 16px;
    line-height: 1.45;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
}
.footer .logo-footer-text {
    display: block;
}
.footer-logo-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
/* Блок с логотипом сжимается по содержимому: правый край «©» совпадает
   с правым краем текстовой подписи, а не колонки сетки */
.footer-brand {
    width: fit-content;
}
.footer .copy {
    font-size: 12px;
    color: var(--gold);
    opacity: 0.4;
    /* годы отцентрованы под ИКОНКОЙ логотипа: коробка прижата к левому краю
       иконки (64px), а transform сдвигает nowrap-строку на полразницы ширин —
       центр годов совпадает с центром иконки при любой фактической ширине текста.
       Переполнять коробку 64px с text-align:center нельзя: браузер смещает
       переполнение только вправо (недостижимый overflow слева запрещён спецификацией) */
    margin: 8px 0 0;
    width: max-content;
    white-space: nowrap;
    transform: translateX(calc((64px - 100%) / 2));
}
.footer .nav-footer {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.footer .nav-footer a {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer .nav-footer a:hover {
    opacity: 1;
    color: var(--gold);
}
.footer .contacts-footer {
    text-align: right;
}
.footer .contacts-footer p {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--gold);
    opacity: 0.7;
    margin: 4px 0;
}

.footer-messengers {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}
.footer-messenger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px;
    padding: 0 !important;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--dark-blue, #1d2d47);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none !important;
}
.footer-messenger-btn svg {
    width: 18px;
    height: 18px;
}
.footer-messenger-btn:hover {
    background: var(--gold, #c9a654);
    transform: translateY(-2px);
}

.contacts-footer a {
    color: inherit;
    text-decoration: none;
}

.contacts-footer a:hover,
.contacts-footer a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

/* Кнопка «Оставить отзыв на Яндексе» — под «Полезными правовыми
   ресурсами» в блоке с формой (раньше была в подвале) */
/* Кнопка в цвет кнопки «Отправить» формы (btn-gold), но компактнее,
   чтобы не перетягивать акцент: две строки — текст + 5 звёзд */
.review-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 18px;
    padding: 8px 14px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: var(--gold);
    color: #1a1a1a !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(198, 166, 100, 0.25);
}
.review-btn:hover,
.review-btn:focus-visible {
    background: #b89551;
    border-color: #b89551;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}
.review-btn__stars {
    font-size: 10px;
    letter-spacing: 3px;
    line-height: 1;
}
