/* Гостевой дом «Танзания» — концепт. Палитра взята из интерьеров на их фото:
   песочные тканые обои, графитовые двери с иллюминаторами, изумрудный текстиль, шафран их логотипа. */
:root {
  --sand: #f1e8d8;
  --sand-2: #e6dac4;
  --paper: #fbf6ec;
  --ink: #1f1b17;
  --ink-2: #4a4239;
  --ink-3: #6b6156;
  --graphite: #23282c;
  --emerald: #0f5b4f;
  --emerald-2: #0b4339;
  --saffron: #e9a21b;
  --clay: #9c3b2e;
  --line: rgba(31, 27, 23, 0.14);
  --focus: #0b4339;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.house :focus-visible, .foot :focus-visible, .concept :focus-visible { outline-color: var(--saffron); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper);
}
.skip:focus { top: 12px; }

/* Плашка «концепт» */
.concept {
  padding: 9px 20px;
  background: var(--graphite);
  color: #e9e2d4;
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}
.concept strong { color: var(--saffron); font-weight: 600; }
.concept__short { display: none; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(241, 232, 216, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand__mark {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 3px solid var(--graphite);
  background: radial-gradient(circle at 50% 50%, var(--saffron) 0 34%, transparent 36%);
}
.brand__name { font: 600 18px/1 var(--display); letter-spacing: -0.02em; }
.brand__note { font-size: 11px; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; font-size: 15.5px; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(31, 27, 23, 0.07); color: var(--ink); }
.top__tel {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  padding: 0 16px; border: 1.5px solid var(--graphite); border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.top__tel:hover { background: var(--graphite); color: var(--paper); }

/* Общие элементы */
.eyebrow {
  font: 600 12.5px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 14px;
}
.eyebrow--light { color: var(--saffron); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.head { max-width: 760px; }
.head__lead { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--graphite);
  font: 600 16px/1.2 var(--text); text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--graphite); color: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn--main { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.btn--main:hover { background: var(--emerald-2); border-color: var(--emerald-2); color: #fff; }

/* Первый экран */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero__in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: 1.02fr 0.98fr; padding-bottom: clamp(36px, 5vw, 64px); }
.hero__lead { margin-top: 20px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__hint { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
.hero__hint a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 26px; }
.hero__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: right; }

/* Иллюминатор — как круглые окна в дверях номеров */
.porthole {
  position: absolute; left: -22px; bottom: 46px; z-index: 2;
  display: grid; place-content: center; text-align: center;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--graphite); color: var(--paper);
  box-shadow: 0 0 0 6px var(--sand), 0 0 0 9px var(--saffron), 0 18px 40px rgba(31, 27, 23, 0.28);
}
.porthole span { font: 700 34px/1 var(--display); letter-spacing: -0.04em; color: var(--saffron); }
.porthole small { margin-top: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Полосы — как на покрывалах в номерах */
.stripes {
  height: 18px;
  background: repeating-linear-gradient(90deg,
    var(--graphite) 0 26px, var(--paper) 26px 34px, var(--emerald) 34px 62px, var(--paper) 62px 70px,
    var(--saffron) 70px 84px, var(--paper) 84px 92px, var(--clay) 92px 118px, var(--paper) 118px 126px);
}

/* Коротко */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list > div { padding: 22px 20px 22px 0; }
.facts__list > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin-top: 6px; font: 600 clamp(1.05rem, 1.7vw, 1.35rem)/1.2 var(--display); letter-spacing: -0.02em; }

/* Номера */
.rooms { padding: clamp(52px, 7vw, 96px) 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-2);
  font: 500 15px/1 var(--text); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--graphite); color: var(--ink); }
.chip.is-on { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.chip.is-on span { color: var(--saffron); }
.filter__status { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.room {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
}
.room[hidden] { display: none; }
.room--vip { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.room__photo { position: relative; }
.room__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.num {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  display: grid; place-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--graphite); color: var(--saffron);
  font: 700 19px/1 var(--display); letter-spacing: -0.04em;
  box-shadow: 0 0 0 3px var(--paper);
}
.room__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.room__type { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.room h3 { margin-top: 6px; font: 600 1.3rem/1.15 var(--display); letter-spacing: -0.03em; }
.room__fit { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.room__list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex: 1; font-size: 15px; color: var(--ink-2); }
.room__list li { position: relative; padding-left: 18px; }
.room__list li + li { margin-top: 5px; }
.room__list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--emerald); }
.room__go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; margin-top: 18px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--emerald); color: var(--emerald-2);
  font: 600 15px/1.2 var(--text); text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s;
}
.room__go:hover { background: var(--emerald); color: #fff; }
.rooms__note { margin-top: 26px; padding: 16px 20px; border-left: 4px solid var(--saffron); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--ink-2); }

