/*
 * landing-critical.css  ≈ 11 KB (unminified)
 * ---------------------------------------------------------------------------
 * Self-contained CSS for ALL guest / anonymous pages:
 *   GuestHome, About, Pricing, Marketplace, Contact, HelpCenter, Solutions,
 *   LoginForm partial, Footer, and guest-shop layout.
 *
 * Sources:  branding/shop/core.css  (tokens + layout + buttons + footer)
 *           css/nav-shared.css      (navbar visual enhancements)
 *           Bootstrap 5.1 subset    (grid, utilities, forms, card, collapse)
 *
 * site-bundle.css (product/dish/CRUD/menu styles) is NOT needed here;
 * it is preloaded with low priority for potential pre-login modals.
 * ---------------------------------------------------------------------------
 */

/* ===== 1. REBOOT ===== */
*, *::before, *::after { box-sizing: border-box; }
img, table, ul, ol, div { max-width: 100%; }

/* ===== 2. BRAND TOKENS (from core.css) ===== */
:root {
    --fa-site-max-width: 1720px;
    --fa-site-width: 95%;
    --fa-primary: #2e8b57;
    --fa-primary-dark: #1f5e3a;
    --fa-primary-rgb: 46,139,87;
    --fa-green-soft: #e7f9ef;
    --fa-green-soft-hover: #def5e7;
    --fa-green-soft-active: #d2efdc;
    --fa-border-soft: #dfeee1;
    --fa-border-strong: #b9d9c6;
    --fa-font: "Unbounded","Inter","Segoe UI",Arial,sans-serif;
    --fa-heading-weight: 400;
    --fa-muted: #557965;
    --bs-primary: var(--fa-primary);
    --bs-primary-rgb: var(--fa-primary-rgb);
    --fa-green: var(--fa-primary);
    --fa-green-dark: var(--fa-primary-dark);
    --fa-transition: .18s ease;
}

::selection { background: rgba(var(--fa-primary-rgb), .25); }

/* ===== 3. TYPOGRAPHY & LAYOUT (from core.css) ===== */
html, body, main, .fa-layout-main { max-width: 100vw; overflow-x: hidden; }

