/* ==========================================================================
   SECTIONS — hero, портфолио, услуги, FAQ, контакты, модалка, cookie
   ========================================================================== */

/* ==================== HERO ==================== */

.hero {
  flex-direction: column;
  text-align: center;
  padding-bottom: 120px; /* место под cookie-плашку */
  --media: min(58vh, 84vw, 680px);
}

.hero__media {
  position: relative;
  z-index: 0;
  width: var(--media);
  height: var(--media);
  transition: transform 1.6s var(--ease);
}

.hero__video,
.hero__breath,
.hero__flash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 48%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 48%, transparent 100%);
}
.hero__video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.has-video .hero__video { opacity: 1; }

/* мягкое «дыхание» света после прелоадера */
.hero__breath {
  background: radial-gradient(42% 34% at 50% 16%, rgba(255, 160, 80, .32), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
body:not(.is-loading) .hero__breath { animation: breath 7s ease-in-out 1.5s infinite; }

/* вспышка для короткой версии прелоадера */
.hero__flash {
  background: radial-gradient(40% 40% at 50% 45%, rgba(255, 200, 150, .9), rgba(255, 107, 26, .35) 45%, transparent 75%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.is-flash .hero__flash { animation: flash 1.1s var(--ease-out) both; }

/* запасной прелоадер: монограмма «Q» */
.hero__fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 28px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .4);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
.hero__fallback .ico { width: 44px; height: 44px; stroke-width: 1; }
.show-fallback .hero__fallback { opacity: 1; animation: pulse-glow 1.8s ease-in-out infinite; }
.has-video .hero__fallback { opacity: 0; animation: none; }

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--media) * -.14);
}

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}

.hero__sub {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* меняющееся слово в уголках: ширина плавно подстраивается под слово */
.rotator {
  position: relative;
  display: inline-block;
  height: 1.12em;
  vertical-align: bottom;
  white-space: nowrap;
  transition: width .7s var(--ease);
}
.rotator__word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(.45em);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), filter .6s;
}
.rotator__word.is-in { opacity: 1; filter: none; transform: none; }
.rotator__word.is-out { opacity: 0; filter: blur(8px); transform: translateY(-.45em); }

.hero__offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero__offer .ico { color: var(--accent); }

/* ---------- Мини-меню «Обсудить проект» ---------- */

.cta { position: relative; }

.cta__pop {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(14, 10, 8, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 26, .3),
    0 24px 50px -16px rgba(0, 0, 0, .9),
    0 0 40px -14px rgba(255, 107, 26, .5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px) scale(.94);
  transform-origin: 50% 0;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.cta.is-up .cta__pop {
  top: auto;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 8px) scale(.94);
  transform-origin: 50% 100%;
}
.cta.is-open .cta__pop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
}
.cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 84px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  transition: background .3s, color .3s;
}
.cta__item:hover,
.cta__item:focus-visible { background: rgba(255, 107, 26, .07); color: var(--text); }
.cta__item .ico-tile { width: 42px; height: 42px; }

/* ==================== ПОРТФОЛИО ==================== */

.pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}
.pf-filter .pill__btn { padding: 9px 16px; font-size: 13px; }
.pf-filter .pill__btn[hidden] { display: none; }

/* технологии под портфолио */
.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: clamp(14px, 2.6vh, 28px);
}
.tech li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12.5px;
  letter-spacing: .05em;
  transition: color .4s;
}
.tech li:hover { color: var(--text); }
.tech .ico { width: 19px; height: 19px; color: var(--accent); }

.pf {
  --cw: max(300px, min(44vw, 700px, calc((100vh - 450px) * 1.55)));
  --step: .64;
  margin-top: clamp(18px, 3.4vh, 44px);
}

.pf__stage {
  position: relative;
  height: calc(var(--cw) * .625 + 34px);
  perspective: 1800px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.pf-card {
  --off: 0;
  --abs: 0;
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cw);
  transform:
    translateX(-50%)
    translateX(calc(var(--off) * var(--cw) * var(--step)))
    translateZ(calc(var(--abs) * -220px))
    rotateY(calc(var(--off) * -24deg));
  opacity: calc(1 - var(--abs) * .38);
  filter: brightness(calc(1 - var(--abs) * .32));
  z-index: calc(10 - var(--abs));
  transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
  cursor: pointer;
}
.pf-card.no-tr { transition: none; }
.pf-card.is-filtered { opacity: 0; pointer-events: none; }
.pf-card[data-abs="2"] { pointer-events: none; }

