/*
Theme Name: Hotel Benedict
Theme URI: https://hotelbenedict.ru/
Author: Hotel Benedict
Description: Кастомная тема отеля Benedict. Блочный редактор, готовые паттерны и шаблоны, настройки в админке.
Version: 0.2.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: Proprietary
Text Domain: hotelbenedict
*/

/* ================================================================
   1. Дизайн-токены
   ================================================================ */
:root {
	--hb-ink: #2e2e30;
	--hb-ink-soft: #323233;
	--hb-gold: #9d8c6c;
	--hb-sand: #e0d5bc;
	--hb-paper: #fbfaf7;
	--hb-white: #ffffff;
	--hb-line: rgba(46, 46, 48, 0.12);
	--hb-line-light: rgba(255, 255, 255, 0.16);

	--hb-font-head: "Jost", "Helvetica Neue", Arial, sans-serif;
	--hb-font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

	--hb-container: 1200px;
	--hb-gap: clamp(16px, 3vw, 32px);
	--hb-header-h: 88px;
}

/* ================================================================
   2. База
   ================================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--hb-paper);
	color: var(--hb-ink);
	font-family: var(--hb-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.hb-no-scroll {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--hb-ink);
	font-family: var(--hb-font-head);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a {
	color: var(--hb-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--hb-ink);
}

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

p {
	margin: 0 0 1em;
}

.hb-container {
	width: 100%;
	max-width: var(--hb-container);
	margin-inline: auto;
	padding-inline: var(--hb-gap);
}

.hb-main {
	min-height: 50vh;
}

/* ================================================================
   3. Кнопки
   ================================================================ */
.hb-btn,
.wp-block-button__link,
.wp-block-button__link:visited {
	display: inline-block;
	padding: 14px 32px;
	border: 1px solid var(--hb-gold);
	border-radius: 2px;
	background: var(--hb-gold);
	color: var(--hb-white);
	font-family: var(--hb-font-head);
	font-size: 0.85rem;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.hb-btn:hover,
.wp-block-button__link:hover {
	background: transparent;
	color: var(--hb-gold);
}

.hb-btn--ghost {
	background: transparent;
	color: var(--hb-gold);
}

.hb-btn--ghost:hover {
	background: var(--hb-gold);
	color: var(--hb-white);
}

.hb-btn--light {
	background: var(--hb-white);
	border-color: var(--hb-white);
	color: var(--hb-ink);
}

.hb-btn--light:hover {
	background: transparent;
	color: var(--hb-white);
}

/* ================================================================
   4. Логотип
   ================================================================ */
.hb-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.hb-logo__emblem {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.hb-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.hb-logo__name {
	font-family: var(--hb-font-head);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hb-ink);
}

.hb-logo__tag {
	font-size: 0.7rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--hb-gold);
}

/* ================================================================
   5. Шапка
   ================================================================ */
.hb-header {
	position: relative;
	background: var(--hb-white);
	border-bottom: 1px solid var(--hb-line);
}

.hb-header__bar {
	border-bottom: 1px solid var(--hb-line);
}

.hb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hb-gap);
	min-height: var(--hb-header-h);
}

.hb-header__actions {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 28px);
}

.hb-header__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-size: 0.9rem;
}

.hb-header__phone .link--phone {
	font-family: var(--hb-font-head);
	font-size: 1.05rem;
	color: var(--hb-ink);
	white-space: nowrap;
}

.hb-header__address {
	color: var(--hb-ink-soft);
	font-size: 0.82rem;
}

.hb-header__address:hover {
	color: var(--hb-gold);
}

/* Бургер */
.hb-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	flex-shrink: 0;
	border: 1px solid var(--hb-ink);
	border-radius: 2px;
	background: transparent;
	cursor: pointer;
}

