/* Секція «Чому варто обрати LIGA360» — блок foldersSection
   (Figma «SEO портал», 186:17920; папка — 186:18026).
   Розмітка: Views/Partials/blocklist/Components/foldersSection.cshtml і
   foldersSectionItem.cshtml. Токени макета: text/default #25252a,
   border/default #e5e2ff, bg/Secondary #fafafc, bg/Primary/hover #f3f2ff,
   icon/accent #5048a1, CTA #151517. */

.folders-sec {
    padding: clamp(40px, 6vw, 80px) 0;
    background: linear-gradient(to bottom, #f2fbfa 2%, #faeafc 99%);
    color: #25252a;
}

.folders-sec__title {
    margin: 0 0 clamp(24px, 3vw, 48px);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #25252a;
}

.folders-sec__list {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 60px);
}

/* ── Папка: вкладка + картка ─────────────────────────────── */

.folders-sec__tab {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: clamp(240px, 28vw, 400px);
    /* Як на ligazakon.net: SVG із cover, вкладка трохи нижча за його
       пропорції (402×110). Картинка масштабується по ширині, а низ — разом з
       обведеним нижнім краєм — обрізається; біла заливка на 1px (margin-bottom)
       перекриває верхню рамку картки, тож лінії під вкладкою немає. Висота
       окремо від ширини не задається: інакше cover обріже бік, а не низ. */
    aspect-ratio: 402 / 100;
    margin-bottom: -1px;
    padding: 0 clamp(48px, 5vw, 80px) 0 clamp(20px, 3vw, 60px);
    background: url("/assets/img/folders-header.svg") left top / cover no-repeat;
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    color: #25252a;
}

.folders-sec__card {
    position: relative;
    z-index: 1;
    display: grid;
    /* Пропорції макета: цифри 500 / текст 670 при відступі 80. */
    grid-template-columns: minmax(0, 500fr) minmax(0, 670fr);
    gap: clamp(32px, 5vw, 80px);
    padding: clamp(20px, 4.7vw, 65px);
    border: var(--stroke-weight-1, 1px) solid var(--cntnr-border-default, #E5E2FF);
    border-radius: 0 var(--cntnr-corner-Biggest, 24px) var(--cntnr-corner-Biggest, 24px) var(--cntnr-corner-Biggest, 24px);
    background: var(--cntnr-bg-Primary-default, #FFF);
}

/* ── Цифри ліворуч ───────────────────────────────────────── */

.folders-sec__stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.folders-sec__stat {
    display: flex;
    align-items: center;
    gap: 24px;
}

.folders-sec__stat-img {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 147px;
    padding: 16px;
    border-radius: 16px;
    background: #fafafc;
}

.folders-sec__stat-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.folders-sec__stat-body {
    min-width: 0;
}

.folders-sec__stat-value {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: #25252a;
}

.folders-sec__stat-text {
    margin: 0;
    max-width: 276px;
    font-size: 14px;
    line-height: 20px;
    color: #25252a;
}

/* ── Текст праворуч ──────────────────────────────────────── */

.folders-sec__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.folders-sec__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.folders-sec__heading {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -0.02em;
    color: #25252a;
}

.folders-sec__text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #25252a;
}

.folders-sec__points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Маркер — фіолетове коло з білою стрілкою (icon/accent #5048a1). */
.folders-sec__point {
    position: relative;
    padding-left: 32px;
    font-size: 14px;
    line-height: 16px;
    color: #25252a;
}

.folders-sec__point::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5048a1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h8.2M8.6 4.6 12 8l-3.4 3.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* ── Адаптив ─────────────────────────────────────────────── */

@media (max-width: 1199.98px) {
    .folders-sec__stat-img {
        flex-basis: 160px;
        height: 120px;
    }
}

@media (max-width: 991.98px) {
    .folders-sec__card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .folders-sec__stats {
        gap: 20px;
    }

    .folders-sec__stat {
        gap: 16px;
    }

    .folders-sec__stat-img {
        flex-basis: 110px;
        height: 90px;
        padding: 10px;
    }

    .folders-sec__content {
        gap: 28px;
    }
}
