/* style.css */
:root {
  --blue: #007bff;
  --blue-dark: #0056b3;
  --bg-light: #f5faff;
  --card-bg: #e8f3ff;
  --text-main: #0b1f33;
  --transition: 0.3s ease;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.4;
}

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

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 32px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 86, 179, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-secondary:hover {
  background: #e6f0ff;
  transform: translateY(-2px);
}

/* Hero */

.hero {
  position: relative;
  color: #fff;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("./jpg/piram.webp");
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: -1;
}

.hero-inner {
  padding-top: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 18px;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width var(--transition);
}

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

.hero-content {
  max-width: 640px;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: 44px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 14px;
  opacity: 0.85;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Steps */

.steps {
  background: #e8f3ff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #e6f0ff;
  color: var(--blue);
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 18px;
}

.step-text {
  font-size: 15px;
  color: #4a5a70;
}

/* Why us */

.why {
  background: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.why-card {
  background: #f0f5ff;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  background: #e6f0ff;
}

.why-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 17px;
}

.why-text {
  font-size: 15px;
  color: #4a5a70;
}

/* Prices */

.prices {
  background: #e8f3ff;
}

.price-toggle {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.price-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.price-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffe9c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.price-label {
  font-weight: 600;
}

.price-arrow {
  transition: transform var(--transition);
}

.price-arrow.open {
  transform: rotate(180deg);
}

.price-list {
  max-width: 480px;
  margin: 16px auto 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  display: none;
  font-size: 15px;
}

.price-list ul {
  list-style: none;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #d0d8e8;
}

.price-list li:last-child {
  border-bottom: none;
}

/* Excursions + tabs */

.excursions {
  background: #ffffff;
}

.excursions-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #c5d0e0;
  background: #ffffff;
  cursor: pointer;
  font-size: 15px;
  transition:
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

.tab-btn:hover {
  background: #e6f0ff;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.35);
}

.excursions-wrapper {
  margin-top: 8px;
}

.excursions-category {
  animation: fadeIn 0.3s ease-out;
}

.excursions-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.excursions-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Горизонтальний скрол на мобільних */
@media (max-width: 1024px) {
  .excursions-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
  }

  .exc-card {
    max-width: 280px;
    /* min-width: 280px; */
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Ховаємо некрасивий скролбар */
  .excursions-grid::-webkit-scrollbar {
    display: none;
  }
}

.exc-card {
  flex: 0 0 320px; /* ширина картки */
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1400px) {
  .exc-card {
    flex: 0 0 360px;
  }
}

.exc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.exc-image {
  height: 220px;
  overflow: hidden;
}

.exc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.exc-card:hover .exc-image img {
  transform: scale(1.05);
}

.exc-body {
  padding: 18px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exc-title {
  font-size: 18px;
  font-weight: 600;
}

.exc-btn {
  font-size: 14px;
  padding: 10px 18px;
}

/* Reviews */

.reviews {
  background: #e8f3ff;
}

.review-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 24px 28px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "“";
  position: absolute;
  font-size: 80px;
  color: rgba(0, 123, 255, 0.08);
  top: -20px;
  left: 24px;
}

.review-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #ffe9c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.review-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 18px;
}

.review-text {
  font-size: 15px;
  color: #4a5a70;
}

/* Contacts */

.contacts {
  background: #ffffff;
  text-align: center;
}

.contacts .btn-primary {
  margin-bottom: 24px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.contact-icon.whatsapp {
  background: #25d366;
}

.contact-icon.telegram {
  background: #0088cc;
}

.contact-icon.email {
  background: #0056b3;
}

.contact-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
}

footer {
  text-align: center;
  padding: 24px 0 32px;
  font-size: 13px;
  color: #7a8699;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto; /* ДАЄМО СКРОЛ ФОНУ */
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;

  max-height: 90vh; /* ВАЖЛИВО */
  overflow-y: auto; /* ВАЖЛИВО */
  -webkit-overflow-scrolling: touch; /* iPhone fix */

  padding: 24px 24px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.25s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-body {
  font-size: 15px;
  margin-bottom: 16px;
}

.modal-body label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c5d0e0;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.18);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.modal-note {
  font-size: 12px;
  color: #7a8699;
  margin-top: 4px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .steps-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .hero-inner {
    padding-top: 16px;
  }

  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    gap: 16px;
    font-size: 15px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps-grid,
  .why-grid,
  .excursions-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .nav {
    display: none;
  }

  .hero-buttons {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .price-toggle,
  .price-list {
    margin-inline: 0;
  }

  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .tab-btn {
    white-space: nowrap;
  }
}

/* =================================== */
.excursions-category {
  display: none;
}

.excursions-category[data-category="sea"] {
  display: block;
}

/* ===================================*/
.modal-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal-info p {
  margin: 4px 0;
}

.modal-body ul {
  margin: 8px 0 16px;
  padding-left: 18px;
}

.modal-body ul li {
  margin-bottom: 4px;
}

/* ================================== */
/* Контейнер зі стрілками */
.excursions-scroll-wrapper {
  position: relative;
  width: 100%;
}

/* Горизонтальний скрол */
.excursions-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.excursions-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Картки */
.exc-card {
  flex: 0 0 300px; /* фіксована ширина картки */
  scroll-snap-align: start;
}

/* Стрілки */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  font-size: 22px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.25s ease;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Ховаємо стрілки тільки на дуже маленьких телефонах */
@media (max-width: 320px) {
  .scroll-btn {
    display: none;
  }
}
