/* Главная по референсу Creatiq: бело-красная, одна колонка, огромная типографика Manrope.
   Светлая тема: красные блоки с белым текстом и белые блоки с красным текстом.
   Тёмная тема: белое заменяется чёрным. Кнопки — чёрные (в тёмной теме белые), стрелки никогда не красные. */

.cq {
  --r: #ff1d00;           /* фирменный красный */
  --p: #ffffff;           /* «бумага»: белый в светлой теме, чёрный в тёмной */
  --k: #000000;           /* кнопки */
  --kt: #ffffff;          /* текст на кнопках */
  --ink: #000000;         /* текст на «бумаге» */
  --pad: clamp(16px, 2.5cqi, 40px);
  --gap: clamp(64px, 9cqi, 160px);
  max-width: 1920px; margin: 0 auto;
  font-family: "Manrope", system-ui, sans-serif; letter-spacing: -0.03em;
}
:root[data-theme="dark"] .cq { --p: #000000; --k: #ffffff; --kt: #000000; --ink: #ffffff; }
body:has(.cq) { background: var(--p, #fff); }
:root[data-theme="dark"] body:has(.cq) { background: #000; }

.cq img { height: auto; }

/* ---------- две колонки: слева блоки, справа кейсы (как прежняя композиция) ---------- */
.cq-pane { container-type: inline-size; }
.cq-pane--right { display: none; }
.cq-work--m { margin: 0 calc(-1 * var(--pad)) clamp(40px, 10cqi, 64px) 0; }
.cq-work--m .cq-head { margin-bottom: 14px; }
.cq-work--m .cq-case { flex-basis: 82cqi; }
@media (min-width: 1000px) {
  .cq--split { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 700px); height: 100dvh; overflow: hidden; }
  .cq--split .cq-pane { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--r) transparent; outline: none; }
  .cq-pane--right { display: block; background: var(--p); color: var(--ink); border-left: 2px solid var(--r); }
  .cq-work--m { display: none; }
}
.cq-side__head { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; padding: 22px var(--pad) 16px; background: var(--p); border-bottom: 2px solid currentColor; }
.cq-side__list { display: grid; gap: 16px; padding: 24px var(--pad) 0; }
.cq-case--v { flex: none; }
.cq-case--v .cq-case__img img { aspect-ratio: 4 / 3; }
.cq-case--v .cq-case__title { font-size: clamp(26px, 6.4cqi, 48px); }
.cq-side__actions { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 8px; justify-content: space-between; margin-top: 56px; padding: 16px var(--pad); background: var(--p); border-top: 2px solid currentColor; }
.cq-side__actions .cq-btn { flex: 1; justify-content: space-between; }
.cq-side__actions .cq-arrow { width: 50px; }

.cq-block { position: relative; padding: var(--gap) var(--pad); }
.cq-red   { background: var(--r); color: var(--p); }
.cq-white { background: var(--p); color: var(--ink); } /* на белом — чёрный текст (в тёмной теме на чёрном — белый), без красного */
.cq ::selection { background: var(--k); color: var(--kt); }

/* ---------- типографика ---------- */
.cq-label { font-weight: 600; font-size: 13px; line-height: 1.15; letter-spacing: 0; text-transform: uppercase; }
.cq-body  { font-weight: 600; font-size: clamp(14px, 1.05cqi, 17px); line-height: 1.25; letter-spacing: -0.01em; text-transform: uppercase; max-width: 46ch; }
.cq-h1    { font-weight: 800; font-size: clamp(40px, 9cqi, 150px); line-height: .9; letter-spacing: -0.055em; text-transform: uppercase; }
.cq-h2    { font-weight: 800; font-size: clamp(40px, 5.6cqi, 108px); line-height: .9; letter-spacing: -0.055em; text-transform: uppercase; }
.cq-giant { font-weight: 800; font-size: clamp(72px, 15cqi, 290px); line-height: .8; letter-spacing: -0.065em; text-transform: uppercase; }
.cq-lead  { font-weight: 800; font-size: clamp(24px, 2.7cqi, 52px); line-height: .98; letter-spacing: -0.045em; text-transform: uppercase; }
.cq-wordmark { display: block; font-weight: 800; font-size: 19cqi; line-height: .8; letter-spacing: -0.07em; white-space: nowrap; margin-top: clamp(40px, 6cqi, 110px); }
.cq-wordmark span { display: inline-block; transform-origin: 0 0; }

/* подпись слева от заголовка, как «WHAT WE DO» у референса */
.cq-titled { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) {
  .cq-titled { grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .cq-titled > .cq-label { text-align: right; padding-top: .6em; }
}
.cq-split { display: grid; gap: 28px; margin-bottom: clamp(40px, 5cqi, 88px); }
@media (min-width: 900px) {
  .cq-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
}
.cq-split__aside { display: grid; gap: 24px; justify-items: start; }

/* ---------- кнопка: чёрная плашка + квадрат со стрелкой ---------- */
.cq-btn { display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 5px 0 16px; background: var(--k); color: var(--kt);
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; transition: gap .3s cubic-bezier(.2, .7, 0, 1); }
.cq-btn__arr { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid currentColor; }
.cq-btn__arr .cap-arrow { margin: 0; width: 14px; height: 14px; transition: transform .35s cubic-bezier(.2, .7, 0, 1); }
.cq-btn:hover { gap: 22px; }
.cq-btn:hover .cap-arrow { transform: rotate(45deg); }
.cq-btn--sm { height: 40px; padding-left: 12px; gap: 10px; font-size: 13px; }
.cq-btn--sm .cq-btn__arr { width: 30px; height: 30px; }

/* ---------- шапка ---------- */
.cq-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cq-hero .cq-top { margin: calc(-1 * var(--gap) + clamp(16px, 2cqi, 32px)) 0 clamp(48px, 7cqi, 120px); }
.cq-logo { display: block; width: clamp(64px, 6cqi, 96px); color: inherit; }
.cq-logo svg { width: 100%; height: auto; }
.cq-red .cq-logo [fill="#ff1d00"], .cq-menu .cq-logo [fill="#ff1d00"] { fill: currentColor; } /* свой знак на красном — одним цветом, иначе точка пропадает */
.cq-top__tools { display: flex; align-items: center; gap: 8px; }
.cq .lang-toggle, .cq .theme-toggle { height: 40px; min-width: 40px; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 0; }
.cq .lang-toggle:hover, .cq .theme-toggle:hover { background: var(--k); color: var(--kt); border-color: var(--k); }
.cq-menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-transform: uppercase; color: inherit; }
.cq-burger { position: relative; width: 24px; height: 14px; flex-shrink: 0; }
.cq-burger i { position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: currentColor; transition: top .3s cubic-bezier(.2, .7, 0, 1), transform .3s cubic-bezier(.2, .7, 0, 1) .12s; }
.cq-burger i:first-child { top: 25%; } .cq-burger i:last-child { top: 75%; }
[aria-expanded="true"] > .cq-burger i { top: 50%; transition: top .25s cubic-bezier(.2, .7, 0, 1), transform .35s cubic-bezier(.2, .7, 0, 1) .2s; }
[aria-expanded="true"] > .cq-burger i:first-child { transform: rotate(45deg); }
[aria-expanded="true"] > .cq-burger i:last-child { transform: rotate(-45deg); }
/* подписи «Меню» и «Закрыть» лежат в одной ячейке шириной с длинное слово — крестик не сдвигается */
.cq-menu-btn__lbl { display: grid; justify-items: start; }
.cq-menu-btn__lbl > span { grid-area: 1 / 1; transition: opacity .25s, transform .35s cubic-bezier(.2, .7, 0, 1); }
.cq-menu-btn__lbl > span:last-child { opacity: 0; transform: translateY(40%); }
[aria-expanded="true"] .cq-menu-btn__lbl > span:first-child { opacity: 0; transform: translateY(-40%); }
[aria-expanded="true"] .cq-menu-btn__lbl > span:last-child { opacity: 1; transform: none; }
html.cq-menu-open .cq-top--bar { z-index: 95; }

/* ---------- 1. первый экран ---------- */
.cq-hero { padding-bottom: clamp(12px, 1.4cqi, 24px); overflow: hidden; display: flex; flex-direction: column; }
.cq-hero__grid { display: grid; gap: clamp(20px, 2.4cqi, 36px); }
.cq-hero__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 12px; border-bottom: 2px solid currentColor; }
.cq-hero__meta p:last-child { text-align: right; }
.cq-hero__main { display: grid; gap: clamp(20px, 2.4cqi, 36px); justify-items: start; }
.cq-h1 .cap-arrow { margin-left: .08em; }
.cq-wordmark .cap-arrow { margin-left: .06em; width: .66em; height: .66em; }
.cq-wordmark__f { display: inline-block; height: .74em; width: auto; margin-right: .1em; vertical-align: baseline; fill: currentColor; } /* знак F перед названием, как в логотипе */
@media (min-width: 1000px) {
  .cq-hero { min-height: 100dvh; }
  .cq-hero .cq-hero__grid { margin-top: auto; }
  .cq-hero .cq-wordmark { margin-top: clamp(32px, 4cqi, 72px); }
}

/* ---------- 2. о студии ---------- */
.cq-about { display: grid; gap: 56px; }
.cq-about__facts { display: grid; gap: 28px; align-content: start; }
.cq-facts { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cq-fact { display: grid; gap: 8px; padding-top: 14px; border-top: 2px solid currentColor; }
.cq-fact dt { color: inherit; font-weight: 800; font-size: clamp(30px, 3.3cqi, 60px); line-height: .92; letter-spacing: -0.05em; text-transform: uppercase; }
.cq-fact dd { font-weight: 600; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; max-width: 26ch; }
.cq-about__text { display: grid; gap: 28px; justify-items: start; }
@media (min-width: 1000px) {
  .cq-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(40px, 6cqi, 120px); }
  .cq-about__text { grid-template-columns: 120px minmax(0, 1fr); gap: 28px 16px; }
  .cq-about__text > .cq-label { text-align: right; padding-top: .7em; }
  .cq-about__text > :not(.cq-label) { grid-column: 2; }
}

/* ---------- 3. работы: лента ---------- */
.cq-work { padding-right: 0; padding-bottom: clamp(56px, 6cqi, 110px); }
.cq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-right: var(--pad); margin-bottom: clamp(32px, 4cqi, 72px); }
.cq-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.cq-arrow { display: grid; place-items: center; width: clamp(44px, 4cqi, 60px); aspect-ratio: 1; background: var(--k); color: var(--kt); }
.cq-arrow .cap-arrow { margin: 0; width: 40%; height: 40%; transform: rotate(45deg); transition: transform .3s; }
.cq-arrow--prev .cap-arrow { transform: rotate(-135deg); }
.cq-arrow--up .cap-arrow { transform: rotate(-45deg); }
.cq-arrow:disabled { background: transparent; color: var(--k); box-shadow: inset 0 0 0 1.5px var(--k); cursor: default; }
.cq-track { display: flex; gap: clamp(16px, 2.4cqi, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-right: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.cq-track::-webkit-scrollbar { display: none; }
.cq-case { flex: 0 0 min(84cqi, 1060px); scroll-snap-align: start; display: grid; gap: 18px; align-content: start; }
.cq-case__media { position: relative; }
.cq-case__img { display: block; position: relative; overflow: hidden; background: rgba(0, 0, 0, .12); }
.cq-case__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, 0, 1); }
.cq-case__img:hover img { transform: scale(1.03); }
.cq-case .react { right: 14px; bottom: 14px; }
.cq-case .card__new { background: var(--k); color: var(--kt); }
.cq-case__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cq-case__title { font-weight: 800; font-size: clamp(24px, 2.6cqi, 48px); line-height: .92; letter-spacing: -0.05em; text-transform: uppercase; }
@media (max-width: 640px) { .cq-case__row .cq-btn { display: none; } .cq-head .cq-arrows { display: none; } }

