/**
 * Case v2 — Figma node 1:320 (hero)
 * Брейкпoинты: 1400 | 1023 | 767
 */

.cases--single-v2 {
    --case-v2-text: #1a1919;
    --case-v2-muted: #b3b3b3;
    --case-v2-tag-bg: #e9e9e9;
    --case-v2-tag-text: #7f7f7f;
    --case-v2-accent: #fc8327;
    --case-v2-stat-gradient: linear-gradient(177deg, #fff2e8 0%, #ffdcbf 100%);
    --case-v2-browser-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --case-v2-nav-bg: #f6f6f6;
    --case-v2-nav-border: #c0c0c0;
    --case-v2-pill-bg: #eee;
    --case-v2-sidebar-bg: #f8f8f8;
    --case-v2-card-white-overlay: rgba(255, 255, 255, 0.2);
}

.main.cases--single-v2 {
    overflow: visible;
}

.cases--single-v2 .case-v2-nav__link,
.cases--single-v2 .case-v2-client-card__site a,
.cases--single-v2 .case-v2-sidebar__link {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cases--single-v2 .case-v2-nav__link:hover,
.cases--single-v2 .case-v2-nav__link:focus-visible,
.cases--single-v2 .case-v2-client-card__site a:hover,
.cases--single-v2 .case-v2-client-card__site a:focus-visible,
.cases--single-v2 .case-v2-sidebar__link:hover,
.cases--single-v2 .case-v2-sidebar__link:focus-visible {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
}

/* --- Breadcrumbs (как hero--default) --- */

.cases--single-v2 .case-v2 > .container:first-child {
    padding-top: 24px;
}

.cases--single-v2 .breadcrumbs {
    margin-bottom: 80px;
}

@media (max-width: 1400px) {
    .cases--single-v2 .breadcrumbs {
        margin-bottom: 38px;
    }
}

@media (max-width: 1023px) {
    .cases--single-v2 .breadcrumbs {
        margin-bottom: 24px;
    }
}

/* --- Hero --- */

.case-v2-hero {
    padding-bottom: 56px;
}

.case-v2-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.case-v2-hero__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 791px;
    max-width: 791px;
    min-width: 0;
}

.case-v2-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.case-v2-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px;
    border-radius: 13px;
    background-color: var(--case-v2-tag-bg);
    color: var(--case-v2-tag-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.case-v2-hero__tag--flag {
    min-width: 0;
    padding: 0;
    background: none;
    line-height: 0;
}

.case-v2-hero__tag--flag img {
    display: block;
    width: 40px;
    height: 40px;
}

.case-v2-hero__title {
    margin: 0 0 50px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
}

.case-v2-hero__text {
    margin: 0 0 42px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
}

.case-v2-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.case-v2-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 19px;
}

.case-v2-hero__meta-icon {
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.case-v2-hero__meta-icon img {
    display: block;
    width: 16px;
    height: 16px;
}

.case-v2-hero__meta-text {
    color: var(--case-v2-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.case-v2-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin-top: 46px;
}

.case-v2-hero__stat {
    display: flex;
    flex: 1 1 calc(25% - 15px);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 150px;
    min-height: 110px;
    padding: 20px;
    border-radius: 17px;
    background: var(--case-v2-stat-gradient);
}

.case-v2-hero__stat-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.case-v2-hero__stat-value {
    color: var(--case-v2-accent);
    font-family: Inter, Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    line-height: 1;
}

.case-v2-hero__stat-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.case-v2-hero__stat-icon img {
    display: block;
    width: auto;
    max-width: 42px;
    height: auto;
    max-height: 50px;
}

.case-v2-hero__stat-label {
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.case-v2-hero__aside {
    display: flex;
    flex: 0 0 558px;
    flex-direction: column;
    align-items: flex-end;
    max-width: 558px;
}

.case-v2-hero__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 145px;
    min-height: 40px;
}

.case-v2-hero__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.case-v2-hero__browser {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--case-v2-browser-shadow);
}

.case-v2-hero__browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 25px;
    padding: 9px 10px;
    background-color: #fff;
    border-bottom: 1px solid #ebebeb;
}

.case-v2-hero__browser-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.case-v2-hero__browser-dot--red {
    background-color: #fa5750;
}

.case-v2-hero__browser-dot--yellow {
    background-color: #fbb336;
}

.case-v2-hero__browser-dot--green {
    background-color: #35bf3f;
}

.case-v2-hero__browser-screen {
    display: flex;
    background-color: #fff;
}

.case-v2-hero__browser-screen img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1400px) {
    .case-v2-hero__title {
        font-size: 44px;
    }

    .case-v2-hero__text {
        font-size: 22px;
    }

    .case-v2-hero__stat-value {
        font-size: 38px;
    }

    .case-v2-hero__aside {
        flex-basis: 480px;
        max-width: 480px;
    }
}

