
        :root {
            --bg-main: #0b0b0f;
            --bg-card: #17171f;
            --accent: #ffcc33;
            --accent-soft: #ffe88a;
            --text-main: #f5f5f7;
            --text-muted: #9b9ba4;
            --border-soft: #2a2a35;
        }
        

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: radial-gradient(circle at top, #26263a 0, #050509 45%, #020207 100%);
            color: var(--text-main);
        }
        .hero-title-font {
            font-family: "Playfair Display", "Times New Roman", serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .page {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: none;
            margin: 0;
        }



        /* HEADER */

        .header {
            position: sticky;
            top: 0;
            z-index: 50;
            backdrop-filter: blur(12px);
            background: linear-gradient(to bottom, rgba(5,5,10,0.95), rgba(5,5,10,0.7));
            border-bottom: 1px solid rgba(255,255,255,0.02);
        }

        .header-inner {
            max-width: 1800px;
            margin: 0 auto;
            padding: 14px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .logo-block {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .logo-main {
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .logo-sub {
            font-size: 12px;
            color: var(--text-muted);
        }

        .nav {
            display: flex;
            gap: 100px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .nav a {
            padding-bottom: 3px;
           
        }

        .nav a:hover {
            border-color: var(--accent);
            color: var(--accent-soft);
        }

        .toast {
            position: fixed;
            left: 50%;
            top: 20px;
            transform: translateX(-50%);
            z-index: 1500;

            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(40, 167, 69, 0.95);
            color: #ffffff;
            font-size: 13px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);

            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
            transform-origin: top center;
        }

        .toast.visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* HERO */

        .hero {
            padding: 20px 0 46px;
            position: relative;
            overflow: hidden;
        }
        .hero-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;    /* чтобы не мешал кликам/selection */
}
        .hero-kicker {
            font-size: 30px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--accent-soft);
            margin-bottom: 20px;
            text-align: center;
        }

        .hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.scroll-down.arrows {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;         /* расстояние между словом и первой стрелкой */
  text-decoration: none;
}
.scroll-down.arrows label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
}

.scroll-down.arrows span {
  position: absolute;
  display: inline-block;
  top: 20px;
  height: 25px;
  width: 2px;
  
  animation: animateArrows 1.25s infinite linear;
}
@keyframes animateArrows {
  0%, 40%, 100% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
}
.scroll-down.arrows span:first-child {
  top: 35px;
  animation-delay: 0s;
}
.scroll-down.arrows span:nth-child(2) {
  top: 35px;
  animation-delay: .33s;
}
.scroll-down.arrows span:last-child {
  top:  50px;
  animation-delay: .66s;
}
.scroll-down.arrows span::before,
.scroll-down.arrows span::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;
  border-radius: 3px;
}
.scroll-down.arrows span::before {
  transform-origin: bottom;
  transform: rotate(-45deg);
}
.scroll-down.arrows span::after {
  transform-origin: bottom;
  margin-left: -1px;
  transform: rotate(45deg);
}

        .hero-title {
    font-size: 86px;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

        .hero-title span {
            color: var(--accent);
        }

        .hero-text {
            margin-top: 40px;
            font-size: 20px;
            line-height: 1.6;
            color: white;
            letter-spacing: 0.12em;
            text-align: center;
        }

        .hero-character {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        .hero-title-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    text-align: center;
}

        .hero-portrait-frame {
    width: 400px;
    max-width: 100%;
    padding-top: 105px;
    margin: -120px auto 0; /* ключевая строка: подбери -120 под вкус */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    position: relative;
    z-index: 3;          /* персонаж поверх текста */
    pointer-events: none; /* чтобы не мешал выделять текст */
}

        .hero-portrait-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.85));
}

/* ===== БЕГУЩИЕ СТРОКИ МЕЖДУ МАНИФЕСТОМ И РАМКАМИ ===== */

.marquee-section {
    width: 100%;
    margin: 0;
    padding: 45px 0px 45px;
    overflow: hidden;
    /* фон всего блока */
     background-color: white;
}

/* одна строка (верхняя или нижняя) */
.stroke {
    position: relative;
    width: auto;
    overflow: hidden;
    white-space: nowrap;
    
    display: inline-flex;
   
}

/* верхняя — анимируем в одну сторону */
.stroke--top {
    animation: marquee-left 40s linear infinite;
}

/* нижняя — в другую сторону */
.stroke--bottom {
    animation: marquee-right 40s linear infinite;
}

/* сам текст бегущей строки */
.stroke__item {
    flex-shrink: 0;
    padding: 8px 2.5rem 8px 0;
    font-size: 70px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 1000;
    /* ЦВЕТ ТЕКСТА МЕНЯЕШЬ ЗДЕСЬ */
    color: #020207; /* или var(--accent-soft) / #f5f5f7 и т.д. */
}

/* нам больше НЕ нужно анимировать .stroke__item */
/* .stroke__item--reverse можно оставить пустым,
   если не используешь где-то ещё */

/* Ключевые кадры: двигаем ВЕСЬ .stroke (в нём две копии текста) */

/* верхняя строка: текст “уезжает” влево, в правый край заезжает вторая копия */
@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* .stroke состоит из двух одинаковых кусков → -50% = сдвиг на один кусок */
        transform: translateX(-50%);
    }
}

/* нижняя строка: в обратную сторону */
@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}


        .hero-scroll-hint {
            padding: 10px 24px;
            font-size: 11px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: white;
        }

        .hero-badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .hero-badge {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            padding: 6px 12px;
            background: rgba(255,255,255,0.02);
        }