/* Дом */
.house { background: var(--graphite); color: #ece5d7; padding: clamp(52px, 7vw, 96px) 0; }
.house__in { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.house h2 { color: #fff; }
.house__copy p + p { margin-top: 14px; }
.house__copy h2 + p { margin-top: 18px; }
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.mosaic__a { grid-column: 1 / -1; }
.mosaic__a img { aspect-ratio: 16 / 8; }

/* Условия */
.terms { padding: clamp(52px, 7vw, 96px) 0; background: var(--paper); }
.terms__in { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 0.8fr 1.2fr; }
.terms__list > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.terms__list > div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dd { color: var(--ink-2); }
.terms dd a { font-weight: 600; color: var(--ink); white-space: nowrap; text-underline-offset: 3px; }

/* Контакты */
.contacts { padding: clamp(52px, 7vw, 96px) 0; }
.contacts__in { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr 1fr; align-items: start; }
.contacts address { margin-top: 18px; font-size: 1.08rem; line-height: 1.5; }
.contacts__map { margin-top: 12px; }
.contacts__map a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--emerald-2); text-underline-offset: 4px; }
.contacts__list { border-top: 1px solid var(--line); }
.contacts__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--line); }
.contacts__list span { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contacts__list a { display: inline-flex; align-items: center; min-height: 44px; font: 600 clamp(1rem, 1.6vw, 1.2rem)/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; text-align: right; }
.contacts__list a:hover { color: var(--emerald-2); text-decoration: underline; text-underline-offset: 4px; }

/* Подвал */
.foot { background: var(--graphite); color: #cfc8ba; padding: 28px 0 32px; font-size: 14px; line-height: 1.55; }
.foot__in { display: grid; gap: 8px; }
.foot a { color: var(--saffron); text-underline-offset: 3px; }

/* Нижняя панель на телефоне */
.dock { display: none; }

/* Появление первого экрана */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__photo { animation: rise 0.7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero__photo { animation-delay: 0.14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .brand__note { display: none; }
}

@media (max-width: 860px) {
  .hero__in, .house__in, .terms__in, .contacts__in { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo img { aspect-ratio: 16 / 10; }
  .porthole { left: auto; right: 14px; bottom: 44px; width: 96px; height: 96px; }
  .porthole span { font-size: 27px; }
  .nav { gap: 0; }
  .nav a { padding: 0 9px; font-size: 15px; }
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__list > div { padding: 16px 12px 16px 0; }
  .facts__list > div + div { padding-left: 16px; }
  .facts__list > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__list > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .terms__list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Место под нижнюю панель — внутри тёмного подвала, без светлой полосы под ним. */
  .foot { padding-bottom: 104px; }
  .nav { display: none; }
  .top__tel { margin-left: auto; }
  html { scroll-padding-top: 72px; scroll-padding-bottom: 92px; }
  .concept__long { display: none; }
  .concept__short { display: inline; }
  .top__in { min-height: 60px; gap: 12px; }
  .top__tel { padding: 0 12px; font-size: 14px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .hero__actions { display: grid; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .contacts__list li { align-items: flex-start; flex-direction: column; gap: 0; padding: 10px 0; }
  .contacts__list a { text-align: left; }
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px;
    padding: 8px; border-radius: 999px;
    background: rgba(251, 246, 236, 0.96); border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(31, 27, 23, 0.22);
  }
  .dock a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
    font: 600 15px/1 var(--text); text-decoration: none;
  }
  .dock__call { border: 1.5px solid var(--graphite); }
  .dock__book { background: var(--emerald); color: #fff; }
}

@media (max-width: 640px) and (max-height: 480px) {
  .dock { display: none; }
  .foot { padding-bottom: 32px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 16px; }
  .top__tel { font-size: 13px; padding: 0 10px; }
}
