/* По миру с палками — бело-фиолетовая гамма */
:root {
  --primary: #60326B;
  --primary-dark: #4a2654;
  --primary-light: #8b5f96;
  --accent: #9d7aa8;
  --bg: #faf8fc;
  --card-bg: #fff;
  --text: #2d2433;
  --text-muted: #5c5268;
  --border: #e8e4f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(96, 50, 107, 0.08);
  --shadow-hover: 0 8px 30px rgba(96, 50, 107, 0.12);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
/* .narrow { max-width: 720px; } */

/* Defensive mobile safety for media and rich text */
img,
video,
canvas,
iframe {
  max-width: 100%;
}

iframe {
  width: 100%;
}

.prose,
.content-block .prose,
.calendar-event,
.tour-schedule-item summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Header — по референсу: тёмный фон, лого слева, нав по центру, пилл-кнопки справа */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(96, 50, 107, 0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.header .container {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 55px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.9; }
.header-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
  position: relative;
}
@media (min-width: 769px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.5rem 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    min-width: 0;
    position: absolute;
    left: 45%;
    transform: translateX(-50%);
  }
}
.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav a:hover {
  color: var(--primary);
  background: rgba(96, 50, 107, 0.06);
}
.nav a:hover::after {
  width: 80%;
}
.nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}
.nav a.is-active::after {
  width: 80%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
}
.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-start;
  flex-shrink: 1;
  min-width: 0;
  max-width: 440px;
}
@media (min-width: 769px) {
  .header-contacts {
    position: absolute;
    top: 50%;
    right: calc(100% + 0.5rem);
    transform: translateY(-50%);
    z-index: 1;
    max-width: none;
    flex-wrap: nowrap;
  }
}
.header-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(96, 50, 107, 0.25);
  border-radius: 9px;
  text-decoration: none;
  color: var(--primary-dark);
  background: rgba(96, 50, 107, 0.04);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.header-contact-link svg { display: block; }
