* { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    background: #f9fafb;
    line-height: 1.6;
  }
  a { text-decoration: none; color: inherit; }
  img { display: block; width: 100%; object-fit: cover; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ===== Карусель ===== */
  .carousel {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: #111;
  }
  .slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
  }
  .slide.active { opacity: 1; z-index: 2; }
  .slide a {
    display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; height: 100%;
    padding: 0 8vw 12vh;
    color: #fff;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.8));
    transition: background .3s;
  }
  .slide a:hover { background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.88)); }
.slide .kicker {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffb703;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.slide h1,
.slide h2 {
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  max-width: 800px;
}

.slide p {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: #e8e8e8;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.slide .cta {
  display: inline-block; margin-top: 24px; width: fit-content;
  padding: 14px 32px;
  border: 2px solid #ffb703; border-radius: 30px;
  color: #ffb703;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .25s;
}
  .slide a:hover .cta { background: #ffb703; color: #1a1a2e; }

  .arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 52px; height: 52px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff; font-size: 24px; cursor: pointer;
    transition: background .2s, color .2s;
  }
  .arrow:hover { background: rgba(255,183,3,.85); color: #1a1a2e; }
  .prev { left: 24px; } .next { right: 24px; }

  .dots {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 10px;
  }
  .dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #fff; background: transparent;
    cursor: pointer; transition: all .25s;
  }
  .dot.active { background: #ffb703; border-color: #ffb703; transform: scale(1.25); }

  /* ===== Секции ===== */
  section { padding: 72px 0; }
  section.alt-bg { background: #fff; }

  .section-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
  .section-subtitle { color: #6b7280; margin-bottom: 32px; font-size: 1rem; }

/* === ???
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;    
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;   
}
*/

  .section-link {
    font-size: .95rem; font-weight: 600; color: #2563eb;
    white-space: nowrap; transition: color .2s;
  }
  .section-link:hover { color: #1d4ed8; }

/* ===== Табы регионов ===== */
.region-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 32px;
}
.region-tab {
  padding: 10px 22px;
  border: 1.5px solid #d1d5db;
  border-radius: 30px;
  background: transparent;
  color: #4b5563;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.region-tab:hover {
  border-color: #e76f51;
  color: #e76f51;
}
.region-tab.active {
  background: #e76f51;
  border-color: #e76f51;
  color: #fff;
}

/* ===== Панели регионов ===== */
.region-panel { display: none; }
.region-panel.active { display: block; animation: fadeIn .3s ease; }
.region-panel[hidden] { display: none !important; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Базовый грид внутри панели — по умолчанию 3 колонки */
.region-panel .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* СНГ — 5 карточек в ряд */
.region-panel[data-region="cis"] .card-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* Кавказ — 3 карточки в ряд */
.region-panel[data-region="caucasus"] .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Средняя Азия — 2 карточки, ограничены по ширине и центрированы */
.region-panel[data-region="central-asia"] .card-grid {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

/* Европа — 6 карточек, 3 колонки × 2 ряда */
.region-panel[data-region="europe"] .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Азия — 6 карточек, 3 колонки × 2 ряда */
.region-panel[data-region="asia"] .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Другие — 2 карточки, ограничены по ширине и центрированы */
.region-panel[data-region="other"] .card-grid {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}


.region-footer { text-align: center; margin-top: 40px; }

/* Кнопка «Все страны» */
/* Кнопка «Все туры» */
.btn-all-countries,
.btn-future-tours {
  display: inline-block;
  padding: 12px 32px;        /* среднее между 14px 40px и 10px 24px */
  background: #1a1a2e;
  color: #fff;
  border-radius: 35px;       /* среднее между 40px и 30px */
  font-weight: 600;
  font-size: 0.95rem;        /* среднее между 1rem и 0.9rem */
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

.btn-all-countries:hover,
.btn-future-tours:hover {
  background: #e76f51;
  transform: translateY(-2px);
}


  /* ===== Карточки ===== */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }
  .card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
  }
  .card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.15); }
  .card-img { height: 180px; overflow: hidden; background: #e5e7eb; }
  .card-img img { height: 100%; transition: transform .4s; }
  .card:hover .card-img img { transform: scale(1.05); }
  .card-body { padding: 18px 20px 20px; flex: 1; }
  .card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .card-body p {
    font-size: .9rem; color: #6b7280;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-tag {
    display: inline-block; font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    color: #9ca3af; margin-bottom: 8px;
  }

  /* ===== Статьи ===== */
  #fresh { padding: 60px 0; }

/* ===== Обо мне — карточка автора ===== */
.about-section {
  padding: 72px 0;
  background: #fdf6ec;
}

.about-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content { display: flex; flex-direction: column; }
.about-kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e76f51;
  margin-bottom: 8px;
}
.about-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
  margin-bottom: 6px;
}
.about-role {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  color: #e76f51;
  margin-bottom: 18px;
}

.about-quote {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: #4b5563;
  margin-bottom: 24px;
  max-width: 520px;
}
.about-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}
.stat-label {
  font-size: .85rem;
  color: #9ca3af;
  margin-top: 2px;
}

.about-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
}

