:root {
  --bg-main: #f4f3f0;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #fbf9f5;
  --accent: #334155;
  --accent-soft: rgba(51, 65, 85, 0.12);
  --rules-accent: #7dd3fc;
  --rules-accent-soft: rgba(125, 211, 252, 0.25);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --container-width: 1120px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #ffffff 0, #f4f2ee 45%, #e5e1d8 100%);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9), transparent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.nav-open .site-header {
  z-index: 110;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px;
  gap: 24px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(15, 23, 42, 0.1);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(320px, 88vw);
  max-width: 100%;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-drawer.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.drawer-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.drawer-brand-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-main);
}

.drawer-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-main);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.drawer-close:hover {
  background: rgba(15, 23, 42, 0.11);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 24px;
  gap: 4px;
}

.drawer-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer-link:hover {
  background: rgba(51, 65, 85, 0.08);
  color: var(--accent);
}

.drawer-details {
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.drawer-details-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 40px 14px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  user-select: none;
}

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

.drawer-details-summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.drawer-details[open] .drawer-details-summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.drawer-sublist {
  list-style: none;
  margin: 0;
  padding: 4px 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.drawer-sublink {
  display: block;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.drawer-sublink:hover {
  background: rgba(51, 65, 85, 0.06);
  color: var(--text-main);
  border-left-color: rgba(51, 65, 85, 0.35);
}

.drawer-subempty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.header-phone {
  text-align: right;
}

.header-phone-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.header-phone-number {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-full-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-blocks-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 1180px;
}

.hero-block {
  padding: 10px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  max-width: none;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-block-1 { animation-delay: 0.35s; }
.hero-block-2 { animation-delay: 0.45s; }
.hero-block-3 { animation-delay: 0.55s; }
.hero-block-4 { animation-delay: 0.65s; }
.hero-block-5 { animation-delay: 0.75s; }

.hero-block-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hero-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

@keyframes hero-block-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  padding: 20px 32px;
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  opacity: 0;
  animation: hero-block-in 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-trust-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-includes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
}

.hero-includes-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-includes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.hero-include-item {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-main);
}

.hero-nearby {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 36px;
  padding: 16px 24px;
  opacity: 0;
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.75s forwards;
}

.hero-nearby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
}

.hero-nearby-icon {
  font-size: 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), rgba(248, 244, 236, 0.72)),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.08), rgba(148, 163, 184, 0.18));
  mix-blend-mode: lighten;
}

.hero-content {
  flex: 0 0 auto;
  order: 0;
  width: 100%;
  max-width: 920px;
  padding: 36px 40px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 244, 236, 0.96));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  transform: translateY(18px);
  opacity: 0;
  animation: hero-card-in 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.15s forwards;
}

.hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
}

.hero-text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-text-large {
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-actions-row {
  margin-top: 6px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-cta {
  animation: hero-fade-up 0.7s ease 0.25s forwards;
  opacity: 0;
  transform: translateY(8px);
}

.hero-content .hero-text {
  animation: hero-fade-up 0.7s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(6px);
}

.hero-title {
  animation: hero-fade-up 0.7s ease 0.15s forwards;
  opacity: 0;
  transform: translateY(4px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  animation: hero-fade-up 0.7s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(8px);
}

.hero-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  backdrop-filter: blur(6px);
}

.hero-hostels-mini {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-hostel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-hostel-chip:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.hero-hostel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-hostel-name {
  font-weight: 500;
}

.hero-hostel-rating {
  font-size: 11px;
  color: var(--text-muted);
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-bg-zoom {
  from {
    background-size: 108%;
    background-position: center top;
  }
  to {
    background-size: 115%;
    background-position: center bottom;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #f4a623;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 166, 35, 0.4);
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, #ffffff, #f3f0ea);
}

.btn-sm {
  padding-block: 8px;
  font-size: 13px;
}

.btn.full-width {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

/* Главная: hero-слайдер (глобальный display:none ломал колонку с фото и оставлял запросы к внешним URL) */
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  width: 100%;
}

.hero-gallery {
  position: relative;
  min-width: 0;
}

.hero-gallery .gallery-slider {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hero-gallery .gallery-slide {
  display: none;
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-gallery .gallery-slide.is-active {
  display: block;
}

.hero-gallery .gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-gallery .gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 1), rgba(245, 241, 233, 1));
}

.section-head {
  margin-bottom: 28px;
}

.section-head-center {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 26px);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hostels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hostel-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #ffffff, #f4f0e7);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center top;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s ease,
    opacity 0.4s ease;
}

.hostel-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hostel-card:hover {
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.55);
  transform: translateY(-4px) scale(1.01);
}

.hostel-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 190px;
}

.card-slider-controls {
  position: absolute;
  top: 78px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.card-slider-arrow {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
}

.gallery-dots-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
  padding: 0;
}

.gallery-dot.is-active {
  background: #1e293b;
}

.card-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}

