/* ==========================================================================
   Сайнтур — деловые поездки. Дизайн-система из design_handoff_sightour.
   Токены соблюдены точно; инлайн из прототипа разложен по классам.
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --line: #E2DFDA;
  --surface: #F6F5F3;
  --white: #FFFFFF;
  --accent: #FF8324;
  --accent-hover: #E86F14;
  --accent-active: #C85C0C;

  --max-width: 1400px;
  --content-pad: clamp(20px, 3vw, 40px);
  --section-pad: clamp(56px, 8vw, 96px);
  --header-h: 60px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

@media (max-width: 899px) { body.has-sticky-bar { padding-bottom: 78px; } }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

input, button, textarea { font-family: inherit; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Typography ---------- */

.h1-hero {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(40px, 8.4vw, 110px); line-height: 0.92; letter-spacing: -0.04em;
  margin: 0; overflow-wrap: anywhere;
}
.h1-sub {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(36px, 7vw, 92px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0; overflow-wrap: anywhere;
}
.h2-cta {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(40px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.h2-lg {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0;
}
.h2 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(30px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -0.032em;
  margin: 0 0 28px;
}
.h2-block-title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.h3 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(20px, 2.1vw, 27px); line-height: 1.2;
  margin: 0;
}
.day-number {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(44px, 5vw, 64px); line-height: 0.85; letter-spacing: -0.04em;
  flex: none; width: 1.9em; color: var(--accent);
}
.day-number--muted { color: var(--line); }
.hotel-number {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px); line-height: 0.9; color: var(--line);
  flex: none;
}
.price {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.03em;
}
.hero-date {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.fact__value {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 26px; line-height: 1; margin-bottom: 6px;
}
.fact__value--sm { font-size: 24px; }
.fact__value--accent { color: var(--accent); }
.fact__value--muted { color: var(--line); }
.fact__label { font-size: 13px; color: var(--muted); }

.body-text { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin: 0 0 20px; }
.body-text:last-child { margin-bottom: 0; }
.body-lg { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; margin: 0; }
.serif {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 400;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.65; margin: 0 0 24px;
}
.serif:last-child { margin-bottom: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); margin-bottom: 10px; gap: 8px; }
.logo-mark { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.logo-mark--footer { font-size: 14px; }
.caption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.hero-meta-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.field-label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.muted { color: var(--muted); }
.text-ink { color: var(--ink); }

/* ---------- Layout ---------- */

.section { padding: var(--section-pad) var(--content-pad); }
.section--tight-top { padding-top: 0; }
.section--alt { background: var(--surface); }
.wrap { max-width: var(--max-width); margin: 0 auto; }

.section-marker {
  display: flex; align-items: baseline; gap: 16px;
  border-top: 2px solid var(--ink); padding-top: 16px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-marker--tight { margin-bottom: clamp(24px, 3vw, 36px); }
.section-marker__num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px; color: var(--ink); }
.section-marker__label { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; border-radius: 8px; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: background 200ms ease-out; text-align: center;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--white); padding: 16px 32px; border: none; }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; }
.btn--primary:active { background: var(--accent-active); }
.btn--secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 14.5px 32px; }
.btn--secondary:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--block { display: block; width: 100%; padding: 18px 32px; border: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header__row {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--content-pad);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.brand__sep { width: 16px; height: 1px; background: var(--line); display: inline-block; }
.brand__tag { font-size: 13px; color: var(--muted); }
.brand a.brand__link { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand a.brand__link:hover { text-decoration: none; }

.nav { display: none; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 1000px) { .nav { display: flex; } .nav-toggle { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; color: var(--ink);
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Ниже 480px в шапке остаются только лого и бургер — кнопка заявки и так есть
   в шторке и в липкой полосе снизу (см. sticky-bar.php), дублировать незачем. */
@media (max-width: 480px) {
  .header-actions .btn--primary { display: none; }
  .brand__sep, .brand__tag { display: none; }
}

.nav-drawer {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 24px var(--content-pad); overflow-y: auto;
}
.nav-drawer.is-open { display: block; }
.nav-drawer__link {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink);
}
.nav-drawer__link:hover { color: var(--accent-hover); text-decoration: none; }
.nav-drawer .btn { margin-top: 20px; }
@media (min-width: 1000px) { .nav-drawer { display: none !important; } }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: none; }
.breadcrumbs__sep { display: inline-flex; align-items: center; }
.breadcrumbs__current { color: var(--ink); }

/* ---------- Hero ---------- */

.hero-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 48px); }
.hero-head__title { flex: 1 1 560px; }
.hero-head__title .eyebrow { margin-bottom: clamp(20px, 3vw, 32px); }
.hero-head__meta { flex: 0 1 300px; border-top: 2px solid var(--ink); padding-top: 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts--archive { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: clamp(28px, 4vw, 40px); }
.fact { padding: 20px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: none; padding-right: 0; }

.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 680px; margin: clamp(32px, 4vw, 48px) 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }

.hero-media { width: 100%; height: clamp(320px, 44vw, 620px); border-radius: 12px; overflow: hidden; }
.hero-media .image-slot, .hero-media .image-slot__img { height: 100%; }
.hero-caption { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; max-width: 560px; }
.hero-caption svg { flex: none; margin-top: 3px; }

/* ---------- Image slot ---------- */

.image-slot {
  width: 100%; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); text-align: center; padding: 16px;
}
.image-slot__icon { opacity: 0.55; }
.image-slot__label { font-size: 13px; line-height: 1.4; max-width: 240px; }
.image-slot__img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

/* ---------- Cards / testimonials ---------- */

.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 3vw, 36px); }
.card--dashed { border-style: dashed; }
.card--surface { background: var(--surface); }

.testimonial-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 32px;
  min-height: 190px; display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-card__quote { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; line-height: 1.6; color: var(--muted); }
.testimonial-card__person { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); flex: none;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Фото автора может не быть — тогда в кружке первая буква имени, а не пустое пятно. */
.testimonial-card__initial { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; color: var(--muted); }
.testimonial-card__name { font-weight: 500; font-size: 15px; color: var(--muted); }
.testimonial-card__company { font-size: 13px; color: var(--muted); }

/* ---------- Program (timeline) ---------- */

.program-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding: 32px 0; }
.program-row:last-child { border-bottom: 1px solid var(--line); }
.program-row__date { display: flex; gap: 20px; align-items: flex-start; }
.program-row__weekday { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.program-row__body { max-width: 680px; }
.program-row__warning { border-left: 2px solid var(--accent); padding-left: 20px; }
.program-row__photo { margin-top: 24px; height: clamp(200px, 24vw, 300px); border-radius: 12px; overflow: hidden; }
.program-row__photos { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.program-row__photos .image-slot-box { height: clamp(180px, 18vw, 230px); border-radius: 12px; overflow: hidden; }

/* ---------- Option card ---------- */

.option-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }

/* ---------- Hotels ---------- */

.hotel-spread { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 32px; }
.hotel-spread--reverse { flex-wrap: wrap-reverse; }
.hotel-spread__media { flex: 1 1 380px; }
.hotel-spread__media-main { height: clamp(240px, 28vw, 400px); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.hotel-spread__media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hotel-spread__media-grid .image-slot-box { height: clamp(120px, 12vw, 170px); border-radius: 12px; overflow: hidden; }
/* Та же история, что и с галереями: пара маленьких кадров рядом на телефоне
   превращается в две узкие полоски. */
@media (max-width: 640px) {
  .hotel-spread__media-grid { grid-template-columns: 1fr; }
  .hotel-spread__media-grid .image-slot-box { height: auto; aspect-ratio: 4 / 3; }
}
.hotel-spread__text { flex: 1 1 340px; max-width: 600px; }
.hotel-spread__heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.hotel-spread__name { margin: 0 0 8px; }
.hotel-spread__dates { font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 2.5vw, 32px); margin-bottom: 32px; }
.price-card { border-radius: 12px; padding: clamp(24px, 3vw, 36px); }
.price-card--featured { border: 2px solid var(--accent); }
.price-card--plain { border: 1px solid var(--line); }
.price-card__title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.price-card__rows { display: flex; flex-direction: column; gap: 24px; }
.price-card__row-label { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.price-card__row + .price-card__row { border-top: 1px solid var(--line); padding-top: 24px; }
.price-card .btn { margin-top: 28px; }

.price-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1000px; margin-bottom: clamp(48px, 6vw, 72px); }
.price-notes p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

.inclusion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 64px); }
.inclusion-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.inclusion-head--muted { border-bottom-color: var(--line); }
.inclusion-head__title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); }
.inclusion-head__title--muted { color: var(--muted); }
.inclusion-head__count { font-size: 13px; color: var(--muted); }
.inclusion-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.inclusion-item:last-child { border-bottom: none; }
.inclusion-item svg { flex: none; margin-top: 4px; }
.inclusion-item--muted { color: var(--muted); }

