/* =========================
   Services block
========================= */

.services {
    --brand: #472500;
    --ink: #111827;
    --muted: #4b5563;
    --bg: #f6f7f9;
    --card: #ffffff;
    --line: #e5e7eb;

    background: var(--bg);
    padding: 96px 16px;
}

.services__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.services__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 44px;
}

.services__list {
    display: grid;
    gap: 22px;
}

/* =========================
   Single service row (premium card)
========================= */

.service {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);

    display: grid;
    grid-template-columns: 1.25fr 0.75fr; /* фото визуально меньше */
    align-items: center;
    gap: 0;

    overflow: hidden; /* единый радиус на весь ряд */
}

/* Reverse layout */
.service--reverse {
    grid-template-columns: 0.75fr 1.25fr;
}

.service__text {
    padding: 56px;
}

.service__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
}

.service__desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 26px;
}

.service__desc strong {
    color: var(--ink);
    font-weight: 600;
}

/* Button (premium, фирменный hover) */
.service__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    border-radius: 14px;

    border: 1px solid rgba(71, 37, 0, 0.28);
    background: transparent;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;

    color: var(--brand);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.service__btn:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    transform: translateY(-1px);
}

.service__btn:active {
    transform: translateY(0);
}

/* Media column */

.service__media {
    padding: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* вертикальная картинка, “в 2 раза меньше” — не на всю высоту ряда */
.service__media-wrap {
    width: 100%;
    max-width: 300px;
    border-radius: 22px;
    overflow: hidden;

    aspect-ratio: 3 / 4;          /* вертикальная */
    background: #e5e7eb;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

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

/* For reverse: swap columns visually without changing markup */
.service--reverse .service__text {
    order: 2;
}

.service--reverse .service__media {
    order: 1;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .services {
        padding: 80px 16px;
    }

    .service__text {
        padding: 44px;
    }

    .service__title {
        font-size: 26px;
    }

    .service__media-wrap {
        max-width: 260px;
        border-radius: 20px;
    }
}

/* Mobile: полностью убираем картинки, оставляем красивые карточки */
@media (max-width: 768px) {
    .services {
        padding: 64px 16px;
    }

    .services__title {
        font-size: 30px;
        margin-bottom: 28px;
    }

    .service {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .service__media {
        display: none;
    }

    .service__text {
        padding: 28px;
    }

    .service__title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .service__desc {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .service__btn {
        width: 100%;
        padding: 13px 18px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .services {
        padding: 56px 14px;
    }

    .services__title {
        font-size: 28px;
    }

    .service__text {
        padding: 24px;
    }
}