* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #2980b9;
    --success-color: #27ae60;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.9);
    z-index: 0;
}

.header-top .header-contacts {
    position: relative;
    z-index: 1;
}

.header-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link span {
    font-size: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-text-line {
    display: block;
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.availability-banner {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.availability-banner p {
    color: #2e7d32;
    font-weight: 500;
    font-size: 18px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-desktop, 3), minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

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

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(var(--grid-mobile, 1), minmax(0, 1fr));
        gap: 15px;
    }
}

.category-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: var(--category-padding, clamp(15px, 2.5vw, 30px));
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1;
    justify-content: center;
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.category-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.category-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: clamp(10px, 1.5vw, 15px);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1.5vw, 15px);
    border: none;
    box-sizing: border-box;
}

.category-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-card-content h2 {
    font-size: clamp(12px, calc(1.2vw + 0.5rem), 22px);
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* Адаптивный размер шрифта в зависимости от размера карточки */
@media (max-width: 1200px) {
    .categories-grid[style*="--grid-desktop: 6"] .category-card-content h2,
    .categories-grid[style*="--grid-desktop: 5"] .category-card-content h2 {
        font-size: clamp(11px, 1vw, 16px);
    }
}

@media (max-width: 968px) {
    .categories-grid[style*="--grid-tablet: 4"] .category-card-content h2,
    .categories-grid[style*="--grid-tablet: 3"] .category-card-content h2 {
        font-size: clamp(11px, 1.2vw, 18px);
    }
}

/* Уменьшение шрифта для маленьких карточек через контейнерные запросы (если поддерживается) */
@supports (container-type: inline-size) {
    .category-card {
        container-type: inline-size;
    }
    
    @container (max-width: 200px) {
        .category-card-content h2 {
            font-size: 12px;
        }
    }
    
    @container (max-width: 150px) {
        .category-card-content h2 {
            font-size: 11px;
        }
    }
    
    @container (max-width: 120px) {
        .category-card-content h2 {
            font-size: 10px;
        }
    }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 8px;
}

.breadcrumbs a:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.breadcrumbs a::after {
    content: ' ›';
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}

.breadcrumbs a:hover::after {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs span {
    color: var(--text-color);
    background: #e8e8e8;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-block;
    font-weight: 500;
}

/* Items Table */
.items-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin: 30px 0;
    padding: 0 5px;
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: visible;
}

.items-table thead {
    background: var(--primary-color);
    color: white;
}

.items-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    position: relative;
}

.items-table td.item-name {
    padding-right: 20px;
}

.items-table tbody tr:hover {
    background: #f5f5f5;
}

.items-table tbody tr:last-child td {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--text-color);
    max-width: 400px;
    overflow: visible;
    min-width: 0;
}

.item-with-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-name-text {
    font-weight: 500;
}

.item-images-preview {
    margin-top: 10px;
    overflow: visible;
    padding-left: 0;
    padding-right: 10px;
    min-width: 0;
}

.images-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 5px 15px 5px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    margin-left: 0;
    margin-right: -15px;
    min-width: 0;
    position: relative;
}

.images-carousel img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.images-carousel img:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

/* Buttons */
.btn-order {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-order:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.materials-note {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.empty-category-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-category-message h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
}

.empty-category-message p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-category-message .contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-category-message .contact-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
}

.empty-category-message .contact-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.empty-category-message .contact-buttons a.phone-link {
    background: var(--primary-color);
}

.empty-category-message .contact-buttons a.phone-link:hover {
    background: var(--hover-color);
}

.empty-category-message .contact-buttons a.telegram-link {
    background: #0088cc;
}

.empty-category-message .contact-buttons a.telegram-link:hover {
    background: #006ba3;
}

.empty-category-message .contact-buttons a.email-link {
    background: var(--secondary-color);
}

.empty-category-message .contact-buttons a.email-link:hover {
    background: var(--hover-color);
}

@media (max-width: 768px) {
    .empty-category-message {
        padding: 40px 15px;
    }
    
    .empty-category-message h2 {
        font-size: 24px;
    }
    
    .empty-category-message p {
        font-size: 16px;
    }
    
    .empty-category-message .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .empty-category-message .contact-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept-cookies {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept-cookies:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-accept-cookies:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-notice {
        padding: 15px;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-notice-text {
        text-align: center;
        min-width: auto;
    }
    
    .cookie-notice-buttons {
        justify-content: center;
    }
    
    .btn-accept-cookies {
        width: 100%;
        max-width: 200px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 2% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #c0c0c0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-group select:hover {
    border-color: #c0c0c0;
}

.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Range slider styles */
.range-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.range-container input[type="range"] {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(to right, #e0e0e0 0%, var(--secondary-color) 0%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.range-container input[type="range"]:hover {
    height: 12px;
}

.range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--hover-color) 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.range-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}

.range-container input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--hover-color) 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.range-container input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}

