/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  color: #144363;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 67, 99, 0.08);
  transition: background 0.3s ease;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  height: 130px;
}

.header__logo a {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 129px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.35)) contrast(1.3) saturate(1.2);
}

.header__menu {
  display: flex;
  gap: 40px;
}

.header__link {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #144363;
  position: relative;
  transition: color 0.3s ease-in-out;
  padding: 4px 0;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #67bfbc;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header__link:hover {
  color: #67bfbc;
}

.header__link:hover::after {
  transform: scaleX(1);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header__burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #144363;
  transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.70), rgba(0,0,0,0.70));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 40px;
  max-width: 960px;
}

.hero__title {
  font-size: 62px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.35;
  text-transform: none;
}

.hero__arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__arrow a {
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero__arrow a:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.features__heading {
  font-size: 36px;
  font-weight: 700;
  color: #144363;
  margin-bottom: 105px;
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}

.features__item {
  position: relative;
  padding-left: 80px;
}

.features__number {
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 48px;
  font-weight: 700;
  color: #67bfbc;
  opacity: 1;
  line-height: 1;
}

.features__title {
  font-size: 20px;
  font-weight: 600;
  color: #144363;
  line-height: 1.5;
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 80px 40px;
  background: url('../img/about-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.about__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.60), rgba(0,0,0,0.70));
}

.about__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.about__description {
  font-size: 16px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 16px;
}

.about__list-text {
  line-height: 2;
}

/* ===== DIRECTIONS / SLIDER ===== */
.directions {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.directions__heading {
  font-size: 36px;
  font-weight: 700;
  color: #144363;
  text-align: center;
  margin-bottom: 60px;
}

.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.slider__track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.slider__slide {
  min-width: calc(33.333% - 20px);
  flex-shrink: 0;
}

.slider__img-wrapper {
  width: 100%;
  aspect-ratio: 400 / 310;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.slider__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider__slide:hover .slider__img-wrapper img {
  transform: scale(1.05);
}

.slider__caption {
  font-size: 16px;
  font-weight: 600;
  color: #144363;
  text-align: center;
}

.slider__arrow {
  background: rgba(238, 238, 238, 1);
  border: 2px solid transparent;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.slider__arrow:hover {
  border-color: #67bfbc;
  background: rgba(238, 238, 238, 1);
}

.slider__arrow:hover polyline {
  stroke: #67bfbc;
}

.slider__bullets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider__bullet.active {
  background: #67bfbc;
}

.slider__bullet:hover {
  background: #67bfbc;
}

/* ===== CONTACTS ===== */
.contacts {
  background: #144363;
}

.contacts__row {
  display: flex;
  min-height: 400px;
}

.contacts__map {
  position: relative;
  flex: 1 1 55%;
  min-height: 400px;
}

.contacts__info {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
  background: #144363;
}

.contacts__company {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.4;
}

.contacts__address {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.6;
}

.contacts__email {
  font-size: 16px;
  color: #ffffff;
  margin-top: 10px;
}

.contacts__email a {
  color: #ffffff;
  text-decoration: none;
}

.contacts__email a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: #0e2f45;
  padding: 40px;
}

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

.footer__logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}


/* ===== RESPONSIVE ===== */
@media screen and (max-width: 980px) {
  .header__burger {
    display: flex;
  }

  .header__menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(20, 67, 99, 0.1);
  }

  .header__menu.active {
    transform: translateY(0);
  }

  .header__menu li {
    width: 100%;
    text-align: center;
  }

  .header__link {
    display: block;
    padding: 14px 20px;
    font-size: 18px;
  }

  .header__container {
    padding: 0 20px;
  }

  .hero__title {
    font-size: 32px;
  }

  .features {
    padding: 80px 20px;
  }

  .features__heading {
    margin-bottom: 45px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about {
    padding: 60px 20px;
    background-attachment: scroll;
  }

  .directions {
    padding: 60px 20px;
  }

  .directions__heading {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .slider__slide {
    min-width: calc(50% - 15px);
  }

  .contacts__row {
    flex-direction: column;
  }

  .contacts__map {
    min-height: 300px;
  }

  .contacts__info {
    padding: 40px 20px;
  }

  .footer__container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media screen and (max-width: 640px) {
  .hero__title {
    font-size: 26px;
  }

  .hero__content {
    padding: 0 20px;
  }

  .features__heading {
    font-size: 28px;
  }

  .features__number {
    font-size: 36px;
  }

  .features__item {
    padding-left: 60px;
  }

  .about__description {
    font-size: 15px;
  }

  .slider__slide {
    min-width: 100%;
  }

  .slider__arrow {
    width: 40px;
    height: 40px;
  }

  .slider__arrow svg {
    width: 14px;
    height: 26px;
  }

  .contacts__company {
    font-size: 18px;
  }
}

@media screen and (max-width: 560px) {
  .header__container {
    height: 64px;
  }

  .header__menu {
    top: 64px;
  }

  .header__logo-img {
    height: 44px;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
