:root {
  --bg: #05070b;
  --panel: #0b1018;
  --panel-strong: #101722;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f8fb;
  --muted: #9aa8b8;
  --soft: #dce6f2;
  --blue: #2f7dff;
  --blue-2: #62b6ff;
  --green: #34d399;
  --rose: #f472b6;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(47, 125, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.08), transparent 24rem),
    linear-gradient(180deg, #04070b 0%, #080b10 44%, #05070b 100%);
  background-size: 100% 100%, 36px 36px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--text);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.cursor-glow {
  position: fixed;
  top: -140px;
  left: -140px;
  z-index: 999;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(47, 125, 255, 0.08) 38%, transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #2f7dff, #f472b6);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(98, 182, 255, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), rgba(5, 7, 11, 0.12)),
    url("avatar-fewmode.jpg") center / cover;
  box-shadow: 0 10px 32px rgba(47, 125, 255, 0.28);
  color: transparent;
  font-size: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-links a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(34, 211, 238, 0.36), rgba(47, 125, 255, 0.48));
  transform: translateX(-105%);
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
  content: "";
}

.nav-links a::after {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 1px;
  background: rgba(147, 234, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  content: "";
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(98, 182, 255, 0.24);
  box-shadow: 0 12px 28px rgba(47, 125, 255, 0.14);
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  transform: translateX(0);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.lang-switch button {
  position: relative;
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  isolation: isolate;
  overflow: hidden;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  background: rgba(47, 125, 255, 0.2);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 76px);
  padding: 72px 0 44px;
}

.hero--agency {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 42px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-stack {
  display: grid;
  gap: 16px;
}

.hero h1,
.section-head h1,
.case-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.section-head p,
.case-hero p {
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-media {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #0a0f18;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 11, 0.72));
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  width: min(220px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(16px);
}

.hero-stat strong {
  font-size: 28px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(98, 182, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    rgba(5, 7, 11, 0.68);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.profile-card img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #05070b;
  box-shadow: 0 12px 34px rgba(47, 125, 255, 0.24);
}

.profile-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.profile-card p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-card--wide {
  min-width: min(480px, 100%);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-badges span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.26), transparent 22%),
    rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 800;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.45), rgba(47, 125, 255, 0.7), rgba(244, 114, 182, 0.4));
  transform: translateX(-105%);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
  content: "";
}

.button::after {
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
  content: "";
}

.button:hover {
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-3px);
  box-shadow: 0 18px 42px rgba(47, 125, 255, 0.22);
}

.button:hover::before {
  transform: translateX(0);
}

.button:hover::after {
  transform: scaleX(1);
}

.button--primary {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  box-shadow: 0 16px 34px rgba(47, 125, 255, 0.26);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.button--plain {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.case-section h2,
.case-result h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p {
  max-width: 650px;
  margin: 12px 0 0;
}

.portfolio-intro {
  padding: 78px 0 34px;
}

.portfolio-intro .section-head {
  display: block;
  margin-bottom: 28px;
}

.seo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.seo-strip span {
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  color: var(--soft);
  font-weight: 700;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.profile-row .seo-strip {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 7, 11, 0.45);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.project-card::before,
.profile-card::before,
.compare-slider::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(98, 182, 255, 0.14), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-card:hover::before,
.profile-card:hover::before,
.compare-slider:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(98, 182, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.16;
}

.project-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.feature-list,
.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
  font-size: 14px;
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-2);
  content: "";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag-row span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c7d3df;
  font-size: 12px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-button {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-button::before,
.lang-switch button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(47, 125, 255, 0.5));
  transform: translateX(-105%);
  transition: transform 260ms ease;
  content: "";
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(98, 182, 255, 0.55);
  background: rgba(47, 125, 255, 0.18);
  color: #fff;
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-2px);
}

.filter-button:hover::before,
.filter-button.is-active::before,
.lang-switch button:hover::before,
.lang-switch button.is-active::before {
  transform: translateX(0);
}

.before-after {
  position: relative;
}

.compare-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.compare-slider {
  --pos: 50%;
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(98, 182, 255, 0.28);
  border-radius: 18px;
  background: #07080d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.46), 0 0 42px rgba(47, 125, 255, 0.14);
  cursor: ew-resize;
  overflow: hidden;
}

.compare-slider::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.compare-img--before {
  filter: grayscale(0.8) blur(1.2px) brightness(0.72) saturate(0.6);
  transform: scale(1.015);
}

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-img--after {
  filter: contrast(1.08) saturate(1.18) brightness(1.02);
}

