* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #0f1a2a;
  background: #f7f9fc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #0b1b35;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(10, 20, 40, 0.2);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

/* Для темного фона шапки - инвертируем для белого текста, возвращаем оранжевый цвет графики, убираем черный фон */
.site-header .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(1.05);
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: #4bb5ff;
}

.nav .lang-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav .lang-link:hover {
  border-bottom-color: transparent;
  border-color: #4bb5ff;
}

.hero {
  padding: 72px 0;
  background: linear-gradient(120deg, #0b1b35 0%, #162b52 55%, #1f3d7a 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: #4bb5ff;
  color: #0b1b35;
  box-shadow: 0 10px 20px rgba(75, 181, 255, 0.3);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card h3 {
  margin-bottom: 12px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #eef3fb;
}

.section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 26, 42, 0.08);
}

.card.highlight {
  border: 2px solid #4bb5ff;
}

.card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.feature-grid,
.stack-grid,
.steps,
.compare {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.feature-grid,
.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature,
.stack-item,
.step,
.compare > div {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 26, 42, 0.08);
}

.two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.compare {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step span {
  display: inline-flex;
  background: #4bb5ff;
  color: #0b1b35;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.footer {
  background: #0b1b35;
  color: #fff;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.footer .btn.primary {
  background: #fff;
  color: #0b1b35;
}

.footer a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

@media (max-width: 820px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