.card-slide {
  flex: 0 0 33.333%;
  position: relative;
  overflow: hidden;
}

.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hostel-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hostel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.hostel-card h3 {
  margin: 0;
  font-size: 18px;
}

.hostel-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  flex-shrink: 0;
}

.hostel-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.hostel-price-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
  max-width: 140px;
}

.hostel-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hostel-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f5f9;
  color: var(--text-main);
}

.badge.large {
  font-size: 13px;
  padding: 6px 14px;
}

.rating-yandex {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
}

.rating-2gis {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.2);
}

.section-advantages .section-head {
  margin-bottom: 28px;
}

.section-reveal .section-head {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-reveal.is-revealed .section-head {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-reveal.is-revealed .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.section-advantages .advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 640px;
  margin: 0 auto;
  overflow-x: visible;
  padding-bottom: 0;
}

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

.section-advantages .advantages-grid::-webkit-scrollbar-track {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.04), rgba(148, 163, 184, 0.08), rgba(15, 23, 42, 0.04));
  border-radius: 999px;
}

.section-advantages .advantages-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.7), rgba(148, 163, 184, 0.9));
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.section-advantages .adv-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  padding: 18px 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.section-advantages .adv-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.section-advantages .adv-title {
  font-size: 15px;
  margin-bottom: 8px;
  flex-shrink: 0;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-main);
}

.section-advantages .adv-card p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-y: visible;
  color: var(--text-muted);
}

@media (min-width: 961px) {
  .section-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin: 0;
  }
}

.adv-card {
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: var(--text-muted);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.section-reveal.is-revealed .adv-card {
  opacity: 1;
  transform: translateY(0);
}

.adv-card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transform: translateY(-4px);
}

.adv-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.adv-icon svg {
  flex-shrink: 0;
}

.adv-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.adv-card p {
  margin: 0;
  line-height: 1.55;
}

.section-about {
  padding-top: 32px;
}

.section-about .section-head {
  margin-bottom: 26px;
}

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

.about-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-text p {
  margin: 0 0 12px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-main);
  text-indent: 1.5em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.about-feature-card:hover {
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.about-feature-icon svg {
  flex-shrink: 0;
}

.about-feature-body {
  min-width: 0;
}

.about-feature-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 4px;
}

.about-feature-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.about-right h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.section-reviews .section-head {
  margin-bottom: 28px;
}

.reviews-widget-frame {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 14px;
}

.reviews-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reviews-slider::-webkit-scrollbar {
  height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.04), rgba(148, 163, 184, 0.08), rgba(15, 23, 42, 0.04));
  border-radius: 999px;
}

