/*
 * Site chrome — header, footer, toasts — with one set of rules for every page (partials/header.php,
 * partials/site_footer.php, layout #site-toasts). Loaded last in <head>, after page CSS and the
 * legacy globals.css / app.css, and scoped to the element ids, so no page can restyle them.
 * Header after the reference design (depoplace.xyz): logo, menu, "We are in beta" in the middle,
 * "Choose magazine", the icon row (search, notifications, messages, inbox, message sound), avatar.
 */
@font-face { font-family: "Lazurski"; src: url("/demo52/fonts/LazurskiRegular.woff2") format("woff2"), url("/demo52/fonts/LazurskiRegular.woff") format("woff"); font-weight: 400; font-display: swap; }

/* Reset of what page CSS sets for every element (globals.css `* { color: #fff }`, …): zero
   specificity, so the rules below still apply. */
:where(#site-header, #site-footer, #site-toasts) :where(*) { color: inherit; font-family: inherit; box-sizing: border-box; }
:where(#site-header, #site-toasts) :where(a) { text-decoration: none; }

/* ── header: css/header.css ── */

/* ── footer (front/public/styles/Footer.module.scss) ───────────────── */
#site-footer { position: relative; color: #949494; background: rgb(24 23 26); }
#site-footer .site-footer__grid {
    display: grid;
    grid-template-columns: 21.75rem 18.75rem 9.75rem 10.25rem 1fr;
    grid-template-areas: "about contacts depo help cta";
    gap: 3.5%;
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 106px 0 60px;
}
#site-footer .site-footer__about { grid-area: about; }
/* Footer with other than two link columns (admin Templates → Footer): auto grid, no fixed areas. */
#site-footer .site-footer__grid--auto { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)) !important; grid-template-areas: none !important; gap: 2.5rem 3% !important; }
#site-footer .site-footer__grid--auto > * { grid-area: auto !important; }
#site-footer .site-footer__contacts { grid-area: contacts; }
#site-footer .site-footer__menu--depo { grid-area: depo; }
#site-footer .site-footer__menu--help { grid-area: help; }
#site-footer .site-footer__cta { grid-area: cta; display: flex; flex-direction: column; align-items: center; }
#site-footer .site-footer__logo { width: 250px; height: 57px; padding-left: 4px; margin-bottom: 38px; }
#site-footer .site-footer__about p { font-size: 16px; line-height: 1.75; color: #949494; }
#site-footer .site-footer__title {
    display: block; padding-bottom: 12px; margin-top: 5px; color: #dadada;
    font-size: 13px; font-weight: 700; line-height: 18px; text-transform: uppercase; letter-spacing: 0.07em;
}
#site-footer .site-footer__text { color: #dadada; line-height: 1.87; }
#site-footer .site-footer__text a { color: #dadada; }
#site-footer .site-footer__menu ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; row-gap: 2px; }
#site-footer .site-footer__menu a { color: #dadada; font-size: 16px; line-height: 150%; transition: color var(--trans); }
#site-footer .site-footer__menu a:hover,
#site-footer .site-footer__menu a:focus-visible { color: var(--green); }
#site-footer .site-footer__menu a.is-accent { color: var(--green); }
#site-footer .site-footer__contact {
    display: flex; align-items: center; justify-content: center; min-width: 280px; height: 45px; padding-inline: 24.5px;
    margin: 12px auto 24px; border-radius: 25px; font: 700 20px/1.2 "Lazurski", var(--font-head);
    text-transform: uppercase; color: var(--yellow);
    background: linear-gradient(180deg, rgb(70 154 88 / 0.9) 0%, rgb(24 52 30 / 0.9) 100%);
    transition: background var(--trans);
}
#site-footer .site-footer__contact:hover,
#site-footer .site-footer__contact:focus-visible { background: linear-gradient(180deg, rgb(70 154 88 / 0.6) 0%, rgb(24 52 30 / 0.6) 100%); }
#site-footer .site-footer__socials { display: flex; gap: 15px; justify-content: center; }
#site-footer .site-footer__socials a { display: flex; transition: opacity var(--trans); }
#site-footer .site-footer__socials a:hover { opacity: 0.75; }
#site-footer .site-footer__copyright { display: flex; flex-direction: column; align-items: center; padding-bottom: 106px; }
#site-footer .site-footer__copyright p { font-size: 12px; line-height: 183%; text-align: center; color: #949494; }
#site-footer .footer-lang { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
#site-footer .footer-lang select {
    font-size: 12px; line-height: 1.5; color: #949494; background: transparent; border: 1px solid rgb(148 148 148 / 0.4);
    border-radius: 6px; padding: 3px 6px; cursor: pointer; transition: color var(--trans), border-color var(--trans);
}
#site-footer .footer-lang select:hover,
#site-footer .footer-lang select:focus-visible { color: #dadada; border-color: #dadada; }
#site-footer .footer-lang select option { color: #18171a; }
#site-footer .footer-lang__go { font-size: 12px; color: #dadada; background: transparent; border: 1px solid rgb(148 148 148 / 0.4); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
#site-footer .footer-lang__go:hover { color: var(--green); }
#site-footer .site-footer__beta {
    display: inline-flex; align-items: center; height: 34px; padding: 0 18px; margin-top: 16px;
    border: 1px solid var(--yellow); border-radius: 50px; color: var(--yellow);
    font: 700 14px/1 "Lazurski", sans-serif; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 1680px) {
    #site-footer .site-footer__grid { grid-template-columns: 15.75rem 15.25rem 7.25rem 9.25rem 1fr; gap: 5%; padding: 100px 35px 50px; max-width: 85rem; }
}
@media (max-width: 991px) {
    #site-footer .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "about about" "depo help" "contacts contacts" "cta cta";
        gap: 24px; max-width: 500px; padding: 50px 0 40px;
    }
    #site-footer .site-footer__logo { margin-bottom: 40px; }
    #site-footer .site-footer__about p { font-size: 14px; }
    #site-footer .site-footer__title { font-size: 16px; }
    #site-footer .site-footer__contacts { padding-top: 1rem; }
    #site-footer .site-footer__contact { width: 100%; max-width: calc(100vw - 32px); margin: 24px auto; }
    #site-footer .site-footer__copyright { padding-bottom: 60px; }
}

/* toasts */
#site-toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: auto; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
#site-toasts .toast {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius);
    background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--text, #fff); font: 400 14px/1.4 "Lato", sans-serif; cursor: default;
    animation: toast-in 300ms ease both;
}
#site-toasts a.toast { cursor: pointer; }
#site-toasts .toast--success { border-left: 4px solid #7bd38f; }
#site-toasts .toast--error { border-left: 4px solid var(--danger); }
#site-toasts .toast.is-leaving { animation: toast-out 250ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }


/* ── install banner of the web app (public/js/pwa.js) ── */
.pwa-install {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 950;
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px;
    background: #27262b; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
    color: #fff; font: 400 14px/1.35 "Lato", sans-serif;
    transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.pwa-install.is-visible { transform: none; opacity: 1; }
.pwa-install__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.pwa-install__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pwa-install__text strong { font-weight: 700; }
.pwa-install__text span { color: rgb(255 255 255 / 0.65); font-size: 13px; }
.pwa-install__go { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #469a58; color: #fff; font: 700 14px/1 "Lato", sans-serif; cursor: pointer; }
.pwa-install__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgb(255 255 255 / 0.6); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pwa-install { transition: none; } }
