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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1b1b1b;
  background: #f9f1e6;
}

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

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  background-color: #275b8f;
  background: url("./images/hero-yerevan.png") center center/cover no-repeat;
  color: #fff;
  padding: 80px 0 70px;
  overflow: hidden;
  min-height: min(78vh, 880px);
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(40, 28, 22, 0.18) 0%,
    rgba(40, 28, 22, 0.2) 42%,
    rgba(30, 22, 18, 0.45) 78%,
    rgba(18, 14, 12, 0.55) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-content {
  max-width: 760px;
  margin-top: auto;
}

.hero-copy {
  max-width: 760px;
}

.hero-contacts,
.footer-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-contacts a,
.footer-contacts a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-contacts a:hover,
.footer-contacts a:hover {
  background: #fff;
  color: #a34d24;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 16px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 0 24px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 16px rgba(0, 0, 0, 0.3);
}

.lead {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 0 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.lead + .lead {
  margin-top: -20px;
}

.hero-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-nav a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-nav a:hover {
  background: #fff;
  color: #a34d24;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: #fff7ec;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 24px;
  color: #8f4a24;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin: 0 0 6px;
}

h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #8f4a24;
}

.text-block p {
  margin: 0 0 16px;
}

.about-grid {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: minmax(220px, 320px) 1fr;
}

.about-photo img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(33, 37, 41, 0.18);
}

.card {
  background: #fff3e2;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 12px 28px rgba(148, 90, 40, 0.12);
}

.card:last-child {
  margin-bottom: 0;
}

.card-custom-route {
  text-align: center;
}

.card-custom-route .card-lead {
  margin-bottom: 16px;
}

.card-header {
  margin-bottom: 16px;
}

.card-subtitle {
  margin: 0;
  color: #9a6b4a;
  font-weight: 600;
}

.card-lead {
  margin: 0 0 20px;
}

.tour-main {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-template-columns: minmax(240px, 360px) 1fr;
}

.tour-main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.tour-cover-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tour-cover-carousel.carousel-3-4 {
  aspect-ratio: 3 / 4;
}

.tour-cover-carousel.carousel-photo-format {
  aspect-ratio: 3 / 4;
  background: var(--color-card-soft);
}

.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}

.tour-cover-carousel.carousel-photo-format .carousel-slide img {
  object-fit: contain;
}

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

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.tour-main-text .card-lead {
  margin-bottom: 0;
}

.tour-booking {
  margin-top: 20px;
  margin-bottom: 18px;
}

.booking-button {
  display: inline-block;
  padding: 12px 24px;
  background: #8f4a24;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.booking-button:hover {
  background: #a34d24;
  transform: translateY(-1px);
}

.tour-details {
  margin-top: 18px;
  border-radius: 12px;
  background: #fffaf3;
  padding: 10px 14px 16px;
}

.tour-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #8f4a24;
  padding: 6px 0;
  list-style: none;
}

.tour-details summary::-webkit-details-marker {
  display: none;
}

.tour-details summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: #8f4a24;
}

.tour-details[open] summary::before {
  content: "–";
}

.tour-details > *:not(summary) {
  margin-top: 16px;
}

.tour-details-intro {
  margin-bottom: 4px;
  line-height: 1.55;
}

.card-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 20px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #fffaf3;
  border-radius: 12px;
  padding: 16px;
}

.photo-grid {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #8f4a24 #fffaf3;
}

.photo-grid::-webkit-scrollbar {
  height: 8px;
}

.photo-grid::-webkit-scrollbar-track {
  background: #fffaf3;
  border-radius: 4px;
}

.photo-grid::-webkit-scrollbar-thumb {
  background: #8f4a24;
  border-radius: 4px;
}

.photo-grid img {
  flex: 0 0 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
}

.reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.reviews-carousel-track {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 24px 20px;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.reviews-carousel .review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 220px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reviews-carousel-prev,
.reviews-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(143, 74, 36, 0.85);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reviews-carousel-prev:hover,
.reviews-carousel-next:hover {
  background: #8f4a24;
}

.reviews-carousel-prev {
  left: 12px;
}

.reviews-carousel-next {
  right: 12px;
}

.review-card {
  margin: 0;
  padding: 20px;
  background: #fffaf3;
  border-radius: 12px;
  border-left: 4px solid #8f4a24;
  box-shadow: 0 4px 16px rgba(148, 90, 40, 0.08);
}

.review-text {
  margin: 0 0 12px;
  font-style: italic;
  line-height: 1.5;
}

.review-author {
  margin: 0;
  font-size: 0.9rem;
  color: #9a6b4a;
}

.review-author a {
  color: #8f4a24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-author a:hover {
  color: #a34d24;
}

.footer {
  background: #8f4a24;
  color: #fff;
  padding: 24px 0;
  font-size: 0.95rem;
}

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

@media (min-width: 900px) {
  .hero {
    min-height: min(58vh, 640px);
    padding: 64px 0 18px;
  }

  .hero-top {
    margin-bottom: 0;
  }

  .hero-content {
    margin-top: auto;
    padding-top: clamp(32px, 8vh, 100px);
    max-width: 1120px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px;
    margin-top: 0;
    justify-content: end;
    align-self: end;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.15;
  }
}

@media (max-width: 640px) {
  .reviews-carousel .review-card {
    flex: 0 0 100%;
  }

  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(40, 28, 22, 0.22) 0%,
      rgba(40, 28, 22, 0.26) 38%,
      rgba(28, 20, 16, 0.5) 75%,
      rgba(14, 11, 10, 0.58) 100%
    );
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero .container {
    min-height: 0;
  }

  .hero {
    min-height: min(70vh, 720px);
  }

  .hero-content {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 0.95rem;
    max-width: 100%;
  }

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

  .tour-main {
    grid-template-columns: 1fr;
  }


  .card {
    padding: 22px;
  }

  .footer {
    text-align: center;
  }

  .footer-content {
    justify-content: center;
  }
}