.compare-pill {
  position: absolute;
  z-index: 4;
  bottom: 26px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(98, 182, 255, 0.35);
  border-radius: 8px;
  background: rgba(9, 10, 18, 0.76);
  color: #dfe9ff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.compare-pill--before {
  left: 26px;
  border-color: rgba(244, 114, 182, 0.5);
  color: #ff9ed0;
}

.compare-pill--after {
  right: 26px;
  color: #93eaff;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 5;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(98, 182, 255, 0.92), transparent);
  box-shadow: 0 0 24px rgba(98, 182, 255, 0.85);
  transform: translateX(-50%);
  pointer-events: auto;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(98, 182, 255, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 28%),
    rgba(7, 9, 18, 0.92);
  box-shadow: 0 0 0 8px rgba(47, 125, 255, 0.08), 0 0 26px rgba(47, 125, 255, 0.5);
  transform: translate(-50%, -50%) perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  pointer-events: auto;
}

.compare-handle span {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #cdeeff;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.compare-notes {
  display: grid;
  align-content: end;
  gap: 12px;
}

.compare-notes p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
}

.compare-notes strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-card {
  position: relative;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.compare-card--after {
  border-color: rgba(98, 182, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.compare-label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.compare-card p {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 17px;
}

.wireframe {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  margin-top: 24px;
  min-height: 190px;
}

.wireframe span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.wireframe span:first-child {
  grid-column: 1 / -1;
}

.wireframe--before span {
  opacity: 0.5;
}

.wireframe--before span:nth-child(2) {
  transform: translateY(18px);
}

.wireframe--before span:nth-child(4) {
  transform: translateY(-10px);
}

.wireframe--after span {
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.36), rgba(255, 255, 255, 0.09));
}

.wireframe--after span:first-child {
  min-height: 78px;
}

.project-preview {
  position: relative;
  min-height: 238px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(47, 125, 255, 0.26), transparent 48%),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
    #070b12;
  overflow: hidden;
}

.project-preview::after {
  position: absolute;
  inset: auto 18px -48px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  opacity: 0.28;
}