.hero-bg-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-network canvas {
  width: 100%;
  height: 100%;
  display: block;
}
        .hero-highlight {
            border-color: var(--accent);
            background: radial-gradient(circle at top left, rgba(255,204,51,0.18), transparent 60%);
        }

        .hero-panel {
            border-radius: 20px;
            border: 1px solid var(--border-soft);
            background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%), #09090f;
            padding: 20px 18px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }

        .hero-stat {
            font-size: 12px;
        }

        .hero-stat-label {
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .hero-stat-value {
            font-weight: 600;
            font-size: 16px;
        }

        .hero-stat-sub {
            color: var(--accent-soft);
            font-size: 11px;
            margin-top: 2px;
        }

        @media (max-width: 960px) {
            .hero {
                padding-top: 36px;
                padding-bottom: 36px;
                min-height: auto;
            }
            .hero-inner {
                grid-template-columns: minmax(0, 1fr);
                gap: 32px;
            }
            .hero-copy {
                max-width: none;
            }
            .hero-title {
                font-size: 34px;
            }
            .hero-portrait-frame {
                width: 260px;
            }
        }

        @media (max-width: 640px) {
            .hero-title {
                font-size: 30px;
                letter-spacing: 0.1em;
            }
        }
.hero-inner,
.hero-scroll-hint,
.hero-text {
    position: relative;
    z-index: 2;
}
        /* SECTION GENERIC */


        .section {
            margin-top: 0;
            padding: 40px 0; /* единый вертикальный отступ для всех секций */
        }

        .section p {
            margin: 0 0 1em; /* нормальный интервал между абзацами внутри */
        }

        .section p:last-child {
            margin-bottom: 0; /* чтобы ничего не вылезало наружу */
        }
        /* секции, которые участвуют в параллаксе */
        .section-header {
            padding: 10px 24px;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
            
        }

        .section-title {
            color: #020207;
            font-size: 34px;
            font-weight: 1000;
            text-transform: uppercase;
            letter-spacing: 0.16em;

        }
        
        #manifest .manifest-title-anim {
            position: relative;
            z-index: 1;
            font-size: 60px;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            font-weight: 900;

            /* центрируем */
            text-align: center;
            width: 100%;

            /* ОДНА гифка – та же, что и в примере */
            color:black;
            background-repeat: repeat;
            background-size: cover;
            background-position: center center;

            /* КЛЮЧ: фон привязан к экрану → эффект параллакса */
            background-attachment: fixed;

        }
        #manifest .section-header {
            justify-content: center;
        }

        .section-subtitle {
            font-size: 20px;
            color: var(--text-muted);
        }

        .section-tagline {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--accent-soft);
        }

        .filters-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 16px 24px;
            margin-bottom: 18px;
            padding: 10px 32px 0px;
            background: white;
        }

        .filter-group {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .filter-group-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            color: black;
            margin-right: 4px;
        }

        .filter-chip {
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    padding: 5px 12px;
    font-size: 13px;
    letter-spacing: .12em;
    cursor: pointer;
    color: #020207;
    transition: all .18s ease;
}

.filter-chip:hover {
    border-color: #111;
    background: #eee;
}

/* активное состояние — как .frame-pill.is-active */
.filter-chip--active {
    border-color: #020207;
    background: #020207;
    color: #fff;
}

        /* MANIFEST (ПОКА ЗАГЛУШКА) */
        #hero.slide{
            
                background-size: cover;
    background-position: center center;
        }

        #manifest.section {
    padding-bottom: 0;
}

#frames.section {
    padding-top: 0;
}
        #manifest.slide{
            background-color: white;

            background-size: cover;
            background-position: center center;

                }
        #frames.slide{
            background-color: white;
                background-size: cover;
    background-position: center center;
    padding: 0px 32px 0px;

        }

        
.frames-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
    gap: 40px;
    padding: 0 24px 0px;
    align-items: stretch;
    color: #020207;
}

@media (max-width: 960px) {
    .frames-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.frames-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.frames-left-title {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
}

.frame-info-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: 10px;
}

.frame-info-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 18px;
    margin-bottom: 4px;
}

.frame-info-desc {
    color: #444;
}

.frame-info-meta {
    font-size: 13px;
    color: #777;
}

/* динамичный блок инфо под превью */
.frame-meta-box {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 16px;
}

.frame-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.frame-meta-label {
    font-weight: 500;
    color: #555;
}

.frame-meta-value {
    text-align: right;
}

/* правая часть — конфигуратор */

.frames-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.frame-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    font-size: 13px;
}

.frame-controls-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #777;
    margin-right: 4px;
}

/* «пилюльки» наверху */
.frame-pill {
    border-radius: 999px;
    border: 1px solid #ccc;
    padding: 5px 12px;
    font-size: 13px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all .18s ease;
}

.frame-pill:hover {
    border-color: #111;
    background: #eee;
}

.frame-pill.is-active {
    border-color: #020207;
    background: #020207;
    color: #fff;
}

/* кнопки формата */
.frame-format-btn {
    border-radius: 16px;
    border: 1px solid #ccc;
    background: #fdfdfd;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: all .18s ease;
}

.frame-format-btn.is-active {
    border-color: #020207;
    background: #020207;
    color: #fff;
}

.frame-format-btn.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* индикатор цвета */
.frame-color-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px dashed #ccc;
    font-size: 12px;
}

.frame-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.35);
    background: var(--frame-color, #111);
}

/* зона превью */

.frame-preview-shell {
    position: relative;
    border-radius: 30px;
    padding: 26px 56px;
    background: #ffffff;
    color: #fff;
    overflow: hidden;
    min-height: 260px;
}

@media (max-width: 640px) {
    .frame-preview-shell {
        padding: 20px 32px;
    }
}

.frame-preview-title {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .16em;
    opacity: .7;
}

.frame-preview-inner {
    --frame-color: #111;
    position: relative;
    margin: 30px auto 10px;
    max-width: 520px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.frame-preview-inner.is-vertical {
    aspect-ratio: 3/4;
}

/* сама рама */
.frame-preview-frame {
    position: relative;
    width: 100%;
    height: 100%;

    /* ВАЖНО: рамка = цвет, который меняется стрелками */
    background: var(--frame-color);

    box-shadow: 0 12px 20px rgba(0,0,0,.25);
}

/* белая подложка */
.frame-preview-mat {
    position: absolute;
    inset: 18px;
    background: #f7f7f7;
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* один/несколько постеров */
.frame-preview-posters {
    width: 50%;
    height: 50%;
    display: flex;
    gap: 10px;
}

.frame-preview-posters.is-vertical-layout {
    flex-direction: column;
}

.frame-preview-poster {
    flex: 1;
    background: #000000;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* стрелки смены цвета */
.frame-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 120px;

    border: none;
    background: transparent;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    opacity: 0.8;
    transition: opacity 0.18s ease, transform 0.18s ease;
    
    /* СЕРЫЙ ЦВЕТ ПО УМОЛЧАНИЮ */
    color: #999999;
}

.frame-arrow--left {
    left: 12px;
}

.frame-arrow--right {
    right: 12px;
    transform: translateY(-50%) rotate(180deg); /* та же галочка, повернули */
}

.frame-arrow-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* hover — чуть крупнее и ЧЁРНЫЙ цвет */
.frame-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    color: #000000; /* при наведении — чёрный */
}

.frame-arrow--right:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.05);
}

/* На телефонах делаем стрелки поменьше */
@media (max-width: 640px) {
    .frame-arrow {
        width: 50px;
        height: 90px;
    }
}

/* загрузка своей картинки */
.frame-upload {
    margin-top: 12px;
    font-size: 12px;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.frame-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.frame-upload-label input {
    display: none;
}

        #catalog.slide{
            background-color: white;
            padding: 50px 32px 0px;
        }
        #context.slide{
            background-color: white;
            padding: 0px 32px 0px;
            min-height: auto;
        }

        /* МАНИФЕСТ — аккуратная журнальная колонка */
/* МАНИФЕСТ — одна аккуратная колонка текста */
.manifest-text {
    max-width: 1300px;          /* ширина блока поменьше, чтобы легче читать */
    margin: 40px auto 0px;    /* отступ сверху и снизу, центр по ширине */
    font-size: 18px;
    line-height: 1.9;
    color: #111;
}

