/* ===== KhorezmGo — Культурные путешествия по Хорезму ===== */
:root {
  --color-sand: #e8dcc8;
  --color-terracotta: #b85c38;
  --color-terracotta-dark: #8b3e24;
  --color-tile: #1a4d5c;
  --color-tile-light: #2d6b7c;
  --color-gold: #c9a227;
  --color-bg: #faf7f2;
  --color-bg-dark: #2c2420;
  --color-text: #2c2420;
  --color-text-muted: #6b5b52;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
  --shadow-hover: 0 12px 40px rgba(44, 36, 32, 0.12);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    background-image var(--transition),
    backdrop-filter var(--transition);
  /* Одна «картинка» с героем: стеклянная панель поверх фото, без отдельной светлой полосы */
  background-color: rgba(16, 42, 52, 0.4);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(0, 0, 0, 0.14) 100%
  );
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Поиск и языки всегда в одну линию: сначала поиск, затем RU/EN/UZ */
.header-tools {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  max-width: 100%;
}

/* Глобальный поиск в шапке */
.global-search {
  position: relative;
  flex: 1 1 auto;
  max-width: min(22rem, calc(100vw - 8rem));
  min-width: 0;
}

.global-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.15);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.global-search-input:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

/* Поиск в шапке поверх героя — тёмное стекло, светлый текст */
.header:not(.scrolled):not(.header-admin) .global-search-input {
  color: #faf7f2;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.header:not(.scrolled):not(.header-admin) .global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header:not(.scrolled):not(.header-admin) .global-search-input:focus {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.global-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  z-index: 120;
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.15);
}

.global-search-results[hidden] {
  display: none !important;
}

.global-search-result {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-text);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  cursor: pointer;
  transition: background var(--transition);
}

.global-search-result:last-child {
  border-bottom: none;
}

.global-search-result:hover,
.global-search-result:focus {
  background: rgba(184, 92, 56, 0.08);
  outline: none;
}

.global-search-result-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.2rem;
}

.global-search-result-title {
  font-weight: 500;
  color: var(--color-text);
}

.global-search-result-snippet {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.global-search-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.search-highlight {
  animation: search-highlight-pulse 2.4s ease-out 1;
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.45);
  border-radius: var(--radius);
}

@keyframes search-highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 92, 56, 0.55);
  }
  35% {
    box-shadow: 0 0 0 6px rgba(184, 92, 56, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(184, 92, 56, 0);
  }
}

.header:not(.scrolled):not(.header-admin) .logo {
  color: #faf7f2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.header:not(.scrolled):not(.header-admin) .logo span {
  color: var(--color-gold);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.header.scrolled .logo,
.header.header-admin .logo {
  color: var(--color-text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.header.scrolled .logo span,
.header.header-admin .logo span {
  color: var(--color-terracotta);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.header:not(.scrolled):not(.header-admin) .nav a {
  color: rgba(255, 255, 255, 0.82);
}

.header:not(.scrolled):not(.header-admin) .nav a:hover {
  color: var(--color-gold);
}

.header.scrolled .nav a,
.header.header-admin .nav a {
  color: var(--color-text-muted);
}

.header.scrolled .nav a:hover,
.header.header-admin .nav a:hover {
  color: var(--color-terracotta);
}

.header:not(.scrolled):not(.header-admin) .nav-toggle span {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.header.scrolled .nav-toggle span,
.header.header-admin .nav-toggle span {
  background: var(--color-text);
  box-shadow: none;
}

/* Переключатель языка */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: 0;
}

.lang-btn {
  padding: 0.35rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--color-terracotta);
}

.lang-btn.active {
  color: var(--color-terracotta);
  background: rgba(184, 92, 56, 0.12);
  border-color: rgba(184, 92, 56, 0.3);
}

.header:not(.scrolled):not(.header-admin) .lang-btn {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.22);
}

.header:not(.scrolled):not(.header-admin) .lang-btn:hover {
  color: var(--color-gold);
}

.header:not(.scrolled):not(.header-admin) .lang-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(201, 162, 39, 0.55);
}

.header.scrolled .lang-btn,
.header.header-admin .lang-btn {
  color: var(--color-text-muted);
  border-color: transparent;
}

.header.scrolled .lang-btn:hover,
.header.header-admin .lang-btn:hover {
  color: var(--color-terracotta);
}

.header.scrolled .lang-btn.active,
.header.header-admin .lang-btn.active {
  color: var(--color-terracotta);
  background: rgba(184, 92, 56, 0.12);
  border-color: rgba(184, 92, 56, 0.3);
}

/* После героя (и на админке) — привычная светлая шапка */
.header.scrolled,
.header.header-admin {
  border-color: rgba(44, 36, 32, 0.08);
  border-bottom-color: rgba(44, 36, 32, 0.08);
  box-shadow: var(--shadow);
  background-color: rgba(250, 247, 242, 0.96);
  background-image:
    linear-gradient(105deg, rgba(255, 252, 247, 0.55) 0%, rgba(248, 242, 232, 0.32) 42%, rgba(232, 222, 204, 0.4) 100%),
    url('images/khorezmgo-logo-texture.png');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  backdrop-filter: blur(10px);
}

.header.scrolled .global-search-input:focus,
.header.header-admin .global-search-input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--color-terracotta);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

