/* ============================================================
   Кейс (новый) — page-case-new.php
   ============================================================ */

.case-new-page .site-container {
    background: #f2f7ff;
    /* иначе position:sticky у сайдбара не работает */
    overflow: visible;
}

.case-new {
    box-sizing: border-box;
    background: #f2f7ff;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    overflow: visible;
}

.case-new *,
.case-new *::before,
.case-new *::after {
    box-sizing: border-box;
}

.case-new__container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- Breadcrumbs ---------- */

.case-new__breadcrumbs {
    padding: 10px 0;
    background: #f2f7ff;
}

.case-new__breadcrumbs-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 19px;
}

.case-new__breadcrumbs a,
.case-new__breadcrumbs-current {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.case-new__breadcrumbs a {
    color: #2c2c2c;
}

.case-new__breadcrumbs a:hover {
    color: #4a5fe6;
}

.case-new__breadcrumbs-current {
    color: rgba(44, 44, 44, 0.4);
}

.case-new__breadcrumbs-sep {
    display: inline-block;
    width: 30px;
    height: 0;
    border-top: 1px solid #2c2c2c;
    flex: 0 0 auto;
}

.case-new__breadcrumbs-sep--muted {
    border-color: rgba(44, 44, 44, 0.4);
}

/* ---------- Article shell ---------- */

.case-new__article {
    padding: 40px 0 80px;
}

.case-new__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.case-new__chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(44, 44, 44, 0.6);
    border-radius: 50px;
    color: rgba(44, 44, 44, 0.6);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__chip--accent {
    background: #4a5fe6;
    border-color: #4a5fe6;
    color: #f7f7f7;
}

.case-new__title {
    margin: 0 0 28px;
    max-width: 1240px;
    color: #2c2c2c;
    font-weight: 600;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 105%;
    letter-spacing: -0.05em;
}

.case-new__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.case-new__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.case-new__author-photo {
    width: 63px;
    height: 63px;
    border-radius: 100px;
    object-fit: cover;
    background: linear-gradient(180deg, #7b8bf7 0%, #4a5fe6 100%);
    flex: 0 0 auto;
}

.case-new__author-name {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
}

.case-new__author-role {
    margin: 0;
    color: rgba(44, 44, 44, 0.6);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__meta-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
}

.case-new__site-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 20px;
    background: #d9e1fe;
    color: #15007f;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.case-new__site-pill:hover {
    opacity: 0.9;
}

.case-new__divider {
    width: 100%;
    height: 0;
    margin: 0 0 40px;
    border-top: 1px solid rgba(179, 179, 179, 0.4);
}

/* ---------- Layout ---------- */

.case-new__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.case-new__main {
    flex: 1 1 auto;
    width: min(891px, 100%);
    display: flex;
    flex-direction: column;
    gap: 60px;
    min-width: 0;
}

.case-new__sidebar {
    position: sticky;
    top: calc(var(--sp-header-height, 140px) + 36px);
    flex: 0 0 309px;
    width: 309px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: flex-start;
    z-index: 5;
    max-height: calc(100vh - var(--sp-header-height, 140px) - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

/* ---------- KPI ---------- */

.case-new__kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.case-new__results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-new__kpi-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.case-new__result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    min-height: 236px;
}

.case-new__results-extra {
    width: 100%;
    margin-top: 10px;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.02em;
}

.case-new__results-extra > *:first-child {
    margin-top: 0;
}

.case-new__results-extra > *:last-child {
    margin-bottom: 0;
}

.case-new__results-extra p {
    margin: 0 0 14px;
}

.case-new__results-extra ul,
.case-new__results-extra ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.case-new__results-extra li {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: rgba(44, 44, 44, 0.75);
}

.case-new__results-extra li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.6);
}

.case-new__results-extra li:last-child {
    margin-bottom: 0;
}

.case-new__results-extra a {
    color: #4a5fe6;
}

.case-new__results-extra strong,
.case-new__results-extra b {
    font-weight: 600;
}

