:root {
  --brand-primary: #d35400;
  --brand-secondary: #2c3e50;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-secondary);
  font-size: 1.25rem;
  font-weight: 700;
}

.header-logo:hover {
  text-decoration: none;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

.header-phone:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-messenger {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-wa {
  background-color: #25d366;
}

.btn-tg {
  background-color: #229ed9;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #1a252f 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
  background: rgba(0, 0, 0, 0.25);
  padding: 15px 25px;
  border-radius: var(--radius-md);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
}

.hero-meta-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

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

.hero-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1c40f;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px;
}

.section-title {
  font-size: 2.1rem;
  color: var(--brand-secondary);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* City Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Tour Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.tour-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header-bar {
  height: 8px;
  background: var(--brand-primary);
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.4rem;
  color: var(--brand-secondary);
  margin-bottom: 10px;
  font-weight: 700;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.card-meta-tag {
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Itinerary Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--brand-primary);
}

.timeline-time {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-secondary);
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-box {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-secondary);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--brand-secondary);
  color: #d1d5db;
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-legal {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-contact-item {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 35px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.15);
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.lead-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.lead-status.success {
  background: #d1fae5;
  color: #065f46;
}

.lead-status.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Header Navigation & Dropdowns */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 15px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown .arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: none;
  z-index: 250;
  animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.dropdown-header {
  padding: 8px 16px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: var(--brand-primary);
  text-decoration: none;
}

.dropdown-item.active {
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(0, 0, 0, 0.03);
}

.dropdown-item .item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Subnav Pills Bar */
.header-subnav {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
}

.subnav-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.subnav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.subnav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.subnav-scroll::-webkit-scrollbar {
  height: 4px;
}

.subnav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.subnav-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subnav-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  text-decoration: none;
  background: #fef3c7;
}

.subnav-pill.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  font-weight: 600;
}

.footer-links a.active {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .header-nav {
    display: none; /* Скрываем в шапке на планшетах, навигация доступна через плашку subnav и футер */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .header-container {
    height: auto;
    padding: 12px 20px;
    flex-direction: column;
    gap: 10px;
  }
  .header-contacts {
    flex-wrap: wrap;
    justify-content: center;
  }
  .subnav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .subnav-scroll {
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

