/* Tiflis Hotel — каркас сайта
 * Характер: тёплый тбилисский отель в старой кирхе.
 * Палитра: кремово-пепельный фон, графит текста, глубокий зелёный акцент, тёплая охра (как кирпич кирхи).
 * Без внешних зависимостей. Шрифты — системные с fallback'ом; файлы можно положить позже в assets/fonts/.
 */

:root {
  --bg: #f5efe6;            /* кремово-пепельный */
  --bg-soft: #efe7d8;
  --paper: #fbf7f0;
  --ink: #1f2320;           /* графитово-оливковый */
  --ink-soft: #4a4f49;
  --ink-mute: #78786f;
  --line: #d9cfbe;
  --accent: #2a4a3a;        /* глубокий тбилисский зелёный */
  --accent-dark: #1d3327;
  --accent-soft: #e7eee6;
  --brick: #a5542a;         /* тёплый кирпич кирхи */
  --brick-soft: #e8c9ab;
  --shadow: 0 10px 30px rgba(31, 35, 32, .08);
  --radius: 14px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);

  --font-head: "Playfair Display", "Noto Serif Georgian", "Noto Serif", "Times New Roman", Georgia, serif;
  --font-body: "Inter", "Noto Sans Georgian", "Helvetica Neue", Arial, system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 .9em; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--ink-mute);
  font-weight: 600;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  color: var(--ink);
}
.brand strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: .01em;
  display: block;
}
.brand span {
  font-size: .75rem;
  color: var(--ink-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: .94rem;
}
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* Ссылка «Забронировать» в меню — только на мобильном раскрывающемся меню.
   На десктопе дублировать шаблонную кнопку в шапке незачем. */
.nav-book { display: none; }
@media (max-width: 920px) {
  .nav-book { display: inline-flex; color: var(--accent-dark) !important; font-weight: 600; }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fdf7ea;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); }
