body {
    margin: 0 0 5px;
    font-family: 'Roboto Slab', serif;
    background-color: #0d0d0d;
    color: #f1c40f;
    position: relative;

}

.back-container {
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-image: url(/static/images/icon.png);
    background-size: 400px 400px;
    background-position: -5px -5px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.15;
}

header {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #111;
    height: 80px;
    min-height: 80px;
    box-sizing: border-box;
    border-radius: 24px !important;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 260px;
    margin-right: 32px;
}

.logo-text h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.logo-text p {
    font-size: 1.1rem;
    margin: 0;
    color: #f1c40f;
    font-weight: 700;
}

.search-bar {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 400px;
    background: #181818;
    border: 2px solid #f1c40f;
    border-radius: 32px;
    padding: 0 18px;
    height: 40px;
    position: relative;
    margin-right: 32px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.1rem;
    outline: none;
    padding: 0 0 0 0;
    height: 36px;
}

.search-bar input::placeholder {
    color: #fff;
    font-weight: 700;
    opacity: 1;
}

.search-bar .search-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    cursor: pointer;
    filter: brightness(1.2);
}

.menu-icon {
    position: static;
    margin-left: 24px;
    z-index: 1002;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    padding: 0 16px;
    border-radius: 24px !important;
}

.product-detail-body > .container {
    max-width: 980px;
}

.product-detail-body .product-detail-page {
    min-height: auto !important;
    padding: 32px 0 24px !important;
}

.product-detail-body .product-detail-page > .container {
    max-width: 900px !important;
    padding-left: 0;
    padding-right: 0;
}

.menu-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,20,0.92);
    color: #f1c40f;
    z-index: 1100;
    box-shadow: none;
    padding: 0;
    margin: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    border-radius: 24px !important;
}

.menu-popup.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-popup li {
    margin: 32px 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.menu-popup a {
    color: #f1c40f;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-popup a:hover {
    color: #fff;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    z-index: 1099;
}

.menu-popup.active ~ .menu-overlay {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

.hero {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0 0px 0;
    
    gap: 32px;
    background: #181818e6;
    border-radius: 32px;
    box-shadow: 0 4px 32px #000a;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 12px;
    max-width: 39%;
}

.hero-text p {
    font-size: 1.6rem;
    color: #f1c40f;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-button {
    display: inline-block;
    padding: 22px 70px;
    border: 4px solid #f1c40f;
    color: #f1c40f;
    text-decoration: none;
    font-size: 2.7rem;
    font-weight: 900;
    background: #181818;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.2s, color 0.2s;
    border-radius: 24px !important;
    cursor: pointer;
}

.catalog-button:hover {
    background: #f1c40f;
    color: #181818;
}

.catalog-button.news-btn {
    font-size: 1.4rem;
    padding: 12px 32px;
    border-width: 2px;
    margin-top: 20px;
    background: #111;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 24px !important;
}

.news-slider {
    margin-bottom: 5px;
    position: relative;
    background: #181818;
    padding: 40px 0 120px 0;
    text-align: center;
    border-radius: 24px !important;
}

.news-slider .slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 0 32px;
    height: 600px;
    gap: 0;
    min-height: 600px;
    margin: 0 12px;
}

.news-card {
    background: #111;
    border: 2px solid #e0b84c;
    border-radius: 24px !important;
    padding: 32px 28px;
    margin: 0;
    width: 420px;
    min-height: 480px;
    max-width: 480px;
    color: #fff;
    font-size: 1.2rem;
    display: block;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%) scale(0.8);
    filter: brightness(0.5) grayscale(0.7);
    box-shadow: 0 2px 16px #000a;
    transition: 
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.news-card.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: brightness(1) grayscale(0);
    z-index: 3;
    box-shadow: 0 4px 32px #ffd24c55;
    pointer-events: auto;
}

.news-card.prev {
    opacity: 1;
    transform: translateX(-150%) scale(0.85);
    filter: brightness(0.4) grayscale(0.8);
    z-index: 2;
}