.hb-burger span {
	display: block;
	height: 2px;
	background: var(--hb-ink);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.hb-header--open .hb-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hb-header--open .hb-burger span:nth-child(2) { opacity: 0; }
.hb-header--open .hb-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   6. Навигация
   ================================================================ */
.hb-nav {
	background: var(--hb-white);
}

.hb-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(10px, 2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-nav__list li {
	position: relative;
}

.hb-nav__list a {
	display: block;
	padding: 14px 0;
	color: var(--hb-ink-soft);
	font-family: var(--hb-font-head);
	font-size: 0.88rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hb-nav__list a:hover,
.hb-nav__list .current-menu-item > a,
.hb-nav__list .current_page_item > a {
	color: var(--hb-gold);
}

/* Подменю */
.hb-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--hb-white);
	border: 1px solid var(--hb-line);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.hb-nav__list li:hover > .sub-menu,
.hb-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hb-nav__list .sub-menu a {
	padding: 10px 20px;
	font-size: 0.82rem;
	text-transform: none;
	white-space: normal;
}

.hb-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

/* ================================================================
   7. Переключатель языков
   ================================================================ */
.hb-lang {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-lang__item a {
	display: inline-block;
	padding: 4px 7px;
	border: 1px solid var(--hb-line);
	border-radius: 2px;
	color: var(--hb-ink-soft);
	font-family: var(--hb-font-head);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hb-lang__item.is-active a {
	background: var(--hb-ink);
	border-color: var(--hb-ink);
	color: var(--hb-white);
}

/* ================================================================
   8. Подвал
   ================================================================ */
.hb-footer {
	margin-top: clamp(48px, 8vw, 96px);
	padding-block: clamp(32px, 5vw, 64px);
	background: var(--hb-ink);
	color: var(--hb-sand);
	font-size: 0.9rem;
}

.hb-footer a {
	color: var(--hb-sand);
}

.hb-footer a:hover {
	color: var(--hb-white);
}

.hb-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(24px, 4vw, 48px);
}

.hb-footer__title {
	margin-bottom: 1em;
	color: var(--hb-white);
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hb-footer__col--brand .hb-logo__name {
	color: var(--hb-white);
}

.hb-footer__copyright {
	margin-top: 16px;
	color: var(--hb-sand);
	font-size: 0.8rem;
	opacity: 0.7;
}

.hb-footer__menu {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.hb-footer__link {
	display: block;
	margin-bottom: 10px;
}

.hb-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hb-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--hb-line-light);
	border-radius: 50%;
	color: var(--hb-sand);
}

.hb-social:hover {
	border-color: var(--hb-gold);
	color: var(--hb-gold);
}

.hb-footer__bottom {
	margin-top: clamp(24px, 4vw, 48px);
	padding-top: 20px;
	border-top: 1px solid var(--hb-line-light);
	font-size: 0.78rem;
	opacity: 0.6;
}

/* ================================================================
   9. Доступность
   ================================================================ */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

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

/* ================================================================
   10. Секции и заголовки
   ================================================================ */
.hb-section {
	padding-block: clamp(40px, 7vw, 88px);
}

.hb-section--sand {
	background: var(--hb-sand);
}

.hb-section--ink {
	background: var(--hb-ink);
	color: var(--hb-white);
}

.hb-section--ink h1,
.hb-section--ink h2,
.hb-section--ink h3 {
	color: var(--hb-white);
}

.hb-section__title {
	margin-bottom: clamp(24px, 4vw, 48px);
	text-align: center;
}

.hb-section__title::after {
	content: "";
	display: block;
	width: 60px;
	height: 2px;
	margin: 16px auto 0;
	background: var(--hb-gold);
}

.hb-content {
	max-width: 760px;
	margin-inline: auto;
}

.hb-content p {
	margin-bottom: 1.4em;
}

/* ================================================================
   11. Герой-слайдер
   ================================================================ */
.hb-hero {
	position: relative;
	overflow: hidden;
	background: var(--hb-ink);
	color: var(--hb-white);
}

.hb-hero__track {
	display: flex;
	transition: transform 0.6s ease;
}

.hb-hero__slide {
	flex: 0 0 100%;
	min-height: clamp(420px, 60vh, 720px);
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	position: relative;
}

.hb-hero__slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(46, 46, 48, 0.35), rgba(46, 46, 48, 0.65));
}

.hb-hero__content {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.hb-hero__title {
	margin-bottom: 0.4em;
	color: var(--hb-white);
	font-size: clamp(1.8rem, 5vw, 3.4rem);
}

.hb-hero__desc {
	color: var(--hb-sand);
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: 1.6em;
}

.hb-hero__nav {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 12px;
}

.hb-hero__btn {
	width: 48px;
	height: 48px;
	border: 1px solid var(--hb-line-light);
	border-radius: 50%;
	background: transparent;
	color: var(--hb-white);
	font-size: 1.4rem;
	cursor: pointer;
}

.hb-hero__btn:hover {
	border-color: var(--hb-gold);
	color: var(--hb-gold);
}

/* ================================================================
   12. Сетка карточек (номера, тарифы, услуги)
   ================================================================ */
.hb-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.hb-cards--3 {
	grid-template-columns: repeat(3, 1fr);
}

.hb-card {
	display: flex;
	flex-direction: column;
	background: var(--hb-white);
	border: 1px solid var(--hb-line);
	overflow: hidden;
}

.hb-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.hb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hb-card:hover .hb-card__media img {
	transform: scale(1.06);
}

.hb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.hb-card__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
}

.hb-card__title a {
	color: var(--hb-ink);
}

.hb-card__title a:hover {
	color: var(--hb-gold);
}

.hb-card__desc {
	margin-bottom: 16px;
	font-size: 0.9rem;
	color: var(--hb-ink-soft);
}

.hb-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 16px;
	font-size: 0.85rem;
	color: var(--hb-ink-soft);
}

