/* ION Heat — Technologies / Projects */

.technologies .container {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
}

.technologies__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1242px;
}

.technologies__label {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 130%;
    font-weight: 800;
    text-transform: uppercase;
}

.technologies__title {
    color: var(--text);
    font-family: var(--h2-font-family);
    font-size: clamp(32px, 5vw, 64px);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    align-self: stretch;
}

.technologies__desc {
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 2.5vw, 32px);
    line-height: 130%;
    font-weight: 500;
    align-self: stretch;
}

/* Сетка — десктоп */
.technologies__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-self: stretch;
}

/* Карточка */
.technologies__card {
    border-radius: 20px;
    border: 1px solid var(--obvodka);
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.technologies__card:hover {
    box-shadow: var(--card-shadow);
}

.technologies__card-img {
    border-radius: 20px 20px 0 0;
    width: 100%;
    height: 478px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.technologies__card-body {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: stretch;
    padding-top: 16px;
}

.technologies__card-gallery {
    color: var(--active);
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    line-height: 130%;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.2s;
}

.technologies__card-gallery:hover {
    color: var(--accent);
}

.technologies__card-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
}

.technologies__card-title {
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 130%;
    font-weight: 500;
    max-width: 383px;
}

.technologies__card-desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    align-self: stretch;
}

/* Swiper — скрыт на десктопе */
.technologies__swiper { display: none; }

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .technologies__grid   { display: none; }
    .technologies__swiper { display: block; width: 100%; }

    .technologies .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .technologies__card-img {
        height: 280px;
    }

    .technologies__swiper .swiper-pagination {
        position: static;
        margin-top: 24px;
    }

    .technologies__swiper .swiper-pagination-bullet {
        background: var(--fon2);
        opacity: 0.3;
        width: 10px;
        height: 10px;
    }

    .technologies__swiper .swiper-pagination-bullet-active {
        background: var(--main);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .technologies__card-img {
        height: 220px;
    }

    .technologies__card-body {
        padding: 12px 20px;
    }
}