/* Общие стили terrikonlabs.com (главная + about).
   Направление «04 Kinetic»: тёмная страница, движущаяся типографика.
   Цвета — токены бренда с прежнего сайта, шрифт — Montserrat (вариативный 100–900,
   на нём держатся анимации толщины). */
:root {
  color-scheme: dark;
  --ink: #17140F;
  --ink-2: #211D16;
  --ink-3: #100E0A;
  --ink-line: #322C23;
  --ink-line-2: #4A433A;
  --orange: #F97C1B;
  --orange-deep: #C75E10;
  --paper: #FDFCFA;
  --light: #F5F1EA;
  --line: #E7E2D9;
  --muted: #7D766B;
  --muted-dark: #A39A8C;
  --muted-on-light: #6B645A;
  --gold: #C9A97F;
  --live-bg: #2B3A28;
  --live: #A8D5A2;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--light);
  font-size: 16px;
  line-height: 1.5;
  /* clip, а не hidden: не делает body скролл-контейнером, sticky-шапка работает. */
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 3vw, 30px); padding-right: clamp(16px, 3vw, 30px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.accent { color: var(--orange); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--light); }
.outline-orange { color: transparent; -webkit-text-stroke: 2px var(--orange); }

.eyebrow {
  margin: 0 0 14px; color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head p { margin: 0; max-width: 40ch; color: var(--muted-dark); font-size: 15px; }
.sec-title { margin: 0; font-size: clamp(36px, 5vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 14px;
  padding: 12px 20px; border-radius: 99px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--light); }
.btn-ghost { border: 1px solid var(--muted-dark); color: var(--light); padding: 11px 19px; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-ink { background: var(--ink); color: var(--light); }
.btn-ink:hover { background: var(--orange-deep); }
.link-arrow {
  font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}
.link-arrow:hover { color: var(--orange); }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 20, 15, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.nav img { height: 38px; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links .btn { letter-spacing: .14em; font-size: 13px; padding: 10px 18px; white-space: nowrap; }
.nav-links .btn:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav img { height: 30px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { font-size: 11.5px; letter-spacing: .08em; padding: 9px 14px; }
}

/* ---------- движение ---------- */
@keyframes k-left   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes k-right  { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes k-slot   { 0%, 15% { transform: translateY(0); } 20%, 35% { transform: translateY(-1.25em); } 40%, 55% { transform: translateY(-2.5em); } 60%, 75% { transform: translateY(-3.75em); } 80%, 95% { transform: translateY(-5em); } 100% { transform: translateY(-6.25em); } }
@keyframes k-breathe { 0%, 100% { font-weight: 100; } 50% { font-weight: 900; } }
@keyframes k-blink  { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes k-load   { 0% { transform: translateY(-160px); opacity: 0; } 60% { transform: translateY(6px); opacity: 1; } 80% { transform: translateY(-2px); } 100% { transform: none; opacity: 1; } }
@keyframes k-pulse  { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes k-step   { 0%, 22% { border-color: var(--orange); background: var(--ink-2); } 28%, 100% { border-color: var(--ink-line); background: transparent; } }
@keyframes k-step-n { 0%, 22% { color: var(--orange); } 28%, 100% { color: var(--muted); } }

/* Бегущая строка: внутри два одинаковых набора, едем на -50% — шов не виден. */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: k-left var(--dur, 30s) linear infinite; }
.marquee-track.rev { animation-name: k-right; }

/* Барабан слов: колонка слов в окне высотой в одну строку, последняя = первая.
   Ячейка 1.25em, а не высота строки: иначе хвосты букв (p в «apps.») соседнего
   слова заглядывают в окно. */
.rot { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: top; }
.rot > span { display: block; animation: k-slot 9s var(--snap) infinite; }
.rot > span > span { display: block; height: 1.25em; }
.slot { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; font-weight: 800; }
.slot > span { display: block; animation: k-slot 10s var(--snap) infinite; }
.slot > span > span { display: block; height: 1.25em; white-space: nowrap; }
.breathe { display: inline-block; animation: k-breathe 3.2s ease-in-out infinite; }
.dot-live { width: 9px; height: 9px; border-radius: 99px; background: var(--orange); display: inline-block; animation: k-blink 1.4s steps(2) infinite; }

/* ---------- главная: hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: 60px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted-dark); margin-bottom: 22px; }
.hero h1 { margin: 0; font-size: clamp(52px, 10.5vw, 150px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.hero h1 .rot { color: var(--orange); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.hero-foot p { margin: 0; max-width: 44ch; font-size: 18px; font-weight: 300; color: var(--muted-dark); }
.hero-foot p b { color: var(--light); font-weight: 700; }

.names { padding: 26px 0 30px; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.names .marquee-track { font-size: clamp(48px, 8vw, 118px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.names .marquee-track > span { padding-right: .5em; }
.names .tri { color: var(--orange); }

/* ---------- карточки работ ---------- */
.work { padding-top: 96px; padding-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--light);
  transition: border-color .3s ease, transform .45s var(--ease);
}
.card:hover, .card:focus-visible { border-color: var(--orange); transform: translateY(-4px); }
.card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; min-width: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tag { background: var(--ink-line); border-radius: 99px; padding: 4px 12px; }
.tag.live { background: var(--live-bg); color: var(--live); }
.tag.soon { color: var(--gold); }
.card-title { font-size: 26px; font-weight: 700; line-height: 1.12; letter-spacing: -.03em; transition: font-weight .45s ease, letter-spacing .45s ease; }
.card:hover .card-title { font-weight: 900; letter-spacing: -.025em; }
.card-text { font-size: 14.5px; color: var(--muted-dark); flex: 1; }
/* Скоуп работы едет строкой, пока на карточку навели курсор. */
.ticker {
  display: block; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--ink-line); padding-top: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.ticker > span { display: inline-flex; width: max-content; animation: k-left 16s linear infinite; animation-play-state: paused; }
.ticker > span > span { padding-right: 2em; }
.card:hover .ticker > span, .card:focus-visible .ticker > span { animation-play-state: running; }
.card-go { font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--orange); transition: letter-spacing .45s ease; }
.card:hover .card-go { letter-spacing: .1em; }
.card-media.dark { background: var(--ink-3); }
.card-media.left img { object-position: left center; }
@media (min-width: 900px) {
  /* Широкая карточка — на всю строку, картинка слева. */
  .card.wide { grid-column: 1 / -1; flex-direction: row; }
  .card.wide .card-media { flex: 0 0 58%; aspect-ratio: auto; }
  .card.wide .card-body { justify-content: center; padding: 30px 32px; }
  .card.wide .card-text { flex: none; }
}
.card.wide .card-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.card.open-slot {
  justify-content: space-between; gap: 24px; min-height: 300px; padding: 30px;
  background: var(--orange); border-color: var(--orange); color: var(--ink);
}
.card.open-slot .card-title { font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; }
.card.open-slot .card-go { color: var(--ink); }
.card.open-slot:hover { border-color: var(--light); }

/* ---------- приложения ---------- */
.apps { padding-top: 80px; padding-bottom: 96px; }
.app { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.app-light { background: var(--light); color: var(--ink); }
.app-dark { background: var(--ink-3); border: 1px solid var(--ink-line); }
.app-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); }
.app-dark .app-media { background: var(--ink); }
.app-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.app:hover .app-media img { transform: scale(1.04) rotate(-.6deg); }
.app-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.badge { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; border-radius: 99px; padding: 5px 12px; }
.badge-ink { background: var(--ink); color: var(--light); }
.badge-live { background: var(--live-bg); color: var(--live); }
.badge-soon { background: var(--ink-line); color: var(--gold); }
.app h3, .card .big-name { margin: 0; font-size: clamp(40px, 4.6vw, 64px); font-weight: 900; line-height: .95; letter-spacing: -.045em; }
.app-line { margin: 0; font-size: clamp(20px, 2.1vw, 28px); font-weight: 300; line-height: 1.25; }
.app-light .slot { color: var(--orange-deep); }
.app-dark .slot, .card .slot { color: var(--orange); }
.app-text { margin: 0; font-size: 14.5px; flex: 1; }
.app-light .app-text { color: var(--muted-on-light); }
.app-dark .app-text { color: var(--muted-dark); }
.app-links { display: flex; gap: 10px; flex-wrap: wrap; }
.card .big-name { font-weight: 700; transition: font-weight .45s ease; }
.card:hover .big-name { font-weight: 900; }

/* ---------- список: услуги с ценами, принципы ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line); }
.rows li {
  display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--ink-line);
  transition: padding-left .45s var(--ease), background .3s ease;
}
.rows.three li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); }
.rows li:hover { padding-left: 18px; background: var(--ink-2); }
.rows .n { font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--orange); }
.rows .t { font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; transition: font-weight .45s ease, color .3s ease; }
.rows li:hover .t { font-weight: 900; color: var(--orange); }
.rows .d { font-size: 14.5px; color: var(--muted-dark); }
.rows .p { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .rows li, .rows.three li { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 14px; }
  .rows .d, .rows .p { grid-column: 2; }
}
.note { font-size: 13px; color: var(--muted-dark); margin: 16px 0 0; max-width: 70ch; }
.services { padding-top: 40px; padding-bottom: 96px; }

/* ---------- перекрещенные ленты ---------- */
.tapes { position: relative; height: 300px; overflow: hidden; }
.tape { position: absolute; left: -5%; right: -5%; overflow: hidden; white-space: nowrap; padding: 16px 0; }
.tape-1 { top: 70px; transform: rotate(-4deg); background: var(--orange); color: var(--ink); }
.tape-2 { top: 150px; transform: rotate(3deg); background: var(--light); color: var(--ink); }
.tape .marquee-track { font-size: 30px; letter-spacing: .02em; text-transform: uppercase; }
.tape-1 .marquee-track { font-weight: 900; }
.tape-2 .marquee-track { font-weight: 300; }
.tape .marquee-track > span { padding-right: 1.4em; }
@media (max-width: 600px) {
  .tapes { height: 210px; }
  .tape { padding: 12px 0; }
  .tape .marquee-track { font-size: 20px; }
  .tape-1 { top: 46px; }
  .tape-2 { top: 108px; }
}

/* ---------- тизер about ---------- */
.about-teaser { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.about-teaser a { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 72px; padding-bottom: 72px; text-decoration: none; }
.about-teaser .big { font-size: clamp(56px, 9vw, 132px); font-weight: 200; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; transition: font-weight .5s ease, letter-spacing .5s ease; }
.about-teaser a:hover .big { font-weight: 900; letter-spacing: .02em; }
.about-teaser .txt { flex: 0 1 46ch; display: flex; flex-direction: column; gap: 16px; }
.about-teaser .txt > span:first-child { font-size: 18px; font-weight: 300; color: var(--muted-dark); }
.about-teaser .txt b { color: var(--light); font-weight: 700; }

/* ---------- контакт и подвал ---------- */
.contact { padding-top: 80px; padding-bottom: 100px; text-align: center; }
.contact h2 { margin: 0 0 30px; font-size: clamp(64px, 15vw, 220px); line-height: .95; letter-spacing: -.03em; font-weight: 100; }
.contact h2.mid { font-size: clamp(44px, 9vw, 130px); font-weight: 200; line-height: 1.02; letter-spacing: -.04em; }
.contact .email { font-size: clamp(20px, 3vw, 32px); font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--orange); }
.contact .email:hover { color: var(--orange); }
.contact p { margin: 18px 0 0; color: var(--muted-dark); font-size: 14px; }
.site-footer { border-top: 1px solid var(--ink-line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: 13px; color: var(--muted-dark); }
.foot img { height: 32px; display: block; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--orange); }

/* ---------- about ---------- */
.about-hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: 64px; }
.about-hero h1 { margin: 0; font-size: clamp(46px, 9.6vw, 138px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.about-hero h1 .breathe { color: var(--orange); }
.about-hero h1 .outline { -webkit-text-stroke-width: 2px; }
.lede { margin: 40px 0 0; max-width: 52ch; font-size: 19px; font-weight: 300; color: var(--muted-dark); }
.lede b { color: var(--light); font-weight: 700; }

.name-sec { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.name-sec .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.mountain { flex: 1 1 400px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.mountain .peak { width: 30px; height: 26px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-bottom: 4px; animation: k-load .7s cubic-bezier(.3, 1, .5, 1) 3s both, k-pulse 2.6s ease-in-out 3.6s infinite; }
.mountain .load { display: block; padding: 9px 0; text-align: center; border-radius: 6px; color: var(--ink); animation: k-load .7s cubic-bezier(.3, 1, .5, 1) both; }
/* Гора собирается, когда доехала до экрана (класс ставит site.js). Без JS — сразу целая. */
.js .mountain:not(.is-in) .load, .js .mountain:not(.is-in) .peak { animation-play-state: paused; }
.name-text { flex: 1 1 400px; }
.name-text h2 { margin: 0 0 20px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.name-text h2 small { font-size: .36em; font-weight: 300; letter-spacing: 0; color: var(--muted-dark); }
.name-text .def { margin: 0 0 18px; font-size: 22px; font-weight: 300; line-height: 1.35; }
.name-text .def b { font-weight: 800; }
.name-text p:last-child { margin: 0; font-size: 16px; color: var(--muted-dark); max-width: 46ch; }

.block { padding-top: 96px; padding-bottom: 80px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
/* Подсветка шага сама переезжает 01 → 04: так, как будет идти проект. */
.step { border: 1px solid var(--ink-line); border-radius: 16px; padding: 24px; animation: k-step 8s ease-in-out infinite; }
.step .num { font-size: 14px; font-weight: 800; letter-spacing: .12em; animation: k-step-n 8s ease-in-out infinite; }
.step:nth-child(2), .step:nth-child(2) .num { animation-delay: -6s; }
.step:nth-child(3), .step:nth-child(3) .num { animation-delay: -4s; }
.step:nth-child(4), .step:nth-child(4) .num { animation-delay: -2s; }
.step h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 800; }
.step p { margin: 0; font-size: 14px; color: var(--muted-dark); }

.tz { background: var(--orange); color: var(--ink); }
.tz .wrap { padding-top: 64px; padding-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tz h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.tz p { margin: 0; max-width: 40ch; font-size: 16px; font-weight: 600; }
.tz .marquee { padding: 18px 0 40px; }
.tz .marquee-track { font-size: clamp(40px, 6.4vw, 92px); font-weight: 200; letter-spacing: -.03em; text-transform: uppercase; }
.tz .marquee-track > span { padding-right: .7em; }
.tz b { font-weight: 900; }

.person {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: center;
}
@media (max-width: 760px) { .person { grid-template-columns: minmax(0, 1fr); } }
.person-photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--ink-line); aspect-ratio: 1 / 1; background: var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .7s var(--ease); }
.person:hover .person-photo img { filter: none; transform: scale(1.04); }
.person-name { margin: 0; font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.person-role { margin: 10px 0 22px; font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.person-text { margin: 0 0 24px; font-size: 18px; font-weight: 300; color: var(--muted-dark); max-width: 44ch; }
.person-text b { color: var(--light); font-weight: 700; }
.own {
  margin-top: 28px; border: 1px dashed var(--ink-line-2); border-radius: 20px; padding: 26px 28px;
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.own > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.own > span:last-child { flex: 1 1 480px; font-size: 19px; font-weight: 300; line-height: 1.4; }
.own a { font-weight: 800; }
.own a:hover { color: var(--orange); }

.stack { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); padding: 28px 0; }
.stack .marquee-track { gap: 12px; padding-right: 12px; }
.chip { border: 1px solid var(--ink-line-2); border-radius: 99px; padding: 10px 22px; font-size: 15px; font-weight: 600; }
.chip.hot { border-color: var(--orange); color: var(--orange); }

/* ---------- живой предпросмотр работ ----------
   Клик по карточке открывает живой сайт в iframe поверх страницы — панель
   выезжает снизу, как шторка. С cmd/ctrl/shift — обычная ссылка в новой вкладке. */
.lp {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 14, 10, .88);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lp.open { opacity: 1; pointer-events: auto; }
.lp-panel {
  position: absolute; left: 50%; bottom: 0;
  transform: translate(-50%, 105%);
  transition: transform .5s cubic-bezier(.22, .9, .26, 1);
  width: min(1400px, calc(100% - 20px));
  height: calc(100% - 56px);
  background: var(--paper); border-radius: 16px 16px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, .5);
}
.lp.open .lp-panel { transform: translate(-50%, 0); }
.lp-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px;
  background: var(--ink); color: var(--light);
  border-bottom: 3px solid var(--orange);
}
.lp-title { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-newtab { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; white-space: nowrap; }
.lp-newtab:hover { text-decoration: underline; }
.lp-close {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: var(--ink-2); color: var(--light); cursor: pointer;
  font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.lp-close:hover { background: var(--orange); color: var(--ink); }
.lp-frame { flex: 1; position: relative; background: var(--light); }
.lp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.lp-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lp-panel { width: 100%; height: calc(100% - 34px); border-radius: 12px 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
