/* Підвал сайту — один модуль на весь сайт (27.10.2026).
   Розмітка — resources/views/public/sublayouts/footer.blade.php: корпоративні сторінки
   вставляють її напряму, каталог (Nuxt) бере готовий HTML з /api/layout/footer.
   Файл підключає сама розмітка підвалу, тож він теж один на обидві частини.

   - Розміри лише в px: у корпоративній частині 1rem = 10px, у каталозі 16px.
     Через rem підвал каталогу був в 1,6 раза більший (на телефоні 1533 px заввишки).
   - Усі правила починаються з .site-footer (специфічність від 0,2,0), щоб їх не
     перебивали styles.css (там є img{width:26.5rem} до 1023px, через нього лого
     було 265 px) і Vuetify (.v-application p / a / ul — 0,1,1).
   - CSS віддається з кешем на рік: після кожної зміни — нова адреса (?v=N) у footer.blade.php.
   - Шрифти — відносними шляхами (../fonts): на деві сайт живе в підтеці /irbis/. */

@font-face {
    font-family: "Site Footer";
    src: url(../fonts/proximanova/ProximaNova-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Site Footer";
    src: url(../fonts/proximanova/ProximaNova-Semibold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Site Footer";
    src: url(../fonts/proximanova/ProximaNova-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

/* styles.css ставить КОЖНОМУ елементу `font: 1.5rem ProximaNova-Regular` (до 1023px — 1.3rem),
   тож без цього шрифт усередині підвалу не успадковувався б від .site-footer. */
.site-footer * {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.site-footer {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 48px 0 40px;
    background: #0a0a3a;
    color: #f3f3f3;
    font-family: "Site Footer", "ProximaNova-Regular", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

.site-footer p,
.site-footer ul,
.site-footer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* styles.css: li { width: max-content; margin: 1rem 0 } і синя крапка в li::before. */
.site-footer li {
    position: static;
    width: auto;
}

.site-footer li::before {
    content: none;
    display: none;
}

.site-footer img {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

/* Сітка. Розмітка одна, місця блоків задають області:
   десктоп — лого | Компанія | Продукція | Контакти | соцмережі, нижче риска й копірайт. */
.site-footer .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 320px) repeat(3, minmax(0, 1fr)) 24px;
    grid-template-areas:
        "brand company products contacts social"
        "line  line    line     line     line"
        "copy  copy    copy     copy     copy";
    column-gap: 32px;
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-footer .site-footer__brand {
    grid-area: brand;
    display: grid;
    grid-template-areas: "logo" "slogan" "iso";
    justify-items: start;
    align-content: start;
    row-gap: 24px;
    padding-right: 32px;
}

.site-footer .site-footer__logo {
    grid-area: logo;
    display: block;
}

.site-footer .site-footer__logo img {
    width: 144px;
    height: 40px;
}

.site-footer .site-footer__slogan {
    grid-area: slogan;
    max-width: 320px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.site-footer .site-footer__iso {
    grid-area: iso;
    display: block;
    cursor: zoom-in;
}

.site-footer .site-footer__iso img {
    width: 97px;
    height: 49px;
}

.site-footer .site-footer__iso-toggle {
    display: none;
}

.site-footer .site-footer__iso-big {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 10, 58, 0.8);
    cursor: zoom-out;
}

.site-footer .site-footer__iso-toggle:checked ~ .site-footer__iso-big {
    display: flex;
}

.site-footer .site-footer__iso-big img {
    width: auto;
    height: auto;
    max-width: min(500px, 100%);
    max-height: 100%;
    box-shadow: 0 0 10px #000;
}

.site-footer .site-footer__col--company { grid-area: company; }
.site-footer .site-footer__col--products { grid-area: products; }
.site-footer .site-footer__col--contacts { grid-area: contacts; }

.site-footer .site-footer__title {
    margin-bottom: 16px;
    color: #d0ef6b;
    font-size: 14px;
    line-height: 20px;
}

.site-footer .site-footer__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-footer .site-footer__list a {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    transition: color 0.2s;
}

.site-footer .site-footer__list a:hover,
.site-footer .site-footer__list a:focus-visible {
    color: #d0ef6b;
}

/* Номер телефону не розривати посеред цифр. */
.site-footer .site-footer__list a[href^="tel:"] {
    white-space: nowrap;
}

.site-footer .site-footer__social {
    grid-area: social;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.site-footer .site-footer__social a {
    display: block;
    transition: transform 0.2s;
}

.site-footer .site-footer__social a:hover {
    transform: scale(1.1);
}

.site-footer .site-footer__social svg {
    display: block;
    width: 24px;
    height: 24px;
}

.site-footer .site-footer__line {
    grid-area: line;
    height: 1px;
    margin-top: 48px;
    background: #d0ef6b;
}

.site-footer .site-footer__copy {
    grid-area: copy;
    margin-top: 32px;
    color: #8b90a0;
    font-size: 14px;
    line-height: 20px;
}

/* 1024–1279: лого вужче, щоб трьом колонкам меню вистачило місця. */
@media (max-width: 1279px) {
    .site-footer .site-footer__inner {
        grid-template-columns: minmax(0, 240px) repeat(3, minmax(0, 1fr)) 24px;
        column-gap: 24px;
    }

    .site-footer .site-footer__brand {
        padding-right: 16px;
    }
}

/* Планшет і вузьке вікно ноутбука: лого, гасло й сертифікат одним рядком,
   під ними три колонки меню, унизу копірайт і соцмережі. */
@media (max-width: 1023px) {
    .site-footer {
        padding: 40px 0 32px;
    }

    .site-footer .site-footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "brand    brand    brand"
            "company  products contacts"
            "line     line     line"
            "copy     copy     social";
        column-gap: 24px;
        padding: 0 24px;
    }

    .site-footer .site-footer__brand {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo slogan iso";
        align-items: center;
        column-gap: 32px;
        margin-bottom: 40px;
        padding-right: 0;
    }

    .site-footer .site-footer__slogan {
        font-size: 16px;
        line-height: 22px;
    }

    .site-footer .site-footer__line {
        margin-top: 40px;
    }

    .site-footer .site-footer__copy {
        align-self: center;
        margin-top: 24px;
    }

    /* Відступ праворуч — під кнопку «вгору», що висить у правому нижньому куті. */
    .site-footer .site-footer__social {
        flex-direction: row;
        justify-content: flex-end;
        align-self: center;
        margin-top: 24px;
        padding-right: 56px;
    }
}

/* Телефон: лого й сертифікат угорі, гасло під ними; Компанія і Продукція
   двома колонками, Контакти на всю ширину. Пункти вищі — щоб легко влучати пальцем. */
@media (max-width: 767px) {
    .site-footer {
        padding: 32px 0 24px;
    }

    .site-footer .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "brand    brand"
            "company  products"
            "contacts contacts"
            "line     line"
            "social   social"
            "copy     copy";
        column-gap: 16px;
        padding: 0 16px;
    }

    .site-footer .site-footer__brand {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo   iso"
            "slogan slogan";
        row-gap: 16px;
        column-gap: 16px;
        margin-bottom: 32px;
    }

    .site-footer .site-footer__iso img {
        width: 80px;
        height: 40px;
    }

    .site-footer .site-footer__title {
        margin-bottom: 6px;
    }

    .site-footer .site-footer__list {
        gap: 0;
    }

    .site-footer .site-footer__list a {
        padding: 8px 0;
    }

    .site-footer .site-footer__col--contacts {
        margin-top: 24px;
    }

    .site-footer .site-footer__line {
        margin-top: 32px;
    }

    .site-footer .site-footer__social {
        justify-content: flex-start;
        gap: 24px;
        margin-top: 24px;
    }

    .site-footer .site-footer__social svg {
        width: 32px;
        height: 32px;
    }

    .site-footer .site-footer__copy {
        margin-top: 16px;
        font-size: 13px;
    }
}
