﻿.teplo-history-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d2d2d;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.teplo-history-wrap *,
.teplo-history-wrap *::before,
.teplo-history-wrap *::after {
    box-sizing: border-box;
}
.teplo-section {
    padding: 48px 0;
}
.teplo-section + .teplo-section {
    border-top: 1px solid #e5e5e5;
}
.teplo-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    position: relative;
    padding-bottom: 16px;
}
.teplo-page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: #3b82f6;
    border-radius: 2px;
}
.teplo-intro-text p {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    max-width: 860px;
}
.teplo-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
}
.teplo-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}
.teplo-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}
.teplo-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fafafa;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.teplo-services-list li:hover {
    background: #fff5ec;
    box-shadow: 0 2px 8px rgba(232, 112, 10, 0.08);
}
.teplo-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    margin-top: 2px;
}
.teplo-check-icon svg {
    width: 13px;
    height: 13px;
}
.teplo-timeline {
    position: relative;
    padding: 10px 0 10px 0;
}
.teplo-timeline::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #f5a623 100%);
    border-radius: 3px;
}
.teplo-timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 32px;
}
.teplo-timeline-item:last-child {
    margin-bottom: 0;
}
.teplo-timeline-year {
    width: 160px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 28px;
    padding-top: 14px;
}
.teplo-timeline-year span {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    white-space: nowrap;
}
.teplo-timeline-dot {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    margin-top: 14px;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(232, 112, 10, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.teplo-timeline-item:hover .teplo-timeline-dot {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(232, 112, 10, 0.22);
}
.teplo-timeline-card {
    flex: 1;
    margin-left: 28px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 18px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}
.teplo-timeline-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    transform: rotate(45deg);
}
.teplo-timeline-item:hover .teplo-timeline-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}
.teplo-timeline-card p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .teplo-services-list {
        grid-template-columns: 1fr;
    }
    .teplo-timeline::before {
        left: 140px;
    }
    .teplo-timeline-year {
        width: 120px;
        padding-right: 24px;
    }
}
@media (max-width: 600px) {
    .teplo-history-wrap {
        padding: 0 16px 40px;
    }
    .teplo-page-title {
        font-size: 1.5rem;
    }
    .teplo-section-title {
        font-size: 1.3rem;
    }
    .teplo-section {
        padding: 32px 0;
    }
    .teplo-intro-text p {
        font-size: 0.97rem;
    }
    .teplo-services-list li {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
    .teplo-timeline::before {
        left: 9px;
        top: 0;
        bottom: 0;
    }
    .teplo-timeline-item {
        flex-direction: column;
        padding-left: 36px;
        margin-bottom: 28px;
    }
    .teplo-timeline-year {
        width: auto;
        text-align: left;
        padding: 0 0 6px;
    }
    .teplo-timeline-dot {
        position: absolute;
        left: -27px;
        top: 12px;
        width: 14px;
        height: 14px;
        margin-top: 0;
    }
    .teplo-timeline-card {
        margin-left: 0;
        padding: 14px 16px;
    }
    .teplo-timeline-card::before {
        display: none;
    }
}