.news-card.next {
    opacity: 1;
    transform: translateX(50%) scale(0.85);
    filter: brightness(0.4) grayscale(0.8);
    z-index: 1;
}

.news-card .news-image {
    background: #222;
    color: #fff;
    height: 280px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.news-card .news-image img,
.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-empty {
    width: 100%;
    height: 100%;
    background: #333;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffd24c;
}

.news-card p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #222;
    color: #ffd24c;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #0006;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    opacity: 1;
}

.arrow.left {
    left: 12px;
}

.arrow.right {
    right: 12px;
}

.arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.arrow:hover {
    background: #ffd24c;
    color: #111;
    box-shadow: 0 4px 16px #ffd24c55;
}

.arrow img {
    width: 24px;
    height: 24px;
    transition: filter 0.2s;
    filter: none !important;
}

.arrow:hover img {
    filter: brightness(0) saturate(100%);
}

.dots {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a88c3a;
    margin: 0 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    width: 18px;
    height: 18px;
    background: #ffd24c;
    box-shadow: 0 0 8px #ffd24c88;
    border: none;
}

.news-list {
    margin-bottom: 5px;
    background: #181818;
    padding: 20px 0 40px 0;
    border-radius: 24px !important;
}

.news-item {
    display: flex;
    align-items: center;
    background: #111;
    border: 2px solid #e0b84c;
    border-radius: 12px;
    margin: 12px 24px;
    padding: 12px 18px;
    color: #fff;
    transition: box-shadow 0.2s;
    border-radius: 24px !important;
}

