/* ============================================================
   Каркас "travel-guide" — туристический гид (архетип №4).
   Реализован на rivercruises.ie; вариант от эталона lonelyplanet.com
   (кат.10): воздух, фото-герой, карточки-туры, pill-киккеры,
   hover-lift, тёмный футер. Всё через токены; приёмы — рецепты.
   ============================================================ */

:root {
  --primary: #1f4e5f;
  --ink: #22303a;
  --bg: #fbfaf7;
  --bg-alt: #eef2f2;
  --accent: #c77b3f;
  --muted: #5d6d77;
  --line: #dce4e4;
  --font-head: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 10px;
  --gap: 26px;
  --max-w: 1160px;
}
:root {
  --primary: #a0522d; --ink: #1c2833; --bg: #fafbfc;
  --bg-alt: #f0e6e0; --accent: #a0522d; --muted: #5d6d7e;
  --line: #dbe2e8;
  --font-head: 'Segoe UI','Helvetica Neue',Arial,sans-serif; --font-body: 'Segoe UI','Helvetica Neue',Arial,sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.62; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Шапка: лого-слово + pill-нав (recipe: nav-pill) --- */
.masthead { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700;
  font-size: 26px; letter-spacing: .02em; color: var(--primary); }
.brand__sub { font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .18em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary);
  color: #fff; }

/* --- Киккер-пилюля (recipe: kicker-pill) --- */
.kicker { display: inline-block; background: var(--bg-alt); color: var(--primary);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; padding: 3px 12px; border-radius: 999px; }
.kicker--accent { background: rgba(199, 123, 63, .14); color: var(--accent); }

/* --- Фото-герой (recipe: photo-hero-strip) --- */
.hero { position: relative; background: var(--ink); border-radius: var(--radius);
  overflow: hidden; }
.hero__media { aspect-ratio: 21/9; max-height: 460px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.hero__ov { position: absolute; inset: auto 0 0 0; padding: 30px 30px 26px;
  background: linear-gradient(transparent, rgba(15, 27, 34, .88)); color: #fff; }
.hero__ov h1 { font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3.8vw, 46px); line-height: 1.12; margin: 10px 0 8px; }
.hero__ov h1 a { color: #fff; }
.hero__ov h1 a:hover { color: #e8eef0; }
.hero__ov p { max-width: 680px; color: #dfe7ea; font-size: 16.5px; }
.hero .kicker { background: rgba(255,255,255,.16); color: #fff; }

/* --- Заголовки (recipe: title-sans-700) --- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700;
  letter-spacing: -.008em; line-height: 1.2; }
.section-head { display: flex; align-items: baseline; gap: 14px;
  padding: 26px 0 4px; }
.section-head h2 { font-size: 24px; }
.section-head .more { margin-left: auto; font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; }

/* --- Карточки-туры (recipe: tour-cards + hover-lift) --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap); padding: 18px 0 8px; }
.card { background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(34, 48, 58, .05); }
.card:hover { box-shadow: 0 10px 26px rgba(31, 78, 95, .16);
  transform: translateY(-3px); transition: transform .18s, box-shadow .18s; }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: flex;
  flex-direction: column; gap: 7px; }
.card h2, .card h3 { font-size: 18.5px; }
.card h2 a, .card h3 a { color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { color: var(--primary); }
.card__excerpt { font-size: 14.5px; color: var(--muted); }
.card--wide { display: grid; grid-template-columns: 1.1fr 1fr; }
.card--wide .card__media { aspect-ratio: auto; height: 100%; }

/* --- Галерея-решётка --- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 16px 0; }
.gal a { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.gal img { aspect-ratio: 1; width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s; }
.gal a:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; inset: auto 0 0 0; padding: 8px 10px;
  font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(15,27,34,.8)); }

/* --- Статья --- */
.article { max-width: 740px; margin: 26px auto 46px; }
.article h1 { font-size: clamp(28px, 4vw, 42px); margin: 12px 0 10px; }
.article__meta { display: flex; gap: 12px; align-items: center; font-size: 13px;
  color: var(--muted); padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line); }
.article figure { margin: 22px 0; }
.article figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.article p { margin-bottom: 17px; font-size: 17px; }
.article h2 { font-size: 24px; margin: 32px 0 10px; }
.article__hero img { width: 100%; max-height: 500px; object-fit: cover;
  border-radius: var(--radius); }
.lead__standfirst { font-size: 18.5px; color: var(--muted); }
.related { margin: 30px 0 8px; padding: 16px 18px; background: var(--bg-alt);
  border-radius: var(--radius); }
.related ul { margin: 8px 0 0 18px; }
.related li { margin: 5px 0; }

/* --- Прочее --- */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.pagination { display: flex; gap: 8px; padding: 24px 0 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 8px; }
.pagination .cur { background: var(--primary); color: #fff; }
.pagination .dots { border: none; }

/* --- Тёмный футер (recipe: footer-dark) --- */
.footer { background: var(--ink); color: #cfd9de; margin-top: 40px;
  padding: 30px 0 38px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 16px 44px;
  justify-content: space-between; }
.footer b { color: #fff; font-family: var(--font-head); }
.footer nav { display: flex; flex-direction: column; gap: 7px; }
.footer nav a { color: #cfd9de; font-size: 14px; }
.footer nav a:hover { color: #fff; }
.footer__copy { color: #93a3ac; font-size: 13px; padding-top: 16px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .gal { grid-template-columns: repeat(2, 1fr); }
  .nav { overflow-x: auto; }
  .hero__media { aspect-ratio: 16/10; }
}

/* --- Лицо сети (КП2 18.10) --- */
.card--featured { grid-column: span 2; }
.card--featured .card__media { aspect-ratio: 16/10; }
.card--featured h2, .card--featured h3 { font-size: 22px; }
@media (max-width: 700px) { .card--featured { grid-column: span 1; } }
.sm-cat { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--line); }
.sm-cat b { font-size: 16px; }


/* списки статей (стандарт-2026) */
.article ul, .article ol { margin: 0.9rem 0 1.1rem; padding-left: 1.5rem; }
.article li { margin: 0.35rem 0; }
.article li::marker { color: var(--primary, #333); font-weight: 600; }
.article h3 { margin: 1.3rem 0 0.4rem; font-size: 1.05rem; }