/* абзацы чуть “дышат” */
.manifest-text p {
    margin: 0 0 1.25em;
}

/* первый абзац — как вступление */
.manifest-text p:first-child {
    font-size: 19px;
    line-height: 2;
    font-weight: 500;
}

/* маленькие настройки под мобильные */
@media (max-width: 768px) {
    .manifest-text {
        max-width: 100%;
        margin: 28px auto 52px;
        padding: 0 16px;
        font-size: 16px;
        line-height: 1.8;
    }

    .manifest-text p:first-child {
        font-size: 17px;
        line-height: 1.9;
    }
}

        .slide {
            min-height: 100vh;           /* каждая секция на высоту экрана */
            background-size: cover;
            background-position: center center;
            background-attachment: scroll;
        }
/* для секции "Рамки" не нужна высота на весь экран */
#frames.slide {
    min-height: auto;      /* или min-height: 0; */
}

        /* при скролле к секции будет добавляться этот класс */
        .slide.fix-it {
            background-attachment: scroll;
        }

        /* CATALOG */

        .catalog-group {
            margin-top: 20px;
            padding: 0px 32px 0px;
        }

        .catalog-group-title {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

    .catalog-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr)); /* 12-колоночная сетка */
    gap: 24px;
    align-items: start;
}

/* базовая карточка */
.poster-card {
    position: relative;
    cursor: pointer;
    display: block;
    overflow: hidden;
    grid-column: span 4; /* дефолт на всякий случай */
}

.poster-card--square {
    grid-column: span 2;  /* квадратный формат */
}

.poster-card--horizontal {
    grid-column: span 3;  /* пошире, как в макете */
}

.poster-card--vertical {
    grid-column: span 2;  /* уже, высокая карточка */
}


      .poster-card-inner {
    position: relative;
    width: 100%;
}

        /* фронт карточки (как сейчас) */

        .poster-front {
            position: relative;
      
        }

.poster-image-wrapper {
    height: 260px;              /* подбери под свой макет: 240–280px */
    background: #f3f4f6;        /* светло-серый как на эскизе */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
}

