@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Минимальная высота на весь экран */
}

a {
    text-decoration: none;
    color: #fd890a;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff3130;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стиль для контейнера содержимого страницы */
.page-content {
    flex: 1 0 auto;
    width: 100%;
    min-height: 70vh; /* Минимальная высота контента */
    display: flex;
    flex-direction: column;
}

/* Header styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    left: 0;
    right: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    flex: 0 0 auto;
    min-width: 140px;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    padding: 5px 0;
    display: block;
}

.main-nav {
    flex: 1 1 auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fd890a;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: #fd890a;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    border-radius: 2px;
}

/* Hero section */
.hero {
    background-color: #ff3130;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero .slogan {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories section */
.categories {
    margin-bottom: 40px;
}

.categories h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #6d7174;
}

.catalog-page .categories {
    margin-top: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 0;
    padding-bottom: 133.33%; /* Это соответствует пропорции 3:4 (900:1200) */
    position: relative;
    overflow: hidden;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f0f0f0;
    color: #6d7174;
}

.category-card h3 {
    padding: 15px;
    text-align: center;
    color: #333;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: #fd890a;
}

.product-image {
    height: 0;
    padding-bottom: 133.33%; /* Это соответствует пропорции 3:4 (900:1200) */
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    text-align: center;
    color: #333;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px 0;
    color: #6d7174;
}

.breadcrumbs a {
    color: #6d7174;
}

.breadcrumbs a:hover {
    color: #ff3130;
}

/* Category header */
.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.category-description {
    color: #6d7174;
}

.no-products {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    color: #6d7174;
    font-style: italic;
    margin: 20px 0;
}

/* Product detail */
.product-detail {
    margin-bottom: 50px;
}

.product-detail h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.product-gallery {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: calc(50% - 15px);
    flex: 0 0 auto;
    align-self: flex-start;
    position: sticky;
    top: 90px;
}

.product-main-image {
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    height: 0;
    padding-bottom: 133.33%; /* Соответствует пропорции 3:4 (900:1200) */
    overflow: hidden;
}

.product-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: calc(50% - 15px);
    flex: 0 0 auto;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    padding: 10px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul, 
.product-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-description h2, 
.product-description h3, 
.product-description h4 {
    color: #fd890a;
    margin-top: 20px;
    margin-bottom: 15px;
}

.product-description h2 {
    font-size: 1.5rem;
}

.product-description h3 {
    font-size: 1.3rem;
}

.product-description h4 {
    font-size: 1.1rem;
}

.product-infographic {
    margin-top: 30px;
    text-align: center;
}

.product-infographic img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* About page */
.about-page {
    margin-bottom: 50px;
}

.about-page h1 {
    color: #333;
    margin-bottom: 30px;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.about-text h2 {
    color: #fd890a;
    margin: 20px 0 15px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.advantages {
    margin-left: 20px;
    margin-bottom: 20px;
}

.advantages li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.advantages li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #ff3130;
    border-radius: 50%;
}

.about-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-logo {
    max-width: 80%!important;
    max-height: 300px;
    object-fit: contain;
    padding: 20px;
    box-shadow: none!important;
}

/* Contacts page */
.contacts-page {
    margin-bottom: 50px;
}

.contacts-page h1 {
    color: #333;
    margin-bottom: 30px;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #fd890a;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #fd890a;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #6d7174;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fd890a;
}

.form-submit {
    text-align: right;
    margin-top: 20px;
}

.g-recaptcha {
    margin: 20px 0;
}

.captcha-container {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fd890a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff3130;
}

.success-message {
    padding: 15px;
    background-color: #e6ffe6;
    color: #006600;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    padding: 15px;
    background-color: #ffe6e6;
    color: #cc0000;
    border-radius: 5px;
    margin-bottom: 20px;
}

.map-container {
    margin-top: 40px;
}

.map-container h2 {
    color: #fd890a;
    margin-bottom: 20px;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 10px;
}

.map iframe {
    border-radius: 6px;
    width: 100%;
    display: block;
}

/* Footer styles */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0 15px;
    flex-shrink: 0; /* Предотвращает сжатие футера */
}

.footer-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.footer-contacts {
    font-size: 1rem;
    text-align: center;
    padding: 0 20px;
    line-height: 1.5;
}

.contact-info-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: #ccc;
    margin-top: 10px;
    margin-bottom: 10px;
}

.separator {
    color: #fd890a;
    font-weight: bold;
}

.contact-label {
    font-weight: 600;
    color: #fd890a;
    margin-right: 4px;
}

.footer-contacts p {
    margin: 0;
    color: #ccc;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 30px 0;
}