.project-preview--rose { background: linear-gradient(145deg, rgba(244, 114, 182, 0.2), transparent 48%), #070b12; }
.project-preview--green { background: linear-gradient(145deg, rgba(52, 211, 153, 0.2), transparent 48%), #070b12; }
.project-preview--violet { background: linear-gradient(145deg, rgba(167, 139, 250, 0.2), transparent 48%), #070b12; }
.project-preview--cyan { background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), transparent 48%), #070b12; }
.project-preview--steel { background: linear-gradient(145deg, rgba(148, 163, 184, 0.2), transparent 48%), #070b12; }

.preview-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.preview-topbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.preview-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 12px;
  min-height: 180px;
}

.preview-hero,
.preview-stack,
.preview-grid,
.preview-phone {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(12px);
}

.preview-photo {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  border-radius: 14px;
  object-fit: cover;
  opacity: 0.78;
}

.preview-hero {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: end;
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
}

.preview-hero strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.preview-hero small {
  margin-top: 8px;
  color: var(--muted);
}

.preview-stack {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 14px;
}

.preview-stack span {
  display: block;
  width: var(--w);
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: transparent;
}

.preview-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.preview-grid i {
  min-height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-phone {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  gap: 8px;
  width: 72px;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.preview-phone b,
.preview-phone span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-phone b {
  height: 44px;
  border-radius: 7px;
}

.preview-phone span {
  height: 6px;
}

.cta-band,
.case-result {
  margin: 86px 0;
  padding: 42px;
  border: 1px solid rgba(98, 182, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.cta-band h2,
.cta-band p,
.case-result p {
  max-width: 780px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.cta-band p,
.case-section p,
.case-result p {
  color: var(--soft);
  font-size: 18px;
}

.service-lines {
  display: grid;
  border-top: 1px solid var(--line);
}

.admin-showcase {
  position: relative;
}

.admin-preview,
.admin-workspace {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(98, 182, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(620px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(34, 211, 238, 0.1), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.admin-sidebar span {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 950;
}

.admin-sidebar a,
.admin-sidebar button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-sidebar a:hover,
.admin-sidebar button:hover,
.admin-sidebar .is-active {
  border-color: rgba(98, 182, 255, 0.3);
  background: rgba(47, 125, 255, 0.16);
  color: #fff;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-top h3,
.admin-top h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.05;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-cloud {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(98, 182, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(47, 125, 255, 0.075);
}

.admin-cloud label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-cloud input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
}

.admin-cloud p {
  margin: 0;
  color: var(--muted);
}

.admin-cloud p.is-ok {
  color: #93eaff;
}

.admin-cloud p.is-error {
  color: #ff9ed0;
}

.admin-stats article,
.admin-widget {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-stats strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.admin-table b {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #93eaff;
  font-size: 12px;
}

.admin-page .site-shell,
.admin-page {
  min-height: 100vh;
}

.admin-dashboard {
  padding: 64px 0 90px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
}

.admin-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--soft);
  font-size: 20px;
}

.admin-hero img {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(98, 182, 255, 0.28);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(47, 125, 255, 0.2);
}

.admin-workspace {
  min-height: 620px;
}

.admin-sidebar--full {
  gap: 12px;
}

.admin-panel--full {
  align-content: start;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form {
  display: grid;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: grid;
  gap: 14px;
}

.admin-fields,
.admin-fields--dense,
.project-editor-grid,
.requests-editor {
  display: grid;
  gap: 14px;
}

.admin-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-fields--dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-lang-card,
.request-card,
.project-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.admin-lang-card h4,
.project-editor summary {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.project-editor summary {
  cursor: pointer;
}

.project-editor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.request-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-card label:last-of-type,
.request-card button {
  grid-column: 1 / -1;
}

.admin-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-widget {
  display: grid;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.admin-widget:hover {
  border-color: rgba(98, 182, 255, 0.28);
  transform: translateY(-3px);
}

.admin-widget--wide {
  grid-column: 1 / -1;
}

.admin-widget h3 {
  margin: 0;
}

.admin-widget label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-widget input,
.admin-widget select,
.admin-widget textarea,
.request-card input,
.request-card select,
.request-card textarea,
.admin-lang-card input,
.admin-lang-card textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
}

.admin-widget textarea,
.request-card textarea,
.admin-lang-card textarea {
  min-height: 94px;
  padding: 12px;
  resize: vertical;
}

.image-manager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.image-manager label {
  padding: 12px;
  border: 1px dashed rgba(98, 182, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.image-manager input[type="file"] {
  min-height: auto;
  padding: 10px;
  font-size: 12px;
}

.admin-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.admin-toggle input {
  width: 18px;
  min-height: 18px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kanban div {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.kanban span {
  padding: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 13px;
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 20;
  display: grid;
  gap: 12px;
}

.float-actions a,
.scroll-top {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(98, 182, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(98, 182, 255, 0.24), transparent 32%),
    rgba(5, 10, 18, 0.84);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.float-actions a::before,
.scroll-top::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(47, 125, 255, 0.42));
  transform: translateY(105%);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
  content: "";
}

.float-actions svg,
.scroll-top svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.float-actions a:hover,
.scroll-top:hover {
  border-color: rgba(98, 182, 255, 0.78);
  background: rgba(47, 125, 255, 0.24);
  box-shadow: 0 18px 44px rgba(47, 125, 255, 0.22), 0 0 24px rgba(34, 211, 238, 0.14);
  transform: translateY(-4px) scale(1.05);
}

.float-actions a:hover::before,
.scroll-top:hover::before {
  transform: translateY(0);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.service-lines article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-lines h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.service-lines p {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 38px;
  padding: 78px 0 44px;
}

.case-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.screenshot-tile {
  margin: 0;
}

.screenshot-tile .project-preview {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screenshot-tile figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
  gap: 28px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid strong {
  color: var(--text);
}

.footer-grid p {
  max-width: 420px;
  margin: 10px 0 0;
}

.footer-grid a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .case-hero {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .screenshots,
  .seo-strip,
  .profile-row,
  .compare-grid,
  .compare-showcase,
  .footer-grid,
  .admin-preview,
  .admin-workspace,
  .admin-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    flex: 1;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1,
  .section-head h1,
  .case-hero h1 {
    font-size: 42px;
  }

  .project-grid,
  .screenshots,
  .case-grid,
  .seo-strip,
  .profile-row,
  .compare-grid,
  .compare-showcase,
  .footer-grid,
  .admin-preview,
  .admin-workspace,
  .admin-stats,
  .admin-editor-grid,
  .admin-cloud,
  .image-manager,
  .admin-fields,
  .admin-fields--dense,
  .project-editor-grid,
  .request-card,
  .kanban,
  .admin-hero,
  .service-lines article {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .float-actions {
    right: 12px;
    bottom: 78px;
  }

  .profile-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .profile-card img {
    width: 76px;
    height: 76px;
  }

  .compare-card {
    min-height: 310px;
  }

  .compare-slider {
    min-height: 330px;
    border-radius: 12px;
  }

  .compare-pill {
    bottom: 16px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .compare-pill--before {
    left: 16px;
  }

  .compare-pill--after {
    right: 16px;
  }

  .project-card__body,
  .case-section,
  .cta-band,
  .case-result {
    padding: 20px;
  }

  .button,
  .button-row {
    width: 100%;
  }

  .project-preview {
    min-height: 220px;
  }
}