.hb-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hb-card__price {
	margin-bottom: 16px;
	font-family: var(--hb-font-head);
	font-size: 0.95rem;
}

.hb-card__price strong {
	display: block;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--hb-gold);
}

.hb-card__footer {
	margin-top: auto;
}

/* ================================================================
   13. Аккордеон FAQ
   ================================================================ */
.hb-faq {
	max-width: 820px;
	margin-inline: auto;
}

.hb-faq details {
	border: 1px solid var(--hb-line);
	border-radius: 2px;
	background: var(--hb-white);
	margin-bottom: 12px;
}

.hb-faq summary {
	position: relative;
	padding: 18px 56px 18px 20px;
	cursor: pointer;
	font-family: var(--hb-font-head);
	font-size: 1.05rem;
	list-style: none;
}

.hb-faq summary::-webkit-details-marker {
	display: none;
}

.hb-faq summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--hb-gold);
	border-bottom: 2px solid var(--hb-gold);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.hb-faq details[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.hb-faq .hb-faq__body {
	padding: 0 20px 20px;
	color: var(--hb-ink-soft);
}

/* ================================================================
   14. Контакты
   ================================================================ */
.hb-contacts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.hb-contacts__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hb-contacts__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.hb-contacts__item strong {
	display: block;
	font-family: var(--hb-font-head);
}

.hb-contacts__map {
	min-height: 360px;
	border: 1px solid var(--hb-line);
	background: var(--hb-sand);
}

/* ================================================================
   15. Заголовок страницы и записи
   ================================================================ */
.hb-page-header {
	padding-block: clamp(28px, 4vw, 52px);
	background: var(--hb-white);
	border-bottom: 1px solid var(--hb-line);
	text-align: left;
}

.hb-page-header__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.hb-page-header__main {
	min-width: 0;
}

.hb-page-header__eyebrow {
	margin: 0 0 10px;
	font-family: var(--hb-font-head);
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--hb-gold);
}

.hb-page-header h1 {
	margin: 0;
}

.hb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	font-size: 0.82rem;
	color: var(--hb-ink-soft);
}

.hb-breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--hb-gold);
}

.hb-breadcrumbs a {
	color: var(--hb-ink-soft);
}

.hb-breadcrumbs a:hover {
	color: var(--hb-gold);
}

@media (max-width: 767px) {
	.hb-page-header__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.hb-breadcrumbs ol {
		padding-bottom: 0;
	}
}

.hb-page-body {
	padding-block: clamp(40px, 6vw, 72px);
}

.hb-article {
	max-width: 820px;
	margin-inline: auto;
}