.hero .btn.ghost {
  color: #fdf7ea; border-color: rgba(253, 247, 234, .7);
  background: rgba(10, 15, 12, .35);
}
.hero .btn.ghost:hover { background: rgba(10, 15, 12, .55); color: #fff; }
.btn.light { background: #fdf7ea; color: var(--accent-dark); border-color: #fdf7ea; }
.btn.light:hover { background: #fff; color: var(--accent-dark); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }

/* lang picker */
.lang {
  position: relative;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: .85rem;
}
.lang-btn:hover { background: var(--bg-soft); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: .9rem;
}
.lang-menu a:hover { background: var(--bg-soft); text-decoration: none; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.main-nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  /* Длинные подписи («Завтрак и ресторан», «Расположение и карта») не укладываются в ряд
     даже на планшетной ширине — сворачиваем меню в кнопку раньше. */
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.menu-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .site-header.menu-open .main-nav a { font-size: 1.1rem; white-space: normal; }
}
@media (max-width: 480px) {
  /* На телефоне кнопка «Забронировать» в шапке теснит язык и меню — убираем её из шапки.
     Пользователь попадает к ней из главного меню и из hero. */
  .header-right > .btn { display: none; }
  .hero { min-height: 72vh; }
  .brand span { display: none; }
}

/* --- hero --- */
.hero {
  position: relative;
  min-height: min(90vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fdf7ea;
  overflow: hidden;
  background: #0f1612;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img,
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-poster { position: absolute; inset: 0; z-index: 0; background-size: cover; background-repeat: no-repeat; }
/* Широкий кадр: fasad-anfas-zapas, вывеска «Tiflis» справа — показываем правую часть. */
.hero-poster--wide {
  background-image: image-set(url("/assets/media/fasad-anfas-zapas.webp") type("image/webp"), url("/assets/media/fasad-anfas-zapas.jpg") type("image/jpeg"));
  background-image: url("/assets/media/fasad-anfas-zapas.jpg");
  background-position: 60% center;
}
/* Узкий кадр: fasad-1207 — вывеска «Tiflis» ЦЕЛИКОМ и вход снизу.
   Вывеска на исходнике лежит горизонтально в середине; при узкой рамке
   съезжает в центр, дальше fine-tune уточнит смещение. */
.hero-poster--narrow {
  background-image: url("/assets/media/fasad-1207-phone.jpg");
  background-position: center 25%;
  background-size: cover;
  display: none;
}
@media (max-width: 640px) {
  /* Поднят порог с 480 до 640, чтобы и на 414px, и на 600px кадр с вывеской целиком. */
  .hero-poster--wide { display: none; }
  .hero-poster--narrow { display: block; }
}
.hero-video { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1s ease; width: 100%; height: 100%; object-fit: cover; }
.hero-video.is-playing { opacity: 1; }
.hero-video--loop { z-index: 2; }  /* лежит выше, растворяется поверх intro, когда готов */
.hero-video--intro { z-index: 1; }
.hero-replay {
  position: absolute; z-index: 5;
  right: 20px; top: 80px;
  background: rgba(10, 15, 12, .55); color: #fdf7ea;
  border: 1px solid rgba(253, 247, 234, .25);
  border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero-replay:hover { background: rgba(10, 15, 12, .85); }
@media (max-width: 767px) { .hero-replay { display: none; } }
.hero-shade { z-index: 2; }
.hero-inner { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}
@media (max-width: 767px) {
  /* На телефоне и узком планшете (<768) вступление и петля не ставятся — только фото;
     широкий кадр ролика на вертикальном экране режется. Замечание №4 п.4. */
  .hero-video { display: none !important; }
  .hero-poster--narrow {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #253129;
  }
  .hero { min-height: 92vh; }
  .hero-inner { padding-block: 60vw 48px; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,15,12,.15) 0%, rgba(10,15,12,.55) 60%, rgba(10,15,12,.9) 100%),
    linear-gradient(90deg, rgba(10,15,12,.55) 0%, rgba(10,15,12,.1) 55%, rgba(10,15,12,0) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(60px, 10vw, 140px) 48px;
  max-width: 820px;
}
.hero .eyebrow { color: rgba(253, 247, 234, .75); }
.hero h1 {
  color: #fdf7ea;
  margin: .3em 0 .5em;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(253, 247, 234, .85);
  max-width: 54ch;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  color: rgba(253, 247, 234, .75);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::before {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(253, 247, 234, .5);
  margin: 0 auto 10px;
}

/* --- логотип AISI Lab (ДОП.Г п.14) --- */
.aisi-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--ink, #1f2320);
  color: #fdf7ea;
  text-decoration: none;
  transition: transform .15s ease;
}
.aisi-badge:hover { transform: translateY(-2px); text-decoration: none; }
.aisi-badge img { display: block; width: 150px; height: auto; max-width: 100%; }
.aisi-badge__caption { font-size: .82rem; opacity: .85; text-align: center; line-height: 1.25; }
.aisi-badge__url     { font-size: .72rem; opacity: .65; letter-spacing: .04em; text-align: center; }

.aisi-badge--maria { margin-top: 20px; width: 100%; max-width: 280px; }
.aisi-badge--maria img { width: 150px; }

.aisi-badge--footer { margin-top: 20px; padding: 12px 16px; }
.aisi-badge--footer img { width: 120px; }
.aisi-badge--footer .aisi-badge__caption { font-size: .78rem; }

/* --- блок Марии --- */
.maria-section .container.split { grid-template-columns: 420px 1fr; gap: 56px; align-items: flex-start; }
.maria-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  max-width: 420px;
}
.maria-portrait img { width: 100%; height: auto; display: block; max-height: 640px; object-fit: cover; }
.maria-text h2 { max-width: 20ch; }
.maria-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 16px; }
.maria-skills article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.maria-skills h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin: 0 0 6px; }
.maria-skills p  { color: var(--ink-soft); margin: 0; font-size: .92rem; }
@media (max-width: 920px) {
  .maria-section .container.split { grid-template-columns: 1fr; gap: 24px; }
  .maria-portrait { max-width: 320px; margin: 0 auto; }
  .maria-skills { grid-template-columns: 1fr; }
}

/* --- карта --- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.map-embed { display: block; width: 100%; height: 420px; border: 0; }
.map-embed--large { height: 520px; }
@media (max-width: 720px) { .map-embed { height: 320px; } .map-embed--large { height: 360px; } }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.near-list { margin-top: 28px; max-width: 760px; }
.near-list h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 10px; }

/* --- полоса-галерея на главной --- */
.home-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.home-strip__cell {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.home-strip__cell img,
.home-strip__cell picture,
.home-strip__cell .no-photo { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 920px) {
  .home-strip { grid-auto-flow: column; grid-auto-columns: 60%; grid-template-columns: unset; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .home-strip__cell { scroll-snap-align: start; }
}

/* --- история на главной: две карточки с подписью (contain, без обрезки по высоте) --- */
.history-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.history-strip figure { margin: 0; display: flex; flex-direction: column; }
.history-strip figure > picture,
.history-strip figure > img,
.history-strip figure > .no-photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); background: var(--ink); object-fit: contain;
}
.history-strip figcaption { color: var(--ink-soft); font-size: .92rem; padding: 10px 2px 0; }
@media (max-width: 720px) { .history-strip { grid-template-columns: 1fr; } }

/* --- sections --- */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head .eyebrow { display: block; margin-bottom: .6em; }
.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.bg-paper { background: var(--paper); }
.bg-soft { background: var(--bg-soft); }
.bg-accent { background: var(--accent); color: #fdf7ea; }
.bg-accent h2, .bg-accent h3 { color: #fdf7ea; }
.bg-accent .eyebrow { color: rgba(253, 247, 234, .65); }
.bg-accent p { color: rgba(253, 247, 234, .85); }
.bg-accent a { color: #fdf7ea; text-decoration: underline; }
.bg-accent .btn { background: #fdf7ea; color: var(--accent-dark); border-color: #fdf7ea; }

/* --- grids --- */
.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.pillars--two { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); margin: 0; }
@media (max-width: 920px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* room cards */
.rooms-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
.room {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.room-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.room-media img,
.room-media picture,
.room-media .no-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-media picture img { object-fit: cover; }

/* Нейтральный фон, когда фото нет — без текста, без размеров. Тёплый, тбилисский. */
.no-photo {
  min-height: 180px;
  background:
    radial-gradient(1200px 400px at 20% 110%, rgba(165,84,42,.16), transparent 60%),
    linear-gradient(135deg, var(--brick-soft) 0%, var(--bg-soft) 60%, var(--line) 100%);
}
.no-photo--accent {
  background:
    radial-gradient(1200px 400px at 20% 110%, rgba(42,74,58,.3), transparent 60%),
    linear-gradient(135deg, #253129 0%, #4a3a2a 100%);
}

/* Hero — картинка на всю высоту */
.hero-media > picture,
.hero-media > img,
.hero-media .no-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-fit: cover; }

.split > .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.split > .media > picture,
.split > .media > img,
.split > .media > .no-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.split > .media > picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Доп. кадры номера */
.room-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.room-extra {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.room-extra img, .room-extra picture { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .room-extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .room-extras { grid-template-columns: 1fr; } }
.room-extras:empty { display: none; }

/* Галерея: убираем «карточную» рамку, оставляем картинку */
.rooms-grid .room { border: 0; background: transparent; box-shadow: none; }

/* Блок «История» в /about/ */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.history-cell { margin: 0; display: flex; flex-direction: column; }
.history-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  display: block;
}
.history-media img, .history-media picture { width: 100%; height: auto; display: block; object-fit: contain; }
.history-media .no-photo { width: 100%; aspect-ratio: 4 / 3; }
.history-cell figcaption { font-size: .9rem; color: var(--ink-soft); padding: 10px 2px 0; }
.history-cell figcaption.is-empty { min-height: 0; padding: 0; }
@media (max-width: 920px) { .history-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .history-grid { grid-template-columns: 1fr; } }
.room-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-meta { display: flex; gap: 14px; font-size: .86rem; color: var(--ink-mute); flex-wrap: wrap; }
.room-meta span { white-space: nowrap; }
.room p { color: var(--ink-soft); }
.room-footer { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.room-price { margin: 6px 0 0; }
.room-price__was { color: var(--ink-mute); font-weight: 400; margin-right: 8px; text-decoration: line-through; }
.room-price__site { color: #9A4B33; font-weight: 700; font-size: 1.1rem; }
.room-price__note { color: var(--ink-mute); font-size: 0.85rem; }
@media (max-width: 920px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rooms-grid { grid-template-columns: 1fr; } }

/* cards (services) — простой список-лента; значков-заглушек нет */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.svc-list { display: grid; gap: 20px; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.svc-row--with-photo { grid-template-columns: 180px 1fr; gap: 24px; padding: 0; border-top: 1px solid var(--line); }
.svc-row__photo { aspect-ratio: 1 / 1; overflow: hidden; }
.svc-row__photo img, .svc-row__photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-row__text { padding: 16px 0; }
.svc-row__text h3 { font-size: 1.1rem; margin: 0 0 6px; }
.svc-row__text p { color: var(--ink-soft); margin: 0; max-width: 62ch; }
@media (max-width: 560px) {
  .svc-row--with-photo { grid-template-columns: 1fr; }
  .svc-row__photo { aspect-ratio: 16/10; }
}

/* big split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split > .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* placeholders for media */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(31,35,32,.03) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--brick-soft) 0%, var(--bg-soft) 100%);
  color: var(--ink);
  padding: 20px;
  min-height: 180px;
  position: relative;
  border: 1px dashed var(--brick);
}
.media-placeholder[data-kind="video"] { border-color: var(--accent); }
.media-placeholder .ph-kind {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: #fdf7ea;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.media-placeholder strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.media-placeholder small {
  display: block;
  color: var(--ink-soft);
  font-size: .78rem;
  max-width: 34ch;
  margin: 0 auto;
}
.hero .media-placeholder {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #253129, #4a3a2a);
  color: rgba(253, 247, 234, .85);
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  border: none;
}
.hero .media-placeholder > div {
  background: rgba(10, 15, 12, .55);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: right;
  max-width: 260px;
}
.hero .media-placeholder strong { color: #fdf7ea; font-size: .95rem; }
.hero .media-placeholder small { color: rgba(253, 247, 234, .7); font-size: .72rem; }
.hero .media-placeholder .ph-kind { margin-bottom: 4px; font-size: .62rem; }

/* breadcrumbs */
.crumbs {
  padding: 18px 0;
  font-size: .85rem;
  color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--ink); }

/* page hero (not home) */
.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: .2em; }
.page-hero .page-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* booking placeholder */
.booking-slot {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  background:
    repeating-linear-gradient(45deg, rgba(42,74,58,.04) 0 10px, transparent 10px 20px),
    var(--paper);
  text-align: center;
}
.booking-slot small {
  display: block;
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: .78rem;
}
.booking-fallback {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Мария — три способа связи, первой на /contacts/ */
.maria-contact {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.maria-contact__who img { width: 240px; height: auto; border-radius: var(--radius); display: block; }
.maria-ways { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 720px) { .maria-contact { grid-template-columns: 1fr; } .maria-contact__who img { width: 180px; margin: 0 auto; } }

/* contacts & location helpers */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-grid dt {
  color: var(--ink-mute);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-grid dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }

.walk-list, .amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.walk-list li, .amenities-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.walk-list li strong, .amenities-list li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .walk-list, .amenities-list { grid-template-columns: 1fr; } }

/* map placeholder */
.map-slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

/* --- footer --- */
.site-footer {
  background: var(--ink);
  color: #d7d5c9;
  padding: 56px 0 24px;
}
.site-footer a { color: #d7d5c9; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  color: #fdf7ea;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid p { color: #bdb9a8; margin: 0 0 .5em; }
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #908d81;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-credits { font-size: .72rem; color: #908d81; margin: 10px 0 0; text-align: center; }
.footer-credits a { color: #908d81; text-decoration: underline; }

/* Модалка вступления */
.intro-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 15, 12, .92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.intro-modal[hidden] { display: none; }
.intro-modal.is-open { display: flex; }
.intro-modal__video { max-width: 1280px; width: 100%; height: auto; border-radius: 10px; background: #000; }
.intro-modal__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fdf7ea; color: var(--ink); border: 0; cursor: pointer;
  font-size: 1.4rem;
}
.intro-modal__close:hover { background: #fff; }

.history-cta-row { margin: 10px 0 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* utility */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