.header-contact-link:hover {
  background: rgba(96, 50, 107, 0.1);
  border-color: rgba(96, 50, 107, 0.45);
  color: var(--primary);
}
.header-contact-link--max { color: #6c3ce0; }
.header-contact-link__brand {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.header-contact-link--vk { color: #4a76a8; }
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.header-icon:hover {
  background: rgba(96, 50, 107, 0.08);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.header-icon svg {
  display: block;
  flex-shrink: 0;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-pill-outline {
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
}
.nav-pill-outline:hover {
  background: rgba(96, 50, 107, 0.08);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(96, 50, 107, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2360326B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/24px no-repeat;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.nav-toggle:hover { background-color: rgba(96, 50, 107, 0.15); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-light { color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-light:hover { background: #fff; color: var(--primary-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 4rem 1rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--primary-dark);
  background-image: url("../../img/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 300px; min-width: 0; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}
.hero-actions .btn {
  min-width: 11rem;
  width: 11rem;
  text-align: center;
  box-sizing: border-box;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-actions .btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* Sections */
.section { padding: 2rem 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 -1.25rem 1.5rem;
  padding: 0 1.25rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.section-cta { text-align: center; margin-top: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1rem; }

/* About */
.about-preview .about-text { width: 100%; margin: 0 0 1rem; text-align: justify; color: var(--text-muted); }
.about-expand { width: 100%; margin: 0; text-align: center; }
.about-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 0.35rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
.about-toggle:hover { color: var(--primary-dark); transform: scale(1.1); }
.about-icon { display: block; }
.about-more-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}
.about-more-wrap.is-open {
  grid-template-rows: 1fr;
}
.about-more-inner { overflow: hidden; }
.about-more { text-align: justify; padding-top: 0.5rem; }
.about-more p { width: 100%; margin: 0 0 0.75rem; max-width: none; color: var(--text-muted); text-align: justify; }
.about-toggle--bottom {
  display: block;
  margin: 1rem auto 0;
  width: fit-content;
}
.about-preview .link-arrow { display: inline-block; margin-top: 0.5rem; }
.link-arrow { color: var(--primary); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Referral program (homepage) */
.referral-section {
  background: #efedf1;
}
.referral-title {
  text-align: center;
  color: var(--primary);
}
.referral-lead {
  max-width: 980px;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: var(--text-muted);
}
.referral-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.referral-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.1rem 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.referral-card-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
}
.referral-card-content h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  color: var(--primary);
}
.referral-card-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}
.referral-card-content strong {
  color: var(--primary);
}
.referral-open-btn {
  border-radius: 999px;
  min-width: 260px;
}

.referral-modal {
  position: fixed;
  inset: 0;
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.referral-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.referral-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.referral-modal-box {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.referral-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #727f8a;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.referral-modal-title {
  margin: 0;
  padding: 1.1rem 3.25rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.35rem;
}
.referral-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}
.referral-modal-body p {
  margin: 0 0 1rem;
  text-align: justify;
  text-wrap: pretty;
}
.referral-modal-body p:last-child {
  margin-bottom: 0;
}
.referral-modal-greeting {
  text-align: left !important;
  font-weight: 700;
}
.referral-modal-subtitle {
  margin: 1.35rem 0 0.7rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--primary);
}
.referral-modal-mini-title {
  margin: 1rem 0 0.55rem;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
}
.referral-modal-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.referral-modal-list li {
  margin: 0 0 0.5rem;
}
.referral-modal-faq p {
  margin: 0 0 0.8rem;
}
.referral-modal-signoff {
  text-align: left !important;
  margin-top: 1.1rem !important;
}

/* Team section (homepage) */
.team-section {
  background: #ece9ee;
  padding: 1.5rem 0;
}
.team-section .section-title {
  margin-bottom: 1rem;
}
.team-lead-card {
  max-width: 620px;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.team-lead-photo-wrap,
.team-card-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  background: #ddd7e2;
}
.team-lead-photo,
.team-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f6177;
}
.team-lead-name,
.team-card-name {
  font-family: var(--font-head);
  color: var(--primary);
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}
.team-card-name {
  font-size: 1.2rem;
}
.team-lead-role,
.team-card-role {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
}
.team-lead-desc {
  margin: 0 auto 0.75rem;
  max-width: 560px;
  color: var(--text-muted);
}
.team-open-btn {
  min-width: 160px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.team-card {
  text-align: center;
}
.team-clickable {
  cursor: pointer;
}
.team-clickable:focus {
  outline: 2px solid rgba(96, 50, 107, 0.45);
  outline-offset: 3px;
}
.team-card .team-card-photo-wrap {
  width: 160px;
  height: 160px;
}
.team-card-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.team-card-link:hover {
  text-decoration: underline;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.team-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.team-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(880px, 100%);
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.team-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: #727f8a;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
}
.team-modal-head {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
}
.team-modal-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
.team-modal-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 2rem;
  color: #2e2e2e;
}
.team-modal-role {
  margin: 0.2rem 0 0;
  color: #575757;
}
.team-modal-body {
  padding: 0 1.5rem 1.5rem;
  overflow-y: auto;
}
.team-modal-text {
  margin: 0;
  border-top: 1px solid #d8d8df;
  padding-top: 1rem;
  white-space: pre-line;
}
.team-modal-diplomas-wrap {
  margin-top: 1rem;
  border-top: 1px solid #d8d8df;
  padding-top: 1rem;
}
.team-modal-diplomas-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--primary);
}
.team-modal-diplomas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.team-modal-diploma-link {
  border: 1px solid #e5e5ea;
  border-radius: 6px;
  overflow: hidden;
}
.team-modal-diploma {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Club card section (homepage) */
.club-card-section {
  background: var(--primary);
  color: #fff;
}
.club-card-section .section-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.club-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.club-levels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.club-level-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
}
.club-card-lead {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  max-width: 980px;
}
.club-extra-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.club-extra-sticker {
  display: inline-block;
  margin-bottom: 0.85rem;
  background: #fff;
  color: #2d2433;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
  transform: rotate(-2deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.club-extra-text {
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.club-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.club-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 90px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.club-platform:hover {
  transform: translateY(-2px);
}
.club-platform:hover .club-platform-icon {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.club-platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
}
.club-platform-icon-img {
  width: 56px;
  height: 56px;
  display: block;
}
.club-platform-icon--site { background: #8c4aa2; }
.club-platform-icon--vk { background: #4a76a8; }
.club-platform-icon--ya { background: #ff3b30; }
.club-bonus-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.club-bonus-tile {
  min-width: 120px;
  background: #fff;
  color: #2d2433;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.club-bonus-tile strong {
  font-size: 1.85rem;
  line-height: 1.1;
  font-family: var(--font-head);
}
.club-extra-note {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.advantage-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.advantage-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.advantage-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.excursions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--border);
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.card-meta, .card-date { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.25rem; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0; flex: 1; }

/* Экскурсии: выравнивание даты и описания по одной линии */
.excursion-card .card-title {
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}
.excursion-card .card-date,
.excursion-card .card-meta {
  min-height: 1.35em;
}
.excursion-card .card-img {
  height: clamp(240px, 30vw, 340px);
  object-fit: cover;
  object-position: center;
  margin-bottom: 0.5rem;
}

/* Календарь путешествий */
.calendar-section { padding-top: 2rem; transition: opacity 0.2s; }
.calendar-section--loading { opacity: 0.7; pointer-events: none; }
.calendar-title { text-align: center; color: var(--primary); margin-bottom: 1rem; }
.calendar-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.calendar-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.25rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.calendar-arrow:hover {
  border-color: var(--primary);
  background: rgba(96, 50, 107, 0.06);
  color: var(--primary);
}
.calendar-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.calendar-month {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.calendar-month-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  text-align: center;
}
.calendar-grid { margin-bottom: 1rem; }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
a.calendar-day {
  text-decoration: none;
}
a.calendar-day:hover {
  filter: brightness(0.96);
}
.calendar-day--empty { background: transparent; }
/* День с двумя типами событий — две половины */
.calendar-day--split {
  position: relative;
  background: var(--bg);
}
.calendar-day-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
}
.calendar-day-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.calendar-day-hit--left { left: 0; right: 50%; }
.calendar-day-hit--right { left: 50%; right: 0; }
.calendar-day-hit--left:hover,
.calendar-day-hit--left:focus-visible,
.calendar-day-hit--left.calendar-day-hit--related {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px 0 0 6px;
}
.calendar-day-hit--right:hover,
.calendar-day-hit--right:focus-visible,
.calendar-day-hit--right.calendar-day-hit--related {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 6px 6px 0;
}
.calendar-day-seg--left { left: 0; right: 50%; border-radius: 6px 0 0 6px; }
.calendar-day-seg--right { left: 50%; right: 0; border-radius: 0 6px 6px 0; }
.calendar-day--dynamic { font-weight: 600; }
.calendar-day--tour { font-weight: 600; }
.calendar-day--excursion {
  font-weight: 700;
  border-radius: 0;
  clip-path: polygon(50% 4%, 96% 50%, 50% 96%, 4% 50%);
  border: 1px solid transparent;
}
.calendar-day-seg--tour_0 { background: rgba(96, 50, 107, 0.3); }
.calendar-day-seg--tour_1 { background: rgba(45, 122, 74, 0.3); }
.calendar-day-seg--tour_2 { background: rgba(200, 80, 80, 0.25); }
.calendar-day-seg--tour_3 { background: rgba(42, 100, 150, 0.3); }
.calendar-day-seg--tour_4 { background: rgba(180, 100, 40, 0.3); }
.calendar-day-seg--tour_5 { background: rgba(100, 60, 130, 0.3); }
.calendar-day-seg--tour_6 { background: rgba(30, 130, 120, 0.3); }
.calendar-day-seg--tour_7 { background: rgba(180, 50, 90, 0.25); }
.calendar-day-seg--tour_8 { background: rgba(70, 110, 50, 0.3); }
.calendar-day-seg--tour_9 { background: rgba(150, 80, 120, 0.25); }
.calendar-day-seg--tour_10 { background: rgba(50, 90, 130, 0.3); }
.calendar-day-seg--tour_11 { background: rgba(130, 90, 40, 0.3); }
.calendar-day-seg--excursion_0 { background: rgba(185, 66, 87, 0.28); }
.calendar-day-seg--excursion_1 { background: rgba(116, 73, 182, 0.28); }
.calendar-day-seg--excursion_2 { background: rgba(45, 122, 74, 0.28); }
.calendar-day-seg--excursion_3 { background: rgba(38, 114, 176, 0.28); }
.calendar-day-seg--excursion_4 { background: rgba(204, 113, 44, 0.28); }
.calendar-day-seg--excursion_5 { background: rgba(180, 84, 152, 0.28); }
.calendar-day-seg--excursion_6 { background: rgba(30, 130, 120, 0.28); }
.calendar-day-seg--excursion_7 { background: rgba(130, 90, 40, 0.28); }
.calendar-day-num {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: 0 0 4px rgba(255,255,255,0.8), 0 1px 1px rgba(255,255,255,0.9);
}
.calendar-day--tour_0 { background: rgba(96, 50, 107, 0.3); color: var(--primary-dark); font-weight: 600; }
.calendar-day--tour_1 { background: rgba(45, 122, 74, 0.3); color: #1e6b3e; font-weight: 600; }
.calendar-day--tour_2 { background: rgba(200, 80, 80, 0.25); color: #a63d3d; font-weight: 600; }
.calendar-day--tour_3 { background: rgba(42, 100, 150, 0.3); color: #1a5090; font-weight: 600; }
.calendar-day--tour_4 { background: rgba(180, 100, 40, 0.3); color: #8c4a20; font-weight: 600; }
.calendar-day--tour_5 { background: rgba(100, 60, 130, 0.3); color: #4a2d6b; font-weight: 600; }
.calendar-day--tour_6 { background: rgba(30, 130, 120, 0.3); color: #0d5c55; font-weight: 600; }
.calendar-day--tour_7 { background: rgba(180, 50, 90, 0.25); color: #8c2850; font-weight: 600; }
.calendar-day--tour_8 { background: rgba(70, 110, 50, 0.3); color: #2d5a1e; font-weight: 600; }
.calendar-day--tour_9 { background: rgba(150, 80, 120, 0.25); color: #6b3050; font-weight: 600; }
.calendar-day--tour_10 { background: rgba(50, 90, 130, 0.3); color: #1e4060; font-weight: 600; }
.calendar-day--tour_11 { background: rgba(130, 90, 40, 0.3); color: #5c3a1e; font-weight: 600; }
.calendar-day--excursion_0,
.calendar-day--excursion_1,
.calendar-day--excursion_2,
.calendar-day--excursion_3,
.calendar-day--excursion_4,
.calendar-day--excursion_5,
.calendar-day--excursion_6,
.calendar-day--excursion_7 {
  font-weight: 700;
  border-radius: 0;
  clip-path: polygon(50% 4%, 96% 50%, 50% 96%, 4% 50%);
  border: 1px solid transparent;
}
.calendar-day--excursion_0 { background: rgba(185, 66, 87, 0.2); color: #8f2f46; border-color: rgba(143, 47, 70, 0.35); }
.calendar-day--excursion_1 { background: rgba(116, 73, 182, 0.2); color: #5c3a91; border-color: rgba(92, 58, 145, 0.35); }
.calendar-day--excursion_2 { background: rgba(45, 122, 74, 0.2); color: #1f6b3f; border-color: rgba(31, 107, 63, 0.35); }
.calendar-day--excursion_3 { background: rgba(38, 114, 176, 0.2); color: #1b5b91; border-color: rgba(27, 91, 145, 0.35); }
.calendar-day--excursion_4 { background: rgba(204, 113, 44, 0.2); color: #9a4f1c; border-color: rgba(154, 79, 28, 0.35); }
.calendar-day--excursion_5 { background: rgba(180, 84, 152, 0.2); color: #7f356a; border-color: rgba(127, 53, 106, 0.35); }
.calendar-day--excursion_6 { background: rgba(30, 130, 120, 0.2); color: #0f665f; border-color: rgba(15, 102, 95, 0.35); }
.calendar-day--excursion_7 { background: rgba(130, 90, 40, 0.2); color: #634119; border-color: rgba(99, 65, 25, 0.35); }
.calendar-day--today {
  position: relative;
  clip-path: none;
  border-radius: 10px;
  border: none;
  font-weight: 700;
}
.calendar-day--today::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid var(--primary);
  border-radius: 9px;
  pointer-events: none;
}
.calendar-day--today.calendar-day--split .calendar-day-num {
  color: var(--primary-dark);
  text-shadow: none;
  font-weight: 700;
}
.calendar-day--related {
  box-shadow: inset 0 0 0 2px rgba(96, 50, 107, 0.65);
  transform: translateY(-1px);
}
.calendar-day--related.calendar-day--split .calendar-day-num {
  color: #111;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.95);
}
.calendar-events { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: auto; }
.calendar-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.calendar-event:hover { color: var(--primary); }
.calendar-event-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.calendar-event--excursion .calendar-event-icon { border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_0 .calendar-event-icon { background: rgba(185, 66, 87, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_1 .calendar-event-icon { background: rgba(116, 73, 182, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_2 .calendar-event-icon { background: rgba(45, 122, 74, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_3 .calendar-event-icon { background: rgba(38, 114, 176, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_4 .calendar-event-icon { background: rgba(204, 113, 44, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_5 .calendar-event-icon { background: rgba(180, 84, 152, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_6 .calendar-event-icon { background: rgba(30, 130, 120, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--excursion_7 .calendar-event-icon { background: rgba(130, 90, 40, 0.9); border-radius: 2px; transform: rotate(45deg); }
.calendar-event--tour_0 .calendar-event-icon { background: rgba(96, 50, 107, 0.9); }
.calendar-event--tour_1 .calendar-event-icon { background: rgba(45, 122, 74, 0.9); }
.calendar-event--tour_2 .calendar-event-icon { background: rgba(200, 80, 80, 0.9); }
.calendar-event--tour_3 .calendar-event-icon { background: rgba(42, 100, 150, 0.9); }
.calendar-event--tour_4 .calendar-event-icon { background: rgba(180, 100, 40, 0.9); }
.calendar-event--tour_5 .calendar-event-icon { background: rgba(100, 60, 130, 0.9); }
.calendar-event--tour_6 .calendar-event-icon { background: rgba(30, 130, 120, 0.9); }
.calendar-event--tour_7 .calendar-event-icon { background: rgba(180, 50, 90, 0.9); }
.calendar-event--tour_8 .calendar-event-icon { background: rgba(70, 110, 50, 0.9); }
.calendar-event--tour_9 .calendar-event-icon { background: rgba(150, 80, 120, 0.9); }
.calendar-event--tour_10 .calendar-event-icon { background: rgba(50, 90, 130, 0.9); }
.calendar-event--tour_11 .calendar-event-icon { background: rgba(130, 90, 40, 0.9); }
.calendar-no-events { font-size: 0.85rem; color: var(--text-muted); margin: 0; padding-top: 0.5rem; }
@media (max-width: 900px) {
  .calendar-months { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .calendar-months .calendar-month:nth-child(n+2) { display: none; }
}
@media (max-width: 480px) {
  .calendar-day { font-size: 0.7rem; }
}

/* Tours slider — видно 3 тура, листается по 3 */
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.tours-slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  container-type: inline-size;
}
.tours-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tours-slider-track::-webkit-scrollbar { display: none; }
.tours-slider .slider-card {
  flex: 0 0 calc((100cqw - 3rem) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}
@container (max-width: 700px) {
  .tours-slider .slider-card {
    flex: 0 0 calc((100cqw - 1.5rem) / 2);
  }
}
@container (max-width: 480px) {
  .tours-slider .slider-card {
    flex: 0 0 100cqw;
  }
}
.slider-wrap .slider-btn {
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.slider-wrap:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}
.slider-wrap .slider-btn:disabled {
  opacity: 0;
  pointer-events: none;
}
.slider-wrap:hover .slider-btn:disabled {
  opacity: 0.25;
}
.slider-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.35rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(96, 50, 107, 0.4);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.slider-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(96, 50, 107, 0.5);
}
.slider-btn:disabled {
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .slider-wrap .slider-btn { opacity: 1; pointer-events: auto; }
  .slider-wrap .slider-btn:disabled { opacity: 0.35; }
  .slider-wrap:hover .slider-btn:disabled { opacity: 0.35; }
  .slider-wrap { gap: 0.5rem; }
  .slider-btn { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* Page head */
.page-head {
  padding: 3rem 0;
  text-align: left;
  background: linear-gradient(135deg, rgba(96, 50, 107, 0.04) 0%, rgba(139, 95, 150, 0.06) 50%, rgba(96, 50, 107, 0.03) 100%);
  border-bottom: 1px solid rgba(96, 50, 107, 0.08);
}
.page-head .container {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary);
}
.page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-head .lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.single-head .single-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-top: 0.5rem; }
.single-img { max-width: 100%; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }

/* Страница тура — структура по макету */
.tour-hero {
  position: relative;
 
}
.tour-hero-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.tour-hero-img-box {
  position: relative;
  display: block;
  line-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.tour-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
.tour-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.tour-hero-img-box .tour-hero-overlay {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.tour-hero-inner .tour-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.tour-hero-inner h1,
.tour-hero-inner .tour-hero-dates { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.tour-hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--primary-dark);
  min-height: 200px;
}
.tour-hero:not(:has(.tour-hero-inner)) .tour-hero-content { position: relative; z-index: 1; padding: 3rem 1.25rem; text-align: center; }
.tour-hero:not(:has(.tour-hero-inner)) h1,
.tour-hero:not(:has(.tour-hero-inner)) .tour-hero-dates { color: #fff; }
.tour-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.tour-hero-dates { font-size: 1.05rem; margin: 0; }

.tour-bottom-bar-spacer {
  height: 3.5rem;
}
.tour-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(96, 50, 107, 0.08);
}
.tour-bottom-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.tour-bottom-back {
  color: var(--primary);
}
.tour-bottom-back:hover {
  background: rgba(96, 50, 107, 0.08);
  color: var(--primary-dark);
}
.tour-bottom-edit {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(96, 50, 107, 0.25);
}
.tour-bottom-edit:hover {
  background: var(--primary-dark);
  color: #fff;
}
@media (max-width: 768px) {
  .tour-bottom-bar { padding: 0.6rem 1rem; }
  .tour-bottom-bar-spacer { height: 3.25rem; }
}

.tour-content .tour-h2 { font-family: var(--font-head); font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.tour-list { margin: 0 0 1rem; padding-left: 1.25rem; }
.tour-list li { margin: 0.35rem 0; color: var(--text-muted); }
.tour-teaser { margin: 1rem 0; color: var(--text-muted); font-style: italic; }
.tour-content .tour-description.prose { width: 100%; max-width: none; text-align: justify; }
.tour-content .tour-description.prose p:first-of-type::first-letter {
  float: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 0.12em 0.08em 0 0;
  color: var(--primary);
  font-weight: 700;
}

.tour-section-divider {
  margin: 0 0 2rem;
  border: none;
  height: 1px;
  background: var(--border);
}

.section.tour-content { padding-top: 0; }
.section.tour-guide-difficulty { padding-top: 0; }
.section.tour-booking { padding-top: 0; }

.tour-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.tour-col-difficulty { margin-left: auto; text-align: right; }
.tour-col-difficulty .tour-difficulty { justify-content: space-between; }
@media (max-width: 640px) { .tour-two-cols { grid-template-columns: 1fr; } .tour-col-difficulty { margin-left: 0; text-align: left; } .tour-col-difficulty .tour-difficulty { justify-content: flex-start; } }
.tour-guide {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.4rem 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tour-guide:hover,
.tour-guide:focus-visible {
  background: rgba(96, 50, 107, 0.06);
}
.tour-guide:active { transform: translateY(1px); }
.tour-guides-list { display: grid; gap: 0.5rem; }
.tour-guide-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.tour-guide-info { display: flex; flex-direction: column; }
.tour-guide-info strong { font-size: 1rem; }
.tour-guide-info span { color: var(--text-muted); font-size: 0.9rem; }

/* Модальное окно описания гида/инструктора на странице тура */
.guide-modal .auth-modal-box { max-width: 640px; }
.guide-modal-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.guide-modal-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.guide-modal-role { color: var(--text-muted); font-size: 0.95rem; margin-top: -0.5rem; }
.guide-modal-bio { color: var(--text); line-height: 1.55; }
.guide-modal-bio-empty { color: var(--text-muted); }
@media (max-width: 480px) {
  .guide-modal-head { align-items: flex-start; }
  .guide-modal-photo { width: 80px; height: 80px; }
}
.tour-difficulty { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.tour-difficulty-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
}
.tour-difficulty-dot.is-active { background: var(--primary); color: #fff; }

.tour-schedule-section { padding-top: 0; }
.tour-schedule-head { background: var(--primary); color: #fff; padding: 1rem 0; }
.tour-schedule-title { margin: 0; font-family: var(--font-head); font-size: 1.35rem; text-align: center; color: #fff; }
.tour-schedule-list { margin-top: 1rem; }
.tour-schedule-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.tour-schedule-item summary {
  list-style: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tour-schedule-item summary::-webkit-details-marker { display: none; }
.tour-schedule-chevron { flex-shrink: 0; transition: transform 0.25s; color: var(--primary); }
.tour-schedule-item[open] .tour-schedule-chevron { transform: rotate(180deg); }
.tour-schedule-body { padding: 0 1.25rem 1rem; color: var(--text-muted); font-size: 0.95rem; border-top: 1px solid var(--border); }

.tour-schedule-activities { margin: 0 0 1rem; padding-left: 1.25rem; }
.tour-schedule-activities li { margin: 0.35rem 0; }

.tour-booking-grid { display: block; width: 100%; }
.tour-price-card {
  display: flex;
  flex-direction: row;
  min-width: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tour-price-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tour-price-card--clickable {
  cursor: pointer;
}
.tour-price-card-left {
  flex: 1;
  min-width: 0;
}
.tour-price-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(96, 50, 107, 0.06) 0%, rgba(139, 95, 150, 0.04) 100%);
  border-bottom: 1px solid var(--border);
}
.tour-price-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.tour-price-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  word-wrap: break-word;
}
.tour-group-size {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.tour-price-details {
  padding: 1.25rem 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.tour-price-list-wrap { margin: 0; }
.tour-price-list-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.tour-price-includes,
.tour-price-excludes {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}
.tour-price-includes { color: #2a7a4a; }
.tour-price-excludes { color: #a63d3d; }
.tour-price-includes li,
.tour-price-excludes li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 0;
  word-wrap: break-word;
  font-size: 0.95rem;
}
.tour-price-includes li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tour-price-excludes li::before {
  content: '—';
  position: absolute;
  left: -1.1rem;
  top: 0;
  font-size: 0.85em;
  color: currentColor;
}
.tour-book-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  flex-shrink: 0;
 
  background: rgba(96, 50, 107, 0.04);
  border-left: 1px solid var(--border);
}
.tour-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  height: 100%;
  max-width: 100%;
  text-align: center;
  border-radius: 0 var(--radius) var(--radius) 0 ;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(96, 50, 107, 0.2);
  transition: box-shadow 0.2s, transform 0.2s;
}
.tour-book-btn:hover {
  box-shadow: 0 4px 16px rgba(96, 50, 107, 0.3);
  transform: translateY(-1px);
}
.tour-price-card--already-applied {
  cursor: default;
}
.tour-price-card--already-applied:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(96, 50, 107, 0.12);
}
.tour-book-btn--already {
  background: rgba(56, 142, 60, 0.12);
  color: #2e7d32;
  font-weight: 600;
  cursor: default;
  box-shadow: none;
}
.tour-book-btn--already:hover {
  transform: none;
  box-shadow: none;
  background: rgba(56, 142, 60, 0.18);
}

@media (max-width: 768px) {
  .tour-price-card { flex-direction: column; }
  .tour-book-actions {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
  }
  .tour-book-btn {
    width: 100%;
    border-radius: var(--radius);
  }
}
@media (max-width: 480px) {
  .tour-booking .container { padding-left: 1rem; padding-right: 1rem; }
  .tour-price-header { padding: 1.25rem 1.25rem; }
  .tour-price-details { padding: 1rem 1.25rem; }
  .tour-price-value { font-size: 1.5rem; }
  .tour-price-includes, .tour-price-excludes { padding-left: 1rem; }
}

/* Страница экскурсии: дата → описание → стоимость → кнопка */
.excursion-content .excursion-description { margin: 0; }
.section.tour-content.excursion-content { padding-bottom: 0; }
.excursion-description .excursion-meta { color: var(--text-muted); margin: 0 0 0.75rem; }
.excursion-description .excursion-meta + .lead { margin-top: 1rem; }
.excursion-price-section { padding-top: 0; }
.excursion-price-card {
  background: var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.excursion-price-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.excursion-price-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-dark);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.excursion-cta-wrap { margin: 0 0 1.5rem; }
.excursion-book-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
@media (max-width: 768px) {
  .excursion-hero .tour-hero-inner {
    border-radius: 10px;
  }
  .excursion-hero .tour-hero-img {
    height: 52vw;
    min-height: 220px;
    max-height: 300px;
  }
  .excursion-hero .tour-hero-inner .tour-hero-content {
    padding: 1rem 0.85rem;
  }
  .excursion-hero .tour-hero h1 {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .excursion-hero .tour-hero-dates {
    font-size: 0.95rem;
  }
  .section.tour-content.excursion-content {
    padding-top: 1rem;
  }
  .excursion-content .tour-description.prose {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .excursion-price-card {
    padding: 1rem 1rem;
  }
  .excursion-price-title {
    font-size: 1rem;
  }
  .excursion-price-value {
    font-size: 1.15rem;
  }
  .excursion-book-btn {
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .excursion-hero .tour-hero-img {
    height: 56vw;
    min-height: 180px;
    max-height: 240px;
  }
  .excursion-hero .tour-hero h1 {
    font-size: 1.2rem;
  }
  .section.tour-content.excursion-content {
    padding-top: 0.75rem;
  }
  .excursion-price-card {
    padding: 0.9rem;
    margin-bottom: 1rem;
  }
  .excursion-price-value {
    font-size: 1.05rem;
  }
}

/* Content */
.content-block .prose { margin: 1rem 0; }
.about-list { padding-left: 1.25rem; }
.about-list li { margin: 0.5rem 0; }

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin: 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.reviews-grid .review-card.is-expanded {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-hover);
  animation: review-card-expand 0.3s ease;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.review-card-photo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
}
.review-card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--text-muted);
}
.review-card-author {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.review-card-author-name {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.25;
}
.review-card-author-city {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.25;
}
.review-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-card-body--collapsible { cursor: pointer; }
.review-card p { margin: 0 0 0.75rem; font-style: italic; color: var(--text); }
.review-card-text {
  margin-bottom: 0.5rem;
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.35s ease;
}
.review-card-text.is-collapsed {
  max-height: 7.2em;
  position: relative;
}
.review-card-text.is-collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--card-bg));
}
.review-toggle-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  padding: 0;
  margin: 0 0 0.75rem;
  cursor: pointer;
  align-self: flex-start;
}
.review-toggle-btn:hover {
  text-decoration: underline;
}
@keyframes review-card-expand {
  from {
    opacity: 0.7;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No items */
.no-items { text-align: center; color: var(--text-muted); padding: 2rem; }

/* Home forms before footer */
.home-feedback-section {
  background: #f4f2f6;
}
.home-feedback-section .section-title,
.home-question-section .section-title {
  text-align: center;
}
.home-form {
  max-width: 860px;
  margin: 0 auto;
}
.home-form-grid {
  display: grid;
  gap: 1rem 1.25rem;
}
.home-form-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.home-form-row {
  margin-bottom: 0.9rem;
}
.home-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
}
.home-form input,
.home-form textarea {
  width: 100%;
  border: 1px solid #d7cfdf;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
}
.home-form textarea {
  resize: vertical;
  min-height: 120px;
}
.home-form input:focus,
.home-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 50, 107, 0.14);
}
.home-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}
.home-form-consent input {
  margin-top: 0.2rem;
  width: auto;
}
.home-form-message {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  background: #ffeaea;
  color: #9f1e2b;
}

.home-question-section {
  background: var(--primary-dark);
  color: #fff;
}
.home-question-section .section-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.home-form--dark {
  max-width: 520px;
}
.home-form--dark .home-form-row {
  margin-bottom: 0.75rem;
}
.home-form--dark input,
.home-form--dark textarea {
  background: #fff;
}
.home-form--dark .btn {
  display: block;
  width: 220px;
  margin: 0 auto;
}

.sponsors-section {
  background: #efedf1;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.sponsors-title {
  text-align: center;
  color: var(--primary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
}
.sponsor-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
a.sponsor-card:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.sponsor-logo {
  max-width: 100%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1rem;
  margin-top: 0;
}
.footer-brand { margin-bottom: 1.5rem; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 0.5rem 0 0; font-size: 0.95rem; opacity: 0.9; }
.footer-links {
  margin: 0 0 1rem;
}
.footer-links a {
  display: inline-block;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.9);
}
.footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.9rem; opacity: 0.8; }

/* Модальное окно входа/регистрации */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal.is-open { display: flex; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.5);
  cursor: pointer;
}
.auth-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 1.75rem;
}
.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}
.auth-modal-close:hover { color: var(--text); background: var(--border); }
.auth-modal-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--text);
}
.auth-modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.auth-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.auth-tab:hover { color: var(--text); border-color: var(--primary-light); }
.auth-tab.is-active { color: var(--primary); border-color: var(--primary); background: rgba(96, 50, 107, 0.06); font-weight: 600; }
.auth-modal-error {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #fee;
  color: #c33;
  border-radius: 8px;
  font-size: 0.9rem;
}
.auth-modal-success {
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: #e9f8ea;
  color: #215a2b;
  border-radius: 8px;
  font-size: 0.9rem;
}
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-form label {
  display: block;
  margin: 0.5rem 0 0.2rem;
  font-size: 0.9rem;
  color: var(--text);
}
.auth-form label:first-of-type { margin-top: 0; }
.auth-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.auth-form-links {
  margin: 0.25rem 0 0;
  text-align: right;
}
.auth-form-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(96, 50, 107, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.auth-form-link:hover,
.auth-form-link:focus-visible {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}
.auth-form .btn { margin-top: 1rem; width: 100%; }

/* Модальное окно записи на тур — шире и с секциями */
.booking-modal .auth-modal-box {
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.booking-modal-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.booking-modal-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
}
.booking-modal-hint {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(96, 50, 107, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
.booking-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.booking-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.booking-form-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.booking-form-grid {
  display: grid;
  gap: 1rem 1.5rem;
}
.booking-form-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.booking-form-grid + .booking-form-grid {
  margin-top: 1rem;
}
.booking-questionnaire-form .form-row {
  margin-bottom: 0;
}
.booking-questionnaire-form .booking-form-section .form-row {
  margin-bottom: 1rem;
}
.booking-questionnaire-form .booking-form-grid .form-row:last-child {
  margin-bottom: 0;
}
.booking-questionnaire-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.booking-questionnaire-form input,
.booking-questionnaire-form select,
.booking-questionnaire-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.booking-questionnaire-form input:focus,
.booking-questionnaire-form select:focus,
.booking-questionnaire-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 50, 107, 0.15);
}
.booking-questionnaire-form textarea {
  min-height: 2.5rem;
  resize: vertical;
}
.booking-questionnaire-form #tour-booking-form-message {
  margin-top: 1.25rem;
  margin-bottom: 0;
  border-radius: 10px;
}
.booking-questionnaire-form .btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
}
.booking-consent-row {
  margin-top: 0.25rem;
}
.booking-consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
  font-size: 0.92rem;
}
.booking-questionnaire-form .booking-consent-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.booking-consent-label a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .booking-modal .auth-modal-box {
    padding: 1.5rem 1.25rem;
    margin: 1rem;
  }
  .booking-form-grid--2 {
    grid-template-columns: 1fr;
  }
  .booking-questionnaire-form .btn {
    max-width: none;
  }
}

/* Личный кабинет */
.cabinet-section { padding: 2rem 0 3rem; }
.cabinet-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.cabinet-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cabinet-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
}
.cabinet-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}
.cabinet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-avatar-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  background: rgba(96, 50, 107, 0.08);
  border: 1px dashed rgba(96, 50, 107, 0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cabinet-avatar-add:hover {
  background: rgba(96, 50, 107, 0.16);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.cabinet-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(96, 50, 107, 0.12);
}
.cabinet-fields { flex: 1; min-width: 200px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; }
.cabinet-row { display: flex; flex-direction: column; gap: 0.15rem; }
.cabinet-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cabinet-value { font-size: 1rem; color: var(--text); }
.cabinet-edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.cabinet-edit:hover { background: rgba(96, 50, 107, 0.1); color: var(--primary-dark); }
.cabinet-link-wrap { margin-top: 1rem; }
.cabinet-empty { color: var(--text-muted); margin: 0 0 1rem; }
.cabinet-questionnaire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cabinet-list { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.cabinet-list a { color: var(--primary); text-decoration: none; }
.cabinet-list a:hover { text-decoration: underline; }

.cabinet-list-item { margin-bottom: 1rem; }
.cabinet-list-item:last-child { margin-bottom: 0; }
.cabinet-tour-link,
.cabinet-excursion-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cabinet-tour-link:hover,
.cabinet-excursion-link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(96, 50, 107, 0.12);
  text-decoration: none;
}
.cabinet-tour-img,
.cabinet-excursion-img {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}
.cabinet-tour-img img,
.cabinet-excursion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cabinet-tour-info,
.cabinet-excursion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cabinet-tour-title,
.cabinet-excursion-title {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}
.cabinet-tour-link:hover .cabinet-tour-title,
.cabinet-excursion-link:hover .cabinet-excursion-title {
  color: var(--primary);
}
.cabinet-tour-meta,
.cabinet-excursion-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cabinet-tour-meta--muted,
.cabinet-excursion-meta--muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.questionnaire-banner {
  background: rgba(96, 50, 107, 0.12);
  color: var(--primary-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.questionnaire-form .form-row { margin-bottom: 1rem; }
.questionnaire-form label { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; color: var(--text); }
.questionnaire-form input, .questionnaire-form select, .questionnaire-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.questionnaire-form .btn { margin-top: 0.5rem; }

.account-edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cabinet-avatar--edit {
  width: 96px;
  height: 96px;
}
.account-edit-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.account-edit-avatar-controls input[type="file"] {
  max-width: 260px;
}
.account-edit-avatar-remove {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Responsive */
@media (max-width: 768px) {
  .excursions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .excursion-card .card-img {
    height: 220px;
    margin-bottom: 0.35rem;
  }
  .excursion-card .card-body {
    padding: 1rem;
  }
  .excursion-card .card-title {
    font-size: 1.05rem;
    min-height: 0;
  }
  .excursion-card .card-desc {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
  }
  .page-head {
    padding: 2rem 0 1.5rem;
  }
  .page-head .container {
    padding-left: 1rem;
    border-left-width: 3px;
  }
  .sponsors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .home-form-grid--2 {
    grid-template-columns: 1fr;
  }
  .home-form--dark .btn {
    width: 100%;
  }
  .team-lead-photo-wrap,
  .team-card .team-card-photo-wrap {
    width: 130px;
    height: 130px;
  }
  .team-lead-name {
    font-size: 1.3rem;
  }
  .team-card-name {
    font-size: 1.1rem;
  }
  .team-modal-title {
    font-size: 1.5rem;
  }
  .team-modal-diplomas-title {
    font-size: 1.5rem;
  }
  .referral-grid {
    grid-template-columns: 1fr;
  }
  .referral-open-btn {
    min-width: 0;
  }
  .club-card-title {
    font-size: 1.45rem;
  }
  .club-level-badge {
    width: 58px;
    height: 58px;
    font-size: 1.35rem;
  }
  .club-extra-sticker {
    font-size: 1.2rem;
    transform: none;
  }
  .club-platforms {
    gap: 1rem;
  }
  .club-bonus-tile strong {
    font-size: 1.5rem;
  }
  .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .header-menu.is-open { display: flex; }
  .header-menu .nav {
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    position: static;
    left: auto;
    transform: none;
  }
  .header-menu .nav a { color: var(--text); padding: 0.6rem 0; }
  .header-menu .header-actions .header-contacts { position: static; transform: none; justify-content: center; width: 100%; max-width: none; order: -1; }
  .header-menu .header-contact-link { width: 34px; height: 34px; }
  .header-menu .header-actions { flex-direction: row; justify-content: center; width: 100%; flex-wrap: wrap; }
  .header-menu .header-icon { flex-shrink: 0; }
  .header-menu .nav-pill { justify-content: center; width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 2.5rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { min-height: 360px; padding: 3rem 1rem; }
  .cabinet-fields { min-width: 0; grid-template-columns: 1fr; }
  .cabinet-tour-link,
  .cabinet-excursion-link { flex-direction: column; }
  .cabinet-tour-img,
  .cabinet-excursion-img { width: 100%; height: 180px; }
  .account-edit-avatar-row { flex-wrap: wrap; align-items: flex-start; }
}

@media (max-width: 480px) {
  .excursion-card .card-img {
    height: 190px;
  }
  .page-head {
    padding: 1.5rem 0 1.25rem;
  }
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-logo {
    max-height: 76px;
  }
  .container { padding: 0 1rem; }
  .header .container { padding-left: 1rem; padding-right: 1rem; }
  .section-title { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { display: block; width: 100%; }
  .hero-actions .btn { min-width: 0; width: 100%; }
  .tour-bottom-bar { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .tour-bottom-link { min-width: 0; }
}

.trainings-main-title {
  text-align: center;
  border-bottom: none;
  margin: 0 0 0.5rem;
}
.trainings-subtitle,
.trainings-section-title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.trainings-schedule-wrap {
  margin-bottom: 1.25rem;
}
.trainings-schedule-table {
  width: 100%;
  display: block;
}
.trainings-schedule-table thead {
  display: none;
}
.trainings-schedule-table tbody {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.trainings-schedule-table tbody tr {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ddd2e6;
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.trainings-schedule-table tbody tr:only-child {
  width: 100%;
}
.trainings-schedule-table td {
  display: block;
  border: none;
  padding: 0.35rem 0;
  text-align: left;
}
.trainings-schedule-table td:empty {
  display: none;
}
.training-park-cell {
  padding-bottom: 0.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed #ddd2e6;
}
.training-park-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 0.5rem;
}
.training-park-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.trainings-schedule-table td:nth-child(2)::before { content: "Пн: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(3)::before { content: "Вт: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(4)::before { content: "Ср: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(5)::before { content: "Чт: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(6)::before { content: "Пт: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(7)::before { content: "Сб: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(8)::before { content: "Вс: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(9) {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed #ddd2e6;
}
.trainings-schedule-table td:nth-child(9)::before { content: "Точка сбора: "; color: var(--text-muted); font-size: 0.9rem; }
.trainings-schedule-table td:nth-child(9) .training-location-btn,
.trainings-schedule-table td:nth-child(9) .training-location-text {
  display: inline;
}
.trainings-schedule-table td:nth-child(10) {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #ddd2e6;
}
.trainings-schedule-table td:nth-child(10) .btn {
  width: 100%;
  justify-content: center;
}
.trainings-schedule-table tr .no-items {
  text-align: center;
  padding: 1rem;
}
.training-location-btn {
  border: none;
  background: rgba(96, 50, 107, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.training-location-btn:hover {
  background: rgba(96, 50, 107, 0.14);
}
.training-price-pill {
  text-align: center;
  display: table;
  margin: 0 auto 2rem;
  padding: 0.5rem 1.15rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.trainings-subscriptions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.trainings-subscriptions-grid--single {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.training-subscription-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 260px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #ddd2e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.training-subscription-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--primary);
  background: rgba(96, 50, 107, 0.08);
  border-radius: 50%;
}
.training-subscription-card-icon svg {
  display: block;
}
.training-subscription-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.training-subscription-duration {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.training-subscription-price {
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed #ddd2e6;
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: var(--primary);
  font-weight: 700;
}
.training-subscription-old {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: line-through;
}
.training-subscription-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.training-group-section {
  margin-bottom: 0;
}
.training-section-divider {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid #ddd2e6;
}
.training-individual-section {
  text-align: center;
  margin: 0 0 2rem;
  padding-top: 0.5rem;
}
.training-individual-title {
  margin-bottom: 0.75rem;
}
.training-individual-desc {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.training-individual-price-box {
  display: inline-block;
  margin: 0 auto 1.25rem;
  padding: 0.6rem 1.25rem;
  background: rgba(96, 50, 107, 0.06);
  border: 1px solid rgba(96, 50, 107, 0.2);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1rem;
}
.training-individual-price-box strong {
  font-size: 1.25rem;
}
.training-individual-actions {
  margin: 0 0 2rem;
}
.training-individual-price {
  font-size: 1.1rem;
}
.training-map-canvas-wrap {
  border-radius: 10px;
  overflow: hidden;
}
#training-map-canvas {
  width: 100%;
  height: 360px;
  background: #f1edf5;
}
.training-map-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.training-map-open-wrap {
  margin: 0.75rem 0 0;
}