.about-btn {
  display: block;
  padding: 12px 20px;
  text-align: center;
  background: #e76f51;
  color: #fff;
  border: 2px solid #e76f51;
  border-radius: 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, border-color .2s, transform .2s;
}

.about-btn:hover {
  background: #d65a3d;
  border-color: #d65a3d;
  transform: translateY(-2px);
}


  /* ===== Туры ===== */

.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background-color: #1e293b;             /* запасной фон, если нет картинки */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s, box-shadow 0.25s;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Слой затемнения — ключ к читаемости */
.tour-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.75) 60%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

/* Контент поверх затемнения */
.tour-card-content {
  position: relative;
  z-index: 2;
}

.tour-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tour-card-content p {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tour-card .btn-small {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.tour-card .btn-small:hover {
  background: rgba(255, 255, 255, 0.3);
}

  /* ===== Галерея ===== */
  .gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery-preview a {
    display: block; border-radius: 12px; overflow: hidden;
    aspect-ratio: 4 / 3; background: #e5e7eb;
  }
  .gallery-preview img { height: 100%; transition: transform .3s, opacity .3s; }
  .gallery-preview a:hover img { transform: scale(1.06); opacity: .9; }

  /* ===== Начало Стили Подвал ===== */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 16px 0 10px;     /* было 24px 0 16px */
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;      /* было 16px */
}

.footer-col h4 {
  color: #f3f4f6;
  margin-bottom: 6px;       /* было 8px */
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  margin: 0;
  max-width: 220px;
  line-height: 1.4;
}

.footer-col a {
  display: inline-block;    /* было block — теперь ссылки в строку */
  margin-right: 12px;       /* расстояние между ссылками */
  margin-bottom: 2px;
  color: #9ca3af;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
  font-size: 0.8rem;
}

.footer-col a:hover {
  color: #f3f4f6;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 8px;         /* было 12px */
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .footer-col p {
    max-width: none;
  }
}

  /* ===== конец стилей подвал ===== */

  /* ===== Адаптив ===== */
@media (max-width: 820px) {
  .arrow { display: none; }
  .slide a { padding: 0 6vw 10vh; }

  .about-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .about-content { align-items: center; text-align: center; }
  .about-quote { margin-left: auto; margin-right: auto; }
  .about-stats { justify-content: center; }
}

  @media (max-width: 640px) {
    .about-stats { gap: 22px; }
    .gallery-preview { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; }
    .card-img { height: 160px; }
  }

/* ===== Адаптив для регионов ===== */
@media (max-width: 1100px) {
  /* СНГ на планшете — 3 колонки, 5 карточек = 3 + 2 (дырка, но это планшет) */
  .region-panel[data-region="cis"] .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  /* Все регионы — 2 колонки */
  .region-panel .card-grid,
  .region-panel[data-region="cis"] .card-grid,
  .region-panel[data-region="caucasus"] .card-grid,
  .region-panel[data-region="europe"] .card-grid,
  .region-panel[data-region="asia"] .card-grid,
  .region-panel[data-region="central-asia"] .card-grid,
  .region-panel[data-region="other"] .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Ограничение ширины для маленьких регионов снимаем — на планшете 2 колонки и так ок */
  .region-panel[data-region="central-asia"] .card-grid,
  .region-panel[data-region="other"] .card-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
  }
}