/* Фон — три фото с плавной сменой */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: hero-bg-fade 9s ease-in-out infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 3s; }
.hero-bg-slide:nth-child(3) { animation-delay: 6s; }

@keyframes hero-bg-fade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  30% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Верх чуть светлее и с оттенком плитки — мягкий стык с полупрозрачной шапкой */
  background: linear-gradient(
    to bottom,
    rgba(26, 77, 92, 0.38) 0%,
    rgba(44, 36, 32, 0.5) 22%,
    rgba(44, 36, 32, 0.55) 55%,
    rgba(44, 36, 32, 0.55) 100%
  );
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  background-image: 
    radial-gradient(circle at 20% 80%, var(--color-terracotta) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--color-tile) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0e6dc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 480px;
  margin: 0 0 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-buttons-auth-wrap {
  position: relative;
}

/* Маленькое окошко выбора: Вход / Зарегистрироваться */
.auth-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(44, 36, 32, 0.4);
  backdrop-filter: blur(3px);
}

.auth-choice-overlay[hidden] {
  display: none;
}

.auth-choice-window {
  position: relative;
  width: 100%;
  max-width: 220px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(44, 36, 32, 0.2);
  overflow: hidden;
}

.auth-choice-close {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.auth-choice-close:hover {
  color: var(--color-terracotta);
}

.auth-choice-cells {
  display: flex;
  padding: 0.5rem;
  gap: 4px;
}

.auth-choice-cell {
  flex: 1;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.auth-choice-cell:hover {
  background: rgba(184, 92, 56, 0.08);
  color: var(--color-terracotta);
  border-color: rgba(184, 92, 56, 0.3);
}

.btn-hero-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.btn-hero-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
}

.hero-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.hero-nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.main-nav-strip {
  padding: 1.25rem 0;
  background: rgba(250, 247, 242, 0.98);
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
}

.main-nav-strip .hero-nav {
  margin-top: 0;
}

.main-nav-strip .hero-nav-link {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(44, 36, 32, 0.12);
  text-shadow: none;
}

.main-nav-strip .hero-nav-link:hover {
  background: #fff;
  border-color: var(--color-gold);
  color: var(--color-terracotta);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
}

.btn-outline:hover {
  background: rgba(184, 92, 56, 0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  z-index: 3;
  text-decoration: none;
  text-align: center;
  max-width: 90vw;
}

.hero .hero-scroll {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero .hero-scroll:hover {
  color: #fff;
}

.hero .scroll-icon {
  border-color: rgba(255, 255, 255, 0.55);
}

.scroll-icon {
  width: 24px;
  height: 36px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-terracotta);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

/* ----- Sections common ----- */
.section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-tile) 0 18px,
    var(--color-tile-light) 18px 26px,
    var(--color-gold) 26px 34px,
    var(--color-terracotta) 34px 42px
  );
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.25;
}

/* ----- О проекте (главный экран) ----- */
.hero-about {
  position: relative;
  background: #fff url('images/uu.jpg') center / cover no-repeat;
  padding: 3rem 0;
  box-shadow: 0 1px 0 rgba(44, 36, 32, 0.06);
  overflow: hidden;
}

.hero-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-about .container {
  position: relative;
  z-index: 1;
}

.hero-about .section-header {
  margin-bottom: 1rem;
}

.hero-about-intro {
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.75rem;
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 720px;
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-about-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 720px;
}

