:root {
  --lime: #d7ea00;
  --blue: #5867d8;
  --ink: #111;
  --paper: #fffdf4;
  --muted: #4b4b42;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 2px solid var(--ink);
  background: var(--lime);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.brand span {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.home-hero,
.page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 64px);
  border-bottom: 2px solid var(--ink);
}

.catalog-page {
  max-width: 1440px;
  margin: 0 auto;
}

.sales-hero {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: min(620px, calc(100vh - 170px));
  align-content: end;
  overflow: hidden;
  padding: clamp(30px, 4.4vw, 58px) clamp(18px, 5vw, 64px);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.sales-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.sales-hero h1 {
  max-width: 980px;
  margin-bottom: 0;
  color: #fff;
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  hyphens: none;
}

.sales-hero h1 span {
  display: block;
  white-space: nowrap;
}

.inner-hero {
  min-height: min(520px, calc(100vh - 180px));
}

.inner-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 5.2vw, 74px);
}

.catalog-head {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 64px) 0;
}

.sales-lead {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.22;
  font-weight: 900;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-hero .label {
  border: 2px solid #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.intro {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
  font-weight: 700;
}

.directions,
.cards,
.photo-grid,
.program-grid,
.program-section {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 64px);
}

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

.direction-card,
.tour-link,
.info-card {
  display: grid;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.direction-card,
.tour-link {
  position: relative;
  min-height: 360px;
  grid-template-rows: 1fr 78px auto;
  align-items: end;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  padding-bottom: clamp(42px, 4vw, 56px);
  isolation: isolate;
}

.direction-card::after,
.tour-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 74%);
}

.direction-card img,
.tour-link img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--paper);
}

.direction-card > img,
.tour-link > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

.card-title {
  display: flex;
  align-items: start;
  max-width: 100%;
  height: 78px;
  min-width: 0;
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 0.98;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.card-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.card-action {
  justify-self: start;
  max-width: 100%;
  margin-top: 2px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: normal;
  text-align: center;
}

.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  scroll-margin-top: 24px;
}

.cards > .tour-link {
  flex: 0 1 calc((100% - 40px) / 3);
}

.cards .card-title {
  font-size: clamp(20px, 1.45vw, 25px);
  height: 78px;
}

.plain-note {
  max-width: 760px;
  padding: 0 clamp(18px, 5vw, 64px) clamp(28px, 5vw, 64px);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.excursion-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-bottom: 2px solid var(--ink);
}

.excursion-hero img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.excursion-copy {
  max-width: 680px;
  min-width: 0;
}

.excursion-hero > div,
.page-hero > div {
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
}

.photo-grid img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.program-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.program-section {
  grid-template-columns: 1fr;
}

.program-section h2 {
  max-width: 100%;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.info-card {
  min-height: 0;
  padding: 24px;
}

.info-card.black {
  background: var(--ink);
  color: #fff;
}

.info-card p,
.info-card li {
  font-size: 18px;
  line-height: 1.42;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}

.timeline time,
.timeline strong {
  font-weight: 950;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.contacts {
  scroll-margin-top: 24px;
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.contact-icon:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .home-hero,
  .page-hero,
  .excursion-hero,
  .program-grid {
    grid-template-columns: 1fr;
  }

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

  .cards > .tour-link {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .directions,
  .cards,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .cards > .tour-link {
    flex-basis: 100%;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

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

  .home-hero,
  .sales-hero,
  .page-hero,
  .excursion-hero,
  .directions,
  .cards,
  .photo-grid,
  .program-grid,
  .program-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sales-hero {
    min-height: 620px;
    align-content: end;
  }

  .sales-hero h1 {
    font-size: clamp(26px, 6.7vw, 34px);
    line-height: 0.96;
  }

  .hero-actions .button {
    width: 100%;
  }

  .sales-hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.58) 34%, rgba(0, 0, 0, 0.86) 100%);
  }

  .hero-bg {
    object-position: center top;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}
