/* about_styles.css */

.td-about-wrapper {
    font-family: inherit;
    line-height: 1.6;
    color: #333333;
    width: 100%;
}

/* --- ЧАСТЬ 1: HERO SECTION (Описание + Фото) --- */
.td-hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
}

.td-hero-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #b71c1c;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.td-intro-text {
    font-size: 16px;
    color: #444444;
    margin: 0;
}

.td-hero-image {
    width: 100%;
}

.td-image-block {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f9f9f9;
    min-height: 350px;
    width: 100%;
}

.td-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-stats-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #b71c1c;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
}

.td-stats-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.td-stats-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

/* --- ЧАСТЬ 2: DETAILS SECTION (На всю ширину) --- */
.td-details-section {
    width: 100%;
}

.td-details-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Сетка преимуществ */
.td-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на всю ширину */
    gap: 20px;
    margin-bottom: 30px;
}

.td-feature-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.td-feature-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #b71c1c;
}

.td-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #b71c1c;
    margin-bottom: 10px;
    display: block;
}

.td-feature-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
}

/* Блок сертификатов */
.td-cert-box {
    background-color: #f9f9f9;
    border-left: 4px solid #b71c1c;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-size: 15px;
}

.td-cert-box a {
    color: #b71c1c;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.td-cert-box a:hover {
    text-decoration: underline;
}

/* Теги сфер деятельности */
.td-sectors-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.td-sector-tag {
    background-color: #f0f4f8;
    color: #444444;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dce4eb;
}

/* Финальный блок */
.td-final-note {
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    color: #b71c1c;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .td-features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .td-hero-section {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 30px;
    }
    .td-hero-image {
        order: -1; /* Фото сверху */
    }
    .td-features-grid {
        grid-template-columns: 1fr; /* 1 колонка карточек на мобильных */
    }
    .td-image-block {
        min-height: 250px;
    }
}