.case-new__results-extra h2,
.case-new__results-extra h3,
.case-new__results-extra h4 {
    margin: 0 0 12px;
    color: #2c2c2c;
    font-weight: 600;
    line-height: 125%;
}

.case-new__results-extra img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.case-new__kpi-label,
.case-new__result-title {
    margin: 0;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 18px;
    line-height: 108%;
    letter-spacing: -0.03em;
}

.case-new__kpi-label {
    min-height: calc(18px * 1.08 * 2);
}

.case-new__kpi-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 4px;
    row-gap: 0;
    margin: 0;
    min-height: 78px;
    overflow: visible;
}

.case-new__kpi-num,
.case-new__kpi-unit,
.case-new__kpi-sign {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    line-height: 1;
    /* solid color: background-clip:text обрезает глифы Hero New */
    color: #2f68ff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.case-new__kpi-num,
.case-new__kpi-sign {
    font-size: 65px;
    letter-spacing: -0.02em;
}

.case-new__kpi-sign {
    position: relative;
    top: 0.02em;
}

.case-new__kpi-unit {
    font-size: 32px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-new__kpi-unit--bottom {
    width: 100%;
    align-self: flex-start;
    padding-bottom: 0;
    margin-top: 2px;
    font-size: 22px;
    line-height: 1.2;
}

.case-new__kpi-value:has(.case-new__kpi-unit--bottom) {
    min-height: 110px;
    align-items: center;
    align-content: flex-start;
}

.case-new__kpi-value--text {
    align-items: flex-start;
    min-height: 78px;
}

.case-new__kpi-text {
    display: block;
    color: #2f68ff;
    font-weight: 600;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: -0.03em;
}

.case-new__kpi-note,
.case-new__result-text {
    margin: 0;
    color: rgba(44, 44, 44, 0.6);
    font-weight: 400;
    font-size: 16px;
    line-height: 108%;
    letter-spacing: -0.03em;
}

.case-new__kpi-note {
    font-weight: 500;
    min-height: calc(16px * 1.08 * 2);
}

.case-new__kpi-delta {
    margin: 0;
    margin-top: auto;
    color: #009a12;
    font-weight: 600;
    font-size: 16px;
    line-height: 108%;
    letter-spacing: -0.03em;
}

/* ---------- Sections ---------- */

.case-new__section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.case-new__section-badge {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #4a5fe6;
    border-radius: 20px;
    background: #d9e1fe;
    color: #004dff;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.04em;
}

.case-new__section-title {
    margin: 0;
    width: 100%;
    color: #2c2c2c;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
}

.case-new__section-text {
    margin: 0;
    width: 100%;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.02em;
}

.case-new__quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 20px;
    background: #d9e1fe;
    border-left: 2px solid #4a5fe6;
}

.case-new__quote-label {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 15px;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #004dff;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.04em;
}

.case-new__quote-text {
    margin: 0;
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;
}

.case-new__solution-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.case-new__solution-card {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
}

.case-new__solution-title {
    margin: 0;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
}

.case-new__solution-line {
    width: 100%;
    border-top: 1px solid rgba(179, 179, 179, 0.4);
}

.case-new__solution-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-new__solution-list li {
    position: relative;
    padding-left: 14px;
    color: rgba(44, 44, 44, 0.6);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
}

.case-new__solution-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.6);
}

.case-new__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.case-new__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 15px;
    border-radius: 20px;
    background: #fff;
    color: #2c2c2c;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.04em;
}

.case-new__tool img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.case-new__plan-slider,
.case-new__proof-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.case-new__slider-viewport {
    width: 100%;
    overflow: hidden;
}

.case-new__slider-track {
    display: flex;
    gap: 16px;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.case-new__plan-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - 32px) / 3);
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(41, 68, 180, 0.06);
    overflow: hidden;
}

