/* --- КОРПОРАТИВНЫЙ СТИЛЬ (Белый фон + Серые блоки) --- */

:root {
    --primary: #003366; 
    --accent: #005bb5; 
    --text-main: #333333; 
    --text-muted: #666666;
    --bg-body: #ffffff; 
    --bg-card: #f4f7fa; 
    --border-color: #dbe4ed; 
    --border-radius: 0px; 
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: Arial, Helvetica, sans-serif; 
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding: 0; 
}

body::before {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background-color: var(--primary);
}

.container { 
    max-width: 950px; 
    margin: 40px auto; 
    padding: 0 20px;
}

/* --- Корпоративные карточки --- */
.card {
    background: var(--bg-card);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.center-text {
    text-align: left; 
}

/* --- ТИПОГРАФИКА "ПОД ИНСТРУКЦИЮ" --- */
h1 { 
    color: var(--primary); 
    font-size: 2.2rem; 
    line-height: 1.2; 
    margin-bottom: 15px; 
    font-weight: normal; 
}

h2 { 
    color: var(--primary); 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
    font-weight: bold;
    border-bottom: none; 
}

.doc-text { 
    margin-bottom: 20px; 
    font-size: 0.95rem;
    text-align: justify; 
    line-height: 1.6;
}

/* --- Главный экран (Hero) --- */
.hero { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    color: var(--text-muted); 
    font-size: 1.05rem; 
    text-align: justify;
}

.trust-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* --- Анимация логистики (ИСПРАВЛЕНА ТОЧКА РФ) --- */
.hero-signature {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 250px;
    width: 100%;
}
.signature-svg { width: 100%; height: auto; overflow: visible; }
.route-base { fill: none; stroke: #cdd7e0; stroke-width: 2; stroke-dasharray: 4 4; }
.route-pulse { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 25 200; animation: dash-pulse 3s infinite linear; }
.node { fill: var(--primary); }
.node-intermediate { fill: #cdd7e0; }

/* ФИКС: Точка теперь пульсирует строго на месте */
.node-ru { 
    animation: ru-success 3s infinite linear; 
    transform-origin: 170px 60px; 
}

.node-text { fill: var(--text-main); font-size: 14px; font-weight: bold; font-family: Arial, sans-serif; }
.text-ru { animation: ru-text-success 3s infinite linear; }

@keyframes dash-pulse {
    0% { stroke-dashoffset: 30; opacity: 0; }
    5% { opacity: 1; }
    20% { stroke-dashoffset: -25; }
    25% { stroke-dashoffset: -25; } 
    45% { stroke-dashoffset: -72; }
    50% { stroke-dashoffset: -72; } 
    70% { stroke-dashoffset: -140; opacity: 1; }
    75% { stroke-dashoffset: -140; opacity: 0; }
    100% { stroke-dashoffset: -140; opacity: 0; }
}
@keyframes ru-success {
    0%, 69% { fill: var(--primary); transform: scale(1); }
    70%, 85% { fill: var(--accent); transform: scale(1.3); } 
    95%, 100% { fill: var(--primary); transform: scale(1); }
}
@keyframes ru-text-success {
    0%, 69% { fill: var(--text-main); }
    70%, 85% { fill: var(--accent); } 
    95%, 100% { fill: var(--text-main); }
}

/* --- СЕТКА ТОВАРОВ PZN (ДОБАВЛЕН ЛОСК) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: left; 
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); /* Тонкая премиальная тень */
}

.product-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    mix-blend-mode: multiply; 
    cursor: zoom-in; 
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary);
    background: #ffffff; 
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.05); /* Мягкое свечение при наведении */
}

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

.product-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: none;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 4px;
}

.detail-row .lbl { color: var(--text-muted); }
.detail-row .val { font-weight: bold; color: var(--text-main); text-align: right; }
.pzn-highlight { color: var(--primary) !important; }

.status-badge { 
    background: transparent; 
    color: #2e7d32; 
    padding: 0;
    font-size: 0.8rem; 
    font-weight: bold; 
    text-transform: uppercase;
    margin-top: auto; 
}
.status-badge::before { content: '✓ '; }

/* --- Сетка макро-снимков --- */
.tablet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tablet-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #ffffff; 
    border: 1px solid var(--border-color);
}

.tablet-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.tablet-info strong { font-size: 1rem; color: var(--primary); }
.tablet-info span { font-size: 0.85rem; color: var(--text-muted); }

/* --- PDF Инструкции --- */
.pdf-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-pdf {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-pdf svg { width: 20px; height: 20px; fill: var(--primary); margin-right: 15px; }
.btn-pdf:hover { border-color: var(--primary); background: #f0f4f8; }

/* --- Блок ценообразования --- */
.price-list { 
    list-style: none; 
    margin-top: 10px; 
}

.price-list li { 
    position: relative; 
    padding-left: 18px; 
    margin-bottom: 10px; 
    font-size: 0.95rem;
    line-height: 1.5;
}

.price-list li::before {
    content: '•'; 
    position: absolute; 
    left: 0; 
    top: 0; 
    color: var(--text-main); 
    font-size: 1.2rem;
    line-height: 1.1;
}

/* --- УНИВЕРСАЛЬНАЯ ФОРМА СВЯЗИ --- */
.cross-sale-box {
    background: #ffffff; 
    padding: 15px 20px; 
    border: 1px solid var(--border-color); 
    margin-bottom: 25px; 
    font-size: 0.9rem; 
    text-align: left; 
    border-left: 4px solid var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-main);
}

.contact-form textarea,
.contact-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    background: #ffffff; 
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form textarea:focus, .contact-form input:focus { border-color: var(--primary); border-width: 2px; }

.btn-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    text-transform: uppercase;
}

.btn-submit:hover { background: var(--accent); transform: translateY(-1px); }
.btn-submit:disabled { background: var(--border-color); color: var(--text-muted); cursor: not-allowed; }

.form-success {
    background: #ffffff;
    color: #2e7d32;
    padding: 15px;
    border-left: 4px solid #4caf50;
    border: 1px solid #4caf50;
    text-align: left;
    font-size: 0.9rem;
}

/* --- Модальное окно --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* --- Подвал --- */
.disclaimer { margin-top: 20px; padding: 20px 0; }
.disclaimer .doc-text { font-size: 0.75rem; color: #888888; margin-bottom: 10px; }

.domain-notice { 
    text-align: left; 
    margin-top: 15px; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
}

/* --- Адаптивность --- */
@media (min-width: 600px) {
    .pdf-group { flex-direction: row; }
    .btn-pdf { flex: 1; max-width: 250px; }
}

@media (max-width: 768px) {
    .card { padding: 25px 20px; }
    .hero { flex-direction: column; align-items: flex-start; gap: 20px; }
    h1 { font-size: 1.8rem; }
    .hero-signature { max-width: 200px; align-self: center; }
    .catalog-grid { grid-template-columns: 1fr; }
    .btn-submit { align-self: stretch; }
}