.hero-about-item {
  margin-bottom: 0.65rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-about-item::marker {
  color: var(--color-gold);
}

.hero-about-outro {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  max-width: 720px;
}

/* ----- About ----- */
.about {
  position: relative;
  background: #fff url('images/xorezm.jpg') center / cover no-repeat;
  box-shadow: 0 1px 0 rgba(44, 36, 32, 0.06);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about .section-label {
  color: var(--color-gold);
}

.about .section-title {
  color: #fff;
}

.about .about-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1rem;
}

.about .about-text p {
  color: rgba(255, 255, 255, 0.88);
}

.about .about-text p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin: 0;
  color: var(--color-text-muted);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-gold);
}

.about .stat {
  background: rgba(255, 255, 255, 0.95);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.stat-with-info .stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stat-info-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(184, 92, 56, 0.12);
  border: 1px solid rgba(184, 92, 56, 0.3);
  border-radius: var(--radius);
  color: var(--color-terracotta);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.stat-info-btn:hover {
  background: rgba(184, 92, 56, 0.2);
  border-color: var(--color-terracotta);
}

.stat-info-btn[aria-expanded="true"] .stat-arrow {
  transform: rotate(180deg);
}

.stat-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.stat-info-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 36, 32, 0.08);
}

.stat-info-panel[hidden] {
  display: none;
}

.stat-info-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ----- Places, Restaurants, Hotels ----- */
.places {
  position: relative;
  background: var(--color-bg) url('images/dosto.jpg') center / cover no-repeat;
  overflow: hidden;
}

.places::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.places .container {
  position: relative;
  z-index: 1;
}

.places .section-label {
  color: var(--color-gold);
}

.places .section-title {
  color: #fff;
}

.restaurants {
  position: relative;
  background: var(--color-bg) url('images/plov.jpg') center / cover no-repeat;
  overflow: hidden;
}

.restaurants::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.restaurants .container {
  position: relative;
  z-index: 1;
}

.restaurants .section-label {
  color: var(--color-gold);
}

.restaurants .section-title {
  color: #fff;
}

.hotels {
  position: relative;
  background: var(--color-bg) url('images/hotel.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hotels::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hotels .container {
  position: relative;
  z-index: 1;
}

.hotels .section-label {
  color: var(--color-gold);
}

.hotels .section-title {
  color: #fff;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filters-search {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 36, 32, 0.18);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.filters-select {
  flex: 0 0 150px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 36, 32, 0.18);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(250, 247, 242, 0.9);
}

.filters-favorites {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(44, 36, 32, 0.55);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.filters-favorites input[type="checkbox"] {
  accent-color: var(--color-gold);
}

.place-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 77, 92, 0.06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.place-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-tile) 0 16px,
    var(--color-tile-light) 16px 24px,
    var(--color-gold) 24px 32px,
    var(--color-terracotta) 32px 40px
  );
}

.place-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(26, 77, 92, 0.18);
}

.place-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-sand);
  flex-shrink: 0;
}

.place-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.place-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.place-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.place-card-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.75rem;
}

.favorite-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
  color: rgba(44, 36, 32, 0.4);
  transition: color var(--transition), transform var(--transition);
}

.favorite-toggle.is-favorite {
  color: var(--color-gold);
  transform: translateY(-1px);
}

.favorite-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.9rem;
}

.rating-stars button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: rgba(44, 36, 32, 0.35);
}

.rating-stars button.is-active {
  color: var(--color-gold);
}

.rating-value {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.place-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.place-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  flex: 1;
}

.place-card-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.place-card-address-label {
  font-weight: 600;
  color: var(--color-text);
}

.place-card-hours {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #6b4423);
  margin: 0 0 1rem;
}

.place-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.place-card-action {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-terracotta);
  background: rgba(107, 68, 35, 0.08);
  border: 1px solid rgba(107, 68, 35, 0.25);
  border-radius: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.place-card-action:hover {
  background: rgba(107, 68, 35, 0.15);
  color: var(--color-terracotta-dark);
  border-color: rgba(107, 68, 35, 0.4);
}

.place-card-link {
  font-weight: 500;
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}

.place-card-link:hover {
  color: var(--color-terracotta-dark);
}

.place-card-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--color-terracotta);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  text-align: left;
}

.place-card-btn:hover {
  color: var(--color-terracotta-dark);
}

/* ----- Готовые маршруты ----- */
.routes {
  position: relative;
  background: var(--color-bg) url('images/routes.jpg') center / cover no-repeat;
  overflow: hidden;
}

.routes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.routes .container {
  position: relative;
  z-index: 1;
}

.routes .section-label {
  color: var(--color-gold);
}

.routes .section-title {
  color: #fff;
}