.pf-card__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0a09;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 40px 80px -40px rgba(0, 0, 0, .9);
  transition: box-shadow .8s, transform .6s var(--ease-out);
}
.pf-card.is-active .pf-card__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 26, .35),
    0 50px 90px -40px rgba(255, 107, 26, .38),
    0 0 0 1px rgba(255, 107, 26, .12);
}
.pf-card.is-active:hover .pf-card__frame { transform: translateY(-6px); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.browser-bar i:first-child { background: rgba(255, 107, 26, .7); }
.browser-bar__url {
  flex: 1;
  max-width: 260px;
  height: 18px;
  margin: 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: var(--dim);
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* экран карточки: при наведении длинный скриншот сам прокручивается */
.pf-card__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0a09;
}
.pf-card__long {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: top .9s var(--ease-out), transform .9s var(--ease-out), opacity .5s;
}
.pf-card.is-active.is-live .pf-card__long {
  top: 100%;
  opacity: 1;
  transform: translateY(-100%);
  transition: top var(--scroll-dur, 6s) linear .3s, transform var(--scroll-dur, 6s) linear .3s, opacity .5s;
}

.pf-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0d0a09;
  pointer-events: none;
}

.pf-card__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(10, 7, 6, .75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .4);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .04em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.pf-card__hint .ico { color: var(--accent); }
.pf-card.is-active:hover .pf-card__hint { opacity: 1; transform: translate(-50%, 0); }

.pf__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, calc(var(--cw) * 1.3));
  margin: clamp(18px, 3vh, 34px) auto 0;
}

.pf__info { min-width: 0; transition: opacity .4s, transform .5s var(--ease-out); }
.pf__info.is-switching { opacity: 0; transform: translateY(8px); }
.pf__title { font-size: 21px; font-weight: 300; letter-spacing: -.01em; }
.pf__meta { margin-top: 2px; color: var(--dim); font-size: 13px; }

.pf__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf__tags li {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .25);
}

.pf__controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pf__counter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .1em;
}
.pf__current { color: var(--text); font-weight: 500; }
.pf__progress {
  position: relative;
  width: 70px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}
.pf__progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 107, 26, .9);
}
.pf.is-playing .pf__progress i { animation: pf-progress 5s linear forwards; }
.pf.is-paused .pf__progress i { animation-play-state: paused; }

/* ==================== УСЛУГИ ==================== */

#services .screen__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
#services .sec-sub { margin-left: auto; margin-right: auto; }
#services .sec-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.tabs { margin-top: clamp(18px, 3vh, 30px); }

.tab-panels { width: 100%; margin-top: clamp(18px, 3vh, 30px); text-align: left; }
/* fill-mode backwards: после анимации панель не держит слой и не ломает размытие стекла */
.tab-panel.is-active { animation: panel-in .7s var(--ease-out) backwards; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
}
.svc__title { margin: 20px 0 14px; font-size: 18px; font-weight: 400; }
.svc .list { flex: 1; }
.svc__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.svc__foot > div { display: flex; flex-direction: column; gap: 4px; }
.svc__foot .btn { padding: 0 16px; }

.plan__order { width: 100%; margin-top: 22px; }

/* комплекты */
.bundle-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12.5px;
}
.bundle-note .ico { flex: none; color: var(--accent); }
.bundle__what { min-height: 3em; margin-top: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.bundle__price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.bundle__price s { color: var(--dim); font-size: 15px; text-decoration-color: rgba(255, 107, 26, .7); }
.bundle__price b { font-size: 36px; font-weight: 200; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.bundle__save {
  align-self: flex-start;
  margin: 6px 0 18px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  background: rgba(255, 107, 26, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .35);
}
.fix__order { align-self: flex-start; margin-top: 22px; }
.fix__main { display: flex; flex-direction: column; align-items: flex-start; }

/* гарантии рядом с ценами */
.guarantees {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 2.4vh, 22px);
}
.guarantees li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .22);
}
.guarantees .ico { color: var(--accent); }
.term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}
.term .ico { color: var(--accent); }

