:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    --accent: #22c55e;
    --accent-2: #1e90ff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(2,6,23,.09);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter,Arial,Helvetica,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
select,
textarea {
    font: inherit;
}
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: 10px;
    z-index: 99;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.header-row {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -.03em;
    flex: 0 0 auto;
}
.logo img {
    width: 150px;
    height: auto;
}
.logo-text {
    display: none;
}
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 1 auto;
    min-width: 0;
}
.nav a,
.nav button {
    border: 0;
    background: transparent;
    color: #111827;
    font-weight: 700;
    padding: 10px 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.nav a:hover,
.nav button:hover,
.nav a.active {
    background: #eef2f7;
}
.nav-item {
    position: relative;
}
.dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 10px;
    display: none;
}
.nav-item:hover .dropdown,.nav-item:focus-within .dropdown {
    display: grid;
}
.dropdown a {
    padding: 10px 12px;
    color: #111827;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.icon-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    position: relative;
}
.icon-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}
.badge {
    position: absolute;
    right: -4px;
    top: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
}
.burger {
    display: none;
}
.mobile-nav {
    display: none;
}
.search-bar {
    position: relative;
    min-width: 220px;
    width: 230px;
    flex: 0 0 auto;
}
.search-bar input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 44px 12px 16px;
    background: #fff;
    outline: none;
}
.search-bar input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(30,144,255,.12);
}
.search-bar button {
    position: absolute;
    right: 4px;
    top: 4px;
    border: 0;
    background: #0f172a;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}
.suggestions {
    position: absolute;
    right: 0;
    top: 52px;
    width: min(430px, 90vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
}
.suggestions.open {
    display: block;
}
.suggestions a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
}
.suggestions a:hover {
    background: #f1f5f9;
}
.suggestions img {
    width: 54px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
}
.suggestions small {
    color: var(--muted);
}
.hero {
    padding: 42px 0 56px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}
.hero h1,
.page-title h1 {
    font-size: clamp(38px,5vw,72px);
    line-height: .98;
    margin: 18px 0 18px;
    letter-spacing: -.06em;
}
.hero p,
.page-title p {
    font-size: 18px;
    color: var(--muted);
    max-width: 700px;
}
.hero-card {
    position: relative;
    padding-bottom: 74px;
}
.hero-card img {
    border-radius: 36px;
    box-shadow: var(--shadow);
}
.floating-card {
    position: absolute;
    left: 18px;
    bottom: -18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    gap: 13px;
    align-items: center;
    z-index: 2;
    max-width: 210px;
}
.floating-card strong {
    font-size: 25px;
    display: block;
    white-space: nowrap;
}
.floating-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.hero-actions,
.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 850;
    cursor: pointer;
    transition: .18s transform,.18s box-shadow,.18s background;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15,23,42,.18);
}
.btn-primary:hover {
    background: #000;
}
.btn-accent {
    background: var(--accent);
    color: #052e16;
}
.btn-outline {
    background: #fff;
    border: 1px solid var(--line);
    color: #0f172a;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-small {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}
.btn-block {
    width: 100%;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 28px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}
.stat b {
    font-size: 28px;
}
.stat span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}
.section {
    padding: 42px 0;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.section h2 {
    font-size: clamp(28px,3vw,44px);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -.04em;
}
.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 650px;
}
.grid {
    display: grid;
    gap: 18px;
}
.grid-2 {
    grid-template-columns: repeat(2,1fr);
}
.grid-3 {
    grid-template-columns: repeat(3,1fr);
}
.grid-4 {
    grid-template-columns: repeat(4,1fr);
}
.category-card,
.info-card,
.promo-card,
.review-card,
.form-card,
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}
.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}
.category-card:after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--accent),var(--accent-2));
    opacity: .17;
}
.category-card b {
    font-size: 24px;
}
.category-card span {
    color: var(--muted);
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 18px;
}
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.product-media {
    position: relative;
    background: #e2e8f0;
    aspect-ratio: 1.25/1;
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.label-row {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.label {
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 8px;
}
.label-new {
    background: #dcfce7;
    color: #166534;
}
.label-sale {
    background: #fee2e2;
    color: #991b1b;
}
.fav {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
}
.fav.active {
    background: #fee2e2;
    color: #ef4444;
}
.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}
.product-card h3 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.price {
    font-size: 22px;
    font-weight: 950;
}
.old-price {
    text-decoration: line-through;
    color: #94a3b8;
}
.rating {
    color: #f59e0b;
    font-weight: 800;
}
.card-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-top: 8px;
}
.card-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    font-size: 14px;
    white-space: nowrap;
}
.band {
    background: #0f172a;
    color: #fff;
    border-radius: 36px;
    margin: 30px 0;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.band:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .18;
}
.band h2 {
    color: #fff;
}
.band p {
    color: #cbd5e1;
    margin: 8px 0 0;
    max-width: 660px;
}
.band > * {
    position: relative;
    z-index: 1;
}
.page-title {
    padding: 38px 0 24px;
}
.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}
.breadcrumbs a {
    color: #1e90ff;
}
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
}
.filters {
    position: sticky;
    top: 100px;
    align-self: start;
}
.filter-group {
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    margin: 0 0 16px;
}
.filter-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-group h3 {
    font-size: 16px;
    margin: 0 0 12px;
}
.check {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 9px 0;
    color: #334155;
}
.check input {
    accent-color: var(--accent);
}
.range-value {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.toolbar select,
.toolbar input,
.field input,
.field textarea,
.field select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    width: 100%;
}
.toolbar select:focus,
.toolbar input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(30,144,255,.10);
}
.empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    padding: 26px;
    text-align: center;
    color: var(--muted);
}
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.product-gallery-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product-gallery-main img {
    width: 100%;
    aspect-ratio: 1.2/1;
    object-fit: cover;
}
.detail-panel h1 {
    font-size: clamp(32px,4vw,54px);
    line-height: 1;
    margin: 8px 0 12px;
    letter-spacing: -.04em;
}
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0;
}
.detail-price .price {
    font-size: 36px;
}
.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 18px;
}
.option-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 800;
}
.option-btn.active,.option-btn:hover {
    border-color: var(--dark);
    background: #0f172a;
    color: #fff;
}
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}
.qty button {
    border: 0;
    background: #fff;
    width: 42px;
    height: 42px;
    cursor: pointer;
}
.qty span {
    min-width: 42px;
    text-align: center;
    font-weight: 900;
}
.feature-list {
    padding-left: 18px;
}
.feature-list li {
    margin: 7px 0;
}
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.tab-btn {
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 13px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}
.tab-btn.active {
    background: #0f172a;
    color: #fff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.cart-list {
    display: grid;
    gap: 14px;
}
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
}
.cart-item img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
}
.cart-item h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
.cart-item small {
    color: var(--muted);
}
.cart-summary {
    position: sticky;
    top: 100px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    color: #334155;
}
.summary-line.total {
    font-size: 22px;
    color: #0f172a;
    font-weight: 950;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.field {
    display: grid;
    gap: 7px;
}
.field label {
    font-weight: 800;
    font-size: 14px;
}
.field.full {
    grid-column: 1/-1;
}
.notice {
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #166534;
    border-radius: 18px;
    padding: 14px 16px;
    display: none;
}
.notice.show {
    display: block;
}
.map {
    min-height: 360px;
    border-radius: 24px;
    background: linear-gradient(135deg,#e2e8f0,#fff);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.map:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,rgba(15,23,42,.08) 1px,transparent 1px),linear-gradient(rgba(15,23,42,.08) 1px,transparent 1px);
    background-size: 46px 46px;
}
.map-pin {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%,-50%);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px;
    border-radius: 18px;
    text-align: center;
}
.map-pin b {
    display: block;
}
.map-pin span {
    color: var(--muted);
    font-size: 14px;
}
.gallery {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 16px;
}
.gallery img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.gallery img:first-child {
    height: 536px;
    grid-row: span 2;
}
.review-card p {
    margin: 10px 0;
    color: #475569;
}
.stars {
    color: #f59e0b;
}
.promo-card {
    overflow: hidden;
    padding: 0;
}
.promo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.promo-card .promo-body {
    padding: 20px;
}
.promo-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}
.promo-tag {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 999px;
    padding: 6px 9px;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 10px;
}
.account-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
}
.account-menu {
    display: grid;
    gap: 8px;
}
.account-menu button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 15px;
    text-align: left;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}