.news-item .news-image {
    background: #222;
    color: #fff;
    width: 90px;
    height: 90px;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.news-item .news-content {
    flex: 1;
}

.news-item .btn {
    margin-left: 18px;
    border: 1.5px solid #e0b84c;
    background: none;
    color: #e0b84c;
    border-radius: 8px;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

.news-item .btn:hover {
    background: #e0b84c;
    color: #111;
}

.news-item.hidden {
    display: none;
}

.more-button {
    text-align: center;
    margin-top: 18px;
}

.more-button .btn {
    border: 1.5px solid #e0b84c;
    background: none;
    color: #e0b84c;
    border-radius: 8px;
    padding: 6px 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 24px !important;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

.more-button .btn:hover {
    background: #e0b84c;
    color: #111;
}

.contacts {
    margin-bottom: 5px;
    padding: 20px 20px;
    background: #0f0f0f;
    text-align: center;
    border-radius: 24px !important;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.info-block {
}

.circle.large {
    width: 50px;
    height: 50px;
}

.map {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.map img {
    width: 100%;
    height: auto;
    border-radius: 24px !important;
}

footer,
.site-footer {
    background: #111111;
    margin-bottom: 5px;
    border-radius: 24px !important;
}

.site-footer {
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.site-footer__content {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(160px, 1fr) minmax(220px, 1.2fr);
    gap: 28px;
    padding: 30px 32px;
}

.site-footer__brand h2,
.site-footer__nav h3,
.site-footer__contacts h3 {
    margin: 0 0 12px;
    color: #f1c40f;
}

.site-footer__brand p,
.site-footer__bottom p,
.site-footer__contacts span {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.site-footer__nav,
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #f1c40f;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 32px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.not-found-page {
    min-height: calc(100vh - 280px);
    display: grid;
    place-items: center;
    padding: 70px 20px;
}

.not-found-panel {
    width: min(760px, 100%);
    box-sizing: border-box;
    padding: 46px;
    border-radius: 24px;
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.24);
    text-align: center;
}

.not-found-code {
    margin: 0;
    color: #f1c40f;
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 0.9;
    font-weight: 700;
}

.not-found-title {
    margin: 20px 0 12px;
    color: #ffffff;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
}

.not-found-text {
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.not-found-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid #f1c40f;
    color: #111111;
    background: #f1c40f;
    text-decoration: none;
    font-weight: 700;
}

.not-found-button.secondary {
    background: transparent;
    color: #f1c40f;
}

.not-found-button:hover {
    opacity: 0.86;
}

@media (max-width: 1440px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        height: auto;
        min-height: unset;
        padding: 10px 0;
    }
    .logo {
        margin-right: 0;
        justify-content: center;
    }
    .search-bar {
        margin: 10px 0;
        max-width: 100%;
        justify-content: center;
    }
    .burger {
        width: 44px;
        height: 44px;
    }
    .burger span {
        height: 5px;
    }
    .hero {
        flex-direction: column;
        padding: 24px 0 16px 0;
        gap: 16px;
        min-height: unset;
    }
    .hero-text {
        padding-left: 0;
        align-items: center;
    }
    .hero-image {
        justify-content: center;
    }
    .logo-text h1 {
        font-size: 2.2rem;
    }
    .catalog-button {
        font-size: 1.5rem;
        padding: 14px 32px;
        border-width: 2px;
        border-radius: 18px;
    }
    .footer-right {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* --- burger button --- */
.burger {
    margin-left: 0;
    margin-right: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181818;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0004;
    position: relative;
    z-index: 1101;
    border: 2px solid #222;
    transition: background 0.2s;
}
.burger input {
    display: none;
}
.burger span {
    display: block;
    position: absolute;
    left: 13px;
    width: 28px;
    height: 5px;
    background: #ffd24c;
    border-radius: 6px;
    box-shadow: 0 1px 2px #0006;
    opacity: 1;
    transform: rotate(0deg);
    transition: .25s cubic-bezier(.68,-0.55,.27,1.55);
}
.burger span:nth-of-type(1) {
    top: 17px;
    transform-origin: center;
}
.burger span:nth-of-type(2) {
    top: 25px;
    transform-origin: center;
}
.burger span:nth-of-type(3) {
    top: 33px;
    transform-origin: center;
}
.burger input:checked ~ span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 25px;
}
.burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}
.burger input:checked ~ span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 25px;
}

/* === CATALOG STYLES === */
.catalog-section {
    margin-bottom: 5px;
    background: #181818e6;
    border-radius: 32px;
    box-shadow: 0 4px 32px #000a;
    padding: 32px;
}

.catalog-container {
    display: flex;
    gap: 32px;
    min-height: 600px;
}

/* Боковая панель с категориями */
.catalog-sidebar {
    min-width: 280px;
    max-width: 280px;
    background: #111;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid #D4AF37;
}

.categories-header h2 {
    color: #D4AF37;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
    text-transform: uppercase;
}

.categories-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-nav li {
    margin-bottom: 12px;
}

.categories-nav li:last-child {
    margin-bottom: 0;
}

.categories-nav button {
    width: 100%;
    background: transparent;
    border: 2px solid #333;
    color: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.categories-nav button:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    transform: translateX(5px);
}

.categories-nav button.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.categories-nav button.active::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

/* Основной контент каталога */
.catalog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #333;
}

.catalog-header h1 {
    color: #D4AF37;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.items-count {
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.product-card {
    background: #111;
    border: 2px solid #333;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.product-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #222;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.product-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    min-height: 3.4em;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 20px 0;
    display: -webkit-box;
    min-height: 4.2em;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.product-btn {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 12px 24px;
    border-radius: 16px;
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.product-btn:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Загрузка */
.loading-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Кнопка "Загрузить ещё" */
.load-more-container {
    text-align: center;
    margin: 32px 0;
}

.load-more-container .catalog-button {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.load-more-container .catalog-button:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Сообщения об ошибках */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: 600;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .catalog-container {
        gap: 20px;
    }
    
    .catalog-sidebar {
        min-width: 240px;
        max-width: 240px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .catalog-section {
        padding: 20px;
    }
    
    .catalog-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .catalog-sidebar {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
        order: -1;
    }
    
    .categories-nav {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 10px;
    }
    
    .categories-nav::-webkit-scrollbar {
        width: 6px;
    }
    
    .categories-nav::-webkit-scrollbar-track {
        background: #222;
        border-radius: 3px;
    }
    
    .categories-nav::-webkit-scrollbar-thumb {
        background: #D4AF37;
        border-radius: 3px;
    }
    
    .categories-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .categories-nav li {
        margin-bottom: 0;
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .categories-nav button {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .catalog-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .catalog-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card {
        max-width: 100%;
    }
}

/* Подсветка при поиске */
.search-highlight {
    background: #D4AF37;
    color: #000;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
}

/* Когда нет результатов */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2rem;
    font-weight: 600;
}

.feedback-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 28px 0 0;
    padding: 24px;
    background: #111;
    border: 2px solid rgba(212, 175, 55, 0.55);
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.feedback-panel-compact {
    max-width: none;
}

.item-feedback-panel {
    margin: 0;
    padding: 14px 16px;
    background: #151515;
    border-width: 1px;
    border-radius: 12px;
    box-shadow: none;
}

.item-detail-feedback-form {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    margin-top: -10px;
}

.item-feedback-message {
    display: grid;
    box-sizing: border-box;
    min-height: 204px;
    padding: 14px 16px;
    background: #151515;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 12px;
}

.item-feedback-message label {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
}

.item-feedback-panel .feedback-copy h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.item-feedback-panel .feedback-copy p {
    display: none;
}

.item-feedback-panel .feedback-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.item-feedback-panel .feedback-form label {
    gap: 4px;
}

.item-feedback-panel .feedback-form input,
.item-feedback-panel .feedback-form textarea {
    padding: 9px 12px;
}

.item-feedback-message textarea,
.item-feedback-panel input {
    padding: 9px 12px;
}

.item-feedback-panel .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.item-feedback-panel .feedback-submit {
    justify-self: end;
    align-self: end;
    margin-top: 4px;
    white-space: nowrap;
}

.item-feedback-panel .feedback-form textarea {
    min-height: 68px;
}

.item-feedback-message textarea {
    height: 100%;
    min-height: 146px;
}

.item-feedback-panel .feedback-submit {
    padding: 9px 22px;
    border-radius: 12px;
}

.feedback-copy h3 {
    margin: 0 0 8px;
    color: #D4AF37;
    font-size: 1.5rem;
}

.feedback-copy p {
    margin: 0 0 18px;
    color: #bbb;
    line-height: 1.5;
}

.feedback-form {
    display: grid;
    gap: 14px;
}

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

.feedback-form label {
    display: grid;
    gap: 6px;
    color: #D4AF37;
    font-weight: 700;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    padding: 12px 14px;
    outline: none;
}

.feedback-form textarea {
    min-height: 92px;
    resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.feedback-submit {
    justify-self: start;
    border: 2px solid #D4AF37;
    border-radius: 14px;
    background: transparent;
    color: #D4AF37;
    padding: 12px 28px;
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-submit:hover,
.feedback-submit:focus {
    background: #D4AF37;
    color: #000;
}

.feedback-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.feedback-status {
    min-height: 1.4em;
    margin: 0;
    color: #D4AF37;
    font-weight: 700;
}

.feedback-status.error {
    color: #ff7878;
}

.feedback-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.item-gallery {
    display: grid;
    justify-items: stretch;
    margin-top: 32px;
}

.item-gallery h3 {
    margin: 0 0 16px;
    color: #ffd600;
    font-size: 1.45rem;
}

.item-gallery-stage {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 14px;
    width: min(100%, 820px);
    max-width: 720px;
    margin: 0 auto;
}

.item-gallery-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.item-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: #151515;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.item-gallery-image.active {
    opacity: 1;
    pointer-events: auto;
}

.item-gallery-arrow {
    width: 48px;
    height: 48px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    background: #111;
    color: #D4AF37;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.item-gallery-arrow:hover,
.item-gallery-arrow:focus {
    background: #D4AF37;
    color: #000;
}

.item-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: min(100%, 820px);
    max-width: 720px;
    margin: 12px auto 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.item-gallery-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #222;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
}

.item-gallery-thumb.active {
    border-color: #D4AF37;
    opacity: 1;
}

.item-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .product-detail-page {
        padding: 16px 0 !important;
    }

    .product-detail-page .container {
        max-width: 100% !important;
    }

    .product-detail-page .container > div:first-child {
        gap: 18px !important;
        padding: 20px 14px !important;
        border-radius: 18px !important;
    }

    .product-detail-page h2 {
        font-size: 1.65rem !important;
        line-height: 1.15;
    }

    .product-detail-page img {
        max-height: 320px;
    }

    .item-gallery {
        margin-top: 24px;
    }

    .item-gallery h3 {
        font-size: 1.25rem;
    }

    .item-gallery-stage {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .item-gallery-frame {
        min-height: 220px;
        aspect-ratio: 4 / 5;
        border-radius: 14px;
    }

    .item-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.65rem;
    }

    .item-gallery-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

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

    .item-feedback-panel .feedback-grid {
        grid-template-columns: 1fr;
    }

    .item-feedback-panel .feedback-submit {
        justify-self: stretch;
    }

    .item-detail-feedback-form {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 0;
    }

    .item-feedback-message {
        min-height: 0;
    }

    .item-feedback-message textarea {
        min-height: 116px;
    }

    .feedback-panel {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .back-container {
        background-size: 220px 220px;
        opacity: 0.12;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    header {
        min-height: 72px;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px !important;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
        margin-right: 0;
    }

    .logo a {
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 1.85rem;
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .logo-text p {
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .burger {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-left: auto;
    }

    .burger span {
        left: 10px;
        width: 22px;
        height: 4px;
    }

    .burger span:nth-of-type(1) {
        top: 13px;
    }

    .burger span:nth-of-type(2) {
        top: 21px;
    }

    .burger span:nth-of-type(3) {
        top: 29px;
    }

    .burger input:checked ~ span:nth-of-type(1),
    .burger input:checked ~ span:nth-of-type(3) {
        top: 21px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
        height: 42px;
        padding: 0 12px;
        border-radius: 14px;
    }

    .search-bar input {
        min-width: 0;
        font-size: 1rem;
    }

    .menu-popup {
        border-radius: 0 !important;
    }

    .menu-popup li {
        margin: 22px 0;
        font-size: 1.65rem;
    }

    .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 12px;
        border-radius: 18px;
    }

    .hero-text {
        max-width: 100%;
        padding-left: 0;
        align-items: stretch;
        text-align: center;
    }

    .hero-text p {
        margin: 0 0 16px;
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .catalog-button {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 18px;
        font-size: 1.25rem;
        border-width: 2px;
        border-radius: 14px !important;
        text-align: center;
    }

    .hero-image img {
        max-height: 320px;
        border-radius: 16px !important;
    }

    .news-slider {
        padding: 24px 0 44px;
        border-radius: 18px !important;
        overflow: hidden;
    }

    .news-slider h2 {
        font-size: 1.45rem;
        margin: 8px 0 14px;
    }

    .news-slider .slider {
        height: auto;
        min-height: 0;
        padding: 0 42px;
        margin: 0;
    }

    .news-card {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 360px;
        min-height: 0;
        padding: 16px;
        transform: none;
        margin: 0 auto;
    }

    .news-card.active {
        transform: none;
    }

    .news-card.prev,
    .news-card.next {
        display: none;
    }

    .news-card .news-image {
        height: 190px;
        margin-bottom: 14px;
    }

    .news-card h3 {
        font-size: 1.12rem;
    }

    .news-card p {
        font-size: 0.95rem;
    }

    .arrow {
        width: 38px;
        height: 38px;
    }

    .arrow.left {
        left: 4px;
    }

    .arrow.right {
        right: 4px;
    }

    .news-list {
        padding: 14px 0 24px;
        border-radius: 18px !important;
    }

    .news-item {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        margin: 10px;
        padding: 12px;
        border-radius: 16px !important;
    }

    .news-item .news-image {
        width: 88px;
        height: 88px;
        margin-right: 0;
    }

    .news-item .btn {
        grid-column: 1 / -1;
        margin-left: 0;
        text-align: center;
    }

    .contacts {
        padding: 18px 10px;
        border-radius: 18px !important;
    }

    .contacts h2 {
        font-size: 1.45rem;
        margin-top: 0;
    }

    .contact-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: left;
    }

    .circle.large {
        display: none;
    }

    .info-block {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    #map,
    .map > div {
        height: 280px !important;
        border-radius: 16px !important;
    }

    footer {
        border-radius: 18px !important;
    }

    .site-footer__content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 18px;
    }

    .site-footer__bottom {
        flex-direction: column;
        padding: 16px 18px;
    }

    .not-found-page {
        padding: 36px 10px;
    }

    .not-found-panel {
        padding: 30px 18px;
        border-radius: 18px;
    }

    .not-found-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer a,
    .not-found-button {
        overflow-wrap: anywhere;
    }

    .catalog-section {
        padding: 14px 10px;
        border-radius: 18px;
    }

    .catalog-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }

    .catalog-sidebar {
        min-width: 0;
        max-width: none;
        width: auto;
        padding: 14px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .categories-header h2 {
        margin-bottom: 12px;
        font-size: 1.25rem;
    }

    .categories-nav {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 4px;
    }

    .categories-nav ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .categories-nav li {
        flex: 0 0 auto;
        min-width: 0;
    }

    .categories-nav button {
        width: auto;
        min-width: 130px;
        padding: 10px 12px;
        font-size: 0.95rem;
        text-align: center;
        border-radius: 12px;
        white-space: nowrap;
    }

    .categories-nav button:hover {
        transform: none;
    }

    .categories-nav button.active::after {
        display: none;
    }

    .catalog-header {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .catalog-header h1 {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .items-count {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        min-height: 0;
        font-size: 1.15rem;
    }

    .product-description {
        min-height: 0;
        font-size: 0.95rem;
    }

    .product-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .feedback-panel {
        margin-top: 18px;
        padding: 16px;
        border-radius: 14px;
    }

    .feedback-copy h3 {
        font-size: 1.25rem;
    }

    .feedback-grid,
    .item-feedback-panel .feedback-grid {
        grid-template-columns: 1fr;
    }

    .feedback-submit,
    .item-feedback-panel .feedback-submit {
        width: 100%;
        justify-self: stretch;
    }

    .product-detail-page {
        padding: 12px 0 !important;
    }

    .product-detail-page .container {
        padding: 0 8px !important;
    }

    .product-detail-page .container > div:first-child {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }

    .product-detail-page .container > div:first-child > div {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .product-detail-page h2 {
        font-size: 1.55rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .product-detail-page p,
    .product-detail-page div {
        overflow-wrap: anywhere;
    }

    .product-detail-page .container > div:first-child img {
        min-width: 0 !important;
        max-height: 280px !important;
    }

    .item-detail-feedback-form {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 5px;
    }

    header {
        padding: 9px 10px;
    }

    .logo-text h1 {
        font-size: 1.55rem;
    }

    .logo-text p {
        font-size: 0.78rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .catalog-button {
        font-size: 1.08rem;
        padding: 12px 14px;
    }

    .news-slider .slider {
        padding: 0 4px;
    }

    .news-card {
        max-width: none;
        border-radius: 16px !important;
    }

    .arrow {
        display: none;
    }

    .product-image {
        height: 190px;
    }

    .item-gallery-stage {
        grid-template-columns: 1fr;
    }

    .item-gallery-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        background: rgba(17, 17, 17, 0.9);
    }

    .item-gallery-prev {
        left: 8px;
    }

    .item-gallery-next {
        right: 8px;
    }

    .item-gallery-frame {
        min-height: 260px;
    }
}
  