/* переключатель 6 / 12 мес */
.period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.period__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
  transition: color .4s;
  cursor: pointer;
}
.period__label.is-active { color: var(--text); }
.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent);
  background: rgba(255, 107, 26, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .35);
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .35);
  transition: background .4s;
}
.switch i {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF8A3D, #FF6B1A);
  box-shadow: 0 0 14px rgba(255, 107, 26, .8);
  transition: transform .5s var(--ease);
}
.switch[aria-checked="true"] { background: rgba(255, 107, 26, .16); }
.switch[aria-checked="true"] i { transform: translateX(26px); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}
.plan { display: flex; flex-direction: column; padding: 26px 26px 24px; }
.plan .list { flex: 1; }
.plan__head { display: flex; align-items: center; gap: 14px; }
.plan__name { font-size: 20px; font-weight: 400; }
.plan__price { margin-top: 20px; color: var(--dim); font-size: 14px; }
.plan__price b {
  font-size: 40px;
  font-weight: 200;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plan__total { min-height: 1.5em; margin-top: 2px; color: var(--dim); font-size: 12.5px; }
.plan__stats { margin: 16px 0 18px; }
.plan__stats li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.plan__stats b { color: var(--text); font-weight: 500; }

.plan--accent::after {
  background: radial-gradient(80% 60% at 50% 105%, rgba(255, 107, 26, .3), transparent 72%);
}
.plan--accent { box-shadow: 0 30px 70px -30px rgba(255, 107, 26, .4); }

/* бегущий свет по рамке у карточек «Популярный» / «Выгоднее всего» */
@property --run {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.plan--accent::before {
  background:
    conic-gradient(from var(--run), transparent 0deg 250deg, rgba(255, 138, 61, .2) 290deg, #FFB27A 335deg, rgba(255, 138, 61, .2) 350deg, transparent 360deg),
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 138, 61, .95), transparent 65%),
    linear-gradient(140deg, rgba(255, 107, 26, .6) 0%, rgba(255, 107, 26, .12) 28%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, .03) 100%);
  animation: run-border 5s linear infinite;
}
@keyframes run-border { to { --run: 360deg; } }
.plan__flag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  color: #160903;
  background: linear-gradient(180deg, #FF8A3D, #FF6B1A);
}

.fix {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px;
}
.fix__title { margin-top: 20px; font-size: 24px; font-weight: 300; }
.fix__text { margin-top: 12px; color: var(--muted); font-size: 14px; }
.fix__price { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; }
.fix__price .price { font-size: 30px; font-weight: 200; }
.fix__unit { color: var(--dim); font-size: 13px; }
.fix__note { margin-top: 6px; color: var(--accent); font-size: 12.5px; }
.fix__tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}
.fix__tasks li {
  position: relative;
  padding: 14px 14px 14px 34px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  background: rgba(255, 255, 255, .015);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s, color .4s;
}
.fix__tasks li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 107, 26, .9);
}
.fix__tasks li:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .3); }

/* сравнение «Фрилансер / Агентство / Qmup» */
.compare { max-width: 1060px; margin: 0 auto; padding: 10px 14px; }
.compare__scroll { overflow-x: auto; scrollbar-width: none; }
.compare__scroll::-webkit-scrollbar { display: none; }
.compare table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.compare th,
.compare td { padding: 12px 14px; text-align: left; vertical-align: middle; font-size: 13.5px; }
/* иконки в одну вертикальную линию, перенос текста — ровно под текстом */
.compare .cell { display: flex; align-items: flex-start; gap: 9px; }
.compare .cell .ico { display: block; flex-shrink: 0; margin-top: 2px; }
.compare thead th { padding-top: 16px; color: var(--dim); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.compare tbody th { width: 22%; color: var(--text); font-weight: 400; }
.compare tbody td { color: var(--dim); }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.mk-yes { color: var(--accent); }
.mk-no { color: rgba(245, 240, 235, .3); }
/* колонка Qmup подсвечена */
.compare .is-us { color: var(--text); background: rgba(255, 107, 26, .06); }
.compare thead .is-us { color: var(--accent); border-radius: 14px 14px 0 0; box-shadow: inset 0 1px 0 rgba(255, 107, 26, .45); }
.compare tbody tr:last-child .is-us { border-radius: 0 0 14px 14px; }

/* ==================== FAQ ==================== */

.faq-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.faq-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 20px;
  max-width: 440px;
}
.faq-note > div { flex: 1; min-width: 160px; }
.faq-note__title { font-size: 15px; }
.faq-note__text { color: var(--muted); font-size: 13px; }

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq__item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .5s;
}
.lite .faq__item { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 15, 13, .82); }
/* оранжевое размытое свечение слева — только у раскрытого и наведённого */
.faq__item::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -90px;
  top: 50%;
  width: 300px;
  height: 160px;
  margin-top: -80px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 26, .55), rgba(194, 65, 12, .18) 55%, transparent);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .6s, transform .8s var(--ease-out);
  transform: translateX(-30px);
}
.faq__item:hover::before,
.faq__item.is-open::before { opacity: 1; transform: none; }
.faq__item.is-open { box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .28); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.4;
}
.faq__q:focus-visible { outline-offset: -3px; border-radius: 16px; }

