/* Розділ «Туризм»: герой, цифри громади, типи об'єктів, мапа,
   аргументи для поїздки та перелік об'єктів одного типу.
   Палітра та ритм повторюють сторінку «Освіта» (education.css). */

.tourism-page__body {
  padding-top: 0;
  padding-bottom: 64px;
}

.tourism {
  color: #1C2633;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Герой ---------- */

/* Знімка міста замовник ще не надав — поки світлий градієнт у кольорах порталу. */
.tourism-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #EAF2FB 0%, #F5F8FC 55%, #fff 100%);
}

.tourism-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(27, 95, 175, 0.07);
}

.tourism-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 54px;
}

.tourism-hero__breadcrumb {
  margin-bottom: 18px;
  background: transparent;
}

.tourism-hero__breadcrumb a,
.tourism-hero__breadcrumb span {
  color: #65717F;
}

.tourism-hero__breadcrumb a:hover,
.tourism-hero__breadcrumb a:focus {
  color: #1B5FAF;
}

.tourism-hero__title {
  margin: 0 0 18px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
}

.tourism-hero__lead {
  max-width: 620px;
  margin: 0;
  color: #253349;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Цифри громади ---------- */

.tourism__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tourism__stat {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 18px 20px;
  border-radius: 10px;
  background: #EAF2FB;
}

.tourism__stat-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #1B5FAF;
  font-size: 30px;
}

.tourism__stat-copy {
  min-width: 0;
}

.tourism__stat strong {
  display: block;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.tourism__stat-label {
  display: block;
  margin-top: 2px;
  color: #53677D;
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Типографіка секцій ---------- */

.tourism__section {
  margin-top: 46px;
}

.tourism__section-title {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 15px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.tourism__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: #F2B716;
}

/* ---------- Типи об'єктів ---------- */

.tourism__types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tourism__type {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #F5F8FC;
}

/* Області задані явно: при автоматичному розміщенні лічильник потрапляв
   у колонку стрілки і стискався в кілька рядків. */
.tourism__type-link {
  display: grid;
  height: 100%;
  align-content: center;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon name  arrow"
    "icon count arrow";
  gap: 2px 14px;
  padding: 22px 20px 24px;
  color: inherit;
  text-decoration: none;
}

.tourism__type-link:hover,
.tourism__type-link:focus {
  color: inherit;
  text-decoration: none;
}

.tourism__type-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  grid-area: icon;
  background: #EAF2FB;
  color: #1B5FAF;
  font-size: 26px;
}

.tourism__type-name {
  align-self: end;
  grid-area: name;
  color: #10254B;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.tourism__type-count {
  grid-area: count;
  color: #53677D;
  font-size: 13px;
  line-height: 1.4;
}

.tourism__type-arrow {
  align-self: center;
  grid-area: arrow;
  color: #1B5FAF;
  font-size: 18px;
}

.tourism__type:hover {
  border-color: rgba(27, 95, 175, 0.4);
  box-shadow: 0 12px 26px rgba(18, 27, 38, 0.1);
}

.tourism__type:hover .tourism__type-arrow {
  transform: translateX(3px);
}

/* ---------- Мапа ---------- */

.tourism__map {
  width: 100%;
  height: 460px;
  overflow: hidden;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
}

/* ---------- Чому варто приїхати ---------- */

.tourism__why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tourism__why-item {
  display: grid;
  min-width: 0;
  align-items: start;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #fff;
}

.tourism__why-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #EAF2FB;
  color: #1B5FAF;
  font-size: 24px;
}

.tourism__why-item h3 {
  margin: 0 0 6px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.tourism__why-item p {
  margin: 0;
  color: #53677D;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Заклик до інвестора ---------- */

.tourism__cta {
  display: grid;
  align-items: center;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  margin-top: 46px;
  padding: 28px 30px 30px;
  border-radius: 12px;
  background: #EAF2FB;
}

.tourism__cta-icon {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #1B5FAF;
  font-size: 32px;
}

.tourism__cta-title {
  margin: 0 0 8px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.tourism__cta-text {
  max-width: 720px;
  margin: 0 0 16px;
  color: #253349;
  font-size: 15px;
  line-height: 1.65;
}

.tourism__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 6px;
  background: #1B5FAF;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.tourism__cta-btn:hover,
.tourism__cta-btn:focus {
  background: #164D8F;
  color: #fff;
  text-decoration: none;
}

/* ---------- Перелік об'єктів одного типу ---------- */

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

.tourism__card {
  display: grid;
  align-items: start;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 27, 38, 0.05);
}

.tourism__card-photo {
  display: block;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  object-fit: cover;
}

.tourism__card-photo_empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E3ECF7;
  color: #9BB4D4;
  font-size: 34px;
}

.tourism__card-name {
  margin: 0 0 10px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.tourism__card-text {
  margin: 0 0 14px;
  color: #53677D;
  font-size: 15px;
  line-height: 1.6;
}

.tourism__card-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tourism__card-facts li {
  display: grid;
  align-items: start;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #253349;
  font-size: 14px;
  line-height: 1.5;
}

.tourism__card-facts i {
  margin-top: 3px;
  color: #1B5FAF;
  text-align: center;
}

.tourism__card-facts a {
  color: #1B5FAF;
  word-break: break-word;
}

.tourism__empty {
  margin: 0;
  padding: 26px 24px;
  border: 1px dashed rgba(37, 51, 73, 0.2);
  border-radius: 10px;
  background: #F5F8FC;
  color: #53677D;
  font-size: 15px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1199px) {
  .tourism__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 991px) {
  .tourism-hero__title {
    font-size: 42px;
  }

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

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

  .tourism__map {
    height: 380px;
  }

  .tourism__card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .tourism-hero__inner {
    padding-bottom: 38px;
  }

  .tourism-hero__title {
    font-size: 32px;
  }

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

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

  .tourism__map {
    height: 300px;
  }

  .tourism__cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

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

  .tourism__card-photo {
    height: 200px;
  }
}

@media (max-width: 479px) {
  .tourism__stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