.account-menu button.active {
    background: #0f172a;
    color: #fff;
}
.order-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}
.order-card b {
    display: block;
}
.order-card small {
    color: var(--muted);
}
.footer {
    background: #020617;
    color: #e2e8f0;
    margin-top: 56px;
    padding: 42px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3,1fr);
    gap: 24px;
}
.footer a {
    color: #cbd5e1;
    display: block;
    margin: 8px 0;
}
.footer p {
    color: #94a3b8;
}
.footer-bottom {
    border-top: 1px solid rgba(226,232,240,.12);
    margin-top: 28px;
    padding-top: 18px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-logo {
    width: 150px;
    margin-bottom: 12px;
}
.mobile-only {
    display: none;
}
@media (max-width:1180px) {
    .product-grid {
        grid-template-columns: repeat(3,1fr);
    }
    .nav {
        display: none;
    }
    .burger {
        display: grid;
    }
    .search-bar {
        min-width: 180px;
        width: 220px;
    }
    .catalog-layout,.checkout-layout,.account-layout {
        grid-template-columns: 1fr;
    }
    .filters,.cart-summary {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-grid,.product-detail {
        grid-template-columns: 1fr;
    }
    .hero-card {
        order: -1;
        padding-bottom: 68px;
    }
    .floating-card {
        left: 16px;
        bottom: -16px;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
    .gallery img:first-child {
        height: 300px;
        grid-row: auto;
    }
    .mobile-nav.open {
        display: grid;
    }
    .mobile-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 82px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 22px;
        padding: 12px;
    }
    .mobile-nav a {
        padding: 12px;
        border-radius: 14px;
        font-weight: 800;
    }
    .mobile-nav a:hover {
        background: #f1f5f9;
    }
}
@media (max-width:760px) {
    .header-row {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .logo img {
        width: 130px;
    }
    .search-bar {
        order: 3;
        width: 100%;
        min-width: 100%;
    }
    .hero {
        padding-top: 24px;
    }
    .hero-card {
        padding-bottom: 64px;
    }
    .floating-card {
        left: 12px;
        bottom: -14px;
        max-width: 200px;
        padding: 14px 16px;
    }
    .stats,.grid-4,.grid-3,.grid-2,.product-grid,.footer-grid,.form-grid {
        grid-template-columns: 1fr;
    }
    .section-head {
        display: block;
    }
    .band {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 26px;
    }
    .toolbar {
        display: grid;
    }
    .cart-item {
        grid-template-columns: 86px 1fr;
    }
    .cart-item img {
        width: 86px;
        height: 72px;
    }
    .cart-item > div:last-child {
        grid-column: 1/-1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery img,
.gallery img:first-child {
        height: 230px;
    }
    .hero h1,
.page-title h1 {
        font-size: 42px;
    }
    .container {
        width: min(100% - 22px,1180px);
    }
}
/* Дополнительная проверка адаптива и мелкие правки интерфейса */
.site-header .container {
    position: relative;
}
.nav a,
.nav button {
    line-height: 1.2;
}
.toolbar > strong {
    white-space: nowrap;
}
.product-card {
    min-width: 0;
    transition: .18s transform,.18s box-shadow;
}
.product-card h3 {
    min-height: 44px;
}
.product-card .btn-small {
    min-height: 48px;
    text-align: center;
    line-height: 1.1;
}
.card-actions {
    align-items: stretch;
}
.card-actions .btn {
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.detail-panel .fav {
    position: static;
    width: auto;
    height: auto;
    border-radius: 16px;
    font-size: inherit;
    border: 1px solid var(--line);
    padding: 13px 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}
.detail-panel .fav.active {
    background: #fee2e2;
    color: #ef4444;
}
.mobile-nav {
    top: calc(100% + 8px);
}
@media (max-width:1180px) {
    .product-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .toolbar {
        align-items: stretch;
    }
    .toolbar input,.toolbar select {
        min-width: 0;
    }
}
@media (max-width:920px) {
    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width:760px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card h3 {
        min-height: auto;
    }
    .card-actions {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width:430px) {
    .header-actions {
        gap: 6px;
    }
    .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    .card-actions {
        grid-template-columns: 1fr;
    }
    .card-actions .btn {
        width: 100%;
    }
}

/* Компактная шапка на широких экранах: все пункты меню помещаются до поиска. */
@media (min-width:1181px) {
    .site-header .container {
        width: min(1280px, calc(100% - 24px));
    }
    .site-header .header-row {
        gap: 8px;
    }
    .site-header .logo img {
        width: 132px;
    }
    .site-header .nav > a,
    .site-header .nav-item > button {
        padding: 10px 6px;
        font-size: 15px;
    }
    .site-header .header-actions {
        gap: 6px;
    }
    .site-header .search-bar {
        min-width: 160px;
        width: 170px;
    }
    .site-header .icon-btn {
        width: 40px;
        height: 40px;
    }
}
