/* ============================================================
   lor3x.dev — монохромный дизайн (референс: rifqi.dev)
   Чёрно-белый, зерно, гигантская типографика, бейдж на ленте
   ============================================================ */

:root {
  --bg:      #0a0a0b;
  --bg-soft: #0e0e10;
  --panel:   #141416;
  --panel-2: #1a1a1d;
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.18);
  --text:    #f2f2f0;
  --muted:   #a3a3a0;
  --faint:   #61615f;
  --white:   #fafaf8;
  --radius:  18px;
  --ease:    cubic-bezier(.22,.7,.25,1);
  --f-display: "Unbounded", sans-serif;
  --f-soft:    "Comfortaa", sans-serif;
  --f-body:    "Manrope", sans-serif;
  --f-mono:    "JetBrains Mono", monospace;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
/* Lenis плавный скролл */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); }
.accent { color: var(--muted); }

::selection { background: #fff; color: #000; }

/* ---------- Фон: сетка + зерно ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 28%, #000 30%, transparent 78%);
}
.bg-noise {
  position: fixed; inset: -100px; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-32px,18px); }
  50% { transform: translate(22px,-26px); } 75% { transform: translate(-14px,-12px); }
  100% { transform: translate(0,0); }
}

/* ---------- Интро-заставка ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  border-bottom: 1px solid var(--line-2);
  transition: transform .85s cubic-bezier(.76,0,.24,1), visibility .85s;
  /* уезжает вверх шторкой сама, чистым CSS — даже если JS не загрузился */
  animation: introSlideUp .85s 2s cubic-bezier(.76,0,.24,1) forwards;
}
.intro.hide { transform: translateY(-101%); visibility: hidden; pointer-events: none; }
@keyframes introSlideUp { to { transform: translateY(-101%); visibility: hidden; pointer-events: none; } }
/* hero наезжает из глубины, пока шторка уходит */
.hero__grid { animation: heroZoom .95s 2.08s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(.94); opacity: .25; } to { transform: scale(1); opacity: 1; } }
body.settled .hero__grid { animation: none; }
.intro__icons { display: flex; gap: 14px; }
.intro__icons span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  animation: introPop .7s var(--ease) both;
}
.intro__icons span:nth-child(2) { animation-delay: .08s; }
.intro__icons span:nth-child(3) { animation-delay: .16s; }
.intro__icons svg { width: 20px; height: 20px; }
.intro__title {
  font-family: var(--f-display); font-weight: 900; text-align: center;
  font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1.05; letter-spacing: .02em;
  text-transform: uppercase;
  animation: introPop .8s .15s var(--ease) both;
}
.intro__sub {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  animation: introPop .8s .28s var(--ease) both;
}
.intro__pill {
  font-family: var(--f-mono); font-size: .85rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 22px;
  background: var(--panel); animation: introPop .8s .4s var(--ease) both;
}
@keyframes introPop { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .95rem; letter-spacing: .08em; }
.nav__logo-mark { color: var(--text); font-weight: 700; }
.nav__logo-text { color: var(--muted); }
.nav__logo-text .accent { color: var(--text); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav__links a {
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .14em; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--text); transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta).active { color: var(--text); }
.nav__links a:not(.nav__cta).active::after { width: 100%; }
.nav__links a.nav__cta {
  color: #000; background: var(--white); border-radius: 999px; padding: 9px 20px;
  font-weight: 700; transition: transform .25s var(--ease), box-shadow .25s;
}
.nav__links a.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,.18); }
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--text); transition: .3s var(--ease); }

