:root {
  --primary: #002B63;
  --secondary: #ff7a00;
  --bg: #f7f9fc;
  --text: #2b2b2b;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-hover: rgba(255, 255, 255, 1);
  --cta-gradient: linear-gradient(135deg, #002B63, #001a3d);
  --transition: 0.3s ease;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===== HEADER ===== */
header {
  position: relative;
  background: var(--primary);
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
  color: #0083ba;
  transform: translateY(-3px);
}

.header-socials {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  gap: 18px;
  display: flex;
}

.header-socials a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(82%) sepia(4%) saturate(18%) hue-rotate(184deg) brightness(93%) contrast(85%);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.header-socials a:hover img {
  filter: brightness(0) saturate(100%) invert(33%) sepia(76%) saturate(378%) hue-rotate(182deg) brightness(97%) contrast(87%);
  transform: scale(1.2);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url("./images/background.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.15) contrast(1.1);
  padding: 80px 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,43,99,0.65) 0%,
    rgba(0,43,99,0.4) 45%,
    rgba(0,43,99,0.15) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeSlideUp 1s ease forwards;
  opacity: 0;
}

.hero-left h1 {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

.hero-left p {
  font-size: 22px;
  max-width: 520px;
  margin-bottom: 50px;
  color: #fff;
}

@keyframes fadeSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== HOW WE WORK ===== */
.how {
  margin-top: 280px;
}

.how h2 {
  font-size: 36px;
  margin-bottom: 32px;
  color: #002B63;
  font-weight: 600;
  text-align: center;
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.how-steps .card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  width: 30%; /* меньше на 1/3 ширины */
  min-width: 250px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.how-steps .card.visible {
  transform: translateY(0);
  opacity: 1;
}

.how-steps .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0,0,0,0.25);
}

.how-steps .card h3 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 18px;
}

.how-steps .card p {
  font-size: 16px;
  line-height: 1.5;
}

/* ===== SECTIONS ===== */
section.content {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--primary);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid .card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.grid .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== CTA ===== */
.cta {
  background: var(--cta-gradient);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #fff;
}

.cta p {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 18px;
}

.cta .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta button {
  background: var(--secondary);
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta button:hover {
  background: #e86c00;
  transform: scale(1.05);
}

/* ===== CONTACTS ===== */
#contacts {
  background: var(--bg);
  padding: 80px 20px;
  text-align: center;
}

.contacts-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contacts-box p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}

.contacts-box a.contact-link {
  color: #005b99;
  text-decoration: none;
  transition: color var(--transition);
}

.contacts-box a.contact-link:hover {
  color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  font-size: 14px;
}

#problems .section-title {
  color: #ffffff; /* белый цвет текста */
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    padding-top: 100px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .hero-left p {
    font-size: 18px;
  }

  .how h2 {
    font-size: 30px;
  }

  .how-steps .card {
    width: 100%;
  }

  .cta h2 {
    font-size: 32px;
  }

  .cta p {
    font-size: 16px;
  }

  .cta .buttons {
    flex-direction: column;
    gap: 16px;
  }
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Кнопка Начать проект — более тёмный оттенок, белый текст */
.hero-buttons .btn-primary {
  background: #00b0c0; /* чуть темнее, чем var(--secondary) */
  color: #ffffff;
}

.hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #0099aa, #004c80); /* тёмный градиент на hover */
  transform: scale(1.05);
}

/* Кнопка Наши кейсы — прозрачная с белой рамкой */
.hero-buttons .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

