* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: #1e1e1e;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

.section-title {
  font-size: 42px;
  color: #005FA3;
  margin-bottom: 40px;
  text-align: center;
}

/* Кнопки */
.btn {
  display: inline-block;
  background: #005FA3;
  color: white;
  font-weight: 400;
  font-size: 18px;
  padding: 16px 48px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 95, 163, 0.2);
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #004a82;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 95, 163, 0.3);
}

/* Шапка */
.header {
  padding: 20px 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.logo {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 36px;
  color: #005FA3;
  letter-spacing: -0.5px;
}

.header-contacts {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.header-contacts span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  color: #005FA3;
  font-size: 18px;
  font-style: normal;
}

/* Навигация */
.nav {
  display: flex;
  gap: 40px;
  padding-top: 15px;
  border-top: 1px solid #eaeef2;
}

.nav a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  transition: color 0.2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #005FA3;
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Бургер */
.burger-checkbox {
  display: none;
}

.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 30px;
}

.burger-icon span {
  height: 3px;
  background: #005FA3;
  border-radius: 3px;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  padding: 25px;
  gap: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-radius: 8px;
  margin-top: 15px;
}

.mobile-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
}

/* Hero секция + слайдер */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 140px 0;
  margin-top: 10px;
  transition: background-image 0.5s ease;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
}

.slider-dots {
  display: flex;
  gap: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: all 0.3s;
  cursor: pointer;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-arrows {
  display: flex;
  gap: 15px;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-arrow:hover {
  background: rgba(0,95,163,0.8);
  border-color: white;
  transform: scale(1.05);
}

/* Услуги */
.services {
  padding: 80px 0;
  background: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,95,163,0.1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  color: #005FA3;
  margin-bottom: 12px;
}

.service-card p {
  color: #555;
  font-size: 15px;
}

/* Кейсы */
.cases {
  padding: 80px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.case-card {
  background: #fff;
  border-left: 5px solid #005FA3;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-value {
  font-size: 42px;
  font-weight: 700;
  color: #005FA3;
  font-family: 'Merriweather', serif;
  margin-bottom: 5px;
}

.case-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  margin-bottom: 15px;
  font-weight: 400;
}

.case-card p {
  color: #444;
}

/* О компании */
.about {
  padding: 80px 0;
  background: #f9f9f9;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-mission {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #333;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 48px;
  font-weight: 900;
  color: #005FA3;
  font-family: 'Merriweather', serif;
}

.stat-label {
  font-size: 16px;
  color: #555;
  margin-top: 5px;
}

/* Форма */
.contact-section {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.75) 100%), url('../images/contact-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 0;
}

.contact-grid {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-weight: 900;
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-info p {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.contact-details {
  display: flex;
  gap: 40px;
  font-size: 20px;
  font-weight: 300;
}

.contact-details span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form {
  flex: 1.2;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding: 12px 0;
  font-size: 18px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: white;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #005FA3;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  margin-top: 45px;
}

/* Футер */
.footer {
  padding: 35px 0;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  border-top: 1px solid #eaeef2;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer a {
  color: #005FA3;
  text-decoration: none;
  font-weight: 500;
}

/* Попап */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.popup {
  background: white;
  padding: 48px 56px;
  border-radius: 16px;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 25px 40px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.3s;
  color: #1e1e1e;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup-overlay.active .popup {
  transform: scale(1);
}

.popup h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #005FA3;
}

/* Адаптив */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-contacts {
    flex-wrap: wrap;
    gap: 15px 25px;
  }

  .nav {
    display: none;
  }

  .burger-icon {
    display: flex;
  }

  .burger-checkbox:checked ~ .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .slider-controls {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .contact-grid {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-details {
    flex-direction: column;
    gap: 15px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .popup {
    padding: 32px 24px;
    margin: 20px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 16px;
  }

  .contact-info h2 {
    font-size: 36px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }
}