/* ---------- Секции ---------- */
main { position: relative; z-index: 1; }
section { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px, 6vh, 76px) clamp(20px, 5vw, 56px); }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--center .section-desc { margin-left: auto; margin-right: auto; }
.section-tag { color: var(--faint); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; display: inline-block; margin-bottom: 16px; }
.section-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.01em; color: var(--text);
}
.section-title--soft { font-family: var(--f-soft); font-weight: 700; letter-spacing: .01em; }
.section-desc { color: var(--muted); margin-top: 16px; max-width: 52ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s, background .25s, border-color .25s, color .25s;
}
.btn--primary { background: var(--white); color: #000; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,255,255,.16); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--text); background: rgba(255,255,255,.04); }

/* ---------- HERO ---------- */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh;
  padding-top: clamp(104px, 14vh, 150px); padding-bottom: clamp(40px, 6vh, 70px); gap: 24px;
  position: relative; isolation: isolate;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero__left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 18px;
  font-size: .78rem; letter-spacing: .14em; color: var(--muted); background: rgba(255,255,255,.02);
}
.hero__status .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.9rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--text);
}
.hero__title span { display: block; }
.hero__title .dim { color: #4d4d4c; -webkit-text-stroke: 0; }
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.12rem); max-width: 50ch; }
.hero__role { font-size: .85rem; letter-spacing: .12em; color: var(--muted); margin-top: -8px; min-height: 1.4em; }
.hero__role .caret { font-style: normal; animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
/* индикатор скролла внизу первого экрана */
.hero__scroll {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  font-size: .74rem; letter-spacing: .3em; color: var(--faint);
  opacity: 0; animation: scrollShow .8s 2.8s var(--ease) forwards;
}
.hero__scroll i { font-style: normal; display: inline-block; animation: scrollBob 2s var(--ease) infinite; }
@keyframes scrollShow { to { opacity: 1; } }
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 1000px) { .hero__scroll { display: none; } }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips span {
  font-size: .78rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; background: var(--panel);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.hero__chips span:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); }
