/* КАРКАС «СОЗДАТЬ» — ВИД. Один на все сайты экосистемы.

   Здесь лежит то, что должно выглядеть одинаково везде: строка запуска с
   кадрами и ценой, единый язык кнопок (выбор · бледное вторичное · один
   акцент), карточки моделей, отдельные окна «Все модели» и «модель», вид
   тонкой настройки. Наполнение у каждого сайта своё, вид общий.

   Перенесено 05.08.2026 из страницы Ловии дословно: если Ловии после
   переноса выглядит иначе — перенос грязный, и это ошибка переноса, а не
   повод «немного поправить». */

  .cr3-fine-param__label { display: block; margin-bottom: 6px;
    font: 600 13px/1.4 Inter, sans-serif; }
  .cr3-fine-param__sub { font-weight: 500;
    color: var(--text-muted, rgba(255,255,255,.55)); }

  /* Хвосты прежней сворачивающейся строки: имя модели и так стоит в строке
     запуска, а карточки видно сразу — напоминания только мешают. */
  .cr3-plan-step--models [data-tc-model-accordion-summary],
  .cr3-plan-step--models .cr3-model-picker-note { display: none !important; }
  .cr3-plan-step--models .cr3-model-accordion__body { display: block !important; }

  /* Подсказка под выбором стиля и предмета — Ди читает её и по ней решает.
     Была мелкой служебной строкой, стала нормальным текстом. */
  .cr3-tc-goal-hint { font: 500 15px/1.45 Inter, sans-serif !important;
    color: var(--text-muted, rgba(255,255,255,.72)) !important;
    margin-top: 10px; max-width: 62ch; }
  @media (max-width: 560px) { .cr3-tc-goal-hint { font-size: 14px !important; } }

  /* ── КАРТОЧКИ МОДЕЛЕЙ: один стиль на все ────────────────────────────
     Имя, что умеет человечьим языком, цена за кадр, скорость. Никаких
     случайных картинок: на каждой карточке один наш знак, примеры работ
     будут отдельно и у всех одинаковые. */
  /* ДВЕ КАРТОЧКИ В РЯД — канон: сетка ложится ровнее, и карточка шире,
     значит умение помещается в строку целиком. */
  /* Две карточки в ряд — канон каркаса. Правило было привязано к
     идентификатору экрана Ловии, из-за чего у Звучии жанры вставали
     столбиком; теперь оно живёт на самом виде карточек. */
  .cr3-modeli-kanon { display: grid; gap: var(--vozduh-ryadom, 8px);
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 560px) { .cr3-modeli-kanon { grid-template-columns: minmax(0, 1fr); } }
  /* ЗНАК — РОВНЫЙ КВАДРАТ У ВСЕХ. Большая картинка фотика в мелком окошке
     мялась и читалась криво: теперь отдельный квадратный знак, обрезка
     кадром (cover), одна рамка и одно скругление на всех карточках. */
  .cr3-model-kanon__fotik { width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04); }
  .cr3-model-kanon__fotik img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; }
  /* Карточки одной высоты, умение — ровно одна строка. */
  #tc-models.cr3-modeli-kanon, .cr3-okno__setka { align-items: stretch; }
  .cr3-model-kanon { height: 100%; align-items: center; }
  .cr3-model-kanon__umeet { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; }
  .cr3-model-kanon { display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 13px; border-radius: 12px; text-align: left; cursor: pointer;
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03);
    color: var(--text-primary, #fff); transition: border-color .14s, background .14s; }
  .cr3-model-kanon:hover { border-color: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 55%, transparent); }
  .cr3-model-kanon.active { border-color: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 72%, transparent);
    background: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 12%, transparent); }
  .cr3-model-kanon__znak { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.05); display: grid; place-items: center; overflow: hidden; }
  .cr3-model-kanon__znak img { width: 22px; height: 22px; opacity: .9; }
  .cr3-model-kanon__telo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .cr3-model-kanon__verh { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .cr3-model-kanon__imya { font: 700 14px/1.2 Inter, sans-serif; }
  .cr3-model-kanon__rek { font: 700 10px/1 Inter, sans-serif; letter-spacing: .06em;
    text-transform: uppercase; padding: 4px 7px; border-radius: 6px;
    color: var(--olive, var(--brand, currentColor));
    background: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 16%, transparent); }
  .cr3-model-kanon__umeet { font: 500 12px/1.35 Inter, sans-serif;
    color: var(--text-muted, rgba(255,255,255,.6)); }
  .cr3-model-kanon__niz { display: flex; gap: 10px; align-items: baseline;
    font: 600 12px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
  .cr3-model-kanon__cena { color: var(--text-primary, #fff); }
  .cr3-model-kanon__skorost { color: var(--text-muted, rgba(255,255,255,.55)); }
  .cr3-vse-modeli { margin-top: 10px; width: 100%; min-height: 40px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14); background: transparent;
    color: var(--text-muted, rgba(255,255,255,.6)); font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
  .cr3-vse-modeli:hover { color: var(--text-primary, #fff); border-color: rgba(255,255,255,.24); }

  .cr3-okno__karta--model { width: min(560px, 100%); position: relative; padding-top: 14px; scroll-padding-top: 56px; }
  /* Шапка окна прилипает к верху: на телефоне человек мог пролистать вниз
     и остаться без крестика — окно становилось непокидаемым. */
  .cr3-okno__karta--model .cr3-okno__shapka { position: sticky; top: 0; z-index: 2;
    margin: -14px -18px 12px; padding: 14px 18px 12px;
    background: var(--bg-elevated, #15171c);
    border-bottom: 1px solid rgba(255,255,255,.08); }
  /* Картинка занимает не больше половины окна: текст виден сразу, без
     прокрутки. На весь экран — только по клику по ней самой. */
  .cr3-model-okno__primer { width: 100%; max-height: 46vh; object-fit: cover;
    border-radius: 12px; display: block; cursor: zoom-in; }
  .cr3-okno--vo-ves-ekran { padding: 0; }
  .cr3-okno__bolshaya { max-width: 96vw; max-height: 92vh; object-fit: contain;
    border-radius: 10px; cursor: zoom-out; }
  .cr3-model-okno__podpis { margin: 6px 0 14px; text-align: center;
    font: 500 12px/1 Inter, sans-serif; color: var(--text-muted, rgba(255,255,255,.5)); }
  .cr3-model-okno__stroki { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
  .cr3-model-okno__stroka { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px;
    font: 500 14px/1.4 Inter, sans-serif; }
  .cr3-model-okno__stroka b { font-weight: 600; color: var(--text-muted, rgba(255,255,255,.55)); }
  .cr3-model-okno__vybrat { width: 100%; }
  @media (max-width: 560px) { .cr3-model-okno__stroka { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

  /* Отдельное окно со всеми моделями. */
  body.cr3-okno-otkryto { overflow: hidden; }
  .cr3-okno { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
    padding: 20px; background: rgba(8,10,7,.72); backdrop-filter: blur(8px); }
  .cr3-okno[hidden] { display: none; }
  .cr3-okno__karta { width: min(880px, 100%); max-height: 84vh; overflow: auto;
    padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14);
    background: var(--bg-elevated, #15171c); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
  .cr3-okno__shapka { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .cr3-okno__imya { font: 700 18px/1.2 "Golos Text", Inter, sans-serif; }
  .cr3-okno__zakryt { margin-left: auto; width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid rgba(255,255,255,.14); background: transparent; color: inherit; cursor: pointer; }
  .cr3-okno__zakryt--kadr { position: fixed; top: 16px; right: 16px; z-index: 3;
    width: 40px; height: 40px; background: rgba(0,0,0,.5); }

  .cr3-okno__setka { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  /* ── СТРОКА ЗАПУСКА: кадры, цена, единственный акцент ──────────── */
  .cr3-zapusk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 18px 0 4px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); }
  .cr3-zapusk__kadry { display: flex; align-items: center; gap: 9px; }
  .cr3-zapusk__label { font: 600 12px/1 Inter, sans-serif; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-muted, rgba(255,255,255,.55)); }
  .cr3-zapusk__cena { flex: 1 1 auto; min-width: 120px;
    font: 700 14px/1.2 Inter, sans-serif; font-variant-numeric: tabular-nums;
    color: var(--text-primary, #fff); }
  .cr3-zapusk .cr3-submit { margin: 0; flex: 0 0 auto; }
  @media (max-width: 560px) {
    .cr3-zapusk { gap: 10px; }
    /* Цена стоит ПЕРЕД кнопкой: сначала видно, сколько спишется. */
    .cr3-zapusk__cena { order: 2; flex-basis: 100%; }
    .cr3-zapusk .cr3-submit { order: 3; flex: 1 1 auto; }
  }

  /* ── КНОПКИ РОВНО ───────────────────────────────────────────────────
     Три роли и ни одной лишней: выбор, вторичное действие, один акцент.
     Раньше каждый шаг красил свои кнопки по-своему, и глаз не понимал,
     что здесь главное. */
  .cr3-tc-goal, .cr3-fmt, .cr3-chip, .cr3-mchip, .cr3-fine-chip {
    min-height: 38px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
    color: var(--text-primary, #fff);
    font: 600 13px/1.15 Inter, sans-serif;
    transition: border-color .14s, background .14s;
  }
  .cr3-tc-goal:hover, .cr3-fmt:hover, .cr3-chip:hover, .cr3-mchip:hover, .cr3-fine-chip:hover {
    border-color: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 55%, transparent);
  }
  .cr3-tc-goal.active, .cr3-fmt.active, .cr3-chip.active, .cr3-mchip.active, .cr3-fine-chip.active {
    border-color: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 70%, transparent);
    background: color-mix(in srgb, var(--olive, var(--brand, currentColor)) 12%, transparent);
  }
  /* Вторичные: «Назад», «Пропустить», «Сбросить» — бледные и не спорят. */
  [data-to], .cr3-back, .cr3-all-models-filter__reset, .cr3-tc-ref__rm {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: var(--text-muted, rgba(255,255,255,.55)) !important;
    font-weight: 600 !important;
  }
  [data-to]:hover, .cr3-back:hover, .cr3-all-models-filter__reset:hover {
    color: var(--text-primary, #fff) !important;
    border-color: rgba(255,255,255,.2) !important;
  }
  /* Единственный залитый акцент на экране. */
  .cr3-submit { border-radius: 12px; font-weight: 800; }

  /* Тонкая настройка: заголовок стал кнопкой — держим его строкой. */
  .cr3-fine-accordion__summary { display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
    color: inherit; padding: 0; }
  .cr3-fine-accordion__chevron { margin-left: auto; opacity: .5; transition: transform .16s; }
  .cr3-plan-step--model-settings:not(.is-collapsed) .cr3-fine-accordion__chevron { transform: rotate(90deg); }



/* ── ЕЩЁ НАСТРОЙКИ ─────────────────────────────────────────────────────
   Маленькая ссылка у строки запуска вместо целого шага. Нет редких ручек
   у модели — нет и ссылки: пустых мест на экране не держим. */
.cr3-esche { margin: 6px 0 0; }
.cr3-esche[hidden] { display: none; }
.cr3-esche-nastroyki { display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10); background: transparent;
  color: var(--text-muted, rgba(255,255,255,.6));
  font: 600 12px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.cr3-esche-nastroyki:hover { color: var(--text-primary, #fff); border-color: rgba(255,255,255,.2); }
.cr3-esche-nastroyki__skolko { opacity: .6; font-variant-numeric: tabular-nums; }
.cr3-esche-nastroyki__telo { margin-top: 10px; display: grid; gap: 10px; }
.cr3-esche-nastroyki__telo[hidden] { display: none; }

/* ── ОКНО МОДЕЛИ НА УЗКОМ ЭКРАНЕ ──────────────────────────────────────
   Было: подписи слипались, картинка распирала окно вбок, кнопка «Выбрать»
   уезжала за край. Стало: колонка одна, ничего не выходит за ширину,
   кнопка прилипает к низу окна и достижима всегда. */
/* Ширина ЗДЕСЬ, а не выше: правило .cr3-okno__karta стоит ниже по файлу
   и при равном весе побеждало — окно модели раздувалось до 880. */
.cr3-okno__karta--model { width: min(560px, 100%); box-sizing: border-box; overflow-x: hidden; }
.cr3-okno__karta--model * { min-width: 0; max-width: 100%; }
.cr3-model-okno__stroka { word-break: break-word; }
.cr3-model-okno__vybrat { position: sticky; bottom: 0; z-index: 2; }

@media (max-width: 620px) {
  .cr3-okno { padding: 10px; }
  .cr3-okno__karta--model { width: 100%; max-height: 88vh; padding: 12px; }
  .cr3-okno__karta--model .cr3-okno__shapka { margin: -12px -12px 10px; padding: 12px; }
  .cr3-model-okno__primer { max-height: 34vh; }
  .cr3-model-okno__stroka { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cr3-model-okno__stroka b { font-size: 12px; }
  .cr3-okno__imya { font-size: 16px; }
  .cr3-model-okno__vybrat { margin-top: 4px; }
}


/* ── КАРТОЧКИ НА УЗКОМ ЭКРАНЕ: ОДНА КОЛОНКА, ДЛИННЫЕ СТРОКИ ───────────
   В две колонки на телефоне слова не помещались и рвались переносами.
   Теперь карточка — строка: знак слева, имя с бейджем и умение рядом,
   цена справа. Ничего не обрезаем: если умение длинное, короче делают
   ТЕКСТ В ПАСПОРТЕ модели, а не вёрстку. */
@media (max-width: 620px) {
  .cr3-modeli-kanon,
  .cr3-okno__setka { grid-template-columns: minmax(0, 1fr) !important; }

  .cr3-model-kanon { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center; gap: 10px; padding: 10px 12px; }
  .cr3-model-kanon__telo { display: contents; }
  .cr3-model-kanon__verh { grid-column: 2; grid-row: 1; }
  .cr3-model-kanon__umeet { grid-column: 2; grid-row: 2;
    display: block; -webkit-line-clamp: none; overflow: visible; }
  .cr3-model-kanon__niz { grid-column: 3; grid-row: 1 / span 2;
    justify-self: end; align-self: center; }
  .cr3-model-kanon__cena { white-space: nowrap; }
  .cr3-model-kanon__imya { font-size: 14px; }
  .cr3-model-kanon__umeet { font-size: 12px; line-height: 1.3; }
  .cr3-model-kanon__rek { padding: 3px 6px; font-size: 9.5px; }
}

/* Кнопка возврата к списку в окне модели. */
.cr3-okno__nazad { min-height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: var(--text-muted, rgba(255,255,255,.6));
  font: 600 12px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.cr3-okno__nazad:hover { color: var(--text-primary, #fff); border-color: rgba(255,255,255,.24); }

/* Хвост единицы («за кадр», «за песню») на узком прячем: место нужнее умению. */
@media (max-width: 620px) { .cr3-model-kanon__hvost { display: none; } }

/* Главная кнопка каркаса — единственный залитый акцент, цветом сайта.
   У Ловии её красит своя страница, у Звучии и Снимии красить было некому. */
.cr3-okno .cr3-submit, .cr3-zapusk .cr3-submit {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--olive, var(--brand, #8a9a6a));
  color: #14150f; font: 800 14px/1 Inter, system-ui, sans-serif;
}
.cr3-okno .cr3-submit:hover, .cr3-zapusk .cr3-submit:hover { filter: brightness(1.06); }