.routes-intro {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.route-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-terracotta);
  border: 1px solid rgba(26, 77, 92, 0.06);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.route-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-tile) 0 16px,
    var(--color-tile-light) 16px 24px,
    var(--color-gold) 24px 32px,
    var(--color-terracotta) 32px 40px
  );
}

.route-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(26, 77, 92, 0.18);
}

.route-card-header {
  margin-bottom: 0.75rem;
}

.route-duration {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.35rem;
}

.route-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.route-card-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.route-card-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}

.route-card-link:hover {
  color: var(--color-terracotta-dark);
}

/* Модальное окно маршрута (1–2 дня — Хива) */
.modal-route {
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(44, 36, 32, 0.18), 0 0 0 1px rgba(184, 92, 56, 0.06);
}

.modal-route .modal-header {
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.08) 0%, rgba(201, 162, 39, 0.06) 100%);
  border-bottom: 1px solid rgba(184, 92, 56, 0.15);
  padding: 1.25rem 1.5rem;
}

.modal-route .modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.modal-route .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, #fdfcfa 0%, #faf8f5 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--color-terracotta) rgba(44, 36, 32, 0.08);
}

.modal-route .modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-route .modal-body::-webkit-scrollbar-track {
  background: rgba(44, 36, 32, 0.06);
  border-radius: 3px;
}

.modal-route .modal-body::-webkit-scrollbar-thumb {
  background: var(--color-terracotta);
  border-radius: 3px;
}

.route-day-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-terracotta);
  margin-left: 0.5rem;
}

.route-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-left: -1.5rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.06);
  border: 1px solid rgba(44, 36, 32, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.route-step:hover {
  box-shadow: 0 6px 20px rgba(44, 36, 32, 0.08);
}

.route-step::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1.6rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--color-terracotta);
}

.route-step:last-child {
  margin-bottom: 0;
}

.route-step-time {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(184, 92, 56, 0.25);
}

.route-step:nth-child(2) .route-step-time {
  background: linear-gradient(135deg, var(--color-gold) 0%, #a8841f 100%);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.route-step-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.route-step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-terracotta);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: rgba(184, 92, 56, 0.08);
  border: 1px solid rgba(184, 92, 56, 0.2);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.route-step-link:hover {
  color: var(--color-terracotta-dark);
  background: rgba(184, 92, 56, 0.12);
  border-color: rgba(184, 92, 56, 0.35);
}

/* ----- Фестивали ----- */
.festivals {
  position: relative;
  background: var(--color-bg) url('images/festival.png') center / cover no-repeat;
  overflow: hidden;
  border-top: 1px solid rgba(44, 36, 32, 0.06);
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
}

.festivals::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.festivals .container {
  position: relative;
  z-index: 1;
}

.festivals .section-label {
  color: var(--color-gold);
}

.festivals .section-title {
  color: #fff;
}

.festivals-intro {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.festivals-intro {
  margin: 0.5rem 0 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
}

.festivals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.festival-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 36, 32, 0.08);
  border-top: 3px solid var(--color-gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.festival-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.festival-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.festival-card-place {
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.festival-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.festival-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.festival-card-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--color-text);
}

.festival-card-list li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.festival-card-list li:last-child {
  margin-bottom: 0;
}

.festival-card-video {
  position: relative;
  width: 100%;
  margin-top: 1.15rem;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(44, 36, 32, 0.06);
  box-shadow: inset 0 0 0 1px rgba(44, 36, 32, 0.08);
}

.festival-card-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.festival-card-video--youtube:not(.festival-youtube--noembed) .festival-youtube-external {
  display: none;
}

.festival-card-video--youtube.festival-youtube--noembed .festival-youtube-iframe {
  display: none;
}

.festival-card-video--youtube.festival-youtube--noembed .festival-youtube-external {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  border-radius: inherit;
}

.festival-card-video--youtube.festival-youtube--noembed .festival-youtube-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.festival-card-video--youtube.festival-youtube--noembed .festival-youtube-external-label {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(200, 48, 48, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.festival-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background:
    linear-gradient(135deg, rgba(184, 92, 56, 0.08) 0%, rgba(201, 162, 39, 0.07) 100%),
    rgba(255, 255, 255, 0.65);
}

/* ----- Онлайн-заявка ----- */
.application {
  background: var(--color-bg);
}

.application-intro {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.6;
}

.application-form {
  max-width: 520px;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row .form-label {
  margin-bottom: 1rem;
}

.form-label-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.15);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.form-success {
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
  color: var(--color-terracotta-dark);
  background: rgba(184, 92, 56, 0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-terracotta);
}

.form-success[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ----- Модальное окно «Места для посещения» ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(44, 36, 32, 0.6);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity var(--transition);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(44, 36, 32, 0.2);
}

.modal.modal--khiva {
  max-width: 560px;
}

.modal-khiva-places,
.modal-urgench-places,
.modal-golden-ring-places {
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  min-height: 0;
}

.modal-urgench-places[hidden],
.modal-golden-ring-places[hidden] {
  display: none !important;
}

.modal-place-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
  align-items: flex-start;
}

.modal-place-item:first-child {
  padding-top: 0;
}

.modal-place-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-place-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-sand);
}