@media (max-width: 1023px) {
    .case-v2-hero__top {
        flex-direction: column;
    }

    .case-v2-hero__main,
    .case-v2-hero__aside {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .case-v2-hero__aside {
        align-items: center;
    }

    .case-v2-hero__logo {
        justify-content: center;
    }

    .case-v2-hero__stat {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .case-v2-hero {
        padding-bottom: 40px;
    }

    .case-v2-hero__title {
        margin-bottom: 24px;
        font-size: 32px;
    }

    .case-v2-hero__text {
        margin-bottom: 24px;
        font-size: 18px;
    }

    .case-v2-hero__stats {
        margin-top: 32px;
    }

    .case-v2-hero__browser {
        margin-top: 24px;
    }

    .case-v2-hero__tags {
        gap: 10px;
        margin-bottom: 16px;
    }

    .case-v2-hero__tag {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 16px;
    }

    .case-v2-hero__tag--flag {
        min-height: 0;
        padding: 0;
    }

    .case-v2-hero__tag--flag img {
        width: 36px;
        height: 36px;
    }
        flex: 1 1 100%;
        min-height: 96px;
    }

    .case-v2-hero__stat-value {
        font-size: 32px;
    }

    .case-v2-hero__stat-label {
        font-size: 16px;
    }
}

/* --- Nav (лифты) --- */

.case-v2-nav {
    margin-bottom: 0;
}

.case-v2-nav__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-nav__item {
    min-width: 0;
}

.case-v2-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 55px;
    padding: 10px;
    border: 1px solid var(--case-v2-nav-border);
    border-radius: 17px;
    background-color: var(--case-v2-nav-bg);
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-underline-offset: 4px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.case-v2-nav__link:hover {
    border-color: var(--case-v2-accent);
    background-color: #fff;
    color: var(--case-v2-text);
}

/* --- Body grid --- */

.case-v2-body {
    padding-bottom: 80px;
}

.case-v2-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
    gap: 21px;
    align-items: start;
    min-width: 0;
}

.case-v2-main {
    display: flex;
    flex-direction: column;
    gap: 62px;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.case-v2-sidebar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-self: start;
    margin-top: 117px;
    min-width: 0;
}

.case-v2-team {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 48px;
}

.case-v2-other {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    margin-top: 48px;
    overflow: hidden;
}

.case-v2-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* --- Content --- */

.case-v2-section + .case-v2-section {
    margin-top: 48px;
}

.case-v2-section {
    scroll-margin-top: 100px;
    min-width: 0;
    max-width: 100%;
}

