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

html {
    scroll-behavior: smooth;
}

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;
}

.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;
}

main {
    flex: 1;
}

/* ===== КНОПКИ ===== */
.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-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:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i {
    pointer-events: none;
}

/* ===== ШАПКА ===== */
.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;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.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;
}

/* ===== О КОМПАНИИ ===== */
.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;
}

/* ===== КАТЕГОРИИ ТОВАРОВ ===== */
.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;
}

/* ===== КАК МЫ РАБОТАЕМ ===== */
.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;
}

/* ===== ПОДВАЛ ===== */
.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: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

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

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

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.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;
}

/* ===== СТИЛИ ДЛЯ КАТАЛОГА ===== */
.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.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;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.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(auto-fit, minmax(320px, 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 p {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.6;
}

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

/* ===== СТРАНИЦА КАРТОЧКИ ТОВАРА ===== */
.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-sku {
    color: #64748b;
    font-size: 1rem;
    font-family: monospace;
    background-color: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.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;
}

.stock-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
}

.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;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.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;
}

/* ===== СТРАНИЦА ЗАПРОСА КП ===== */
.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;
}

.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;
}

.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);
}

.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;
}

.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;
}

.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"] {
    width: 60px;
    text-align: center;
}

.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;
}

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

.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);
}

.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;
}

.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;
}

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

.btn-submit.loading {
    position: relative;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: inherit;
    animation: spin 1s linear infinite;
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 25px;
    animation: successPulse 2s ease infinite;
}

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

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

.form-success h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.form-success p {
    color: #475569;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-success #requestNumber {
    display: inline-block;
    background-color: white;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    margin: 15px 0;
}

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .form-success {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .form-success h3 {
        font-size: 1.6rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}
/* ДОБАВИТЬ этот стиль для кнопок в успешном сообщении: */
.form-success .btn {
    min-width: 180px;
    font-weight: 600;
    transition: all 0.3s;
}

.form-success .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
}

.form-success .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

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

.form-success .btn-secondary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    transform: translateY(-3px);
}
.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;
}

/* ===== УВЕДОМЛЕНИЯ, МОДАЛЬНЫЕ ОКНА И ОШИБКИ ===== */
.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;
}

.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: 500px;
    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;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-option i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.contact-option strong {
    display: block;
    color: #1e293b;
    margin-bottom: 5px;
}

.contact-option p {
    margin: 0;
    color: #64748b;
}

.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;
}

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

@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); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@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;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .catalog-controls {
        padding: 20px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-select {
        min-width: 150px;
        flex: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-details, .btn-quote {
        width: 100%;
    }
    
    .contacts-cta {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .contacts-info,
    .persons-grid,
    .requisites-content {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .requisites {
        padding: 30px 20px;
    }
    
    .requisites-column strong {
        min-width: 120px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .quote-header .page-title {
        font-size: 2.2rem;
    }
    
    .quote-steps {
        gap: 20px;
    }
    
    .quote-steps .step {
        min-width: 120px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-section h2 {
        font-size: 1.6rem;
    }
    
    .product-item-details {
        grid-template-columns: 1fr;
    }
    
    .form-actions-secondary {
        flex-direction: column;
    }
    
    .file-preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-remove {
        align-self: flex-end;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ===== */
select {
    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;
}

input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
}

/* Стилизация скроллбара */
::-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;
}

/* Для Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Улучшение доступности */
: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;
}

/* Печатные стили */
@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;
    }
}

/* Для браузеров, которые не поддерживают aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .main-image {
        height: 400px;
    }
}

/* Уменьшение анимаций для пользователей, которые предпочитают их отсутствие */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== КНОПКА ДОБАВЛЕНИЯ ТОВАРОВ ===== */
.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;
}

/* ===== ЕДИНИЦЫ ИЗМЕРЕНИЯ В КОЛИЧЕСТВЕ ===== */
.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;
}

/* ===== ПРИМЕЧАНИЯ К ТОВАРУ ===== */
.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-price-display {
    display: block;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* ===== МОДАЛЬНОЕ ОКНО КАТАЛОГА ===== */
.catalog-modal-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.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-product-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

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

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

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

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

.catalog-product-info {
    padding: 20px;
}

.catalog-product-info h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.catalog-product-info .product-sku {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: monospace;
}

.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;
}

.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;
}

.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;
}

/* ===== СООБЩЕНИЕ "НЕТ ТОВАРОВ" ===== */
.no-products-hint {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .products-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-products-actions {
        flex-direction: column;
    }
    
    .add-products-actions .btn {
        width: 100%;
    }
    
    .catalog-modal-controls {
        flex-direction: column;
    }
    
    .catalog-modal-controls .search-box {
        min-width: 100%;
    }
    
    .catalog-products-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
}
/* ===== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА КАТАЛОГА ===== */
.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;
}

.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-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

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

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

.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-disabled i {
    margin-right: 5px;
}

