/* =========================================================
   СВФУ УСЛУГИ
   ОСНОВНОЙ CSS
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "Roboto", Arial, sans-serif;

    background-color: #eeeeee;
    color: #222222;

    line-height: 1.5;

    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HEADER / NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    min-height: 72px;

    padding: 0 40px;

    background: #09304a;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 100;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   LOGO
   ========================================================= */

.navbar-left {
    flex: 0 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;

    color: #ffffff;

    text-decoration: none;

    font-size: 1.35rem;
    font-weight: 700;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.86;
}


/* =========================================================
   CENTRAL NAVIGATION
   ========================================================= */

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0 auto;
}

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    color: rgba(255, 255, 255, 0.82);

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 5px;

    height: 2px;

    background-color: #ffffff;

    border-radius: 10px;
}


/* =========================================================
   RIGHT HEADER
   ========================================================= */

.navbar-right {
    display: flex;
    align-items: center;

    gap: 18px;

    flex: 0 0 auto;
}


/* =========================================================
   AUTH BUTTONS
   ========================================================= */

.auth-buttons {
    display: flex;
    align-items: center;

    gap: 8px;
}

.btn-outline-light {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;

    background: transparent;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}


/* =========================================================
   CART BUTTON
   ========================================================= */

.cart-button {
    width: 43px;
    height: 43px;

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cart-button:hover {
    background-color: rgba(255, 255, 255, 0.12);

    transform: translateY(-1px);
}

.cart-button i {
    font-size: 1rem;
}

.cart-counter {
    position: absolute;

    top: -7px;
    right: -7px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #e53935;

    color: #ffffff;

    border: 2px solid #09304a;
    border-radius: 50%;

    font-size: 0.68rem;
    font-weight: 700;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;

    background: transparent;

    color: #ffffff;

    font-size: 1.1rem;
}


/* =========================================================
   CATEGORY NAVIGATION
   ========================================================= */

.category-navigation {
    width: 100%;
    min-height: 58px;

    padding: 5px 25px;

    background-color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: row;
    flex-wrap: nowrap;

    gap: 42px;

    border-bottom: 1px solid #dddddd;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);

    position: relative;
    z-index: 90;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;

    flex: 0 0 auto;
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.dropbtn {
    min-height: 44px;

    padding: 6px 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    background: transparent;

    color: #09304a;

    font-size: 0.94rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.dropbtn > span {
    display: flex;
    align-items: center;

    gap: 7px;
}

.dropbtn > span i {
    font-size: 0.88rem;
}

.dropbtn > i {
    font-size: 0.62rem;

    transition: transform 0.2s ease;
}

.dropdown.open .dropbtn {
    color: #155a7a;
}

.dropdown.open .dropbtn > i {
    transform: rotate(180deg);
}

/* Наведение — только там, где есть мышь (на телефоне hover «залипает») */
@media (hover: hover) {

    .dropdown:hover .dropbtn {
        color: #155a7a;
    }

    .dropdown:hover .dropbtn > i {
        transform: rotate(180deg);
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}


/* =========================================================
   DROPDOWN CONTENT
   ========================================================= */

.dropdown-content {
    display: none;

    position: absolute;

    top: calc(100% + 1px);
    left: 50%;

    transform: translateX(-50%);

    width: max-content;
    min-width: 245px;

    padding: 8px;

    background-color: #ffffff;

    border: 1px solid #e0e5e8;

    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.14);

    z-index: 200;
}

.dropdown.open .dropdown-content {
    display: block;
}


/* =========================================================
   DROPDOWN LINKS
   ========================================================= */

.dropdown-content a {
    display: block;

    padding: 10px 12px;

    color: #09304a;

    text-decoration: none;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f0f6fa;

    color: #155a7a;

    padding-left: 16px;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    position: absolute;

    top: 72px;
    right: 15px;

    width: 270px;

    padding: 10px;

    background-color: #ffffff;

    border: 1px solid #e1e5e8;
    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.18);

    z-index: 300;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding: 9px 12px;

    color: #09304a;

    text-decoration: none;

    border-radius: 8px;

    font-size: 0.92rem;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-menu a:hover {
    background-color: #f0f6fa;

    padding-left: 16px;
}

.mobile-menu a i {
    width: 20px;

    text-align: center;

    color: #155a7a;
}

.mobile-menu-divider {
    height: 1px;

    margin: 8px 5px;

    background-color: #e4e8eb;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.overlay {
    position: fixed;

    inset: 0;

    background-color: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   CART PANEL
   ========================================================= */

.cart-panel {
    position: fixed;

    top: 0;
    right: 0;

    width: 420px;
    max-width: 92vw;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: #ffffff;

    box-shadow:
        -10px 0 35px rgba(0, 0, 0, 0.18);

    transform: translateX(105%);

    transition: transform 0.3s ease;

    z-index: 600;
}

.cart-panel.open {
    transform: translateX(0);
}


/* =========================================================
   CART HEADER
   ========================================================= */

.cart-header {
    min-height: 72px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #09304a;

    color: #ffffff;
}

.cart-header h2 {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 1.2rem;
    font-weight: 600;
}

.close-cart {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 1rem;

    transition: background-color 0.2s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items {
    flex: 1;

    padding: 20px;

    overflow-y: auto;
}

.empty-cart {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #7b858c;
}

.empty-cart > i {
    margin-bottom: 15px;

    color: #b7c1c7;

    font-size: 3rem;
}

.empty-cart p {
    margin-bottom: 5px;

    color: #34424b;

    font-size: 1.05rem;
    font-weight: 600;
}

.empty-cart span {
    max-width: 260px;

    font-size: 0.88rem;

    line-height: 1.5;
}


/* =========================================================
   CART FOOTER
   ========================================================= */

.cart-footer {
    padding: 18px 20px 22px;

    border-top: 1px solid #e2e5e7;

    background-color: #ffffff;
}

.cart-total {
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #47545c;

    font-size: 1rem;
}

.cart-total strong {
    color: #09304a;

    font-size: 1.25rem;
}

.open-cart-page {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background-color: #09304a;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.open-cart-page:hover {
    background-color: #155a7a;

    transform: translateY(-1px);
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    width: min(1320px, calc(100% - 48px));

    margin: 0 auto;

    padding: 35px 0 55px;
}


/* =========================================================
   FEATURED CARD
   ========================================================= */

.featured-card {
    min-height: 330px;

    margin-bottom: 55px;

    padding: 42px 45px;

    display: flex;
    align-items: stretch;
    justify-content: space-between;

    gap: 40px;

    background:
        linear-gradient(
            135deg,
            #09304a 0%,
            #0e4562 55%,
            #155a7a 100%
        );

    border-radius: 22px;

    color: #ffffff;

    overflow: hidden;

    position: relative;

    box-shadow:
        0 12px 30px rgba(9, 48, 74, 0.22);
}

.featured-card::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -140px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
}

.featured-info {
    position: relative;
    z-index: 1;

    max-width: 760px;

    display: flex;
    flex-direction: column;
}

.featured-label {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 14px;

    padding: 6px 11px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.13);

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-info h1 {
    margin-bottom: 12px;

    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;

    font-weight: 700;
}

.featured-info > p {
    margin-bottom: 24px;

    max-width: 620px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1rem;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 22px;

    margin-bottom: auto;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.9rem;
}

.featured-meta span {
    display: flex;
    align-items: center;

    gap: 7px;
}

.featured-meta i {
    font-size: 0.82rem;
}

.featured-bottom {
    margin-top: 30px;

    display: flex;
    align-items: center;

    gap: 18px;
}

.date-badge {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 11px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 0.8rem;
}

.featured-price {
    font-size: 1.55rem;
    font-weight: 700;
}

.featured-action {
    position: relative;
    z-index: 2;

    min-width: 185px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    gap: 10px;
}

.btn-light,
.btn-featured-cart {
    min-height: 47px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 20px;

    border-radius: 9px;

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.btn-light {
    background-color: #ffffff;

    color: #09304a;
}

.btn-light:hover {
    background-color: #f1f4f5;

    transform: translateY(-2px);
}

.btn-featured-cart {
    border: 1px solid rgba(255, 255, 255, 0.5);

    background-color: transparent;

    color: #ffffff;
}

.btn-featured-cart:hover {
    background-color: rgba(255, 255, 255, 0.12);

    transform: translateY(-2px);
}


/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.products-section {
    margin-bottom: 60px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    margin-bottom: 23px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: #71808a;

    font-size: 0.76rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-left: 13px;

    border-left: 4px solid #09304a;

    color: #09304a;

    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;

    line-height: 1.2;
}

.section-title i {
    font-size: 1.05rem;
}

.view-all {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #155a7a;

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.view-all:hover {
    color: #09304a;

    gap: 11px;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    min-width: 0;

    background-color: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 13px 30px rgba(0, 0, 0, 0.12);
}

.product-card-link {
    height: 100%;

    display: flex;
    flex-direction: column;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-image {
    width: 100%;
    height: 205px;

    overflow: hidden;

    background-color: #e9eff2;

    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}


/* =========================================================
   PRODUCT PLACEHOLDER
   ========================================================= */

.product-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #e9f0f4,
            #dce7ed
        );

    color: #78909c;

    font-size: 3rem;
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.product-content {
    min-height: 210px;

    padding: 19px;

    display: flex;
    flex-direction: column;
}

.product-category {
    margin-bottom: 7px;

    color: #155a7a;

    font-size: 0.73rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-content h3 {
    margin-bottom: 8px;

    color: #17242c;

    font-size: 1.05rem;
    font-weight: 700;

    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.product-content p {
    margin-bottom: 16px;

    color: #69777f;

    font-size: 0.84rem;

    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.product-bottom {
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.price {
    color: #09304a;

    font-size: 1.13rem;
    font-weight: 700;

    white-space: nowrap;
}

.product-arrow {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #edf4f7;

    color: #155a7a;

    font-size: 0.78rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.product-card:hover .product-arrow {
    background-color: #09304a;

    color: #ffffff;

    transform: translateX(2px);
}


/* =========================================================
   RENT FILTER
   ========================================================= */

.filter-bar {
    margin-bottom: 15px;

    padding: 16px 18px;

    display: flex;
    align-items: flex-end;

    gap: 14px;

    background-color: #ffffff;

    border-radius: 15px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);
}

.filter-group {
    flex: 1;
    min-width: 130px;
}

.filter-group label {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 6px;

    color: #53616a;

    font-size: 0.76rem;
    font-weight: 600;
}

.filter-group label i {
    color: #155a7a;
}

.filter-group input,
.filter-group select {
    width: 100%;
    height: 42px;

    padding: 0 11px;

    border: 1px solid #d9e0e4;
    border-radius: 8px;

    outline: none;

    background-color: #ffffff;

    color: #26343c;

    font-size: 0.86rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #155a7a;

    box-shadow:
        0 0 0 3px rgba(21, 90, 122, 0.1);
}


/* =========================================================
   BLUE BUTTON
   ========================================================= */

.btn-blue {
    height: 42px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: none;
    border-radius: 8px;

    background-color: #09304a;

    color: #ffffff;

    font-size: 0.84rem;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.btn-blue:hover {
    background-color: #155a7a;

    transform: translateY(-1px);
}


/* =========================================================
   AVAILABLE COUNT
   ========================================================= */

.available-count {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 0 5px;

    color: #5d6a72;

    font-size: 0.8rem;

    white-space: nowrap;
}

.available-count i {
    color: #36a269;

    font-size: 0.48rem;
}

.available-count strong {
    color: #09304a;
}


/* =========================================================
   FILTER CHIPS
   ========================================================= */

.filter-chips {
    margin-bottom: 20px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.filter-chip {
    min-height: 34px;

    padding: 0 13px;

    border: 1px solid #d8e0e4;
    border-radius: 20px;

    background-color: #ffffff;

    color: #596870;

    font-size: 0.78rem;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.filter-chip:hover {
    border-color: #155a7a;

    color: #155a7a;
}

.filter-chip.active {
    border-color: #09304a;

    background-color: #09304a;

    color: #ffffff;
}


/* =========================================================
   ABOUT / CONTACTS
   ========================================================= */

.about-contacts {
    margin-top: 20px;
    margin-bottom: 10px;

    padding: 38px 40px;

    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 70px;

    background-color: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.about h2,
.contacts h2 {
    margin-bottom: 14px;

    color: #09304a;

    font-size: 1.55rem;
}

.about p {
    max-width: 700px;

    margin-bottom: 12px;

    color: #66747c;

    font-size: 0.9rem;

    line-height: 1.65;
}


/* =========================================================
   CONTACT LINKS
   ========================================================= */

.contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-link {
    width: 100%;

    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #46545c;

    text-decoration: none;

    font-size: 0.9rem;

    border-bottom: 1px solid #edf0f2;

    transition:
        color 0.2s ease;
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    color: #155a7a;
}

.contact-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background-color: #edf4f7;

    color: #155a7a;

    font-size: 0.78rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;

    padding: 42px 25px 25px;

    background-color: #0a2a5e;

    color: #ffffff;
}

.footer-content {
    width: min(1100px, 100%);

    margin: 0 auto;

    text-align: center;
}

.footer-logo {
    margin-bottom: 7px;

    font-size: 1.35rem;
    font-weight: 700;
}

.footer-content > p {
    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.84rem;
}

.footer-links {
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);

    text-decoration: none;

    font-size: 0.8rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.75rem;
}


/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
   ========================================================= */

@media (max-width: 1150px) {

    .navbar {
        padding: 0 25px;
    }

    .navbar-center {
        gap: 2px;
    }

    .nav-link {
        padding: 0 10px;

        font-size: 0.88rem;
    }

    .auth-buttons {
        gap: 5px;
    }

    .btn-outline-light {
        padding: 0 10px;

        font-size: 0.8rem;
    }

    .category-navigation {
        gap: 25px;
    }

    .dropbtn {
        font-size: 0.88rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        min-height: 66px;

        padding: 0 18px;
    }

    .navbar-center {
        display: none;
    }

    .navbar-right {
        margin-left: auto;

        margin-right: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        top: 66px;
    }

    .category-navigation {
        min-height: 54px;

        gap: 18px;

        padding: 4px 12px;
    }

    .dropbtn {
        min-height: 42px;

        padding: 5px 2px;

        font-size: 0.78rem;

        gap: 6px;
    }

    .dropbtn > span {
        gap: 5px;
    }

    .dropbtn > span i {
        font-size: 0.72rem;
    }

    .dropbtn > i {
        font-size: 0.55rem;
    }

    .container {
        width: min(100% - 30px, 760px);

        padding-top: 25px;
    }

    .featured-card {
        padding: 32px;

        gap: 25px;
    }

    .featured-action {
        min-width: 155px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-group {
        flex: 1 1 calc(33.333% - 10px);
    }

    .btn-blue {
        flex: 0 0 auto;
    }

    .available-count {
        flex: 1 0 100%;
    }

    .about-contacts {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 30px;
    }
}


/* =========================================================
   LARGE PHONES
   ========================================================= */

@media (max-width: 720px) {

    .navbar {
        min-height: 62px;

        padding: 0 14px;
    }

    .logo {
        font-size: 1.12rem;
    }

    .navbar-right {
        gap: 8px;

        margin-right: 7px;
    }

    .auth-buttons {
        display: none;
    }

    .cart-button {
        width: 39px;
        height: 39px;
    }

    .mobile-menu-button {
        width: 39px;
        height: 39px;
    }

    .mobile-menu {
        top: 62px;

        right: 10px;

        width: min(270px, calc(100vw - 20px));
    }

    /*
       Категории остаются горизонтальными.
       Уменьшаем расстояния, но не переводим
       их в вертикальный список.
    */

    .category-navigation {
        min-height: 49px;

        gap: 12px;

        padding: 3px 8px;

        overflow: visible;
    }

    .dropbtn {
        min-height: 40px;

        font-size: 0.69rem;

        gap: 4px;
    }

    .dropbtn > span {
        gap: 3px;
    }

    .dropbtn > span i {
        font-size: 0.61rem;
    }

    .dropbtn > i {
        font-size: 0.48rem;
    }

    .dropdown-content {
        min-width: 205px;

        padding: 7px;
    }

    .dropdown-content a {
        padding: 9px 10px;

        font-size: 0.82rem;
    }

    .container {
        width: calc(100% - 22px);

        padding-top: 20px;
        padding-bottom: 35px;
    }

    .featured-card {
        min-height: auto;

        margin-bottom: 38px;

        padding: 27px 23px;

        flex-direction: column;

        gap: 25px;

        border-radius: 17px;
    }

    .featured-info h1 {
        font-size: 1.65rem;
    }

    .featured-info > p {
        font-size: 0.88rem;
    }

    .featured-meta {
        gap: 10px 18px;

        font-size: 0.8rem;
    }

    .featured-bottom {
        margin-top: 23px;

        gap: 12px;
    }

    .featured-price {
        font-size: 1.3rem;
    }

    .featured-action {
        width: 100%;

        min-width: 0;

        flex-direction: row;
    }

    .btn-light,
    .btn-featured-cart {
        flex: 1;

        min-height: 44px;

        padding: 0 12px;

        font-size: 0.82rem;
    }

    .section-heading {
        align-items: center;
    }

    .section-title {
        font-size: 1.28rem;
    }

    .view-all {
        font-size: 0.78rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .product-image {
        height: 165px;
    }

    .product-content {
        min-height: 195px;

        padding: 14px;
    }

    .product-category {
        font-size: 0.66rem;
    }

    .product-content h3 {
        font-size: 0.9rem;
    }

    .product-content p {
        font-size: 0.77rem;
    }

    .price {
        font-size: 0.98rem;
    }

    .product-arrow {
        width: 30px;
        height: 30px;

        font-size: 0.68rem;
    }

    .filter-bar {
        padding: 14px;

        gap: 10px;
    }

    .filter-group {
        flex: 1 1 calc(50% - 5px);

        min-width: 0;
    }

    .filter-group input,
    .filter-group select,
    .btn-blue {
        height: 40px;
    }

    .btn-blue {
        width: 100%;
    }

    .available-count {
        min-height: 32px;

        justify-content: center;
    }

    .about-contacts {
        padding: 25px 20px;

        gap: 28px;

        border-radius: 16px;
    }

    .about h2,
    .contacts h2 {
        font-size: 1.35rem;
    }

    .about p {
        font-size: 0.83rem;
    }

    .footer {
        padding: 34px 15px 20px;
    }

    .footer-links {
        gap: 10px 16px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .category-navigation {
        gap: 7px;

        padding-left: 5px;
        padding-right: 5px;
    }

    .dropbtn {
        font-size: 0.6rem;

        gap: 3px;
    }

    .dropbtn > span {
        gap: 2px;
    }

    .dropbtn > span i {
        font-size: 0.52rem;
    }

    .dropbtn > i {
        font-size: 0.43rem;
    }

    .dropdown-content {
        min-width: 195px;
    }

    .container {
        width: calc(100% - 16px);
    }

    .featured-card {
        padding: 23px 18px;
    }

    .featured-info h1 {
        font-size: 1.42rem;
    }

    .featured-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .featured-action {
        flex-direction: column;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .section-title {
        font-size: 1.18rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 190px;
    }

    .product-content {
        min-height: 180px;
    }

    .filter-group {
        flex: 1 1 100%;
    }

    .filter-chips {
        gap: 6px;
    }

    .filter-chip {
        min-height: 32px;

        padding: 0 10px;

        font-size: 0.72rem;
    }

    .about-contacts {
        padding: 22px 17px;
    }

    .contact-link {
        font-size: 0.82rem;
    }

    .cart-panel {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .logo {
        font-size: 1rem;
    }

    .category-navigation {
        gap: 4px;

        padding-left: 3px;
        padding-right: 3px;
    }

    .dropbtn {
        font-size: 0.55rem;

        padding-left: 1px;
        padding-right: 1px;
    }

    .dropbtn > span i {
        display: none;
    }

    .dropbtn > i {
        font-size: 0.38rem;
    }

    .product-image {
        height: 175px;
    }

    .featured-info h1 {
        font-size: 1.3rem;
    }
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #eeeeee;
}

::-webkit-scrollbar-thumb {
    background: #b6c1c7;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8e9da5;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background-color: #155a7a;
    color: #ffffff;
}


/* =========================================================
   КАТАЛОГ: СВОРАЧИВАНИЕ РАЗДЕЛОВ, ФИЛЬТРЫ, ПЕРЕХОДЫ ПО МЕНЮ
   ========================================================= */

.products-section {
    scroll-margin-top: 16px;
}

.dropdown-content a {
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

/* «Смотреть всё» теперь кнопка */
button.view-all {
    padding: 0;

    border: none;
    background: none;

    font-family: inherit;

    cursor: pointer;
}

.view-all[hidden],
.show-more-wrap[hidden],
.filter-chips[hidden],
.filter-chip[hidden],
.filter-empty[hidden] {
    display: none;
}

.view-all i {
    transition: transform 0.2s ease;
}

.products-section.is-expanded .view-all i {
    transform: rotate(-90deg);
}

/* Кнопка под сеткой */
.show-more-wrap {
    margin-top: 24px;

    display: flex;
    justify-content: center;
}

.show-more-btn {
    min-height: 46px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    border: 1px solid #09304a;
    border-radius: 24px;

    background-color: #ffffff;

    color: #09304a;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.show-more-btn i {
    font-size: 0.75rem;

    transition: transform 0.2s ease;
}

.products-section.is-expanded .show-more-btn i {
    transform: rotate(180deg);
}

.show-more-btn:hover,
.show-more-btn:active {
    background-color: #09304a;

    color: #ffffff;
}

.filter-chip {
    cursor: pointer;
}

.filter-empty {
    padding: 34px 16px;

    border-radius: 18px;

    background-color: #ffffff;

    color: #71808a;

    font-size: 0.92rem;
    text-align: center;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   ВЫПАДАЮЩЕЕ МЕНЮ НА ТЕЛЕФОНЕ
   Список раскрывается на всю ширину панели категорий,
   чтобы не выходить за край экрана.
   ========================================================= */

@media (max-width: 720px) {

    /* Кнопки категорий переносятся на вторую строку,
       а не уезжают за край экрана */
    .category-navigation {
        flex-wrap: wrap;
        justify-content: center;

        gap: 0 14px;
    }

    .dropbtn {
        min-height: 42px;

        padding: 5px 4px;

        font-size: 0.78rem;
    }

    .dropbtn > span i {
        font-size: 0.7rem;
    }

    .dropdown {
        position: static;
    }

    .dropdown-content {
        top: 100%;
        left: 8px;
        right: 8px;

        width: auto;
        min-width: 0;

        transform: none;
    }

    .dropdown-content a {
        padding: 12px 12px;

        white-space: normal;
    }

    .dropdown-content a:hover {
        padding-left: 12px;
    }
}
