


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body:not(.catalog-page) .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}


.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.contacts {
    display: flex;
    gap: 20px;
}

.phone, .email {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone a, .email a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone a:hover, .email a:hover {
    color: #667eea;
}


.admin-login-link {
    margin-left: 15px;
}

.admin-login-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.admin-login-link a:hover {
    background: #5a67d8;
    transform: scale(1.1);
}


.nav {
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: #667eea;
    background: #f7fafc;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}


.main {
    min-height: calc(100vh - 200px);
}


.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}


.features {
    padding: 80px 0;
    background: #f7fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}


.categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    color: #333;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 15px;
}


.about-preview {
    padding: 80px 0;
    background: #f7fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}


.footer {
    background: #2d3748;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}


.page-header {
    text-align: center;
    padding: 60px 0;
    background: #f7fafc;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.about-text h2 {
    margin-bottom: 20px;
    color: #333;
}

.about-text h3 {
    margin: 30px 0 15px;
    color: #667eea;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card, .features-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card h3, .features-list h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.features-list li:before {
    content: "✓";
    color: #667eea;
    position: absolute;
    left: 0;
}


.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-card h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.contact-map {
    background: #f7fafc;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #666;
}


.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.catalog-filters {
    background: #f7fafc;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-box button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}



.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.price-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 0; 
}

.price-inputs span {
    text-align: center;
    color: #666;
    font-weight: 500;
}


@media (max-width: 768px) {
    .price-inputs {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .price-inputs span {
        display: none;
    }
}
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.product-stock {
    color: #38a169;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-stock.out-of-stock {
    color: #e53e3e;
}


.order-section {
    background: #f7fafc;
    padding: 60px 0;
    margin-top: 60px;
}

.order-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.order-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.order-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-info h3 {
    margin-bottom: 20px;
    color: #333;
}

.order-info ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.order-info li {
    margin-bottom: 10px;
}

.contact-promo {
    background: #f7fafc;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 30px;
}

.modal-actions {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}


.accessibility-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.accessibility-toggle {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.accessibility-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    min-width: 200px;
}

.accessibility-menu.active {
    display: block;
}

.accessibility-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-btn {
    background: #f7fafc;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: #667eea;
    color: white;
}


@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .contacts {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .admin-login-link {
        margin-left: 10px;
    }
    
    .admin-login-link a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contacts-layout,
    .catalog-layout,
    .order-form-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .catalog-filters {
        position: static;
    }
}


.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button.active,
.pagination button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.products-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
    white-space: nowrap;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.products-table tr:hover {
    background-color: #f9f9f9;
}

.products-table .product-name {
    font-weight: 500;
    color: #333;
    max-width: 300px;
}

.products-table .product-category {
    color: #666;
    font-size: 0.9rem;
}

.products-table .product-price {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.products-table .stock-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.products-table .in-stock {
    background: #c6f6d5;
    color: #22543d;
}

.products-table .out-of-stock {
    background: #fed7d7;
    color: #742a2a;
}

.products-table .action-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}


.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 0.95rem;
}

.filter-path {
    border-left: 3px solid #667eea;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    min-width: 40px;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:hover:not(.active) {
    background: #f7fafc;
}

@media (max-width: 768px) {
    .products-table th,
    .products-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .products-table .action-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

#subcategorySection,
#detailSection {
    transition: all 0.3s ease;
}

.filter-path {
    font-size: 0.9rem;
    color: #4a5568;
}

.filter-path span {
    color: #667eea;
    font-weight: 500;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.price-inputs span {
    color: #666;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #667eea;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    color: #667eea;
    font-weight: bold;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.filter-actions .btn {
    width: 100%;
    text-align: center;
}

.filter-path {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
}

.filter-path strong {
    color: #333;
    margin-right: 5px;
}

#pathText {
    color: #667eea;
    font-weight: 500;
}


#subcategorySection,
#detailSection {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .filter-section h3 {
        font-size: 0.95rem;
    }
    
    .filter-select,
    .price-inputs input {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .filter-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f7fafc;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.filter-toggle:hover {
    border-color: #667eea;
    background: #fff;
}

.filter-toggle.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-toggle .toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.filter-toggle.active .toggle-slider {
    background: rgba(255, 255, 255, 0.3);
}

.filter-toggle .toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-toggle.active .toggle-slider::after {
    left: 22px;
    background: white;
}

.filter-toggle .toggle-text {
    font-size: 0.95rem;
    font-weight: 500;
}


@media (max-width: 768px) {
    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
}
.product-search-container {
    margin-bottom: 10px;
}

.product-search-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}


.error-field {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}


.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

#scrollToOrderBtn {
    padding: 10px 20px;
    font-size: 0.95rem;
}


@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    #scrollToOrderBtn {
        width: 100%;
    }
}


pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.yandex-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.yandex-form-inner {
    padding: 32px;
}

.yandex-form {
    font-family: 'YS Text', 'Helvetica Neue', Arial, sans-serif;
}

.yf-field {
    margin-bottom: 24px;
}

.yf-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.yf-label-text {
    display: inline-block;
    margin-right: 4px;
}

.yf-required {
    color: #f00;
    font-size: 15px;
}

.yf-hint {
    font-size: 13px;
    line-height: 1.4;
    color: #707070;
    margin-top: 4px;
}


.yf-input, .yf-textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.yf-input:focus, .yf-textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

.yf-input::placeholder, .yf-textarea::placeholder {
    color: #999;
}

.yf-textarea {
    resize: vertical;
    min-height: 60px;
}


.yf-select-wrapper {
    position: relative;
}

.yf-select-search-container {
    position: relative;
}

.yf-select-search {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
}

.yf-select-search:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

.yf-select-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yf-search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 14px;
}

.yf-search-result-item:hover {
    background: #f9f9f9;
}

.yf-search-result-item.selected {
    background: #fff8e1;
    border-left: 3px solid #ffcc00;
}

.yf-search-result-item .product-id {
    display: none; 
}

.yf-search-result-item .product-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.yf-search-result-item .product-price {
    color: #ff6b00;
    font-weight: 600;
    font-size: 14px;
}


.yf-selected-products {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.yf-selected-product-tag {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
}

.yf-selected-product-tag-remove {
    margin-left: 6px;
    color: #707070;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.yf-selected-product-tag-remove:hover {
    color: #f00;
}


.yf-button {
    display: inline-block;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.yf-button-submit {
    background-color: #ffdb4d;
    color: #000;
    padding: 14px 32px;
    min-width: 160px;
}

.yf-button-submit:hover {
    background-color: #ffd633;
}

.yf-button-submit:active {
    transform: translateY(1px);
}

.yf-button-text {
    position: relative;
    padding-right: 20px;
}

.yf-button-text::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
}

.yf-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.yf-form-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #707070;
}

.yf-required-note {
    color: #f00;
}


.order-info {
    margin-top: 40px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
}

.order-info h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

.order-info ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.order-info li {
    margin-bottom: 8px;
}

.contact-promo {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.contact-promo p {
    margin: 8px 0;
}


@media (max-width: 768px) {
    .yandex-form-inner {
        padding: 20px;
    }
    
    .yf-field {
        margin-bottom: 20px;
    }
}

.order-form-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.order-form-main {
    flex: 3;
    min-width: 0; 
}

.order-form-sidebar {
    flex: 2;
    min-width: 0;
}

.order-instructions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

.order-instructions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    counter-reset: instruction-counter;
}

.instructions-list li {
    counter-increment: instruction-counter;
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
    border-left: 2px solid #e9ecef;
    padding-left: 25px;
    margin-left: 10px;
}

.instructions-list li:before {
    content: counter(instruction-counter);
    position: absolute;
    left: -15px;
    top: 0;
    width: 28px;
    height: 28px;
    background: #ffcc00;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.instructions-list li strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.instructions-list li p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.order-tips {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin: 25px 0;
    border-left: 4px solid #4caf50;
}

.order-tips h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
}

.order-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-tips li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.order-tips li:before {
    content: "•";
    color: #4caf50;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 4px;
}