.case-v2-heading {
    margin: 0 0 20px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-heading--spaced {
    margin-top: 48px;
}

.case-v2-prose {
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    min-width: 0;
    max-width: 100%;
}

.case-v2-prose .article-body__gallery,
.case-v2-prose .article-body__gallery-item-wrap,
.case-v2-prose .article-body__text-image {
    margin: 24px 0;
}

.case-v2-prose h2,
.case-v2-prose h3,
.case-v2-prose h4,
.case-v2-prose h5,
.case-v2-prose h6 {
    margin: 0 0 16px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

.case-v2-prose p {
    margin: 0 0 20px;
}

.case-v2-prose p:last-child {
    margin-bottom: 0;
}

.case-v2-prose ul:not(.styled-list),
.case-v2-accordion__panel-inner ul:not(.styled-list),
.case-v2-review__text ul:not(.styled-list) {
    list-style-type: disc;
    margin: 20px 0 20px 1.6rem;
    padding-left: 1rem;
}

.case-v2-prose ol,
.case-v2-accordion__panel-inner ol,
.case-v2-review__text ol {
    margin: 20px 0 20px 1.6rem;
    padding-left: 1rem;
}

.case-v2-prose ul:not(.styled-list) li,
.case-v2-prose ol li,
.case-v2-accordion__panel-inner ul:not(.styled-list) li,
.case-v2-accordion__panel-inner ol li,
.case-v2-review__text ul:not(.styled-list) li,
.case-v2-review__text ol li {
    margin-bottom: 6px;
}

.case-v2-prose ul:not(.styled-list) li:last-child,
.case-v2-prose ol li:last-child,
.case-v2-accordion__panel-inner ul:not(.styled-list) li:last-child,
.case-v2-accordion__panel-inner ol li:last-child,
.case-v2-review__text ul:not(.styled-list) li:last-child,
.case-v2-review__text ol li:last-child {
    margin-bottom: 0;
}

.case-v2-prose ul:not(.styled-list) li::marker,
.case-v2-accordion__panel-inner ul:not(.styled-list) li::marker,
.case-v2-review__text ul:not(.styled-list) li::marker {
    color: var(--case-v2-accent);
}

.case-v2-prose ol li::marker,
.case-v2-accordion__panel-inner ol li::marker,
.case-v2-review__text ol li::marker {
    font-weight: 600;
    color: var(--case-v2-text);
}

.case-v2-prose .styled-list {
    margin: 0 0 20px;
    padding-left: 0;
}

.case-v2-prose .case-v2-table-wrap,
.case-v2-prose--metrics .case-v2-table-wrap {
    margin: 20px 0;
}

.case-v2-prose a {
    color: var(--case-v2-accent);
    text-decoration: underline;
}

.case-v2-prose a:hover {
    color: var(--case-v2-text);
}

.case-v2-disclaimer {
    color: var(--case-v2-accent);
}

.case-v2-section--intro .case-v2-prose p:first-child {
    margin-bottom: 25px;
}

.case-v2-section--intro .case-v2-disclaimer {
    margin-bottom: 0;
}

/* --- Client card --- */

.case-v2-client-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 30px;
    padding: 20px;
    border-radius: 27px;
    background: linear-gradient(46deg, #fc8327 0%, #f8a630 100%);
}

.case-v2-client-card__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.case-v2-client-card__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 94px;
    padding: 10px;
    border-radius: 17px;
    background-color: #fff;
}

.case-v2-client-card__brand img {
    display: block;
    max-width: 212px;
    height: auto;
}

.case-v2-client-card__site {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 10px;
    border-radius: 17px;
    background-color: #fff;
}

.case-v2-client-card__site a,
.case-v2-client-card__site-link {
    cursor: pointer;
}

.case-v2-client-card__site a {
    color: var(--case-v2-accent);
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    transition: color 0.2s ease;
}

.case-v2-client-card__site a:hover {
    color: var(--case-v2-text);
}

.case-v2-client-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-start;
}

.case-v2-client-card__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 31px;
    padding: 10px 25px;
    border-radius: 17px;
    background: var(--case-v2-card-white-overlay);
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.case-v2-client-card__divider {
    width: 0;
    margin: 0;
    border-left: 1px dashed #fff;
}

.case-v2-client-card__right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #fff;
}

.case-v2-client-card__niche-title {
    margin: 0 0 20px;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-client-card__niche-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-client-card__niche-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.case-v2-client-card__niche-icon {
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.case-v2-client-card__niche-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Table --- */

.case-v2-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 20px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 transparent;
}

.case-v2-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.case-v2-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.case-v2-table-wrap::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 4px;
}

.case-v2-table {
    display: inline-block;
    width: max-content;
    min-width: 100%;
    overflow: hidden;
    border: 1px solid #b3b3b3;
    border-radius: 27px;
    background-color: #fff;
    vertical-align: top;
}

.case-v2-table__grid {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}

