body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f7fb;
  color: #111;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  width: 100%;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 150px;
}

.nav {
  display: flex;
  gap: 25px;
  max-width: 500px;
  width: 100%;
  padding: 0 30px;
  justify-content: space-between;
}
.nav a {
  color: #555;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
}
.nav a:hover {
  color: #111;
}

.header-btn {
  background: #22c55e;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* HERO */
.hero {
  position: relative;
  padding: 160px 0;
  color: white;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* 🔥 ВОТ ЭТО РЕШАЕТ */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 30, 0.9) 0%,
    rgba(10, 15, 30, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

.hero-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero-left {
  max-width: 600px;
  width: 100%;
}
h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero p {
  color: #d1d5db;
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.button {
  background: #22c55e;
  padding: 14px 28px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}
.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.hero-stats b {
  font-size: 26px;
  display: block;
}

/* ==================== СЕКЦИИ ==================== */
section {
  padding: 80px 0;
}

h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: #111;
}

/* Гриды */
.problem-grid,
.services-grid,
.cases-grid,
.why-grid {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

.problem-grid,
.services-grid,
.cases-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.why-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}


/* КАРТОЧКИ — главное исправление */
.problem-card,
.service-card,
.case-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  border: 1px solid #eee;
  padding: 10px;
}

.problem-card:hover,
.service-card:hover,
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Улучшаем видимость текста в карточках */
.service-card h3,
.problem-card h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #111;
}

.service-card p,
.problem-card p {
  margin: 0;
  color: #444;
  font-size: 15px;
}

.danger {
  border: 2px solid #ff4d4d;
}

/* WHY секция */
.why-left h2 {
  text-align: left;
  margin-bottom: 15px;
  margin-left: 10px;
}

.why-item {
  margin-bottom: 28px;
  padding: 10px;
  background-color: transparent;
  border-radius: 16px;
  transition: all 0.3s ease-in-out;
}
.why-item:hover {
  background-color: #22c55e2c;
}

.why-item p,
h3 {
  margin: 0;
}

.why-item h3 {
  margin-bottom: 8px;
  color: #111;
  font-size: 20px;
}

.why-right img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* CASES */
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: transparent;
}

.case-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
  transform: scale(1.2);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  color: white;
}

.case-card:hover img {
  transform: scale(1.5);
}
.case-card:hover .case-overlay {
  opacity: 1;
}

/* TRUST */
.trust {
  background: white;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
  gap: 20px;
}

/* STEPS */
.steps {
  /* background: #f9fafb; */
  z-index: 100;
  position: relative;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.step {
  height: 120px;
  width: 120px;
  background: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  flex-direction: column;
}
.arrow {
  position: absolute;
  bottom: 36%;
  border: 1px solid #22c55e;
  width: 99%;
}
.step h3 {
  font-size: 42px;
  margin: 0;
  color: #22c55e;
}
.step p {
  margin: 0;
}

/* CONTACT */
.contact {
  background: linear-gradient(120deg, #0f172a, #1e3a8a);
  color: white;
  padding: 100px 0;
}

.contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
}

.contact-form input,
.contact-form textarea {
  resize: none;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.contact-box h2 {
  color: white;
}

.form-btn {
  background: #22c55e;
  color: #111;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}

/* FLOATING BUTTON + FOOTER */
.floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #22c55e;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
  z-index: 999;
}

footer {
  background: #111827;
  color: #cbd5e1;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer .logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}
footer a {
  text-decoration: none;
  color: #cbd5e1;
}

.copyright {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
  padding-top: 25px;
  border-top: 1px solid #334155;
}

/* АНИМАЦИИ */
.animate {
  opacity: 0;
  transform: translateY(40px);
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.container h2 {
  margin-top: 0;
}

.step-partners {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  border: 1px solid #eee;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #111;
  display: block;
  transition: 0.3s;
}

/* Анимация в крестик */
.burger.active span:nth-child(1) {
  transform: rotate(50deg) translate(5px, 4px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-53deg) translate(7px, -5px);
}
/* ================= MOBILE (ПОЛНЫЙ ФИКС) ================= */
@media (max-width: 768px) {

  /* ===== БАЗА ===== */
  .container {
    padding: 0 16px;
  }

  section {
    padding: 50px 0;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  /* ===== HEADER ===== */
  .burger {
    display: flex;
  }

  .header-btn {
    display: none;
  }

  /* ===== NAV (бургер меню) ===== */
  .nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 30px;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1000;
}

  .nav.active {
    transform: translateX(0);
  }

  /* ===== HERO ===== */
  .hero {
    padding: 100px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  /* ===== GRID ===== */
  .problem-grid,
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* ===== STEPS ===== */
  .steps-grid {
    flex-direction: column;
    gap: 20px;
  }

  .step,
  .step-partners {
    width: 100%;
    border-radius: 16px;
  }

  .arrow {
    display: none;
  }

  /* ===== FORM ===== */
  .contact {
    padding: 60px 0;
  }

  .contact-box {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    border-radius: 16px;
  }

  .form-btn {
    width: 100%;
  }

  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* ===== FLOAT BUTTON ===== */
  .floating-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .hero-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.hero-left {
  width: 100%;
  max-width: 100%;
}

/* 🔥 КЛЮЧЕВОЙ ФИКС */
.hero .container {
  max-width: 100%;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
body.menu-open {
  overflow: hidden;
}
.burger {
  position: relative;
  z-index: 1100;
}
}
/* ===== GLOBAL FIX (КРИТИЧНО) ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* Убираем любые вылезания */
img {
  max-width: 100%;
  display: block;
}
.burger {
  position: relative;
  z-index: 1100;
}
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.hero-inner {
  position: relative;
  z-index: 2;
}
