/* ============================================
   СТИЛИ САЙТА КОМПАНИИ
   Разделение на логические блоки
   ============================================ */

/* ===== 1. БАЗОВЫЕ НАСТРОЙКИ И СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

main {
    flex: 1;
}

/* ===== 2. ТИПОГРАФИКА И ЗАГОЛОВКИ ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title i {
    margin-right: 10px;
    color: #f97316;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ===== 3. КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.btn i {
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-kp {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-kp:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #1e3a8a;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: #1e3a8a;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.btn-submit {
    font-size: 1.1rem;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

.btn-details {
    flex: 2;
    background-color: #1e3a8a;
    color: white;
}

.btn-quote {
    flex: 1;
    background-color: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-quote:hover {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-select {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-select:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.btn-disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
    font-size: 0.9rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.btn-remove-product {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-product:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* ===== 4. ШАПКА И НАВИГАЦИЯ ===== */
.header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

/* Навигация */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #1e3a8a;
}

.nav-link.active {
    color: #1e3a8a;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 3px;
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f1f5f9;
    padding: 10px 20px;
    border-radius: 8px;
}

.phone i {
    color: #1e3a8a;
    font-size: 1.1rem;
}

.phone-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1e3a8a;
    color: white;
}

.mobile-menu-header span {
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-link {
    padding: 20px;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.mobile-menu-link:hover {
    background-color: #f1f5f9;
}

.mobile-menu-contacts {
    padding: 20px;
    margin-top: auto;
    background-color: #f8fafc;
}

.mobile-menu-contacts p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

/* ===== 5. ГЛАВНЫЙ БАННЕР (HERO) ===== */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.85)),
                url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 6. О КОМПАНИИ ===== */
.about {
    padding: 80px 0;
    background-color: white;
}

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

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #475569;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #f97316;
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 500;
    color: #334155;
}

/* ===== 7. КАТЕГОРИИ ТОВАРОВ ===== */
.product-categories {
    padding: 80px 0;
    background-color: #f1f5f9;
}

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

.category-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

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