.hero__benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.hero__benefits li {
  position: relative; padding-left: 32px; color: var(--muted);
  font-size: .98rem; line-height: 1.45; max-width: 52ch;
}
.hero__benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); font-size: .8rem; font-weight: 800;
}
.hero__benefits b { color: var(--text); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__micro { display: flex; flex-direction: column; gap: 7px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; color: var(--faint); }

/* вход заголовка: подъём с размытием (тайминги синхронны с интро, чистый CSS) */
.hero__title span, .hero .reveal-h { opacity: 0; transform: translateY(40px); filter: blur(12px); }
.hero__title span { animation: heroIn .9s 2.15s var(--ease) forwards; }
.hero__title span:nth-child(2) { animation-delay: 2.27s; }
.hero .reveal-h { animation: heroIn .9s 2.42s var(--ease) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
/* страховка: если анимации не сработали — показать контент */
body.settled .hero__title span, body.settled .hero .reveal-h { opacity: 1; transform: none; filter: none; }
body.settled .reveal { opacity: 1; transform: none; filter: none; }
body.settled .hero__scroll { opacity: 1; }

/* ---------- Видео-фон hero (чёрно-белое) ---------- */
.hero__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  filter: grayscale(1) contrast(1.08) brightness(.42);
  opacity: .42; animation: heroFadeVideo 1.6s var(--ease) both;
}
@keyframes heroFadeVideo { from { opacity: 0; } to { opacity: .42; } }
.hero__3d {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 1; pointer-events: none;
  animation: heroFade 2s .3s var(--ease) both;
}
@keyframes heroFade { from { opacity: 0; } to { opacity: .55; } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 4%, rgba(10,10,11,.82) 42%, rgba(10,10,11,.35) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}

/* ---------- Бейдж на ленте (свисает с самого верха) ---------- */
.badge {
  position: absolute; top: 0; right: clamp(44px, 9vw, 160px); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center; will-change: transform; pointer-events: auto; cursor: grab;
}
.badge:active { cursor: grabbing; }
.badge__pin {
  width: 13px; height: 13px; border-radius: 50%;
  background: #16161a; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 4px rgba(255,255,255,.035), inset 0 1px 1px rgba(255,255,255,.12);
  margin-bottom: -3px; z-index: 3;
}
.badge__strap {
  width: 34px; height: clamp(230px, 40vh, 440px); background: linear-gradient(180deg, #141417, #0d0d10);
  border: 1px solid var(--line-2); border-top: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.badge__strap em {
  font-style: normal; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .3em;
  color: #6e6e6c; writing-mode: vertical-rl; white-space: nowrap;
}
.badge__clip {
  width: 46px; height: 16px; border-radius: 5px; background: #1f1f22;
  border: 1px solid var(--line-2); margin: -1px 0 -6px; z-index: 2;
}
.badge__card {
  width: clamp(180px, 19vw, 230px); background: #f2f1ed; border-radius: 14px;
  padding: 10px 10px 12px; box-shadow: 0 34px 80px -22px rgba(0,0,0,.85), 0 4px 16px rgba(0,0,0,.5);
}
.badge__card img { border-radius: 8px; filter: grayscale(1) contrast(1.05); aspect-ratio: 1/1.18; object-fit: cover; width: 100%; }
.badge__label {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 9px; padding: 0 3px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: #2a2a28; font-weight: 700;
}
.badge__label i { font-style: normal; color: #8b8b88; }

/* ---------- Чипы «Кому подходит» ---------- */
.fits { padding-bottom: clamp(24px, 3vh, 40px); }
.fits .section-head { margin-bottom: 26px; }
.fits__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.fchip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px 13px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  cursor: default;
}
.fchip:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.fchip svg { width: 21px; height: 21px; color: var(--text); flex: none; }
.fchip b { font-weight: 600; font-size: .96rem; color: var(--text); white-space: nowrap; }
.fchip em { font-style: normal; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.fchip em::before { content: "· "; color: var(--faint); }
@media (max-width: 600px) { .fchip em { display: none; } }

/* ---------- УСЛУГИ ---------- */
.works__hint {
  display: none; align-items: center; justify-content: center; gap: 10px;
  color: var(--faint); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  margin: -8px 0 18px;
}
.works__hint span {
  width: 26px; height: 1px; background: var(--line-2);
  animation: hintSwipe 1.8s var(--ease) infinite;
}
@keyframes hintSwipe { 0%,100% { transform: translateX(-4px); opacity: .5; } 50% { transform: translateX(4px); opacity: 1; } }
.works__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work--featured { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .work:not(.work--featured) {
    grid-template-columns: 1fr; gap: 0; padding: 0; align-items: stretch; overflow: hidden;
  }
  .work:not(.work--featured) .work__visual {
    order: -1; height: 124px; border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .work:not(.work--featured) .work__body { padding: 24px 26px 26px; display: flex; flex-direction: column; }
  .work:not(.work--featured) .work__desc { font-size: .95rem; flex: 1; }
  .work:not(.work--featured):last-child:nth-child(even) { grid-column: 1 / -1; }
  .work:not(.work--featured):last-child:nth-child(even) .work__desc { max-width: 64ch; }
}
.work {
  position: relative;
  display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  background: linear-gradient(180deg, var(--panel), rgba(14,14,16,.4));
  transition: transform .4s var(--ease), border-color .4s; cursor: pointer;
}
.work:hover { transform: translateY(-4px); border-color: var(--line-2); }
.work::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(120deg, rgba(255,255,255,.7), rgba(255,255,255,.18) 45%, rgba(255,255,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; z-index: 3;
}
.work:hover::after { opacity: 1; }
.work--featured {
  border-color: var(--line-2);
  background: linear-gradient(180deg, #18181b, rgba(14,14,16,.4));
  box-shadow: 0 30px 70px -42px rgba(255,255,255,.18);
}
.work--featured .work__type { background: var(--white); color: #000; border-color: transparent; font-weight: 700; }
.work__type {
  display: inline-block; color: var(--muted); font-size: .74rem; letter-spacing: .08em;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.work__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin-bottom: 10px; letter-spacing: -.01em; }
.work__desc { color: var(--muted); max-width: 52ch; margin-bottom: 16px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 14px; }
.work__tags li { font-size: .74rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; }
.work__result { color: var(--faint); font-size: .82rem; margin-bottom: 14px; }
.work__price {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.1rem; color: var(--text); margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 7px;
}
.work__price b { font-weight: 800; color: var(--white); }
.work__price small { color: var(--muted); font-weight: 500; font-size: .78rem; font-family: var(--f-mono); }
.work__cta { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); transition: color .25s, gap .25s var(--ease); cursor: pointer; }
.work__cta span { color: var(--text); transition: transform .25s var(--ease); display: inline-block; }
.work__cta:hover { color: var(--text); gap: 12px; }
.work__visual {
  position: relative; height: 150px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(130% 130% at 30% 0%, #1c1c1f, var(--bg));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.work__icon { position: relative; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center; color: var(--text); }
.work__icon::before {
  content: ""; position: absolute; inset: -32%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
  filter: blur(6px); z-index: -1; transition: background .4s var(--ease);
}
.work__icon svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 20px rgba(255,255,255,.25)); animation: iconFloat 5s var(--ease) infinite; transition: transform .4s var(--ease); }
@keyframes iconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.work:hover .work__icon svg { transform: scale(1.1) translateY(-2px); }
.work:hover .work__icon::before { background: radial-gradient(circle, rgba(255,255,255,.26), transparent 66%); }
.work__shine {
  z-index: 2; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-150%); transition: transform .7s var(--ease);
}
.work:hover .work__shine { transform: translateX(120%); }

/* ---------- CTA-полоса ---------- */
.midcta { padding-top: 0; }
.midcta__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 52px);
  background:
    radial-gradient(110% 200% at 0% 0%, rgba(255,255,255,.09), transparent 55%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
}
.midcta__text h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.01em; margin-bottom: 8px; }
.midcta__text p { color: var(--muted); max-width: 46ch; }
.midcta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .midcta__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .midcta__actions { width: 100%; }
  .midcta__actions .btn { flex: 1; text-align: center; }
}

/* ---------- SHOWCASE: избранные проекты ---------- */
.showcase__top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 34px;
}
.showcase .section-head { margin-bottom: 0; }
.showcase__title {
  display: flex; flex-direction: column;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.025em;
}
.showcase__title span:last-child { color: #555557; }
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  width: min(100%, 330px); flex: none; margin: 0 0 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 5px;
}
.tabs__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2);
  transition: transform .35s var(--ease); z-index: 0;
}
.tabs button {
  position: relative; z-index: 1; background: none; border: 0; cursor: pointer;
  padding: 12px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .1em; color: var(--muted);
  transition: color .3s;
}
.tabs button.active { color: var(--text); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Флагманский кейс ---------- */
.featured-case {
  display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.45fr);
  min-height: 480px; overflow: hidden; margin-bottom: 16px;
  border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(145deg, rgba(22,22,25,.96), rgba(9,9,11,.92));
}
.featured-case__copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4vw, 48px); }
.featured-case__brand { display: flex; align-items: center; gap: 16px; }
.featured-case__mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(135deg, #5b35d5, #9466ff);
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; box-shadow: 0 14px 34px rgba(107,68,241,.28);
}
.featured-case__mark span { letter-spacing: -.28em; opacity: .8; }
.featured-case__brand h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.04em; }
.featured-case__lead { margin-top: 22px; color: #9d72ff; font-family: var(--f-mono); font-weight: 700; font-size: clamp(.95rem, 1.5vw, 1.12rem); }
.featured-case__desc { margin-top: 20px; max-width: 40ch; color: var(--muted); line-height: 1.65; }
.featured-case__meta { margin-top: 20px; color: var(--faint); font-size: .76rem; letter-spacing: .1em; }
.featured-case__tags {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; padding-top: 18px;
  width: 100%; border-top: 1px solid var(--line);
}
.featured-case__tags li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .72rem; }
.featured-case__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 22px;
  border-radius: 11px; background: linear-gradient(135deg, #6339dc, #8e5aff); color: #fff; font-weight: 700;
  box-shadow: 0 14px 32px rgba(105,64,226,.22); transition: transform .25s var(--ease), box-shadow .25s;
}
.featured-case__cta:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(105,64,226,.34); }
.featured-case__cta svg { width: 18px; height: 18px; }
.featured-case__visual {
  position: relative; overflow: hidden; min-height: 100%;
  background: #302070; isolation: isolate;
}
.featured-case__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 30px 0 60px rgba(9,9,11,.28);
}
.featured-case__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.featured-case:hover .featured-case__visual img { transform: scale(1.025); filter: saturate(1.08); }
.featured-case__live {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px;
  background: rgba(10,8,20,.75); backdrop-filter: blur(10px); font-size: .7rem; color: #ddd7ff;
}
.featured-case__live i { width: 7px; height: 7px; border-radius: 50%; background: #64f3a1; box-shadow: 0 0 12px #64f3a1; }

/* ---------- Прайс с живыми примерами ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  transition: transform .35s var(--ease), border-color .35s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan--hot { border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.plan__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 6px 11px; border-radius: 999px; background: var(--white); color: #000;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
}
.plan__shot { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); }
.plan__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.plan:hover .plan__shot img { transform: scale(1.03); }
.plan__live {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px;
  background: rgba(10,10,12,.78); backdrop-filter: blur(10px); font-size: .68rem; color: var(--text);
}
.plan__live i { width: 7px; height: 7px; border-radius: 50%; background: #64f3a1; box-shadow: 0 0 12px #64f3a1; }
.plan__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 3vw, 28px); }
.plan__type { color: var(--faint); font-size: .74rem; letter-spacing: .1em; margin-bottom: 10px; }
.plan__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.01em; margin-bottom: 12px; }
.plan__desc { color: var(--muted); margin-bottom: 18px; }
.plan__list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.plan__list li { position: relative; padding-left: 24px; color: var(--muted); font-size: .92rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 5px;
  border-left: 1.8px solid var(--text); border-bottom: 1.8px solid var(--text);
  transform: rotate(-45deg);
}
.plan__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__price { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.plan__price b { font-weight: 800; color: var(--white); }
.plan__price small { color: var(--muted); font-weight: 500; font-size: .8rem; font-family: var(--f-mono); }
.plan__price i { display: block; font-style: normal; font-size: .7rem; color: var(--faint); letter-spacing: .08em; margin-top: 6px; }
.plan__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.plan__actions .btn { padding: 11px 20px; font-size: .84rem; }
.pricing__note { margin-top: 26px; text-align: center; color: var(--faint); font-size: .76rem; max-width: 62ch; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .plan__foot { flex-direction: column; align-items: flex-start; }
  .plan__actions { width: 100%; }
  .plan__actions .btn { flex: 1; }
}

/* ---------- Поддерживающие проекты ---------- */
.sites__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14,14,16,.66);
  transition: transform .4s var(--ease), border-color .4s;
}
.site:hover { transform: translateY(-5px); border-color: var(--line-2); }
.site__frame { display: block; }
.site__shot { aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--line); }
.site__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.02);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.site:hover .site__shot img { transform: scale(1.045); filter: grayscale(0); }
.site__info { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 42px 18px 17px; flex: 1; }
.site__type { color: var(--faint); font-size: .74rem; letter-spacing: .1em; }
.site__title { font-family: var(--f-mono); font-weight: 500; font-size: .96rem; }
.site__arrow { position: absolute; right: 16px; bottom: 16px; color: var(--muted); transition: color .25s, transform .25s; }
.site:hover .site__arrow { color: var(--text); transform: translate(2px,-2px); }

