:root {
  --bg: #05070b;
  --ink: #f4f6fa;
  --muted: #a7b0c0;
  --line: rgba(244, 246, 250, 0.14);
  --accent: #2ef2c2;
  --accent-2: #18c9ff;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 30%, transparent 35%, rgba(5, 7, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.35), transparent 18%, rgba(5, 7, 11, 0.65));
}

.top,
main,
.foot {
  position: relative;
  z-index: 2;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0));
}

.top-inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--ink); }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.55);
  padding: 0.65rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 25;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(5, 7, 11, 0.96);
  backdrop-filter: blur(10px);
}

body.nav-open .nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}

body.nav-open .menu-btn {
  position: relative;
  z-index: 30;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(5, 7, 11, 0.55);
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 0.08em;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.screen {
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
}

.hero-inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mega {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 0.9;
}

.mega-a,
.mega-b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  padding: 0;
}

.mega-a {
  font-size: clamp(3.8rem, 16vw, 9.5rem);
  color: var(--ink);
  text-shadow: 0 0 40px rgba(46, 242, 194, 0.18);
}

.mega-b {
  font-size: clamp(1.35rem, 5vw, 3rem);
  color: var(--accent);
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 1.5rem 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: rgba(244, 246, 250, 0.18);
  overflow: hidden;
}

.scroll-hint span {
  display: block;
  width: 100%;
  height: 28%;
  background: var(--accent);
  animation: drip 1.8s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(280%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #041018;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.work {
  padding: 4.5rem 0 2.5rem;
}

.work-head {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto 1.25rem;
}

.work-head h2,
.offer-wrap h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.work-head p,
.lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

.showcase {
  width: min(1180px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6.5rem);
  perspective: 1400px;
}

.shot {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shot.is-in {
  opacity: 1;
  transform: none;
}

.shot-info {
  position: relative;
  z-index: 2;
}

.shot-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 242, 194, 0.35);
  margin: 0 0 0.35rem;
  pointer-events: none;
  user-select: none;
}

.shot-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot-info h3 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
}

.shot-info p {
  margin: 0.55rem 0 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28rem;
  font-size: 1rem;
}

.shot-info em {
  font-style: normal;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: letter-spacing 0.25s ease;
}

.shot:hover .shot-info em {
  letter-spacing: 0.04em;
}

.device {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid rgba(46, 242, 194, 0.22);
  background:
    linear-gradient(160deg, rgba(46, 242, 194, 0.08), transparent 40%),
    #0a0e14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(46, 242, 194, 0.08);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  will-change: transform;
}

.shot-b .device {
  transform: rotateY(8deg) rotateX(4deg);
}

.shot:hover .device {
  box-shadow:
    0 0 0 1px rgba(46, 242, 194, 0.25) inset,
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(24, 201, 255, 0.14);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.device-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4454;
  display: block;
}

.device-bar i:nth-child(1) { background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }

.device-bar span {
  margin-left: 0.55rem;
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 242, 194, 0.18), transparent 50%),
    #0c121a;
  overflow: hidden;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 -40px 60px rgba(5, 7, 11, 0.45);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.08), transparent 28%, transparent 72%, rgba(5, 7, 11, 0.35));
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #0c121a;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shot-light .device-screen img {
  object-position: center top;
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
}

.shot-light .device-screen::after {
  background:
    linear-gradient(125deg, rgba(5, 7, 11, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.25), transparent 35%, rgba(5, 7, 11, 0.55));
  box-shadow:
    inset 0 0 0 1px rgba(204, 255, 0, 0.08),
    inset 0 0 90px rgba(5, 7, 11, 0.55);
}

.shot-light .device {
  box-shadow:
    0 0 0 1px rgba(204, 255, 0, 0.16) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(204, 255, 0, 0.12);
}

.shot:hover .device-screen img {
  transform: scale(1.045);
}

.shot::before {
  content: "";
  position: absolute;
  inset: 10% -8%;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(46, 242, 194, 0.09), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.shot:hover::before {
  opacity: 1;
}

.screen-soft {
  min-height: auto;
  padding: 4rem 0;
}

.offer-wrap {
  width: min(760px, calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.offer-wrap ul {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.offer-wrap li,
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.45;
}

.price {
  margin: 1.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: var(--accent);
}

.faq details + details { margin-top: 0.65rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); }

.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  padding: 0.9rem 1rem;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(46, 242, 194, 0.55);
}

.form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.form .btn:disabled { opacity: 0.65; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status { margin: 0.2rem 0 0; font-weight: 600; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #ff8f8f; }

.mail { margin: 1rem 0 0; color: var(--muted); }
.mail a { color: var(--accent-2); text-decoration: none; font-weight: 600; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
}

.foot-inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (min-width: 860px) {
  .menu-btn { display: none; }

  .nav {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    gap: 1.35rem;
  }

  body.nav-open .nav {
    display: flex;
    position: static;
    inset: auto;
    background: none;
    backdrop-filter: none;
  }

  body.nav-open .nav a {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--muted);
  }

  .shot {
    grid-template-columns: 0.9fr 1.25fr;
    gap: 2.5rem;
  }

  .shot-b {
    grid-template-columns: 1.25fr 0.9fr;
  }

  .shot-a .shot-info {
    padding-right: 0.5rem;
  }

  .shot-b .shot-info {
    padding-left: 0.5rem;
  }

  .form {
    grid-template-columns: 1fr 1fr;
  }

  .form .full,
  .form .btn,
  .form-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 859px) {
  .top-inner {
    gap: 0.65rem;
  }

  .logo {
    font-size: 0.82rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-btn {
    padding: 0.5rem 0.55rem;
  }

  .screen {
    min-height: 100svh;
    padding: 5.5rem 0 3rem;
    align-items: flex-end;
  }

  .mega-a {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .mega-b {
    font-size: clamp(1.05rem, 5.5vw, 1.5rem);
    letter-spacing: 0.06em;
  }

  .hero-title {
    max-width: 100%;
    font-size: 1.2rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.4rem);
  }

  .scroll-hint { display: none; }

  .work {
    padding: 3.5rem 0 2rem;
  }

  .showcase {
    gap: 2.75rem;
  }

  .shot {
    gap: 1rem;
  }

  .device {
    transform: none !important;
  }

  .shot-num {
    font-size: clamp(3.2rem, 18vw, 4.5rem);
  }

  .screen-soft {
    padding: 3rem 0;
  }

  .form .btn {
    width: 100%;
    justify-self: stretch;
  }

  .foot-inner {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span,
  .device-screen img,
  .device,
  .btn,
  .shot {
    animation: none !important;
    transition: none !important;
  }

  .device,
  .shot-b .device {
    transform: none !important;
  }

  .shot {
    opacity: 1 !important;
    transform: none !important;
  }
}
