:root {
  --bg-black: #00060d;
  --bg-navy: #081a3d;
  --bg-navy-dark: #051129;
  --card-bg: #eff1f4;
  --teal: #62cccc;
  --amber: #f2a765;
  --white: #ffffff;
  --text-muted: #4d5560;
  --font: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow {
  max-width: 920px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--white);
}
.section-title--sm { font-size: 32px; }
.section-title--dark { color: #081a3d; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #050b14 url('../assets/img/hero.jpg') center center / cover no-repeat;
  padding: 40px 24px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}
.hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 28px;
}
.hero__descr {
  font-size: 22px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
}
.hero__arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.85;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* About */
.about {
  background: var(--bg-black);
  padding: 60px 0 70px;
  text-align: center;
}
.about__descr {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--white);
}

/* Stats */
.stats {
  background: var(--bg-black);
  padding-bottom: 60px;
}
.stats__row {
  display: grid;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stats__row--3 { grid-template-columns: repeat(3, 1fr); }
.stats__row--2 { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.stat { text-align: center; }
.stat__num {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
}
.stat__divider {
  width: 100%;
  height: 2px;
  background: var(--teal);
  margin: 18px 0;
}
.stat__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}

/* Services cards */
.services {
  background: var(--bg-navy);
  padding: 50px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards:nth-of-type(1) { margin-bottom: 24px; }
.card {
  background: var(--card-bg);
  border: 2px solid var(--bg-navy);
  border-radius: 14px;
  padding: 36px 28px;
}
.card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}
.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-navy);
  margin-bottom: 14px;
}
.card__descr {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Product title */
.products-title {
  padding: 60px 0 10px;
}

/* Products */
.products {
  padding: 30px 0 70px;
}
.products__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  text-align: center;
}
.product__img {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.product__title {
  font-size: 22px;
  font-weight: 700;
  color: #081a3d;
  margin-bottom: 14px;
}
.product__descr {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* Tech stack */
.techstack {
  background: var(--bg-navy);
  padding: 70px 0 60px;
}
.techstack .section-title { margin-bottom: 50px; }
.techstack__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
  row-gap: 40px;
}
.tech {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.tech__check {
  width: 30px;
  height: 20px;
  flex-shrink: 0;
  color: var(--white);
  margin-top: 6px;
}
.tech__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.tech__descr {
  font-size: 15px;
  color: var(--white);
  opacity: 0.9;
}

/* Contacts */
.contacts {
  background: var(--bg-navy-dark);
  padding: 60px 0 70px;
  text-align: center;
}
.contacts__org {
  margin-top: 32px;
  font-size: 22px;
  color: var(--white);
}
.contacts__text {
  margin-top: 60px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--white);
}
.contacts__text a {
  color: var(--amber);
  text-decoration: none;
}
.contacts__text a:hover { text-decoration: underline; }

/* Responsive */
@media screen and (max-width: 980px) {
  .hero__title { font-size: 38px; }
  .hero__descr { font-size: 18px; }
  .section-title { font-size: 26px; }
  .stats__row--3,
  .stats__row--2,
  .cards,
  .products__row,
  .techstack__list {
    grid-template-columns: 1fr;
  }
  .stats__row--2 { margin-top: 0; }
  .cards:nth-of-type(1) { margin-bottom: 0; }
  .cards { gap: 20px; }
  .card { padding: 28px 24px; }
  .products__row { gap: 40px; }
  .techstack__list { row-gap: 32px; }
  .container { padding: 0 24px; }
}

@media screen and (max-width: 560px) {
  .hero__title { font-size: 30px; }
  .stat__num { font-size: 48px; }
}