.hb-article__meta {
	margin-bottom: 24px;
	color: var(--hb-ink-soft);
	font-size: 0.85rem;
}

.hb-article__cover {
	margin-bottom: 32px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hb-article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Страница номера: слева блок брони и фото под ним, справа описание и оснащение */
.hb-room-media {
	align-self: start;
}

/* Фото занимает всю ширину колонки, даже если оно одно */
.hb-room-media .hb-room-gallery {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 0;
}

.hb-room-media .hb-article__cover {
	margin-bottom: 0;
}

.hb-room-grid .hb-content {
	max-width: none;
	margin-inline: 0;
}

/* Страница номера: сетка 2×2 — бронь и описание в верхней строке, фото и оснащение в нижней */
.hb-room-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
	align-items: stretch;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.hb-room-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.hb-room-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 32px;
}

.hb-room-gallery figure {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.hb-room-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hb-room-sidebar {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: var(--hb-sand);
}

.hb-room-sidebar__list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.hb-room-sidebar__list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--hb-line);
}

/* Блок цены в карточке брони: стоимость за 1 и за 2 гостей */
.hb-room-price {
	margin-top: auto;
	padding-top: 8px;
}

.hb-room-price__caption {
	margin: 0 0 10px;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hb-ink-soft);
}

/* Две колонки: «1 гость» и «2 гостя» рядом */
.hb-room-price__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.hb-room-price__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 18px;
	border-left: 1px solid var(--hb-line);
}

.hb-room-price__row:first-child {
	padding-left: 0;
	border-left: 0;
}

.hb-room-price__row:last-child {
	padding-right: 0;
}

/* Если цена за 2 гостей не задана — одна колонка на всю ширину */
.hb-room-price--single .hb-room-price__list {
	grid-template-columns: minmax(0, 1fr);
}

.hb-room-price__guests {
	font-family: var(--hb-font-head);
	font-size: 0.95rem;
	color: var(--hb-ink-soft);
}

.hb-room-price__value {
	font-family: var(--hb-font-head);
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--hb-ink);
	white-space: nowrap;
}

.hb-room-price__from {
	margin-right: 2px;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--hb-ink-soft);
}

.hb-room-sidebar > .hb-btn {
	align-self: flex-start;
}

/* Оснащение номера: рамка в цвет фона левого блока, пункты с линейными иконками */
.hb-room-features {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: var(--hb-white);
	border: 2px solid var(--hb-sand);
}

.hb-room-features__title {
	margin: 0 0 20px;
	font-size: clamp(20px, 2.4vw, 26px);
}

.hb-room-features__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-room-features__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	line-height: 1.35;
}

.hb-room-features__icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: var(--hb-gold);
}

@media (max-width: 991px) {
	.hb-room-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.hb-room-sidebar,
	.hb-room-features {
		padding: 20px;
	}

	.hb-room-price__row {
		padding: 0 12px;
	}

	.hb-room-price__value {
		font-size: 1.1rem;
	}

	.hb-room-features__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
	}

	.hb-room-features__list li {
		font-size: 14px;
		gap: 10px;
	}

	.hb-room-features__icon {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 767px) {
	.hb-room-gallery {
		grid-template-columns: 1fr;
	}
}


/* ================================================================
   16. Совместимость с блочным редактором
   ================================================================ */
.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.alignwide {
	max-width: 1400px;
	margin-inline: auto;
}

.entry-content,
.hb-content {
	word-wrap: break-word;
}

.wp-block-image img {
	border-radius: 2px;
}

.wp-block-cover {
	min-height: 320px;
}

.wp-block-cover__inner-container {
	max-width: var(--hb-container);
}

/* ================================================================
   17. Адаптивность
   ================================================================ */