@media (max-width: 1000px) {
  .sites__grid { grid-template-columns: repeat(2, 1fr); }
  .featured-case { grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 760px) {
  .showcase__top { align-items: stretch; flex-direction: column; }
  .showcase__title { font-size: clamp(1.85rem, 9vw, 3rem); }
  .tabs { width: 100%; }
  .featured-case { grid-template-columns: 1fr; }
  .featured-case__copy { order: 2; }
  .featured-case__visual { min-height: 260px; aspect-ratio: 16/10; }
  .featured-case__visual::after { box-shadow: inset 0 -30px 60px rgba(9,9,11,.22); }
  .featured-case__cta { margin-top: 28px; }
}
@media (max-width: 520px) {
  .sites__grid { grid-template-columns: 1fr; }
  .featured-case__visual { min-height: 215px; }
}

/* ---------- Технологии (вкладка) ---------- */
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .tech__grid { grid-template-columns: repeat(2, 1fr); } }
.tech {
  display: flex; align-items: center; gap: 13px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s;
}
.tech:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tech svg { width: 22px; height: 22px; color: var(--text); flex: none; }
.tech b { font-family: var(--f-mono); font-weight: 500; font-size: .86rem; letter-spacing: .04em; color: var(--text); }
.tech i { font-style: normal; display: block; font-size: .74rem; color: var(--faint); margin-top: 2px; }