.case-v2-table__cell {
    padding: 12px 24px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    vertical-align: middle;
    background-color: #fff;
    white-space: nowrap;
}

.case-v2-table__grid th.case-v2-table__cell,
.case-v2-table__grid td.case-v2-table__cell {
    min-height: 65px;
    height: 65px;
}

.case-v2-table__grid th.case-v2-table__cell:not(:first-child),
.case-v2-table__grid td.case-v2-table__cell:not(:first-child) {
    border-left: 1px dotted #b3b3b3;
}

.case-v2-table__grid th.case-v2-table__cell:first-child,
.case-v2-table__grid td.case-v2-table__cell:first-child {
    padding-left: 30px;
}

.case-v2-table__grid th.case-v2-table__cell:last-child,
.case-v2-table__grid td.case-v2-table__cell:last-child {
    padding-right: 30px;
}

.case-v2-table__cell--head {
    background-color: #ffe6d7;
}

.case-v2-table__row--alt .case-v2-table__cell {
    background-color: #f6f6f6;
}

.case-v2-table__cell--value {
    font-weight: 600;
}

/* --- Chart --- */

.case-v2-chart {
    margin: 0;
}

.case-v2-chart .cases__item-chart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.case-v2-chart .cases__item-chart-inner ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-chart .cases__item-chart-wrap {
    position: relative;
    min-height: 280px;
    max-height: 360px;
    padding: 24px 20px 20px;
    border: 5px solid #fff;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.case-v2-chart .cases__item-chart {
    width: 100% !important;
    height: 100% !important;
}

/* --- Results grid --- */

.case-v2-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 47px 20px;
    margin-top: 48px;
}

