:root {
    --ink: #10221f;
    --muted: #60736f;
    --brand: #087f6f;
    --brand-dark: #075e54;
    --mint: #dcf8ef;
    --line: #dce9e6;
    --paper: #f5faf8;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin: auto;
}

.nav {
    background: #fffffff2;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.32rem;
    font-weight: 800;
    text-decoration: none;
}

.logo span {
    color: var(--brand);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-actions a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.btn-primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.hero {
    padding: 72px 0 38px;
    background:
        radial-gradient(circle at 80% 0, #c5f4e3 0, transparent 35%),
        linear-gradient(145deg, #fbfffe, #edf8f5);
}

.eyebrow {
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    margin: 12px 0;
}

.hero p {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 680px;
}

.search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px auto;
    gap: 10px;
    margin-top: 30px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 18px 45px #123e3514;
}

.search input,
.search select {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: #f6f9f8;
    color: var(--ink);
    font: inherit;
    padding: 0 14px;
    outline: none;
}

.search input:focus,
.search select:focus {
    box-shadow: 0 0 0 2px #087f6f55;
}

.content {
    padding: 38px 0 78px;
}

.filter-row {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scrollbar-width: thin;
}

.filter {
    white-space: nowrap;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.filter.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

.results-head h2 {
    margin: 0;
    font-size: 1.4rem;
}

.results-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.store-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 38px #173f3710;
    transition: 0.2s;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px #173f371c;
}

.cover {
    height: 8px;
    background: var(--accent, var(--brand));
}

.store-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.store-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent, var(--brand)) 12%, white);
    color: var(--accent, var(--brand));
    font-weight: 900;
    font-size: 1.15rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-title {
    min-width: 0;
}

.store-title h3 {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.14rem;
}

.sector {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
}

.description {
    min-height: 72px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.metrics {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.store-card .btn {
    margin-top: 17px;
    width: 100%;
}

.empty {
    padding: 60px 24px;
    border: 1px dashed #b8ccc7;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.empty .symbol {
    font-size: 2.5rem;
}

.empty h2 {
    margin: 10px 0 5px;
}

.empty p {
    color: var(--muted);
}

.pager-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
}

.pager-summary {
    color: var(--muted);
    font-size: 0.82rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.page-item.active .page-link {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.page-item.disabled .page-link {
    opacity: 0.42;
    pointer-events: none;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .nav-actions > a:not(.btn) {
        display: none;
    }

    .hero {
        padding: 50px 0 28px;
    }

    .search {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .results-head {
        align-items: start;
        flex-direction: column;
    }

    .pager-wrap {
        align-items: center;
        flex-direction: column;
    }

    .pager-summary {
        text-align: center;
    }

    .pagination {
        max-width: 100%;
    }

    .page-item.number:not(.active) {
        display: none;
    }

    .page-link {
        min-width: 44px;
    }

    .description {
        min-height: auto;
    }
}

.mobile-actions,
.menu-toggle {
    display: none;
}

.nav-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
}

.logo {
    color: #10221f !important;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.logo span {
    color: #087f6f !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-actions a {
    color: #58706b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
}

.nav-actions .btn-primary {
    border-color: #087f6f;
    background: #087f6f;
    color: #fff !important;
}

.nav-actions .btn:not(.btn-primary) {
    border: 1px solid #dbe9e5;
    background: #fff;
    color: #10221f;
}

@media (max-width: 800px) {
    .nav-inner {
        position: relative;
    }

    .nav-actions {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: -18px;
        right: -18px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px 18px 20px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 35px #102d281c;
    }

    .nav-actions.open {
        display: flex;
    }

    .nav-actions > a:not(.btn) {
        display: block;
        padding: 11px 4px;
    }

    .nav-actions .btn {
        margin-top: 8px;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-login {
        padding: 9px 14px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        display: block;
        padding: 11px;
        border: 1px solid var(--line);
        border-radius: 11px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
    }

    .menu-toggle i,
    .menu-toggle:before,
    .menu-toggle:after {
        content: "";
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        transition: 0.2s;
    }

    .menu-toggle i {
        margin: 4px 0;
    }

    .menu-toggle[aria-expanded="true"] i {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"]:before {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"]:after {
        transform: translateY(-6px) rotate(-45deg);
    }
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 112px;
    height: auto;
}
