/* --- БАЗОВЫЕ НАСТРОЙКИ ШРИФТА --- */
body {
    font-family: 'Roboto', sans-serif !important;
    color: #111827; 
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   1. СТИЛИ ДЛЯ ШАПКИ САЙТА (HEADER)
   ========================================= */
.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #2563eb;
}

.header-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s;
}

.header-btn:hover {
    background-color: #1d4ed8;
}

/* =========================================
   2. СТИЛИ ДЛЯ ГЛАВНОГО ЭКРАНА (HERO)
   ========================================= */
.hero {
    padding: 40px 0 0 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    flex: 1;
    max-width: 450px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: block;
}

.hero-content {
    flex: 1; 
}

.hero-subtitle {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-location {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2563eb;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* =========================================
   3. СТИЛИ ДЛЯ ТАЙМЛАЙНА (ОПЫТ РАБОТЫ)
   ========================================= */
.timeline-section {
    padding: 20px 20px 40px 20px;
    background-color: #f9fafb;
}

.timeline-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.timeline-intro {
    font-size: 24px;
    color: #111827;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
}

.timeline-title {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.timeline {
    border-left: 2px solid #e5e7eb;
    padding-left: 40px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    background-color: #2563eb;
    height: 0%;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -49px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 2;
    border: 3px solid #f9fafb;
    box-sizing: border-box;
}

.timeline-date {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-company {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
}

.timeline-role {
    font-size: 18px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   4. АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (БАЗОВАЯ)
   ========================================= */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column; 
        text-align: center;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .main-nav {
        display: none;
    }
    .timeline-intro {
        font-size: 20px;
    }
}

/* =========================================
   5. ГОРИЗОНТАЛЬНЫЙ ТАЙМЛАЙН ДЛЯ ПК
   ========================================= */
@media (min-width: 769px) {
    .timeline-container {
        max-width: 1200px;
        width: 95%; 
    }

    .timeline {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        border-left: none; 
        padding-left: 0;
        padding-right: 0; 
        position: relative;
        margin-top: 40px;
        padding-bottom: 20px;
    }

    .timeline::before {
        content: '';
        position: absolute;
        top: 44px; 
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e5e7eb;
        z-index: 1;
    }

    .timeline-progress {
        position: absolute;
        top: 44px;
        left: 0;
        width: 0%; 
        height: 2px;
        background-color: #2563eb; 
        z-index: 2;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1; 
        padding: 0 15px; 
        margin-bottom: 0;
        position: relative;
        z-index: 3;
    }

    .timeline-date {
        font-size: 18px; 
        font-weight: 700;
        margin-bottom: 15px; 
    }

    .timeline-dot {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 20px; 
        width: 18px; 
        height: 18px;
        border: 3px solid #f9fafb; 
        background-clip: padding-box;
    }

    .timeline-company {
        font-size: 22px; 
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .timeline-role {
        font-size: 16px; 
        color: #4b5563;
        line-height: 1.5;
    }
    
    .item-color-1 .timeline-date, .item-color-1 .timeline-dot { color: #059669; }
    .item-color-1 .timeline-dot { background-color: #059669; }
    
    .item-color-2 .timeline-date, .item-color-2 .timeline-dot { color: #0ea5e9; }
    .item-color-2 .timeline-dot { background-color: #0ea5e9; }
    
    .item-color-3 .timeline-date, .item-color-3 .timeline-dot { color: #8b5cf6; }
    .item-color-3 .timeline-dot { background-color: #8b5cf6; }
    
    .item-color-4 .timeline-date, .item-color-4 .timeline-dot { color: #f59e0b; }
    .item-color-4 .timeline-dot { background-color: #f59e0b; }
    
    .item-color-5 .timeline-date, .item-color-5 .timeline-dot { color: #ef4444; }
    .item-color-5 .timeline-dot { background-color: #ef4444; }
}

/* =========================================
   6. БЛОК "ЧТО Я ПРЕДЛАГАЮ" (АККОРДЕОН)
   ========================================= */
.my-offer-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.my-offer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.my-offer-left {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
}

.my-offer-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.my-offer-main-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
}

.my-offer-main-btn:hover {
    background-color: #1d4ed8;
}

.my-offer-right {
    flex: 1;
}

.my-offer-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.my-offer-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.my-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.my-offer-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.my-offer-num {
    font-size: 16px;
    font-weight: 500;
}

.my-offer-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.my-offer-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.my-offer-icon-plus, 
.my-offer-icon-minus {
    position: absolute;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
}

.my-offer-icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.my-offer-item.is-active .my-offer-icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.my-offer-item.is-active .my-offer-icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.my-offer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.my-offer-content-inner {
    display: flex;
    gap: 40px;
    padding-bottom: 30px;
    position: relative;
    padding-left: 40px; 
}

.my-offer-content-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%; 
    background-color: currentColor;
    transition: height 0.6s ease-out 0.2s; 
}

.my-offer-item.is-active .my-offer-content-inner::before {
    height: 100%; 
}

.my-offer-text {
    flex: 1;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.my-offer-text p {
    margin-top: 0;
    margin-bottom: 15px;
}

.my-offer-text ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.my-offer-text li {
    margin-bottom: 10px;
}

.my-offer-image {
    flex: 0 0 250px;
    display: flex;
    align-items: flex-start;
}

.my-offer-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    background-color: #f9fafb;
}

.my-offer-inner-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.3s;
}

.my-offer-inner-btn:hover {
    opacity: 0.8;
}

/* Цвета аккордеона */
.my-offer-item--green { color: #10b981; }
.my-offer-item--green .my-offer-inner-btn { background-color: #10b981; }
.my-offer-item--green .my-offer-toggle { color: #10b981; border-color: #10b981; }
.my-offer-item--green .my-offer-toggle:hover { background-color: #10b981; color: #fff; }
.my-offer-item--green .my-offer-content-inner::before { background-color: #10b981; }

.my-offer-item--blue { color: #3b82f6; }
.my-offer-item--blue .my-offer-inner-btn { background-color: #3b82f6; }
.my-offer-item--blue .my-offer-toggle { color: #3b82f6; border-color: #3b82f6; }
.my-offer-item--blue .my-offer-toggle:hover { background-color: #3b82f6; color: #fff; }
.my-offer-item--blue .my-offer-content-inner::before { background-color: #3b82f6; }

.my-offer-item--purple { color: #8b5cf6; }
.my-offer-item--purple .my-offer-inner-btn { background-color: #8b5cf6; }
.my-offer-item--purple .my-offer-toggle { color: #8b5cf6; border-color: #8b5cf6; }
.my-offer-item--purple .my-offer-toggle:hover { background-color: #8b5cf6; color: #fff; }
.my-offer-item--purple .my-offer-content-inner::before { background-color: #8b5cf6; }

.my-offer-item--orange { color: #f59e0b; }
.my-offer-item--orange .my-offer-inner-btn { background-color: #f59e0b; }
.my-offer-item--orange .my-offer-toggle { color: #f59e0b; border-color: #f59e0b; }
.my-offer-item--orange .my-offer-toggle:hover { background-color: #f59e0b; color: #fff; }
.my-offer-item--orange .my-offer-content-inner::before { background-color: #f59e0b; }

.my-offer-item .my-offer-item-title,
.my-offer-item .my-offer-text { color: #111827; }
.my-offer-item .my-offer-text p,
.my-offer-item .my-offer-text li { color: #4b5563; }

@media (max-width: 992px) {
    .my-offer-container { flex-direction: column; gap: 40px; }
    .my-offer-left { position: static; flex: auto; text-align: center; }
    .my-offer-title { font-size: 32px; }
    .my-offer-content-inner { flex-direction: column; padding-left: 20px; }
    .my-offer-image { flex: auto; width: 100%; max-width: 300px; margin-top: 20px; }
    .my-offer-header-left { gap: 10px; }
    .my-offer-item-title { font-size: 18px; }
}

/* =========================================
   7. БЛОК "КЕЙСЫ" (ПОРТФОЛИО)
   ========================================= */
.my-cases-section {
    padding: 80px 20px;
    background-color: #f5f7fd; 
}

.my-cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

.my-cases-subtitle {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.my-cases-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.my-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.case-logo-area {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px; 
    border-bottom: 1px solid #f0f0f0;
}

.case-logo-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 15px;
}

.case-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.case-company {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.case-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1; 
}

.case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
}

.case-link {
    font-size: 15px;
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
}

/* =========================================
   ИНДИВИДУАЛЬНЫЕ ЦВЕТА ДЛЯ КЕЙСОВ
   ========================================= */

/* 1. Huawei (Темно-красный) */
.case-theme-huawei-red:hover { border-color: #CF0A2C; }
.case-theme-huawei-red .case-dot { background-color: #CF0A2C; }
.case-theme-huawei-red .stat-value { color: #CF0A2C; }
.case-theme-huawei-red .case-company,
.case-theme-huawei-red .case-link { color: #CF0A2C; }

/* 2. HDCC (Сине-фиолетовый) */
.case-theme-hdcc:hover { border-color: #311C6A; }
.case-theme-hdcc .case-dot { background-color: #311C6A; }
.case-theme-hdcc .stat-value { color: #311C6A; }
.case-theme-hdcc .case-company,
.case-theme-hdcc .case-link { color: #311C6A; }

/* 3. Профит Си (Фиолетовый как в логотипе) */
.case-theme-purple:hover { border-color: #8E44AD; }
.case-theme-purple .case-dot { background-color: #8E44AD; }
.case-theme-purple .stat-value { color: #8E44AD; }
.case-theme-purple .case-company,
.case-theme-purple .case-link { color: #8E44AD; }

/* 4. М.Видео (Яркий красный) */
.case-theme-mvideo-red:hover { border-color: #E3001B; }
.case-theme-mvideo-red .case-dot { background-color: #E3001B; }
.case-theme-mvideo-red .stat-value { color: #E3001B; }
.case-theme-mvideo-red .case-company,
.case-theme-mvideo-red .case-link { color: #E3001B; }

/* 5. ТД Тинко (Бирюзовый) */
.case-theme-tinko:hover { border-color: #0e6a5e; }
.case-theme-tinko .case-dot { background-color: #0e6a5e; }
.case-theme-tinko .stat-value { color: #0e6a5e; }
.case-theme-tinko .case-company,
.case-theme-tinko .case-link { color: #0e6a5e; }

/* 6. KÖGEL (Классический красный) */
.case-theme-kogel-red:hover { border-color: #E30613; }
.case-theme-kogel-red .case-dot { background-color: #E30613; }
.case-theme-kogel-red .stat-value { color: #E30613; }
.case-theme-kogel-red .case-company,
.case-theme-kogel-red .case-link { color: #E30613; }

/* 7. РСУ-211 (Оранжевый) */
.case-theme-rsu:hover { border-color: #e57c20; }
.case-theme-rsu .case-dot { background-color: #e57c20; }
.case-theme-rsu .stat-value { color: #e57c20; }
.case-theme-rsu .case-company,
.case-theme-rsu .case-link { color: #e57c20; }

/* 8. Зеркала (Темно-зеленый) */
.case-theme-zerkala:hover { border-color: #2d6a3d; }
.case-theme-zerkala .case-dot { background-color: #2d6a3d; }
.case-theme-zerkala .stat-value { color: #2d6a3d; }
.case-theme-zerkala .case-company,
.case-theme-zerkala .case-link { color: #2d6a3d; }

/* --- АДАПТИВНОСТЬ ДЛЯ КЕЙСОВ (МОБИЛЬНЫЕ) --- */
@media (max-width: 1024px) {
    .my-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .my-cases-grid { 
        grid-template-columns: 1fr; /* В одну колонку на телефоне */
    }
    .my-cases-title { 
        font-size: 28px; 
    }
    .case-logo-area {
        height: 140px; /* Чуть уменьшаем логотипы на телефоне */
        padding: 20px;
    }
    .case-body {
        padding: 20px;
    }
}
/* Скрываем картинки в аккордеоне на мобильных устройствах */
@media (max-width: 768px) {
    .my-offer-image {
        display: none !important;
    }
}