/* results.css */
.results {
    padding: 160px 0;
    position: relative;
    background: #1C1A29;
    overflow: hidden;
    max-width: 1920px;
    margin: 0 auto;
}

.results-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* Header */
.results-header {
    display: flex;
    justify-content: center;
}
.results-title-wrapper {
    position: relative;
    display: inline-block;
}
.results-icon {
    position: absolute;
    top: -56px;
    left: -40px;
    width: 57px;
    height: 56px;
}
.results-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 500;
    color: #FFF8EA;
    text-transform: uppercase;
    line-height: 56px;
    text-align: center;
}

/* Features */
.results-features-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.results-features-line {
    width: 1276px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 268px;
    z-index: 2;
}
.feature-circle {
    width: 60px;
    height: 60px;
    background: #FFF8EA;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #050409;
    font-size: 32px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    flex-shrink: 0;
    /* Adding the exact glow from Figma */
    box-shadow: 0px 0px 0.48px #BF9522, 0px 0px 0.96px #BF9522, 0px 0px 3.36px #BF9522, 0px 0px 6.72px #BF9522, 0px 0px 11.52px #BF9522, 0px 0px 20.16px #BF9522;
}
.feature-text-block {
    width: 268px;
    text-align: center;
    color: #FFF8EA;
    font-size: 24px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    line-height: 40.8px;
    margin-top: 15px; /* Spacing below circle */
}
.feature-dots {
    position: absolute;
    top: 30px; /* Middle of the 60px circle */
    left: 134px; /* Start inside first circle */
    right: 134px; /* End inside last circle */
    height: 0;
    border-top: 3px dotted #FDC667; /* Creates dotted line */
    z-index: 1;
}

/* Subtitle / Divider */
.results-subtitle-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.results-subtitle {
    text-align: center;
    color: #FFF8EA;
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 56px;
}
.subtitle-dots {
    color: #FDC667;
    font-size: 32px;
    line-height: 0.5;
    letter-spacing: 5px;
    font-weight: 900;
}