@media (max-width: 600px) {
  /* Мобильный — 1 колонка везде */
  .region-panel .card-grid,
  .region-panel[data-region="cis"] .card-grid,
  .region-panel[data-region="caucasus"] .card-grid,
  .region-panel[data-region="europe"] .card-grid,
  .region-panel[data-region="asia"] .card-grid,
  .region-panel[data-region="central-asia"] .card-grid,
  .region-panel[data-region="other"] .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Статья ===== */
.post {
  padding: 70px 0 72px;
}

/* Переопределяем поведение шапки статьи */
.post-header {
  z-index: 1;
  position: relative;
  text-align: center;
  display: block;
  margin-bottom: 0.5rem;

  max-width: 720px;      /* та же ширина, что у текста статьи */
  margin-left: auto;     /* центрируем блок */
  margin-right: auto;

  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;

margin-bottom: 0.2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
  z-index: 1;
  position: relative;
}

.post-header time {
  display: block;        /* дата на новой строке */
  text-align: right;
  font-size: 1.1rem;
  color: #666;
margin-top: 0.6rem;
}

/*
.post-header {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
}

.post-header h1 {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 50px;
}

.post-header time {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  color: #9ca3af;
  font-size: .95rem;
  text-align: left;
}

*/

.post-cover {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-content {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}


.post-header,
.post-content {
  max-width: 720px;      /* одна и та же ширина для обоих */
  margin-left: auto;     /* центрируем */
  margin-right: auto;
  padding-left: 0;       /* на случай, если есть лишние отступы */
  padding-right: 0;
}

.post-content h2,
.post-content h3 {
  margin: 32px 0 16px;
  font-weight: 700;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.post-content ul,
.post-content ol {
  margin: 16px 0 16px 24px;
}

/* ===== 404 ===== */
.page-404 {
  padding: 80px 0 40px;
  text-align: center;
  background: #f9fafb;
}
.page-404 h1 {
font-size: clamp(35px, 6.7vw, 71px);
  font-weight: 800;
  color: #e76f51;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}
.page-404 p {
  font-size: clamp(24px, 2.7vw, 30px);
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto 32px;
}
.page-404 .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #e76f51;
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}
.page-404 .btn-primary:hover {
  background: #d65a3d;
  transform: translateY(-2px);
}
.page-404-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.page-404-icon svg {
  display: block;
}

/* ===== ========================================== */
/* ===== старинца Галерея ===== */

/* ===== Заголовок страницы ===== */
  .page-hero {
    padding: 72px 0 20px;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #fff;
    text-align: center;
  }
  .page-hero h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .page-hero p {
    font-size: clamp(16px, 1.6vw, 20px);
    color: #d1d5db;
    max-width: 640px;
    margin: 0 auto;
  }

  /* ===== Табы регионов ===== */
  .region-tabs {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin: 40px 0 32px;
  }
  .region-tab {
    padding: 10px 22px;
    border: 1.5px solid #d1d5db;
    border-radius: 30px;
    background: transparent;
    color: #4b5563;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
  }
  .region-tab:hover {
    border-color: #e76f51;
    color: #e76f51;
  }
  .region-tab.active {
    background: #e76f51;
    border-color: #e76f51;
    color: #fff;
  }

  /* ===== Панели регионов ===== */
  .region-panel { display: none; }
  .region-panel.active { display: block; animation: fadeIn .3s ease; }
  .region-panel[hidden] { display: none !important; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== Сетка фото ===== */
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }
  .photo {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    cursor: zoom-in;
  }
  .photo img {
    height: 100%;
    transition: transform .4s, opacity .3s;
  }
  .photo:hover img { transform: scale(1.06); opacity: .9; }
  .photo-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .photo-country {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffb703;
  }
  .photo-place {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
  }

/* ===== Лайтбокс (нативный dialog) ===== */
  .lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  .lightbox::backdrop {
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lb-stage {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lb-img {
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
  }
  .lb-caption {
    margin-top: 16px;
    text-align: center;
    color: #fff;
    max-width: 720px;
    padding: 0 16px;
  }
  .lb-country {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffb703;
  }
  .lb-place {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    margin: 4px 0 8px;
  }
  .lb-desc {
    font-size: .95rem;
    color: #d1d5db;
    line-height: 1.5;
  }

  /* Кнопки лайтбокса */
  .lb-close, .lb-prev, .lb-next {
    position: fixed;
    z-index: 10;
    width: 48px; height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
  }
  .lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: rgba(255,183,3,.85);
    color: #1a1a2e;
  }
  .lb-close { top: 20px; right: 20px; font-size: 28px; }
  .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
  .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

  /* ===== Адаптив ===== */
  @media (max-width: 820px) {
    .page-hero { padding: 90px 0 24px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 8px; right: 8px; }
  }

  @media (max-width: 600px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-place { font-size: .85rem; }
  }

/* ===== Галерея конец===== */


/* ===== ========================================== */
/* ===== страница about ===== */
/* ===== Hero ===== */
  .hero {
    padding: 140px 0 72px;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #fff;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 56px;
    align-items: center;
  }
  .hero-photo {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: #374151;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
  }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .hero-content { display: flex; flex-direction: column; }
  .hero-kicker {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffb703;
    margin-bottom: 12px;
  }
  .hero-content h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .hero-role {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
    color: #ffb703;
    margin-bottom: 20px;
  }
  .hero-intro {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: #d1d5db;
    max-width: 560px;
    margin-bottom: 28px;
  }
  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .btn-primary, .btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .2s;
  }
  .btn-primary {
    background: #e76f51;
    color: #fff;
    border: 2px solid #e76f51;
  }
  .btn-primary:hover {
    background: #d65a3d;
    border-color: #d65a3d;
    transform: translateY(-2px);
  }
  .btn-outline {
    background: transparent;
    color: #ffb703;
    border: 2px solid #ffb703;
  }
  .btn-outline:hover {
    background: #ffb703;
    color: #1a1a2e;
  }

  /* ===== Цифры ===== */
  .stats {
    padding: 56px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
  }
  .stat-number {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    color: #e76f51;
    line-height: 1;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: .95rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* ===== Принципы ===== */
  .principles {
    padding: 72px 0;
    background: #f9fafb;
  }
  .section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
  }
  .section-subtitle {
    color: #6b7280;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1rem;
  }
  .principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .principle-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
  }
  .principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
  }
  .principle-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 16px;
  }
  .principle-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
  }
  .principle-card p {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.5;
  }

  /* ===== Как проходят туры ===== */
  .tours-process {
    padding: 72px 0;
    background: #fff;
  }
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }
  .step {
    position: relative;
    padding: 24px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border-top: 4px solid #e76f51;
  }
  .step-num {
    font-size: 13px;
    font-weight: 800;
    color: #e76f51;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  .step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
  }
  .step p {
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.5;
  }
  .tour-photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #e5e7eb;
    max-width: 960px;
    margin: 0 auto;
  }
  .tour-photo img { width: 100%; height: 100%; object-fit: cover; }
  .tour-photo-caption {
    text-align: center;
    font-size: .88rem;
    color: #9ca3af;
    margin-top: 12px;
  }

  /* ===== Отзывы ===== */
  .reviews {
    padding: 72px 0;
    background: #fdf6ec;
  }
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .review-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
  }
  .review-quote {
    font-size: .95rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-style: italic;
  }
  .review-author {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
  }
  .review-name {
    font-weight: 700;
    font-size: .95rem;
    color: #111827;
  }
  .review-meta {
    font-size: .82rem;
    color: #9ca3af;
    margin-top: 2px;
  }

  /* ===== Контакты ===== */
  .contacts {
    padding: 72px 0;
    background: #111827;
    color: #fff;
    text-align: center;
  }
  .contacts h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
  }
  .contacts p {
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .contacts-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: all .2s;
  }
  .contact-btn:hover {
    background: #ffb703;
    border-color: #ffb703;
    color: #1a1a2e;
    transform: translateY(-2px);
  }

