/* GLOBAL FIX */
* {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0; padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  color: #1f2937; background: #f9fbff;
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}

/* HEADER */
.hero {
  position: relative;
  background: url('../images/hero.webp') center/cover no-repeat;
  color: #fff; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.hero .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.9); z-index: 1;
}
nav {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%; /* ← вместо фиксированных 40px */
  z-index: 2;
  box-sizing: border-box;
}
nav .logo { font-size: 1.6rem; font-weight: bold; color: #fff; letter-spacing: 1px; }
nav .menu a {
  color: #fff; text-decoration: none; margin-left: 25px; font-weight: 500;
  transition: opacity .3s;
}
nav .menu a:hover { opacity: 0.8; }
.hero-content {
  position: relative; z-index: 2; max-width: 800px; margin: auto; padding: 20px;
}
.hero-content h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; }
.btn {
  display: inline-block; padding: 14px 32px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff; border-radius: 10px; text-decoration: none;
  font-weight: bold; transition: transform .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.25); }

/* CONTENT */
.container { max-width: 1200px; margin: auto; padding: 80px 20px; }
.two-col { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.two-col div { flex: 1; }
.two-col img { max-width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
h2 { text-align: center; color: #1e3c72; font-size: 2rem; margin-bottom: 30px; }
p { line-height: 1.7; font-size: 1.1rem; }

/* SERVICES */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; margin-top: 40px;
}
.card {
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.card img { width: 80px; margin-bottom: 20px; }
.card h3 { color: #1e3c72; margin-bottom: 15px; }

/* WHY */
.why-list {
  list-style: none; max-width: 800px; margin: 40px auto; padding: 0;
}
.why-list li {
  background: #fff; border-radius: 10px;
  margin: 15px 0; padding: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  font-size: 1.1rem;
}

/* CTA */
.cta { text-align: center; padding: 100px 20px; }
.cta p { max-width: 700px; margin: 0 auto 30px auto; }

/* FOOTER */
footer { background: #1e3c72; color: #dbeafe; text-align: center; padding: 40px; font-size: 0.95rem; }

/* BACKGROUNDS */
.alt-bg { background: #f0f6ff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 2rem; }
  .two-col { flex-direction: column; text-align: center; }
  nav { flex-direction: column; }
  nav .menu a { margin: 10px; }
}