@media (max-width: 1200px) {
	.hb-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.hb-cards--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hb-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 991px) {
	.hb-burger {
		display: flex;
	}

	.hb-header__inner {
		gap: 16px;
	}

	.hb-header__address {
		display: none;
	}

	/* Мобильная навигация — выезжающая панель */
	.hb-nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(320px, 85vw);
		z-index: 100;
		padding: 24px;
		overflow-y: auto;
		border-right: 1px solid var(--hb-line);
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}

	.hb-header--open .hb-nav {
		transform: translateX(0);
	}

	.hb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hb-nav__list a {
		padding: 14px 0;
		border-bottom: 1px solid var(--hb-line);
		font-size: 1rem;
	}

	.hb-nav__list .sub-menu {
		position: static;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 16px;
		display: none;
	}

	.hb-nav__list li.is-open > .sub-menu {
		display: block;
	}

	.hb-nav__list .sub-menu a {
		border-bottom: 0;
		font-size: 0.9rem;
	}
}

@media (max-width: 767px) {
	.hb-header__inner {
		min-height: 64px;
		gap: 10px;
	}

	.hb-logo {
		gap: 8px;
		min-width: 0;
	}

	.hb-logo__name {
		font-size: 1.05rem;
	}

	.hb-logo__tag {
		display: none;
	}

	.hb-logo__emblem {
		width: 36px;
		height: 36px;
	}

	.hb-header__contacts {
		display: none;
	}

	.hb-header__actions {
		gap: 8px;
		flex-shrink: 0;
		margin-left: auto;
	}

	.hb-header .hb-btn--header {
		display: none;
	}

	.hb-btn {
		padding: 12px 20px;
		font-size: 0.78rem;
	}

	.hb-cards,
	.hb-cards--3 {
		grid-template-columns: 1fr;
	}

	.hb-footer__grid {
		grid-template-columns: 1fr;
	}

	.hb-contacts {
		grid-template-columns: 1fr;
	}

	.hb-hero__slide {
		min-height: 70vh;
	}

	.hb-hero__content {
		padding-inline: 0;
	}

	.hb-lang__item a {
		padding: 4px 6px;
	}
}




/* ================================================================
   18. Фото-заглушка (для мест без изображения)
   ================================================================ */
.hb-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 24px;
	background: linear-gradient(135deg, var(--hb-sand) 0%, var(--hb-gold) 100%);
	text-align: center;
}

.hb-placeholder__emblem {
	width: 64px;
	height: 64px;
	object-fit: contain;
	opacity: 0.85;
	filter: brightness(0) invert(1);
}

.hb-placeholder__label {
	font-family: var(--hb-font-head);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

/* В карточке и на обложке записи заглушка занимает весь блок */
.hb-card__media .hb-placeholder,
.hb-article__cover .hb-placeholder {
	position: absolute;
	inset: 0;
	min-height: 0;
}

.hb-card__media {
	position: relative;
	background: var(--hb-sand);
}
/* ================================================================
   19. Куки-баннер, согласие на ПДн, карта
   ================================================================ */
.hb-cookie {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 200;
	padding: 16px 0;
	background: var(--hb-ink);
	color: var(--hb-sand);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.hb-cookie__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hb-cookie__text {
	margin: 0;
	font-size: 0.85rem;
}

.hb-cookie__text a {
	color: var(--hb-gold);
	text-decoration: underline;
}

.hb-cookie__text a:hover {
	color: var(--hb-white);
}

.hb-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hb-cookie__actions .hb-btn {
	padding: 10px 20px;
	font-size: 0.85rem;
}

/* Заглушка карты без согласия на cookies */
.hb-map-consent {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px;
	background: var(--hb-paper);
	border: 1px solid var(--hb-line);
	border-radius: 2px;
}

.hb-map-consent p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--hb-ink-soft);
}

.hb-consent {
	margin: 0 0 8px;
	font-size: 0.78rem;
	opacity: 0.7;
}

.hb-consent a {
	text-decoration: underline;
}

