/* ============================================================
   wayclub — единая дизайн-система сайта
   Подключается на всех страницах: /, /tours, /tours/{slug},
   /destinations, /contacts
   ============================================================ */

:root {
  --bg: #F6EEE1;          /* песочный фон страницы */
  --sand: #EFE3D0;        /* фон секций-подложек */
  --ink: #281F1A;         /* основной текст и тёмные блоки */
  --ink-deep: #201813;    /* подвал */
  --accent: #B23A1E;      /* терракота — кнопки, акценты */
  --accent-dark: #7E2A14;
  --gold: #C98A3C;        /* охра — надзаголовки, разделители */
  --gold-light: #E8B15C;
  --line: #EBDCC4;
  --line-2: #E3D3B8;
  --line-3: #D8BE97;
  --muted: #8A7A6C;       /* подписи */
  --body: #5A4C42;        /* текст в карточках */
  --body-2: #4A3D34;      /* текст в абзацах */
  --wa: #1FA855;
  --tg: #2AABEE;
  --ig: #C13584;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.015em;
}
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
input, textarea, select, button { font-family: inherit; }
::placeholder { color: #9A8B7D; }

/* ---------- сетка ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--mid { max-width: 1100px; }
.wrap--narrow { max-width: 1000px; }
.section { padding: 68px 0; }
.section--sand { background: var(--sand); padding: 64px 0; }
.section--dark { background: var(--ink); padding: 72px 0; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 13px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; white-space: nowrap; text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(178,58,30,0.4); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { color: var(--bg); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-3); }
.btn--outline:hover { color: var(--ink); border-color: var(--accent); }
.btn--sm { padding: 11px 20px; font-size: 15px; border-radius: 11px; box-shadow: 0 6px 16px rgba(178,58,30,0.28); }
.btn--block { display: flex; width: 100%; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,238,225,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216,190,151,0.55);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand {
  display: flex; align-items: baseline; gap: 2px; color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 24px; letter-spacing: -0.03em;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }
.brand i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 3px; align-self: center; }
.nav { display: flex; gap: 26px; margin-left: 14px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--body-2); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.hdr-phone { color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.hdr-phone:hover { color: var(--accent); }
.social { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
}
.icon-btn--wa { color: var(--wa); }
.icon-btn--tg { color: var(--tg); }
.icon-btn--ig { color: var(--ig); }

/* ---------- крошки ---------- */
.crumbs {
  font-size: 13px; color: var(--muted); font-weight: 500;
  display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--ink); font-weight: 600; }

/* ---------- карточки ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h3, .card .card-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 19px; margin-bottom: 8px;
}
.card p { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #FBEDDD;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* карточка тура / места в витрине */
.item-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
}
.item-card__media { height: 210px; position: relative; overflow: hidden; }
.item-card__media img { width: 100%; height: 100%; object-fit: cover; }
.item-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.item-card__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.item-card__meta { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.item-card__price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; color: var(--accent); }
.item-card__price--tbd { font-size: 15px; font-weight: 700; color: var(--muted); font-family: 'Manrope', sans-serif; }
.item-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* пунктирная заглушка вместо фото */
.photo-stub {
  background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, #E8D9C0 12px, #E8D9C0 24px);
  border: 1px dashed #C9B48E; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #A08A6E;
  height: 100%; width: 100%;
}
.photo-stub span { font-family: 'Courier New', monospace; font-size: 12px; }

.note-soon {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--sand); border: 1px solid var(--line-2);
  padding: 6px 12px; border-radius: 100px;
}

/* ---------- форма заявки ---------- */
.form { display: grid; gap: 14px; }
.input {
  padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line-3);
  background: #fff; font-size: 15px; color: var(--ink);
}
.form-ok {
  background: #E7F5EC; border: 1px solid #B7E3C7; border-radius: 14px;
  padding: 18px 20px; color: #1B7A3E; font-weight: 600; margin-bottom: 22px;
}
.contact-box { background: var(--sand); border-radius: 20px; padding: 30px; }

/* ---------- переключатель цены по размеру группы (страница тура) ---------- */
.tier-switch { background: var(--sand); border-radius: 12px; padding: 6px; display: flex; gap: 6px; }
.tier-btn {
  padding: 11px 0; border-radius: 9px; border: 1px solid transparent; background: transparent;
  cursor: pointer; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 15px; color: var(--body); flex: 1; transition: all .15s;
}
.tier-btn.is-active { background: var(--ink); color: var(--bg); box-shadow: 0 4px 10px rgba(40,31,26,0.25); }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink-deep); color: rgba(246,238,225,0.72); padding: 56px 0 40px; }
.site-footer a { color: rgba(246,238,225,0.72); }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--bg); font-weight: 700; font-size: 15px; margin-bottom: 14px; font-family: 'Manrope', sans-serif; }
.site-footer .brand-lg { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; color: var(--bg); }
.site-footer .brand-lg span { color: #E8834F; }
.site-footer .icon-btn { background: rgba(246,238,225,0.08); border: none; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(246,238,225,0.1);
  font-size: 13px; color: rgba(246,238,225,0.45);
}

/* ---------- липкая мобильная панель (страница тура) ---------- */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(246,238,225,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-3); padding: 10px 16px;
  align-items: center; gap: 12px; box-shadow: 0 -6px 20px rgba(60,26,12,0.15);
}

/* ---------- мобильная версия ---------- */
@media (max-width: 900px) {
  .nav, .hdr-phone, .hdr-cta { display: none !important; }
  .mbar { display: flex; }
  .has-mbar { padding-bottom: 84px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--gallery { grid-template-columns: 1fr 1fr !important; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .section, .section--sand, .section--dark { padding: 56px 0; }
  .split { grid-template-columns: 1fr !important; }
  .hero-h1 { font-size: 42px !important; }
  .tl-time { font-size: 24px !important; }
}
