:root {
  --navy-950: #071523;
  --navy-900: #0a1b2c;
  --navy-850: #0e2439;
  --navy-800: #122b44;
  --text: #f5f7fb;
  --muted: #b8c4d2;
  --accent: #f5494d;
  --border: rgba(255,255,255,.14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--navy-950);
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  height: 82px;
  background: linear-gradient(90deg, #071827 0%, #0d2942 58%, #102c47 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.top-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 52px;
  font-size: 16px;
  color: #eef3f8;
}

.top-nav a {
  opacity: .9;
  transition: opacity .2s ease;
}

.top-nav a:hover { opacity: 1; }

.btn {
  min-height: 56px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn-outline {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.02);
}

.btn-outline:hover { background: rgba(255,255,255,.08); }

.btn-header {
  min-width: 183px;
  height: 54px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 94px);
  overflow: hidden;
  background: #0a1b2c;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 36%;
  background:
    linear-gradient(90deg, rgba(8,22,36,.1), rgba(8,22,36,.08)),
    url("assets/construction-bg.png") center 48% / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #081a2a 0%,
      rgba(8,26,42,.98) 28%,
      rgba(8,26,42,.82) 47%,
      rgba(8,26,42,.28) 69%,
      rgba(8,26,42,.12) 100%),
    linear-gradient(0deg, rgba(6,19,31,.92) 0%, rgba(6,19,31,.16) 36%, rgba(6,19,31,.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 560px;
  padding-top: 48px;
}

.hero-copy {
  width: min(700px, 56vw);
}

.eyebrow {
  font-size: 18px;
  letter-spacing: .34em;
  color: #c3cfdb;
  margin-bottom: 22px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 4.25vw, 72px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

h1 span { color: #b9c7d6; }

.lead {
  margin: 28px 0 0;
  max-width: 600px;
  color: #bcc8d5;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 34px;
}

.btn-primary {
  min-width: 294px;
  height: 70px;
  background: linear-gradient(135deg, #ff5356 0%, #f33f45 100%);
  color: white;
  font-size: 20px;
  box-shadow: 0 16px 36px rgba(245,73,77,.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff6063 0%, #f4484d 100%);
}

.dev-note {
  display: flex;
  gap: 22px;
  align-items: center;
  color: #b8c4d2;
}

.dev-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.dev-line {
  width: 1px;
  height: 58px;
  background: rgba(255,255,255,.42);
}

.hero-slogan {
  position: absolute;
  right: 24px;
  top: 54px;
  width: 195px;
  display: grid;
  gap: 10px;
  color: #dbe4ec;
  font-size: 15px;
  letter-spacing: .28em;
  line-height: 1.05;
}

.hero-slogan i {
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent);
}

.feature-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.04);
}

.feature {
  min-height: 104px;
  padding: 12px 28px 12px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.feature + .feature {
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,.13);
}

.icon {
  flex: 0 0 78px;
  height: 78px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(25,51,77,.86);
  border: 1px solid rgba(255,255,255,.05);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -4px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: #b5c1ce;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  position: relative;
  z-index: 5;
  background: #071523;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aebac7;
}

.footer-inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a:hover { color: white; }

@media (max-width: 1050px) {
  .container { width: min(100% - 42px, 1390px); }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand img { width: 170px; }
  .top-nav { display: none; }

  .hero-photo { inset-left: 0; opacity: .78; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8,26,42,.98) 0%, rgba(8,26,42,.90) 48%, rgba(8,26,42,.38) 100%),
      linear-gradient(0deg, rgba(6,19,31,.96) 0%, rgba(6,19,31,.12) 50%, rgba(6,19,31,.05) 100%);
  }
  .hero-copy { width: 76%; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: none; }
}

@media (max-width: 720px) {
  .site-header { height: 78px; }
  .container { width: min(100% - 30px, 1390px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand img { width: 145px; }
  .btn-header { min-width: auto; height: 46px; min-height: 46px; padding: 0 16px; font-size: 14px; }

  .hero { min-height: auto; }
  .hero-inner { min-height: 650px; padding-top: 54px; }
  .hero-copy { width: 100%; }
  .hero-photo { inset: 0; background-position: 64% center; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7,21,35,.98), rgba(7,21,35,.82)),
      linear-gradient(0deg, rgba(7,21,35,.95), rgba(7,21,35,.05));
  }
  .eyebrow { font-size: 14px; }
  h1 { font-size: 44px; }
  .lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .btn-primary { min-width: 0; width: 100%; }
  .hero-slogan { display: none; }

  .feature-row { grid-template-columns: 1fr; padding-bottom: 30px; }
  .feature + .feature { border-left: 0; border-top: 1px solid rgba(255,255,255,.11); padding-left: 0; }
  .footer-inner { padding: 22px 0; flex-direction: column; align-items: flex-start; }
}
/* ===== Desktop compact hero override ===== */
@media (min-width: 1051px) {

  .site-header {
    height: 82px;
  }

  .brand img {
    width: 190px;
  }

  .hero {
    height: calc(100vh - 82px);
    min-height: 680px;
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    flex: 1;
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 16px;
  }

  .hero-copy {
    width: min(780px, 54vw);
  }

  h1 {
    font-size: clamp(46px, 3.35vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .lead {
    margin-top: 22px;
    max-width: 650px;
    font-size: 17px;
    line-height: 1.48;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 34px;
  }

  .btn-primary {
    height: 58px;
    min-height: 58px;
    min-width: 280px;
    font-size: 18px;
  }

  .dev-line {
    height: 50px;
  }

  .hero-slogan {
    top: 48px;
  }

  .feature-row {
    margin-top: auto;
    padding: 14px 0 20px;
  }

  .feature {
    min-height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    font-size: 23px;
  }

  .feature h3 {
    margin-bottom: 5px;
    font-size: 17px;
  }

  .feature p {
    font-size: 13px;
    line-height: 1.4;
  }
}
/* ===== Full-width hero background ===== */

.hero-photo {
  inset: 0;
  background:
    url("assets/construction-bg.png") center center / cover no-repeat;
  transform: none;
}

.hero-overlay {
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 21, 35, 0.98) 0%,
      rgba(6, 21, 35, 0.92) 22%,
      rgba(6, 21, 35, 0.72) 42%,
      rgba(6, 21, 35, 0.30) 65%,
      rgba(6, 21, 35, 0.10) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6, 21, 35, 0.72) 0%,
      rgba(6, 21, 35, 0.05) 45%,
      rgba(6, 21, 35, 0.08) 100%
    );
}
/* ===== Fixed header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: 82px;
  background: rgba(7, 24, 39, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body {
  padding-top: 82px;
}

/* Первый экран занимает остаток высоты после шапки */
.hero {
  min-height: calc(100vh - 82px);
}

.hero-inner {
  min-height: calc(100vh - 82px);
}
/* ===== Fix hero layout with fixed header ===== */

.hero {
  height: calc(100vh - 82px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 28px;
  padding-bottom: 8px;
}

.feature-row {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 0 14px;
}

.feature {
  min-height: 72px;
}

.icon {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}
