:root {
  --bg: #02040a;
  --navy: #071027;
  --navy-2: #0c1a3d;
  --ink: #eef1f8;
  --silver: #c9d0e0;
  --muted: #8f98b0;
  --dim: #566079;
  --blue: #3d6bff;
  --blue-soft: #8fb0ff;
  --line: rgba(255, 255, 255, .09);
  --f-wide: "Unbounded", "Arial Black", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  /* «капсула» из заднего фона 1 — общий приём для элементов */
  --pill-bg: radial-gradient(ellipse 60% 90% at 50% 75%, rgba(205, 214, 235, .16), rgba(255, 255, 255, .015) 75%);
  --pill-edge: inset 0 1px 0 rgba(255, 255, 255, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

#sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: .6;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- типографика ---------- */
.wide {
  font-family: var(--f-wide);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.serif {
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
}
.tag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--pill-bg);
  box-shadow: var(--pill-edge);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 26px;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 540px; }

.h2 {
  font-size: clamp(28px, 5.6vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.h2 .serif { font-size: 1.15em; }
.section-lead { color: var(--muted); max-width: 620px; margin-bottom: 56px; }

/* ---------- линии из «волн» ---------- */
.waves {
  position: absolute; left: 0; right: 0;
  background: url("assets/waves.png") center / cover no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  isolation: isolate;
}
.waves::after {            /* лёгкий синий оттенок, левый край серебристый */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #ffffff 10%, #9db5ff 60%, #5f86ff);
  mix-blend-mode: multiply;
}
.waves-hero {
  bottom: 0; height: 75%;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
}
.waves-divider {
  position: relative; height: 220px; margin: -60px 0;
  opacity: .55;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
}
.waves-process {
  top: 30%; height: 70%;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
}
.waves-contact {
  bottom: 0; height: 60%;
  opacity: .7;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%);
          mask-image: linear-gradient(to bottom, transparent, #000 50%);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .25s, background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(180deg, #4a76ff, #2448c9);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 36px -12px rgba(61, 107, 255, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 44px -10px rgba(61, 107, 255, .95); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  background: var(--pill-bg);
  box-shadow: var(--pill-edge);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }

/* ---------- навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 40px;
  padding: 20px var(--gutter);
  z-index: 50;
  transition: background .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(2, 4, 10, .75);
  backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--f-wide); font-weight: 400; font-size: 15px; letter-spacing: .06em;
  display: flex; align-items: center; gap: 10px;
}
.logo b { font-weight: 900; }
.logo-pill {
  width: 22px; height: 10px; border-radius: 999px;
  background: radial-gradient(ellipse at 50% 70%, #fff, #8d97b3);
  box-shadow: 0 0 12px rgba(160, 185, 255, .6);
}
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 12% 30%, rgba(30, 60, 150, .35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
}
.hero-text { position: relative; z-index: 2; }
.title {
  display: flex; flex-direction: column;
  line-height: .95;
  margin-bottom: 28px;
}
.title .wide { font-size: clamp(38px, 7vw, 108px); }
.title .serif { font-size: clamp(46px, 6.6vw, 100px); line-height: 1.05; }
.title .serif.small { align-self: flex-end; margin-right: 6%; color: var(--blue-soft); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 36px 0 52px; }
.hero-stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--f-wide); font-size: 20px; font-weight: 600; }
.hero-stats span { font-size: 13px; color: var(--dim); }

/* стопка капсул — «задний фон 1» */
.pills {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-self: center;
  width: min(100%, 360px, 44vh);
}
.pills i {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1.15;
  margin-top: -9%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-bottom-color: rgba(255, 255, 255, .04);
  background: radial-gradient(ellipse 55% 75% at 50% 70%, var(--glow), #030407 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 -8px 30px rgba(0, 0, 0, .75);
  animation: float 7s ease-in-out infinite;
}
.pills i:first-child { margin-top: 0; }
.pills i:nth-child(1) { --glow: #30343f; animation-delay: 0s; }
.pills i:nth-child(2) { --glow: #6f7688; animation-delay: .25s; }
.pills i:nth-child(3) { --glow: #b9c1d6; animation-delay: .5s; }
.pills i:nth-child(4) { --glow: #c4ccdf; animation-delay: .75s; }
.pills i:nth-child(5) { --glow: #767d90; animation-delay: 1s; }
.pills i:nth-child(6) { --glow: #31353f; animation-delay: 1.25s; }
.pills::after {
  content: ""; position: absolute; inset: 15% -25%;
  background: radial-gradient(closest-side, rgba(61, 107, 255, .22), transparent);
  filter: blur(30px); z-index: -1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- секции ---------- */
.section { position: relative; padding: 120px var(--gutter); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 26, 61, .55), rgba(2, 4, 10, .4));
  box-shadow: var(--pill-edge);
  transition: transform .35s, border-color .35s;
  overflow: hidden;
}
.card::before {           /* блик сверху, как у капсул */
  content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
}
.card:hover { transform: translateY(-5px); border-color: rgba(143, 176, 255, .35); }
.icon {
  display: grid; place-items: center;
  width: 76px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--pill-bg);
  box-shadow: var(--pill-edge);
  margin-bottom: 22px;
}
.icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--silver); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-family: var(--f-wide); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* умения — фото с ноутбуком */
.skills { overflow: hidden; }
.skills-bg {
  position: absolute; inset: 0;
  background: url("assets/desk.jpg") right top / min(50%, 680px) auto no-repeat;
  opacity: .28;
  filter: grayscale(.6);
  -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 60%);
          mask-image: linear-gradient(200deg, #000 15%, transparent 60%);
  z-index: -1;
}
.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.skill {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 30px 24px 30px 0;
  border-bottom: 1px solid var(--line);
}
.skill:nth-child(odd) { border-right: 1px solid var(--line); }
.skill:nth-child(even) { padding-left: 32px; }
.num {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--pill-bg);
  box-shadow: var(--pill-edge);
  font-family: var(--f-wide); font-size: 12px; color: var(--silver);
  transition: border-color .3s, color .3s;
}
.skill:hover .num { color: #fff; border-color: var(--blue); }
.skill h3 { font-family: var(--f-wide); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.skill p { color: var(--muted); font-size: 15px; max-width: 460px; }

.marquee {
  margin: 80px calc(var(--gutter) * -1) 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}
.marquee-track { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marquee span {
  font-family: var(--f-wide); font-weight: 800; font-size: clamp(22px, 3vw, 40px);
  text-transform: uppercase; padding: 0 28px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
}
.marquee span:nth-child(3n) { color: var(--silver); -webkit-text-stroke: 0; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* приложения — большая капсула */
.apps-panel {
  position: relative;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 7vw, 110px);
  border-radius: clamp(32px, 10vw, 220px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom-color: rgba(255, 255, 255, .04);
  background: linear-gradient(180deg, var(--navy-2), var(--bg) 85%);
  box-shadow: var(--pill-edge), 0 40px 80px -40px rgba(61, 107, 255, .35);
  overflow: hidden;
}
.apps-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 70% at 80% 60%, rgba(200, 210, 235, .16), transparent 70%);
}
.apps-text, .stores { position: relative; }
.apps .section-lead { margin-bottom: 28px; }
.apps-list { list-style: none; display: grid; gap: 12px; }
.apps-list li { display: flex; gap: 12px; align-items: center; color: var(--silver); font-size: 15px; }
.apps-list li::before {
  content: ""; flex: none; width: 18px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
}
.stores { display: grid; gap: 16px; }
.store {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: var(--pill-bg), rgba(2, 4, 10, .5);
  box-shadow: var(--pill-edge);
}
.store svg { width: 30px; height: 30px; fill: none; stroke: var(--silver); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.store small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.store b { font-family: var(--f-wide); font-weight: 600; font-size: 18px; }

/* процесс */
.process { overflow: hidden; }
.steps {
  position: relative;
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.steps::before {          /* тонкая линия, соединяющая шаги */
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 208, 224, .5) 15%, rgba(201, 208, 224, .5) 85%, transparent);
}
.steps li { position: relative; }
.step-n {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: radial-gradient(ellipse 60% 90% at 50% 75%, #3a4560, #05070d 80%);
  box-shadow: var(--pill-edge);
  font-family: var(--f-wide); font-size: 12px;
  margin-bottom: 24px;
}
.steps h3 { font-family: var(--f-wide); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* контакты */
.contact {
  position: relative;
  min-height: 90vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 120px var(--gutter);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(2, 4, 10, .7) 35%, rgba(2, 4, 10, .9) 100%),
    url("assets/desk.jpg") center / cover no-repeat;
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact-title { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.contact-title .serif {
  font-size: clamp(44px, 7vw, 108px);
  line-height: 1.15;
  margin-bottom: .18em;     /* чтобы курсив не налезал на «ЖДЁТ» */
}
.contact-title .wide { font-size: clamp(52px, 10vw, 160px); line-height: 1; }
.contact .lead { margin: 0 auto 40px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13px;
  background: var(--bg);
}

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .apps-panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { gap: 16px; }
  .nav .btn-sm { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 6px;
    margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .burger span { width: 24px; height: 2px; background: #fff; transition: .3s; }
  .nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(2, 4, 10, .96); backdrop-filter: blur(14px);
    max-height: 0; overflow: hidden; transition: max-height .4s;
  }
  .nav-links a { padding: 16px var(--gutter); border-top: 1px solid var(--line); font-size: 16px; }
  .nav.open .nav-links { max-height: 360px; }
  .nav.open { background: rgba(2, 4, 10, .96); }

  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .pills { width: min(45%, 180px); order: -1; justify-self: end; margin-bottom: -20px; opacity: .85; }
  .waves-hero { height: 55%; }
  .skill-list { grid-template-columns: 1fr; }
  .skill:nth-child(odd) { border-right: 0; }
  .skill:nth-child(even) { padding-left: 0; }
  .skills-bg { background-size: 90% auto; opacity: .18; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .section { padding: 90px var(--gutter); }
  .hero-stats { gap: 24px; }
  .hero-cta .btn { flex: 1; }
  .store { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