.hb-map {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

.hb-map__link {
	margin: 8px 0 0;
	font-size: 0.85rem;
}

.hb-map__link a {
	text-decoration: underline;
}

/* Форма онлайн-записи (YCLIENTS) */
.hb-booking-frame {
	margin-block: 24px;
	border: 1px solid var(--hb-line);
	border-radius: 2px;
	overflow: hidden;
	background: var(--hb-white);
}

.hb-booking-frame iframe {
	display: block;
	width: 100%;
	height: 720px;
	border: 0;
}

/* Страница «Онлайн запись»: описание слева, блок записи справа */
.hb-spa-booking {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.hb-spa-booking__widget {
	position: sticky;
	top: 24px;
}

.hb-spa-booking__card {
	padding: clamp(24px, 3vw, 36px);
	background: var(--hb-white);
	border: 1px solid var(--hb-line);
	border-radius: 2px;
}

.hb-spa-booking__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.hb-spa-booking__desc {
	margin: 0 0 20px;
	color: var(--hb-ink-soft);
	font-size: 0.92rem;
	line-height: 1.6;
}

.hb-btn--block {
	display: flex;
	justify-content: center;
	width: 100%;
}

@media (max-width: 991px) {
	.hb-spa-booking {
		grid-template-columns: 1fr;
	}

	.hb-spa-booking__widget {
		position: static;
	}
}
/* Отзывы */
.hb-reviews {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hb-reviews .hb-article {
	margin: 0;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--hb-line);
}

.hb-reviews__author {
	margin-bottom: 8px;
	font-size: 1.2rem;
}
/* Выделенный блок «Адрес» на странице контактов */
.hb-contacts-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 32px;
	row-gap: 24px;
	margin-bottom: 32px;
	padding: clamp(24px, 4vw, 40px);
	background: var(--hb-sand);
	border: 1px solid rgba(157, 140, 108, 0.25);
}

.hb-contacts-card > :nth-child(odd) {
	border-right: 1px solid rgba(46, 46, 48, 0.12);
	padding-right: 32px;
}

.hb-contacts-card > :nth-child(even) {
	padding-left: 32px;
}

.hb-contacts-card__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.hb-contacts-card__icon {
	display: inline-flex;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--hb-gold);
}

.hb-contacts-card__icon svg {
	width: 26px;
	height: 26px;
}

.hb-contacts-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.hb-contacts-card__content strong {
	display: block;
	color: var(--hb-ink-soft);
	font-family: var(--hb-font-head);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hb-contacts-card__content p {
	margin: 0;
}

.hb-contacts-card__content a {
	color: var(--hb-ink);
	text-decoration: underline;
	text-decoration-color: rgba(157, 140, 108, 0.4);
}

.hb-contacts-card__content a:hover {
	color: var(--hb-gold);
}

.hb-contacts-card__phone .link--phone {
	color: var(--hb-ink);
	font-family: var(--hb-font-head);
	font-size: 1.1rem;
	text-decoration: none;
}

.hb-contacts-card__social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hb-contacts-card .hb-social {
	border-color: rgba(46, 46, 48, 0.25);
	color: var(--hb-ink);
}

.hb-contacts-card .hb-social:hover {
	border-color: var(--hb-gold);
	color: var(--hb-gold);
}

@media (max-width: 767px) {
	.hb-contacts-card {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}

	.hb-contacts-card > :nth-child(odd) {
		border-right: 0;
		padding-right: 0;
	}

	.hb-contacts-card > :nth-child(even) {
		padding-left: 0;
	}
}


.hb-reviews__text p {
	margin-bottom: 0.8em;
}


.hb-contacts__map {
	overflow: hidden;
}

.hb-social__icon {
	display: block;
}

@media (max-width: 767px) {
	.hb-cookie__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}


.hb-article__cover {
	position: relative;
	background: var(--hb-sand);
}

.hb-article__cover .hb-placeholder {
	aspect-ratio: 16 / 9;
}

/* Герой-заглушка (если нет ни одной обложки) */
.hb-hero__slide--ph {
	background:
		radial-gradient(circle at 20% 20%, rgba(157, 140, 108, 0.35), transparent 45%),
		linear-gradient(160deg, var(--hb-ink-soft) 0%, var(--hb-ink) 60%);
}

.hb-hero__slide--ph .hb-hero__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

@media (max-width: 767px) {
	.hb-placeholder__emblem {
		width: 48px;
		height: 48px;
	}
}

/* ================================================================
   Пагинация архивов (отзывы, новости, номера и др.)
   ================================================================ */
.hb-pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: clamp(32px, 5vw, 56px);
}