/* Cards */
.before-after-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 40px;
}
.ba-card {
    width: 406px;
    height: 604px;
    position: relative;
    background: #3D3C42;
    border-radius: 12px;
    outline: 1px solid #FDC667;
    outline-offset: -1px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ba-card:hover {
    transform: translateY(-8px);
    background: #46454c;
    outline-color: #ffe0a3;
    box-shadow: 0 12px 30px rgba(253, 198, 103, 0.2);
}
.ba-image-before {
    width: 216px;
    height: 324px;
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 8px;
    object-fit: cover;
    z-index: 1;
}
.ba-image-after {
    width: 216px;
    height: 324px;
    position: absolute;
    left: 170px;
    top: 260px;
    border-radius: 8px;
    object-fit: cover;
    z-index: 1;
}

.ba-badge {
    height: 60px;
    padding: 0 30px;
    position: absolute;
    background: rgba(214, 218, 224, 0.10);
    box-shadow: 0px 4px 3px rgba(155, 155, 157, 0.30), 0px -4px 3px rgba(165, 161, 161, 0.30);
    border-radius: 8px;
    outline: 1px solid #FDC667;
    outline-offset: -1px;
    backdrop-filter: blur(3.50px);
    -webkit-backdrop-filter: blur(3.50px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF8EA;
    font-size: 32px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 2;
}
.badge-do {
    left: 221px;
    top: 98px;
}
.badge-pislya {
    left: 23px;
    top: 445px;
}

/* CTA */
.results-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
}
.btn-results {
    height: 50px;
    padding: 0 24px;
    background: linear-gradient(0deg, #FDC667 0%, #FDC667 100%), 
                radial-gradient(ellipse 123.78% 97.9% at 0% -3.37%, white 1%, rgba(255, 249.69, 249.69, 0) 100%), 
                linear-gradient(82deg, rgba(193.53, 200.41, 202.28, 0.80) 0%, rgba(214.43, 221.90, 220.83, 0.80) 16%, rgba(214.93, 239.06, 239.06, 0.80) 27%, rgba(204.23, 214.54, 213.07, 0.80) 37%, rgba(193.32, 200.34, 201.06, 0.80) 47%, rgba(190.38, 204.55, 208.41, 0.80) 57%, rgba(217.88, 241.27, 247.64, 0.80) 74%, rgba(203.76, 229.09, 234.16, 0.80) 89%, rgba(204.60, 208.56, 209.64, 0.80) 100%);
    background-blend-mode: color, overlay, normal;
    box-shadow: 0 10px 24px rgba(253, 198, 103, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12),
                inset 0px -2px 1.5px rgba(0, 0, 0, 0.40), 
                inset 0px 2px 1.5px rgba(255, 255, 255, 0.40), 
                inset 0px 6px 6px rgba(255, 255, 255, 0.25), 
                inset 0px -8px 6px rgba(149.32, 142.43, 142.43, 0.20);
    border-radius: 100px;
    border: none;
    outline: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #050409;
    font-size: 20px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.btn-results:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(253, 198, 103, 0.32), 0 6px 12px rgba(0, 0, 0, 0.16),
                inset 0px -2px 1.5px rgba(0, 0, 0, 0.40), 
                inset 0px 2px 1.5px rgba(255, 255, 255, 0.40), 
                inset 0px 6px 6px rgba(255, 255, 255, 0.25), 
                inset 0px -8px 6px rgba(149.32, 142.43, 142.43, 0.20);
}

/* Responsive Scaling */
@media (max-width: 1400px) {
    .before-after-grid {
        justify-content: center;
        flex-wrap: wrap;
    }
    .results-cta {
        justify-content: center;
    }
    .results-features-text {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .results-features-line {
        display: flex;
        justify-content: center;
        gap: 40px;
        position: relative;
        height: auto;
    }
    .feature-circle {
        position: relative;
        left: auto !important;
    }
    .feature-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .results-title {
        font-size: 28px;
        line-height: 36px;
    }
    .ba-card {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -90px;
    }
    .results {
        padding: 80px 0;
    }
}

/* ============================================================
   Before / After — «ДО» і «ПІСЛЯ» ПОРУЧ, без накладання.

   Оригінальний дизайн клав два фото по діагоналі з перекриттям
   (одне лізло на інше) — замовниця просила прибрати накладання.
   Тут два фото стоять двома колонками (кожне 45% ширини, проміжок
   між ними), картка — 5:4; бейдж сидить над своїм фото. Працює на
   будь-якій ширині (координати у %), бейджі масштабуються через cqw.

   `transition: none` — у базовому `.ba-card` стоїть `transition: all`,
   через що зміна розкладки анімувалась; тут вона не потрібна.

   Селектори на щабель специфічніші за responsive.css (`.ba-card .x`),
   щоб виграти без гонки `!important`. Головну не чіпає — окремий CSS.
   ============================================================ */
.ba-card { container-type: inline-size; transition: none !important; }
.before-after-grid .ba-card {
    aspect-ratio: 5 / 4 !important;
    height: auto !important;
}
.ba-card .ba-image-before {
    position: absolute !important;
    width: 45% !important; height: 86% !important;
    left: 3% !important; top: 7% !important;
}
.ba-card .ba-image-after {
    position: absolute !important;
    width: 45% !important; height: 86% !important;
    left: 52% !important; top: 7% !important;
}
.ba-card .badge-do     { left: 6% !important; right: auto !important; top: auto !important; bottom: 9% !important; }
.ba-card .badge-pislya { left: auto !important; right: 6% !important; top: auto !important; bottom: 9% !important; }
.ba-card .ba-badge {
    height: auto !important;
    padding: 0.3em 0.9em !important;
    font-size: 5cqw !important;
    line-height: 1.25 !important;
}