.contact-promo-sidebar {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.contact-promo-sidebar h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.contact-promo-sidebar p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.contact-phone, .contact-email {
    font-size: 15px !important;
    margin: 12px 0 !important;
}

.contact-phone a, .contact-email a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-phone a:hover, .contact-email a:hover {
    text-decoration: underline;
}


@media (max-width: 992px) {
    .order-form-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .order-instructions {
        position: static;
    }
}

@media (max-width: 768px) {
    .order-instructions {
        padding: 20px;
    }
    
    .instructions-list li {
        padding-left: 20px;
        margin-left: 5px;
    }
    
    .instructions-list li:before {
        left: -12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.order-form-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.form-column {
    flex: 2;
    min-width: 0;
}

.instructions-column {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 20px;
}


.order-form-container.yandex-form-wrapper {
    margin-bottom: 0;
}


.order-instructions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-instructions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 10px;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    counter-reset: instruction-counter;
}

.instructions-list li {
    counter-increment: instruction-counter;
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
}

.instructions-list li:before {
    content: counter(instruction-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #ffcc00;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.instructions-list li strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.instructions-list li p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.order-tips {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin: 25px 0;
    border-left: 4px solid #4caf50;
}

.order-tips h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
}

.order-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-tips li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.order-tips li:before {
    content: "•";
    color: #4caf50;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 4px;
}

.contact-promo-sidebar {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.contact-promo-sidebar h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.contact-promo-sidebar p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.contact-phone, .contact-email {
    font-size: 15px !important;
    margin: 12px 0 !important;
}

.contact-phone a, .contact-email a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-phone a:hover, .contact-email a:hover {
    text-decoration: underline;
}


@media (max-width: 992px) {
    .order-form-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .instructions-column {
        position: static;
        width: 100%;
    }
    
    .order-instructions {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .order-instructions {
        padding: 20px;
    }
    
    .instructions-list li {
        padding-left: 30px;
    }
    
    .instructions-list li:before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.error-field {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

.error-field:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important;
}

.field-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.field-error:before {
    content: "⚠️";
    margin-right: 5px;
    font-size: 14px;
}


.yf-hint {
    font-size: 12px;
    line-height: 1.4;
    color: #707070;
    margin-top: 4px;
    transition: color 0.2s;
}

.error-field + .yf-hint {
    color: #ff4d4f;
}

.compact-form .yandex-form-inner {
    padding: 25px;
}

.compact-form .yf-field {
    margin-bottom: 18px;
}


.compact-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.compact-fields-grid .yf-field {
    margin-bottom: 0;
}


.custom-product-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 18px;
}

.custom-product-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-product-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-product-label {
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.custom-product-title {
    font-weight: 500;
}

.custom-product-input {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}


.yf-selected-products {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-product-tag {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    animation: fadeIn 0.3s ease;
}

.selected-product-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.selected-product-price {
    margin-right: 8px;
    color: #ff6b00;
    font-weight: 500;
    font-size: 12px;
}

.selected-product-quantity {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-right: 8px;
}

.selected-product-remove {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.selected-product-remove:hover {
    color: #fff;
    background: #ff4d4f;
}


.yf-select-search-results {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.yf-search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    font-size: 14px;
}

.yf-search-result-item:last-child {
    border-bottom: none;
}

.yf-search-result-item:hover {
    background: #f9f9f9;
}

.yf-search-result-item.selected {
    background: #fff8e1;
}


.instructions-short {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #ffcc00;
}

.instructions-short p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.instructions-short strong {
    color: #333;
    margin-right: 5px;
}


.contact-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.contact-icon {
    margin-right: 10px;
    font-size: 18px;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.contact-link:hover {
    text-decoration: underline;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1200px) {
    .compact-fields-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .order-form-layout {
        flex-direction: column;
    }
    
    .wide-column, .narrow-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .compact-form .yandex-form-inner {
        padding: 20px 15px;
    }
    
    .selected-product-name {
        max-width: 150px;
    }
}

.error-field {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

.field-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.field-error:before {
    content: "⚠️";
    margin-right: 5px;
    font-size: 14px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-product-tag {
    animation: fadeIn 0.3s ease;
}



.yf-select-search[readonly] {
    background-color: #f9f9f9;
    cursor: pointer;
}

.yf-select-search[readonly]:focus {
    background-color: #fff;
}


.yf-selected-products {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}


.custom-option-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.custom-product-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-product-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-product-label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.custom-product-title {
    font-weight: 500;
}

.custom-product-input {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}


.yf-select-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}


.selected-product-tag {
    display: inline-flex;
    align-items: center;
    background: #e8f4ff;
    border: 1px solid #cce5ff;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    color: #0066cc;
    animation: fadeIn 0.3s ease;
}

.selected-product-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.selected-product-price {
    margin-right: 8px;
    color: #ff6b00;
    font-weight: 500;
    font-size: 12px;
}

.selected-product-quantity {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-right: 8px;
    background: #fff;
}

.selected-product-remove {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.selected-product-remove:hover {
    color: #fff;
    background: #ff4d4f;
}


.yf-search-result-item:hover {
    background: #f5f9ff;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 992px) {
    .order-form-layout {
        flex-direction: column;
    }
    
    .extra-wide-column, .extra-narrow-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .selected-product-name {
        max-width: 150px;
    }
    
    .compact-fields-grid {
        grid-template-columns: 1fr;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
    align-items: center;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:hover:not(.active) {
    background: #f7fafc;
    border-color: #667eea;
}

.page-info {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}


.prev-btn, .next-btn {
    padding: 8px 20px !important;
}

.page-dots {
    padding: 0 10px;
    color: #999;
}


@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination button {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .prev-btn, .next-btn {
        padding: 6px 12px !important;
    }
}

.accessibility-large {
    font-size: 1.2rem !important;
}

.accessibility-large * {
    font-size: inherit !important;
}

.accessibility-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.accessibility-high-contrast a,
.accessibility-high-contrast .btn,
.accessibility-high-contrast button,
.accessibility-high-contrast input,
.accessibility-high-contrast select,
.accessibility-high-contrast textarea {
    background: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.accessibility-high-contrast a:hover {
    color: #ffff00 !important;
}

.accessibility-dark {
    background: #222 !important;
    color: #eee !important;
}

.accessibility-dark .header,
.accessibility-dark .footer,
.accessibility-dark .catalog-filters,
.accessibility-dark .order-form,
.accessibility-dark .modal-content {
    background: #333 !important;
    color: #eee !important;
}

.accessibility-dark a {
    color: #66b3ff !important;
}

.accessibility-dark a:hover {
    color: #99ccff !important;
}

.accessibility-images-hidden img {
    display: none !important;
}

.accessibility-underline-links a {
    text-decoration: underline !important;
}

.accessibility-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.accessibility-toggle {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.accessibility-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
    min-width: 200px;
}

.accessibility-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accessibility-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-btn {
    background: #f7fafc;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: #667eea;
    color: white;
}
@media (max-width: 768px) {
  
  
  body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }
  
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 10px;
  }
  
  .logo {
    font-size: 1.2rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
  }
  
  .contacts {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  
  .phone, .email {
    font-size: 0.9rem;
    justify-content: flex-start;
  }
  
  .phone a, .email a {
    font-size: 0.9rem;
  }
  
  
  .nav {
    position: relative;
    padding: 10px 0;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 25px 30px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin: 0;
    gap: 0;
    overflow-y: auto;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-list li {
    width: 100%;
    margin: 0;
  }
  
  .nav-list a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }
  
  .nav-list a:hover,
  .nav-list a.active {
    background: #f7fafc;
    color: #667eea;
  }
  
  
  .nav-toggle {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    border: 1px solid #eee;
  }
  
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: #333;
    transition: 0.3s;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  
  .page-header {
    padding: 30px 0;
    text-align: center;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  
  .page-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
  

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .category-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin: 0;
    }
    
    .feature-icon,
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        padding: 15px;
    }
    
    
    .catalog-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .catalog-filters {
        position: relative;
        padding: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        background: white;
        order: 2;
        margin-bottom: 20px;
    }
    
    .filter-section {
        margin-bottom: 25px;
    }
    
    .filter-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #333;
    }
    
    .search-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box input {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .search-box button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .filter-select {
        padding: 14px 16px;
        font-size: 1rem;
        height: 52px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .price-inputs {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .price-inputs input {
        flex: 1;
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .price-inputs span {
        flex: 0 0 auto;
        padding: 0 8px;
        font-size: 1rem;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: #f8f9fa;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .filter-actions .btn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 8px;
    }
    
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
    }
    
    .products-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    #productsCount {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }
    
    #currentFilter {
        font-size: 0.9rem;
        color: #666;
        margin-left: 0;
        line-height: 1.4;
    }
    
    .products-sort {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .products-sort label {
        font-size: 0.95rem;
        font-weight: 500;
        color: #333;
    }
    
    .products-sort select {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .header-actions {
        width: 100%;
    }
    
    #scrollToOrderBtn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 52px;
        border-radius: 10px;
    }
    
    
    .table-container {
        margin: 0 -16px;
        padding: 0 16px;
        width: calc(100% + 32px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }
    
    .products-table {
        min-width: 750px;
        font-size: 0.9rem;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    .products-table th {
        padding: 16px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
        position: sticky;
        top: 0;
        background: #f8f9fa;
        border-bottom: 2px solid #667eea;
        font-weight: 600;
    }
    
    .products-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #eee;
    }
    
    
    .products-table th:nth-child(4), 
    .products-table td:nth-child(4),
    .products-table th:nth-child(5), 
    .products-table td:nth-child(5) {
        display: none;
    }
    
    .product-name {
        font-size: 0.95rem;
        line-height: 1.4;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-weight: 500;
    }
    
    .product-category {
        font-size: 0.85rem;
        color: #666;
    }
    
    .product-price {
        font-size: 1.1rem;
        font-weight: 600;
        white-space: nowrap;
        color: #2d3748;
    }
    
    .stock-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        min-width: 120px;
        font-weight: 500;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 500;
    }
    
    
    .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 30px 0;
        justify-content: center;
        align-items: center;
    }
    
    .pagination button {
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        font-size: 0.95rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        background: white;
        font-weight: 500;
    }
    
    .pagination button.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }
    
    .pagination button:hover:not(.active) {
        background: #f7fafc;
        border-color: #667eea;
    }
    
    
    .order-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .order-form-layout {
        flex-direction: column;
        gap: 25px;
    }
    
    .form-column,
    .instructions-column {
        width: 100%;
    }
    
    .yandex-form-wrapper {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        margin: 0;
    }
    
    .yandex-form-inner {
        padding: 25px 20px;
    }
    
    .yf-field {
        margin-bottom: 20px;
    }
    
    .yf-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        font-weight: 500;
    }
    
    .yf-input, .yf-textarea, .yf-select-search {
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 8px;
        border: 1px solid #ddd;
        width: 100%;
    }
    
    .yf-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .compact-fields-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .yf-select-search-results {
        max-height: 300px;
        z-index: 1000;
        position: fixed !important;
        top: 50% !important;
        left: 20px !important;
        right: 20px !important;
        bottom: auto !important;
        transform: translateY(-50%);
        max-height: 70vh;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .yf-search-result-item {
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
    }
    
    
    .selected-product-tag {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        width: 100%;
    }
    
    .selected-product-name {
        max-width: 100%;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    
    .order-instructions {
        position: static;
        padding: 25px 20px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid #e9ecef;
    }
    
    .instructions-short p {
        font-size: 0.95rem;
        margin: 12px 0;
        line-height: 1.5;
    }
    
    .contact-item {
        margin: 16px 0;
        display: flex;
        align-items: center;
    }
    
    .contact-link {
        font-size: 0.95rem;
        padding: 8px 0;
        display: block;
    }
    
    
    .yf-button-submit {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
        border-radius: 10px;
        font-weight: 600;
        min-height: 56px;
        margin-top: 10px;
    }
    
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }
    
    .modal-header {
        padding: 24px;
        border-bottom: 1px solid #eee;
    }
    
    .modal-body {
        padding: 24px;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }
    
    .modal-actions {
        padding: 20px 24px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 12px;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    
    .accessibility-panel {
        bottom: 20px;
        right: 20px;
    }
    
    .accessibility-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .accessibility-menu {
        bottom: 70px;
        right: 0;
        min-width: 220px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .accessibility-btn {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .contact-info p {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 25px;
        font-size: 0.9rem;
    }
    
    
    .feature-card,
    .category-card,
    .product-card {
        animation: slideUp 0.5s ease-out;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-sidebar {
    order: -1;
  }
  
  .info-card, .features-list {
    padding: 20px;
  }
  
  
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  
  .feature-card,
  .category-card {
    padding: 25px 20px;
  }
  
  .feature-icon,
  .category-icon {
    font-size: 2.5rem;
  }






@media (max-width: 768px) {
  .main > .container {
    animation: fadeIn 0.4s ease-out;
  }
  
  .catalog-filters,
  .table-container,
  .order-form-container {
    animation: slideInUp 0.5s ease-out;
  }
}

.error-field {
    border-color: #ff4444 !important;
    background-color: #fff5f5 !important;
    animation: pulseError 0.5s ease-in-out;
}

.field-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes pulseError {
    0% { border-color: #ff4444; }
    50% { border-color: #ff8888; }
    100% { border-color: #ff4444; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.order-form-layout {
    gap: 20px !important; 
}

.order-form-container.yandex-form-wrapper {
    margin-bottom: 0;
}


input[type="checkbox"].error-field {
    outline: 2px solid #ff4444;
    outline-offset: 2px;
}


.quick-notification {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    z-index: 10000 !important;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2s forwards !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    font-size: 14px !important;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    justify-items: center; 
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr; 
    }
}


.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; 
}

.category-card h3,
.category-card p {
    width: 100%; 
}
.about-preview {
    text-align: center;
    padding: 80px 0;
    background: #f7fafc;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.order-form-layout {
    display: flex;
    gap: 15px !important; 
    margin-top: 20px;
    align-items: stretch; 
}

.form-column {
    flex: 2.5;
    min-width: 0;
}

.instructions-column {
    flex: 1;
    min-width: 0;
}

.order-form-container.yandex-form-wrapper {
    height: 100%;
    margin-bottom: 0;
}

.order-instructions {
    height: 100%;
    padding: 15px !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}


.compact-form .yandex-form-inner {
    padding: 20px;
}


.instructions-short {
    margin: 10px 0 !important;
    padding: 10px !important;
}

.order-tips {
    margin: 10px 0 !important;
    padding: 10px !important;
}

.contact-promo-sidebar {
    margin-top: 10px !important;
    padding: 10px !important;
}
.error-field {
    border-color: #ff4444 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2) !important;
}

.field-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
    animation: shake 0.3s ease-in-out;
    display: block !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


input[type="checkbox"].error-field {
    outline: 2px solid #ff4444;
    outline-offset: 2px;
}


@keyframes pulse-red {
    0% { border-color: #ff4444; }
    50% { border-color: #ff8888; }
    100% { border-color: #ff4444; }
}

.error-field {
    animation: pulse-red 0.5s ease-in-out 3;
}
.quick-notification {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 5px !important;
    z-index: 10000 !important;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3s forwards !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    font-size: 14px !important;
}

.quick-notification.error {
    background: #dc3545 !important;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-field {
    border-color: #ff4444 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

.field-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


input[type="checkbox"].error-field {
    outline: 2px solid #ff4444 !important;
    outline-offset: 2px;
}





@media (max-width: 1024px) and (min-width: 769px) {
    .order-form-layout {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    
    .form-column {
        width: 100% !important;
        flex: none !important;
    }
    
    
    .instructions-column {
        width: 100% !important;
        flex: none !important;
        order: 2 !important; 
        margin-top: 0 !important;
    }
    
    
    .order-instructions {
        position: static !important;
        margin-top: 20px !important;
        height: auto !important;
    }
}


@media (max-width: 768px) {
    
    .order-form-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    
    .form-column,
    .instructions-column {
        width: 100% !important;
        flex: none !important;
    }
    
    
    .form-column {
        order: 1 !important; 
    }
    
    
    .instructions-column {
        order: 2 !important; 
        margin-top: 10px !important;
    }
    
    
    .order-instructions {
        position: static !important;
        height: auto !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    
    .compact-form .yandex-form-inner {
        padding: 20px 15px !important;
    }
    
    
    .compact-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    
    .order-instructions h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
}


@media (max-width: 768px) and (min-width: 481px) {
    .order-form-layout {
        gap: 15px !important;
    }
    
    .order-instructions {
        padding: 18px !important;
    }
    
    
    .instructions-short p {
        font-size: 14px !important;
    }
}


@media (max-width: 480px) {
    .order-form-layout {
        gap: 12px !important;
    }
    
    
    .compact-form .yandex-form-inner {
        padding: 15px 12px !important;
    }
    
    .order-instructions {
        padding: 15px !important;
    }
    
    
    .instructions-short p {
        margin: 6px 0 !important;
        font-size: 13px !important;
    }
    
    .contact-link {
        font-size: 13px !important;
    }
    
    
    .yf-button-submit {
        padding: 16px !important;
        font-size: 15px !important;
        min-height: 50px !important;
    }
}


@media (max-width: 960px) and (min-width: 769px) and (orientation: landscape) {
    /* Для планшетов в альбомном режиме можно оставить горизонтальное расположение,
       но с уменьшенными отступами */
    .order-form-layout {
        gap: 20px !important;
    }
    
    .form-column {
        flex: 2 !important;
    }
    
    .instructions-column {
        flex: 1 !important;
    }
}


@media (max-width: 960px) {
    
    .order-form-layout {
        gap: 18px !important;
    }
}


@media (max-width: 1024px) {
    
    .order-section::before {
        content: "📱 Интерфейс оптимизирован для мобильных устройств";
        display: block;
        text-align: center;
        background: #f0f9ff;
        color: #0066cc;
        padding: 8px;
        font-size: 12px;
        border-radius: 5px;
        margin-bottom: 15px;
        border: 1px solid #b3e0ff;
    }
    
    
    .instructions-short p {
        line-height: 1.5 !important;
    }
    
    
    .contact-link {
        padding: 8px 0 !important;
        display: inline-block !important;
        min-height: 44px !important; 
    }
}




.order-form-layout {
    display: flex;
    gap: 30px; 
    margin-top: 20px;
    align-items: stretch; 
}


.form-column {
    flex: 2.5;
    min-width: 0;
}

.instructions-column {
    flex: 1;
    min-width: 0;
}


.order-instructions {
    position: sticky;
    top: 20px;
    height: 100%; 
}


.order-form-container.yandex-form-wrapper {
    margin-bottom: 0;
}

.compact-form .yandex-form-inner {
    padding: 25px; 
}
.mobile-search-container {
    display: none;
    grid-column: 1 / -1; 
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-search-box input {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; 
}

.mobile-search-box button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
}

.mobile-filters-toggle {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px solid #ddd;
}

.mobile-filters-toggle span {
    font-size: 18px;
}


.desktop-search {
    display: block;
}


@media (max-width: 1024px) {
    
    .mobile-search-container {
        display: block;
        order: -1; 
    }
    
    
    .desktop-search {
        display: none;
    }
    
    
    .catalog-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    
    .catalog-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1001;
        overflow-y: auto;
        padding: 70px 20px 20px;
        animation: slideInRight 0.3s ease-out;
    }
    
    
    .catalog-filters.mobile-visible {
        display: block;
    }
    
    
    .close-filters-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #667eea;
        color: white;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }
    
    
    .filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }
    
    .filters-overlay.visible {
        display: block;
    }
    
    
    .filter-section {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .filter-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #333;
    }
    
    .filter-select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-inputs input {
        width: 100%;
        padding: 12px;
    }
    
    .price-inputs span {
        display: none;
    }
    
    .filter-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }
    
    .filter-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


@media (max-width: 768px) {
    .mobile-search-box input {
        font-size: 16px; 
    }
    
    .catalog-filters {
        padding: 80px 15px 15px;
    }
}

@media (max-width: 480px) {
    .mobile-search-container {
        padding: 12px;
    }
    
    .mobile-search-box {
        flex-direction: column;
    }
    
    .mobile-search-box button {
        padding: 12px;
        width: 100%;
    }
    
    .mobile-filters-toggle {
        padding: 12px;
        font-size: 15px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .mobile-search-container {
        padding: 20px;
    }
    
    .catalog-filters {
        padding: 80px 30px 30px;
    }
}


@media (min-width: 1025px) {
    .mobile-search-container {
        display: none !important;
    }
    
    .catalog-layout {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
    
    .catalog-filters {
        display: block !important;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    .desktop-search {
        display: block;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-search-container {
        display: block !important;
        order: -1;
        margin-bottom: 25px;
        padding: 20px;
    }
    
    .catalog-layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .catalog-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 30%;
        right: 0;
        bottom: 0;
        padding: 80px 30px 30px;
        animation: slideInRight 0.3s ease;
    }
    
    .catalog-filters.mobile-visible {
        display: block;
    }
    
    .mobile-filters-toggle {
        max-width: 200px;
        margin: 0 auto;
    }
    
    
    .mobile-search-box input {
        font-size: 16px;
        padding: 16px;
    }
    
    .filter-section h3 {
        font-size: 17px;
    }
    
    .filter-select {
        padding: 14px;
    }
}


@media (max-width: 768px) and (orientation: portrait) {
    .catalog-filters {
        padding: 80px 20px 20px;
    }
}


@media (max-width: 1024px) and (orientation: landscape) {
    .catalog-filters {
        left: 40%;
    }
    
    .mobile-search-box {
        flex-direction: row;
    }
    
    .mobile-search-box button {
        width: auto;
        padding: 0 25px;
    }
}

@media (min-width: 1025px) {
    .catalog-page .container {
        padding: 0 40px;
    }
    
    
    .catalog-page .table-container {
        margin: 0 -40px;
        padding: 0 40px;
        width: calc(100% + 80px);
    }
    
    
    .catalog-page .products-header {
        padding: 0 40px;
    }
    
    
    .catalog-page .order-section .container {
        padding: 0;
    }
    
    .catalog-page .order-form-layout {
        padding: 0 40px;
    }
}


@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .catalog-page .container {
        padding: 0 20px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-page .container {
        padding: 0 30px;
    }
}

@media (min-width: 1440px) {
    .catalog-page .catalog-layout {
        grid-template-columns: 320px 1fr;
        gap: 50px;
    }
    
    .catalog-page .products-table {
        font-size: 1rem;
    }
    
    .catalog-page .products-table th,
    .catalog-page .products-table td {
        padding: 20px 15px;
    }
}


@media (min-width: 1920px) {
    .catalog-page .container {
        padding: 0 60px;
    }
    
    .catalog-page .catalog-layout {
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }
    
    .catalog-page .table-container {
        margin: 0 -60px;
        padding: 0 60px;
        width: calc(100% + 120px);
    }
    
    .catalog-page .products-header {
        padding: 0 60px;
    }
    
    .catalog-page .order-form-layout {
        padding: 0 60px;
    }
}
@media (max-width: 768px) {
    
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 30px 0;
        width: 100%;
    }

    
    .about-text {
        width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center;
        color: #333;
        line-height: 1.3;
    }

    .about-text h3 {
        font-size: 1.4rem;
        margin: 25px 0 15px;
        text-align: center;
        color: #667eea;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
        color: #555;
    }

    
    .about-sidebar {
        width: 100%;
        order: -1; 
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    
    .info-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        margin-bottom: 0;
        text-align: center;
    }

    .info-card h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: #333;
        text-align: center;
        border-bottom: 2px solid #667eea;
        padding-bottom: 10px;
    }

    .info-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .info-label {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
        word-break: break-word;
    }

    
    .features-list {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        text-align: center;
    }

    .features-list h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: #333;
        text-align: center;
        border-bottom: 2px solid #667eea;
        padding-bottom: 10px;
    }

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

    .features-list li {
        margin-bottom: 12px;
        padding: 10px 15px 10px 40px;
        position: relative;
        text-align: left;
        background: #f8f9fa;
        border-radius: 8px;
        font-size: 0.95rem;
        color: #555;
    }

    .features-list li:before {
        content: "✓";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        font-weight: bold;
        font-size: 1.1rem;
    }

    .features-list li:last-child {
        margin-bottom: 0;
    }

    
    .page-header {
        padding: 40px 15px;
        text-align: center;
        background: #f7fafc;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 10px;
        line-height: 1.3;
        color: #333;
    }

    .page-subtitle {
        font-size: 1.1rem;
        color: #666;
        line-height: 1.4;
    }

    
    .main > .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
}


@media (max-width: 480px) {
    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .info-card h3,
    .features-list h3 {
        font-size: 1.3rem;
    }

    .features-list li {
        font-size: 0.9rem;
        padding: 8px 12px 8px 35px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .about-text {
        text-align: center;
        padding: 0 20px;
    }

    .about-text h2,
    .about-text h3 {
        text-align: center;
    }

    .about-text p {
        text-align: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }

    .info-card,
    .features-list {
        height: 100%;
    }
}


@media (max-width: 768px) {
    .about-content {
        animation: fadeInUp 0.5s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}