/* ---------- 4. услуги: строки с номерами ---------- */
.cq-rows { list-style: none; border-top: 2px solid currentColor; }
.cq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; padding: clamp(18px, 2cqi, 32px) 0; border-bottom: 2px solid currentColor; }
.cq-row__name { text-align: left; font-weight: 800; font-size: clamp(32px, 5.2cqi, 100px); line-height: .9; letter-spacing: -0.055em; text-transform: uppercase; color: inherit; transition: transform .45s cubic-bezier(.2, .7, 0, 1); }
.cq-row__name:hover { transform: translateX(clamp(8px, 1.4cqi, 24px)); }
.cq-row__num { font-weight: 600; font-size: 15px; letter-spacing: 0; padding-top: .4em; }
.cq-row__points { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; font-weight: 600; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; }
.cq-row__points li::before { content: "— "; }

/* ---------- 5. отзывы ---------- */
.cq-reviews .cq-titled { margin-bottom: clamp(40px, 5cqi, 88px); }
.cq-quotes { display: flex; gap: clamp(24px, 3cqi, 56px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); outline: none; }
.cq-quotes::-webkit-scrollbar { display: none; }
.cq-quote { flex: 0 0 min(86cqi, 760px); scroll-snap-align: start; display: grid; gap: 24px; align-content: space-between; padding-top: 18px; border-top: 2px solid currentColor; }
.cq-quote blockquote { font-weight: 700; font-size: clamp(20px, 1.9cqi, 34px); line-height: 1.08; letter-spacing: -0.035em; text-transform: uppercase; }
.cq-quote b { font-weight: 800; margin-right: 8px; }