.copyright p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-links a:hover {
    color: #ffa94d;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(214, 220, 226, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 42px rgba(18, 31, 43, 0.22);
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__text {
    display: grid;
    gap: 4px;
    color: var(--text);
}

.cookie-banner__text strong {
    font-size: 1rem;
}

.cookie-banner__text span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner__button {
    min-width: 112px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-banner__button--secondary {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.cookie-banner__button:hover {
    transform: translateY(-1px);
}

.legal-page {
    margin-bottom: 58px;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(214, 220, 226, 0.94);
    background:
        radial-gradient(circle at 92% -10%, rgba(58, 134, 255, 0.12), transparent 38%),
        linear-gradient(162deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 253, 0.94));
    box-shadow: 0 18px 34px rgba(18, 31, 43, 0.13);
}

.legal-page h1 {
    margin-bottom: 8px;
    color: #17202a;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 800;
}

.legal-page h2 {
    margin: 26px 0 10px;
    color: var(--primary-strong);
    font-size: 1.18rem;
}

.legal-page p,
.legal-page li {
    color: #4b5c68;
    line-height: 1.72;
}

.legal-page ul {
    margin: 8px 0 0 20px;
}

.legal-updated {
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* Admin styles */
.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-login h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff3130;
}

.admin-panel {
    padding: 30px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-nav {
    background-color: #333;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.admin-nav ul {
    display: flex;
    list-style: none;
}

.admin-nav li {
    margin-right: 20px;
}

.admin-nav a {
    color: #fff;
}

.admin-nav a:hover {
    color: #fd890a;
}

.admin-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dashboard styles */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-card h3 {
    color: #6d7174;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff3130;
    margin-bottom: 15px;
}

.quick-actions {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.quick-actions h3 {
    color: #6d7174;
    margin-bottom: 15px;
    text-align: center;
}

.quick-actions .action-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.quick-actions .btn {
    min-width: 200px;
    text-align: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* фиксированная ширина столбцов */
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle; /* вертикальное выравнивание по центру */
    word-wrap: break-word; /* перенос по словам */
}

.admin-table th {
    background-color: #f0f0f0;
    font-weight: 500;
}

/* Кнопки действий в таблицах */
.admin-table .action-buttons {
    display: flex;
    flex-direction: column; /* расположение кнопок в столбец */
    gap: 8px;
}

.btn-edit, .btn-delete {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-edit {
    color: #fff;
    background-color: #007bff;
}

.btn-delete {
    color: #fff;
    background-color: #dc3545;
}

/* Filter styles */
.filter-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-form label {
    font-weight: bold;
    margin-right: 8px;
}

.filter-form select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    min-width: 200px;
}

.filter-form button {
    padding: 8px 15px;
    background-color: #ff3130;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form button:hover {
    background-color: #e62a29;
}

.filter-form a.btn {
    padding: 8px 15px;
    background-color: #6d7174;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
}

.filter-form a.btn:hover {
    background-color: #5a5e61;
}

/* Responsive styles */
@media (max-width: 992px) {
    .product-content {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        width: 100%;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .about-content,
    .contacts-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 auto;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner__button {
        width: 100%;
    }

    .legal-page {
        padding: 18px;
        border-radius: 16px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-form select {
        width: 100%;
    }
    
    /* Адаптивные стили для админ-панели */
    .dashboard-stats {
        flex-direction: column;
    }
    
    .quick-actions .action-buttons {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
    
    /* Адаптивные стили для футера */
    .contact-info-inline {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
}

/* Modern redesign */
:root {
    --bg: #f2f4f7;
    --bg-alt: #e8ecef;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --text: #1e2a33;
    --text-soft: #5f6e7a;
    --primary: #e85d04;
    --primary-strong: #d9480f;
    --accent: #3a86ff;
    --line: #d6dce2;
    --shadow: 0 12px 34px rgba(21, 32, 43, 0.12);
}

html {
    background-color: var(--bg);
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text);
    background: transparent;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    inset: -12vh -12vw;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 12%, rgba(232, 93, 4, 0.12), transparent 38%),
        radial-gradient(circle at 88% 4%, rgba(58, 134, 255, 0.16), transparent 30%),
        linear-gradient(160deg, var(--bg), var(--bg-alt));
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
    transform: translateZ(0);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.35;
    z-index: -1;
}

.container {
    max-width: 1240px;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(214, 220, 226, 0.8);
    box-shadow: 0 8px 24px rgba(22, 32, 43, 0.08);
}

.header-container {
    min-height: 82px;
    gap: 16px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    padding: 2px 0;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 6px;
    gap: 6px;
    border: 1px solid rgba(214, 220, 226, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(20, 31, 43, 0.08);
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a::after {
    display: none;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(58, 134, 255, 0.12);
}

.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 8px 16px rgba(217, 72, 15, 0.28);
}

.main-nav a.active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-strong), #c53c0b);
}

.mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(214, 220, 226, 0.94);
    background: rgba(255, 255, 255, 0.88);
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 6px 14px rgba(20, 31, 43, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(189, 202, 214, 0.95);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2.5px;
    margin-bottom: 4px;
    background-color: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 34px;
    border-radius: 24px;
    text-align: left;
    margin: 28px 0 42px;
    box-shadow: var(--shadow);
    background:
        linear-gradient(120deg, rgba(24, 33, 43, 0.92), rgba(24, 33, 43, 0.78)),
        linear-gradient(105deg, rgba(232, 93, 4, 0.9), rgba(58, 134, 255, 0.78));
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    transition: transform 0.25s ease-out;
}

.hero::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -80px;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(var(--hero-shift, 0px));
}

.hero::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -120px;
    background: rgba(232, 93, 4, 0.25);
    transform: translateY(calc(var(--hero-shift, 0px) * -0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: none;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);
    gap: 30px;
    align-items: stretch;
}

.hero-kicker {
    margin-bottom: 10px;
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero h1 {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin-bottom: 14px;
}

.hero h1 span {
    color: #ffa94d;
}

.hero .slogan {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    margin: 0;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 22px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 22px rgba(217, 72, 15, 0.3);
}

.btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-strong), #c53c0b);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.14);
}

.hero-points {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-points span {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.hero-side-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 18px 18px 16px;
}

.hero-side-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hero-side-list li {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.38;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-side-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hero-side-list strong {
    display: inline-block;
    min-width: 52px;
    margin-right: 8px;
    color: #ffd8a8;
    font-weight: 800;
}

.hero-side-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding-left: 10px;
}

.categories h2,
.category-header h1 {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #17202a;
}

.about-page h1,
.contacts-page h1,
.product-detail h1 {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #17202a;
}

.categories-grid,
.products-grid {
    gap: 24px;
}

.category-card,
.product-card,
.about-image,
.contact-info,
.contact-form,
.map,
.product-gallery,
.product-info,
.admin-content,
.admin-login,
.stat-card,
.quick-actions {
    border-radius: 18px;
    border: 1px solid rgba(214, 220, 226, 0.9);
    box-shadow: var(--shadow);
}

.contact-info-only {
    max-width: 860px;
    margin: 0 auto;
}

.category-card,
.product-card {
    background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 93, 4, 0.5);
    box-shadow: 0 16px 34px rgba(18, 33, 47, 0.16);
}

.category-card h3,
.product-card h3 {
    color: #1b2731;
    font-size: 1.02rem;
}

.category-image img,
.product-image img {
    transition: transform 0.45s ease;
}

.category-card:hover .category-image img,
.product-card:hover .product-image img {
    transform: scale(1.045);
}

.breadcrumbs {
    margin: 24px 0;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.breadcrumbs a {
    color: var(--text-soft);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.category-description,
.no-products,
.about-text p,
.contact-info li {
    color: var(--text-soft);
}

.about-text h2,
.contact-info h2,
.contact-form h2,
.map-container h2,
.product-description h2,
.product-description h3,
.product-description h4 {
    color: var(--primary-strong);
}

.form-group input,
.form-group textarea,
.filter-form select {
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: #fff;
    padding: 11px 13px;
}

.form-group input:focus,
.form-group textarea:focus,
.filter-form select:focus {
    border-color: rgba(58, 134, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.14);
}

.filter-container {
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.success-message,
.error-message {
    border-radius: 12px;
    border: 1px solid transparent;
}

.success-message {
    border-color: #a8e6bf;
}

.error-message {
    border-color: #f3b0b0;
}

.social-links {
    margin-top: 22px;
}

.social-links h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.social-icon.vk {
    background-color: #2d81e0;
}

.social-icon.telegram {
    background-color: #249dd8;
}

/* About + contacts harmony */
.about-page {
    margin-bottom: 58px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(214, 220, 226, 0.92);
    background:
        radial-gradient(circle at 105% -8%, rgba(58, 134, 255, 0.16), transparent 36%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.93));
    box-shadow: 0 18px 34px rgba(18, 31, 43, 0.13);
}

.about-page h1 {
    margin-bottom: 22px;
}

.about-content {
    gap: 24px;
    align-items: stretch;
}

.about-text {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(214, 220, 226, 0.88);
    background-color: rgba(255, 255, 255, 0.82);
}

.about-text p {
    line-height: 1.76;
    color: #4b5c68;
}

.about-text h2 {
    margin-top: 24px;
    color: #d9480f;
}

.advantages {
    margin: 12px 0 18px;
    list-style: none;
}

.advantages li {
    margin-bottom: 10px;
    padding-left: 26px;
    color: #2f4250;
}

.advantages li::before {
    width: 10px;
    height: 10px;
    top: 8px;
    background: linear-gradient(135deg, #e85d04, #3a86ff);
}

.about-image {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(214, 220, 226, 0.88);
    background:
        radial-gradient(circle at 20% 15%, rgba(232, 93, 4, 0.08), transparent 42%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 253, 0.9));
}

.about-logo {
    max-width: 74% !important;
}

.contacts-page {
    margin-bottom: 58px;
}

.contacts-page .contact-info-only {
    padding: 30px;
    border-radius: 22px;
    border: 1px solid rgba(214, 220, 226, 0.94);
    background:
        radial-gradient(circle at 92% -10%, rgba(58, 134, 255, 0.15), transparent 38%),
        linear-gradient(162deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.92));
    box-shadow: 0 18px 34px rgba(18, 31, 43, 0.14);
}

.contacts-page .contact-info-only h2 {
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.contacts-page .contact-info-only ul {
    display: grid;
    gap: 10px;
}

.contacts-page .contact-info-only li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(222, 229, 236, 0.95);
    background-color: rgba(255, 255, 255, 0.84);
}

.contacts-page .contact-info-only li strong {
    color: #213443;
}

.contacts-page .contact-info-only .social-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(220, 228, 236, 0.9);
}

.site-footer {
    background:
        linear-gradient(130deg, #15202b 0%, #1d2e3c 55%, #273848 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 0 15px;
}

.contact-info-inline {
    color: rgba(236, 241, 246, 0.88);
}

.contact-label,
.separator {
    color: #ffa94d;
}

.copyright {
    color: rgba(226, 233, 240, 0.66);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-nav {
    background: linear-gradient(145deg, #1b2733, #223647);
}

.admin-nav a:hover,
.admin-login h1,
.stat-number,
.filter-form button,
.btn-delete,
.btn-edit {
    color: #fff;
}

.filter-form button,
.btn-delete,
.btn-edit {
    border: none;
    border-radius: 999px;
}

.filter-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.btn-edit {
    background: linear-gradient(135deg, #3386ff, #1665d8);
}

.btn-delete {
    background: linear-gradient(135deg, #f05252, #d93636);
}

/* Premium catalog accent */
.catalog-page.premium-catalog {
    position: relative;
}

.premium-breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(214, 220, 226, 0.92);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(18, 31, 43, 0.09);
}

.premium-breadcrumbs a,
.premium-breadcrumbs .current {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.premium-breadcrumbs a {
    color: #2f4250;
    background-color: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(218, 224, 230, 0.95);
}

.premium-breadcrumbs a:hover {
    color: #fff;
    background: linear-gradient(135deg, #e85d04, #d9480f);
    border-color: rgba(217, 72, 15, 0.8);
}

.premium-breadcrumbs .current {
    color: #fff;
    background: linear-gradient(135deg, #1f3445, #2f4f68);
    border: 1px solid rgba(31, 52, 69, 0.9);
}

.premium-breadcrumbs .crumb-separator {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(95, 110, 122, 0.72);
    border-top: 2px solid rgba(95, 110, 122, 0.72);
    transform: rotate(45deg);
    margin: 0 -2px;
}

.catalog-page.premium-catalog::before {
    content: '';
    position: absolute;
    inset: -10px -8px auto;
    height: 180px;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(232, 93, 4, 0.14), rgba(58, 134, 255, 0.08));
    z-index: -1;
}

.catalog-page.premium-catalog .category-header {
    margin-bottom: 24px;
    padding: 28px 24px;
    border: 1px solid rgba(214, 220, 226, 0.95);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% -20%, rgba(58, 134, 255, 0.17), transparent 52%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.92));
    box-shadow: 0 16px 34px rgba(20, 32, 44, 0.13);
}

.catalog-page.premium-catalog .category-header h1 {
    margin-bottom: 10px;
    color: #17202a;
}

.catalog-page.premium-catalog .category-description {
    font-size: 1rem;
    color: #5a6a76;
    max-width: 800px;
}

.catalog-page.premium-catalog .categories-grid,
.catalog-page.premium-catalog .products-grid {
    gap: 28px;
}

.catalog-page.premium-catalog .category-card,
.catalog-page.premium-catalog .product-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(229, 197, 156, 0.45);
    background:
        linear-gradient(185deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94));
    box-shadow: 0 18px 30px rgba(18, 31, 43, 0.14);
}

.catalog-page.premium-catalog .category-card a,
.catalog-page.premium-catalog .product-card a {
    display: block;
}

.catalog-page.premium-catalog .category-card::before,
.catalog-page.premium-catalog .product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.58) 45%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-110%);
    transition: transform 0.65s ease;
}

.catalog-page.premium-catalog .category-card:hover::before,
.catalog-page.premium-catalog .product-card:hover::before {
    transform: translateX(110%);
}

.catalog-page.premium-catalog .category-card:hover,
.catalog-page.premium-catalog .product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 93, 4, 0.55);
    box-shadow: 0 20px 36px rgba(16, 28, 39, 0.2);
}

