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

:root {
  --navy: #1a3556;
  --navy-dark: #122640;
  --navy-light: #254a73;
  --orange: #f58220;
  --orange-dark: #d96e10;
  --orange-light: #ff9a42;
  --white: #ffffff;
  --gray-light: #f0f2f5;
  --gray: #8a95a5;
  --text: #2c3e50;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.header__nav a:hover {
  color: var(--orange);
}

.header__nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 20px 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__logo {
  max-width: 450px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
}

.hero__logo img {
  width: 100%;
}

.hero__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
}

.hero__cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 20px;
}

.section--gray {
  background: var(--gray-light);
}

.section--navy {
  background: var(--navy);
}

.section__title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.section--navy .section__title {
  color: var(--white);
}

.section__subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
}

.section__title span {
  color: var(--orange);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-top-color: var(--orange);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 15px;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ===== SLIDER ===== */
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(26, 53, 86, 0.7);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--orange);
}

.slider-btn--prev {
  left: 16px;
}

.slider-btn--next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ===== VIDEO ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand img {
  height: 60px;
  margin-bottom: 16px;
}

.footer__brand p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.footer__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--orange);
}

.footer__contacts li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #c0c8d4;
}

.footer__contacts li span.label {
  color: var(--gray);
  min-width: 60px;
}

.footer__contacts a {
  color: #c0c8d4;
  transition: color 0.3s;
}

.footer__contacts a:hover {
  color: var(--orange);
}

.footer__nav-list li {
  margin-bottom: 10px;
}

.footer__nav-list a {
  color: #c0c8d4;
  font-size: 15px;
  transition: color 0.3s;
}

.footer__nav-list a:hover {
  color: var(--orange);
}

.footer__bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 17px;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 130px 20px 70px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__logo {
    max-width: 450px;
  }

  .section__title {
    font-size: 28px;
  }

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

  .slider-slide img {
    height: 300px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 24px;
  }

  .hero__cta {
    padding: 14px 32px;
    font-size: 15px;
  }

  .slider-slide img {
    height: 220px;
  }

  .video-card video {
    height: 180px;
  }
}