/* ---------- Process grid (Оформление и оплата) ---------- */

.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.process-cell { background: var(--white); padding: clamp(24px, 3vw, 32px); }
.process-cell svg { margin-bottom: 20px; }
.process-cell__title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.process-cell__text { font-size: 15px; line-height: 1.6; margin: 0; color: var(--muted); }

/* ---------- Archive cards ---------- */

.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.archive-card { display: block; color: var(--ink); }
.archive-card:hover { color: var(--ink); text-decoration: none; }
.archive-card__media { height: 200px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.archive-card__meta { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.archive-card__route { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.3; }
.archive-card__year { font-size: 13px; color: var(--muted); }
.archive-card--button { text-align: left; background: none; border: none; padding: 0; cursor: pointer; width: 100%; font: inherit; }

.text-link { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.text-link svg { flex: none; }

/* ---------- Gallery grids ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid .image-slot-box { height: clamp(260px, 26vw, 360px); border-radius: 12px; overflow: hidden; }
.gallery-grid .image-slot-box--span2 { grid-column: span 2; }
.gallery-grid--expo .image-slot-box { height: clamp(200px, 22vw, 300px); }
.gallery-grid--archive { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery-grid--archive .image-slot-box { height: clamp(220px, 24vw, 320px); }

.factory-grid { display: flex; flex-direction: column; gap: 16px; flex: 1 1 300px; }
.factory-grid .image-slot-box { height: clamp(200px, 20vw, 260px); border-radius: 12px; overflow: hidden; }

/* На телефоне фотографии идут одна под другой. В две колонки экрана хватает
   только на серединку кадра: у группового снимка срезаются края вместе с
   людьми. Широкий кадр (--span2) при этом перестаёт быть широким — колонка
   всё равно одна, а без сброса он тянул бы за собой вторую. */
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .image-slot-box--span2 { grid-column: auto; }
  .gallery-grid .image-slot-box,
  .gallery-grid--expo .image-slot-box,
  .gallery-grid--archive .image-slot-box { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 900px; margin-left: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.4;
}
.faq-item__summary svg { flex: none; transition: transform 200ms ease-out; }
.faq-item[open] .faq-item__summary svg { transform: rotate(180deg); }
.faq-item__answer { font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 0 24px; }

/* ---------- Lead form ---------- */

.lead-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.lead-intro { flex: 1 1 320px; max-width: 520px; }
.lead-direct { border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lead-direct a { font-weight: 700; font-size: 17px; }
.lead-form-col { flex: 1 1 400px; max-width: 600px; }

.lead-form { background: var(--surface); border-radius: 12px; padding: clamp(24px, 3vw, 40px); }
.lead-form__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.field { display: block; }
.field input {
  width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 200ms ease-out;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input.is-invalid { border-color: var(--accent); }
.field__error { display: none; font-size: 13px; color: var(--accent-active); margin-top: 6px; }
.field__error.is-visible { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { flex: none; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.consent a { font-weight: 500; }

.form-alert { font-size: 14px; line-height: 1.5; margin-top: 12px; }
.form-alert--error { color: var(--accent-active); }

.confirm-card { border: 1px solid var(--line); border-radius: 12px; padding: 36px; background: var(--surface); }
.confirm-card__title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.confirm-card__text { font-size: 16px; line-height: 1.6; margin: 0; color: var(--muted); }
/* Набор закрыт: вместо формы — карточка с текстом из админки (templates/tour.php). */
.lead-closed { max-width: 720px; }
.lead-closed .lead-direct { margin-top: 24px; }

/* Honeypot: спрятано от людей, доступно ботам-заполнялкам форм. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px var(--content-pad); }
.site-footer__row { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.site-footer .brand { gap: 10px; }

/* ---------- Sticky bar ---------- */

.sticky-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px;
  align-items: center; justify-content: space-between; gap: 16px;
}
.sticky-bar__info { font-size: 14px; line-height: 1.4; font-weight: 500; }
@media (max-width: 899px) { .sticky-bar { display: flex; } }

/* ---------- Trips index page ---------- */

.trips-index-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Placeholder note (archive template) ---------- */

/* Короткий список «Что было в программе» на странице отчёта: одна строка на
   день. Набран как программа тура, только без подробностей — подпись слева
   колонкой, текст рядом. */
.trip-program { display: flex; flex-direction: column; max-width: 900px; }
.trip-program__row { display: flex; gap: 20px; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 0; }
.trip-program__row:last-child { border-bottom: 1px solid var(--line); }
.trip-program__label {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px;
  flex: none; width: 88px; color: var(--ink);
}
.trip-program__text { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--muted); }
@media (max-width: 480px) {
  .trip-program__row { flex-direction: column; gap: 4px; }
  .trip-program__label { width: auto; }
}

.placeholder-block { border: 1px dashed var(--line); border-radius: 12px; padding: 28px; }
.placeholder-note { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.placeholder-days { display: flex; flex-direction: column; gap: 12px; }
.placeholder-day { display: flex; gap: 16px; align-items: baseline; }
.placeholder-day__label { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; color: var(--line); flex: none; width: 80px; }
.placeholder-day__line { height: 1px; background: var(--line); flex: 1; }

/* ---------- Next-trip promo (archive template) ---------- */

.promo-band {
  background: var(--surface); border-radius: 12px; padding: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
}
.promo-band__text { flex: 1 1 360px; }

/* ---------- 404 ---------- */

.error-page { padding: clamp(96px, 14vw, 160px) var(--content-pad); text-align: center; }

/* ---------- Страница «Поездки» (/trips/) ---------- */

.trips-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(28px, 4vw, 40px); }
.trips-hero__title { flex: 1 1 420px; }
.trips-hero__title .eyebrow { margin-bottom: clamp(16px, 2.5vw, 24px); }
.trips-hero__lead { flex: 1 1 340px; max-width: 520px; border-top: 2px solid var(--ink); padding-top: 16px; }
.trips-hero__lead p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.facts--trips { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Ближайшая поездка */
.upcoming {
  border: 2px solid var(--accent); border-radius: 12px; padding: clamp(20px, 3vw, 32px);
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
}
.upcoming__media { flex: 1 1 clamp(240px, 26vw, 360px); max-width: 460px; }
.upcoming__media .image-slot, .upcoming__media .image-slot__img {
  width: 100%; height: clamp(200px, 22vw, 280px); border-radius: 12px; object-fit: cover;
}
.upcoming__body { flex: 2 1 340px; display: flex; flex-direction: column; }
.upcoming__title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; }
.upcoming__dates { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; margin-bottom: 16px; }
.upcoming__text { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin: 0 0 20px; max-width: 620px; }
.upcoming__actions { margin-top: auto; padding-top: 8px; }

/* Метки: «Япония · 3 города · выставка и заводы» */
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.tag-list__item { display: inline-flex; align-items: center; }
.tag-list__item + .tag-list__item::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--line); margin-right: 16px; flex: none; }

/* Строки архива */
.trip-rows { display: flex; flex-direction: column; }
.trip-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) clamp(12px, 1.5vw, 20px);
  margin: 0 clamp(-12px, -1.5vw, -20px);
  border-top: 1px solid var(--line); color: var(--ink);
  transition: background 200ms ease-out;
}
.trip-rows .trip-row:last-child { border-bottom: 1px solid var(--line); }
.trip-row:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.trip-row__year {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(36px, 4.4vw, 60px);
  line-height: 0.9; letter-spacing: -0.03em; color: var(--line);
  flex: 0 0 clamp(90px, 12vw, 160px);
}
.trip-row__media { flex: 1 1 300px; max-width: 420px; }
.trip-row__media .image-slot, .trip-row__media .image-slot__img {
  width: 100%; height: clamp(180px, 18vw, 230px); border-radius: 12px; object-fit: cover;
}
.trip-row__body { flex: 2 1 340px; max-width: 600px; }
.trip-row__title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.trip-row__text { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.trip-row__link { font-weight: 700; font-size: 16px; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.trip-row:hover .trip-row__link { color: var(--accent-hover); }

/* География */
.geo { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.geo__heading { flex: 1 1 260px; max-width: 380px; margin: 0; }
.geo__grid { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.geo__country { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.geo__cities { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.9; color: var(--muted); }

@media (max-width: 640px) {
  .trip-row { gap: 16px; }
  .trip-row__year { flex: 0 0 100%; font-size: 34px; }
  .trip-row__media, .trip-row__body { flex: 1 1 100%; max-width: none; }
}

/* ---------- Юридическая страница (политика обработки данных) ---------- */

.legal { max-width: 760px; }
.legal__title { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.legal__updated { font-size: 14px; color: var(--muted); border-top: 2px solid var(--ink); padding-top: 12px; display: inline-block; margin-bottom: clamp(24px, 3vw, 32px); }
.legal__intro { margin-bottom: clamp(32px, 4vw, 48px); }
.legal__section { border-top: 1px solid var(--line); padding-top: clamp(20px, 2.5vw, 28px); margin-top: clamp(20px, 2.5vw, 28px); }
.legal__heading {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25; margin: 0 0 14px; display: flex; gap: 14px; align-items: baseline;
}
.legal__num { color: var(--line); flex: none; }
.legal__text { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.legal__text:last-child { margin-bottom: 0; }

/* ---------- Просмотр фотографии по клику ----------
   Кадры в рамках обрезаны по центру (object-fit: cover), поэтому по клику
   показываем снимок целиком поверх страницы. Разметку окна собирает
   assets/js/main.js — без JavaScript фотографии просто остаются как были. */

.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(26, 26, 26, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox__img {
  display: block; max-width: 100%; max-height: calc(100vh - 160px);
  object-fit: contain; border-radius: 8px; cursor: default;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.5;
  text-align: center; max-width: 640px;
  display: flex; flex-direction: column; gap: 4px;
}
.lightbox__count { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }
.lightbox__count:empty { display: none; }

/* Стрелки появляются только когда открыта галерея, а не одиночный кадр:
   класс has-nav ставит скрипт. Кроме стрелок листать можно ← → и смахиванием.
   Тень — чтобы кружок был виден и поверх светлой части снимка. */
.lightbox__nav {
  display: none; align-items: center; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: var(--white);
  font-size: 30px; line-height: 1; padding: 0 0 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }
.lightbox.has-nav .lightbox__nav { display: flex; }
.lightbox__close {
  position: absolute; top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: var(--white);
  font-size: 30px; line-height: 1; padding: 0;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--ink); text-decoration: none; }
