/* Premium shared footer: retain all existing footer copy, links and destinations. */
.main-footer {
    margin-top: 42px !important;
    padding: 52px 0 0 !important;
    border-top: 1px solid #eee3df !important;
    background: linear-gradient(180deg, #fffaf9 0%, #fff 72%) !important;
    color: #596574 !important;
}
.main-footer > .container { max-width: 1240px; }
.main-footer .footer-grid {
    grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(145px, 1fr)) !important;
    gap: clamp(20px, 3vw, 42px) !important;
    padding-bottom: 38px !important;
    border-color: #eee6e2 !important;
}
.main-footer .footer-col:first-child p {
    display: -webkit-box;
    max-width: 340px;
    overflow: hidden;
    color: #687584 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.main-footer .footer-col h2 {
    margin-bottom: 17px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e9d7d2 !important;
    color: #263243 !important;
    font-size: 13px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.main-footer .footer-col ul li { margin-bottom: 7px !important; }
.main-footer .footer-col ul li a {
    min-height: 30px;
    color: #657180 !important;
    font-size: 12.5px !important;
    transition: color .18s ease, transform .18s ease;
}
.main-footer .footer-col ul li a:hover { color: #bd2630 !important; transform: translateX(3px); }
.main-footer .footer-col ul li a i { color: #cf4b4b !important; }
.main-footer .footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.main-footer .footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee2de;
    border-radius: 11px;
    background: #fff;
    color: #b92c32;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.main-footer .footer-social a:hover { transform: translateY(-2px); border-color: #d62828; background: #d62828; color: #fff; }
.main-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #f0e7e4 !important;
    color: #7c8793 !important;
    font-size: 11.5px !important;
}
.main-footer .footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 18px !important; }
.main-footer .footer-bottom-links a { color: #687584 !important; font-size: 11.5px; }
.main-footer .footer-bottom-links a:hover { color: #bd2630 !important; }
@media (max-width: 900px) {
    .main-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 24px !important; }
}
@media (max-width: 560px) {
    .main-footer { margin-top: 24px !important; padding-top: 30px !important; }
    .main-footer > .container { padding-right: 18px; padding-left: 18px; }
    .main-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; padding-bottom: 20px !important; }
    .main-footer .footer-col:first-child { grid-column: 1 / -1; padding: 0 2px 16px; border-bottom: 1px solid #eee6e2; }
    .main-footer .footer-col:first-child p { max-width: 420px; margin-bottom: 12px; }
    .main-footer .footer-col:not(:first-child) { min-width: 0; padding: 14px 12px 12px; border: 1px solid #f0e7e4; border-radius: 14px; background: rgba(255,255,255,.78); }
    .main-footer .footer-col h2 { margin-bottom: 10px !important; font-size: 11px !important; letter-spacing: .045em; }
    .main-footer .footer-col ul li { margin-bottom: 5px !important; }
    .main-footer .footer-col ul li a { min-height: 30px; gap: 6px; font-size: 11.5px !important; line-height: 1.35; }
    .main-footer .footer-col ul li a i { width: 12px; flex: 0 0 12px; font-size: 10px; }
    .main-footer .footer-col:nth-child(4) { grid-column: 1 / -1; }
    .main-footer .footer-col:nth-child(4) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
    .main-footer .footer-bottom { flex-direction: column; align-items: center; gap: 11px; padding-top: 16px !important; text-align: center; }
    .main-footer .footer-bottom-links { justify-content: center; gap: 4px 12px !important; }
    .main-footer .footer-bottom-links a { min-height: 28px; display: inline-flex; align-items: center; font-size: 11px; }
}
@media (max-width: 360px) {
    .main-footer > .container { padding-right: 14px; padding-left: 14px; }
    .main-footer .footer-grid { gap: 10px !important; }
    .main-footer .footer-col:not(:first-child) { padding-right: 9px; padding-left: 9px; }
    .main-footer .footer-col ul li a { font-size: 10.5px !important; }
    .main-footer .footer-col:nth-child(4) ul { column-gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .main-footer .footer-col ul li a, .main-footer .footer-social a { transition: none; }
}