.faq__plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq__plus::before,
.faq__plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transition: transform .5s var(--ease);
}
.faq__plus::after { transform: rotate(90deg); }
.is-open .faq__plus::after { transform: rotate(0deg); }
.is-open .faq__plus::before { transform: rotate(180deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 60px 22px 24px;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.is-open .faq__a { grid-template-rows: 1fr; }
.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .15s; }

/* ==================== КОНТАКТЫ ==================== */

.contacts { overflow: hidden; }

/* слово стоит сразу под карточкой, карточка слегка перекрывает его верх */
.contacts__word {
  position: relative;
  z-index: -1;
  display: flex;
  justify-content: center;
  margin-top: calc(-1 * clamp(.8rem, 2.6vw, 3rem));
  pointer-events: none;
  user-select: none;
}
.contacts__word span {
  position: relative;
  display: block;
  font-size: clamp(5rem, 16vw, 19rem);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17) 0%, rgba(255, 220, 190, .06) 55%, rgba(255, 255, 255, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* световые полосы из-под слова */
.contacts__beams {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 120%;
  height: 160%;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from 300deg at 50% 100%,
      rgba(255, 107, 26, 0) 0deg,
      rgba(255, 120, 40, .42) 1.2deg,
      rgba(255, 107, 26, 0) 3deg,
      rgba(255, 107, 26, 0) 7deg,
      rgba(255, 200, 160, .1) 8deg,
      rgba(255, 107, 26, 0) 9.5deg,
      rgba(255, 107, 26, 0) 13deg);
  -webkit-mask-image: radial-gradient(55% 85% at 50% 100%, #000 15%, transparent 72%);
  mask-image: radial-gradient(55% 85% at 50% 100%, #000 15%, transparent 72%);
  filter: blur(3px);
  opacity: .9;
  animation: beams 14s ease-in-out infinite alternate;
}

.contacts .screen__inner { z-index: 1; }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 40px 34px;
  text-align: center;
}
.contact-card__mark { margin-bottom: 22px; }
.contact-card .sec-title { font-size: clamp(1.8rem, 2.9vw, 2.8rem); }
.contact-card .sec-sub { margin-left: auto; margin-right: auto; }
.contact-card .sec-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* лицо студии */
.founder {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-top: 24px;
  padding: 16px 26px 16px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px var(--line);
}
.founder__photo {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 107, 26, .6), 0 0 0 5px rgba(255, 107, 26, .08), 0 0 30px -4px rgba(255, 107, 26, .6);
}
.founder__quote { color: var(--text); font-size: 16.5px; font-weight: 300; line-height: 1.5; }
.founder__name { margin-top: 6px; color: var(--dim); font-size: 13.5px; }
.founder__name b { color: var(--muted); font-weight: 500; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 30px;
}
.contact-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12.5px;
}
.contact-hours .ico { flex: none; color: var(--accent); }
.contact-link {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}
.contact-link__a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px 18px;
  border-radius: inherit;
}
.contact-link b { margin-top: 4px; font-size: 15px; font-weight: 500; }
.contact-link__a span:last-child { color: var(--dim); font-size: 12.5px; }

/* кнопка «скопировать ник» */
.contact-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--dim);
  transition: color .3s, background .3s;
}
.contact-copy:hover { color: var(--accent); background: rgba(255, 107, 26, .08); }
.contact-copy:hover .ico { animation: ico-draw 1.1s var(--ease-out) both; }

.referral {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.referral b { color: var(--accent); font-weight: 500; }
.referral-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 18px;
}
.referral-row .referral { margin-top: 0; }
.share-btn { height: 36px; padding: 0 16px; gap: 8px; }
.share-btn .ico { color: var(--accent); }
.referral .ico { color: var(--accent); }