.modal-place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-place-body {
  flex: 1;
  min-width: 0;
}

.modal-place-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-terracotta-dark);
  line-height: 1.3;
}

.modal-place-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.modal-place-hours {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #6b4423);
}

.modal-place-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  font-style: italic;
}

.modal-add-wrap[hidden] {
  display: none !important;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
}

.modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--color-text);
  background: rgba(44, 36, 32, 0.06);
}

.modal-add {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
}

.modal-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.15);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.modal-input:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.modal-add-btn {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-terracotta);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.modal-add-btn:hover {
  background: var(--color-terracotta-dark);
}

.modal-places-list {
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  list-style: none;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.modal-places-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  font-size: 0.95rem;
  color: var(--color-text);
}

.modal-places-list li:last-child {
  border-bottom: none;
}

.modal-places-list .modal-place-remove {
  flex-shrink: 0;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.modal-places-list .modal-place-remove:hover {
  color: var(--color-terracotta);
}

/* Модальное окно меню ресторана */
.modal-restaurant-menu .modal-body {
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.restaurant-menu-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.restaurant-menu-list li {
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.restaurant-menu-list li:last-child {
  margin-bottom: 0;
}

/* Модальное окно номера телефона ресторана */
.modal-restaurant-phone .modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.restaurant-phone-number {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* ----- Guides (контакты гидов) ----- */
.guides {
  background: var(--color-tile);
  color: #fff;
}

.guides .section-label {
  color: var(--color-gold);
}

.guides .section-title {
  color: #fff;
}

.guides-intro {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: background var(--transition);
}

.guide-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.guide-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.guide-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.guide-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #fff;
}

.guide-spec {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.75rem;
}

.guide-phone {
  display: block;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.guide-phone:hover {
  color: #fff;
}

.guide-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color var(--transition);
}

.guide-contact:hover {
  border-color: var(--color-gold);
}

/* ----- Footer ----- */
.footer {
  padding: 2rem 0;
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer .logo {
  color: #fff;
}

.footer .logo span {
  color: var(--color-gold);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-gold);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .festivals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(44, 36, 32, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .places-grid {
    grid-template-columns: 1fr;
  }

  .routes-grid {
    grid-template-columns: 1fr;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .festivals-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- Админ-панель: заголовки и формы (классы cabinet-title / cabinet-form) ----- */
.cabinet-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.cabinet-form {
  margin-top: 1rem;
}

.cabinet-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.applications-list {
  margin-top: 0.5rem;
}

.applications-empty {
  margin: 0;
  padding: 1.5rem;
  background: rgba(44, 36, 32, 0.04);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.applications-empty a {
  color: var(--color-terracotta);
  text-decoration: none;
}

.applications-empty a:hover {
  text-decoration: underline;
}

.application-item,
.admin-application-item {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-terracotta);
  box-shadow: var(--shadow);
}

.application-item-header,
.admin-application-item .application-item-header {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.application-item-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.application-item-body p,
.admin-application-item .application-item-body p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Админ-панель ----- */
.header-admin .nav {
  gap: 1.5rem;
}

.admin-main {
  min-height: 70vh;
  padding: 2rem 0;
}

.admin-login-block {
  max-width: 400px;
  margin: 4rem auto;
}

.admin-dashboard {
  padding-top: 0;
}

.admin-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}

.admin-tab {
  margin-top: 1.5rem;
}

.admin-applications-list {
  margin-top: 1rem;
}

.admin-applications-list .applications-empty {
  margin-top: 0;
}

.admin-content-intro {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 560px;
}

.admin-content-form {
  max-width: 560px;
}

.admin-content-form .form-label {
  margin-bottom: 1rem;
}
