/* Базовые стили лендинга автокемпинг */
/* Montserrat — локальные шрифты (кириллица и латиница) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

:root {
  --anchor-offset: 90px;
}

html {
  scroll-padding-top: var(--anchor-offset);
}

.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}


.nav-link {
  color: #166;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  scroll-margin-top: var(--anchor-offset);
}

.section h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.section-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0d4f4f;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.section-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Блок ценностей */
.section-values {
  background: #f5f9f9;
}

.section-values-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.value-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #166;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Оборудование */
.equipment-figure {
  margin: 0 0 1rem;
}

.equipment-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.equipment-subtitle {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #166;
}

.equipment-list {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem 1rem 2rem;
  background: #f7fbfb;
  border: 1px solid #e3efef;
  border-radius: 8px;
}

.equipment-list li {
  margin-bottom: 0.45rem;
}

.equipment-list li:last-child {
  margin-bottom: 0;
}

.equipment-audience {
  color: #555;
  font-size: 0.95rem;
}

/* Маршруты */
.routes-intro {
  margin-bottom: 1.5rem;
  color: #555;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.routes-app-block {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f5f8f5;
  border-radius: 8px;
  border-left: 4px solid #2d5a27;
}

.routes-app-block p {
  margin: 0;
  color: #333;
}

.routes-app-block a {
  color: #2d5a27;
  font-weight: 600;
}

.routes-app-block a:hover {
  text-decoration: underline;
}

.route-card {
  background: #f9fbfb;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e8eeee;
}

.route-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #166;
}

.route-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.route-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: -1.25rem;
  padding: 1.25rem;
  border-radius: 8px;
}

.route-card-link:hover {
  background: rgba(22, 102, 102, 0.06);
}

.route-card-link h3,
.route-card-link p {
  pointer-events: none;
}

/* Галерея */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Стоимость (структура как у конкурентов) */
.section-price {
  max-width: 960px;
  padding: 3rem 1.5rem;
}

.price-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.price-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #555;
  margin: 0 0 0.75rem;
}

.price-desc {
  text-align: center;
  color: #666;
  margin: 0 auto 1.5rem;
  max-width: 560px;
}

.price-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.price-promo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f0f9f4;
  border: 1px solid #a7d4b5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a4d2e;
}

.price-promo-icon {
  font-size: 1.25rem;
}

.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.price-table th,
.price-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.price-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #333;
}

.price-table th:first-child,
.price-table td:first-child {
  min-width: 180px;
}

.price-table th:not(:first-child) {
  text-align: center;
}

.price-table td:not(:first-child) {
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-row small {
  display: block;
  font-size: 0.8rem;
  color: #666;
  font-weight: normal;
  margin-top: 0.15rem;
}

.price-season-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.price-season-high {
  background: #c53030;
}

.price-season-mid {
  background: #b7791f;
}

.price-season-low {
  background: #2d5a27;
}

.price-row-high td:first-child { background: #fef5f5; }
.price-row-mid td:first-child { background: #fffbeb; }
.price-row-low td:first-child { background: #f0f5ee; }

.price-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Бронирование */
.booking-form {
  max-width: 400px;
  margin-top: 1rem;
}

.booking-label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.booking-label:first-of-type {
  margin-top: 0;
}

.booking-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.booking-form .btn {
  margin-top: 1.25rem;
}

.booking-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.booking-message-success {
  background: #f0f9f4;
  border: 1px solid #a7d4b5;
  color: #1a4d2e;
}

.booking-message-error {
  background: #fef5f5;
  border: 1px solid #f5b0b0;
  color: #8b2a2a;
}

.booking-dates-wrap {
  margin-bottom: 0.25rem;
}

.booking-input-dates {
  cursor: pointer;
  background-color: #fff;
}

/* Flatpickr календарь занятости (под стиль сайта) */
.flatpickr-input {
  font: inherit;
  cursor: pointer;
}

.flatpickr-calendar {
  font-family: Montserrat, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.flatpickr-day.flatpickr-disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.flatpickr-day.booking-busy,
.flatpickr-day.booking-busy.flatpickr-disabled {
  background: #fff1f1;
  color: #c53030;
  border-color: #fca5a5;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 1;
}

.flatpickr-day.booking-busy:hover,
.flatpickr-day.booking-busy.flatpickr-disabled:hover {
  background: #fde8e8;
  color: #c53030;
  border-color: #fca5a5;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #166;
  border-color: #166;
}

.flatpickr-day.inRange {
  background: rgba(17, 102, 102, 0.15);
  border-color: transparent;
  box-shadow: -5px 0 0 rgba(17, 102, 102, 0.15), 5px 0 0 rgba(17, 102, 102, 0.15);
}

/* FAQ */
.faq {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.faq h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.faq dl {
  margin: 0;
}

.faq dt {
  font-weight: 600;
  color: #166;
  margin-top: 1rem;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: #555;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #166;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.btn:hover {
  background: #0a4;
}

#contacts a {
  color: #166;
}

/* Страница маршрута */
.route-page .section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.route-page .route-intro {
  color: #555;
  margin-bottom: 0;
}

.route-point-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.route-point-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #166;
}

.route-point-heading h2 {
  margin: 0;
}

.route-point-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.route-point-subheading:first-of-type {
  margin-top: 1rem;
}

.route-point-subicon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #166;
}

.route-point-subheading h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #166;
}

.route-point h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  color: #166;
}

.route-point h3:first-of-type {
  margin-top: 1rem;
}

.route-point ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.route-point li {
  margin-bottom: 0.35rem;
}

.route-point a {
  color: #166;
}

.route-point a:hover {
  text-decoration: underline;
}

.route-point-side-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .route-point-side-layout {
    flex-direction: column;
  }
}

.route-point-content {
  flex: 1;
  min-width: 0;
}

.route-point-figure {
  margin: 1rem 0 0;
}

.route-point-figure-side {
  flex-shrink: 0;
  width: 280px;
  margin: 0;
}

@media (max-width: 640px) {
  .route-point-figure-side {
    width: 100%;
    max-width: 320px;
    margin-top: 1rem;
  }
}

.route-point-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.route-point-figure-side .route-point-img {
  max-width: 100%;
}

.route-point-camping-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.route-point-camping-text {
  flex: 0 0 60%;
  min-width: 0;
}

.route-point-map {
  flex: 1;
  min-height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.route-point-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

@media (max-width: 640px) {
  .route-point-camping-layout {
    flex-direction: column;
  }
  .route-point-camping-text {
    flex: none;
  }
  .route-point-map {
    min-height: 260px;
  }

  .section-price {
    padding: 2rem 1rem;
  }
  .price-promos {
    flex-direction: column;
  }
  .price-promo {
    justify-content: flex-start;
  }
  .price-table th,
  .price-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
  .price-table th:first-child,
  .price-table td:first-child {
    min-width: 140px;
  }
}

.footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
}