.reviews-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.7), rgba(148, 163, 184, 0.9));
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.review-card {
  scroll-snap-align: start;
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.section-reveal.is-revealed .review-card {
  opacity: 1;
  transform: translateY(0);
}

.review-card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-source {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.review-rating {
  font-size: 13px;
  color: #eab308;
  letter-spacing: 0.05em;
}

.review-quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  font-style: normal;
  position: relative;
}

.review-quote::before {
  content: "«";
  color: var(--text-muted);
  opacity: 0.5;
  margin-right: 2px;
}

.review-quote::after {
  content: "»";
  color: var(--text-muted);
  opacity: 0.5;
  margin-left: 2px;
}

/* Rules section */
.section-rules .section-head h2 {
  color: var(--text-main);
}

.section-rules .section-head h2 .highlight {
  color: var(--rules-accent);
}

.rules-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-inline: -6px;
  padding-inline: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

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

.rules-grid::-webkit-scrollbar-track {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.04), rgba(148, 163, 184, 0.08), rgba(15, 23, 42, 0.04));
  border-radius: 999px;
}

.rules-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.7), rgba(148, 163, 184, 0.9));
  border-radius: 999px;
}

.rule-card {
  position: relative;
  flex: 0 0 min(300px, 88vw);
  max-width: 320px;
  scroll-snap-align: start;
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.section-reveal.is-revealed .rule-card {
  opacity: 1;
  transform: translateY(0);
}

.rule-card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transform: translateY(-4px);
}

.rule-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rule-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.rule-card.rule-forbidden .rule-title {
  color: var(--text-main);
}

.rule-card.rule-allowed .rule-title {
  color: #166534;
}

.rule-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rules-accent);
}

.rule-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}


.map-placeholder {
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.22);
  padding: 18px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0,
    rgba(255, 255, 255, 0.7) 8px,
    rgba(240, 236, 228, 1) 8px,
    rgba(240, 236, 228, 1) 16px
  );
}

.map-embed {
  margin-top: 10px;
  min-height: 320px;
  height: 320px;
  width: 100%;
  min-width: 280px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.95));
}

.map-embed-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.map-embed-size {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
}

.map-large {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yandex-map-wrap {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.yandex-map-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 400px;
}

.yandex-map-inner iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: 0;
}

.yandex-map-link {
  position: absolute;
  left: 8px;
  z-index: 1;
  color: #eee;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.yandex-map-link-top {
  top: 8px;
}

.yandex-map-link-sub {
  top: 26px;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hostel-detail-map-wrap {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.hostel-detail-map-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: 0;
}

.hostel-detail-map-preview {
  position: relative;
}

.hostel-map-expand-btn {
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}

.hostel-map-expand-label {
  position: static;
  display: block;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.map-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.map-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  height: min(78vh, 620px);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

.map-modal-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.22);
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: radial-gradient(circle at top, #ffffff, #f0ece4 70%);
  padding: 24px 0 18px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
  font-size: 12px;
}

.policy-page {
  padding: 24px 0 56px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-back:hover {
  color: var(--text-main);
}

.policy-document {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 40px 44px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 249, 245, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 56px rgba(15, 23, 42, 0.08);
}

.policy-document h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
}

.policy-lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.policy-operator {
  margin: 0 0 32px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(51, 65, 85, 0.06);
  border: 1px solid rgba(51, 65, 85, 0.08);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
}

.policy-operator strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.policy-operator p {
  margin: 0 0 6px;
}

.policy-operator p:last-child {
  margin-bottom: 0;
}

.policy-document h2 {
  margin: 36px 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.policy-document h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-document > p,
.policy-document section p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-main);
}

.policy-document > p:last-child,
.policy-document section p:last-child {
  margin-bottom: 0;
}

.policy-document ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.policy-document li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}

.policy-document li:last-child {
  margin-bottom: 0;
}

.policy-document a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(51, 65, 85, 0.35);
}

.policy-document a:hover {
  text-decoration-color: var(--accent);
}

@media (max-width: 640px) {
  .policy-document {
    padding: 24px 18px 32px;
    border-radius: var(--radius-md);
  }

  .policy-document h2 {
    margin-top: 28px;
  }
}

.sticky-page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9), transparent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-link {
  font-size: 13px;
  color: var(--text-muted);
}

.sticky-title {
  font-size: 15px;
  font-weight: 500;
}

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