.case-v2-results-grid__title {
    margin: 0 0 30px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-results-grid__text {
    margin: 0;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

/* --- Media --- */

.case-v2-media {
    margin: 48px 0 0;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 27px;
}

.case-v2-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* --- Stages accordion --- */

.case-v2-stages {
    margin-top: 48px;
}

.case-v2-stages .case-v2-heading {
    margin-bottom: 30px;
}

.case-v2-accordion {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.case-v2-accordion__item.is-open {
    display: block;
}

.case-v2-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 128px;
    margin: 0;
    padding: 0 18px 0 22px;
    border: 0;
    border-radius: 27px;
    background: linear-gradient(46deg, #fc8327 0%, #f8a630 100%);
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.case-v2-accordion__trigger--with-lead {
    align-items: center;
    padding: 20px 18px 20px 22px;
}

.case-v2-accordion__head {
    flex: 1 1 auto;
    min-width: 0;
}

.case-v2-accordion__trigger--with-lead .case-v2-accordion__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-v2-accordion__title {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-accordion__lead {
    display: block;
    max-width: 655px;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.case-v2-accordion__icon {
    flex: 0 0 50px;
    align-self: center;
    width: 50px;
    height: 50px;
}

.case-v2-accordion__icon-img {
    display: none;
    width: 50px;
    height: 50px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.case-v2-accordion__item.is-open .case-v2-accordion__icon-img--expanded {
    display: block;
}

.case-v2-accordion__item:not(.is-open) .case-v2-accordion__icon-img--collapsed {
    display: block;
}

.case-v2-accordion__panel-wrap {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transition:
        grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

.case-v2-accordion__item.is-open .case-v2-accordion__panel-wrap {
    grid-template-rows: 1fr;
    margin-top: 10px;
    opacity: 1;
    pointer-events: auto;
}

.case-v2-accordion__panel {
    overflow: hidden;
    min-height: 0;
}

.case-v2-accordion__panel-inner {
    min-height: 127px;
    padding: 20px 22px 24px;
    border-radius: 27px;
    background-color: #f8f8f8;
    box-sizing: border-box;
    transform: translateY(-8px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-v2-accordion__item.is-open .case-v2-accordion__panel-inner {
    transform: translateY(0);
}

.case-v2-accordion__panel-inner p {
    margin: 0;
    max-width: 655px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .case-v2-accordion__panel-wrap,
    .case-v2-accordion__panel-inner,
    .case-v2-accordion__icon-img {
        transition: none;
    }

    .case-v2-accordion__panel-inner {
        transform: none;
    }
}

.case-v2-review-wrap {
    margin-top: 0;
}

.case-v2-summary {
    margin-top: 0;
}

.case-v2-summary .case-v2-heading {
    margin-bottom: 15px;
}

.case-v2-summary__intro {
    margin-bottom: 20px;
}

.case-v2-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 21px;
}

.case-v2-summary-card {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 100px;
    padding: 20px 24px 20px 40px;
    border-radius: 17px;
    background: var(--case-v2-stat-gradient);
}

.case-v2-summary-card:nth-child(2) {
    background: linear-gradient(175deg, #fff2e8 0%, #ffdcbf 100%);
}

.case-v2-summary-card:nth-child(3) {
    background: linear-gradient(182deg, #fff2e8 0%, #ffdcbf 100%);
}

.case-v2-summary-card__icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
}

.case-v2-summary-card__icon--metrics {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
}

.case-v2-summary-card__icon img {
    display: block;
    width: 100%;
    height: auto;
}

.case-v2-summary-card__text {
    margin: 0;
    color: #000;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

/* --- Review --- */

.case-v2-section--review {
    scroll-margin-top: 100px;
}

.case-v2-review {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    min-height: 400px;
    padding: 20px;
    border-radius: 27px;
    background: linear-gradient(46deg, #1a1919 0%, #494949 100%);
}

.case-v2-review__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 359px;
    padding: 21px 20px 24px;
    border-radius: 17px;
    background-color: #404040;
}

.case-v2-review__photo {
    width: 150px;
    height: 157px;
    overflow: hidden;
    border-radius: 50%;
}

.case-v2-review__photo img {
    display: block;
    width: 130%;
    max-width: none;
    height: 130%;
    margin: -8% 0 0 -15%;
    object-fit: cover;
}

.case-v2-review__name {
    margin: 16px 0 0;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.case-v2-review__role {
    margin: 30px 0 0;
    color: #b9b9b9;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.case-v2-review__content {
    min-width: 0;
    padding-top: 0;
}

.case-v2-review__title {
    margin: 0 0 10px;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-review__text {
    color: #b9b9b9;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.case-v2-review__text p {
    margin: 0 0 20px;
}

.case-v2-review__text p:last-child {
    margin-bottom: 0;
}

/* --- Team --- */

.case-v2-team .case-v2-heading {
    margin-bottom: 20px;
}

.case-v2-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.case-v2-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 372px;
    padding: 30px 27px 51px;
    border-radius: 22px;
    background-color: #f8f8f8;
    text-align: center;
}

.case-v2-team-card__photo {
    box-sizing: border-box;
    width: 186px;
    height: 186px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
}

.case-v2-team-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.case-v2-team-card__name {
    margin: 15px 0 0;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-team-card__role {
    margin: 10px 0 0;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Other cases --- */

.case-v2-other__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.case-v2-other__title {
    margin: 0;
}

.case-v2-other__nav {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.case-v2-other__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(141deg, #fc8327 0%, #f8a630 100%);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.case-v2-other__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.case-v2-other__nav-btn::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 22px;
    background: url(../../img/case-v2/other-cases-nav-chevron.png) no-repeat 0 0;
}

.case-v2-other__nav-btn--next::after {
    transform: scaleX(-1);
}

.case-v2-other__viewport {
    overflow: hidden;
    width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: case-v2-other;
}

.case-v2-other__track {
    display: flex;
    gap: 20px;
    width: max-content;
    transition: transform 0.35s ease;
    will-change: transform;
}

.case-v2-other-card {
    display: flex;
    flex: 0 0 calc((100cqw - 40px) / 3);
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    background-color: #f8f8f8;
}

.case-v2-other-card__media {
    overflow: hidden;
    border-radius: 7px;
    aspect-ratio: 383 / 190;
}

.case-v2-other-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-v2-other-card__title {
    margin: 11px 0 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.case-v2-other-card__title a {
    color: var(--case-v2-text);
    text-decoration: none;
}

.case-v2-other-card__title a:hover,
.case-v2-other-card__title a:focus-visible {
    color: var(--case-v2-accent);
}

.case-v2-other-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 20px;
    color: var(--case-v2-accent);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.case-v2-other-card__more::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 17px;
    background: url(../../img/case-v2/other-cases-more-arrow.png) no-repeat 0 2px;
}

.case-v2-other-card__more:hover .case-v2-other-card__more-text,
.case-v2-other-card__more:focus-visible .case-v2-other-card__more-text {
    text-decoration: underline;
}

/* --- Sidebar --- */

.case-v2-sidebar__block + .case-v2-sidebar__block {
    margin-top: 30px;
}

.case-v2-sidebar__frame {
    padding: 0;
    border: 1px dashed var(--case-v2-accent);
    border-radius: 27px;
}

.case-v2-sidebar__inner {
    margin: 10px;
    padding: 20px;
    border-radius: 22px;
    background-color: var(--case-v2-sidebar-bg);
}

.case-v2-sidebar__title {
    margin: 0 0 20px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-sidebar__link {
    display: flex;
    align-items: center;
    min-height: 75px;
    padding: 10px 25px;
    border-radius: 12px;
    background-color: var(--case-v2-pill-bg);
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.case-v2-sidebar__link:hover {
    color: var(--case-v2-accent);
}

.case-v2-sidebar__inner--tech {
    padding: 30px 20px 20px;
}

.case-v2-sidebar__title--tech {
    margin-bottom: 20px;
}

.case-v2-sidebar__tech-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-sidebar__tech-item {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 60px;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: #fff;
}

.case-v2-sidebar__tech-icon {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
}

.case-v2-sidebar__tech-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-v2-sidebar__tech-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.case-v2-sidebar__top {
    flex: 0 0 auto;
}

.case-v2-sidebar__sticky {
    position: relative;
    flex: 0 0 auto;
    margin-top: 30px;
}

.case-v2-sidebar__block--social {
    width: 100%;
}

.case-v2-sidebar__block--social.is-viewport-fixed {
    position: fixed;
    top: var(--case-v2-social-top, 24px);
    left: var(--case-v2-social-left, auto);
    width: var(--case-v2-social-width, 100%);
    z-index: 20;
}

.case-v2-sidebar__block--social.is-viewport-stopped {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.case-v2-sidebar__block--social.is-viewport-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.case-v2-sidebar__inner--social {
    padding: 20px;
    background: linear-gradient(180deg, #f8f8f8 0%, #f8eadf 100%);
}

.case-v2-sidebar__social-title {
    margin: 0 0 15px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.case-v2-sidebar__social-text {
    margin: 0 0 20px;
    color: var(--case-v2-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.case-v2-sidebar__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-v2-sidebar__social-link {
    display: block;
    line-height: 0;
}

.case-v2-sidebar__social-link img {
    display: block;
    width: 60px;
    height: 60px;
}

@media (max-width: 1400px) {
    .case-v2-body__grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    }

    .case-v2-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-v2-client-card {
        grid-template-columns: 1fr;
    }

    .case-v2-client-card__divider {
        width: 100%;
        height: 0;
        margin: 0;
        border-left: 0;
        border-top: 1px dashed #fff;
    }

    .case-v2-client-card__niche-title {
        font-size: 20px;
    }

    .case-v2-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-v2-other-card {
        flex: 0 0 calc((100cqw - 20px) / 2);
    }
}

@media (max-width: 1023px) {
    .case-v2-body__grid {
        grid-template-columns: 1fr;
    }

    .case-v2-main,
    .case-v2-sidebar,
    .case-v2-team,
    .case-v2-other {
        grid-column: auto;
        grid-row: auto;
    }

    .case-v2-sidebar {
        align-self: auto;
        margin-top: 0;
    }

    .case-v2-sidebar__block--social.is-viewport-fixed,
    .case-v2-sidebar__block--social.is-viewport-stopped {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        width: auto;
    }

    .case-v2-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-v2-review {
        grid-template-columns: 1fr;
    }

    .case-v2-review__panel {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .case-v2-nav {
        margin-bottom: 0;
    }

    .case-v2-main {
        gap: 24px;
    }

    .case-v2-nav__list {
        grid-template-columns: 1fr;
    }

    .case-v2-nav__link {
        min-height: 48px;
        font-size: 18px;
    }

    .case-v2-body {
        padding-bottom: 48px;
    }

    .case-v2-section + .case-v2-section {
        margin-top: 32px;
    }

    .case-v2-heading {
        margin-bottom: 16px;
        font-size: 26px;
    }

    .case-v2-heading--spaced {
        margin-top: 32px;
    }

    .case-v2-prose {
        font-size: 16px;
    }

    .case-v2-client-card {
        padding: 16px;
    }

    .case-v2-table {
        border-radius: 20px;
    }

    .case-v2-table__cell {
        padding: 10px 16px;
        font-size: 16px;
    }

    .case-v2-table__grid th.case-v2-table__cell,
    .case-v2-table__grid td.case-v2-table__cell {
        height: 56px;
        min-height: 56px;
    }

    .case-v2-table__grid th.case-v2-table__cell:first-child,
    .case-v2-table__grid td.case-v2-table__cell:first-child {
        padding-left: 16px;
    }

    .case-v2-table__grid th.case-v2-table__cell:last-child,
    .case-v2-table__grid td.case-v2-table__cell:last-child {
        padding-right: 16px;
    }

    .case-v2-sidebar__title {
        font-size: 20px;
    }

    .case-v2-other {
        margin-top: 32px;
    }

    .case-v2-other-card {
        flex: 0 0 100cqw;
        padding: 24px;
    }

    .case-v2-other-card__title {
        font-size: 20px;
    }

    .case-v2-other-card__more {
        font-size: 16px;
    }

    .case-v2-sidebar__inner--social {
        padding: 24px;
    }

    .case-v2-sidebar__social-title {
        font-size: 20px;
    }

    .case-v2-sidebar__social-text {
        font-size: 16px;
    }

    .case-v2-results-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 32px;
    }

    .case-v2-results-grid__title,
    .case-v2-results-grid__text,
    .case-v2-accordion__panel-inner p {
        font-size: 16px;
    }

    .case-v2-media {
        margin-top: 32px;
    }

    .case-v2-stages {
        margin-top: 32px;
    }

    .case-v2-stages .case-v2-heading {
        margin-bottom: 24px;
    }

    .case-v2-accordion {
        gap: 24px;
    }

    .case-v2-accordion__trigger,
    .case-v2-accordion__trigger--with-lead {
        min-height: 96px;
        padding: 16px 16px 16px 20px;
    }

    .case-v2-accordion__title {
        font-size: 20px;
    }

    .case-v2-accordion__lead,
    .case-v2-accordion__panel-inner p {
        font-size: 16px;
    }

    .case-v2-accordion__icon,
    .case-v2-accordion__icon-img {
        width: 40px;
        height: 40px;
    }

    .case-v2-accordion__panel-inner {
        min-height: 0;
        padding: 16px 20px 20px;
    }

    .case-v2-team {
        margin-top: 32px;
    }

    .case-v2-summary-cards {
        grid-template-columns: 1fr;
    }

    .case-v2-summary-card {
        min-height: 0;
        padding: 20px;
    }

    .case-v2-summary-card__text,
    .case-v2-review__text {
        font-size: 16px;
    }

    .case-v2-review {
        min-height: 0;
        padding: 16px;
    }

    .case-v2-review__title,
    .case-v2-review__name {
        font-size: 20px;
    }

    .case-v2-team__grid {
        grid-template-columns: 1fr;
    }

    .case-v2-team-card {
        min-height: 0;
    }

    .case-v2-team-card__photo {
        width: 150px;
        height: 150px;
    }

    .case-v2-team-card__name {
        font-size: 20px;
    }
}

/* --- Offer --- */

.cases--single-v2 .offer--cases {
}

@media (max-width: 1400px) {
    .cases--single-v2 .offer--cases {
    }
}

@media (max-width: 1023px) {
    .cases--single-v2 .offer--cases {
    }
}

@media (max-width: 767px) {
    .cases--single-v2 .offer--cases {
    }
}