.hb-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hb-pagination__item {
	display: flex;
}

.hb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--hb-line);
	border-radius: 2px;
	background: var(--hb-white);
	color: var(--hb-ink);
	font-family: var(--hb-font-head);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hb-pagination a.page-numbers:hover {
	border-color: var(--hb-gold);
	color: var(--hb-gold);
}

.hb-pagination a.page-numbers:focus-visible {
	outline: 2px solid var(--hb-gold);
	outline-offset: 3px;
}

.hb-pagination .page-numbers.current {
	border-color: var(--hb-gold);
	background: var(--hb-gold);
	color: var(--hb-white);
}

.hb-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 2px;
	border-color: transparent;
	background: transparent;
	color: var(--hb-gold);
	font-size: 1.1rem;
	letter-spacing: 0.14em;
}

.hb-pagination .prev.page-numbers,
.hb-pagination .next.page-numbers {
	padding-inline: 22px;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hb-pagination .prev.page-numbers::before {
	content: "\2190";
	margin-right: 10px;
	font-size: 1rem;
	letter-spacing: 0;
}

.hb-pagination .next.page-numbers::after {
	content: "\2192";
	margin-left: 10px;
	font-size: 1rem;
	letter-spacing: 0;
}

.hb-pagination__status {
	display: none;
	margin: 0;
	color: var(--hb-ink-soft);
	font-family: var(--hb-font-head);
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.hb-pagination .page-numbers {
		min-width: 46px;
		height: 46px;
		padding-inline: 12px;
	}

	/* На узких экранах оставляем «Назад», текущую страницу и «Далее» + счётчик */
	.hb-pagination__item > .page-numbers {
		display: none;
	}

	.hb-pagination__item > .current,
	.hb-pagination__item > .prev.page-numbers,
	.hb-pagination__item > .next.page-numbers {
		display: inline-flex;
	}

	.hb-pagination .prev.page-numbers,
	.hb-pagination .next.page-numbers {
		gap: 8px;
		min-width: 46px;
		padding-inline: 14px;
	}

	.hb-pagination .prev.page-numbers::before {
		margin-right: 0;
	}

	.hb-pagination .next.page-numbers::after {
		margin-left: 0;
	}

	.hb-pagination__status {
		display: block;
	}
}

/* ================================================================
   20. Круг «Забронировать» (страницы раздела «О нас»)
   ================================================================ */
.hb-booking-fab {
	position: fixed;
	left: clamp(16px, 2.4vw, 32px);
	bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px));
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 104px;
	height: 104px;
	padding: 10px;
	border-radius: 50%;
	background: var(--hb-ink);
	color: var(--hb-paper);
	text-align: center;
	text-decoration: none;
	box-shadow: 0 14px 32px rgba(46, 46, 48, 0.28);
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Пульсирующие кольца «по аналогии» с виджетом онлайн-записи YCLIENTS. */
.hb-booking-fab::before,
.hb-booking-fab::after {
	content: '';
	position: absolute;
	inset: -2px;
	border: 2px solid var(--hb-gold);
	border-radius: 50%;
	pointer-events: none;
	animation: hb-booking-fab-pulse 2.8s ease-out infinite;
}

.hb-booking-fab::after {
	animation-delay: 1.4s;
}

@keyframes hb-booking-fab-pulse {
	0% {
		opacity: 0.6;
		transform: scale(1);
	}

	70% {
		opacity: 0;
	}

	100% {
		opacity: 0;
		transform: scale(1.55);
	}
}

.hb-booking-fab:hover,
.hb-booking-fab:focus-visible {
	background: var(--hb-gold);
	color: var(--hb-paper);
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(46, 46, 48, 0.32);
}

.hb-booking-fab:focus-visible {
	outline: 2px solid var(--hb-ink);
	outline-offset: 3px;
}

.hb-booking-fab__icon {
	display: inline-flex;
	color: var(--hb-sand);
	transition: color 0.25s ease;
}

.hb-booking-fab:hover .hb-booking-fab__icon,
.hb-booking-fab:focus-visible .hb-booking-fab__icon {
	color: var(--hb-paper);
}

