/* ПРЕМИАЛЬНЫЙ ДИЗАЙН ZAPRAVKA.BY */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #0f172a;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --text: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.z-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER */
.z-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
}

.z-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-decoration: none;
}

.z-logo span { color: var(--accent); }

/* HOME HERO */
.z-home-hero {
    padding: 140px 0;
    background: radial-gradient(circle at top right, #fff4ed, #ffffff);
    text-align: center;
}

.z-home-hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

.z-home-hero p {
    font-size: 22px;
    color: #64748b;
    margin-bottom: 48px;
}

/* SEARCH BOX */
.z-search-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.z-main-search {
    flex: 1;
    border: none;
    padding: 20px 40px;
    font-size: 20px;
    outline: none;
    background: transparent;
}

.z-search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.z-search-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

/* SERVICE CARDS */
.z-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -60px;
}

.z-service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

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

.z-service-card i { font-size: 32px; color: var(--accent); margin-bottom: 20px; display: block; }

.z-service-card h3 { font-size: 22px; margin-bottom: 12px; }

/* PRODUCT PAGE */
.z-product-hero { padding: 80px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }

.z-health-meter { background: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; margin: 20px 0; }
.z-health-bar { height: 100%; background: var(--accent); }

.z-compare-table { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); margin: 40px 0; }
.z-compare-table th { background: var(--primary); color: white; padding: 20px; text-align: left; }
.z-compare-table td { padding: 20px; border-bottom: 1px solid #f1f5f9; }

/* FOOTER */
.z-footer { background: var(--primary); color: #94a3b8; padding: 60px 0 40px 0; margin-top: 80px; }
.z-footer h3 { color: white; margin-bottom: 20px; }

/* Diagnostic Master Styles */
.z-symptom-card {
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    text-align: center;
}

.z-symptom-card:hover {
    border-color: var(--accent);
    background: #fff4ed;
}

.z-symptom-card.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Скрытие уведомления о лицензии */
div[style*="z-index: 999999"] {
    display: none !important;
}

.z-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    display: none;
    text-align: left;
}

.z-live-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary);
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.z-live-item:hover {
    background: #f8fafc;
}

/* CATALOG SELECTOR */
.z-catalog-selector-container {
    text-align: left;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.z-select-fancy {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: var(--primary);
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.z-select-fancy:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.z-select-fancy:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* COMPACT VERSION FOR HEADER */
.z-select-compact {
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    height: 44px;
    border-radius: 10px;
    background-position: right 10px center;
}

.zh-select-brand, .zh-select-type {
    width: 170px;
    flex-shrink: 0;
}

.zh-select-model {
    flex: 1;
    min-width: 100px;
    max-width: 300px;
}

.z-btn-compact {
    padding: 0 20px;
    height: 44px;
    font-size: 14px;
    border-radius: 10px;
}

.z-nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.z-nav-link:hover { color: var(--accent); }

@media (max-width: 1200px) {
    .zh-select-brand, .zh-select-type { width: 140px; }
    .z-header-nav { gap: 10px; }
}

@media (max-width: 1024px) {
    .z-header-selector { display: none !important; }
}

/* PAGINATION */
.z-pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.z-pagination-list li {
    display: inline-block;
}

.z-pagination-list a, .z-pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
}

.z-pagination-list a:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.z-pagination-list li.selected span {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.z-pagination-list li:first-child a, .z-pagination-list li:last-child a {
    font-size: 18px;
}
