/* ===========================
   WORK PROCESS SECTION STYLES
   Секция "Как мы работаем?" на главной странице
   =========================== */

.work-process-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--color-heading);
    color: var(--color-white);
}

.work-process-section .container {
    position: relative;
}

/* Фоновое изображение */
.work-process-image {
    position: absolute;
    right: 0;
    bottom: -40%;
    transform: translateY(-50%);
    max-width: 240px;
    height: auto;
    pointer-events: none;
}

.work-process-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(20%);
}

/* ===== ОСНОВНАЯ СТРУКТУРА ===== */

.work-process-content {
    display: flex;
    gap: 60px;
}

/* Левая часть - заголовки и кнопка */
.work-process-left {
    flex: 0 0 auto;
    width: 22%;
    max-width: 500px;
}

/* Правая часть - карточки */
.work-process-right {
    flex: 1;
    min-width: 0;
}

/* ===== ЗАГОЛОВКИ И ТЕКСТ ===== */

/* Верхний заголовок */
.work-process-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-button-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Основной заголовок */
.work-process-title {
    font-size: clamp(28px, 2.5vw, 48px);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1.1;
}

/* Описание */
.work-process-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    margin-bottom: 35px;
}

.work-process-description p {
    margin-bottom: 15px;
}

.work-process-description p:last-child {
    margin-bottom: 0;
}

/* ===== КНОПКА РАСЧЕТА СТОИМОСТИ ===== */

.work-process-button-wrapper {
    margin-top: 30px;
}

.work-process-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--color-button-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-process-button:hover {
    background-color: var(--color-button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 132, 52, 0.3);
}

.work-process-button .button-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ===== СЕТКА КАРТОЧЕК ===== */

.work-process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
}

/* ===== КАРТОЧКА ПРОЦЕССА ===== */

.work-process-card {
    background-color: #202020;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.work-process-card-row-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== ИКОНКА В КВАДРАТЕ ===== */

.work-process-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    /* background-color: var(--color-text); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.work-process-card:hover .work-process-icon-box {
    background-color: var(--color-button-primary);
}

.work-process-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Заглушка для иконки */
.work-process-icon-placeholder {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Галочка (скрыта по умолчанию) */
.work-process-check {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--color-button-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.work-process-check.show {
    transform: scale(1);
}

.work-process-check.hidden {
    display: none;
}

/* ===== КОНТЕНТ КАРТОЧКИ ===== */

.work-process-card-content {
    flex: 1;
}

.work-process-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    flex: 1;
}

.work-process-card-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (до 1200px) */
@media (max-width: 1200px) {
    .work-process-content {
        gap: 20px;
    }

    .work-process-left {
        width: 25%;
    }

    .work-process-cards {
        gap: 15px;
    }

    .work-process-card {
        padding: 20px 15px;
    }

    .work-process-card-row-title {
        gap: 10px;
    }

    .work-process-card-title {
        font-size: 14px;
    }
}

@media screen and (max-width: 1024px) {
    .work-process-button {
        padding: 10px 25px;
        font-size: 12px;
    }

    .work-process-section {
        padding: 40px 0;
    }

    .work-process-image {
        bottom: -50%;
    }
}

/* Средние планшеты (до 992px) */
@media (max-width: 992px) {
    .work-process-section {
        padding: 60px 0;
    }

    .work-process-content {
        flex-direction: column;
        gap: 50px;
    }

    .work-process-left {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .work-process-title {
        font-size: clamp(28px, 5vw, 40px);
    }

    .work-process-image {
        bottom: 15%;
    }
}

/* Планшеты (до 768px) */
@media (max-width: 768px) {
    .work-process-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
    }

    .work-process-card {
        padding: 20px 15px;
    }

    .work-process-icon-box {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .work-process-icon {
        width: 26px;
        height: 26px;
    }

    .work-process-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .work-process-card-description {
        font-size: 13px;
    }

    .work-process-image {
        bottom: 25%;
    }
}

/* Мобильные устройства (до 576px) */
@media (max-width: 576px) {
    .work-process-section {
        padding: 50px 0;
    }

    .work-process-content {
        gap: 40px;
    }

    .work-process-cards {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }

    .work-process-card {
        padding: 18px 15px;
    }

    .work-process-button {
        padding: 12px 25px;
        font-size: 13px;
    }

    .work-process-button .button-icon {
        width: 20px;
        height: 20px;
    }

    .work-process-image {
        bottom: 45%;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .work-process-section {
        padding: 40px 0;
    }

    .work-process-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .work-process-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 20px;
    }

    .work-process-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .work-process-button-wrapper {
        margin-top: 25px;
    }

    .work-process-card {
        padding: 15px 12px;
    }

    .work-process-icon-box {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .work-process-icon {
        width: 22px;
        height: 22px;
    }

    .work-process-card-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .work-process-card-description {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ===== */

/* Анимация появления карточек */
.work-process-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.work-process-card:nth-child(1) {
    animation-delay: 0.1s;
}

.work-process-card:nth-child(2) {
    animation-delay: 0.2s;
}

.work-process-card:nth-child(3) {
    animation-delay: 0.3s;
}

.work-process-card:nth-child(4) {
    animation-delay: 0.4s;
}

.work-process-card:nth-child(5) {
    animation-delay: 0.5s;
}

.work-process-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Состояния для доступности */
.work-process-button:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.work-process-card:focus-within {
    outline: 2px solid var(--color-button-primary);
    outline-offset: 2px;
}