.case-new__plan-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #d9e1fe;
    color: #004dff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.case-new__plan-card-title {
    margin: 0;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 18px;
    line-height: 125%;
    letter-spacing: -0.02em;
}

.case-new__plan-card-text {
    margin: 0;
    color: rgba(44, 44, 44, 0.62);
    font-weight: 400;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: -0.02em;
}

.case-new__plan-photo {
    margin: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #e4e8f2;
    background: #fff;
}

.case-new__plan-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.case-new__plan-photo-caption {
    margin: 0;
    padding: 14px 18px;
    color: rgba(44, 44, 44, 0.7);
    font-size: 14px;
    line-height: 130%;
    background: #f7f8fc;
}

.case-new__proof-slider {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.case-new__proof-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.case-new__proof-title {
    margin: 0;
    flex: 1 1 auto;
}

.case-new__proof-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.case-new__proof-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(74, 95, 230, 0.16);
    background: #fff;
    box-shadow:
        0 18px 50px rgba(32, 55, 150, 0.12),
        0 2px 8px rgba(32, 55, 150, 0.06);
}

.case-new__proof-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e8ecf6;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef2fb 100%);
}

.case-new__proof-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.case-new__proof-dot--red {
    background: #ff5f57;
}

.case-new__proof-dot--yellow {
    background: #febc2e;
}

.case-new__proof-dot--green {
    background: #28c840;
}

.case-new__proof-url {
    display: block;
    flex: 1 1 auto;
    margin-left: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4e8f2;
    color: rgba(44, 44, 44, 0.55);
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-new__proof-viewport {
    background: #f4f6fb;
}

.case-new__proof-slide {
    flex: 0 0 100%;
    margin: 0;
    background: #f4f6fb;
}

.case-new__proof-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.case-new__proof-controls {
    display: none;
}

.case-new__proof-counter {
    margin: 0;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.case-new__proof-counter-sep {
    margin: 0 2px;
    color: rgba(44, 44, 44, 0.35);
    font-weight: 500;
}

.case-new__proof-slider .case-new__slider-arrow {
    width: 48px;
    height: 48px;
    border-color: rgba(74, 95, 230, 0.28);
    box-shadow: 0 6px 16px rgba(41, 68, 180, 0.08);
}

.case-new__proof-slider.is-static .case-new__proof-arrows,
.case-new__proof-slider.is-static .case-new__proof-counter {
    display: none;
}

@media (max-width: 720px) {
    .case-new__proof-chrome {
        padding: 10px 12px;
    }

    .case-new__proof-url {
        font-size: 12px;
        padding: 6px 10px;
    }

    .case-new__proof-head {
        align-items: flex-start;
    }

    .case-new__proof-slider .case-new__slider-arrow {
        width: 42px;
        height: 42px;
    }
}

.case-new__plan-slider.is-static .case-new__slider-controls {
    display: none;
}

.case-new__slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.case-new__slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-new__slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(74, 95, 230, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.case-new__slider-dot.is-active {
    width: 22px;
    background: #4a5fe6;
}

.case-new__slider-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-new__slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(74, 95, 230, 0.35);
    border-radius: 50%;
    background: #fff;
    color: #4a5fe6;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.case-new__slider-arrow:hover:not(:disabled) {
    background: #4a5fe6;
    border-color: #4a5fe6;
    color: #fff;
}

.case-new__slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 1100px) {
    .case-new__plan-card {
        flex-basis: calc((100% - 16px) / 2);
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .case-new__plan-card {
        flex-basis: 86%;
        min-height: 0;
        padding: 20px;
    }

    .case-new__plan-card-title {
        font-size: 16px;
    }
}

.case-new__media {
    position: relative;
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    background-color: #9ea8f6;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.case-new__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(21, 0, 127, 0.45) 0%, rgba(74, 95, 230, 0.2) 55%, transparent 100%);
}

.case-new__media-caption {
    position: absolute;
    left: 28px;
    top: 38px;
    z-index: 1;
    margin: 0;
    max-width: 320px;
    color: #f7f7f7;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
}

/* ---------- Sidebar ---------- */

.case-new__side-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    background: #ecf0f7;
}

.case-new__side-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    background: linear-gradient(180deg, #3f79ff 0%, #004dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.case-new__side-line {
    width: 100%;
    border-top: 1px solid rgba(179, 179, 179, 0.4);
}

.case-new__side-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.case-new__side-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(179, 179, 179, 0.4);
}