/* ===== ===конец стилей страницы about =================== */
/* ===== ========================================== */

/* ===== Страница /countries/ ===== */

/* Табы */
.countries-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.countries-tab {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: #f0f0f0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.countries-tab:hover,
.countries-tab.active {
  background: #ffb703;
  border-color: #ffb703;
  color: #111;
}

/* Панели */
.countries-panels {
  position: relative;
}

.countries-panel[hidden] {
  display: none !important;
}

.countries-panel.active {
  display: block;
}

/* Заголовок страницы */
.countries-hero {
  padding: 4rem 0 0.3rem;
}

.countries-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem 0;
}

.countries-hero p {
  font-size: 1rem;
  margin: 0;
}

/* Карточка страны — базовая (используется и в карусели) */
.country-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 183, 3, 0.5);
}

.country-card-img {
  overflow: hidden;
  background: #1a1a1a;
}

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

.country-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.country-card-body {
  padding: 1.2rem 1.2rem 1.2rem 3rem;   /* слева больше отступа */
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #f0f0f0;
  color: #1a1a1a;
}

.country-card-region {
  font-size: 1rem;        /* было 0.72rem — стало крупнее */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb703;
  font-weight: 900;         /* было 700 — стало жирнее */
}

.country-card-body h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;      /* жирный */
  color: #1a1a1a;        /* чёрный */
}

.country-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: #1a1a1a;        /* чёрный */
  line-height: 1.5;
  opacity: 0.85;         /* чуть мягче, чтобы не «кричал» */
}

.countries-empty {
  opacity: 0.6;
  font-style: italic;
  padding: 1rem 0;
}

/* ===== Карусель с осколками ===== */