.category-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.category-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== 8. ПРОЦЕСС РАБОТЫ ===== */
.process {
    padding: 80px 0;
    background-color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    counter-reset: step-counter;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.step p {
    color: #64748b;
    line-height: 1.6;
}

/* ===== 9. ПОДВАЛ (FOOTER) ===== */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.footer-logo .logo-subtitle {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.footer-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-rekvizit {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.footer-rekvizit p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-rekvizit strong {
    color: #94a3b8;
    font-weight: 600;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    text-align: center;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.contact-item i {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.contact-value {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: white;
}

.social-link.telegram:hover {
    background-color: #0088cc;
}

.social-link.whatsapp:hover {
    background-color: #25D366;
}

.social-link.email:hover {
    background-color: #EA4335;
}

.social-link i {
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
}

.footer-developer a {
    color: #3b82f6;
    text-decoration: none;
}

.footer-developer a:hover {
    text-decoration: underline;
}

/* ===== 10. СТРАНИЦА КАТАЛОГА ===== */
.catalog-page {
    padding: 40px 0 80px;
    min-height: 70vh;
}

.page-title {
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 800;
}

.page-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.catalog-controls {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.filter-label i {
    margin-right: 5px;
    color: #3b82f6;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 0.95rem;
    min-width: 200px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    appearance: none;
    background-image: 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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

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

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.checkbox-label {
    color: #475569;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.in-stock {
    background-color: #10b981;
    color: white;
}

.out-stock {
    background-color: #ef4444;
    color: white;
}

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

.product-sku {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-family: monospace;
}

.product-name {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.5rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.loading-state p {
    color: #64748b;
    font-size: 1.1rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
}

.no-results-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    color: #475569;
    margin-bottom: 10px;
}

.no-results p {
    color: #94a3b8;
    margin-bottom: 30px;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: white;
    border: 2px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover:not(.disabled) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.page-link.active {
    background-color: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

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

/* ===== 11. СТРАНИЦА КОНТАКТОВ ===== */
.contacts-page {
    padding: 40px 0 80px;
}

.contacts-header {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-cta {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 50px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contacts-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.8rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.contact-card p {
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-card strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 15px;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.map-section {
    margin-bottom: 60px;
}

.map-section h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    background-color: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.map-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.map-mockup {
    text-align: center;
    color: #475569;
    padding: 20px;
}

.map-point {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.map-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
    font-style: italic;
}

/* Яндекс.Карты */
#yandex-map {
    position: relative;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 250px;
    font-size: 14px;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.map-links {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.map-links-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.map-balloon {
    padding: 0;
    font-family: inherit;
}

.balloon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.balloon-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.balloon-badge.office {
    background: #dbeafe;
    color: #1d4ed8;
}

.balloon-badge.warehouse {
    background: #fef3c7;
    color: #92400e;
}

.balloon-content p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.balloon-content i {
    width: 16px;
    color: #6b7280;
}

.balloon-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* Контактные лица */
.contact-persons {
    margin-bottom: 60px;
}

.contact-persons h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.person-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.person-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.person-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #3b82f6;
}

.person-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.person-position {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.person-contact {
    color: #475569;
    line-height: 1.8;
    text-align: left;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.person-contact i {
    color: #3b82f6;
    width: 20px;
    margin-right: 10px;
}

/* Реквизиты */
.requisites {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.requisites h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requisites-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.requisites-column h4 {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.requisites-column h4:not(:first-child) {
    margin-top: 30px;
}

.requisites-column p {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.6;
}

.requisites-column strong {
    color: #475569;
    font-weight: 600;
    min-width: 0;
    margin-right: 8px;
    display: inline-block;
}

/* ===== 12. СТРАНИЦА КАРТОЧКИ ТОВАРА ===== */
.product-page {
    padding: 30px 0 80px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 0.8rem;
    color: #94a3b8;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.thumbnail:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

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

.product-header {
    margin-bottom: 25px;
}

.product-header h1 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.product-description,
.product-specifications,
.product-documents {
    margin-bottom: 30px;
}

.product-description h3,
.product-specifications h3,
.product-documents h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description p {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

.specs-table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:nth-child(even) {
    background-color: #f8fafc;
}

.spec-name {
    font-weight: 600;
    color: #475569;
}

.spec-value {
    color: #1e293b;
}

.loading-row {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

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

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s;
}

.document-item:hover {
    background-color: #f0f9ff;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-icon {
    font-size: 1.5rem;
    color: #3b82f6;
}

.document-name {
    font-weight: 500;
    color: #1e293b;
}

.document-size {
    font-size: 0.85rem;
    color: #94a3b8;
}

.download-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.download-btn:hover {
    color: #1e3a8a;
}

.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.related-info {
    padding: 20px;
}

.related-name {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-price {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== 13. СТРАНИЦА ЗАПРОСА КП ===== */
.quote-page {
    padding: 40px 0 80px;
}

.quote-header {
    text-align: center;
    margin-bottom: 50px;
}

.quote-header .page-title {
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.quote-header .page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 30px;
}

.quote-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.quote-steps .step {
    text-align: center;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.quote-steps .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.quote-steps p {
    color: #475569;
    font-weight: 500;
}

.quote-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.info-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.info-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.quote-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.form-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-form {
    margin-top: 30px;
}

.form-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section-header h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

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

.select-with-search {
    position: relative;
    margin-bottom: 5px;
}

.select-with-search select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: 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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.select-with-search select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.product-preview {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.product-preview h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.preview-content {
    display: grid;
    gap: 8px;
}

.preview-content p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    gap: 5px;
}

.preview-content strong {
    color: #334155;
    min-width: 80px;
}

.form-hint {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

input[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* Товары в форме КП */
.selected-product {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease;
}

.selected-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.selected-product-header h4 {
    color: #1e3a8a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-info-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.products-list-container {
    min-height: 150px;
}

.no-products {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    margin-bottom: 20px;
}

.no-products i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.no-products p {
    color: #64748b;
    margin-bottom: 20px;
}

.no-products-hint {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 10px;
}

.product-item-row {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.product-item-title h5 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.product-item-sku {
    color: #64748b;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

.product-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.product-item-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-item-field label {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-item-field input,
.product-item-field select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #475569;
    font-family: 'Roboto', sans-serif;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.quantity-control input[type="number"],
.quantity-input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.quantity-unit {
    background-color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.unit-select {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    min-width: 80px;
}

.unit-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

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

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
}

.price-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.price-unit {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

.product-price-display {
    display: block;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

.product-item-notes {
    margin-top: 15px;
}

.product-item-notes label {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.notes-textarea,
.product-item-notes textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 60px;
}

.notes-textarea:focus,
.product-item-notes textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.notes-text {
    background-color: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 5px;
}

/* Характеристики товара в форме */
.product-item-specs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.specs-header label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.specs-count {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.specs-content {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 5px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 13px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-key {
    color: #6b7280;
    min-width: 45%;
    padding-right: 10px;
}

.spec-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    max-width: 55%;
    word-break: break-word;
}

.specs-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px;
    background: #eff6ff;
    border-radius: 6px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.specs-more:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.specs-more i {
    font-size: 12px;
}

.specs-more-count {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Действия с товарами */
.add-products-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.products-summary {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    border: 1px solid #3b82f6;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e3a8a;
    font-size: 1rem;
}

.summary-item i {
    font-size: 1.2rem;
}

.summary-item strong {
    font-size: 1.2rem;
    color: #1e3a8a;
}

.products-hint {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.products-hint i {
    color: #3b82f6;
    margin-top: 3px;
}

.products-hint p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Загрузка файлов */
.file-upload-wrapper {
    margin-top: 10px;
}

.file-upload-label {
    display: block;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 500;
}

.file-hint {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: normal;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.file-upload-area i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.file-upload-area p {
    margin: 0;
    color: #64748b;
}

.file-browse {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: underline;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

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

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: #3b82f6;
}

.file-name {
    font-weight: 500;
    color: #1e293b;
    word-break: break-all;
}

.file-size {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 2px;
}

.file-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.no-files {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    font-style: italic;
}

/* Чекбоксы и согласия */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #3b82f6;
    min-width: 20px;
    min-height: 20px;
}

.checkbox-group label {
    margin-bottom: 0;
    flex: 1;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-group label a {
    color: #3b82f6;
    text-decoration: none;
}

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

.form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-actions-secondary {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Гарантии в боковой панели */
.quote-guarantees {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.quote-guarantees h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
}

.guarantee-item i {
    color: #10b981;
    font-size: 1.1rem;
}

.contact-prompt {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    text-align: center;
    border: 2px solid #3b82f6;
}

.contact-prompt h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.contact-prompt p {
    color: #475569;
    margin-bottom: 10px;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 15px 0;
}

.contact-phone i {
    color: #3b82f6;
}

.contact-prompt a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}

.contact-prompt a:hover {
    text-decoration: underline;
}

/* ===== 14. МОДАЛЬНОЕ ОКНО КАТАЛОГА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header h3 {
    margin: 0;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Управление каталогом в модальном окне */
.catalog-modal-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.catalog-modal-controls .search-box {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.catalog-modal-controls .search-box input {
    width: 100%;
}

.catalog-modal-controls .category-filter {
    min-width: 200px;
}

.catalog-modal-controls select {
    width: 100%;
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
    margin-bottom: 20px;
}

.catalog-products-grid::-webkit-scrollbar {
    width: 8px;
}

.catalog-products-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.catalog-products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.catalog-products-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.catalog-product-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-product-card:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.catalog-product-card:not(.added):hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.catalog-product-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.catalog-product-card.added {
    opacity: 0.7;
    background-color: #f8fafc;
    cursor: not-allowed;
}

.catalog-product-card.added:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e2e8f0 !important;
}

.catalog-product-card.added:hover::after {
    content: "Товар уже в запросе";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 20;
}

.catalog-product-card:not(.added):active {
    animation: pulse 0.2s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.product-select-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.product-select-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.product-select-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.added-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.catalog-product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

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

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

.catalog-product-info > * {
    margin-bottom: 8px;
}

.catalog-product-info > *:last-child {
    margin-bottom: 0;
}

.catalog-product-info h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.catalog-product-info .product-sku {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-info .product-description {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-catalog {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-actions-modal {
    margin-top: auto;
    padding-top: 15px;
}

.btn-add-from-catalog {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add-from-catalog:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
}

/* Состояния загрузки и пустоты */
.loading-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.loading-catalog i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.loading-catalog p {
    color: #64748b;
}

.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-products-found i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-products-found h4 {
    color: #475569;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-products-found p {
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.error-loading i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-loading h4 {
    color: #dc2626;
    margin-bottom: 10px;
}

/* Сводка выбранных товаров */
.selected-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.selected-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
    font-weight: 500;
}

.selected-count i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Подсказка в модальном окне */
.modal-hint {
    background-color: #f0f9ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
}

.modal-hint i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 2px;
}

.modal-hint p {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Уведомление в модальном окне */
.modal-toast {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

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

/* ===== 15. УВЕДОМЛЕНИЯ И СООБЩЕНИЯ ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success i {
    color: #10b981;
}

.toast-error i {
    color: #ef4444;
}

.toast-warning i {
    color: #f59e0b;
}

.toast-info i {
    color: #3b82f6;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    color: #64748b;
}

/* Сообщение об успехе */
.form-success {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #10b981;
    border-radius: 16px;
    margin-top: 30px;
    animation: fadeInUp 0.5s ease forwards;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    display: block !important;
}

.success-message-content {
    animation: fadeIn 0.4s ease;
}

.success-icon {
    margin-bottom: 5px;
}

.success-icon i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 10px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-details h4 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.request-number {
    display: inline-block;
    background-color: #f1f5f9;
    color: #1e3a8a;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px 0;
    border: 2px solid #3b82f6;
    font-family: 'Roboto', sans-serif;
}

.success-details p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-summary {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.success-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.success-summary .summary-item:last-child {
    margin-bottom: 0;
}

.success-summary .summary-item i {
    color: #3b82f6;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.summary-value {
    display: block;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.contact-info-card h5 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h5 i {
    color: #3b82f6;
    font-size: 1rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
    justify-content: flex-start;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details p i {
    color: #64748b;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-details strong {
    color: #475569;
    font-weight: 600;
    min-width: 70px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-success .btn {
    min-width: 180px;
    font-weight: 600;
    transition: all 0.3s;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
}

.form-success .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    color: white;
}

.form-success .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.form-success .btn-secondary {
    background-color: white;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.form-success .btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

/* Ошибки формы */
.field-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

input.error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-errors {
    margin-bottom: 25px;
    animation: slideIn 0.3s ease;
}

.error-message {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #dc2626;
}

.error-message i.fa-exclamation-triangle {
    font-size: 1.5rem;
    margin-top: 2px;
}

.error-message h4 {
    margin: 0 0 5px 0;
    color: #dc2626;
}

.error-message p {
    margin: 0;
    white-space: pre-line;
    line-height: 1.5;
}

.error-close {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* ===== 16. ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
/* Политика конфиденциальности */
.privacy-policy {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.policy-header .page-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.policy-header .page-subtitle {
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 10px;
}

.policy-date {
    color: #3498db;
    font-weight: 500;
    font-size: 16px;
}

.policy-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h2 i {
    color: #3498db;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #495057;
}

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

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #495057;
}

.data-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.data-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.data-item i {
    font-size: 24px;
    color: #3498db;
    margin-top: 5px;
}

.data-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.purpose-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.purpose-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.1);
}

.purpose-card i {
    font-size: 32px;
    color: #3498db;
    margin-bottom: 15px;
}

.transfer-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.transfer-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2ecc71;
}

.transfer-list i {
    color: #2ecc71;
    font-size: 18px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-box i {
    color: #f39c12;
    font-size: 24px;
    margin-top: 5px;
}

.protection-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.measure {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.measure i {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 15px;
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.storage-table thead {
    background: #3498db;
    color: white;
}

.storage-table th,
.storage-table td {
    padding: 15px;
    text-align: left;
}

.storage-table tbody tr {
    border-bottom: 1px solid #eaeaea;
}

.storage-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.right-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.right-card:hover {
    transform: translateY(-3px);
    border-color: #3498db;
}

.right-card i {
    font-size: 28px;
    color: #3498db;
    margin-bottom: 15px;
}

.contact-box {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-box i {
    font-size: 32px;
    margin-top: 5px;
}

.cookie-types {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cookie-type {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
}

.cookie-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cookie-label.essential {
    background: #2ecc71;
    color: white;
}

.cookie-label.functional {
    background: #3498db;
    color: white;
}

.cookie-label.analytics {
    background: #9b59b6;
    color: white;
}

.version-history {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.policy-acceptance {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

.acceptance-box {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.acceptance-box i {
    font-size: 36px;
    margin-top: 5px;
}

/* Пользовательское соглашение */
.terms-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.terms-header .page-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

.terms-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    line-height: 1.7;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.terms-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h2 i {
    color: #3498db;
}

.terms-section h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 25px 0 15px;
    font-weight: 600;
}

.terms-section p {
    margin-bottom: 15px;
    color: #495057;
}

.terms-section ul,
.terms-section ol {
    margin: 15px 0 15px 25px;
    color: #495057;
}

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

.definition-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.definition-item {
    margin-bottom: 15px;
}

.definition-term {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.warning-block {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.important-note {
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-info-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #3b82f6;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

.acceptance-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

/* Договор-оферта */
.offer-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.offer-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.offer-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    line-height: 1.7;
    font-size: 15px;
}

.contract-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1e3a8a;
}

.contract-title {
    font-size: 24px;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contract-subtitle {
    font-size: 18px;
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 20px;
}

.contract-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #3b82f6;
}

.contract-party {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.contract-party h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.party-details p {
    margin: 8px 0;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

.clause-number {
    display: inline-block;
    min-width: 30px;
    font-weight: 600;
    color: #1e3a8a;
}

.important-block {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f39c12;
}

.legal-block {
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.signature-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

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

.signature-party {
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.signature-line {
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid #94a3b8;
}

.signature-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 5px;
}

.acceptance-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.acceptance-method {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.acceptance-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.acceptance-method h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.acceptance-block {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 50px;
    text-align: center;
}

.acceptance-block h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.warning-note {
    font-weight: 500;
    color: white !important;
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.contract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 14px;
}

.contract-table thead {
    background: #1e3a8a;
    color: white;
}

.contract-table th,
.contract-table td {
    padding: 15px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.contract-table tbody tr {
    border-bottom: 1px solid #eaeaea;
}

.contract-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.clause-container {
    counter-reset: clause;
}

.clause-container h3 {
    counter-increment: clause;
    display: flex;
    align-items: center;
}

.clause-container h3:before {
    content: counter(clause) ". ";
    font-weight: 600;
    color: #1e3a8a;
    margin-right: 8px;
}

/* ===== 17. АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes successPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9;
    }
}

/* ===== 18. СКРОЛЛБАР И ДОСТУПНОСТЬ ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 19. АДАПТИВНОСТЬ ===== */
/* Планшеты */
@media (max-width: 1024px) {
    .categories-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quote-content {
        grid-template-columns: 1fr;
    }
    
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requisites-content {
        grid-template-columns: 1fr;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    /* Общие настройки */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    /* Шапка */
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        flex: 1;
        min-width: 200px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-title {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .header-contacts {
        order: 2;
        gap: 15px;
    }
    
    .phone {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        padding: 10px;
    }
    
    .nav {
        order: 3;
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .mobile-menu {
        width: 85%;
        max-width: 320px;
    }
    
    /* Главный баннер */
    .hero {
        padding: 60px 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 24px;
    }
    
    /* Секции */
    .features {
        grid-template-columns: 1fr;
    }
    
    .categories-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
    
    /* Каталог */
    .catalog-page {
        padding: 30px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .catalog-controls {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        justify-content: space-between;
        width: 100%;
    }
    
    .filter-select {
        min-width: 0;
        flex: 1;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-details, .btn-quote {
        width: 100%;
    }
    
    /* Пагинация */
    .pagination {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Контакты */
    .contacts-page {
        padding: 30px 0 60px;
    }
    
    .contacts-cta {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .contacts-info,
    .persons-grid,
    .requisites-content {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        height: 280px;
    }
    
    #yandex-map {
        min-height: 400px;
    }
    
    .map-legend {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .requisites {
        padding: 25px 15px;
    }
    
    /* Карточка товара */
    .product-page {
        padding: 25px 0 50px;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        aspect-ratio: 4/3;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .product-header h1 {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
    
    /* Запрос КП */
    .quote-page {
        padding: 30px 0 60px;
    }
    
    .quote-header .page-title {
        font-size: 2rem;
    }
    
    .quote-steps {
        gap: 20px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .quote-steps .step {
        min-width: 120px;
    }
    
    .quote-steps .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .quote-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .form-section {
        padding: 25px 15px;
    }
    
    .form-section h2 {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .selected-product {
        padding: 15px;
    }
    
    .product-item-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .add-products-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-products-actions .btn {
        width: 100%;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-area i {
        font-size: 2.5rem;
    }
    
    .form-actions-secondary {
        flex-direction: column;
        gap: 10px;
    }
    
    .quote-guarantees {
        position: static;
        margin-top: 30px;
    }
    
    /* Модальное окно каталога */
    .catalog-modal-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-modal-controls .search-box {
        min-width: 100%;
    }
    
    .catalog-products-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .catalog-product-image {
        height: 150px;
    }
    
    .selected-summary {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .selected-actions {
        align-self: flex-end;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Успешное сообщение */
    .form-success {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .success-icon i {
        font-size: 3.5rem;
    }
    
    .success-details h4 {
        font-size: 1.3rem;
    }
    
    .success-details p {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-details p {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Юридические страницы */
    .privacy-policy,
    .terms-page,
    .offer-page {
        padding: 20px 0;
    }
    
    .policy-content,
    .terms-content,
    .offer-content {
        padding: 25px;
    }
    
    .policy-section h2,
    .terms-section h2 {
        font-size: 20px;
    }
    
    .data-list,
    .purposes-grid,
    .protection-measures,
    .rights-grid,
    .contact-info,
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box,
    .acceptance-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-box i,
    .acceptance-box i {
        margin: 0 auto 15px;
    }
    
    .storage-table,
    .terms-table,
    .contract-table {
        display: block;
        overflow-x: auto;
    }
    
    .contract-info,
    .signatures {
        grid-template-columns: 1fr;
    }
    
    .acceptance-methods {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    /* Подвал */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 25px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .search-input,
    .filter-select {
        font-size: 0.9rem;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
        padding: 12px 15px;
        gap: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu {
        width: 90%;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .success-summary {
        padding: 15px;
    }
    
    .summary-item {
        gap: 12px;
    }
    
    .summary-item i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .summary-value {
        font-size: 1rem;
    }
    
    .policy-content,
    .terms-content,
    .offer-content {
        padding: 20px 15px;
    }
    
    .contract-title {
        font-size: 20px;
    }
    
    .contract-subtitle {
        font-size: 16px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .phone-text {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
}

/* Горизонтальная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .mobile-menu {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .catalog-products-grid {
        max-height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшеты (769px - 1024px) */
@media (min-width: 481px) and (max-width: 767px) {
    .categories-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .categories-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        gap: 30px;
    }
    
    .quote-content {
        gap: 30px;
    }
}

/* iOS специфичные исправления */
@supports (-webkit-touch-callout: none) {
    .hero {
        padding-top: max(60px, env(safe-area-inset-top));
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }
    
    .mobile-menu {
        height: 100vh;
        height: -webkit-fill-available;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .catalog-products-grid {
        -webkit-overflow-scrolling: touch;
    }
}

/* Безопасные отступы для вырезов */
@media (max-width: 768px) {
    .header {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .mobile-menu {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .hero {
        padding-top: max(60px, env(safe-area-inset-top));
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: max(25px, env(safe-area-inset-bottom));
    }
}

/* Оптимизация изображений */
@media (max-width: 768px) {
    .product-image img,
    .catalog-product-image img,
    .main-image img,
    .related-image img,
    .thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Улучшение форм на мобильных */
@media (max-width: 768px) {
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }
    
    .checkbox-group label,
    .filter-checkbox {
        padding: 4px 0;
    }
    
    select {
        padding: 12px 40px 12px 12px;
        background-position: right 12px center;
    }
    
    textarea {
        min-height: 100px;
    }
    
    .field-error {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .error-message {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .error-close {
        align-self: flex-end;
        margin-left: 0;
    }
}

/* Упрощенные анимации для производительности */
@media (max-width: 768px) {
    .product-card:hover,
    .category-card:hover,
    .contact-card:hover,
    .person-card:hover,
    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
    }
    
    @keyframes fadeInMobile {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .product-item-row,
    .file-preview-item,
    .selected-product {
        animation: fadeInMobile 0.2s ease;
    }
}

/* Типографика для мобильных */
@media (max-width: 768px) {
    p, li, span, a {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .product-description p,
    .footer-description,
    .contact-prompt p,
    .form-hint {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Темная тема для мобильных */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .header,
    .footer,
    .product-card,
    .contact-card,
    .person-card,
    .info-card,
    .form-section,
    .quote-guarantees {
        background-color: #2a2a2a;
        color: #f0f0f0;
    }
    
    .btn-secondary {
        background-color: #3a3a3a;
        color: #f0f0f0;
        border-color: #4a4a4a;
    }
    
    .search-input,
    .filter-select,
    input,
    select,
    textarea {
        background-color: #3a3a3a;
        color: #f0f0f0;
        border-color: #4a4a4a;
    }
}

/* Уменьшение анимаций для доступности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 20. ПЕЧАТНЫЕ СТИЛИ ===== */
@media print {
    .header,
    .footer,
    .quote-guarantees,
    .mobile-menu-btn,
    .btn-remove,
    .file-remove,
    .toast,
    .modal-overlay,
    .btn {
        display: none !important;
    }
    
    .quote-content {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .form-section,
    .quote-form,
    .product-detail,
    .product-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        border: 1px solid #000;
        background: none !important;
        color: black !important;
    }
    
    .offer-page {
        padding: 0;
        background: white;
    }
    
    .offer-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .acceptance-block {
        break-inside: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* ===== 21. ИСПРАВЛЕНИЯ ДЛЯ СТАРЫХ БРАУЗЕРОВ ===== */
@supports not (aspect-ratio: 1/1) {
    .main-image {
        height: 400px;
    }
}