/* всплывающее уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  background: rgba(14, 10, 8, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .4), 0 16px 40px -12px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.toast .ico { color: var(--accent); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 0 16px;
  color: var(--dim);
  font-size: 12px;
}
.footer i { font-style: normal; opacity: .5; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent); }

/* ==================== МОДАЛКА ПРОЕКТА ==================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s, visibility 0s linear .45s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .45s, visibility 0s;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  width: min(1180px, 100%);
  max-height: min(88vh, 820px);
  padding: 34px 26px;
  background: rgba(14, 10, 9, .78);
  transform: translateY(30px) scale(.97);
  transition: transform .6s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 3; }

/* мокапы: ноутбук + телефон поверх него справа внизу */
.devices {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 0 10% 6% 5%;
}
.laptop { position: relative; }
.laptop__screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  padding: 10px 10px 0;
  border-radius: 16px 16px 0 0;
  background: #050403;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 0 0 1px rgba(255, 107, 26, .18),
    0 40px 80px -40px rgba(255, 107, 26, .4);
}
.laptop__screen .browser-bar { border-radius: 8px 8px 0 0; }
.laptop__base {
  position: relative;
  height: 14px;
  margin: 0 -6%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #3a332f, #171311 60%, #0c0a09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 30px -12px rgba(0, 0, 0, .9);
}
.laptop__base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, .55);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  aspect-ratio: 9 / 19;
  padding: 6px;
  border-radius: 24px;
  background: #050403;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    0 0 0 1px rgba(255, 107, 26, .3),
    0 30px 60px -20px rgba(0, 0, 0, .95),
    0 0 50px -10px rgba(255, 107, 26, .35);
}
.phone::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 11px;
  z-index: 2;
  width: 28%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050403;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #0d0a09;
}
.phone__screen::-webkit-scrollbar { display: none; }

.modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 26, .6) transparent;
  background: #0d0a09;
}
.modal__scroll::-webkit-scrollbar { width: 6px; }
.modal__scroll::-webkit-scrollbar-thumb { background: rgba(255, 107, 26, .6); border-radius: 3px; }
.modal__img,
.modal__img-m { width: 100%; height: auto; }

/* ==================== МИНИ-МЕНЮ «ЗАКАЗАТЬ» ==================== */