.countries-carousel-viewport {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scroll-padding-left: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.countries-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.countries-carousel-viewport .country-card {
/*  flex: 0 0 80%; */
  flex: 0 0 800px;        /* фиксированная ширина */
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 6 / 5;   /* соотношение карточки */
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Фото занимает верхнюю часть, текст — нижнюю */
.countries-carousel-viewport .country-card-img {
  flex: 1 1 auto;
  min-height: 0;
}


.countries-carousel-viewport .country-card-body {
  flex: 0 0 auto;
}

/* На мобильных карточка чуть шире */
@media (max-width: 768px) {
  .countries-carousel-viewport .country-card {
    flex: 0 0 85%;
    height: 360px;
  }
}

/* Мягкое затухание по краям (если мешает — удалите этот блок) */
.countries-carousel-viewport {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Обёртка карусели с стрелками */
.countries-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Стрелки */
.carousel-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.carousel-arrow:hover {
  background: #ffb703;
  border-color: #ffb703;
  color: #111;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* На мобильных стрелки можно скрыть — там работает свайп */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* ===== конец стилей Страница /countries/ ===== */


/* ===== начало стилей Страница /posts/ ===== */

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-filter {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tag-filter:hover {
  border-color: #e76f51;
  color: #e76f51;
}

.tag-filter.active {
  background: #e76f51;
  border-color: #e76f51;
  color: #fff;
}

.post-tags {
  margin-top: 8px;
}

.post-tag {
  font-size: 0.8rem;
  color: #888;
  margin-right: 8px;
}


/* ===== конец стилей Страница /posts/ ===== */

/* ===== начало стилей карточек на главной странице ===== */
.country-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.country-chip:hover {
  border-color: #e76f51;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.15);
}

.country-chip img,
.country-chip-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;      /* не круг, а скруглённый квадрат — солиднее */
  object-fit: cover;
  flex-shrink: 0;
}

.country-chip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.country-chip-name {
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 480px) {
  .country-chips {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .country-chip {
    padding: 10px 12px;
    gap: 10px;
  }
  .country-chip img,
  .country-chip-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .country-chip-name {
    font-size: 0.95rem;
  }
}
/* ===== конец стилей карточек на главной странице ===== */

/* ===== Аккордеон на главной странице ===== */
/* ===== Блок «Страны» — визуальная карточка ===== */
#countries .region-accordion {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  margin-bottom: 8px;
}

/* Внутри карточки убираем рамку между строками — она теперь у контейнера */
.region-accordion .region-item + .region-item {
  border-top: 1px solid #f3f4f6;
}

/* Сами строки — без своих рамок и фона */
.region-accordion .region-item {
  border: none;
  background: none;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s;
}

.region-header:hover {
  background: #f9fafb;
}

.region-item.open .region-header {
  background: #fef6f3;
}

.region-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.region-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e76f51;
  background: #fef6f3;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.region-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}

.region-chevron svg {
  width: 12px;
  height: 12px;
}

.region-item.open .region-chevron {
  transform: rotate(180deg);
  background: #e76f51;
  color: #fff;
}

.region-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.region-item.open .region-body {
  grid-template-rows: 1fr;
}

.region-body-inner {
  overflow: hidden;
}

.region-item.open .region-body-inner {
  padding: 0 16px 14px;
}

.section-header {
  display: flex;
  align-items: baseline;      /* все элементы на одной текстовой линии */
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header .section-title {
  margin: 0;                  /* убираем нижний отступ у h2 */
}

.section-header .section-subtitle {
  margin: 0;                  /* убираем нижний отступ у p */
  color: #6b7280;
  font-size: 1rem;
}

.section-header .btn-future-tours,
.section-header .btn-all-countries {
  margin-left: auto;          /* прижимаем кнопку к правому краю */
}

.section-header .section-subtitle {
  font-size: 1.15rem;
  margin: 0;                /* убираем нижний отступ, раз он в одну строку */
}
#countries {
  padding-top: 32px;   /* было 72px — уменьшили верхний отступ */
}

.countries-card {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .countries-card {
    padding: 20px;
    border-radius: 16px;
  }
}

#countries .region-accordion {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  padding: 6px 0;
  /* box-shadow и margin-bottom — убрать */
}

/* ===== Аккордеон на главной странице (конец) ===== */

#tours {
  padding: 48px 0;          /* отступ секции от соседей */
}

.tours-card {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ============== Страница future_tours (начало) ================ */
.tours-page {
  padding: 48px 0;
}

.tours-page .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
/* ============== Страница future_tours (конец) ================ */