/* Общие стили для hotel-ob.com и banket-ob.ru. Цвета сайта задаются классом на <body>. */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #27221d;
  --muted: #6d645a;
  --line: #e7dfd2;
  --accent: #96572a;
  --accent-ink: #ffffff;
  --link: #7c4520;
  --chip: #f1eadf;
  --bar-bg: #27221d;
  --bar-ink: #f4eee4;
  --bar-accent: #e3b98c;
  --logo-filter: none;
}

.theme-banket {
  --bg: #0f1324;
  --surface: #181e36;
  --ink: #f2ecdd;
  --muted: #aaa69a;
  --line: #2b3354;
  --accent: #d8b46f;
  --accent-ink: #1b1607;
  --link: #e2c388;
  --chip: #222a48;
  --bar-bg: #090c18;
  --bar-ink: #f2ecdd;
  --bar-accent: #d8b46f;
  --logo-filter: invert(1);
}

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

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

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 14px; background: var(--surface); }

/* Шапка */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo { display: block; padding: 6px 0; }
.logo img { width: 260px; filter: var(--logo-filter); }

.header-contacts { text-align: right; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.header-contacts .phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 0;
}
.header-contacts .phone:hover { color: var(--link); }

.site-nav { background: var(--bar-bg); }
.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav a {
  padding: 13px 16px;
  color: var(--bar-ink);
  text-decoration: none;
  font-size: .98rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--bar-accent); }
.site-nav a[aria-current="page"] { color: var(--bar-accent); border-bottom-color: var(--bar-accent); }

/* Слайдер на главной */

.hero-wrap { padding-top: 28px; }

.hero {
  position: relative;
  touch-action: pan-y;
  aspect-ratio: 960 / 380;
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.theme-banket .hero { aspect-ratio: 16 / 7; }

.hero .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero .slide.is-active { opacity: 1; }

.slider-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.slider-btn:hover { background: rgba(0, 0, 0, .7); }
.slider-btn--prev { left: 14px; }
.slider-btn--next { right: 14px; }

.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.dots button[aria-current="true"]::before { background: #fff; transform: scale(1.3); }

/* Блоки страницы */

.intro { padding-top: 36px; padding-bottom: 8px; max-width: 900px; }
.page-head { padding-top: 40px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section { padding-top: 36px; }
main { padding-bottom: 64px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: .72em 1.35em;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.1); }
.btn { justify-content: center; text-align: center; flex-wrap: wrap; column-gap: .35em; }
.nowrap { white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.card > a:first-child img, .card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--link); text-decoration: underline; }
.card-body p { color: var(--muted); }
.more { display: inline-block; padding: 8px 0; font-weight: 600; }
.card-body .more { margin-top: auto; }

.prices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; padding: 0; list-style: none; }
.prices li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--muted); }
.prices b { display: block; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1em; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--chip); font-size: .9rem; }

.features { margin: 0 0 1.2em; padding: 0; list-style: none; }
.features li { padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Список комнат и новости */

.room, .news-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.room:first-of-type, .news-item:first-of-type { border-top: 0; padding-top: 8px; }
.room > a img, .news-item > a img, .news-item > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.room h2 a, .news-item h2 a { color: var(--ink); text-decoration: none; }
.room h2 a:hover, .news-item h2 a:hover { color: var(--link); text-decoration: underline; }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }

.panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.panel > :last-child { margin-bottom: 0; }
.panel, .prose { overflow-wrap: anywhere; }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: .88rem; color: var(--muted); }
.contact-list a, .contact-list strong { display: inline-block; padding: 4px 0; font-size: 1.25rem; font-weight: 600; }

/* Галереи */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.6em; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--feature a:first-child { grid-column: 1 / -1; }
.gallery--feature a:first-child img { aspect-ratio: 16 / 8; }

.map { width: 100%; height: 420px; border: 0; border-radius: 14px; background: var(--line); }

.post-image { width: 100%; max-width: 760px; border-radius: 12px; margin-bottom: 1.4em; }

/* Просмотр фото */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .93);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; }
.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox button:focus-visible { outline-color: #fff; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #ddd; font-size: .9rem; }

/* Подвал */

.site-footer { padding: 36px 0; background: var(--bar-bg); color: var(--bar-ink); font-size: .95rem; }
.site-footer a { color: var(--bar-accent); }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.footer-logo { width: 110px; filter: invert(1); opacity: .9; }
.footer-row address { font-style: normal; line-height: 1.55; }
.footer-meta { margin-left: auto; text-align: right; opacity: .85; }
.footer-meta p { margin: 0 0 .3em; }


/* Текстовые страницы и уведомление о cookie */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }

.cookie-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  font-size: .9rem;
}
.cookie-note[hidden] { display: none; }
.cookie-note p { flex: 1 1 320px; margin: 0; }

/* Планшеты и телефоны в альбомной ориентации: шапка в одну строку, адрес остаётся в подвале. */
@media (max-width: 960px) {
  .header-row { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .logo img { width: 220px; }
  .header-contacts .addr { display: none; }
  .header-contacts .phone { padding: 8px 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }

  /* Шапка в одну строку: логотип слева, телефон справа; адрес убран — он есть в подвале и на странице «Адрес». */
  .header-row { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; padding-bottom: 6px; }
  .logo img { width: 172px; }
  .header-contacts .phone { padding: 10px 0; font-size: 1.08rem; }
  .header-contacts .addr { display: none; }

  .site-nav .wrap { padding: 0 6px; }
  .site-nav a { padding: 10px 10px; font-size: .95rem; }

  .hero-wrap { padding: 0; }
  .hero, .theme-banket .hero { aspect-ratio: 3 / 2; border-radius: 0; }
  .slider-btn { width: 40px; height: 40px; margin-top: -20px; }
  .slider-btn--prev { left: 8px; }
  .slider-btn--next { right: 8px; }

  .intro { padding-top: 24px; }
  .page-head { padding-top: 26px; }
  .section { padding-top: 28px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .room, .news-item, .two-col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .room, .news-item { padding: 22px 0; }
  .panel { padding: 18px 16px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map { height: 300px; }

  .site-footer { padding: 28px 0 32px; }
  .site-footer a { display: inline-block; padding: 4px 0; }
  .footer-meta { margin-left: 0; text-align: left; }
  .footer-meta p { margin-bottom: .1em; }

  .lightbox button { width: 44px; height: 44px; }
  .lightbox .lb-prev { left: 6px; }
  .lightbox .lb-next { right: 6px; }
  .lightbox .lb-close { top: 8px; right: 8px; }

  .cookie-note { left: 8px; right: 8px; bottom: 8px; flex-wrap: nowrap; gap: 10px; padding: 10px 12px; font-size: .8rem; line-height: 1.4; }
  .cookie-note p { flex: 1 1 auto; }
  .cookie-note .btn { flex: 0 0 auto; padding: .5em 1em; }
}

/* Небольшие телефоны: логотип и телефон чуть меньше, чтобы помещались в одну строку. */
@media (max-width: 389px) {
  .logo img { width: 150px; }
  .header-contacts .phone { font-size: 1rem; }
  .site-nav a { padding: 10px 8px; }
}

/* Совсем узкие экраны: телефон уходит под логотип. */
@media (max-width: 359px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .header-contacts .phone { padding: 8px 0 10px; }
  .cookie-note { font-size: .76rem; }
  .site-nav a { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .slide, .gallery img { transition: none; }
}
