/* ioann-karpovka footer (task 6; tablet grid + contact rhythm: tasks 39/40; legal links: task 41). Breakpoint: see tokens.css (768, never max-width). */
.ik-footer { flex-shrink: 0; }
.ik-footer__band { margin: 0; }
.ik-footer__body { background: var(--iskm-navy); color: var(--iskm-cream); }
.ik-footer__inner { padding-top: 72px; padding-bottom: 32px; }

.ik-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; }

.ik-footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ik-footer__logo { width: 88px; height: 88px; border-radius: 50%; background: var(--iskm-cream-50); display: grid; place-items: center; }
.ik-footer__logo img { width: 80px; height: 80px; }
/* the header's 4-line wordmark (header.css .ik-header__wm*), recoloured for the navy ground (2026-11-19) */
.ik-footer__wordmark { display: flex; flex-direction: column; color: var(--iskm-cream); }
.ik-footer__wm1 { font: 700 26px/1 var(--font-title); }
.ik-footer__wm2 { font: 700 20px/1 var(--font-title); }
.ik-footer__wm3 { margin-top: 10px; font: 500 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--iskm-ochre); }

.ik-footer__title { margin: 0 0 18px; font: 500 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--iskm-ochre); }

.ik-footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ik-footer__link { font: 400 15px/1.55 var(--font-body); color: var(--iskm-cream); text-decoration: none; }

.ik-footer__contacts { display: flex; flex-direction: column; gap: 12px; font: 400 15px/1.55 var(--font-body); color: var(--iskm-cream); }
.ik-footer__row { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: inherit; text-decoration: none; }
.ik-footer__row > span { min-width: 0; overflow-wrap: anywhere; }
.ik-footer__icon { flex-shrink: 0; margin-top: 3px; color: var(--iskm-ochre); }

.ik-footer__social { display: flex; gap: 10px; }
.ik-footer__max .ik-icon { width: 22px; height: 22px; }

.ik-footer__bottom {
    margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-on-inverse);
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    font: 400 13px/1.4 var(--font-body); color: var(--iskm-navy-200);
}
.ik-footer__meta { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.ik-footer__copy { min-width: 0; }
.ik-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ik-footer__legal-link {
    font: inherit; color: var(--iskm-navy-200); overflow-wrap: anywhere;
    text-decoration-color: var(--line-on-inverse); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.ik-footer__monogram { flex-shrink: 0; }

.ik-footer__link:hover,
a.ik-footer__row:hover { color: var(--iskm-cream); } /* neutralise the base a:hover colour */
.ik-footer__legal-link:hover { color: var(--iskm-navy-200); }
.ik-footer :focus-visible { outline-color: var(--iskm-ochre); }
@media (hover: hover) {
    .ik-footer__link:hover,
    a.ik-footer__row:hover { color: var(--iskm-ochre-200); }
    .ik-footer__legal-link:hover { color: var(--iskm-ochre-200); text-decoration-color: currentColor; }
}

@media not all and (min-width: 768px) {
    /* No forced single column (task 39): auto-fit already collapses to 1 column on phones
       and keeps 2-3 columns at ~488-767px, like the design export. */
    .ik-footer__nav { gap: 0; margin-block: -10px; }
    .ik-footer__link { display: flex; align-items: center; min-height: 44px; }
    /* one 44px rhythm for <p> and <a> contact rows (task 40); margin-block cancels the first row's padding under the title */
    .ik-footer__contacts { gap: 0; margin-block: -10px; }
    .ik-footer__row { min-height: 44px; padding-block: 10px; }
    /* legal links (task 41): one per row, 44px tap targets */
    .ik-footer__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ik-footer__legal { flex-direction: column; gap: 0; }
    .ik-footer__legal-link { display: inline-flex; align-items: center; min-height: 44px; }
}