body {
    display: flex;
    flex-direction: column;
    font-family: var(--fa-font);
    -webkit-font-smoothing: antialiased;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 { font-weight: var(--fa-heading-weight, 400); }

/* ===== 4. CONTAINERS (from core.css + Bootstrap) ===== */
.container-fluid {
    width: var(--fa-site-width, 95%);
    max-width: var(--fa-site-max-width, 1720px);
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}
@media (min-width: 576px)  { .container { max-width: 540px;  } }
@media (min-width: 768px)  { .container { max-width: 720px;  } }
@media (min-width: 992px)  { .container { max-width: 960px;  } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ===== 5. BOOTSTRAP GRID ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

.col-auto  { flex: 0 0 auto; width: auto; }
.col-3     { flex: 0 0 auto; width: 25%;       }
.col-4     { flex: 0 0 auto; width: 33.3333%;  }
.col-6     { flex: 0 0 auto; width: 50%;       }
.col-12    { flex: 0 0 auto; width: 100%;      }

@media (min-width: 576px) {
    .col-sm-4  { flex: 0 0 auto; width: 33.3333%; }
    .col-sm-6  { flex: 0 0 auto; width: 50%;      }
    .col-sm-12 { flex: 0 0 auto; width: 100%;     }
}
@media (min-width: 768px) {
    .col-md-4  { flex: 0 0 auto; width: 33.3333%; }
    .col-md-6  { flex: 0 0 auto; width: 50%;      }
    .col-md-12 { flex: 0 0 auto; width: 100%;     }
}
@media (min-width: 992px) {
    .col-lg-3  { flex: 0 0 auto; width: 25%;       }
    .col-lg-4  { flex: 0 0 auto; width: 33.3333%;  }
    .col-lg-5  { flex: 0 0 auto; width: 41.6667%;  }
    .col-lg-6  { flex: 0 0 auto; width: 50%;       }
    .col-lg-7  { flex: 0 0 auto; width: 58.3333%;  }
    .col-lg-8  { flex: 0 0 auto; width: 66.6667%;  }
    .col-lg-9  { flex: 0 0 auto; width: 75%;       }
    .col-lg-12 { flex: 0 0 auto; width: 100%;      }
    .offset-lg-1 { margin-left: 8.3333%; }
}
@media (min-width: 1200px) {
    .col-xl-4  { flex: 0 0 auto; width: 33.3333%;  }
    .col-xl-6  { flex: 0 0 auto; width: 50%;       }
    .col-xl-12 { flex: 0 0 auto; width: 100%;      }
}

/* ===== 6. DISPLAY UTILITIES ===== */
.d-none         { display: none !important;         }
.d-block        { display: block !important;        }
.d-flex         { display: flex !important;         }
.d-inline-block { display: inline-block !important; }

@media (min-width: 576px) {
    .d-sm-none  { display: none !important;  }
    .d-sm-block { display: block !important; }
    .d-sm-flex  { display: flex !important;  }
}
@media (min-width: 768px) {
    .d-md-none  { display: none !important;  }
    .d-md-block { display: block !important; }
    .d-md-flex  { display: flex !important;  }
}
@media (min-width: 992px) {
    .d-lg-none  { display: none !important;  }
    .d-lg-block { display: block !important; }
    .d-lg-flex  { display: flex !important;  }
}
@media (min-width: 1200px) {
    .d-xl-none  { display: none !important;  }
    .d-xl-block { display: block !important; }
}

/* ===== 7. FLEX UTILITIES ===== */
.flex-row            { flex-direction: row !important;              }
.flex-column         { flex-direction: column !important;           }
.flex-wrap           { flex-wrap: wrap !important;                  }
.flex-shrink-0       { flex-shrink: 0 !important;                  }
.justify-content-center  { justify-content: center !important;     }
.justify-content-between { justify-content: space-between !important; }
.align-items-start   { align-items: flex-start !important;         }
.align-items-center  { align-items: center !important;             }
.align-items-stretch { align-items: stretch !important;            }



/* ===== 8. SPACING ===== */
.m-0   { margin: 0 !important;             }
.mt-1  { margin-top: .25rem !important;    }
.mt-2  { margin-top: .5rem !important;     }
.mt-3  { margin-top: 1rem !important;      }
.mt-4  { margin-top: 1.5rem !important;    }
.mt-auto { margin-top: auto !important;    }
.mb-0  { margin-bottom: 0 !important;      }
.mb-1  { margin-bottom: .25rem !important; }
.mb-2  { margin-bottom: .5rem !important;  }
.mb-3  { margin-bottom: 1rem !important;   }
.mb-4  { margin-bottom: 1.5rem !important; }
.mb-5  { margin-bottom: 3rem !important;   }
.me-1  { margin-right: .25rem !important;  }
.me-2  { margin-right: .5rem !important;   }
.ms-1  { margin-left: .25rem !important;   }
.ms-2  { margin-left: .5rem !important;    }
.ms-auto { margin-left: auto !important;   }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.p-0   { padding: 0 !important;            }
.p-2   { padding: .5rem !important;        }
.p-3   { padding: 1rem !important;         }
.p-4   { padding: 1.5rem !important;       }
.px-0  { padding-left: 0 !important; padding-right: 0 !important;   }
.px-3  { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-3  { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5  { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.ps-3  { padding-left: 1rem !important;    }
@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0 !important; }
    .px-lg-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* ===== 9. TEXT & TYPOGRAPHY ===== */
.text-center          { text-align: center !important;       }
.text-muted           { color: #6c757d !important;           }
.text-success         { color: #198754 !important;           }
.text-danger          { color: #dc3545 !important;           }
.text-decoration-none { text-decoration: none !important;    }
.small, small         { font-size: .875em;                   }
.fw-600               { font-weight: 600 !important;         }


/* ===== 10. WIDTH / BORDER / SHADOW ===== */
.w-100     { width: 100% !important;  }
.border-0  { border: 0 !important;    }
.border-success { border-color: #198754 !important; }
.shadow    { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;   }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;   }



/* ===== 11. BUTTONS (core.css + Bootstrap subset) ===== */
.btn-main {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .3s ease-in-out;
    color: #fff;
    background: var(--fa-primary);
    border: 1px solid var(--fa-primary);
}
.btn-main:hover {
    opacity: .9;
    background: var(--fa-primary-dark);
    border-color: var(--fa-primary-dark);
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn:hover { opacity: .9; }

.btn-primary {
    color: #fff;
    background-color: var(--fa-primary, #0d6efd);
    border-color: var(--fa-primary, #0d6efd);
}
.btn-primary:hover {
    color: #fff;
    background-color: var(--fa-primary-dark, #0b5ed7);
    border-color: var(--fa-primary-dark, #0a58ca);
}

.btn-success {
    color: #fff;
    background-color: var(--fa-primary);
    border-color: var(--fa-primary);
}
.btn-success:hover {
    color: #fff;
    background-color: var(--fa-primary-dark);
    border-color: var(--fa-primary-dark);
}

.btn-outline-success {
    color: var(--fa-primary);
    border-color: var(--fa-primary);
    background-color: transparent;
}
.btn-outline-success:hover {
    color: #fff;
    background-color: var(--fa-primary);
    border-color: var(--fa-primary);
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}
.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-link {
    color: var(--fa-primary, #0d6efd);
    text-decoration: underline;
    background-color: transparent;
    border-color: transparent;
}

.btn-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .3rem; }

/* ===== 12. CARD ===== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }

/* ===== 13. FORMS ===== */
.form-label { margin-bottom: .5rem; display: inline-block; }
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    appearance: none;
}
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
.form-check       { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: .125rem; }
.form-check-input { float: left; margin-left: -1.5em; width: 1em; height: 1em; margin-top: .25em; vertical-align: top; }
.form-check-label { cursor: pointer; }

/* ===== 14. NAVBAR COLLAPSE / TOGGLER ===== */
.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: .25rem;
    cursor: pointer;
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
.collapse:not(.show) { display: none; }
.nav-item { list-style: none; }
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler { display: none; }
    .navbar-expand-lg .navbar-collapse,
    .navbar-expand-lg .collapse { display: flex !important; }
}

/* ===== 15. TOPBAR LAYOUT ===== */
.fa-topbar {
    position: fixed; top: 0; left: 0;
    width: 100%; z-index: 1000;
    background: var(--fa-nav-bg);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fa-border);
    box-shadow: var(--fa-shadow);
    padding: .45rem 0;
}
.fa-topbar .navbar-inner { display:flex; align-items:center; width:100%; max-width:var(--fa-site-max-width); margin:0 auto; padding:0 24px; gap:28px; }
.fa-topbar .navbar-brand  { display:flex; align-items:center; gap:10px; text-decoration:none; white-space:normal; }
.fa-topbar .navbar-brand img { width:70px; height:auto; flex-shrink:0; border-radius:12px; aspect-ratio:1/1; }
.fa-topbar .nav-center    { flex:1 1 auto; display:flex; justify-content:center; }
.fa-topbar .navbar-nav    { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:10px; margin:0; padding:0; list-style:none; }
.fa-topbar .nav-link      { color:#2d5a3f; font-size:15.5px; font-weight:600; padding:.60rem 1.05rem; border-radius:14px; border:1px solid transparent; display:flex; align-items:center; gap:.40rem; line-height:1; white-space:nowrap; text-decoration:none; }
.fa-topbar .right-block   { display:flex; align-items:center; gap:10px; }

/* fa-layout-main — без margin-top, каждая страница сама управляет отступом */
.fa-layout-main { min-height: 60vh; }

/* ===== 16. NAV-SHARED RESPONSIVE ===== */
@media (max-width: 1320px) {
    .fa-topbar .nav-link { padding: .55rem .9rem; }
}
@media (max-width: 1100px) {
    .fa-topbar .navbar-inner { gap: 18px; }
    .fa-topbar .nav-link { font-size: 14.5px; }
}
@media (max-width: 991.98px) {
    .navbar.fa-topbar { height: auto; padding: .4rem 0 .8rem; }
    .fa-topbar .navbar-inner { flex-wrap: wrap; gap: 14px; }
    .fa-topbar .nav-center { order: 3; flex: 0 0 100%; justify-content: flex-start; }
    .fa-topbar .navbar-nav { flex-wrap: wrap; row-gap: 6px; }
    .fa-topbar .nav-link { padding: .55rem .85rem; font-size: .9rem; }

    .fa-topbar .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
        display: none;
    }
    .fa-topbar .nav-item-dropdown.open .nav-dropdown-menu { display: block; }
    .fa-topbar .nav-dropdown-menu li a { font-size: 0.85rem; padding: 6px 10px; }
}
@media (max-width: 575.98px) {
    .fa-topbar .navbar-brand img { width: 56px; }
    .fa-topbar .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100vw - 90px);
        overflow: hidden;
    }
    .fa-topbar .navbar-brand__text { overflow: hidden; }
    .fa-topbar .navbar-brand__name {
        font-size: 17px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fa-topbar .navbar-brand__tagline {
        font-size: 0.62rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== 17. FOOTER (from core.css) ===== */
.footer-table {
    width: 100%;
    max-width: var(--fa-site-max-width, 1720px);
    text-align: center;
    border-collapse: collapse;
    color: #fff;
    margin: 0 auto;
    padding: 0;
}
.footer-table td { padding: 20px; }
.footer-links { width: 1095px; text-align: left; }
.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.footer-links li { margin: 5px 15px; }
.footer-links a { text-decoration: none; color: #fff; white-space: nowrap; }
.footer-contacts { width: 825px; text-align: center; }
.footer-contacts p { margin: 5px 0; }
.social-icons { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.social-icons img { width: 24px; }
.footer-bottom { padding: 10px; border-top: 1px solid #fff; text-align: center; }
.footer-bottom p { margin: 5px 0; }



/* ===== 18. CORE.CSS RESPONSIVE (container-fluid + footer) ===== */
@media (max-width: 991.98px) {
    .container-fluid,
    .footer-table,
    .footer-links {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden !important;
    }
    /* fa-layout-main только убираем боковые паддинги, margin-top не трогаем! */
    .fa-layout-main {

        overflow-x: hidden !important;
    }
}
@media (max-width: 575.98px) {
    .container-fluid,
    .footer-table,
    .footer-links {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* ===== 19. BRAND UTILITIES (from core.css) ===== */
.text-muted-soft { color: var(--fa-muted, #4b5f83) !important; }
.text-brand      { color: var(--fa-primary) !important; }


