/* Setka stranicy: verhnyaya panel, geroy, razdely, prizyv, podval. */

/* --- Verhnyaya panel --- */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.brand:hover { color: var(--ink); border: 0; }
.brand b { font-weight: 700; color: var(--ice); }
.brand img { display: block; filter: drop-shadow(0 2px 10px rgba(0, 170, 255, 0.5)); }

/* --- Geroy --- */
/* Kartinka bez vpisannogo teksta: zagolovok — HTML, poetomu perevoditsya.
   Fon zadan cherez background, a ne <img>: tak on ne rastyagivaetsya nikogda —
   cover sam podbiraet kadr pod lyuboy ekran. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  padding: 0 clamp(20px, 6vw, 72px) clamp(48px, 7vw, 96px);
  background: #060d18 url("/img/hero.webp") center / cover no-repeat;
}

/* Zatemnenie: sleva plotnee, chtoby tekst chitalsya na lyuboy kartinke,
   snizu — rastvorenie v fone stranicy. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.88) 0%, rgba(4, 10, 20, 0.55) 45%, transparent 78%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.55) 0%, transparent 30%, rgba(11, 20, 36, 0.98) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 700;
}

.hero p {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #c3d6ea;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Razdely --- */
main { display: block; }

.band {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 40px) 0;
}

.band h2 {
  margin: 0 0 32px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
}

/* Razdel «chto my delaem» stoit na ledyanoy teksture — ona otdelyaet ego
   ot kartochek rabot bez lishnih liniy. */
.skills-band {
  max-width: none;
  background: url("/img/tex-crystal.webp") center / cover no-repeat;
  border-block: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.skills-band > * { max-width: 1120px; margin-inline: auto; }

.skills {
  display: grid;
  gap: 28px 34px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0 0 clamp(56px, 8vw, 96px);
  list-style: none;
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

/* --- Prizyv --- */
.cta {
  max-width: 1120px;
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border-radius: 24px;
  text-align: center;
  background: #0a1830 url("/img/tex-aurora.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 32px); }
.cta p { margin: 0 0 24px; color: var(--muted); }

/* --- Podval --- */
footer {
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 24px clamp(20px, 5vw, 40px) 56px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer p { margin: 0; }

@media (max-width: 560px) {
  .hero { min-height: 82vh; align-items: center; }
  .brand span { display: none; }
}
