/* ============================================================
   CSS — Туристическое бюро «Стикс»
   Полное оформление: морская тема, адаптивность, анимации
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2C3E50;
  background-color: #FFFFFF;
  padding-top: 70px; /* компенсация фиксированной шапки */
}

/* Выделение текста */
::selection {
  background-color: #17A2B8;
  color: #FFFFFF;
}

::-moz-selection {
  background-color: #17A2B8;
  color: #FFFFFF;
}

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

a:focus-visible {
  outline: 3px solid #17A2B8;
  outline-offset: 3px;
}

ul {
  list-style: none;
}

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

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

.section {
  padding: 90px 0;
}

.section__title {
  font-size: 36px;
  font-weight: 800;
  color: #0B3D5D;
  text-align: center;
  margin-bottom: 16px;
}

.section__subtitle {
  text-align: center;
  font-size: 18px;
  color: #5A7A8A;
  margin-bottom: 50px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid #17A2B8;
  outline-offset: 3px;
}

.btn--primary {
  background-color: #0B3D5D;
  color: #FFFFFF;
  border-color: #0B3D5D;
}

.btn--primary:hover {
  background-color: #1A5276;
  border-color: #1A5276;
}

.btn--accent {
  background-color: #17A2B8;
  color: #FFFFFF;
  border-color: #17A2B8;
}

.btn--accent:hover {
  background-color: #138496;
  border-color: #138496;
}

.btn--outline {
  background-color: transparent;
  color: #0B3D5D;
  border-color: #0B3D5D;
}

.btn--outline:hover {
  background-color: #0B3D5D;
  color: #FFFFFF;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  transition: box-shadow 0.3s ease;
}

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

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo__img {
  height: 48px;
  width: auto;
}

/* ----- Navigation ----- */
.nav__list {
  display: flex;
  gap: 30px;
}

.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: #2C3E50;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #17A2B8;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav__link:hover,
.nav__link:focus {
  color: #17A2B8;
}

.nav__link:hover::after {
  width: 100%;
}

/* CTA кнопка в шапке */
.header__cta {
  transition: all 0.3s ease;
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 61, 93, 0.3);
}

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

.burger__line {
  width: 28px;
  height: 3px;
  background-color: #0B3D5D;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анимация бургера -> крестик */
.burger.active .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0B3D5D; /* fallback */
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -70px; /* компенсация padding-top body для полного экрана */
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 61, 93, 0.7), rgba(23, 162, 184, 0.5));
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding-top: 80px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero__subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0.95;
  font-style: italic;
}

.hero__btn {
  font-size: 18px;
  padding: 16px 40px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background-color: #F0F8FF;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #3D5A6E;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: #17A2B8;
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: #5A7A8A;
  font-weight: 500;
}

.about__image img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   CRUISES
   ============================================================ */
.cruises {
  background-color: #FFFFFF;
}

.cruises__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cruise-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cruise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.cruise-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.cruise-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
  pointer-events: none;
}

.cruise-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cruise-card:hover .cruise-card__image img {
  transform: scale(1.08);
}

.cruise-card__body {
  padding: 20px;
}

.cruise-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0B3D5D;
  margin-bottom: 6px;
}

.cruise-card__desc {
  font-size: 14px;
  color: #5A7A8A;
  margin-bottom: 16px;
}

.cruise-card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.cruise-card__duration {
  color: #5A7A8A;
}

.cruise-card__duration i {
  margin-right: 6px;
  color: #17A2B8;
}

.cruise-card__price {
  font-weight: 700;
  color: #0B3D5D;
  font-size: 16px;
}

.cruise-card__btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages {
  background-color: #F0F8FF;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage {
  background-color: #FFFFFF;
  padding: 36px 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.advantage__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0B3D5D, #17A2B8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #FFFFFF;
}

.advantage__title {
  font-size: 18px;
  font-weight: 700;
  color: #0B3D5D;
  margin-bottom: 10px;
}

.advantage__text {
  font-size: 14px;
  color: #5A7A8A;
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background-color: #FFFFFF;
}

.testimonials__slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials__wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid #17A2B8;
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__text {
  font-size: 18px;
  line-height: 1.8;
  color: #3D5A6E;
  margin-bottom: 16px;
  font-style: italic;
  max-width: 600px;
}

.testimonial__author {
  font-style: normal;
  font-weight: 700;
  color: #0B3D5D;
  font-size: 16px;
}

/* ----- Controls ----- */
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #17A2B8;
  background-color: #FFFFFF;
  color: #17A2B8;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonials__btn:hover {
  background-color: #17A2B8;
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.testimonials__btn:active {
  transform: scale(0.95);
}

.testimonials__dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #D0D8E0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #17A2B8;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background-color: #F0F8FF;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* ----- Form ----- */
.contact__form {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0B3D5D;
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E0E8F0;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #2C3E50;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background-color: #FAFCFF;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #A0B4C4;
  font-weight: 400;
}

.form__input:focus,
.form__textarea:focus {
  border-color: #17A2B8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}

.form__input:hover,
.form__textarea:hover {
  border-color: #B0C8D8;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.form__btn:hover {
  background-color: #1A5276;
  border-color: #1A5276;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 61, 93, 0.3);
}

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

/* ----- Contact Info ----- */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #0B3D5D, #17A2B8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
}

.contact__info-item h4 {
  font-size: 14px;
  color: #5A7A8A;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact__info-item a,
.contact__info-item p {
  font-size: 16px;
  font-weight: 600;
  color: #0B3D5D;
}

.contact__map {
  margin-top: 10px;
}

.contact__map-placeholder {
  background-color: #E0E8F0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #5A7A8A;
}

.contact__map-placeholder i {
  font-size: 40px;
  color: #17A2B8;
  margin-bottom: 10px;
}

.contact__map-placeholder p {
  font-weight: 600;
  font-size: 16px;
  color: #0B3D5D;
}

.contact__map-placeholder small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #0B3D5D;
  color: #FFFFFF;
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__logo {
  margin-bottom: 16px;
  filter: brightness(10);
}

.footer__desc {
  font-size: 14px;
  opacity: 0.8;
  font-style: italic;
}

.footer__nav-title,
.footer__social-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #17A2B8;
}

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

.footer__link {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #17A2B8;
  transition: width 0.3s ease;
}

.footer__link:hover {
  opacity: 1;
  color: #17A2B8;
}

.footer__link:hover::after {
  width: 100%;
}

.footer__social-icons {
  display: flex;
  gap: 14px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: #17A2B8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.footer__bottom {
  padding-top: 30px;
  text-align: center;
}

.footer__copyright {
  font-size: 14px;
  opacity: 0.7;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B3D5D, #17A2B8);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ADAPTIVE / MEDIA QUERIES
   ============================================================ */

/* Tablet (768–1199px) */
@media (max-width: 1199px) {
  .cruises__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about__stats {
    justify-content: center;
  }

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

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

/* Mobile (<768px) */
@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 28px;
  }

  /* Burger */
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .header__cta {
    display: none;
  }

  /* Hero */
  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

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

  /* Grids */
  .cruises__grid {
    grid-template-columns: 1fr;
  }

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

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

  .contact__form {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer__social-icons {
    justify-content: center;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
