/* ==========================================================================
   ЧистоБаня — design tokens
   Меняя значения в :root, можно перекрасить/переразмерить весь сайт,
   не трогая остальной CSS и разметку.
   ========================================================================== */
:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f1e9dc;
  --color-ink: #2b2320;
  --color-ink-soft: #5b4f47;
  --color-wood-dark: #241a15;
  --color-wood: #6b4226;
  --color-accent: #c17a3d;
  --color-accent-dark: #a3612c;
  --color-pine: #3c5a45;
  --color-card: #ffffff;
  --color-border: #e6dbca;
  --color-star: #e0a13c;

  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --container: 1140px;
  --gap: clamp(1rem, 2vw, 2rem);
  --section-pad: clamp(3rem, 8vw, 6rem);

  --shadow-soft: 0 20px 45px -25px rgba(36, 26, 21, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-wood-dark);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-wood-dark);
  color: #efe4d6;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 0.6em;
}

.section--dark .eyebrow { color: var(--color-star); }

.section-head {
  max-width: 640px;
  margin: 0 0 2.5rem;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 1.08rem;
  color: var(--color-ink-soft);
}
.section--dark .lede { color: #d8c9b6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-accent);
  color: #fff8ef;
  box-shadow: 0 14px 30px -14px rgba(193, 122, 61, 0.65);
}
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: inherit;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline {
  background: transparent;
  border-color: var(--color-wood-dark);
  color: var(--color-wood-dark);
}
.btn--outline:hover { background: var(--color-wood-dark); color: #fff; }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--color-wood-dark);
}
.brand small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-ink-soft);
}
.nav-links a:hover { color: var(--color-accent-dark); }
.nav-links__book { display: none; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-wood-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
    border-top: 1px solid var(--color-border);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 520px) {
  .header-actions .btn--primary { display: none; }
  .nav-links__book {
    display: block;
    margin-top: 0.3rem;
    padding-top: 0.85rem;
  }
  .nav-links__book a { color: var(--color-accent-dark); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 14, 11, 0.35), rgba(15, 10, 8, 0.85)),
    var(--hero-image, none) center / cover no-repeat;
}
.hero__content { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 720px; }
.hero .eyebrow { color: var(--color-star); }
.hero h1 { color: #fff; }
.hero p.lede { color: #ece1d3; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  color: #e7dccc;
}
.hero-badges strong { color: #fff; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-wood-dark);
  color: #efe4d6;
  padding: 1.1rem 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.92rem;
}
.trust-strip b { color: var(--color-star); font-size: 1.05rem; }

/* ---------- Cards grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

/* ---------- Отделения ---------- */
.room-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.room-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; }
.room-card__body { padding: 1.6rem 1.8rem 1.9rem; }
.room-card__cap {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.8em;
}
.tag-list { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 0.5em; font-size: 0.94rem; color: var(--color-ink-soft); }
.tag-list li { padding-left: 1.3em; position: relative; }
.tag-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.feature-strip {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  text-align: center;
}
@media (max-width: 900px) { .feature-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }
.feature-strip__item { font-size: 0.88rem; color: var(--color-ink-soft); }
.feature-strip__icon { font-size: 1.6rem; display: block; margin-bottom: 0.35em; }

/* ---------- Услуги / цены ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
}
.price-table th {
  background: var(--color-wood-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.price-note {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

/* ---------- Значок платёжной системы ---------- */
.payment-badge {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7em 1.1em;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.payment-badge img { height: 22px; width: auto; display: block; }
.payment-badge span { font-size: 0.85rem; color: var(--color-ink-soft); max-width: 260px; line-height: 1.35; }
.payment-badge:hover span { color: var(--color-accent-dark); }

.payment-badge--footer {
  margin-top: 1.2rem;
  padding: 0.5em 0.9em;
}
.payment-badge--footer img { height: 16px; }
.payment-badge--footer span { font-size: 0.78rem; max-width: none; }

/* ---------- Удобства ---------- */
.amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1.6rem;
}
@media (max-width: 860px) { .amenities-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenities-list { grid-template-columns: 1fr; } }
.amenities-list li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.98rem;
}
.amenities-list li::before {
  content: "✓";
  flex: none;
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  background: var(--color-pine);
  color: #fff;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1em;
}
.amenities-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  border-top: 1px dashed var(--color-border);
  padding-top: 1.2rem;
}

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid button:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox__frame { max-width: min(90vw, 1100px); max-height: 88vh; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__caption { color: #efe4d6; margin-top: 1rem; font-size: 0.95rem; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox__close { top: 3vh; right: 4vw; }
.lightbox__prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 2vw; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; }
}

/* ---------- Отзывы ---------- */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 2.6rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--color-border);
}
.rating-summary__score {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-wood-dark);
  line-height: 1;
}
.rating-summary__stars { color: var(--color-star); font-size: 1.1rem; letter-spacing: 0.1em; }
.rating-summary__meta { font-size: 0.92rem; color: var(--color-ink-soft); }
.rating-sources { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--color-ink-soft); }
.rating-sources b { color: var(--color-ink); }

.rating-bars { display: grid; gap: 0.9rem; margin-bottom: 2.6rem; }
.rating-bar { display: grid; grid-template-columns: 150px 1fr 3.2em; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
.rating-bar__track { background: var(--color-border); border-radius: 999px; height: 8px; overflow: hidden; }
.rating-bar__fill { background: var(--color-pine); height: 100%; border-radius: 999px; }
.rating-bar__value { text-align: right; font-weight: 700; color: var(--color-ink-soft); }
@media (max-width: 620px) {
  .rating-bar { grid-template-columns: 108px 1fr 2.6em; font-size: 0.82rem; }
}

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card { display: flex; flex-direction: column; gap: 1rem; }
.quote-card p { font-size: 1rem; color: var(--color-ink); flex: 1; }
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
}
.quote-card cite span { font-weight: 500; color: var(--color-accent-dark); }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1em; }
.contact-list .ico {
  flex: none;
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.contact-list h4 { margin: 0 0 0.2em; font-size: 0.95rem; }
.contact-list p, .contact-list a { margin: 0; color: var(--color-ink-soft); text-decoration: none; font-size: 0.96rem; }
.contact-list a.link-accent { color: var(--color-accent-dark); font-weight: 700; }
.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- CTA ---------- */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--color-wood) 0%, var(--color-wood-dark) 100%);
  color: #fff8ef;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
}
.cta-banner h2 { color: #fff; }
.cta-banner .lede { color: #ecdfcd; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-wood-dark);
  color: #d8c9b6;
  padding: 3.4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.footer-grid a { text-decoration: none; color: #d8c9b6; }
.footer-grid a:hover { color: #fff; }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5em;
}
.footer-legal {
  padding-top: 1.8rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #b3a493;
  line-height: 1.7;
}
.footer-legal strong { color: #e7dccc; }
.footer-bottom {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #8f8071;
}
.footer-bottom a { text-decoration: underline; color: #b3a493; }

/* ---------- Oferta page ---------- */
.legal-page { max-width: 780px; margin: 0 auto; padding: var(--section-pad) clamp(1.1rem, 4vw, 2rem) 5rem; }
.legal-page h2 { margin-top: 2.2em; }
.legal-page h3 { margin-top: 1.6em; }
.legal-page ul { padding-left: 1.2em; }
.legal-page .back-link { display: inline-block; margin-bottom: 2rem; font-weight: 700; text-decoration: none; color: var(--color-accent-dark); }
.legal-page .updated { color: var(--color-ink-soft); font-size: 0.9rem; }
.legal-page section + section { margin-top: 1.4em; }