/* ---------- 6. процесс: шкала с точками ---------- */
.cq-process .cq-titled { margin-bottom: clamp(48px, 6cqi, 104px); }
.cq-steps { list-style: none; display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cq-step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 30px; border-top: 2px solid currentColor; }
.cq-step__dot { position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.cq-step__name { font-weight: 800; font-size: clamp(22px, 2cqi, 36px); line-height: .95; letter-spacing: -0.045em; text-transform: uppercase; }

/* ---------- 7. команда ---------- */
.cq-crew { display: grid; gap: 40px; }
@media (min-width: 900px) { .cq-crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3cqi, 56px); } }
.cq-mate { display: grid; grid-template-columns: clamp(100px, 10cqi, 180px) minmax(0, 1fr); gap: 20px; padding-top: 20px; border-top: 2px solid currentColor; }
.cq-mate__photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cq-mate > div { display: grid; gap: 14px; align-content: start; }
.cq-mate__name { font-weight: 800; font-size: clamp(26px, 2.6cqi, 48px); line-height: .92; letter-spacing: -0.05em; text-transform: uppercase; }
.cq-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.cq-tags li { padding: 6px 9px; border: 1.5px solid currentColor; font-weight: 600; font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: 0; }

/* ---------- 8. вопросы ---------- */
.cq-faq .cq-titled { margin-bottom: clamp(40px, 5cqi, 88px); }
.cq-acc { border-top: 2px solid currentColor; }
.cq-acc__item { border-bottom: 2px solid currentColor; }
.cq-acc__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(18px, 1.8cqi, 28px) 0; cursor: pointer; list-style: none;
  font-weight: 800; font-size: clamp(20px, 2.2cqi, 40px); line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.cq-acc__item summary::-webkit-details-marker { display: none; }
.cq-acc__icon { position: relative; flex: 0 0 22px; height: 22px; }
.cq-acc__icon::before, .cq-acc__icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2.5px; margin-top: -1.25px; background: currentColor; transition: transform .35s cubic-bezier(.2, .7, 0, 1); }
.cq-acc__icon::after { transform: rotate(90deg); }
.cq-acc__item[open] .cq-acc__icon::after { transform: rotate(0); }
.cq-acc__item > .cq-body { max-width: 70ch; padding: 0 0 clamp(20px, 2cqi, 32px); }