/* ---------- Как я работаю ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; background: var(--panel); transition: border-color .3s; }
.step:hover { border-color: var(--line-2); }
.step__n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 800; font-size: 1rem; color: #000;
  background: var(--white); margin-bottom: 14px; box-shadow: 0 10px 24px rgba(255,255,255,.14);
}
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Честно сразу ---------- */
.rules__list { display: grid; gap: 14px; }
.rule {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  background: var(--panel); transition: transform .35s var(--ease), border-color .35s;
}
.rule:hover { transform: translateY(-3px); border-color: var(--line-2); }
.rule__ico {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
}
.rule__ico svg { width: 24px; height: 24px; }
.rule h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 5px; }
.rule p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Чередование фонов ---------- */
.band { position: relative; isolation: isolate; }
.band::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 100vw; z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent) no-repeat top center / min(720px, 86%) 1px,
    linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent) no-repeat bottom center / min(520px, 70%) 1px,
    linear-gradient(180deg, rgba(20,20,23,0), rgba(20,20,23,.55) 14%, rgba(20,20,23,.55) 86%, rgba(20,20,23,0));
}

/* ---------- ОБО МНЕ ---------- */
.about__grid { width: 100%; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__name {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; margin: 8px 0 22px;
}
.about__name span { display: block; }
.about__name .dim { color: #4d4d4c; }
.about__right { display: flex; justify-content: center; }
.about__photo {
  position: relative; width: clamp(230px, 25vw, 320px); aspect-ratio: 3/4;
  border-radius: 26px; overflow: hidden; margin: 0; isolation: isolate;
  background: linear-gradient(180deg, var(--panel), #0d0d0f);
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 18px rgba(255,255,255,.35),
    0 0 46px rgba(255,255,255,.18),
    0 30px 80px -34px rgba(255,255,255,.35);
  animation: photoNeon 4.2s var(--ease) infinite;
}
@keyframes photoNeon {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.32), 0 0 46px rgba(255,255,255,.16), 0 30px 80px -34px rgba(255,255,255,.32); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,.2),  0 0 26px rgba(255,255,255,.5),  0 0 70px rgba(255,255,255,.26), 0 30px 90px -32px rgba(255,255,255,.45); }
}
/* мягкое свечение внутри рамки */
.about__photoGlow {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.18), transparent 62%);
}
/* если фото ещё не загружено — показываем инициалы, блок не «ломается» */
.about__photoFallback {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; color: rgba(255,255,255,.16); letter-spacing: .06em;
}
.about__photo img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  filter: grayscale(1) contrast(1.08) brightness(1.04);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.about__photo:hover img { filter: grayscale(.15) contrast(1.05); transform: scale(1.03); }
.about__photoCap {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 13px;
  background: rgba(10,10,12,.66); backdrop-filter: blur(10px);
}
.about__photoCap b { font-size: .8rem; font-weight: 700; color: var(--text); }
.about__photoCap span { font-size: .66rem; color: var(--muted); letter-spacing: .06em; }

