/* travel-petersburger.ru — custom redesign layer (on top of /assets/css/theme.min.css) */

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
  transition: box-shadow .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}
.site-header .navbar-brand {
  font-weight: 700;
  letter-spacing: .01em;
}
.site-header .nav-link {
  font-weight: 500;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(31, 165, 255, 0.08);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .02em;
}
.lang-switcher-link:hover {
  background: rgba(31, 165, 255, 0.16);
}
.lang-switcher-flag {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero-banner {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10, 20, 40, .86) 0%, rgba(10, 20, 40, .55) 48%, rgba(10, 20, 40, .18) 100%);
  z-index: -1;
}
.hero-banner .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-banner h1 {
  font-weight: 800;
  line-height: 1.12;
  max-width: 720px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-banner p.lead {
  max-width: 560px;
  color: rgba(255,255,255,.88);
}
.hero-cta .btn {
  border-radius: .75rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
}
.hero-cta .btn-light {
  background: #fff;
  color: #0a1428;
}
.hero-cta .btn-outline-light {
  border-color: rgba(255,255,255,.55);
}

/* Topic filter chips */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: #f3f5f8;
  color: #333d4c;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.topic-chip:hover {
  background: rgba(31, 165, 255, 0.1);
  color: #068ce6;
}
.topic-chip.active {
  background: #1fa5ff;
  color: #fff;
}

/* Section heading */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-weight: 800;
  margin-bottom: 0;
}
.section-heading .section-subtitle {
  color: #6f788b;
  font-size: 1rem;
  margin-top: .25rem;
}

/* Article cards */
.masonry-grid-item .card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.masonry-grid-item .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17,24,39,.1);
}
.masonry-grid-item .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Teaser cards (Россия / Европа / Карта) */
.teaser-card {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  isolation: isolate;
}
.teaser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,20,40,.78) 0%, rgba(10,20,40,.08) 65%);
  z-index: -1;
}
.teaser-card .teaser-card-body {
  padding: 1.25rem 1.4rem;
}
.teaser-card h3 {
  font-weight: 700;
  margin-bottom: .25rem;
  color: #fff;
}
.teaser-card span.teaser-link {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.teaser-card:hover span.teaser-link {
  color: #fff;
}


/* ===== Finder-style homepage (id=1 only) ===== */
.finder-hero-title .text-accent {
  color: #1fa5ff;
}
.finder-search-bar {
  background: #fff;
  border-radius: 999px;
  padding: .4rem .4rem .4rem 1rem;
  box-shadow: 0 10px 30px rgba(17,24,39,.1);
  max-width: 480px;
  align-items: center;
}
.finder-search-select {
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}
.finder-search-btn {
  border-radius: 999px;
  white-space: nowrap;
}
.finder-collage {
  position: relative;
  min-height: 340px;
}
.finder-collage-img {
  position: absolute;
  border-radius: 1.25rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(17,24,39,.18);
}
.finder-collage-img-main {
  inset: 0 12% 18% 0;
}
.finder-collage-img-sub {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 52%;
  border: 4px solid #fff;
}
.finder-categories .finder-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #333d4c;
}
.finder-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31,165,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1fa5ff;
  transition: background .15s ease, color .15s ease;
}
.finder-category-item:hover .finder-category-icon {
  background: #1fa5ff;
  color: #fff;
}
.finder-category-label {
  font-weight: 600;
  font-size: .875rem;
}
.finder-view-all {
  font-weight: 600;
  color: #068ce6;
  text-decoration: none;
  white-space: nowrap;
}
.finder-tile-card {
  display: block;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #f8f9fb;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.finder-tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17,24,39,.1);
}
.finder-tile-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: rgba(31,165,255,.12);
  align-items: center;
  justify-content: center;
  color: #1fa5ff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.finder-tile-card h3 {
  margin-bottom: .4rem;
}
.finder-tile-card p {
  color: #6f788b;
  font-size: .9rem;
  margin-bottom: 0;
}
.finder-promo-card {
  display: block;
  height: 100%;
  border-radius: 1.1rem;
  padding: 1.75rem;
  background: linear-gradient(135deg,#eef4ff,#e3ecff);
  text-decoration: none;
  color: #0a1428;
}
.finder-promo-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: #fff;
  align-items: center;
  justify-content: center;
  color: #1fa5ff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.finder-promo-card h3 {
  color: #0a1428;
}
.finder-promo-card p {
  color: #4b5565;
  font-size: .9rem;
}
.finder-promo-link {
  font-weight: 700;
  color: #068ce6;
}
.finder-venue-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: #f8f9fb;
  text-decoration: none;
  color: #1a2130;
  height: 100%;
}
.finder-venue-item i {
  color: #1fa5ff;
  font-size: 1.1rem;
}
.finder-venue-name {
  font-weight: 600;
}
.finder-venue-tag {
  margin-left: auto;
  font-size: .75rem;
  color: #6f788b;
}
.finder-venue-item:hover {
  background: rgba(31,165,255,.1);
}
.finder-feature-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #0a1428;
  color: #fff;
}
.finder-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex: 0 0 auto;
}
.finder-feature-body {
  flex: 1 1 320px;
}
.finder-feature-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  font-weight: 700;
  color: #8fd0ff;
  margin-bottom: .5rem;
}
.finder-feature-body h3 {
  color: #fff;
  font-weight: 800;
}
.finder-feature-body p {
  color: rgba(255,255,255,.75);
}