.hero-detail-full {
  position: relative;
  min-height: 85vh;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: none;
}

.hero-detail-full .hero-overlay {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(248, 244, 236, 0.75)),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.1), rgba(148, 163, 184, 0.15));
}

.hero-detail-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-detail-card {
  flex: 1 1 480px;
  max-width: 560px;
  padding: 36px 40px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.96));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: hero-card-in 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
}

.hero-detail-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-detail-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
}

.hero-detail-ratings {
  margin: 0;
}

.hero-detail-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-detail-list {
  margin: 0 0 22px;
}

.hero-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-detail-booking {
  flex: 0 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  max-width: 100%;
}

.hero-detail-inner {
  align-items: stretch;
}

.hero-detail-side-card {
  flex: 1;
  min-height: 140px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-card-in 0.85s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards;
}

.hero-detail-side-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-detail-side-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-detail-side-list li {
  position: relative;
  padding-left: 18px;
}

.hero-detail-side-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 600;
}

.hero-detail-side-phone {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-detail-side-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-detail-side-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.hero-detail-booking-card {
  border-radius: 24px;
  padding: 24px 24px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transform: translateY(24px);
  animation: hero-card-in 0.85s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards;
}

.hero-detail-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  width: 100%;
  max-width: 900px;
  margin-top: 8px;
}

.hero-detail-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.85));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.55s forwards;
}

.hero-detail-block-icon {
  font-size: 18px;
}

.hero-detail-features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 6px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.55s forwards;
}

.hero-detail-features li {
  position: relative;
  padding-left: 1.15em;
}

.hero-detail-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.hero-detail-includes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 16px 24px;
  margin-top: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.75));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: hero-block-in 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards;
}

.hero-detail-includes-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-detail-include {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-main);
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.hero-detail-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-detail-bg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  z-index: 0;
}

.widget-hotel-info {
  position: relative;
  z-index: 1;
  min-height: 280px;
}

.widget-hotel-info:not(:empty) + .hero-fallback-img {
  display: none;
}

.booking-widget-wrapper {
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 12px 28px -4px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-detail-booking #WidgetVerticalBlockId {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.booking-widget-elegant.hero-detail-booking-card {
  box-shadow:
    0 8px 16px -4px rgba(15, 23, 42, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.booking-widget-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.booking-widget-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-detail-info h1 {
  margin-bottom: 10px;
}

.detail-list {
  list-style: none;
  margin: 14px 0 14px;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.detail-list .detail-list-note {
  font-size: 12px;
  color: var(--text-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}

.widget-rooms,
.widget-calendar {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 24px;
}

.room-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1), transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.section-reveal.is-revealed .room-card {
  opacity: 1;
  transform: translateY(0);
}

.room-card:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.room-card-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.room-card-gallery::-webkit-scrollbar {
  height: 7px;
}

.room-card-gallery::-webkit-scrollbar-track {
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.1),
    rgba(148, 163, 184, 0.18),
    rgba(148, 163, 184, 0.1)
  );
  border-radius: 999px;
}

.room-card-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.85), rgba(148, 163, 184, 0.95));
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.room-card-gallery img {
  flex: 0 0 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: start;
}

.room-card-placeholder {
  flex: 0 0 200px;
  height: 140px;
  background: #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
}

.room-category {
  margin: 0 0 10px;
  font-size: 18px;
}

.room-prices {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--accent);
}

.room-price-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.room-discounts {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.room-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0 12px;
}

.room-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.section-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rooms-widget-divider {
  margin: 10px 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(51, 65, 85, 0.24);
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  font-size: 13px;
  text-align: center;
}

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

  .room-card-gallery img {
    flex: 0 0 160px;
    height: 120px;
  }
}

@media (max-width: 1100px) {
  .hero-blocks-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .hero-block {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 180px;
  }
}