/* ---------- 9. подвал ---------- */
.cq-foot { padding-bottom: clamp(20px, 2cqi, 32px); }
.cq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: clamp(32px, 4cqi, 56px) 0; border-top: 2px solid currentColor; }
@media (min-width: 900px) { .cq-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cq-cols ul { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.cq-cols a { font-weight: 700; font-size: clamp(16px, 1.3cqi, 22px); letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.cq-cols a:hover { background-size: 100% 2px; }
.cq-base { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding-top: 20px; border-top: 2px solid currentColor; }
.cq-base .cq-label { display: grid; gap: 4px; }
.cq-base .egg { grid-column: 1 / -1; grid-row: 2; }
.cq-base .egg__hint { color: inherit; }
.cq-base .egg__prize { background: var(--k); color: var(--kt); }
.cq-base .egg__prize p, .cq-base .egg__code { color: var(--kt); }
.cq-base .egg__cta { background: var(--kt); color: var(--k); }

/* ---------- меню на весь экран ---------- */
.cq-menu { position: fixed; inset: var(--cq-bar, 80px) 0 0; z-index: 90; container-type: inline-size; background: var(--r); color: var(--p); overflow: auto; overscroll-behavior: contain;
  animation: cq-menu-in .45s cubic-bezier(.2, .7, 0, 1) both; }
/* та же ширина и те же отступы, что у левой колонки — поэтому «Закрыть» встаёт ровно на место «Меню» */
.cq-menu__in { display: flex; flex-direction: column; padding: clamp(16px, 4vh, 48px) var(--pad) 40px; min-height: 100%; }
@media (min-width: 1000px) {
  .cq-menu { left: calc((100vw - min(100vw, 1920px)) / 2); right: calc((100vw - min(100vw, 1920px)) / 2 + clamp(380px, 36vw, 700px)); }
  .cq-menu__in { padding-right: calc(var(--pad) + var(--cq-sb, 0px)); } /* левая колонка уже на ширину своей полосы прокрутки */
}
.cq-burger--x { border: 0; height: 14px; }
.cq-burger--x::before, .cq-burger--x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transform: rotate(28deg); }
.cq-burger--x::after { transform: rotate(-28deg); }
.cq-menu[hidden] { display: none; }
.cq-menu nav { display: grid; }
.cq-menu nav a { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; border-bottom: 2px solid currentColor; font-weight: 800; font-size: clamp(28px, min(7vh, 11.5cqi), 96px); line-height: .95; overflow-wrap: anywhere; letter-spacing: -0.055em; text-transform: uppercase; transition: padding .35s cubic-bezier(.2, .7, 0, 1); }
.cq-menu nav a .cq-label { padding-top: .5em; min-width: 36px; }
.cq-menu nav a:hover, .cq-menu nav a:focus-visible { padding-left: 20px; color: var(--k); }
.cq-menu nav a { transition: padding .35s cubic-bezier(.2, .7, 0, 1), color .2s; }
.cq-menu .cq-menu-btn:hover { color: var(--k); }
@keyframes cq-menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
html.cq-menu-open { overflow: hidden; }

/* ---------- появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cq [data-cq-rv] { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2, .7, 0, 1), transform .8s cubic-bezier(.2, .7, 0, 1); }
  .cq [data-cq-rv].is-in { opacity: 1; transform: none; }
}

/* «наверх»: плавает в правом нижнем углу левой колонки (на телефоне — экрана), появляется после небольшой прокрутки */
.cq-float-up { position: fixed; z-index: 30; right: 16px; bottom: 16px; width: 54px; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .4s cubic-bezier(.2, .7, 0, 1), visibility 0s .4s; }
.cq-float-up.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s cubic-bezier(.2, .7, 0, 1), visibility 0s; }
.cq-float-up:hover .cap-arrow { transform: rotate(-45deg) translateY(-3px); }
@media (min-width: 1000px) {
  .cq-float-up { right: calc((100vw - min(100vw, 1920px)) / 2 + clamp(380px, 36vw, 700px) + 20px); bottom: 20px; width: 58px; }
}

/* карточка кейса: название, огонёк и «Смотреть кейс» лежат на картинке внизу; название всегда белое */
.cq-case { position: relative; gap: 0; }
.cq-case__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.cq-case__row { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; align-items: flex-end; gap: 10px; padding: clamp(12px, 3cqi, 20px); pointer-events: none; }
.cq-case__row > * { pointer-events: auto; }
.cq-case__title { flex: 1; min-width: 0; color: #fff; }
.cq-case__row .react { position: static; flex-shrink: 0; }
.cq-case__row .like__btn.react__btn { height: 40px; border-radius: 0; padding: 0 12px 0 10px; background: rgba(0, 0, 0, .45); }
.cq-work--m .cq-case__title { font-size: 26px; }

/* ---------- фирменный стиль заголовков (как в счёте fonj studio) ---------- */
.cq-sh { display: grid; gap: clamp(10px, 1.2cqi, 18px); padding-bottom: clamp(14px, 1.6cqi, 24px); margin-bottom: clamp(32px, 4cqi, 64px); border-bottom: 2px solid currentColor; }
.cq-sh .cq-giant { display: block; font-size: 20cqi; line-height: .8; letter-spacing: -0.045em; white-space: nowrap; }
.cq-sh .cq-giant > span { display: inline-block; }
.cq-sh .cq-giant .cap-arrow, .cq-cta .cap-arrow { margin-left: .06em; width: .7em; height: .7em; }
.cq-sub { font-weight: 600; font-size: clamp(16px, 1.5cqi, 24px); line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.cq-sub span { margin-right: .2em; }
.cq-intro { margin: 0 0 clamp(32px, 4cqi, 64px); max-width: 52ch; }
.cq-cta { display: grid; gap: 14px; }

/* обычный текст — обычными буквами, как в счёте; заглавными остаются только заголовки и метки */
.cq-body { text-transform: none; font-weight: 500; font-size: clamp(15px, 1.25cqi, 19px); line-height: 1.35; letter-spacing: -0.02em; }
.cq-lead { text-transform: none; font-weight: 600; font-size: clamp(22px, 2.6cqi, 40px); line-height: 1.12; letter-spacing: -0.035em; }
.cq-row__points { text-transform: none; font-weight: 500; font-size: clamp(14px, 1.1cqi, 17px); letter-spacing: -0.015em; }
.cq-row__points li::before { content: ""; }
.cq-row__points li + li::before { content: "/ "; margin-right: 2px; opacity: .6; }
.cq-quote blockquote { text-transform: none; font-weight: 600; font-size: clamp(20px, 2cqi, 30px); line-height: 1.18; letter-spacing: -0.03em; }
.cq-acc__item summary { text-transform: none; font-weight: 700; letter-spacing: -0.035em; }
.cq-fact dd { text-transform: none; font-weight: 500; font-size: 15px; letter-spacing: -0.015em; }
.cq-quote { border-top: 0; padding-top: 0; }
.cq-sh .cq-giant > span { letter-spacing: -0.045em; } .cq-wordmark > span { letter-spacing: -0.07em; } /* интервал считаем от размера самой надписи, иначе при подгонке под ширину она вылезает */
.cq-sh { grid-template-columns: minmax(0, 1fr); } .cq-sh .cq-giant { min-width: 0; }
.cq-sh .cq-giant { line-height: .9; } .cq-sh { gap: clamp(12px, 1.8cqi, 26px); } /* место под хвосты Д и Ц */

/* заголовки разделов: обычными буквами, с точкой, подчёркнуты — крупно, но не во всю ширину */
.cq-title { font-weight: 500; font-size: clamp(40px, 6.4cqi, 92px); line-height: 1; letter-spacing: -0.045em;
  text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .1em; margin-bottom: clamp(28px, 3.6cqi, 56px); }
.cq-title--cta { margin-bottom: 0; }
.cq-intro { margin-top: calc(-1 * clamp(8px, 1.2cqi, 20px)); }

/* ---------- страница кейса и 404 ---------- */
.cq-hero--case { min-height: 0 !important; padding-bottom: clamp(40px, 6cqi, 96px); }
.cq-hero--case .cq-hero__grid { margin-top: clamp(24px, 6cqi, 120px) !important; }
.cq-hero--nf { padding-bottom: clamp(40px, 6cqi, 96px); }
.cq-hero__text { max-width: 30ch; }
.cq-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cq-back { display: inline-flex; align-items: center; gap: 8px; }
.cq-back .cap-arrow { margin: 0; width: 11px; height: 11px; transform: rotate(-135deg); }
.cq-back:hover { color: var(--k); }
.cq-link { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cq-link:hover { color: var(--k); }
/* огонёк кейса — квадратная плашка в цветах блока */
.cq-like .like__btn { height: 50px; border-radius: 0; border: 1.5px solid currentColor; background: transparent; color: inherit; box-shadow: none; padding: 0 16px 0 12px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; }
.cq-like .like__btn:hover { background: var(--k); color: var(--kt); border-color: var(--k); }
.cq-like .like__btn[aria-pressed="true"] { border-color: currentColor; }
/* галерея: картинки одна под другой */
.cq-gallery { display: grid; gap: 0; padding: 0; } /* картинки встык — продолжают друг друга */
.cq-gallery img, .cq-gallery video { width: 100%; height: auto; display: block; }
.cq-pane--right .cq-gallery + .cq-side__list { padding-top: 16px; }
/* факты кейса: подпись мелко, значение крупно */
.cq-facts--case { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cq-facts--case dt { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0; }
.cq-facts--case dd { font-weight: 800; font-size: clamp(22px, 2.4cqi, 36px); line-height: 1; letter-spacing: -0.04em; text-transform: none; max-width: none; }
/* подробности кейса */
.cq-rich { max-width: 62ch; color: inherit; font-weight: 500; font-size: clamp(16px, 1.4cqi, 21px); line-height: 1.4; letter-spacing: -0.02em; }
.cq-rich * { color: inherit; }
.cq-rich p + p, .cq-rich ul, .cq-rich ol { margin-top: .8em; }
.cq-rich ul, .cq-rich ol { padding-left: 1.2em; }
.cq-rich strong { font-weight: 700; }
.cq-rich a { text-decoration: underline; text-underline-offset: 3px; }
.cq-casereview .cq-quote { max-width: 46ch; }
.cq .cq-rich, .cq .cq-rich p, .cq .cq-rich li, .cq .cq-rich a, .cq .cq-rich h3 { color: inherit; font-size: clamp(16px, 1.4cqi, 21px); line-height: 1.4; }
.cq .cq-rich { max-width: 62ch; }
.cq .cq-rich li::marker { color: currentColor; }
.cq-like .like__count { color: inherit; font-weight: 700; }
.cq-like .like__btn[aria-pressed] .like__flame { stroke: currentColor; } /* на красном огонёк — цвета текста, иначе не видно */
.cq-like .like__btn[aria-pressed="true"] .like__flame { fill: currentColor; }
.cq-like .like__btn:hover .like__flame { stroke: currentColor; }

/* шапка закреплена сверху левой колонки (на телефоне — экрана) */
.cq-top--bar { position: sticky; top: 0; z-index: 20; padding: clamp(16px, 2cqi, 32px) var(--pad); background: var(--r); color: var(--p); }
.cq-hero { padding-top: clamp(16px, 3cqi, 40px); }
.cq-hero .cq-top { margin: 0; }
@media (min-width: 1000px) {
  .cq-hero { min-height: calc(100dvh - 40px - 2 * clamp(16px, 2cqi, 32px)); }
}
.cq-pane--left [id] { scroll-margin-top: calc(48px + 2 * clamp(16px, 2cqi, 32px)); } /* разделы не прячутся под закреплённой шапкой */

/* ---------- кейс на телефоне: галерея на весь экран, описание — листом снизу ---------- */
@media (max-width: 999px) {
  .cq--case { display: flex; flex-direction: column; }
  .cq--case .cq-pane--right { display: block; order: -1; padding-bottom: calc(var(--peek, 150px) + 24px); border: 0; }
  .cq--case .cq-side__head, .cq--case .cq-side__actions { display: none; }
  .cq--case .cq-pane--left {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 88dvh; overflow: hidden; overscroll-behavior: contain;
    background: var(--p); box-shadow: 0 -10px 40px rgba(0, 0, 0, .22);
    transform: translateY(calc(100% - var(--peek, 150px) - env(safe-area-inset-bottom))); transition: transform .55s cubic-bezier(.2, .7, 0, 1);
  }
  .cq--case .cq-pane--left:not(.is-open) { cursor: pointer; }
  .cq--case .cq-pane--left.is-open { transform: none; overflow-y: auto; }
  .cq--case .cq-pane--left.is-dragging { transition: none; }
  .cq--case .cq-pane--left .cq-top--bar, .cq--case .cq-hero__meta { display: none; } /* «Назад» и «Информация» — в верхней панели */
  .cq--case .cq-hero--case { padding-top: 30px; }
  .cq--case .cq-hero--case .cq-hero__grid { margin-top: 0 !important; }
  .cq--case .cq-pane--left:not(.is-open) .cq-hero__text { -webkit-mask: linear-gradient(#000 40%, transparent 100%); mask: linear-gradient(#000 40%, transparent 100%); }
  .cq--case .sheet-grip { position: sticky; top: 0; z-index: 25; height: 22px; margin-bottom: -22px; background: transparent; }
  .cq--case .sheet-grip::before { background: rgba(255, 255, 255, .7); border-radius: 0; }
  .case-bar__btn { border-radius: 0; background: #000; color: #fff; font-family: "Manrope", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: -0.01em; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .case-bar__btn[aria-expanded="true"] { background: #fff; color: #000; }
  .cq--case ~ .cq-float-up, .cq--case .cq-float-up { display: none; }
  html.sheet-open { overflow: hidden; }
  .case-bar { display: flex; justify-content: space-between; position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; pointer-events: none; }
  .case-bar__btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; }
  .case-bar__btn svg { width: 14px; height: 14px; }
}

/* ---------- отзывы: бесконечная лента (плывёт сама, стоит при наведении, тянется), колесом внутри не листается ---------- */
.cq .quotes--flow { margin-right: calc(-1 * var(--pad)); -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.cq .quotes--flow .quote { width: min(560px, 78cqi); min-height: 0; padding: 0 clamp(28px, 4cqi, 56px) 0 0; border: 0; border-radius: 0; background: none; gap: 24px; justify-content: space-between; }
.cq .quotes--flow .quote:hover { border: 0; }
.cq .quotes--flow:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }

/* ---------- работы на телефоне: карусель с глубиной, как раньше ---------- */
.cq .m-work { display: none; }
@media (max-width: 999px) {
  .cq .m-work { display: block; margin: 8px calc(-1 * var(--pad)) clamp(40px, 10cqi, 64px); }
  .cq .m-work__track { position: relative; height: calc(min(80vw, 420px) * .625 + 20px); perspective: 900px; overflow: hidden; touch-action: pan-y; user-select: none; }
  .cq .m-work__card { position: absolute; top: 10px; left: 50%; width: min(80vw, 420px); margin-left: calc(min(80vw, 420px) / -2);
    transition: transform .6s cubic-bezier(.2, .7, 0, 1), opacity .6s, filter .6s; -webkit-user-drag: none; }
  .cq .m-work__link { position: relative; display: block; overflow: hidden; background: #000; border-radius: 0; -webkit-user-drag: none; }
  .cq .m-work__link::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
  .cq .m-work__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; pointer-events: none; }
  .cq .m-work__title { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: 24px; line-height: .95; letter-spacing: -0.05em; text-transform: uppercase; text-shadow: none; }
  .cq .m-work .react { position: absolute; right: 10px; bottom: 10px; z-index: 2; transition: opacity .4s; }
  .cq .m-work .like__btn.react__btn { height: 34px; border-radius: 0; background: rgba(0, 0, 0, .45); }
  .cq .m-work__card:not(.is-current) .react { opacity: 0; pointer-events: none; }
  .cq .m-work .card__new { top: 12px; left: 12px; background: var(--k); color: var(--kt); }
}
.cq .quotes--flow .quote, .cq .quotes--flow .quote * { color: inherit; }
.cq .quotes--flow { margin-left: calc(-1 * var(--pad)); padding-left: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 88%, transparent); }
/* огонёк кейса на телефоне: над листом с описанием, справа; на компьютере — в описании */
.cq-like--float { display: none; }
@media (max-width: 999px) {
  .cq--case .cq-hero .cq-like { display: none; }
  .cq-like--float { display: block; position: fixed; right: 12px; bottom: calc(var(--peek, 150px) + 12px + env(safe-area-inset-bottom)); z-index: 44; transition: opacity .3s; }
  .cq-like--float .like__btn { height: 44px; background: #000; color: #fff; border-color: #000; }
  .cq-like--float .like__btn[aria-pressed] .like__flame { stroke: #ff1d00; }
  .cq-like--float .like__btn[aria-pressed="true"] .like__flame { fill: #ff1d00; }
  html.sheet-open .cq-like--float { opacity: 0; pointer-events: none; }
  .cq--case .sheet-grip { height: 34px; margin-bottom: -34px; cursor: grab; }
}

/* ---------- отзывы: по одному, счётчик и полоска до следующего ---------- */
.cq-rev { outline: none; cursor: grab; user-select: none; touch-action: pan-y; }
.cq-rev.is-dragging { cursor: grabbing; }
.cq-rev:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }
.cq-rev__meta { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 2.4cqi, 36px); }
.cq-rev__bar { flex: 1; height: 2px; background: color-mix(in srgb, currentColor 30%, transparent); }
.cq-rev__bar i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.cq-rev__view { overflow: hidden; margin-right: calc(-1 * var(--pad)); }
.cq-rev__row { display: flex; column-gap: clamp(32px, 5cqi, 80px); transition: transform .7s cubic-bezier(.2, .7, 0, 1); will-change: transform; }
.cq-rev .cq-quote { flex: 0 0 min(640px, 82cqi); display: grid; gap: 24px; align-content: start; border: 0; padding: 0; opacity: .3; transition: opacity .5s; }
.cq-rev .cq-quote.is-current { opacity: 1; }
.cq-rev .cq-quote * { color: inherit; }
.m-work__track.is-dragging .m-work__card { transition: none; }
/* без полос прокрутки и без красных линий в правой колонке */
.cq--split .cq-pane { scrollbar-width: none; }
.cq--split .cq-pane::-webkit-scrollbar, .cq-menu::-webkit-scrollbar { display: none; }
.cq-menu { scrollbar-width: none; }
.cq-pane--right { border-left: 0 !important; }
.cq-side__actions { border-top: 0; }
.cq-side__list { padding-top: 16px; }
.cq-pane--right > .cq-gallery:first-child { margin-top: 0; }

.cq-menu nav a:focus:not(:focus-visible) { color: inherit; padding-left: 0; }

/* кнопка меню: подпись справа выровнена к крестику, крестик — крайний справа и не двигается; на телефоне — только крестик */
.cq-menu-btn { padding: 0 2px 0 6px; }
.cq-menu-btn__lbl { justify-items: end; }
@media (max-width: 599px) { .cq-menu-btn__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .cq-menu-btn { width: 44px; justify-content: center; padding: 0; } .cq-burger { width: 28px; } }
/* подвал: если три колонки не помещаются — контакты во всю ширину */
@media (max-width: 899px) { .cq-cols > div:last-child { grid-column: 1 / -1; } }
/* язык и тема — одинаковые контурные квадраты в цвет текста шапки, в любой теме; заливка только при наведении мышью
   (на телефоне после нажатия «наведение» залипает — там без заливки) */
:root .cq .cq-top .lang-toggle, :root .cq .cq-top .theme-toggle { width: 40px; min-width: 40px; height: 40px; padding: 0; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 0; font-weight: 800; font-size: 12.4px; }
:root .cq .cq-top .lang-toggle:hover, :root .cq .cq-top .theme-toggle:hover { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  :root .cq .cq-top .lang-toggle:hover, :root .cq .cq-top .theme-toggle:hover { background: var(--p); color: var(--r); border-color: var(--p); }
}
:root .cq .cq-top .theme-toggle svg { width: 16px; height: 16px; }

/* ---------- окно заявки в бело-красном стиле: красная панель, белый текст (в тёмной теме — чёрный), чёрная кнопка ---------- */
body:has(.cq) .lead { --cr: #ffffff; --cp: #000000; --ck: #000000; --ckt: #ffffff; --crgb: 0, 0, 0; } /* контрастное окно: белое со чёрным текстом */
:root[data-theme="dark"] body:has(.cq) .lead { --cr: #000000; --cp: #ffffff; --ck: #ffffff; --ckt: #000000; --crgb: 255, 255, 255; } /* в тёмной — чёрное с белым */
:root body:has(.cq) .lead .lead__panel {
  --red: #ff1d00; --bg: var(--cr); --fg: var(--cp); --rgb: var(--crgb); --gray: rgba(var(--crgb), .8); --line: rgba(var(--crgb), .55);
  background: var(--cr); color: var(--cp); border-radius: 0; box-shadow: none; color-scheme: light;
}
:root body:has(.cq) .lead::backdrop { background: rgba(0, 0, 0, .55); }
:root body:has(.cq) .lead .brand__name .t-h1 { font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: uppercase; color: var(--cp); }
:root body:has(.cq) .lead .brand__name .logo-mark { display: none; }
:root body:has(.cq) .lead .brand__name .cap-arrow { width: 11px; height: 11px; }
:root body:has(.cq) .lead .lead__heading { font-weight: 500; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.045em; text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .1em; color: var(--cp); }
:root body:has(.cq) .lead .lead__sub { color: var(--cp); font-weight: 500; font-size: 16px; line-height: 1.35; max-width: 280px; }
:root body:has(.cq) .lead .lead__img { border-radius: 0; }
:root body:has(.cq) .lead .lead__close { color: var(--cp); border-radius: 0; }
:root body:has(.cq) .lead .lead__close:hover { background: transparent; opacity: .7; }
:root body:has(.cq) .lead .lead__close-arrow { filter: none; }
:root body:has(.cq) .lead .field > label, :root body:has(.cq) .lead .field__label { font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: uppercase; color: var(--cp); }
:root body:has(.cq) .lead .lead__panel .field input, :root body:has(.cq) .lead .lead__panel .field select, :root body:has(.cq) .lead .lead__panel .field textarea {
  background-color: transparent; color: var(--cp); border: 1.5px solid rgba(var(--crgb), .6); border-radius: 0; font-weight: 500; }
:root body:has(.cq) .lead .lead__panel .field input::placeholder, :root body:has(.cq) .lead .lead__panel .field textarea::placeholder { color: rgba(var(--crgb), .6); }
:root body:has(.cq) .lead .lead__panel .field input:focus, :root body:has(.cq) .lead .lead__panel .field select:focus, :root body:has(.cq) .lead .lead__panel .field textarea:focus { border-color: var(--cp); }
:root body:has(.cq) .lead .lead__panel .field select option { color: #000; background: #fff; }
:root body:has(.cq) .lead .chip { border: 1.5px solid rgba(var(--crgb), .6); color: var(--cp); background: transparent; border-radius: 0; font-weight: 500; }
:root body:has(.cq) .lead .chip:hover { border-color: var(--cp); }
:root body:has(.cq) .lead .chip:has(input:checked), :root body:has(.cq) .lead .chip--promo { background: var(--cp); border-color: var(--cp); color: var(--cr); }
:root body:has(.cq) .lead .chip:has(input:focus-visible) { outline: 2px solid var(--cp); }
:root body:has(.cq) .lead .lead__submit { height: 54px; border: 0; border-radius: 0; background: var(--ck); color: var(--ckt); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: -0.01em; box-shadow: none; }
:root body:has(.cq) .lead .lead__form:not(.is-done) .lead__submit.has-progress:not(.s-load):not(.s-check):not(.s-done) { background: var(--ck); color: var(--ckt); box-shadow: none; }
:root body:has(.cq) .lead .lead__submit.has-progress::before { background: #ff1d00; }
:root body:has(.cq) .lead .lead__submit .m-left { color: var(--ckt); }
:root body:has(.cq) .lead .lead__form .lead__submit.s-load, :root body:has(.cq) .lead .lead__form .lead__submit.s-check { background: var(--ck); color: var(--ckt); border-radius: 0; }
:root body:has(.cq) .lead .lead__submit.s-done, :root body:has(.cq) .lead .lead__form.is-done .lead__submit { background: var(--cp); color: var(--cr); border-radius: 0; }
:root body:has(.cq) .lead .form-error, :root body:has(.cq) .lead .error { color: var(--cp); font-weight: 600; }
:root body:has(.cq) .lead .lead__close-arrow { filter: invert(1); }
:root[data-theme="dark"] body:has(.cq) .lead .lead__close-arrow { filter: none; }
/* окно заявки: без подписи «Начать проект»; выбранные услуги — красной плашкой, без галочки */
:root body:has(.cq) .lead .lead__intro > .brand__row { display: none; }
:root body:has(.cq) .lead .chip:has(input:checked), :root body:has(.cq) .lead .chip--promo { background: #ff1d00; border-color: #ff1d00; color: #fff; padding: 0 16px; }
:root body:has(.cq) .lead .chip .chip__check { display: none; }
/* картинка в окне заявки — вывеска со знаком, знак по центру */
:root body:has(.cq) .lead .lead__img { object-position: 50% 45%; }
/* заголовок первого экрана: больше интерлиньяж, чтобы Й и Ё не задевали строку выше */
.cq-h1 { line-height: 1.1; }
/* окно заявки на телефоне: закрыть — крестиком, как на компьютере, а не стрелкой */
@media (max-width: 809px) {
  :root body:has(.cq) .lead .lead__close svg { display: block; width: 26px; height: 26px; }
  :root body:has(.cq) .lead .lead__close-arrow { display: none; }
}
/* плашка со скидкой: без старой анимации появления — её ведёт скрипт */
.cq-base .egg__prize { animation: none; }
/* кнопка в плашке со скидкой — красная, чтобы не сливалась с чёрной плашкой */
:root .cq .egg__prize .egg__cta { background: var(--r); color: #fff; height: 46px; padding: 0 18px; }
:root .cq .egg__prize .egg__cta:hover { background: #fff; color: #000; }
:root[data-theme="dark"] .cq .egg__prize .egg__cta:hover { background: #000; color: #fff; }

/* Отзывы на главной: ссылка на кейс под цитатой; роль в карточке команды */
.cq-rev figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cq-rev figcaption b { margin-right: 0; }
.cq-quote__case { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cq-quote__case .cap-arrow { width: .8em; height: .8em; }
@media (hover: hover) and (pointer: fine) { .cq-quote__case:hover { text-decoration-thickness: 2px; } }
.cq-mate__role { margin-top: -6px; opacity: .85; }

/* Первый экран главной — в цвет темы (тёмная — чёрный, светлая — белый), надпись fonj studio красная */
.cq-plain { background: var(--p); color: var(--ink); }
.cq-plain .cq-wordmark { color: var(--r); }