.range-container input[type="range"]::-moz-range-track {
    height: 10px;
    border-radius: 10px;
    background: #e0e0e0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.range-labels span:first-child,
.range-labels span:last-child {
    font-weight: 500;
}

.range-labels span:nth-child(2) {
    font-weight: 700;
    font-size: 24px;
    color: var(--secondary-color);
    min-width: 40px;
    text-align: center;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--hover-color) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--hover-color) 0%, var(--secondary-color) 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.success-content,
.error-content {
    text-align: center;
    padding: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-content h2,
.error-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.success-content p,
.error-content p {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 16px;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    color: #666;
    font-size: 14px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.9);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.footer-address {
    white-space: pre-line;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #999;
}

/* Lightbox для изображений */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Страница товара */
.item-detail {
    margin: 40px 0;
}

.item-detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.item-images-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.item-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: white;
    transition: transform 0.3s ease;
}

.item-main-image img:hover {
    transform: scale(1.02);
}

.item-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f8f9fa;
}

.thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.thumbnail:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.item-no-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.item-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.item-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.item-prices {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.item-prices h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.price-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.price-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-row.highlight {
    background: #e3f2fd;
    border-color: var(--secondary-color);
}

.price-label {
    font-size: 16px;
    color: var(--text-color);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.btn-order-large {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 22px 40px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-order-large:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.item-description-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.item-description-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.item-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-line;
}

.item-name-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .item-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .item-images-section {
        order: 1;
    }
    
    .item-info-section {
        order: 2;
    }
    
    .item-title {
        font-size: 26px;
    }
    
    .item-thumbnails {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 968px) and (min-width: 769px) {
    .categories-grid {
        grid-template-columns: repeat(var(--grid-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-contacts {
        gap: 10px;
        font-size: 12px;
    }
    
    .contact-link {
        font-size: 12px;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-text-line {
        display: block;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(var(--grid-mobile, 1), minmax(0, 1fr)) !important;
        gap: 15px;
    }
    
    .items-table {
        font-size: 14px;
    }
    
    .items-table th,
    .items-table td {
        padding: 12px 8px;
    }
    
    .item-name {
        max-width: 200px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto;
        padding: 20px;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .range-container {
        padding: 15px;
    }
    
    .range-labels span:nth-child(2) {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Страница политики конфиденциальности */
.privacy-content {
    margin: 30px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-section a {
    color: var(--secondary-color);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

.privacy-markdown-content {
    line-height: 1.8;
    color: var(--text-color);
}

.privacy-markdown-content h1,
.privacy-markdown-content h2,
.privacy-markdown-content h3,
.privacy-markdown-content h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.privacy-markdown-content h1 {
    font-size: 28px;
}

.privacy-markdown-content h2 {
    font-size: 24px;
}

.privacy-markdown-content h3 {
    font-size: 20px;
}

.privacy-markdown-content p {
    margin-bottom: 15px;
}

.privacy-markdown-content ul,
.privacy-markdown-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-markdown-content li {
    margin-bottom: 8px;
}

.privacy-markdown-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.privacy-markdown-content a:hover {
    text-decoration: underline;
}

.privacy-markdown-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
}

.privacy-markdown-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.privacy-markdown-content pre code {
    background: none;
    padding: 0;
}

@media (max-width: 480px) {
    .items-table {
        font-size: 12px;
    }
    
    .items-table th {
        font-size: 11px;
        padding: 10px 5px;
    }
    
    .items-table td {
        padding: 10px 5px;
    }
    
    .btn-order {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Reviews Section */
.reviews-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.review-card-public {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card-public:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
}

.review-header-public {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-header-public h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.review-rating-public {
    display: flex;
    gap: 3px;
}

.review-rating-public .star {
    font-size: 18px;
    color: #ddd;
    line-height: 1;
}

.review-rating-public .star.filled {
    color: #ffc107;
}

.review-text-public {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    flex: 1;
}

.review-date-public {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

@media (max-width: 768px) {
    .reviews-section {
        margin-top: 60px;
        padding-top: 30px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card-public {
        padding: 20px;
    }
}

/* Location Section */
.location-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.location-info {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.location-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-address {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.location-address strong {
    color: var(--primary-color);
}

.location-phone,
.location-email {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.location-phone a,
.location-email a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-phone a:hover,
.location-email a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.location-notice {
    background: #fef9e7;
    border: 1px solid #f4d03f;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.location-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
}

.location-notice strong {
    color: #7d6608;
}

.location-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.location-map iframe,
.location-map #yandex-map {
    width: 100%;
    height: 100%;
    border: none;
}


@media (max-width: 968px) {
    .location-section {
        margin-top: 60px;
        padding-top: 30px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .location-info {
        padding: 20px;
    }
    
    .location-info h3 {
        font-size: 20px;
    }
    
    .location-address {
        font-size: 16px;
    }
    
    .location-map {
        height: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto;
        padding: 20px;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .range-container {
        padding: 15px;
    }
    
    .range-labels span:nth-child(2) {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
}
