/* ==========================================================================
   SECTIONS — LIGHT ARCHITECTURAL MINIMALISM
   ========================================================================== */

/* Тело сайта делаем светлым, как в любимом образце */
#main-content {
    background-color: #f8f9fa;
    color: #1a1d20;
}

.section-padding {
    padding: 120px 0;
    border-bottom: 1px solid #e5e8ec;
}

/* Переопределяем цвета заголовков для светлой зоны */
#main-content .tagline {
    color: #4f7086; /* благородный серо-синий */
    font-weight: 600;
    letter-spacing: 0.2em;
}

#main-content .section-title {
    color: #14171a;
    font-weight: 400;
    letter-spacing: -0.02em;
}

#main-content .section-desc {
    color: #55606d;
}

/* ==========================================================================
   СЕКЦИЯ НАПРАВЛЕНИЙ (ПОЛНОШИРИННЫЙ ТЕМНЫЙ МОНОЛИТ)
   ========================================================================== */

.directions-section {
    background-color: #111418; /* Вычерняем всю секцию на 100% ширины */
    color: #ffffff;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 120px 0;
}

/* Перенастраиваем заголовок секции под темный фон */
.directions-section .tagline {
    color: var(--accent-ice) !important;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.directions-section .section-title {
    color: #ffffff !important;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.directions-section .section-desc {
    color: #8c9ba8 !important;
    font-weight: 300;
}

.section-header-compact {
    max-width: 680px;
    margin-bottom: 4rem;
}

.directions-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* Карточки внутри темной секции (Стеклянные архитектурные панели) */
.dir-card {
    position: relative;
    min-height: 460px;
    background: rgba(255, 255, 255, 0.02); /* Полупрозрачное темное стекло */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Тончайшая стальная граница */
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Фоновые изображения — очень деликатные, как архитектурный чертеж */
.dir-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(20%) contrast(120%);
    opacity: 0.35;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.dir-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 20, 24, 0.6) 0%, rgba(13, 16, 20, 0.95) 100%);
    z-index: 2;
}

.dir-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Мета-индекс */
.dir-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dir-badge {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-ice);
    padding: 0.35rem 0.8rem;
    background: rgba(126, 174, 200, 0.08);
    border: 1px solid rgba(126, 174, 200, 0.25);
    border-radius: 1px;
}

.dir-index {
    font-size: 0.9rem;
    color: #556371;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Заголовок карточки */
.dir-card-title {
    font-size: 1.85rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

/* Описание */
.dir-card-text {
    font-size: 0.95rem;
    color: #9aa7b5;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Тонкие теги */
.dir-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.dir-feat {
    font-size: 0.75rem;
    color: #b0bcc8;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1px;
    letter-spacing: 0.02em;
}

/* Нижняя ссылка */
.dir-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.dir-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
}

.dir-link svg {
    transition: transform 0.3s ease;
}

/* Ховер: премиальная глубина вместо темноты */
.dir-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(126, 174, 200, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dir-card:hover .dir-card-bg {
    opacity: 0.5;
    transform: scale(1.04);
    filter: grayscale(60%) brightness(30%) contrast(120%);
}

.dir-card:hover .dir-link {
    color: var(--accent-ice);
}

.dir-card:hover .dir-link svg {
    transform: translateX(6px);
}

@media (max-width: 992px) {
    .directions-cards-grid { grid-template-columns: 1fr; }
    .dir-card { min-height: auto; padding: 2.5rem; }
    .dir-card-title { font-size: 1.5rem; }
}

/* 2. Табы работ и спецификации */
.tabs-wrapper {
    margin-top: 3.5rem;
}

.tab-buttons {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e2e6eb;
}

.tab-btn {
    background: none;
    border: none;
    color: #738090;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #14171a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7eaec8;
}

.tab-pane {
    display: none;
    margin-top: 3.5rem;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.98rem;
    color: #2b333c;
}

.work-item::before {
    content: "—";
    color: #7eaec8;
    font-weight: 600;
}

/* 3. Процесс (5 шагов) */
.process-line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    padding-top: 2rem;
    border-top: 1px solid #d8dee6;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 6px;
    height: 6px;
    background: #7eaec8;
}

.step-num {
    font-size: 0.8rem;
    color: #7eaec8;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #14171a;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.88rem;
    color: #606d7b;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .directions-grid, .tab-pane.active { grid-template-columns: 1fr; }
    .process-line { grid-template-columns: 1fr; gap: 2rem; }
}