.case-new__side-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.case-new__side-row:first-child {
    padding-top: 0;
}

.case-new__side-row dt {
    margin: 0;
    color: rgba(44, 44, 44, 0.6);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__side-row dd {
    margin: 0;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-align: right;
}

.case-new__toc-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
    counter-reset: case-toc;
}

.case-new__toc-list li {
    position: relative;
    counter-increment: case-toc;
}

.case-new__toc-list li::before {
    content: counter(case-toc) ".";
    position: absolute;
    left: -20px;
    top: 0;
    color: #2c2c2c;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
}

.case-new__toc-list a {
    color: #2c2c2c;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.case-new__toc-list a:hover {
    color: #4a5fe6;
}

.case-new__feedback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 280px;
    padding: 30px 40px;
    border-radius: 20px;
    background-color: #4a5fe6;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.case-new__feedback-title {
    margin: 0;
    color: #f7f7f7;
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 16px 30px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffe588 0%, #ffc702 100%);
    color: #2c2c2c;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.case-new__feedback-btn:hover {
    filter: brightness(0.98);
}

/* ---------- Bottom CTA ---------- */

.case-new__cta-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 60px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(120deg, #4a5fe6 0%, #9ea8f6 100%);
}

.case-new__cta-banner-title {
    margin: 0 0 10px;
    color: #f7f7f7;
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.case-new__cta-banner-desc {
    margin: 0;
    max-width: 520px;
    color: rgba(247, 247, 247, 0.86);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

.case-new__cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-new__cta-banner-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 16px 24px;
    border: 1px solid rgba(247, 247, 247, 0.7);
    border-radius: 40px;
    color: #f7f7f7;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.case-new__cta-banner-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .case-new__layout {
        flex-direction: column;
    }

    .case-new__sidebar {
        position: static;
        width: 100%;
        flex-basis: auto;
    }

    .case-new__feedback {
        max-width: 420px;
    }

    .case-new__kpi-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .case-new__kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .case-new__article {
        padding: 24px 0 56px;
    }

    .case-new__container {
        width: min(1240px, calc(100% - 24px));
    }

    .case-new__breadcrumbs-current {
        width: 100%;
    }

    .case-new__title {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .case-new__meta {
        gap: 16px;
    }

    .case-new__main {
        gap: 40px;
    }

    .case-new__kpi-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .case-new__kpi-card,
    .case-new__result-card {
        flex-basis: 100%;
        min-width: 0;
        min-height: 0;
        padding: 20px;
    }

    .case-new__kpi-label,
    .case-new__kpi-note {
        min-height: 0;
    }

    .case-new__kpi-num,
    .case-new__kpi-sign {
        font-size: 48px;
    }

    .case-new__kpi-text {
        font-size: 22px;
    }

    .case-new__kpi-value,
    .case-new__kpi-value:has(.case-new__kpi-unit--bottom),
    .case-new__kpi-value--text {
        min-height: 0;
    }

    .case-new__section-title {
        font-size: 20px;
    }

    .case-new__media {
        min-height: 240px;
    }

    .case-new__media-caption {
        left: 16px;
        top: 20px;
        font-size: 18px;
    }

    .case-new__cta-banner {
        margin-top: 40px;
        padding: 24px;
    }

    .case-new__cta-banner-title {
        font-size: 24px;
    }

    .case-new__cta-banner-actions {
        width: 100%;
    }

    .case-new__feedback-btn,
    .case-new__cta-banner-secondary {
        width: 100%;
    }
}