@media (max-width: 960px) {
  .reviews-widget-frame {
    min-height: 280px;
    height: 320px;
  }

  .header-inner {
    align-items: center;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .hero-detail-grid,
  .two-column,
  .about-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-detail-bg {
    padding-block: 26px;
  }

}

/* Страница хостела: колонка «Онлайн-бронирование» на всю ширину, иначе при переносе блок ~380px оказывается по центру и визуально «уезжает» вправо */
@media (max-width: 900px) {
  .hero-detail-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-detail-card {
    max-width: 100%;
  }

  .hero-detail-booking {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-detail-booking-card,
  .hero-detail-side-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .reviews-widget-frame {
    min-height: 240px;
    height: 280px;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .hero {
    min-height: 80vh;
    padding: 72px 0 40px;
  }

  .hero-content {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }

  .hero-detail-full {
    min-height: 75vh;
    padding: 80px 0 40px;
  }

  .hero-detail-inner {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
    padding-inline: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-detail-card {
    padding: 24px 22px 28px;
    border-radius: 22px;
    max-width: 100%;
  }

  .hero-detail-booking {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    margin: 0;
  }

  .hero-detail-booking-card {
    padding: 20px 18px 18px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-detail-side-card {
    min-height: 0;
    padding: 18px 20px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-detail-booking #WidgetVerticalBlockId {
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-detail-booking #WidgetVerticalBlockId iframe {
    max-width: 100%;
  }

  .hero-detail-features {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 12px;
  }

  .hero-detail-includes {
    padding: 14px 18px;
    gap: 8px 12px;
  }

  .hero-detail-include {
    font-size: 12px;
    padding: 5px 12px;
  }

  .section-about .section-head {
    margin-bottom: 18px;
  }

  .about-left {
    gap: 14px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .map-embed {
    min-height: 260px;
    height: 260px;
  }

  .hostel-detail-map-wrap iframe {
    height: 170px;
  }

  .hostel-map-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .map-modal {
    padding: 8px;
  }

  .map-modal-dialog {
    width: 100%;
    height: min(82vh, 560px);
    border-radius: 12px;
  }

  .hero-blocks-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .hero-block {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-trust-strip {
    gap: 20px 24px;
    padding: 16px 20px;
  }

  .hero-trust-num {
    font-size: 18px;
  }

  .hero-includes {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .hero-includes-title {
    text-align: center;
  }

  .hero-nearby {
    gap: 16px 24px;
  }

  .section {
    padding-block: 32px;
  }
}

/* Планшет и мобильный: без анимаций появления — контент виден сразу */
@media (max-width: 1024px) {
  .hero,
  .hero-detail-full {
    animation: none;
    background-size: cover;
    background-position: center;
  }

  .hero-block,
  .hero-block-1,
  .hero-block-2,
  .hero-block-3,
  .hero-block-4,
  .hero-block-5,
  .hero-nearby,
  .hero-content,
  .hero-title,
  .hero-text,
  .hero-meta,
  .hero-cta,
  .hero-content .hero-text,
  .hero-trust-strip,
  .hero-includes {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-detail-card,
  .hero-detail-side-card,
  .hero-detail-booking-card,
  .hero-detail-block,
  .hero-detail-features,
  .hero-detail-includes {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hostel-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .hostel-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .section-reveal .section-head,
  .section-reveal.is-revealed .section-head,
  .reveal-item,
  .section-reveal.is-revealed .reveal-item,
  .adv-card,
  .section-reveal.is-revealed .adv-card,
  .review-card,
  .section-reveal.is-revealed .review-card,
  .rule-card,
  .section-reveal.is-revealed .rule-card,
  .room-card,
  .section-reveal.is-revealed .room-card {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      box-shadow 0.35s ease;
  }

  .adv-card:hover,
  .review-card:hover,
  .rule-card:hover {
    transform: translateY(-4px);
  }

  .review-card:hover {
    transform: translateY(-3px);
  }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.hostel-card-image img {
  cursor: zoom-in;
}

.room-card-gallery img {
  cursor: zoom-in;
}

