/* PR1ME CPM — стиль «светящийся портал». Основа (токены, шапка, первый экран, кнопки, карточки, шаги, призыв, подвал) — /cpa/cpa.css; здесь — только своё для CPM. */

/* Шапка: кнопка «Записаться на сессию» (на телефоне — «Связаться») */
.show-mob { display: none; }
@media (max-width: 700px) { .hide-mob { display: none; } .show-mob { display: inline; } }
html { scroll-padding-top: 120px; }

/* Первый экран: портал CPM на картинке — справа, около 66% ширины */
.page-cpm .chip--1 { left: 50%; top: 22%; }
.page-cpm .chip--2 { right: 5%; top: 33%; }
.page-cpm .chip--3 { right: 8%; top: 60%; }
.page-cpm .hero__title { max-width: 11em; }

/* Пять преимуществ */
.features__list--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1280px) { .features__list--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .features__list--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .features__list--5 { grid-template-columns: 1fr; } }

/* ---------- Общее для секций ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section-lead { margin: 18px auto 0; max-width: 52ch; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.55; color: var(--c-text-2); }
.center { display: flex; justify-content: center; }
.cases, .about, .quest, .million, .compare { padding-block: clamp(70px, 11vh, 140px) 0; }

/* ---------- Кейсы ---------- */
.brands { margin: clamp(40px, 6vh, 70px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 24px); }
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(24px, 2.4vw, 40px) 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 26, 36, .72), rgba(8, 11, 16, .8)); border: 1px solid var(--c-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 50px rgba(0, 0, 0, .45);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.brand:hover { transform: translateY(-4px); border-color: rgba(220, 232, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(150, 190, 255, .12); }
.brand img { height: clamp(26px, 2.6vw, 42px); width: auto; max-width: 70%; object-fit: contain; margin-bottom: 8px; }
.brand__value { font-size: clamp(28px, 2.8vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; background: linear-gradient(180deg, #fff 30%, #b9c4d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__label { font-size: clamp(13px, .95vw, 15px); color: var(--c-text-3); }

.reels__label { margin-top: clamp(56px, 9vh, 100px); text-align: center; }
.reels { margin: 0 0 clamp(32px, 5vh, 56px); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 24px); }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: clamp(18px, 1.6vw, 26px); overflow: hidden; background: #0a0e14;
  border: 1px solid rgba(220, 232, 255, .18); box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
}
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -60px 60px -30px rgba(4, 6, 10, .55); }

/* ---------- Как это работает ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.about__text .section-title { max-width: 12em; }
.about__text p:not(.eyebrow) { margin: 18px 0 0; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.6; color: var(--c-text-2); }
.about__text b { color: #fff; font-weight: 600; }
.about__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.point {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 26, 36, .7), rgba(8, 11, 16, .8)); border: 1px solid var(--c-line);
}
.point .card__icon { flex: none; }
.point p { margin: 0; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.5; color: #e6edf4; }

.combine { margin-top: clamp(64px, 10vh, 120px); text-align: center; }
.combine .section-title { margin-inline: auto; max-width: 18em; }
.combine__cards { margin-top: clamp(30px, 5vh, 50px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 26px); text-align: left; }
.combine__card { padding: clamp(24px, 2.4vw, 40px); border-radius: 22px; background: linear-gradient(180deg, rgba(20, 26, 36, .7), rgba(8, 11, 16, .82)); border: 1px solid var(--c-line); }
.combine__card p { margin: 0; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.6; color: var(--c-text-3); }
.combine__card p.combine__tag { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text-2); }
.combine__card--glow { border-color: rgba(220, 232, 255, .4); box-shadow: 0 0 50px rgba(150, 190, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .1); }
.combine__card--glow p { color: #e6edf4; }
.combine__card--glow p.combine__tag { color: #fff; }

/* ---------- Квест ---------- */
.quest__list { margin: clamp(40px, 6vh, 70px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.2vw, 20px); }
.qcard { padding: clamp(22px, 1.8vw, 30px); border-radius: 20px; background: linear-gradient(180deg, rgba(20, 26, 36, .6), rgba(8, 11, 16, .75)); border: 1px solid var(--c-line); }
.qcard__num { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--c-text-3); }
.qcard__title { margin: 18px 0 10px; font-size: clamp(16px, 1.2vw, 20px); font-weight: 600; line-height: 1.25; }
.qcard p { margin: 0; font-size: clamp(13px, .95vw, 15px); line-height: 1.55; color: var(--c-text-3); }
.qcard--prime { background: linear-gradient(180deg, #ffffff, #dfe7f2); border-color: #fff; color: #070b12; box-shadow: 0 0 50px rgba(160, 200, 255, .25); }
.qcard--prime .qcard__num { color: #3b4a5e; }
.qcard--prime p { color: #2a3647; }

/* ---------- 1 млн у блогера ---------- */
.million__cards { margin-top: clamp(40px, 6vh, 70px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 24px); }
.mcard { padding: clamp(26px, 2.4vw, 40px); border-radius: 22px; background: linear-gradient(180deg, rgba(20, 26, 36, .6), rgba(8, 11, 16, .78)); border: 1px solid var(--c-line); }
.mcard__value { margin: 0; font-size: clamp(34px, 3.4vw, 58px); line-height: 1; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; color: var(--c-text-2); }
.mcard__value small { margin-right: .2em; font-size: .42em; font-weight: 500; letter-spacing: 0; }
.mcard__label { margin: 10px 0 18px; font-size: clamp(14px, 1vw, 16px); font-weight: 600; color: var(--c-text-2); }
.mcard p:last-child { margin: 0; font-size: clamp(14px, 1vw, 16px); line-height: 1.6; color: var(--c-text-3); }
.mcard--prime { border-color: rgba(220, 232, 255, .45); box-shadow: 0 0 60px rgba(150, 190, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .12); background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(150, 190, 255, .14), transparent 70%), linear-gradient(180deg, rgba(20, 26, 36, .8), rgba(8, 11, 16, .85)); }
.mcard--prime .mcard__value { background: linear-gradient(180deg, #fff 30%, #c9d6e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mcard--prime .mcard__label { color: #fff; }
.mcard--prime p:last-child { color: #dfe7ef; }

/* ---------- Таблица CPM ---------- */
.ctable { margin-top: clamp(40px, 6vh, 70px); border-radius: 22px; overflow: hidden; border: 1px solid var(--c-line); background: linear-gradient(180deg, rgba(16, 22, 32, .7), rgba(6, 9, 14, .82)); }
.ctable__row { display: grid; grid-template-columns: 1.2fr .8fr 1.1fr 2.2fr; gap: 20px; align-items: center; padding: 18px clamp(18px, 2vw, 32px); border-top: 1px solid var(--c-line); font-size: clamp(14px, 1.05vw, 17px); color: #e6edf4; }
.ctable__head { border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.ctable__name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ctable__name img { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.ctable__name img.ctable__logo { width: 76px; height: auto; border-radius: 0; }
.ctable__note { color: var(--c-text-3); font-size: clamp(13px, .95vw, 15px); line-height: 1.5; }
.ctable__row--prime { background: linear-gradient(90deg, rgba(150, 190, 255, .16), rgba(150, 190, 255, .05)); box-shadow: inset 3px 0 0 #dbe8ff; font-weight: 600; color: #fff; }
.ctable__row--prime .ctable__name { font-size: 0; }
.ctable__row--prime .ctable__note { color: #dfe7ef; }

/* ---------- Этапы и призыв ---------- */
.page-cpm .steps { padding-top: clamp(80px, 12vh, 150px); }
.page-cpm .steps .section-lead { margin-inline: auto; }
.page-cpm .cta__box {
  background:
    radial-gradient(ellipse 55% 75% at 50% 50%, rgba(4, 6, 10, .55), rgba(4, 6, 10, .88) 75%),
    url('/cpm/img/hero-desktop.webp') 66% 40% / cover no-repeat,
    #05070b;
}

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .quest__list { grid-template-columns: repeat(2, 1fr); }
  .qcard--prime { grid-column: 1 / -1; }
  .million__cards { grid-template-columns: 1fr; }
  .ctable__row { grid-template-columns: 1.3fr .7fr 1fr; }
  .ctable__head span:last-child, .ctable__note { grid-column: 1 / -1; }
  .ctable__head span:last-child { display: none; }
  .ctable__note { margin-top: -6px; }
}
@media (max-width: 900px) {
  /* ролики листаются пальцем вбок — внутри своего блока, страница не уезжает */
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad) 12px; scroll-padding-inline: var(--pad); }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: none; width: min(44vw, 220px); scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .brand { padding: 20px 10px; }
  .brand__value { font-size: clamp(22px, 7vw, 30px); }
  .combine__cards { grid-template-columns: 1fr; }
  .quest__list { grid-template-columns: 1fr; }
  /* таблица — карточками */
  .ctable__head { display: none; }
  .ctable__row { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 18px; }
  .ctable__name { grid-column: 1 / -1; }
  .ctable__row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
  .ctable__note { margin-top: 0; }
  .page-cpm .chip--1 { top: 12%; }
}

/* =========================================================
   Иллюстрации между текстом (картинки со старого лендинга, тонированы под холодный стиль)
   ========================================================= */
.art { margin: 0; position: relative; }
.art__frame {
  display: block; position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid rgba(220, 232, 255, .28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(150, 190, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.art__frame img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.08) brightness(.92); transition: transform 1.2s var(--ease); }
/* холодный бело-голубой тон поверх ч/б */
.art__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(120, 165, 235, .22), rgba(10, 20, 40, .35)); mix-blend-mode: color; }
.art:hover .art__frame img { transform: scale(1.04); }
.art__cap { margin-top: 14px; text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-text-3); }

/* баннер в ролике — как экран телефона, слегка наклонён и парит */
.art--phone { justify-self: center; width: min(100%, 360px); }
.art--phone .art__frame { aspect-ratio: 1; /* картинка квадратная, в ней надпись — не обрезаем */ border-radius: 34px; border-width: 6px; border-color: #1a2230; outline: 1px solid rgba(220, 232, 255, .3); transform: rotate(3deg); animation: art-float 7s ease-in-out infinite; }
.art--phone .art__frame img { height: 100%; object-fit: cover; }
.about__grid { grid-template-columns: 1.3fr 1fr; }
.about__points { margin-top: clamp(40px, 6vh, 64px); grid-template-columns: repeat(3, 1fr); }

/* комбайн рядом с карточками */
.combine__body { margin-top: clamp(30px, 5vh, 50px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(18px, 2.4vw, 40px); align-items: center; text-align: left; }
.combine__body .combine__cards { margin-top: 0; grid-template-columns: 1fr; }

/* вставки-картинки прямо в заголовке */
.quest__title { max-width: 20em; margin-inline: auto; }
.pill { display: inline-block; height: .78em; width: auto; vertical-align: -.06em; border-radius: 999px; border: 1px solid rgba(220, 232, 255, .35); filter: grayscale(1) brightness(1.1); box-shadow: 0 0 20px rgba(150, 190, 255, .25); }

/* этапы: человек идёт по светящейся лестнице */
.page-cpm .steps__body { margin-top: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 80px); align-items: center; }
.page-cpm .steps__body .steps__list { margin: 0; grid-template-columns: 1fr; row-gap: 26px; }
.page-cpm .steps__body .steps__list::before { display: block; left: 30px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, rgba(207, 228, 255, .5) 10%, rgba(207, 228, 255, .5) 90%, transparent); }
.page-cpm .steps__body .step { display: grid; grid-template-columns: 62px 1fr; gap: 2px 18px; text-align: left; padding: 0; }
.page-cpm .steps__body .step__num { grid-row: span 2; }
.page-cpm .steps__body .step__title { margin: 8px 0 0; }
.page-cpm .steps__body .step__text { margin: 4px 0 0; max-width: none; }
.art--stairs { position: relative; aspect-ratio: 714 / 495; }
.art__stairs { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); /* лестница вверх вправо */ filter: drop-shadow(0 0 6px rgba(190, 220, 255, .9)) drop-shadow(0 0 18px rgba(150, 190, 255, .5)); opacity: .95; }
/* ступени (после отражения): низ — y 98.6% x 0–36%, середина — y 63.2% x 35–66%, верх — y 32.7% x 65–99% */
.art__walker { position: absolute; left: 4%; bottom: 1.4%; height: 26%; width: auto; filter: drop-shadow(0 0 14px rgba(190, 220, 255, .6)); animation: walk 12s linear infinite; }

/* призыв: телефон с PR1ME на камне */
.cta__box--split { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(20px, 3vw, 60px); text-align: left; padding-block: clamp(40px, 6vh, 80px); }
.cta__box--split .cta__phone { order: 2; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(150, 190, 255, .2)); transition: translate 1.2s var(--ease); }
.cta__box--split .cta__text { margin-left: 0; }
.cta__box--split .cta__actions { justify-content: flex-start; }

@keyframes art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* человек поднимается по ступеням; в конце исчезает и появляется снова внизу */
@keyframes walk {
  0% { left: 2%; bottom: 1.4%; opacity: 0; }
  6% { opacity: 1; }
  25% { left: 24%; bottom: 1.4%; }
  31% { left: 36%; bottom: 36.8%; }
  52% { left: 54%; bottom: 36.8%; }
  58% { left: 66%; bottom: 67.3%; }
  80% { left: 84%; bottom: 67.3%; opacity: 1; }
  90%, 100% { left: 84%; bottom: 67.3%; opacity: 0; }
}

@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .combine__body { grid-template-columns: 1fr; }
  .art--combine { max-width: 480px; justify-self: center; width: 100%; }
  .page-cpm .steps__body { grid-template-columns: 1fr; }
  .art--stairs { max-width: 520px; width: 100%; justify-self: center; }
  .cta__box--split { grid-template-columns: 1fr; text-align: center; }
  .cta__box--split .cta__phone { order: 0; max-width: 420px; justify-self: center; }
  .cta__box--split .cta__text { margin-inline: auto; }
  .cta__box--split .cta__actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .art__walker { animation: none; } }

/* =========================================================
   Короткие тексты вместо полотен: галочки, «за/против», выделение цифр
   ========================================================= */
.about__text .about__lead { font-size: clamp(18px, 1.5vw, 24px); color: #fff; font-weight: 500; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 38px; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.4; color: var(--c-text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); border-radius: 50%;
  border: 1px solid rgba(220, 232, 255, .5); background: rgba(150, 190, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 14px rgba(150, 190, 255, .3);
}
.ticks b, .point b { color: #fff; font-weight: 600; }
.point p { font-size: clamp(15px, 1.1vw, 18px); }
.vs { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.vs li { position: relative; padding-left: 30px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.4; }
.vs li::before { position: absolute; left: 0; top: .05em; width: 20px; text-align: center; font-weight: 700; }
.vs--bad li { color: var(--c-text-3); }
.vs--bad li::before { content: '\2715'; color: #6f7b8c; }
.vs--good li { color: #eef3f8; }
.vs--good li::before { content: '\2713'; color: #fff; text-shadow: 0 0 10px rgba(180, 215, 255, .9); }
.combine__card p.combine__tag { font-size: clamp(15px, 1.1vw, 18px); letter-spacing: .02em; text-transform: none; color: #fff; margin-bottom: 18px; }
.combine__card:not(.combine__card--glow) p.combine__tag { color: var(--c-text-2); }
.qcard p { font-size: clamp(14px, 1vw, 16px); }
.mcard p:last-child { font-size: clamp(15px, 1.05vw, 17px); }
.hl { color: #fff; font-weight: 700; text-shadow: 0 0 16px rgba(170, 205, 255, .7); }
.hl { white-space: nowrap; }


/* Картинка первого экрана — своя для CPM (портал с волной, ChatGPT, design/cpm-v2/gpt) */
@media (max-aspect-ratio: 1/1) {
  .page-cpm .chip--3 { right: auto; }
}