.hb-booking-fab__text {
	font-family: var(--hb-font-head);
	font-size: 0.7rem;
	line-height: 1.15;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.hb-booking-fab {
		gap: 4px;
		width: 88px;
		height: 88px;
	}

	.hb-booking-fab__text {
		font-size: 0.62rem;
	}

	.hb-booking-fab__icon svg {
		width: 20px;
		height: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hb-booking-fab,
	.hb-booking-fab__icon {
		transition: none;
	}

	.hb-booking-fab::before,
	.hb-booking-fab::after {
		display: none;
	}

	.hb-booking-fab:hover,
	.hb-booking-fab:focus-visible {
		transform: none;
	}
}

/* ================================================================
   21. Виджет «Найти номер» (TravelLine)
   ================================================================ */
.hb-findroom-fab {
	position: fixed;
	right: clamp(16px, 2.4vw, 32px);
	bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px));
	z-index: 160;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 104px;
	height: 104px;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: var(--hb-ink);
	color: var(--hb-paper);
	font: inherit;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 14px 32px rgba(46, 46, 48, 0.28);
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Пульсирующие кольца «по аналогии» с виджетом онлайн-записи YCLIENTS. */
.hb-findroom-fab::before,
.hb-findroom-fab::after {
	content: '';
	position: absolute;
	inset: -2px;
	border: 2px solid var(--hb-gold);
	border-radius: 50%;
	pointer-events: none;
	animation: hb-booking-fab-pulse 2.8s ease-out infinite;
}

.hb-findroom-fab::after {
	animation-delay: 1.4s;
}

.hb-findroom-fab:hover,
.hb-findroom-fab:focus-visible {
	background: var(--hb-gold);
	color: var(--hb-paper);
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(46, 46, 48, 0.32);
}

.hb-findroom-fab:focus-visible {
	outline: 2px solid var(--hb-ink);
	outline-offset: 3px;
}

.hb-findroom-fab__icon {
	display: inline-flex;
	color: var(--hb-sand);
	transition: color 0.25s ease;
}

.hb-findroom-fab:hover .hb-findroom-fab__icon,
.hb-findroom-fab:focus-visible .hb-findroom-fab__icon {
	color: var(--hb-paper);
}

.hb-findroom-fab__text {
	font-family: var(--hb-font-head);
	font-size: 0.7rem;
	line-height: 1.15;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Выдвижная панель */
.hb-findroom {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	justify-content: flex-end;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hb-findroom.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.hb-findroom__overlay {
	position: absolute;
	inset: 0;
	background: rgba(46, 46, 48, 0.5);
}

.hb-findroom__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(480px, 100%);
	height: 100%;
	background: var(--hb-paper);
	box-shadow: -18px 0 48px rgba(46, 46, 48, 0.24);
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.hb-findroom.is-open .hb-findroom__panel {
	transform: translateX(0);
}

.hb-findroom__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--hb-line);
}

.hb-findroom__title {
	margin: 0;
	font-size: 1.15rem;
}

.hb-findroom__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hb-ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hb-findroom__close:hover,
.hb-findroom__close:focus-visible {
	background: var(--hb-sand);
	color: var(--hb-ink);
}

.hb-findroom__close:focus-visible {
	outline: 2px solid var(--hb-ink);
	outline-offset: 2px;
}

.hb-findroom__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
	.hb-findroom-fab {
		gap: 4px;
		width: 88px;
		height: 88px;
	}

	.hb-findroom-fab__text {
		font-size: 0.62rem;
	}

	.hb-findroom-fab__icon svg {
		width: 20px;
		height: 20px;
	}

	.hb-findroom__panel {
		width: 100%;
	}

	.hb-findroom__body {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hb-findroom-fab,
	.hb-findroom-fab__icon,
	.hb-findroom,
	.hb-findroom__panel {
		transition: none;
	}

	.hb-findroom-fab::before,
	.hb-findroom-fab::after {
		display: none;
	}

	.hb-findroom-fab:hover,
	.hb-findroom-fab:focus-visible {
		transform: none;
	}
}