/* картинка всегда целиком */
.poster-card img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;        /* ничего не режем */
}

        .poster-front-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .poster-title {
            margin-top: 4px;
            font-size: 13px;
        }

        .poster-price {
            margin-top: 2px;
            font-size: 12px;
            color: var(--accent-soft);
        }
        .poster-card.sold {
            cursor: default;
            opacity: 0.6;
        }

        .poster-card.reserved {
            opacity: 0.85;
        }

        .poster-status {
            position: absolute;
            top: 16px;
            left: 16px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            pointer-events: none;
        }

        .poster-status--sold {
            background: rgba(200, 50, 50, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .poster-status--reserved {
            background: rgba(255, 184, 60, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* === ОВЕРЛЕЙ В СТИЛЕ CODEPEN-КАРТОЧКИ === */

        .poster-overlay {
            position: absolute;
            inset: 0;

            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 1fr 2fr 2fr 1fr;
            background: rgba(77, 77, 77, .9);
            color: #FEF5DF; /* тот же цвет, что $bg в Pen */
            opacity: 0;
            transition: all 0.5s;

            font-family: 'Playfair Display', serif;
        }
        .overlay-row {
            padding-left: 20px;
            letter-spacing: 3px;
        }
        .overlay-head {
            font-size: 30px;
            line-height: 40px;
            transform: translateY(40px);
            transition: all 0.7s;
            position: relative; /* чтобы hr позиционировался от блока */
        }
        .overlay-head .overlay-title {
            margin: 0;
        }

        .overlay-head hr {
            display: block;
            width: 0;
            border: none;
            border-bottom: solid 2px #FEF5DF;
            position: absolute;
            bottom: 0;
            left: 20px;
            transition: all .5s;
        }
        .poster-overlay-title {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .overlay-price {
            font-size: 22px;
            line-height: 10px;
            font-weight: bold;
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.7s;
        }
        .overlay-cart {
            font-size: 12px;
            opacity: 0;
            letter-spacing: 1px;
            font-family: 'Lato', sans-serif;
            transform: translateY(40px);
            transition: all 0.7s;
            display: flex;
            align-items: center;
        }
        .overlay-cart span {
            margin-left: 0; /* у нас нет иконки, можно 0 */
        }

        /* ===== ХОВЕР: ТОЧЬ В ТОЧЬ ПОВЕДЕНИЕ ===== */

        .poster-card:hover .poster-overlay {
            opacity: 1;
        }
        /* заголовок выезжает снизу */
        .poster-card:hover .poster-overlay .overlay-head {
            transform: translateY(0px);
        }

        /* линия увеличивается с задержкой 0.4s */
        .poster-card:hover .poster-overlay .overlay-head hr {
            width: 75px;
            transition-delay: 0.4s;
        }

        /* цена — с задержкой 0.3s, становится видимой */
        .poster-card:hover .poster-overlay .overlay-price {
            transform: translateY(0px);
            transition-delay: 0.3s;
            opacity: 1;
        }

        /* «кнопка» — с задержкой 0.6s */
        .poster-card:hover .poster-overlay .overlay-cart {
            transform: translateY(0px);
            transition-delay: 0.6s;
            opacity: 1;
        }
.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.cart-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}
        /* у проданных не открываем модалку, но hover-эффект можно немного приглушить */

        .poster-card.sold:hover {
            transform: translateY(0);
            box-shadow: none;
            border-color: var(--border-soft);
        }

        /* SUCCESS MESSAGE */

        .alert-success {
            padding: 10px 15px;
            background: rgba(40, 167, 69, 0.08);
            border: 1px solid rgba(40, 167, 69, 0.4);
            color: #9be7a1;
            border-radius: 8px;
            margin-bottom: 18px;
            font-size: 13px;
        }

        /* CONTEXT (ЗАГЛУШКА ПОД ВЫСТАВКИ/ПРОЕКТЫ) */

        .context-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            font-size: 13px;
            padding: 12px 24px 14px;
        }

        .context-title {
            font-size: 13px;
            margin-bottom: 4px;
        }

        .context-meta {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .context-link {
            font-size: 11px;
            color: var(--accent-soft);
        }

        /* FOOTER */

        .footer {
            background-color: white;
            padding-top: 16px;
            font-size: 12px;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .footer-links {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        .footer-link {
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 2px;
        }

        /* WHATSAPP FLOATING BUTTON */

        .wa-floating {
            position: fixed;
            right: 22px;
            bottom: 22px;
            z-index: 1200;
        }

        .wa-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            background: #25d366;
            color: #02140a;
            font-size: 13px;
            border: none;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(0,0,0,0.7);
        }

        .wa-icon {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }

        .poster-status {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            pointer-events: none;
        }

        .poster-status--sold {
            background: rgba(200, 50, 50, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .poster-status--reserved {
            background: rgba(255, 184, 60, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* MODAL POPUP */

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1000;
        }
        .modal.open {
            display: block;
        }
        .modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .modal.open .modal-overlay {
            opacity: 1;
        }
        .modal-content {
           position: relative;
            max-width: 880px;
            margin: 40px auto;
            background: #080810;
            border-radius: 18px;
            padding: 20px;
            display: flex;
            gap: 20px;
            border: 1px solid var(--border-soft);
            box-shadow: 0 18px 45px rgba(0,0,0,0.85);
            color: var(--text-main);

            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .modal.open .modal-content {
            opacity: 1;
            transform: translateY(0);
        }
        .modal-image-wrapper {
            flex: 1 1 52%;
            border-radius: 14px;
            overflow: hidden;
            background: #11111a;
        }
        .modal-image-wrapper img {
            width: 100%;
            display: block;
            object-fit: cover;
        }
.modal-info {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    padding: 18px 4px 6px;
    gap: 10px;
}

/* Заголовок */
.modal-title {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

/* Цена */
.modal-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-soft);
    margin: 0;
    
}

.modal-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px; /* чтобы скролл не прижимался к тексту */
}

.modal-add-to-cart {
    margin-top: auto;                /* прижимает кнопку к низу блока */
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 10px 24px rgba(0,0,0,0.65);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.modal-add-to-cart:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.85);
}

.modal-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,0.7);
}

        .modal-close {
            position: absolute;
            right: 10px;
            top: 10px;
            border: none;
            background: transparent;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted);
        }
        .modal-close:hover {
            color: var(--text-main);
        }
        .modal-form label {
            display: block;
            font-size: 12px;
            margin-top: 10px;
            color: var(--text-muted);
        }
        .modal-form input,
        .modal-form textarea {
            width: 100%;
            padding: 6px 8px;
            margin-top: 4px;
            box-sizing: border-box;
            font-size: 13px;
            border-radius: 6px;
            border: 1px solid var(--border-soft);
            background: #05050b;
            color: var(--text-main);
        }
        .modal-form textarea {
            resize: vertical;
        }
        .modal-form button[type="submit"] {
            margin-top: 14px;
            padding: 8px 14px;
            font-size: 13px;
            cursor: pointer;
            border-radius: 999px;
            border: none;
            background: var(--accent);
            color: #111111;
            font-weight: 600;
        }
        .modal-form button[type="submit"]:hover {
            background: #ffd75d;
        }

        @media (max-width: 960px) {
            .hero {
                grid-template-columns: minmax(0, 1fr);
            }
            .hero-panel {
                grid-template-columns: repeat(2, 1fr);
            }
            .manifest-card {
                grid-template-columns: minmax(0, 1fr);
            }
            .catalog-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .context-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .header-inner {
                flex-direction: column;
                align-items: flex-start;
            }
            .nav {
                flex-wrap: wrap;
            }
            .hero-panel {
                grid-template-columns: minmax(0, 1fr);
            }
            .catalog-grid {
                grid-template-columns: minmax(0, 1fr);
            }
            .context-grid {
                grid-template-columns: minmax(0, 1fr);
            }
            .container {
                padding-inline: 16px;
            }
        }

        .marquee-section.paused .stroke--top,
.marquee-section.paused .stroke--bottom {
    animation-play-state: paused;
}

/* ==== FLOATING CART BUTTON ==== */

.cart-floating {
    position: fixed;
    right: 32px;
    bottom: 40px;          /* выше WhatsApp-кнопки */
    z-index: 1400;
}

.cart-floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cart-floating-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-floating-btn.has-items {
    background: var(--accent);
}

/* ==== CART MODAL ==== */

.cart-modal .modal-content {
    max-width: 520px;
    width: 90%;
}

.cart-modal-inner {
    padding: 18px 20px 20px;
}

.cart-title {
    font-size: 18px;
    margin: 0 0 14px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.cart-item-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    background: #222;
}

.cart-item-title {
    font-size: 13px;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-summary {
    margin-bottom: 16px;
}

.cart-total {
    font-size: 15px;
    font-weight: 500;
}

.cart-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
}

.cart-form input,
.cart-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    background: #000;
    color: #fff;
    font-size: 13px;
}

.cart-submit {
    margin-top: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 500;
    cursor: pointer;
}

.cart-submit:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 640px) {
    .cart-floating {
        right: 16px;
        bottom: 96px;
    }
}

.cart-modal .modal-content {
    max-width: 960px;
    margin: 40px auto;
    padding: 0;                 /* убираем внутренний паддинг базовой модалки */
    background: transparent;    /* фон зададим оболочке */
    border-radius: 34px;
    border: none;
    box-shadow: none;
    display: block;
}

.cart-modal-shell {
    display: grid;
    grid-template-columns: 3fr 2fr;  /* левая шире, правая уже */
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}

/* ==== ЛЕВАЯ ЧАСТЬ – КОРЗИНА ==== */

.cart-left {
    background: #e4e4e7;        /* светло-серый, как у тебя */
    padding: 32px 40px 32px;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-heading {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 260px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.cart-item-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    background: #777;
}

.cart-item-title {
    font-size: 14px;
    margin-bottom: 2px;
}
.cart-item-price {
    font-size: 14px;
    font-weight: 500;
}

.cart-divider {
    border: none;
    border-top: 1px solid #222;
    margin: 8px 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 20px;
    font-weight: 500;
    margin-top: 8px;
}

.cart-total-label {
    font-size: 20px;
}

/* ==== ПРАВАЯ ЧАСТЬ – ФОРМА ==== */

.cart-right {
    background: #6a6a6f;         /* тёмно-серый, как справа у тебя */
    color: #f6f6f6;
    padding: 32px 32px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-form-title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-modal-close {
    right: 20px;
    top: 20px;
    font-size: 26px;
    color: #f6f6f6;
}

.cart-modal-close:hover {
    color: #ffffff;
}

/* поля формы */

.cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.cart-form label {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-form input,
.cart-form textarea {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #f5f5f5;
    color: #111;
    font-size: 13px;
    outline: none;
}

.cart-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* кнопка – как розовая “пилюля” внизу справа */

.cart-submit {
    align-self: flex-end;
    margin-top: auto;          /* прижимает к низу правой части */
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: #ff9da5;       /* нежно-розовый */
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-submit:hover {
    background: #ffb6bc;
}

/* адаптив: на мобильном — одна колонка */

@media (max-width: 840px) {
    .cart-modal-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .cart-right {
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.cart-item-remove:hover {
    color: #000;}

/* === ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК-ФИЛЬТРОВ === */
/* Тип рамки, Формат, фильтры каталога по цене/формату/теме */

.frame-pill,
.frame-format-btn,
.filter-chip {
    border-radius: 999px;
    border: 1px solid #ccc;
    padding: 5px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: #f5f5f5;
    cursor: pointer;
    color: #020207;
    transition: all .18s ease;
}

/* hover ТОЛЬКО для неактивных (и не disabled) */
.frame-pill:not(.is-active):hover,
.frame-format-btn:not(.is-active):not(.is-disabled):hover,
.filter-chip:not(.filter-chip--active):hover {
    border-color: #111;
    background: #eee;
}

/* АКТИВНОЕ СОСТОЯНИЕ — одно для всех */
.frame-pill.is-active,
.frame-format-btn.is-active,
.filter-chip--active {
    border-color: #020207;
    background: #020207;
    color: #fff;
}

/* disabled только для кнопок формата рамки */
.frame-format-btn.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.cart-modal .modal-content {
    max-width: 960px;      /* корзина чуть шире карточного модала */
    display: block;        /* вместо flex, чтобы внутри работала наша grid-сетка */
}

/* Внутренняя двухколоночная сетка */
.cart-modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .cart-modal-shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Левая часть корзины — список позиций */
.cart-left {
    background: #11111a;
    border-radius: 14px 0 0 14px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-heading {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #f5f5f7;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-empty {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Одна позиция в корзине */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(8, 8, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent-soft);
}

/* Кнопка удаления позиции */
.cart-item-remove {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    align-self: flex-start;
    padding: 2px 4px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cart-item-remove:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-1px);
}

/* Итоговая сумма */
.cart-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 16px 0 0px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.cart-total-label {
    color: var(--text-muted);
     margin-bottom: 10px;
}

.cart-total-value {
    font-weight: 500;
    font-size: 20px;
    color:white;
}

/* Правая часть — форма оформления заказа */
.cart-right {
    position: relative;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), #080810);
    border-radius: 14px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

/* Крестик закрытия остаётся таким же, просто фиксируем, чтобы он не уехал */
.cart-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
}

/* Заголовок формы */
.cart-form-title {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #f5f5f7;
}

/* Поля формы */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-form label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-form input,
.cart-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    box-sizing: border-box;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: #05050b;
    color: var(--text-main);
}

.cart-form textarea {
    resize: vertical;
    min-height: 70px;
}

/* Кнопка отправки — как .modal-add-to-cart */
.cart-submit {
    margin-top: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.cart-submit:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.85);
}

.cart-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* === ДОПРАВКА КОРЗИНЫ === */

/* 1. Убрать пробел между левой и правой частью */
.cart-modal-shell {
    gap: 0;
}

/* 2. Названия картин — белые и жирные */
.cart-item-title {
    color: #ffffff;
    font-weight: 600;
}

/* 3. Итоговая цена: не показывать цифры (но JS продолжит их считать) */

/* 4. Правая часть не полупрозрачная, сплошной фон */
.cart-right {
    background: #080810;
    border-radius: 0 14px 14px 0; 
}

/* 5. Поля формы — белые */
.cart-form input,
.cart-form textarea {
    background: #ffffff;
    color: #000000;
    border: 1px solid #dddddd;
}


.cart-form {
    display: flex;
    flex-direction: column;
    gap: 14px;                 /* отступ между полями */
}

.cart-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #f5f5f7;            /* подписи светлые на тёмном фоне */
}

/* сами поля */
.cart-form input,
.cart-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 13px;

    background: #f5f5f5;       /* светло-серый фон, как в примере */
    color: #111111;

    border-radius: 10px;
    border: 1px solid #e5e7eb; /* мягкая серая рамка */
    outline: none;
}

/* textarea чуть меньше скруглён, повыше */
.cart-form textarea {
    min-height: 90px;
    border-radius: 12px;
    resize: vertical;
}

/* плейсхолдеры — более светлый серый */
.cart-form input::placeholder,
.cart-form textarea::placeholder {
    color: #9ca3af;
}

/* фокус: чуть темнее рамка и белый фон */
.cart-form input:focus,
.cart-form textarea:focus {
    background: #ffffff;
    border-color: #9ca3af;
}
.context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    font-size: 13px;
    padding: 12px 24px 14px;
}


/* === CONTEXT: горизонтальный скролл и «карточки» === */

/* контейнер — горизонтальная лента */
.context-grid {
    display: flex;
    gap: 18px;
    padding: 12px 24px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* верхняя картинка */
.context-card-media {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* нижняя текстовая часть */
.context-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.context-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.context-meta {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.context-link {
    font-size: 12px;
    margin-top: 6px;
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* чуть уже на мобильных */
@media (max-width: 640px) {
    .context-card {
        flex: 0 0 260px;
    }
}


.footer {
    background: #020207;
    color: #f5f5f7;
    padding: 32px 32px 40px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

/* левый крупный текст */
.footer > div:first-child {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 600;
    max-width: 520px;
}

/* блок ссылок справа */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
}

/* сами ссылки */
.footer-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(245,245,247,0.35);
    text-underline-offset: 3px;
    padding-bottom: 1px;
}

.footer-link:hover {
    color: var(--accent-soft);
    border-color: var(--accent-soft);
}

/* адаптив — на телефонах в столбик и по центру */
@media (max-width: 720px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 20px 32px;
    }

    .footer > div:first-child {
        font-size: 18px;
        max-width: none;
    }

    .footer-links {
        align-items: flex-start;
        font-size: 12px;
    }
}

/* === FOOTER: в стиле CodePen, но в твоих цветах === */

.footer {

    padding: 40px 32px 36px;

    background: radial-gradient(circle at top,
        rgba(255, 204, 51, 0.14),
        #020207 55%);
    color: var(--text-main);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    position: relative;
    overflow: hidden;
}

/* «крупная» фраза слева — теперь как главный заголовок футера */
.footer > div:first-child {
    max-width: 540px;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 600;
    font-family: "Playfair Display", "Times New Roman", serif;
}

/* тонкая полоска-разделитель по центру, как .separador в CodePen */
.footer::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 26px auto 18px;
    background-color: rgba(245, 245, 247, 0.35);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;   /* всё в одну строку */
    justify-content: center; /* по желанию: по центру */
}

.footer-links span {
    white-space: nowrap; /* не даём кускам переноситься */
}

/* сами ссылки — подчёркивание с анимацией, как в модном UI */
.footer-link {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    padding-bottom: 3px;
}

/* тонкая линия под ссылкой (скрыта по умолчанию) */
.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-soft);
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

/* hover — как в CodePen: лёгкий цвет и проявляющаяся линия */
.footer-link:hover {
    color: var(--accent-soft);
}

.footer-link:hover::after {
    transform: scaleX(1);
}

/* адаптив — на мобильных всё по ширине и чуть меньше шрифт */
@media (max-width: 720px) {
    .footer {
        padding: 0px 20px 32px;
    }

    .footer > div:first-child {
        font-size: 18px;
    }

    .footer-links {
        font-size: 11px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-links span {
        white-space: normal;
    }
}

/* FOOTER LINKS — всегда в одну строку */
.footer-links {
    display: flex;
    flex-direction: row;  /* на всякий случай переопределяем колонку */
    flex-wrap: nowrap;    /* запрет переносов */
    justify-content: center;
    align-items: center;
    gap: 24px;            /* расстояние между пунктами */
}

.footer-links span {
    white-space: nowrap;  /* не даём кускам переноситься на следующую строку */
}

.filter-chip--reset {
        border-color: #020207;
    background: #020207;
    color: #fff;
}

/* ===== FOOTER CONTACTS (как в CodePen ephs23/NeQZGx) ===== */
.footer-social{
  display:flex; gap:12px; align-items:center; justify-content:center;
  margin:0; padding:0; list-style:none;
}

.footer-social-link{
  width:70px; height:70px;
  background:#fff;
  border:2px solid #020207;
  border-radius:50%;
  display:flex;               /* важно для svg */
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  z-index:1;
}

.footer-social-link .icon{
  width:32px;                 /* размер SVG внутри */
  height:32px;
  position:relative;
  z-index:3;
  transition:.5s;
  /* чтобы SVG выглядел как “черная иконка” */
  filter: none;
}

.footer-social-link:hover .icon,
.footer-social-link:focus-visible .icon{
  transform: rotateY(360deg);
  /* чтобы на цветной заливке стал белым, как в CodePen */
  filter: invert(1) brightness(10);
}

.footer-social-link::before{
  content:"";
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  height:100%;
  transition:.5s;
  z-index:2;
}

.footer-social-link:hover::before,
.footer-social-link:focus-visible::before{
  top:0;
}

/* цвета как “бренды” (можешь поменять) */
.footer-social li:nth-child(1) .footer-social-link::before{ background:#dd4b39; } /* email */
.footer-social li:nth-child(2) .footer-social-link::before{ background:#0088cc; } /* telegram */
.footer-social li:nth-child(3) .footer-social-link::before{ background:#25d366; } /* whatsapp */

/* ===== CONTEXT (как CodePen MWgBJpy) ===== */

.context-grid{
  display: flex;
  gap: 28px;
  padding: 12px 24px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.context-card{
  position: relative;
  flex: 0 0 320px;
  scroll-snap-align: start;
  cursor: pointer;
}

.context-card .context-face{
  width: 320px;
  height: 220px;
  transition: 0.5s;
}

/* верхняя часть */
.context-card .context-face.context-face1{
  position: relative;
  background: #020207;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(110px);
}

.context-card:hover .context-face.context-face1{
  background: var(--accent);  /* #ffcc33 */
  transform: translateY(0);
}

.context-card .context-face.context-face1 .context-content{
  opacity: 0.25;
  transition: 0.5s;
  text-align: center;
  padding: 0px;
}

.context-card:hover .context-face.context-face1 .context-content{
  opacity: 1;
}

.context-card .context-face.context-face1 .context-content .context-icon{
  max-width: 110px;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.context-card .context-face.context-face1 .context-content h3{
  margin: 0;
  padding: 0;
  color: #000000;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* нижняя часть */
.context-card .context-face.context-face2{
  position: relative;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 18px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: translateY(-110px);
}

.context-card:hover .context-face.context-face2{
  transform: translateY(0);
}

.context-card .context-face.context-face2 .context-content p{
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.5;
  font-size: 13px;
}

.context-card .context-face.context-face2 .context-content a{
  margin: 14px 0 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  color: #020207;
  padding: 6px 10px;
  border: 1px solid #020207;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-card .context-face.context-face2 .context-content a:hover{
  background: #020207;
  color: #ffffff;
}

/* мобилка */
@media (max-width: 640px){
  .context-card{ flex-basis: 280px; }
  .context-card .context-face{ width: 280px; }
}
/* CONTEXT: заголовок чёрным */
.context-face2 h3 {
    color: #020207; /* чисто чёрный как в остальном сайте */
}


/* CONTEXT: картинка в верхней части без затемнения и на весь блок */
.context-card .context-face.context-face1{
  overflow: hidden;
}

/* контент верхней части растягиваем на весь блок и убираем “иконковый” режим */
.context-card .context-face.context-face1 .context-content{
  width: 100%;
  height: 100%;
  padding: 0 !important;
  opacity: 1 !important;          /* убирает затемнение */
  display: block;
}

/* сама картинка — как cover (заливка) */
.context-card .context-face.context-face1 .context-content .context-icon{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  display: block;
  filter: none !important;        /* убираем любые drop-shadow/фильтры */
}

/* ===== CONTEXT: меньше отступ между заголовком и карточками ===== */
#context .section-header{
  margin-bottom: 6px;     /* было 18px */
  padding-bottom: 0;
}

#context .context-grid{
  padding-top: 0;         /* у тебя сейчас есть padding у grid */
  margin-top: 0;
}

/* ===== CONTEXT: секция/лента увеличивает высоту при раскрытии карточки ===== */
/* даём карточке “запас” в потоке, чтобы высота секции реально росла */
#context .context-card{
  transition: margin-bottom .5s ease;
  margin-bottom: 0;
}

/* при hover добавляем снизу место примерно на высоту раскрытия */

/* =========================
   MOBILE / TABLET ADAPTATION
   вставь в конец style_shop.css
========================= */

/* чуть комфортнее на тач-устройствах */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ---------- <= 960px (планшет/малый ноут) ---------- */
@media (max-width: 960px){
  .header-inner{
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  /* nav не должен разъезжаться с gap:100px */
  .nav{
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .section{
    padding: 28px 0;
  }

  .section-header{
    padding: 10px 14px;
  }

  .section-title{
    font-size: 26px;
    letter-spacing: 0.12em;
  }

  .section-subtitle{
    font-size: 16px;
  }

  /* hero */
  .hero-kicker{
    font-size: 18px;
    margin-bottom: 10px;
  }

  .hero-title{
    font-size: 44px;
    letter-spacing: 0.1em;
  }

  .hero-text{
    margin-top: 18px;
    font-size: 16px;
    letter-spacing: 0.08em;
    padding: 0 14px;
  }

  .hero-portrait-frame{
    width: 280px;
    margin: -70px auto 0;
    padding-top: 70px;
  }

  /* секции с белым фоном у тебя имеют боковые паддинги 32px — на мобиле это много */
  #frames.slide,
  #catalog.slide,
  #context.slide{
    padding-left: 14px;
    padding-right: 14px;
  }

  /* фильтры: убираем <br> внутри filters-bar (у тебя они есть в HTML) */
  .filters-bar br{ display:none; }
  .filters-bar{
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px 12px;
  }
}

/* ---------- <= 640px (телефон) ---------- */
@media (max-width: 640px){

  /* header */
  .logo-main{ font-size: 16px; }
  .logo-sub{ font-size: 11px; }

  .nav{
    font-size: 12px;
    letter-spacing: 0.06em;
    gap: 10px 12px;
  }

  /* hero */
  .hero{
    padding: 14px 0 26px;
  }
  .hero-title{
    font-size: 30px;
    line-height: 0.95;
  }
  .hero-kicker{
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .hero-scroll-hint{
    padding: 8px 14px;
  }

  /* marquee (бегущие строки) — огромный шрифт 70px на телефоне */
  .stroke__item{
    font-size: 34px;
    letter-spacing: 0.12em;
    padding-right: 1.6rem;
  }
  .marquee-section{
    padding: 22px 0;
  }

  /* Manifest */
  #manifest .manifest-title-anim{
    font-size: 34px;
    letter-spacing: 0.10em;
    padding: 0 10px;
  }
  .manifest-text{
    padding: 0 14px;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 22px;
  }

  /* Frames: одна колонка уже есть <=960, но уменьшим внутренние отступы */
  .frames-layout{
    padding: 0 0 0;
    gap: 18px;
  }
  .frame-preview-shell{
    padding: 18px 18px;
    border-radius: 22px;
  }
  .frame-controls{
    gap: 8px 10px;
  }
  .frame-info-list{
    gap: 18px;
    font-size: 14px;
  }

  /* Catalog: вместо 12-колоночной “сложной” сетки — аккуратные 2 колонки */
  .catalog-group{
    padding: 0;
  }
  .catalog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* любые форматы в каталоге на телефоне — по 1 “ячейке” */
  .poster-card,
  .poster-card--square,
  .poster-card--horizontal,
  .poster-card--vertical{
    grid-column: auto;
  }

  /* картинки карточек — пониже, чтобы сетка не была “простынёй” */
  .poster-image-wrapper{
    height: 190px;
    padding: 6px;
  }

  /* overlay на тачах: hover нет — сделаем его менее “обязательным” */
  .poster-overlay{
    opacity: 1;
    background: rgba(77,77,77,.55);
  }
  .overlay-head{
    font-size: 18px;
    line-height: 24px;
  }
  .overlay-price{
    font-size: 16px;
  }

  /* Context: hover-раскрытие на телефоне неудобно — показываем раскрыто сразу */
  .context-card .context-face.context-face1{
    transform: translateY(0) !important;
  }
  .context-card .context-face.context-face2{
    transform: translateY(0) !important;
  }

  /* Footer */
  .footer{
    padding: 10px 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links{
    width: 100%;
    justify-content: flex-start;
  }
  .footer-social-link{
    width: 46px;
    height: 46px;
  }
  .footer-social-link .icon{
    width: 20px;
    height: 20px;
  }

  /* плавающая WhatsApp кнопка — поменьше */
  .wa-floating{
    right: 14px;
    bottom: 14px;
  }
  .wa-button{
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ---------- <= 420px (маленький телефон) ---------- */
@media (max-width: 420px){
  .hero-title{ font-size: 26px; letter-spacing: 0.08em; }
  .stroke__item{ font-size: 28px; }
  .catalog-grid{ grid-template-columns: 1fr; } /* одна колонка — максимально комфортно */
  .poster-image-wrapper{ height: 220px; }
}

/* Mobile spacing fix for "Рамки" и "События" */
@media (max-width: 640px) {

  /* уменьшаем внешний боковой padding секции */
  #frames.slide,
  #context.slide {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* убираем второй (внутренний) padding у заголовка секции */
  #frames .section-header,
  #context .section-header {
    padding: 6px 0 !important;
    margin-bottom: 12px !important;
  }

  /* чуть компактнее типографика */
  #frames .section-title,
  #context .section-title {
    font-size: 22px !important;
    letter-spacing: 0.12em !important;
  }

  #frames .section-subtitle,
  #context .section-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
  }
}
/* Full width секции на мобилке: убираем padding у общего контейнера */
@media (max-width: 640px) {
  main.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* сами секции тоже без боковых паддингов */
  .slide {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* а “нормальные поля” даём только контенту внутри */
  .section-header,
  #manifest .manifest-text,
  #frames .frames-layout,
  #catalog .catalog-layout,
  #context .context-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* Hero: больше заголовок + фото, меньше описание (мобилка) */
@media (max-width: 640px) {

  /* Заголовок "ТИРАЖНАЯ ГРАФИКА / ЯКОВА ЧЕРНИХОВА" */
  #hero .hero-title,
  #hero h1 {
    font-size: clamp(34px, 8vw, 52px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 10px !important;
  }

  /* Фото Чернихова */
  #hero .cher-img,
  #hero .hero-photo,
  #hero img[src*="cher"] {
    width: clamp(220px, 70vw, 360px) !important;
    max-width: 92vw !important;
    height: auto !important;
    transform: translateY(-6px) !important; /* чуть ближе к заголовку */
  }

  /* Описание под заголовком */
  #hero .hero-subtitle,
  #hero .hero-text,
  #hero p {
    font-size: 16px !important;
    line-height: 1.35 !important;
    max-width: 60ch !important;
    opacity: 0.9;
    text-align: center;
  }
}

@media (max-width: 640px) {

  /* Центруем hero-контент целиком */
  #hero,
  #hero .hero-content,
  #hero .hero-inner,
  #hero .hero-container {
    text-align: center !important;
    align-items: center !important;
  }

  /* Центруем именно этот текст + делаем аккуратную ширину */
  #hero .hero-subtitle,
  #hero .hero-text,
  #hero p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 60ch !important;
  }
}

/* Убрать зазор между Manifest и бегущими строками */
#manifest.slide {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.stroke-wrap,
.stroke-wrapper,
.marquee,
.marquee-wrap,
.stroke {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* на всякий случай — если отступ даёт заголовок/последний элемент манифеста */
#manifest .manifest-text,
#manifest .manifest-text-wrapper,
#manifest .manifest-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 840px){
  .manifest-title-anim{
    font-size: 28px !important; /* подбери 24–28 */
    line-height: 1.12 !important;
  }
}

/* FIX: стрелки рамок видны на мобилке */
@media (max-width: 768px) {
  .frame-arrow {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    position: absolute !important;
    top: 50% !important;

    width: 100px !important;
    height: 100px !important;

    z-index: 20 !important;
  }

  /* если у тебя есть отдельные классы "left/right" */
  .frame-arrow.left { left: 10px !important; }
  .frame-arrow.right { right: 10px !important; }

  /* на случай если стрелки были внутри контейнера с overflow:hidden */
  .frames-right,
  .frame-preview,
  .frame-view,
  .frame-slider {
    overflow: visible !important;
  }
}

/* Footer: центрируем контакты на мобилке */
@media (max-width: 720px) {
  .footer{
    align-items: center !important;
    text-align: center !important;
  }

  .footer > div{
    width: 100% !important;            /* чтобы центрирование работало стабильно */
  }

  .footer-links{
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-social{
    justify-content: center !important; /* иконки контактов */
  }
}
/* Mobile: модалка карточки = картинка сверху, контент снизу */
@media (max-width: 768px) {

  /* главный контейнер модалки */
  .modal-content,
  .product-modal,
  .card-modal,
  .popup-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh;
    overflow: hidden;
  }

  /* зона изображения */
  .modal-image,
  .product-modal__image,
  .popup-image,
  .modal-content img {
    width: 100% !important;
    height: auto !important;
    max-height: 42vh !important;   /* чтобы не занимало весь экран */
    object-fit: cover !important;
    display: block;
  }

  /* зона текста/цены/кнопки */
  .modal-details,
  .product-modal__details,
  .popup-details,
  .modal-text {
    width: 100% !important;
    padding: 14px 16px 18px !important;
    overflow: auto;
  }
  /* чтобы крестик был "над картинкой", но не на ней — даём отступ сверху контенту */
  .modal-content,
  .popup-content,
  .product-modal,
  .card-modal {
    padding-top: 56px !important;
  }
}

/* Мобилка: крестик корзины вверху всей корзины */
@media (max-width: 768px) {

  /* общий контейнер корзины станет опорой для absolute */
  #cartModal .cart-modal-shell{
    position: relative !important;
  }

  /* убираем "опору" у правой колонки, иначе крестик липнет к ней */
  #cartModal .cart-right{
    position: static !important;
  }
    /* убираем "опору" у правой колонки, иначе крестик липнет к ней */
  #cartModal .cart-left{
    position: static !important;
  }

  /* ставим крестик в правый верх корзины */
  #cartModal .cart-modal-close{
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 999 !important;

    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 30px !important;
    line-height: 1 !important;
  }

  /* чтобы крестик не налезал на контент сверху */
  #cartModal .cart-left{
    padding-top: 56px !important;
  }
}
@media (max-width: 768px){
  body.cart-open .cart-floating{ display:none !important; }
}


/* ===============================
   CART MODAL (MOBILE) — fixed form + scroll cart-left
   =============================== */
@media (max-width: 768px){
  /* у корзины своя компоновка — не используем общий padding-top для карточного модала */
  #cartModal .modal-content{
    padding-top: 0 !important;
    max-height: 92vh;
  }

  /* делаем модалку чуть выше, чтобы влезал список + кнопка */
  #cartModal .cart-modal-content{
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  /* оболочка: вертикальная компоновка, общий фиксированный рост */
  #cartModal .cart-modal-shell{
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;

    /* можно «чуть расширить» высоту на мобиле */
    height: min(92vh, 820px);
    max-height: 92vh;
  }

  /* правая часть (форма) всегда на месте и не «уезжает» */
  #cartModal .cart-right{
    flex: 0 0 auto !important;
    height: clamp(300px, 40vh, 380px);

    /* всегда видна снизу внутри модалки */
    position: sticky !important;
    bottom: 0;
    z-index: 2;

    border-radius: 0 0 14px 14px;
  }

  /* внутри формы: делаем так, чтобы кнопка не пропадала */
  #cartModal .cart-form{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #cartModal .cart-submit{
    margin-top: auto;
    width: 100%;
    align-self: stretch;
  }

  /* левая часть: скролл только у корзины */
  #cartModal .cart-left{
    flex: 1 1 auto !important;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    /* чтобы контент не прятался за формой */
    padding-bottom: 18px;

    border-radius: 14px 14px 0 0;
  }

  /* сам список тоже может скроллиться, но уже внутри cart-left (не обязательно) */
  #cartModal .cart-items{
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 768px) {

  /* 1) Модалка всегда “стоит” на нижнем краю */
  #cartModal,
  .cart-modal {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }

  /* 2) Окно делаем высоким, чтобы форма влезала */
  .cart-modal-shell {
    height: 94dvh !important;      /* ↑ можно 96dvh если надо */
    max-height: 94dvh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    transform: none !important;     /* убираем “центрирование” translateY */
  }

  /* 3) ВАЖНО: контейнер внутри должен уметь “ужиматься” */
  .cart-modal-shell * {
    min-height: 0;
  }

  /* 4) ФОРМА: делаем БОЛЬШЕ вниз, СКРОЛЛА НЕТ */
  .cart-modal-shell .cart-right {
    flex: 0 0 58dvh !important;     /* ← ВОТ ТУТ форма “продлевается вниз” */
    overflow: hidden !important;    /* никаких скроллов в форме */
    padding-bottom: calc(500px + env(safe-area-inset-bottom)) !important;
  }

  /* 5) ТОВАРЫ: оставшееся место и скролл */
  .cart-modal-shell .cart-left {
    flex: 1 1 auto !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 768px) {

  /* 1) Даём форме больше места: товары делаем короче */
  .cart-modal-shell{
    height: 96dvh !important;
    max-height: 96dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .cart-modal-shell .cart-left{
    flex: 0 0 5dvh !important;     /* товары ниже */
    max-height: 40dvh !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .cart-modal-shell .cart-right{
    flex: 1 1 auto !important;
    overflow: visible !important;   /* чтобы ничего не “резало” */
  }

  /* 2) Убираем “сжатие” полей: нормальная высота и паддинги */
  .cart-modal-shell .cart-right input,
  .cart-modal-shell .cart-right select{
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
    border-radius: 12px !important;
  }

  .cart-modal-shell .cart-right textarea{
    min-height: 110px !important;
    padding: 12px 14px !important;
    line-height: 1.25 !important;
    border-radius: 12px !important;
    resize: none !important;
  }

  /* 3) Кнопка: чтобы была нормальная, не “тонкая” */
  .cart-modal-shell .cart-right button,
  .cart-modal-shell .cart-right .btn,
  .cart-modal-shell .cart-right .submit-btn{
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    margin-top: 90 !important;  
  }

  /* 4) Воздух между полями */
  .cart-modal-shell .cart-right label{
    display: block !important;
    margin: 14px 0 50px !important;
  }
}

@media (max-width: 768px) {

  /* Комментарии (последний label) — даём отступ вниз, чтобы кнопка ушла ниже */
  .cart-modal-shell .cart-form label:last-of-type{
    margin-bottom: 140px !important; /* увеличь до 24–32px если нужно ещё ниже */
  }

  /* На всякий случай: если раньше где-то ставили auto/0, фиксируем */
  .cart-modal-shell .cart-form .cart-submit{
    margin-top: 0 !important; /* отступ теперь задаёт label выше */
  }
  

}
@media (max-width: 768px) {
  #cartModal{ position: fixed !important; }

  #cartModal .modal-close.cart-modal-close{
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 99999 !important;
  }
}
@media (max-width: 768px) {

  /* убираем серую подложку у названия */
  .product-card .title::before,
  .product-card .title::after,
  .catalog-card .title::before,
  .catalog-card .title::after,
  .product-card .card-title-bg,
  .catalog-card .card-title-bg,
  .product-card .title-bg,
  .catalog-card .title-bg{
    display: none !important;
    content: none !important;
  }

  /* если подложка — это background у самого блока с текстом */
  .product-card .title,
  .catalog-card .title,
  .product-card h3,
  .catalog-card h3{
    background: transparent !important;
    box-shadow: none !important;
  }
}
@media (max-width: 768px) {

  /* ВАЖНО: закрытая корзина не должна существовать поверх страницы */
  #cartModal,
  .cart-modal {
    display: none !important;
  }

  /* А вот открытая — да */
  #cartModal.open,
  .cart-modal.open {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 768px) {
  .poster-overlay{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
