/* Кейс «Пан Чемодан» — главная секция (hero) */

.pan-chemodan-page {
    margin: 0;
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111111;
    background: #ffffff;
}

.pan-chemodan-main {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.pan-hero {
    background: #ffffff;
    padding: clamp(96px, 16vh, 160px) clamp(16px, 4vw, 40px) clamp(72px, 12vh, 140px);
    box-sizing: border-box;
    min-height: clamp(560px, 78vh, 920px);
    display: flex;
    align-items: center;
}

.pan-hero__inner {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3.5vw, 48px);
    box-sizing: border-box;
}

.pan-hero__visual {
    flex: 1 1 34%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pan-hero__visual--left {
    justify-content: flex-end;
}

.pan-hero__visual--right {
    justify-content: flex-start;
}

.pan-hero__phones {
    display: block;
    width: 100%;
    max-width: min(100%, 560px);
    height: auto;
    object-fit: contain;
}

.pan-hero__center {
    flex: 0 1 auto;
    max-width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(20px, 3vw, 32px);
    padding: 0 clamp(8px, 2vw, 16px);
    box-sizing: border-box;
}

.pan-hero__logo {
    display: block;
    width: clamp(260px, 38vw, 460px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.pan-hero__lead {
    margin: 0;
    font-size: clamp(16px, 1.9vw, 20px);
    font-weight: 500;
    line-height: 1.45;
    color: #111111;
}

.pan-chemodan-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .pan-hero {
        min-height: clamp(480px, 70vh, 820px);
    }

    .pan-hero__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pan-hero__center {
        order: -1;
        flex: 1 1 100%;
        max-width: 560px;
    }

    .pan-hero__visual {
        flex: 1 1 45%;
        max-width: 460px;
    }

    .pan-hero__visual--left {
        justify-content: center;
    }

    .pan-hero__visual--right {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .pan-hero {
        padding-top: 56px;
        padding-bottom: clamp(48px, 10vw, 72px);
        min-height: 0;
    }

    .pan-hero__inner {
        flex-direction: column;
        gap: clamp(28px, 7vw, 40px);
    }

    .pan-hero__center {
        order: -1;
    }

    .pan-hero__visual {
        flex: 1 1 auto;
        max-width: min(100%, 400px);
    }
}

/* ——— Отзыв: фон + «облачки» ——— */

.pan-testimonial {
    position: relative;
    background-color: #2a2a2a;
    background-image: url("../images/cases/Pan Chemodan/back.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 40px) clamp(56px, 9vw, 112px);
    box-sizing: border-box;
}

.pan-testimonial--back4 {
    background-image: url("../images/cases/Pan Chemodan/back4.webp");
}

.pan-testimonial__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(24px, 4vw, 48px);
    min-height: clamp(400px, 52vh, 700px);
    box-sizing: border-box;
}

.pan-testimonial__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pan-testimonial__col--left {
    justify-content: flex-start;
    align-items: flex-start;
    flex: 0 1 40%;
    max-width: 56%;
    min-width: 0;
}

.pan-testimonial__col--right {
    justify-content: flex-end;
    align-items: flex-end;
    flex: 1 1 0;
    min-width: 0;
    margin-top: auto;
}

.pan-testimonial__bubble {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    max-width: min(100%, 740px);
    padding: clamp(22px, 3.5vw, 36px) clamp(22px, 3.5vw, 36px) clamp(20px, 3vw, 28px);
}

.pan-testimonial__bubble--dark {
    background: #333333;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    padding: clamp(28px, 4.5vw, 48px) clamp(28px, 4.5vw, 48px) clamp(24px, 3.5vw, 36px);
}

.pan-testimonial__bubble--dark .pan-testimonial__q-title {
    font-size: clamp(16px, 1.65vw, 20px);
    font-weight: 400 !important;
    margin-bottom: clamp(22px, 3vw, 34px);
}

.pan-testimonial__bubble--light {
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.pan-testimonial__bubble--tail-left {
    margin-bottom: 16px;
}

.pan-testimonial__bubble--tail-left::after {
    content: "";
    position: absolute;
    left: clamp(20px, 4vw, 36px);
    bottom: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #333333 transparent transparent transparent;
}

.pan-testimonial__bubble--tail-right {
    margin-bottom: 16px;
}

.pan-testimonial__bubble--tail-right::after {
    content: "";
    position: absolute;
    right: clamp(20px, 4vw, 36px);
    bottom: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: rgba(255, 255, 255, 0.92) transparent transparent transparent;
}

.pan-testimonial__q-title {
    margin: 0 0 clamp(18px, 2.5vw, 28px);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.pan-testimonial__quote {
    margin: 0 0 clamp(18px, 2.5vw, 26px);
    font-size: clamp(16px, 1.65vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: inherit;
}

.pan-testimonial__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pan-testimonial__meta--light {
    margin-top: 8px;
}

.pan-testimonial__meta--dark {
    justify-content: flex-end;
    text-align: right;
}

.pan-testimonial__logo-ico {
    object-fit: contain;
    flex-shrink: 0;
}

.pan-testimonial__logo-ico--fittin {
    width: clamp(68px, 12vw, 96px);
    height: auto;
}

.pan-testimonial__logo-ico--pan {
    width: clamp(60px, 30vw, 180px);
    height: auto;
}

@media (max-width: 900px) {
    .pan-testimonial__inner {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .pan-testimonial__col--right {
        margin-top: 0;
        align-items: stretch;
    }

    .pan-testimonial__col--left,
    .pan-testimonial__col--right {
        align-items: stretch;
    }

    .pan-testimonial__bubble {
        max-width: 90%;
    }

    .pan-testimonial__bubble--dark {
        max-width: 90%;
        width: 100%;
    }

    .pan-testimonial__col--left {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .pan-testimonial__col--right .pan-testimonial__bubble {
        margin-left: auto;
    }

    .pan-testimonial__meta--dark {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .pan-testimonial__bubble--tail-left::after,
    .pan-testimonial__bubble--tail-right::after {
        bottom: -8px;
        border-width: 8px 8px 0 8px;
    }
}

/* ——— Метрики (фон back2, цифры Poiret One) ——— */

.pan-metrics {
    position: relative;
    background-color: #121212;
    background-image: url("../images/cases/Pan Chemodan/back2.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto min(100%, 820px);
    padding: clamp(56px, 10vw, 120px) clamp(18px, 4vw, 48px);
    box-sizing: border-box;
    overflow: hidden;
}

.pan-metrics::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(18, 18, 18, 0.2) 0%,
        rgba(18, 18, 18, 0.45) 32%,
        rgba(18, 18, 18, 0.82) 52%,
        rgba(18, 18, 18, 0.94) 70%,
        rgba(18, 18, 18, 0.97) 100%
    );
}

.pan-metrics__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: min(100%, 60%);
    padding: 0 20px;
    box-sizing: border-box;
}

.pan-metrics__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pan-metrics__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: clamp(4px, 0.8vw, 8px);
}

.pan-metrics__row + .pan-metrics__row {
    margin-top: clamp(28px, 5vw, 56px);
}

.pan-metrics__label {
    flex: 0 1 auto;
    max-width: min(100%, 420px);
    margin: 0;
    font-size: clamp(20px, 1.2vw, 32px);
    font-weight: 400;
    line-height: 1.38;
    color: #f2f2f2;
}

.pan-metrics__guide {
    flex: 1 1 auto;
    min-width: 12px;
    height: 0;
    align-self: flex-end;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.32);
}

.pan-metrics__value {
    flex: 0 0 auto;
    font-family: "Poiret One", cursive, sans-serif;
    font-size: clamp(42px, 6.8vw, 96px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #ffffff;
}

@media (max-width: 900px) {
    .pan-metrics {
        background-size: auto min(100%, 560px);
        background-position: left 40% center;
    }

    .pan-metrics__inner {
        width: 100%;
        padding-left: 0;
        max-width: 640px;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .pan-metrics {
        background-position: left -20% center;
        background-size: auto 120%;
    }

    .pan-metrics__row {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .pan-metrics__label {
        flex: 1 1 100%;
        max-width: none;
    }

    .pan-metrics__guide {
        flex: 1 1 auto;
        margin-bottom: 6px;
        min-width: 0;
    }

    .pan-metrics__value {
        margin-left: auto;
    }
}

/* ——— Цитата на фоне back3 (оформление как светлое «облако» секции отзыва) ——— */

.pan-quote-wide {
    position: relative;
    background-color: #3a3a3a;
    background-image: url("../images/cases/Pan Chemodan/back3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    box-sizing: border-box;
}

.pan-quote-wide__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(360px, 48vh, 620px);
    box-sizing: border-box;
}

.pan-quote-wide__bubble {
    width: 100%;
    max-width: min(100%, 720px);
    margin-left: auto;
}

@media (max-width: 900px) {
    .pan-quote-wide__inner {
        min-height: clamp(320px, 42vh, 520px);
    }

    .pan-quote-wide__bubble {
        max-width: min(100%, 640px);
    }
}

@media (max-width: 480px) {
    .pan-quote-wide {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .pan-quote-wide__inner {
        min-height: 0;
    }
}

/* ——— Особенности проекта + бегущая строка ——— */

.pan-features {
    background-color: #f5f5f5;
}

.pan-features__content {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(56px, 10vw, 112px) clamp(18px, 4vw, 40px) 0;
    box-sizing: border-box;
}

.pan-features__title {
    margin: 0;
    text-align: center;
    font-family: "Gilroy", serif !important;
    font-weight: 500 !important;
    font-size: clamp(32px, 4.2vw, 48px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #111111;
}

.pan-features__subtitle {
    margin: clamp(20px, 3vw, 32px) auto clamp(28px, 4.5vw, 48px);
    text-align: left;
    font-size: clamp(22px, 2.15vw, 32px);
    font-weight: 500 !important;
    line-height: 1.35;
    color: #111111;
}

.pan-features__figure {
    margin: 0;
    padding: 0;
}

.pan-features__blog {
    display: block;
    width: 100%;
    margin: 0 auto;
    height: auto;
    vertical-align: bottom;
}

.pan-features__ticker {
    overflow: hidden;
    background-color: #ffffff;
    padding: clamp(12px, 2.8vw, 18px) 0;
}

.pan-features__ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: pan-features-ticker 42s linear infinite;
}

/* Один повтор паттерна был уже короче ширины окна → справа «дыра» перед второй копией; удлиняем полосу (несколько чанков подряд) */
.pan-features__ticker-segment {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(20px, 2.75vw, 36px);
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    white-space: nowrap;
}

.pan-features__ticker-chunk {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: 1.15em;
}

.pan-features__ticker-dot {
    display: inline-block;
    font-size: 0.7em;
    line-height: 1;
    transform: translateY(-0.06em);
}

@keyframes pan-features-ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pan-features__ticker {
        overflow: visible;
    }

    .pan-features__ticker-track {
        animation: none;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 clamp(16px, 4vw, 32px);
        box-sizing: border-box;
        row-gap: 10px;
    }

    .pan-features__ticker-segment[aria-hidden="true"] {
        display: none;
    }

    .pan-features__ticker-segment > .pan-features__ticker-chunk:nth-child(n + 2) {
        display: none;
    }

    .pan-features__ticker-segment {
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
        text-align: center;
        row-gap: 8px;
        max-width: 100%;
    }
}

/* ——— Видео-баннеры (текст + banner.webp) ——— */

.pan-banner-split {
    background: #ffffff;
    overflow: visible;
}

.pan-banner-split__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pan-banner-split__title {
    position: relative;
    z-index: 2;
    max-width: min(440px, 52%);
    margin: 0 0 clamp(-20px, -3.5vw, -10px);
    padding: 0;
    text-align: left;
    font-size: clamp(22px, 2.15vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    color: #111111;
}

.pan-banner-split__figure {
    position: relative;
    z-index: 1;
    align-self: center;
    width: min(72vw, 720px);
    max-width: min(720px, 100%);
    margin: 0 auto;
    padding: 0;
    min-width: 0;
}

.pan-banner-split__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .pan-banner-split__inner {
        padding-bottom: clamp(40px, 7vw, 64px);
    }

    .pan-banner-split__title {
        max-width: none;
        margin-bottom: clamp(16px, 3vw, 28px);
    }

    .pan-banner-split__figure {
        align-self: center;
        width: 100%;
        max-width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .pan-banner-split__inner {
        padding-top: 40px;
        padding-bottom: 48px;
    }
}

/* ——— Схема по цветам (color.webp, горизонтальный скролл если не помещается) ——— */

.pan-color-scheme {
    background-color: #ffffff;
}

.pan-color-scheme__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 100px) 20px clamp(56px, 9vw, 112px);
    box-sizing: border-box;
}

.pan-color-scheme__title {
    margin: 0 0 clamp(24px, 3.8vw, 40px);
    text-align: left;
    font-size: clamp(22px, 2.15vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    color: #111111;
}

/* max(100%, …px): узкий контент → полоса ≥ минимальной ширины макета, появляется overflow-x; широкий контент → 100%, без скролла */
.pan-color-scheme__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    touch-action: pan-x pan-y pinch-zoom;
    margin: 0;
    text-align: center;
}

.pan-color-scheme__figure {
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.pan-color-scheme__img {
    display: block;
    width: max(100%, 920px);
    height: auto;
}

@media (max-width: 480px) {
    .pan-color-scheme__inner {
        padding-bottom: clamp(44px, 10vw, 72px);
    }
}

/* ——— Категория и бренд в карточке (screen-left / screen-right) ——— */

.pan-card-sections {
    background-color: #efefef;
}

.pan-card-sections__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 100px) 20px clamp(56px, 9vw, 112px);
    box-sizing: border-box;
}

.pan-card-sections__title {
    margin: 0 0 clamp(32px, 5vw, 56px);
    font-size: clamp(22px, 2.15vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    color: #111111;
}

.pan-card-sections__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 3.5vw, 48px);
}

.pan-card-sections__left {
    margin: 0;
    padding: 0;
    flex: 0 1 40%;
    max-width: min(300px, 40vw);
    min-width: 0;
}

.pan-card-sections__phone {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.pan-card-sections__right-scroll {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    touch-action: pan-x pan-y pinch-zoom;
    text-align: right;
}

.pan-card-sections__strip {
    display: inline-block;
    vertical-align: top;
    width: max(100%, 520px);
    max-width: none;
    height: auto;
}

@media (max-width: 700px) {
    .pan-card-sections__row {
        flex-direction: column;
        align-items: center;
        gap: clamp(20px, 4.5vw, 32px);
    }

    .pan-card-sections__left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
        order: 0;
    }

    .pan-card-sections__right-scroll {
        flex: 0 1 auto;
        width: 100%;
        align-self: stretch;
        text-align: center;
        order: 1;
        overflow-x: visible;
        scrollbar-gutter: auto;
    }

    .pan-card-sections__strip {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .pan-card-sections__inner {
        padding-bottom: clamp(44px, 10vw, 72px);
    }
}

/* ——— Сравнение товаров: десктоп — screens.webp + плашка; ≤700px — screens2.webp, плашка над картинкой ——— */

.pan-compare {
    background-color: #efefef;
}

.pan-compare__inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 88px) 20px clamp(72px, 12vw, 140px);
    box-sizing: border-box;
}

.pan-compare__plate {
    position: absolute;
    z-index: 1;
    right: clamp(12px, 3.5vw, 32px);
    bottom: clamp(24px, 5vw, 56px);
    width: min(580px, 52%);
    min-width: min(100%, 280px);
    max-width: calc(100% - clamp(24px, 5vw, 48px));
    background-color: #4a4a4a;
    padding: clamp(28px, 4.5vw, 44px) clamp(20px, 3.5vw, 40px) clamp(28px, 4.5vw, 44px) clamp(22px, 4vw, 56px);
    box-sizing: border-box;
}

/* По мере сужения окна плашку делаем уже (якорь справа) — текст остаётся справа от зоны перекрытия мокапом */
@media (max-width: 1180px) and (min-width: 769px) {
    .pan-compare__plate {
        width: min(500px, 48%);
    }

    .pan-compare__visual {
        max-width: min(720px, 88%);
        margin-bottom: clamp(-76px, -10vw, -36px);
    }
}

@media (max-width: 1040px) and (min-width: 769px) {
    .pan-compare__plate {
        width: min(420px, 45%);
        padding: clamp(24px, 4vw, 40px) clamp(18px, 3.2vw, 36px) clamp(24px, 4vw, 40px) clamp(20px, 3.6vw, 48px);
    }

    .pan-compare__visual {
        max-width: min(620px, 86%);
        margin-bottom: clamp(-68px, -9vw, -32px);
    }
}

@media (max-width: 920px) and (min-width: 769px) {
    .pan-compare__plate {
        width: min(360px, 42%);
        padding: clamp(22px, 3.8vw, 36px) clamp(16px, 3vw, 32px) clamp(22px, 3.8vw, 36px) clamp(18px, 3.2vw, 44px);
    }

    .pan-compare__visual {
        max-width: min(540px, 84%);
        margin-bottom: clamp(-60px, -8vw, -28px);
    }
}

@media (max-width: 820px) and (min-width: 769px) {
    .pan-compare__plate {
        width: min(300px, 39%);
        padding: clamp(20px, 3.5vw, 32px) clamp(14px, 2.8vw, 28px) clamp(20px, 3.5vw, 32px) clamp(16px, 3vw, 40px);
    }

    .pan-compare__text {
        font-size: clamp(14px, 1.65vw, 17px);
    }

    .pan-compare__visual {
        max-width: min(460px, 82%);
        margin-bottom: clamp(-52px, -7vw, -24px);
    }
}

.pan-compare__img--compact {
    display: none !important;
}

.pan-compare__text {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

.pan-compare__visual {
    position: relative;
    z-index: 2;
    margin: 0 20px clamp(-84px, -11vw, -36px);
    padding: 0;
    max-width: min(100%, 900px);
}

.pan-compare__img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1124px) {
    .pan-compare__visual {
        margin: 0 20px clamp(-84px, -11vw, -36px);
        max-width: min(100%, 700px);
    }
}
@media (max-width: 860px) {
    .pan-compare__visual {
        margin: 0 20px clamp(-84px, -11vw, -36px);
        max-width: min(100%, 600px);
    }
}

@media (max-width: 768px) {
    .pan-compare__inner {
        padding-bottom: clamp(40px, 8vw, 72px);
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pan-compare__plate {
        position: relative;
        right: auto;
        bottom: auto;
        order: 2;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: clamp(22px, 4vw, 32px) clamp(18px, 4vw, 24px);
    }

    .pan-compare__visual {
        order: 1;
        max-width: 100%;
        margin-bottom: 0;
    }
}

/* screens2.webp только при ширине до 700px включительно */
@media (max-width: 700px) {
    .pan-compare__img--main {
        display: none;
    }

    .pan-compare__img--compact {
        display: block !important;
        width: 260px;
        max-width: 260px;
        margin: 0 auto;
    }

    .pan-compare__plate {
        order: 1;
        margin-top: 0;
        margin-bottom: clamp(12px, 3vw, 20px);
    }

    .pan-compare__visual {
        order: 2;
    }
}

/* ——— Заключительная цитата (белая секция, серая плашка, логотип наполовину за плашкой) ——— */

.pan-closing-quote {
    background-color: #ffffff;
    padding: clamp(40px, 6vw, 88px) clamp(18px, 4vw, 40px) clamp(64px, 12vw, 112px);
    box-sizing: border-box;
}

.pan-closing-quote__inner {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.pan-closing-quote__plaque {
    position: relative;
    background-color: #f4f4f4;
    padding: clamp(28px, 5vw, 52px) clamp(22px, 4vw, 48px) clamp(48px, 9vw, 96px);
    box-sizing: border-box;
}

.pan-closing-quote__row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(16px, 3vw, 36px);
}

.pan-closing-quote__marks {
    flex-shrink: 0;
    padding-top: 4px;
}

.pan-closing-quote__mark-svg {
    display: block;
    width: clamp(52px, 12vw, 83px);
    height: auto;
    aspect-ratio: 83 / 64;
}

.pan-closing-quote__blockquote {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
}

.pan-closing-quote__text {
    margin: 0;
    font-size: clamp(16px, 1.55vw, 20px);
    font-weight: 400;
    line-height: 1.55;
    color: #111111;
}

.pan-closing-quote__brand {
    position: absolute;
    right: clamp(16px, 4vw, 44px);
    bottom: 0;
    transform: translateY(50%);
}

.pan-closing-quote__logo {
    display: block;
    max-width: min(320px, 68vw);
    width: auto;
    height: auto;
}

@media (max-width: 560px) {
    .pan-closing-quote__row {
        flex-direction: column;
        gap: clamp(12px, 3vw, 20px);
    }

    .pan-closing-quote__marks {
        padding-top: 0;
    }
}

/* ——— Обратная связь (фон back5, форма справа без подложки) ——— */

.pan-contact {
    position: relative;
    background-color: #1a1a1a;
    background-image: url("../images/cases/Pan Chemodan/back5.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.pan-contact__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    min-height: min(72vh, 680px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 48px) clamp(18px, 4vw, 40px);
    box-sizing: border-box;
}

.pan-contact__panel {
    flex: 0 0 auto;
    width: min(520px, 100%);
    max-width: 520px;
    box-sizing: border-box;
    padding: clamp(8px, 1.5vw, 16px) 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pan-contact__title {
    margin: 0 0 clamp(22px, 4vw, 34px);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 0, 0, 0.28);
}

.pan-contact__form {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pan-contact__field {
    margin-bottom: clamp(14px, 2.6vw, 20px);
}

.pan-contact__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px 12px;
    font-family: inherit;
    font-size: clamp(15px, 1.45vw, 17px);
    line-height: 1.3;
    color: #222222;
    background-color: #ffffff;
    border: none;
    border-radius: 2px;
    border-bottom: 1px solid #c8c8c8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pan-contact__input::placeholder {
    color: #777777;
}

.pan-contact__input:focus {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 2px;
}

.pan-contact__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: clamp(6px, 2vw, 12px) 0 clamp(20px, 3.5vw, 28px);
    font-size: clamp(12px, 1.35vw, 14px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.pan-contact__consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000000;
}

.pan-contact__link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pan-contact__link:hover {
    text-decoration: none;
}

.pan-contact__submit {
    align-self: flex-start;
    padding: 14px clamp(36px, 8vw, 52px);
    font-family: inherit;
    font-size: clamp(15px, 1.45vw, 17px);
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    background-color: #000000;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pan-contact__submit:hover:not(:disabled) {
    background-color: #222222;
}

.pan-contact__submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .pan-contact__inner {
        min-height: min(58vh, 520px);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        padding: clamp(24px, 5vw, 40px) clamp(18px, 4vw, 28px);
    }

    .pan-contact__panel {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-left: 0;
    }
}