/* факты: ИП, колледж, возраст */
.about__facts { list-style: none; display: grid; gap: 10px; margin: 4px 0 24px; max-width: 56ch; }
.about__facts li {
  display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 13px;
  align-items: center; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: border-color .3s, transform .3s var(--ease);
}
.about__facts li:hover { border-color: var(--line-2); transform: translateX(3px); }
.about__factIco {
  grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 11px; color: var(--text);
}
.about__factIco svg { width: 19px; height: 19px; }
.about__facts b { font-size: .92rem; font-weight: 700; color: var(--text); }
.about__facts i { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.about p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; max-width: 56ch; }
.about strong { color: var(--text); font-weight: 600; }
.about__quote {
  font-style: italic; color: var(--muted); font-size: .95rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 14px 20px; margin-bottom: 24px; width: fit-content;
}
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.about__stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.about__stack span {
  font-family: var(--f-mono); font-size: .78rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 13px; background: var(--bg-soft);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.about__stack span:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.stat {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
  background: var(--panel); transition: border-color .3s, transform .3s var(--ease);
  position: relative;
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; }
.stat span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.stat::after { content: "↗"; position: absolute; right: 18px; bottom: 14px; color: var(--faint); font-size: .9rem; }
@media (max-width: 700px) { .about__stats { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .about__name { font-size: clamp(1.5rem, 7.2vw, 2.2rem); margin-bottom: 18px; }
  /* «веб-разработчик» — вторая строка, помельче, чтобы влезала целиком */
  .about__name .dim { font-size: .62em; letter-spacing: .02em; margin-top: 4px; }
  .about__facts li { padding: 12px 14px; column-gap: 11px; }
  .about__photo { width: min(260px, 78vw); }
}

/* ---------- КОНТАКТ ---------- */
.contact { position: relative; }
.contact__mark {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-display); font-weight: 900; white-space: nowrap;
  font-size: clamp(3rem, 9vw, 7rem); letter-spacing: .02em; text-transform: uppercase;
  color: rgba(255,255,255,.045); pointer-events: none; user-select: none; z-index: 0;
}
.contact__inner {
  position: relative; z-index: 1; text-align: center;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(20,20,23,.85), rgba(12,12,14,.85));
  backdrop-filter: blur(6px);
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
  margin-top: clamp(46px, 8vw, 90px);
}
.contact__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.01em; }
.contact__title .grad-text { color: var(--muted); }
.contact__sub { color: var(--muted); margin: 18px auto 30px; max-width: 46ch; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 18px;
  color: var(--muted); font-size: .85rem; background: var(--bg-soft);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.social:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* ---------- Футер ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 48px clamp(20px, 5vw, 56px) 28px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding-bottom: 34px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.footer__logo { font-family: var(--f-mono); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.footer__logo .accent { color: var(--muted); }
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 30ch; line-height: 1.55; font-size: .88rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { color: var(--faint); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: .88rem; width: fit-content; transition: color .25s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__top { color: var(--muted); transition: color .25s; }
.footer__top:hover { color: var(--text); }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.footer__socials svg { width: 17px; height: 17px; }
.footer__socials a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--white); color: #000; font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float span { font-size: .95rem; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.4); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; right: 16px; bottom: 16px; } }

/* ---------- Модалка кейса ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.78); backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative; width: min(640px, 100%); max-height: 86svh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  animation: panelIn .35s var(--ease);
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 50%; cursor: pointer; color: var(--muted); transition: color .25s, border-color .25s;
}
.modal__close:hover { color: var(--text); border-color: var(--text); }
.modal__type { display: inline-block; color: var(--muted); font-size: .74rem; letter-spacing: .1em; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.modal__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 1.8rem); margin-bottom: 10px; }
.modal__task { color: var(--muted); margin-bottom: 22px; }
.modal__block { margin-bottom: 22px; }
.modal__h { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.modal__list { list-style: none; display: grid; gap: 9px; }
.modal__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.modal__list li::before { content: "✓"; position: absolute; left: 0; color: var(--text); font-weight: 700; font-size: .9rem; }
.modal__meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.modal__metaItem { display: flex; flex-direction: column; gap: 8px; }
.modal__metaItem > span { color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-mono); }
.modal__metaItem strong { font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal__tags span { font-size: .72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }
.modal__result { color: var(--faint); font-size: .9rem; margin-bottom: 24px; }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .modal__meta { grid-template-columns: 1fr; gap: 16px; }
  .modal__actions .btn { width: 100%; }
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .bg-noise { animation: none; }
  .hero__title span, .hero .reveal-h { opacity: 1; transform: none; filter: none; animation: none !important; }
  .intro { display: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .badge { display: none; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,11,.97); backdrop-filter: blur(14px);
    padding: 24px clamp(20px,5vw,56px); gap: 20px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .about__grid { grid-template-columns: 1fr; }
  .about__right { order: -1; }
  .hero { min-height: auto; padding-top: 92px; padding-bottom: 48px; }
  /* компактнее по вертикали на телефоне */
  section { padding-top: clamp(34px, 5vh, 56px); padding-bottom: clamp(34px, 5vh, 56px); }
  .section-head { margin-bottom: 24px; }

  /* услуги → горизонтальная карусель со свайпом */
  .works__list {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(20px, 5vw, 56px));
    padding: 4px clamp(20px, 5vw, 56px) 14px;
    scroll-padding-inline: clamp(20px, 5vw, 56px);
  }
  .works__list::-webkit-scrollbar { display: none; }
  .works__hint { display: flex; }
  .work {
    flex: 0 0 80%; scroll-snap-align: start;
    grid-template-columns: 1fr; gap: 0; padding: 0; align-items: stretch; overflow: hidden;
  }
  .work--featured { flex-basis: 86%; }
  .work__visual { display: grid; place-items: center; order: -1; height: 144px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
  .work:hover { transform: none; }
  .work__body { padding: 22px 22px 24px; display: flex; flex-direction: column; }
  .work__desc { flex: 1; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .work__body { padding: 20px 20px 22px; }
  .work__visual { height: 132px; }
  .hero__actions, .contact__actions { width: 100%; }
  .hero__actions .btn, .contact__actions .btn { flex: 1; }
}
