/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.content-width {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #e9e9e9;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    flex-shrink: 0;
}

.logo a {
    color: #000000;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 30px;
    margin: 0 30px;
}

nav a {
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #c44320;
}

.contact-info {
    text-align: right;
    font-size: 18px;
    color: #777;
    flex-shrink: 0;
}

.contact-info p {
    margin: 0;
    color: #777;
}

.contact-info a {
    color: #777;
    text-decoration: none;
}

/* Hero Slider - ОБНОВЛЕННАЯ ВЕРСИЯ С ПЛАВНОЙ АНИМАЦИЕЙ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 60px;
}

.slider-container {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slider-image-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 300%; /* 3 изображения = 300% */
}

.slider-image {
    width: 33.333%; /* 100% / 3 изображения */
    height: 650px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(64, 64, 64, 0.8);
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-arrow:hover {
    background-color: rgba(92,23,5,0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 20px;
}

.slider-arrow.right {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(196, 67, 32, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: #c44320;
    transform: scale(1.2);
    border-color: white;
}

.dot:hover {
    background-color: #c44320;
    transform: scale(1.1);
}

/* Page Hero Section (for separate pages) */
.page-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    padding: 80px 0 60px 0;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-hero p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    text-align: center;
    padding: 105px 0 60px 0;
    background-color: #fff;
}

.about-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.about-section p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

/* Product Sections */
.products-section {
    padding: 30px 0 150px 0;
    text-align: center;
}

.products-section.light-gray-bg {
    background-color: #f5f5f5;
}

.products-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    line-height: 1.3;
}

@media screen and (min-width:900px){
    .products-section h2 {
        font-size:52px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Product image container */
.product-image-container {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Для wide-item */
.product-grid .wide-item .product-image-container {
    background-color: #333333;
    padding: 10px;
    height: 150px;
}

.product-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.product-item p {
    font-size: 20px;
    color: #777;
}

/* Other Products (List-like) Section */
.other-products-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 80px 0;
    text-align: center;
}

.other-product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    flex-grow: 1;
    max-width: 300px;
}

.other-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Для other-product-item */
.other-product-item .product-image-container {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.other-product-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.other-product-item p {
    font-size: 20px;
    color: #777;
}

/* Info Sections (for separate pages) */
.info-section {
    padding: 60px 0;
    text-align: center;
}

.info-section.light-gray-bg {
    background-color: #f5f5f5;
}

.info-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.info-block {
    max-width: 800px;
    margin: 0 auto;
}

.info-block h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.info-block p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Icon Boxes с иконками - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 35px 35px !important;
}

.payment-icon {
    background-color: #4CAF50;
    background-image: url('public/payment.png');
}

.delivery-icon {
    background-color: #2196F3;
    background-image: url('public/deliviry.png');
}

.phone-icon {
    background-color: #FF9800;
    background-image: url('public/phone.png');
}

.email-icon {
    background-color: #9C27B0;
    background-image: url('public/email.png');
}

.location-icon {
    background-color: #F44336;
    background-image: url('public/location.svg');
}

.schedule-icon {
    background-color: #607D8B;
    background-image: url('public/schedule.png');
}

/* Simple Delivery Methods */
.delivery-simple-methods {
    display: grid;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.delivery-simple-method {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.delivery-simple-method h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.delivery-simple-method p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

/* Company Requisites */
.company-requisites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.requisite-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.requisite-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.requisite-item strong {
    color: #333;
    font-weight: 600;
}

/* Simple Contacts Grid */
.contacts-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-simple-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-simple-card:hover {
    transform: translateY(-5px);
}

.contact-simple-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.contact-simple-card p {
    font-size: 18px;
    margin-bottom: 8px;
    color: #555;
}

.contact-simple-card a {
    color: #c44320;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-simple-card a:hover {
    color: #5c1705;
}

/* Payment and Delivery Section - добавляем иконку */
.payment-delivery-section {
    padding: 15px 0 30px 0;
    text-align: center;
    background-color: #fff;
}

.payment-delivery-section .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    background-color: #edb10c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IndoaXRlIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEwIDRIMTRBMiAyIDAgMCAxIDE2IDZWMTBBMiAyIDAgMCAxIDE0IDEySDEwQTIgMiAwIDAgMSA4IDEwVjZBMiAyIDAgMCAxIDEwIDRaTTEwIDZWMTBIMTRWNkgxMFpNNiAxNEgxOEEyIDIgMCAwIDEgMjAgMTZWMThBMiAyIDAgMCAxIDE4IDIwSDZBMiAyIDAgMCAxIDQgMThWMTZBMiAyIDAgMCAxIDYgMTRaTTYgMTZWMThIMThWMTZINloiLz48L3N2Zz4=');
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 35px 35px !important;
}

.payment-delivery-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.payment-delivery-section p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

.payment-delivery-section strong {
    font-weight: 700;
}

/* Company Contact Section */
.company-contact-section {
    background-color: #000000;
    color: #fff;
    padding: 150px 0;
    text-align: center;
}

.company-contact-section h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

.company-contact-section p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
}

.company-contact-section a {
    color: #ff8562;
    text-decoration: underline;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-placeholder {
    height: 80px; /* Adjust based on your header height */
}

/* Order Button in Modal */
.order-btn {
    background-color: #c44320;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-btn:hover {
    background-color: #5c1705;
    transform: translateY(-2px);
}

/* Order Form Modal */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.order-modal {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.order-modal-overlay.visible .order-modal {
    transform: scale(1);
}

.order-modal h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.order-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 24px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.order-modal-close-btn:hover {
    background-color: #f0f0f0;
    transform: rotate(90deg);
}

.form-product-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.form-product-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c44320;
}

.submit-order-btn {
    background-color: #c44320;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-order-btn:hover {
    background-color: #5c1705;
    transform: translateY(-2px);
}

/* Scroll Down Button */
.scroll-down-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #c44320;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 100;
}

.scroll-down-btn:hover {
    background-color: #5c1705;
}

.scroll-down-btn.hide {
    opacity: 0;
    visibility: hidden;
}

/* Update scroll-to-top button color for better visibility */
.scroll-to-top {
    background-color: #c44320;
}

.scroll-to-top:hover {
    background-color: #5c1705;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header-placeholder {
        height: auto;
    }
    
    .fixed-header .header-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .scroll-down-btn {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .order-modal {
        padding: 20px;
    }
}

/* Logo link styling */
.logo-link {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Modal Slider Styles */
.modal-slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.modal-slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slider-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.modal-slider-wrapper img.active {
    display: block;
}

.modal-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(64, 64, 64, 0.8);
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-slider-container.has-multiple-images .modal-slider-arrow {
    display: flex;
}

.modal-slider-arrow:hover {
    background-color: rgba(196, 67, 32, 0.9);
}

.modal-slider-arrow.left {
    left: 10px;
}

.modal-slider-arrow.right {
    right: 10px;
}

.modal-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-slider-dots .modal-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(196, 67, 32, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-slider-dots .modal-dot.active {
    background-color: #c44320;
    transform: scale(1.2);
}

.modal-slider-dots .modal-dot:hover {
    background-color: #c44320;
}

.logo-link:hover {
    opacity: 0.8;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #edb10c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Yandex.Metrica informer (visible on index page bottom-right) */
.ym-informer {
    position: fixed;
    right: 20px;
    bottom: 90px; /* place above scroll-to-top button */
    z-index: 500;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 6px 8px;
}

.ym-informer img {
    display: block;
}

@media (max-width: 768px) {
    .ym-informer {
        right: 10px;
        bottom: 80px;
        transform: scale(0.9);
    }
}

/* Product Modal Pop-up */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.product-modal {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.product-modal-overlay.visible .product-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 24px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: #f0f0f0;
    transform: rotate(90deg);
}

.modal-content-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.modal-image-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-product-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    background-color: #ebebeb;
    padding: 10px;
    border-radius: 8px;
}

.modal-details-col {
    flex: 2;
    min-width: 300px;
}

.modal-product-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.modal-product-description {
    font-size: 20px;
    margin-bottom: 20px;
    color: #555;
}

.modal-product-characteristics strong {
    font-size: 20px;
    line-height: 24px;
}

/* Quill Table Styling */
.quill-table__wrapper {
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.quill-table__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.quill-table__cell {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    font-size: 20px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .other-products-list {
        flex-direction: column;
        align-items: center;
    }
    .modal-content-wrapper {
        flex-direction: column;
    }
    .modal-image-col, .modal-details-col {
        min-width: unset;
        width: 100%;
    }
    .company-requisites {
        grid-template-columns: 1fr;
    }
    .contacts-simple-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
    }
    .contact-info {
        text-align: center;
    }
    .slider-image {
        height: 300px;
    }
    .slider-arrow {
        padding: 10px 8px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    .products-section h2, .about-section h2, .payment-delivery-section h2, .company-contact-section h2 {
        font-size: 24px;
    }
    .page-hero h1 {
        font-size: 32px;
    }
    .page-hero p {
        font-size: 18px;
    }
    .info-section h2 {
        font-size: 28px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .product-grid .wide-item .product-image-container {
        height: 100px;
    }
    .product-modal {
        padding: 20px;
    }
    .modal-product-name {
        font-size: 24px;
    }
    .modal-product-description, .quill-table__cell {
        font-size: 16px;
    }
    .modal-product-characteristics strong {
        font-size: 18px;
    }
    .contacts-simple-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    nav ul {
        gap: 8px;
    }
    .slider-image {
        height: 200px;
    }
    .slider-arrow.left {
        left: 10px;
    }
    .slider-arrow.right {
        right: 10px;
    }
    .products-section, .about-section, .payment-delivery-section, .company-contact-section {
        padding: 40px 0;
    }
    .other-products-list {
        padding: 40px 0;
    }
    .info-section {
        padding: 40px 0;
    }
    .page-hero {
        padding: 60px 0 40px 0;
    }
    .page-hero h1 {
        font-size: 28px;
    }
    .page-hero p {
        font-size: 16px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-grid .wide-item {
        max-width: 100%;
    }
    .product-modal {
        padding: 15px;
    }
    .contact-simple-card,
    .delivery-simple-method,
    .requisite-item {
        padding: 20px;
    }
}