.catalog-page.premium-catalog .category-card h3,
.catalog-page.premium-catalog .product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #16212b;
}

.catalog-page.premium-catalog .no-products {
    padding: 22px;
    border: 1px dashed rgba(214, 220, 226, 1);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Homepage scroll effects */
.reveal-on-scroll {
    will-change: opacity, transform;
}

.scroll-ready .home-page .reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-ready .home-page .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-ready .home-page .reveal-delay-1 {
    transition-delay: 0.05s;
}

.scroll-ready .home-page .reveal-delay-2 {
    transition-delay: 0.11s;
}

.scroll-ready .home-page .reveal-delay-3 {
    transition-delay: 0.17s;
}

.scroll-ready .home-page .categories-grid .reveal-on-scroll:nth-child(2n) {
    transition-delay: 0.08s;
}

.scroll-ready .home-page .categories-grid .reveal-on-scroll:nth-child(3n) {
    transition-delay: 0.14s;
}

.categories-grid > *,
.products-grid > *,
.about-content > *,
.contacts-content > * {
    animation: fadeUp 0.5s ease both;
}

.categories-grid > *:nth-child(2),
.products-grid > *:nth-child(2) {
    animation-delay: 0.06s;
}

.categories-grid > *:nth-child(3),
.products-grid > *:nth-child(3) {
    animation-delay: 0.12s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 50px 22px;
    }

    .main-nav ul {
        gap: 4px;
        padding: 5px;
    }

    .main-nav a {
        padding: 8px 13px;
        font-size: 0.89rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-side {
        max-width: 620px;
    }

    .header-container {
        min-height: 74px;
    }

    .catalog-page.premium-catalog .category-header {
        padding: 24px 20px;
    }

    .about-page {
        padding: 20px;
    }

    .about-text,
    .about-image,
    .contacts-page .contact-info-only {
        padding: 20px;
    }

    .contacts-page .contact-info-only li {
        grid-template-columns: 160px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
        top: auto;
        z-index: 20;
    }

    .header-container {
        flex-wrap: wrap;
        align-items: center;
    }

    .hero {
        border-radius: 18px;
        padding: 42px 18px;
        margin-top: 18px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
    }

    .hero-side-card {
        border-radius: 14px;
        padding: 14px;
    }

    .hero-side-list li {
        font-size: 0.9rem;
    }

    .hero-side-note {
        font-size: 0.88rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .main-nav {
        display: none !important;
        position: static;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 10px;
        border: 1px solid var(--line);
        border-top: 1px solid var(--line);
        border-radius: 16px;
        padding: 8px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 14px 24px rgba(20, 31, 43, 0.14);
    }

    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .main-nav li {
        border-bottom: 0;
    }

    .main-nav a {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .main-nav a.active {
        color: #fff;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .category-card,
    .product-card,
    .contact-info,
    .contact-form,
    .map {
        border-radius: 14px;
    }

    .about-page {
        padding: 14px;
        border-radius: 16px;
    }

    .about-text,
    .about-image,
    .contacts-page .contact-info-only {
        padding: 14px;
        border-radius: 14px;
    }

    .contacts-page .contact-info-only li {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 12px;
    }

    .catalog-page.premium-catalog .category-header {
        border-radius: 16px;
        padding: 20px 16px;
    }

    .premium-breadcrumbs {
        border-radius: 16px;
        margin-bottom: 18px;
        padding: 10px;
        gap: 8px;
    }

    .premium-breadcrumbs a,
    .premium-breadcrumbs .current {
        font-size: 0.82rem;
        padding: 5px 10px;
    }

    .catalog-page.premium-catalog .categories-grid,
    .catalog-page.premium-catalog .products-grid {
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