.order-pop {
  position: fixed;
  z-index: 75;
  width: 300px;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: rgba(14, 10, 8, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 26, .3),
    0 24px 50px -16px rgba(0, 0, 0, .9),
    0 0 40px -14px rgba(255, 107, 26, .5);
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.order-pop.is-open { opacity: 1; transform: none; }
.order-pop.is-up { transform-origin: 50% 100%; }
.order-pop__title { padding: 0 4px; color: var(--text); font-size: 13.5px; text-align: center; }
.order-pop__links { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.order-pop__note {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.45;
}
.order-pop__note .ico { margin-top: 1px; color: var(--accent); }

/* ==================== 3D-НАКЛОН КАРТОЧЕК ==================== */

.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .7s var(--ease-out);
}
.tilt.is-tilting {
  --lift: -4px;
  transition: transform .18s ease-out;
}

.modal__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 20px 0;
  min-width: 0;
}
.modal__title {
  margin-top: 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.modal__desc { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.modal__tags { margin-top: 18px; }
.modal__link { align-self: flex-start; margin-top: 30px; }
.modal__link.is-disabled { pointer-events: none; filter: grayscale(1); opacity: .45; }

/* ==================== COOKIE ==================== */

/* тонкая плашка в одну строку — ниже зоны контента экранов */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  padding: 8px 8px 8px 10px;
  border-radius: 18px;
  background: rgba(16, 11, 9, .72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.cookie.is-shown { opacity: 1; transform: none; }
.cookie a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie .ico-tile { width: 32px; height: 32px; border-radius: 10px; }
.cookie .ico-tile .ico { width: 18px; height: 18px; }
.cookie .btn--sm { height: 34px; padding: 0 16px; white-space: nowrap; }
.cookie__btns { display: flex; flex: none; gap: 8px; }

/* липкая кнопка «Написать» — только на телефоне */
.fab-write { display: none; }
@media (max-width: 767px) {
  .fab-write {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    box-shadow: 0 14px 30px -10px rgba(255, 107, 26, .6);
  }
  .has-cookie .fab-write { bottom: 118px; }
  .cookie { flex-wrap: wrap; }
  .cookie__btns { width: 100%; justify-content: flex-end; }
}

/* ==================== ПРЕЛОАДЕР ==================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 56px);
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(120, 45, 10, .35), transparent 70%),
    var(--bg);
  transition: opacity 1s var(--ease-out), visibility 0s linear 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, .22), rgba(194, 65, 12, .07) 45%, transparent 70%);
  animation: loader-breath 2.6s ease-in-out infinite;
  pointer-events: none;
}

.loader__logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 1s var(--ease-out), filter 1s;
}
.loader.is-done .loader__logo { transform: scale(1.08); filter: blur(6px); }

/* монограмма Q внутри кольца-индикатора */
.loader__mark {
  width: clamp(104px, 15vh, 136px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}
.loader__track { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.loader__ring {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  filter: drop-shadow(0 0 4px rgba(255, 107, 26, .9));
}
.loader__q,
.loader__tail {
  stroke: #FF7A2E;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 107, 26, .7));
}
.loader__q { animation: loader-draw 1.3s var(--ease-out) .15s forwards; }
.loader__tail { animation: loader-draw .6s var(--ease-out) 1.1s forwards; }

/* надпись Qmup: буквы появляются по очереди, «хром» как в видео */
.loader__word {
  display: flex;
  margin-top: clamp(16px, 3vh, 26px);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.01em;
}
.loader__word span {
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #ece6e0 38%, #8d8680 54%, #e2dbd5 68%, #b8b0aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 -1px 0 rgba(255, 140, 60, .7));
  opacity: 0;
  transform: translateY(.3em);
  animation: loader-letter .9s var(--ease-out) forwards;
}
.loader__word span:nth-child(1) { animation-delay: .45s; }
.loader__word span:nth-child(2) { animation-delay: .55s; }
.loader__word span:nth-child(3) { animation-delay: .65s; }
.loader__word span:nth-child(4) { animation-delay: .75s; }

.loader__sub {
  margin-top: 10px;
  padding-left: .5em;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .5em;
  text-transform: uppercase;
  opacity: 0;
  animation: loader-fade .9s ease 1.05s forwards;
}

.loader__pct {
  position: relative;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: loader-fade .6s ease .3s forwards;
}
.loader__pct b { display: inline-block; min-width: 2.2em; text-align: right; color: var(--text); font-weight: 400; }

/* пока идёт загрузка — сайт под прелоадером не показываем */
.is-loading .site-header { opacity: 0; transform: translateY(-14px); pointer-events: none; transition: none; }
.is-loading .sidenav { opacity: 0; pointer-events: none; transition: none; }
.is-loading .bg__lines,
.is-loading .bg__sparks { opacity: 0; }
.is-loading .hero__media { transform: scale(.94); }
.bg__sparks { transition: opacity 2s; }
.is-loading,
.modal-open,
.mnav-open { overflow: hidden; }

/* ==================== АДАПТИВ ==================== */

/* низкие экраны ноутбуков: «Контакты» компактнее, чтобы не сильно уменьшать масштаб */
@media (min-width: 768px) and (max-height: 760px) {
  .contact-card { padding: 26px 32px 24px; }
  .contact-card__mark { width: 52px; height: 52px; margin-bottom: 12px; }
  .contact-card .sec-sub { margin-top: 10px; }
  .founder { margin-top: 14px; padding: 12px 22px 12px 12px; }
  .founder__photo { width: 72px; height: 72px; }
  .contact-links { margin-top: 18px; }
  .contact-link__a { padding: 14px 12px 12px; gap: 6px; }
  .referral-row { margin-top: 12px; }
  .hero { --media: min(50vh, 84vw, 680px); }
  .contacts__word { margin-top: -7vh; }
  .contacts__word span { font-size: clamp(5rem, min(16vw, 30vh), 19rem); }
}

@media (max-width: 1199px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc { padding: 22px 20px 18px; }
}

@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: 1fr; gap: 26px; }
  .faq-note { display: none; }
  .plan { padding: 22px 20px; }
  .plan__price b { font-size: 34px; }
  .fix { grid-template-columns: 1fr; gap: 26px; }
  .modal__panel { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 18px; overflow-y: auto; align-content: start; }
  .modal__info { padding: 0 6px 6px; }
  .devices { width: min(100%, 620px); margin: 24px auto 0; }
}

@media (max-width: 767px) {
  .hero { --media: min(88vw, 56vh); }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__sub { font-size: 14.5px; }
  .hero__actions { flex-direction: column; align-items: center; }
  /* на телефоне меняющееся слово всегда на своей строке */
  .hero__mark { display: table; margin: 0 auto; }
  .hero__offer { max-width: 300px; font-size: 13px; text-align: left; }

  .pf-head { flex-direction: column; align-items: stretch; }
  /* капсулы фильтра и вкладок прокручиваются по горизонтали, если не влезают */
  .pf-filter,
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pf-filter::-webkit-scrollbar,
  .tabs::-webkit-scrollbar { display: none; }
  .pf-filter { align-self: flex-start; }
  .pf-filter .pill__btn { padding: 8px 13px; font-size: 12.5px; }
  .tech { gap: 10px 20px; }
  .founder { gap: 14px; padding: 14px; }
  .founder__photo { width: 68px; height: 68px; }
  .founder__quote { font-size: 15px; }

  .pf { --cw: 80vw; --step: .5; }
  .pf-card { transform:
    translateX(-50%)
    translateX(calc(var(--off) * var(--cw) * var(--step)))
    translateZ(calc(var(--abs) * -260px))
    rotateY(calc(var(--off) * -18deg)); }
  .pf__bar { flex-direction: column; align-items: center; text-align: center; }
  .pf__tags { justify-content: center; }

  #services .screen__inner { text-align: left; align-items: stretch; }
  #services .sec-head { text-align: center; margin: 0 auto; }
  .tabs { align-self: center; }
  .tabs .pill__btn { padding: 9px 13px; font-size: 12.5px; }
  .svc-grid, .plan-grid { grid-template-columns: 1fr; }
  .period { flex-wrap: wrap; }
  .fix { padding: 24px 20px; }
  .fix__tasks { grid-template-columns: 1fr; }

  .faq__q { padding: 18px 18px; font-size: 15px; }
  .faq__a p { padding: 0 18px 18px; }

  .contacts { flex-direction: column; padding-bottom: 0; }
  .contact-card { padding: 30px 20px 24px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-link__a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 52px 14px 16px; text-align: left; }
  .contact-link b { margin: 0; }
  .contact-link__a span:last-child { margin-left: auto; }
  .contact-copy { top: 50%; right: 12px; transform: translateY(-50%); }
  .referral { flex-wrap: wrap; justify-content: center; text-align: center; }
  /* сравнение на телефоне: каждая строка — карточка, колонки подписаны */
  .compare { padding: 6px 16px; }
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 14px 0; }
  .compare tbody tr + tr { border-top: 1px solid var(--line); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody th { width: auto; padding: 0 0 8px; font-size: 15px; }
  .compare tbody td { display: flex; flex-wrap: wrap; align-items: center; padding: 5px 0; text-align: left; }
  .compare tbody td::before {
    flex-basis: 100%;
    margin-bottom: 2px;
    color: var(--dim);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .compare tbody td:nth-child(2)::before { content: 'Фрилансер'; }
  .compare tbody td:nth-child(3)::before { content: 'Агентство'; }
  .compare tbody td:nth-child(4)::before { content: 'Qmup'; color: var(--accent); }
  .compare tbody .is-us,
  .compare tbody tr:last-child .is-us { margin-top: 4px; padding: 8px 10px; border-radius: 10px; }
  .contacts__word { margin-top: -10px; }
  .footer { position: relative; bottom: auto; padding: 18px 16px 28px; }

  .modal { padding: 12px; }
  .modal__panel { max-height: 92vh; padding: 14px; }
  .devices { margin-top: 44px; padding: 0 16% 6% 5%; }
  .phone { width: 27%; border-radius: 18px; padding: 4px; }
  .phone__screen { border-radius: 14px; }
  .laptop__screen { padding: 6px 6px 0; border-radius: 10px 10px 0 0; }
  .laptop__screen .browser-bar { height: 22px; }
  .order-pop { width: min(300px, calc(100vw - 24px)); }
  .modal__close { top: 10px; right: 10px; width: 42px; height: 42px; }

  .cookie { left: 12px; right: 12px; bottom: 12px; border-radius: 18px; padding: 12px; white-space: normal; }
  .cookie p { flex: 1; }
}