/* Улучшенные стили для выбранных товаров */
.catalog-product-card.selected .product-select-checkbox input[type="checkbox"] {
    accent-color: #10b981;
}

/* Градиент для выбранных карточек */
.catalog-product-card.selected {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #3b82f6;
}

/* Анимация для добавления товара */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

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

/* Стили для чекбоксов в модальном окне */
.product-select-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Подсказка при наведении на уже добавленный товар */
.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-info h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.product-sku {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.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;
}

.spec-item {
    display: flex;
    gap: 5px;
    font-size: 0.85rem;
    color: #64748b;
}

.spec-key {
    font-weight: 500;
    color: #475569;
}

.spec-value {
    color: #64748b;
}

.product-specs-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0;
}

.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;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОДАЛЬНОГО ОКНА ===== */
@media (max-width: 768px) {
    .catalog-products-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .catalog-product-image {
        height: 150px;
    }
    
    .catalog-product-info h4 {
        font-size: 1.1rem;
    }
    
    .selected-summary {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .selected-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .catalog-modal-controls {
        flex-direction: column;
    }
    
    .catalog-modal-controls .search-box,
    .catalog-modal-controls .category-filter {
        min-width: 100%;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ===== ФИКС ДЛЯ КОНТЕЙНЕРА С ВЫБРАННЫМИ ТОВАРАМИ ===== */
.products-list-container {
    min-height: 150px;
}

/* ===== КНОПКИ В МОДАЛЬНОМ ОКНЕ ===== */
.modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

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

/* ===== ХОВЕР-ЭФФЕКТ ДЛЯ КАРТОЧЕК ТОВАРОВ ===== */
.catalog-product-card:not(.added):hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== СТИЛИ ДЛЯ ИЗОБРАЖЕНИЙ ТОВАРОВ ===== */
.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ПРОБЕЛЫ И ОТСТУПЫ ===== */
.catalog-product-info > * {
    margin-bottom: 8px;
}

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

/* ===== ФИКС ДЛЯ SCROLLBAR В ГРИДЕ ===== */
.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;
}

/* ===== АНИМАЦИИ ДЛЯ ДОБАВЛЕНИЯ/УДАЛЕНИЯ ===== */
@keyframes productAdded {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.product-item-row {
    animation: productAdded 0.3s ease;
}

/* ===== СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ В МОДАЛЬНОМ ОКНЕ ===== */
.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);
    }
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ ОТОБРАЖЕНИЯ КАРТОЧЕК ===== */
.catalog-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-product-card > * {
    flex-shrink: 0;
}

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

.product-actions-modal {
    margin-top: auto;
    padding-top: 15px;
}
/* ===== СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА С ПОИСКОМ ===== */
.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);
}

.select-search {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    width: 40px;
    background-color: #f8fafc;
    border-left: 1px solid #e2e8f0;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.select-search i {
    color: #94a3b8;
    font-size: 1rem;
}

.select-with-search:hover .select-search {
    background-color: #f1f5f9;
}

/* Дополнительные опции для улучшения UX */
.product-select option {
    padding: 10px;
    font-size: 0.95rem;
}

.product-select option:checked {
    background-color: #3b82f6;
    color: white;
}

.product-select option[value="custom"] {
    font-weight: 600;
    color: #1e3a8a;
    background-color: #f0f9ff;
    border-top: 1px solid #cbd5e1;
    margin-top: 5px;
}

/* Стили для превью товара */
.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;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .select-with-search select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .product-preview {
        padding: 12px;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
}

/* Анимация для появления кастомных полей */
#customProductSection {
    animation: fadeIn 0.3s ease;
}

/* Стили для поля поиска товаров */
#productSearch {
    width: calc(100% - 50px);
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    background-color: white;
}

#productSearch:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Стили для подсказок */
.form-hint {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Улучшенные стили для readonly полей */
input[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* Стили для выбранного товара */
.select-with-search select:valid {
    border-color: #10b981;
    background-color: #f0f9ff;
}

.select-with-search select:invalid {
    border-color: #e2e8f0;
}
/* ===== АДАПТИВНЫЕ СТИЛИ ДЛЯ КАТАЛОГА И КП ===== */

/* Каталог товаров */
@media (max-width: 1024px) {
    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-modal-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-modal-controls .search-box,
    .catalog-modal-controls .category-filter {
        width: 100%;
    }
}

/* Форма КП */
@media (max-width: 768px) {
    .quote-content {
        grid-template-columns: 1fr;
    }
    
    .product-item-details {
        grid-template-columns: 1fr;
    }
    
    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Исправления для модального окна каталога */
.catalog-product-card {
    position: relative;
    transition: all 0.3s ease;
}

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

.catalog-product-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

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

.added-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    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;
}
/* Исправление для success сообщения */
.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-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

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

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Для мобильных */
@media (max-width: 768px) {
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* Стили для редактируемых полей товаров */
.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;
}

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

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

.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 #e2e8f0;
}

.spec-key {
    color: #475569;
    font-weight: 500;
}

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

.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-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;
}