/* ==========================================================================
   1. CSS Variables & General Reset
   ========================================================================== */
:root {
    --primary-color: #f39c12;        /* Янтарно-желтый акцент */
    --primary-hover: #e67e22;
    --dark-bg: #1a252f;              /* Темно-синий/углеродный фон header/hero */
    --dark-text: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-text: #555555;
    --gray-border: #e2e8f0;
    --danger-color: #c0392b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-text);
    position: relative;
}

/* ==========================================================================
   2. Header (Шапка)
   ========================================================================== */
.site-header {
    background-color: var(--dark-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.header-logo span {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
}

.header-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-right: 20px;
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ==========================================================================
   3. Hero Section (Первый экран)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.95), rgba(44, 62, 80, 0.9)), 
                radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.15) 0%, transparent 40%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero .btn {
    font-size: 18px;
    padding: 16px 36px;
}

/* ==========================================================================
   4. Problem / Solution Block (Защита от скачков)
   ========================================================================== */
.danger-section {
    background-color: var(--light-bg);
}

.danger-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.danger-list, .solution-box {
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.danger-list {
    background: var(--white);
    border-left: 5px solid var(--danger-color);
}

.danger-list h3 {
    font-size: 22px;
    color: var(--danger-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.danger-list ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--gray-text);
    font-size: 16px;
}

.danger-list ul li:last-child {
    margin-bottom: 0;
}

.danger-list ul li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
}

.solution-box {
    background: var(--dark-bg);
    color: var(--white);
    border-left: 5px solid var(--primary-color);
}

.solution-box h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.solution-box p {
    font-size: 17px;
    line-height: 1.7;
    color: #e2e8f0;
}

/* ==========================================================================
   5. Services Block
   ========================================================================== */
.services-grid,
.models-grid {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 30px;
}

.models-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
}

.service-card-wrapper {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.models-grid .model-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
}

.model-card {
    position: relative;
}

.model-card.featured {
    border: 2px solid #ff6b00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
}

.service-card h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.service-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-details-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-text);
}

.service-includes {
    margin-bottom: 25px;
}

.service-includes li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--gray-text);
}

.service-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.service-important {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 30px;
    margin-top: auto;
    border: 1px dashed #cbd5e1;
}

.service-important p {
    margin-bottom: 5px;
}

.service-important p:last-child {
    margin-bottom: 0;
}

.service-card .btn {
    width: 100%;
    margin-top: auto;
}

.sub-services-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px;
    color: var(--dark-text);
}

.model-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: #ff6b00;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(255, 107, 0, 0.3);
    z-index: 5;
}

.price-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-text);
    margin-top: 2px;
}

.model-desc {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.extra-services-note {
    max-width: 980px;
    margin: 25px auto 0;
    padding: 15px 20px;
    background-color: #ffffff;
    border-left: 4px solid var(--primary-color, #0056b3);
    border-radius: 6px;
    font-size: 14px;
    color: var(--dark-text);
    box-sizing: border-box;
}

.extra-services-note p {
    margin: 0;
    line-height: 1.5;
}

.sub-services-wrapper {
    background-color: #f4f6f9;
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.sub-services-wrapper .model-card {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s linear;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* ==========================================================================
   6. Combo Offer Block
   ========================================================================== */
.combo-section {
    background-color: #fff9e6;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.combo-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 2px dashed var(--primary-color);
}

.combo-badge {
    display: inline-block;
    background: var(--danger-color);
    color: var(--white);
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
}

.combo-box h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.combo-price-calc {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.combo-price-calc del {
    color: #94a3b8;
}

.combo-final-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* ==========================================================================
   Generator Block
   ========================================================================== */
.generator-section {
    background-color: #f4f6f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.generator-grid {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.generator-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary-color, #0056b3);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.generator-header {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.generator-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.generator-subtitle {
    color: var(--gray-text, #666);
    font-size: 15px;
    margin-bottom: 15px;
}

.generator-details {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}

.calc-column {
    flex: 1;
}

.btn-generator {
    max-width: 350px;
    margin: 20px auto 0;
}

/* ==========================================================================
   7. General Services Block
   ========================================================================== */
.general-services-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.general-col {
    flex: 1;
}

.general-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--dark-text);
}

.general-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 0;
}

.general-text-cta {
    text-align: center;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   8. Contacts Block
   ========================================================================== */
.contacts-section {
    background-color: var(--dark-bg);
    color: var(--white);
    display: flow-root;
    margin-bottom: 0;
}

.contacts-section .section-title {
    color: var(--white);
}

.contacts-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contacts-wrapper .contact-item:last-child {
    margin-bottom: 0;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--white);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 25px 0;
    margin-top: 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    margin: 0;
}

/* ==========================================================================
   10. Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid,
    .models-grid {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .header-phone {
        margin-right: 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .danger-grid,
    .services-grid,
    .general-services-grid {
        flex-direction: column;
        gap: 20px;
    }

    .models-grid .model-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .generator-details {
        flex-direction: column;
        gap: 20px;
    }

    .generator-card {
        padding: 20px;
    }

    .combo-box {
        padding: 25px 15px;
    }

    .combo-box h3 {
        font-size: 20px;
    }

    .combo-final-price {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Контейнер для карточек */
.stabilizer-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

/* Базовый вид карточки на светлом фоне */
.tab-btn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #cbd5e1; /* Четкий нейтральный контур для неактивной */
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Эффект при наведении на неактивную карточку */
.tab-btn:hover:not(.active) {
    background: #f8fafc;
    border-color: #f97316; /* Легкий оранжевый оттенок при наведении */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.12);
}

/* Индикатор выбора (Radio-button) */
.card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
}

/* ==========================================================================
   АКТИВНОЕ СОСТОЯНИЕ (ОРАНЖЕВЫЙ АКЦЕНТ)
   ========================================================================== */
.tab-btn.active {
    background: #ffffff;
    border-color: #f97316; /* Яркая оранжевая обводка */
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2), /* Оранжевое свечение */
                0 0 0 1px #f97316;
}

/* Активный радио-индикатор */
.tab-btn.active .card-radio {
    border-color: #f97316;
    background-color: #f97316;
    box-shadow: inset 0 0 0 3.5px #ffffff; /* Белая точка внутри оранжевого круга */
}

/* Тексты (темные для читаемости на светлом) */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.card-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.card-desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

/* Метки (Бэйджи) */
.card-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-premium {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tag-budget {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* Адаптив под мобильные */
@media (max-width: 640px) {
    .stabilizer-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}	