/*
Theme Name: Room Club
Theme URI: https://roomclub.ru/
Author: Room Club
Description: Тема для сайта посуточной аренды квартир Room Club (Белгород, Воронеж, Краснодар). Полная ширина с полями 40/20 px, редакционная типографика Unbounded + Manrope, шаблон «Полная ширина (шапка и подвал)» для Elementor, шаблоны блога, экскурсий и трансферов. Работает в паре с плагином Room Club Core.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roomclub
Tags: full-width-template, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--rc-bg: #f4f0e8;
	--rc-surface: #ffffff;
	--rc-paper: #fbf9f5;
	--rc-sand: #eae2d4;
	--rc-ink: #14201b;
	--rc-forest: #1d3a31;
	--rc-accent: #e4572e;
	--rc-accent-dark: #c4431e;
	--rc-sun: #f3b63f;
	--rc-muted: #5f6a65;
	--rc-line: rgba(20, 32, 27, 0.12);
	--rc-gutter: 40px;
	--rc-header-h: 84px;
	--rc-font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--rc-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rc-shadow: 0 1px 0 rgba(20, 32, 27, 0.04), 0 24px 48px -28px rgba(20, 32, 27, 0.35);
	--rc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 1024px) {
	:root { --rc-gutter: 20px; --rc-header-h: 72px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rc-header-h) + 16px); }
html.rc-lock { overflow: hidden; }
body {
	margin: 0;
	background: var(--rc-bg);
	color: var(--rc-ink);
	font: 400 16px/1.65 var(--rc-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, svg, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--rc-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--rc-accent); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--rc-font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: var(--rc-ink);
}
h1 { font-size: clamp(34px, 5vw, 72px); }
h2 { font-size: clamp(26px, 3vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rc-accent); color: #fff; }
:focus-visible { outline: 3px solid var(--rc-sun); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--rc-ink); color: #fff; border-radius: 12px;
}

/* Layout helpers — full-width with 40px (desktop) / 20px (tablet, mobile) side gutters */
.rc-gutter { padding-left: var(--rc-gutter); padding-right: var(--rc-gutter); }
.rc-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.rc-main { display: block; min-height: 50vh; }
.rc-main--full { padding: 0; }

/* Shared components (also provided by the plugin; duplicated so the theme works standalone) */
.rc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px;
	font: 700 15px/1 var(--rc-font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--rc-ease);
}
.rc-btn:active { transform: translateY(1px); }
.rc-btn--accent { background: var(--rc-accent); color: #fff; }
.rc-btn--accent:hover { background: var(--rc-accent-dark); color: #fff; }
.rc-btn--dark { background: var(--rc-ink); color: #fff; }
.rc-btn--dark:hover { background: var(--rc-forest); color: #fff; }
.rc-btn--ghost { background: transparent; color: var(--rc-ink); border-color: var(--rc-line); }
.rc-btn--ghost:hover { border-color: var(--rc-ink); color: var(--rc-ink); }
.rc-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.rc-btn--block { width: 100%; }
.rc-eyebrow { margin: 0; font: 700 12px/1.2 var(--rc-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rc-accent); }
.rc-grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } }
.rc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--rc-muted); }
.rc-crumbs a { color: var(--rc-muted); text-decoration: none; }
.rc-crumbs a:hover { color: var(--rc-accent); }
.rc-crumbs [aria-current] { color: var(--rc-ink); font-weight: 600; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.rc-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(244, 240, 232, 0.86);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	transition: box-shadow 0.3s, background 0.3s;
}
.admin-bar .rc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rc-header { top: 0; } }
.rc-header.is-scrolled { box-shadow: 0 1px 0 var(--rc-line); background: rgba(244, 240, 232, 0.95); }
.rc-header__bar {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
	min-height: var(--rc-header-h); padding: 0 var(--rc-gutter);
}
.rc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--rc-ink); text-decoration: none; }
.rc-logo:hover { color: var(--rc-ink); }
.rc-logo__mark { color: var(--rc-ink); display: inline-flex; }
.rc-logo__mark svg { width: 40px; height: 40px; }
.rc-logo__text { font: 600 21px/1 var(--rc-font-display); letter-spacing: -0.04em; }
.rc-logo__text b { font-weight: 600; color: var(--rc-accent); margin-left: 2px; }
.custom-logo-link img { max-height: 48px; width: auto; }

.rc-nav { justify-self: center; }
.rc-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.rc-menu > li { position: relative; }
.rc-menu a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	font-weight: 700; font-size: 15px; text-decoration: none; color: var(--rc-ink);
	transition: background 0.2s, color 0.2s;
}
.rc-menu a:hover, .rc-menu .current-menu-item > a, .rc-menu .current_page_item > a { background: rgba(20, 32, 27, 0.06); color: var(--rc-ink); }
.rc-menu .current-menu-item > a::after, .rc-menu .current_page_item > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--rc-accent);
}
.rc-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: var(--rc-surface); border-radius: 18px; box-shadow: var(--rc-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s;
}
.rc-menu li:hover > .sub-menu, .rc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rc-menu .sub-menu a { width: 100%; border-radius: 12px; }

.rc-header__actions { display: flex; align-items: center; gap: 12px; }
.rc-header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.rc-header__phone svg { color: var(--rc-accent); }

.rc-burger {
	display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: var(--rc-ink); cursor: pointer;
}
.rc-burger i {
	position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
	transition: transform 0.3s var(--rc-ease), top 0.3s var(--rc-ease);
}
.rc-burger i:first-of-type { top: 19px; }
.rc-burger i:last-of-type { top: 27px; }
.rc-header.is-open .rc-burger i:first-of-type { top: 23px; transform: rotate(45deg); }
.rc-header.is-open .rc-burger i:last-of-type { top: 23px; transform: rotate(-45deg); }

.rc-drawer {
	position: fixed; left: 0; right: 0; top: var(--rc-header-h); bottom: 0; z-index: 899;
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: 24px var(--rc-gutter) 32px; background: var(--rc-bg); overflow-y: auto;
	opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--rc-ease);
}
.rc-drawer.is-visible { opacity: 1; transform: none; }
.rc-drawer[hidden] { display: none; }
.rc-menu--drawer { flex-direction: column; align-items: stretch; gap: 0; }
.rc-menu--drawer a {
	width: 100%; min-height: 64px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--rc-line);
	font: 600 26px/1.1 var(--rc-font-display); letter-spacing: -0.02em;
}
.rc-menu--drawer a:hover { background: none; color: var(--rc-accent); }
.rc-menu--drawer .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0 0 0 16px; }
.rc-menu--drawer .sub-menu a { font-size: 18px; min-height: 48px; }
.rc-drawer__foot { display: flex; flex-direction: column; gap: 14px; }
.rc-drawer__phone { font: 600 22px/1 var(--rc-font-display); text-decoration: none; }

@media (max-width: 1280px) {
	.rc-header__phone span { display: none; }
	.rc-header__phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--rc-line); border-radius: 50%; }
}
@media (max-width: 1100px) {
	.rc-nav, .rc-header__cta { display: none; }
	.rc-burger { display: inline-block; }
	.rc-header__bar { grid-template-columns: auto 1fr; }
	.rc-header__actions { justify-self: end; gap: 8px; }
}
@media (max-width: 560px) {
	.rc-logo__text { font-size: 18px; }
	.rc-logo__mark svg { width: 34px; height: 34px; }
	.rc-header__phone { display: none; }
	.rc-header .rc-city__toggle { min-height: 40px; padding: 0 10px; font-size: 14px; }
	.rc-header .rc-city__panel, .rc-header .rc-city__confirm { left: auto; right: -56px; }
}

/* ==========================================================================
   4. Page heads, content, prose
   ========================================================================== */
.rc-page-head {
	display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
	padding-top: clamp(32px, 5vw, 80px); padding-bottom: clamp(28px, 4vw, 56px);
}
.rc-page-head__title { margin: 0; font-size: clamp(36px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.04em; max-width: 1200px; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.rc-page-head__title em { font-style: normal; color: var(--rc-accent); }
.rc-page-head__lead { margin: 0; max-width: 720px; font-size: clamp(16px, 1.3vw, 20px); color: var(--rc-muted); }
.rc-page-head .rc-searchform { width: min(100%, 560px); }

.rc-cover { margin: 0 0 clamp(32px, 4vw, 64px); }
.rc-cover img { width: 100%; max-height: 78vh; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 32px; }
.rc-cover figcaption { margin-top: 10px; font-size: 14px; color: var(--rc-muted); }
.rc-content { padding-bottom: clamp(48px, 6vw, 96px); }

.rc-prose { font-size: 18px; line-height: 1.75; color: #2a3531; }
.rc-prose > *:first-child { margin-top: 0; }
.rc-prose h2 { margin: 1.8em 0 0.6em; font-size: clamp(24px, 2.4vw, 34px); }
.rc-prose h3 { margin: 1.6em 0 0.5em; font-size: clamp(20px, 1.8vw, 26px); }
.rc-prose p, .rc-prose ul, .rc-prose ol { margin: 0 0 1.2em; }
.rc-prose ul, .rc-prose ol { padding-left: 1.3em; }
.rc-prose li { margin-bottom: 0.4em; }
.rc-prose li::marker { color: var(--rc-accent); }
.rc-prose a { color: var(--rc-accent); }
.rc-prose blockquote {
	margin: 2em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--rc-accent);
	font: 500 clamp(20px, 2vw, 26px)/1.45 var(--rc-font-display); letter-spacing: -0.01em; color: var(--rc-ink);
}
.rc-prose img, .rc-prose figure img { border-radius: 20px; }
.rc-prose figure { margin: 2em 0; }
.rc-prose figcaption, .wp-caption-text { font-size: 14px; color: var(--rc-muted); margin-top: 8px; }
.rc-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rc-prose th, .rc-prose td { padding: 12px; border-bottom: 1px solid var(--rc-line); text-align: left; }
.rc-prose hr { border: 0; height: 1px; background: var(--rc-line); margin: 2.5em 0; }
.rc-prose code { padding: 2px 6px; border-radius: 6px; background: var(--rc-sand); font-size: 0.9em; }
.rc-prose .alignwide { margin-left: -8%; margin-right: -8%; max-width: none; }
.rc-prose .alignfull { margin-left: calc(50% - 50vw + var(--rc-gutter)); margin-right: calc(50% - 50vw + var(--rc-gutter)); max-width: none; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

.rc-page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 700; }

/* Elementor pages: let sections go edge to edge */
.rc-builder > div, .rc-fullwidth { width: 100%; }
.rc-template-full .elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
.elementor-widget-container .rc-section { margin: 0; }
.rc-main--full .elementor-widget-wrap { padding: 0 !important; }

/* ==========================================================================
   5. Blog listings
   ========================================================================== */
.rc-listing { padding-bottom: clamp(56px, 7vw, 120px); }
.rc-filter-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-filter-links a {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
	border: 1.5px solid var(--rc-line); border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.rc-filter-links a:hover { border-color: var(--rc-ink); color: var(--rc-ink); }
.rc-filter-links a.is-active { background: var(--rc-ink); border-color: var(--rc-ink); color: #fff; }

.rc-post { display: flex; flex-direction: column; gap: 18px; }
.rc-post__media { display: block; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; background: var(--rc-sand); }
.rc-post__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--rc-ease); }
.rc-post:hover .rc-post__img { transform: scale(1.05); }
.rc-post__body { display: flex; flex-direction: column; gap: 10px; }
.rc-post__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--rc-muted); }
.rc-post__cat { padding: 5px 10px; border-radius: 999px; background: var(--rc-ink); color: #fff; font-weight: 700; }
.rc-post__title { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.rc-post__title a { text-decoration: none; }
.rc-post__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rc-muted); }
.rc-posts-grid .rc-post:first-child { grid-column: span 2; }
.rc-posts-grid .rc-post:first-child .rc-post__media { aspect-ratio: 16 / 9; }
.rc-posts-grid .rc-post:first-child .rc-post__title { font-size: clamp(24px, 2.4vw, 34px); }
@media (max-width: 680px) { .rc-posts-grid .rc-post:first-child { grid-column: auto; } }

.rc-pagination { margin-top: 48px; }
.rc-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rc-pagination a, .rc-pagination span {
	display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px;
	border-radius: 999px; border: 1.5px solid var(--rc-line); font-weight: 700; text-decoration: none;
}
.rc-pagination .current { background: var(--rc-ink); border-color: var(--rc-ink); color: #fff; }
.rc-pagination a:hover { border-color: var(--rc-ink); color: var(--rc-ink); }

.rc-nothing, .rc-404 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 96px; }
.rc-nothing__title { margin: 0; }
.rc-404 { padding-top: clamp(48px, 8vw, 120px); }
.rc-404__code { margin: 0; font: 600 clamp(120px, 24vw, 360px)/0.8 var(--rc-font-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--rc-accent); }
.rc-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.rc-searchform { display: flex; gap: 8px; width: min(100%, 560px); padding: 6px; background: var(--rc-surface); border-radius: 999px; }
.rc-searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; outline: none; }

/* ==========================================================================
   6. Single post
   ========================================================================== */
.rc-article__head { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); max-width: 1280px; }
.rc-article__title { margin: 0; font-size: clamp(34px, 5vw, 80px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.rc-article__lead { margin: 0; max-width: 760px; font-size: clamp(18px, 1.5vw, 22px); color: var(--rc-muted); }
.rc-entry-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--rc-muted); }
.rc-entry-meta__cat { padding: 6px 12px; border-radius: 999px; background: var(--rc-accent); color: #fff; font-weight: 700; text-decoration: none; }
.rc-entry-meta__cat:hover { color: #fff; background: var(--rc-accent-dark); }
.rc-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 100px); padding-bottom: clamp(48px, 6vw, 96px); }
.rc-article__body { max-width: 760px; }
.rc-article__aside { display: flex; flex-direction: column; gap: 24px; }
.rc-aside-card { position: sticky; top: calc(var(--rc-header-h) + 24px); display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 26px; background: var(--rc-forest); color: rgba(244, 240, 232, 0.8); }
.rc-aside-card p { margin: 0; line-height: 1.55; }
.rc-aside-card__title { font: 600 22px/1.2 var(--rc-font-display); color: #fff; }
.rc-widget { padding: 24px; border-radius: 22px; background: var(--rc-surface); }
.rc-widget__title { font-size: 18px; }
.rc-widget ul { margin: 0; padding-left: 1.1em; }
.rc-tags { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--rc-sand); font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 1024px) {
	.rc-article__layout { grid-template-columns: minmax(0, 1fr); }
	.rc-aside-card { position: static; }
}

.rc-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 48px; }
.rc-post-nav a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; border-radius: 22px; background: var(--rc-surface); text-decoration: none; }
.rc-post-nav .nav-next { text-align: right; }
.rc-post-nav__label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rc-accent); }
.rc-post-nav__title { font: 600 18px/1.3 var(--rc-font-display); }
@media (max-width: 680px) { .rc-post-nav .nav-links { grid-template-columns: 1fr; } .rc-post-nav .nav-next { text-align: left; } }

.rc-related { padding-top: 32px; padding-bottom: clamp(56px, 7vw, 120px); border-top: 1px solid var(--rc-line); }
.rc-related__title { margin-bottom: 32px; }

/* Comments */
.rc-comments { padding: 32px 0 80px; }
.rc-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.rc-comments__list .comment { margin: 0 0 16px; padding: 22px; border-radius: 20px; background: var(--rc-surface); }
.rc-comments__list .children { list-style: none; margin: 16px 0 0; padding-left: 24px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 4px 0 10px; }
.comment-metadata a { color: var(--rc-muted); text-decoration: none; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--rc-muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 14px 16px; border: 1.5px solid var(--rc-line); border-radius: 14px; background: var(--rc-paper); font-size: 16px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--rc-ink); background: #fff; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }

/* ==========================================================================
   7. Excursion / transfer singles
   ========================================================================== */
.rc-gallery-grid { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(160px, 20vw, 280px); margin-bottom: clamp(32px, 4vw, 56px); }
.rc-gallery-grid figure { margin: 0; overflow: hidden; border-radius: 22px; background: var(--rc-sand); }
.rc-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.rc-gallery-grid figure:first-child { grid-row: span 2; }
.rc-gallery-grid--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(280px, 45vw, 620px); }
.rc-gallery-grid--1 figure:first-child { grid-row: auto; }
.rc-gallery-grid--2 { grid-template-columns: 2fr 1fr; }
.rc-gallery-grid--3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 760px) {
	.rc-gallery-grid, .rc-gallery-grid--2, .rc-gallery-grid--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.rc-gallery-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
}

.rc-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 6vw, 96px); }
.rc-single__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.rc-single__section h2 { font-size: clamp(22px, 2vw, 30px); }
.rc-single__aside { position: sticky; top: calc(var(--rc-header-h) + 24px); }
@media (max-width: 1024px) {
	.rc-single__layout { grid-template-columns: minmax(0, 1fr); }
	.rc-single__aside { position: static; }
}

.rc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--rc-line); }
.rc-facts li { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--rc-surface); }
.rc-facts span { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rc-muted); }
.rc-facts strong { font: 600 18px/1.25 var(--rc-font-display); }
.rc-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rc-checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rc-checklist .rc-ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--rc-accent); color: #fff; flex-shrink: 0; }

.rc-bookcard { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--rc-surface); box-shadow: var(--rc-shadow); }
.rc-bookcard__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--rc-muted); font-size: 14px; }
.rc-bookcard__price strong { font: 600 34px/1 var(--rc-font-display); letter-spacing: -0.03em; color: var(--rc-ink); }
.rc-bookcard__rating { margin: 0; font-weight: 800; color: var(--rc-ink); }

.rc-cta-form { padding-bottom: clamp(56px, 7vw, 120px); }
.rc-cta-form__box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(24px, 5vw, 64px); border-radius: 32px; background: var(--rc-surface); }
.rc-cta-form__box > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.rc-cta-form__box > div:first-child p:not(.rc-eyebrow) { color: var(--rc-muted); }
.rc-cta-form__title { margin: 0; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.035em; }
@media (max-width: 900px) { .rc-cta-form__box { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.rc-footer { position: relative; overflow: hidden; margin-top: 0; padding: clamp(56px, 7vw, 110px) var(--rc-gutter) 28px; background: var(--rc-ink); color: rgba(244, 240, 232, 0.72); }
.rc-footer a { color: #fff; text-decoration: none; }
.rc-footer a:hover { color: var(--rc-sun); }
.rc-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.rc-footer__slogan { margin: 0; max-width: 900px; font: 600 clamp(32px, 5vw, 76px)/1 var(--rc-font-display); letter-spacing: -0.04em; color: #fff; }
.rc-footer__top .rc-btn--accent { color: #fff; }
.rc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(40px, 5vw, 64px) 0; }
.rc-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rc-footer__about { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.rc-footer__about p { margin: 0; }
.rc-footer .rc-logo, .rc-footer .rc-logo__mark { color: #fff; }
.rc-footer .rc-logo__mark svg rect { fill: var(--rc-accent); }
.rc-footer__title { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 240, 232, 0.5); }
.rc-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rc-footer .rc-menu { flex-direction: column; align-items: flex-start; gap: 10px; }
.rc-footer .rc-menu a { min-height: 0; padding: 0; background: none; color: #fff; font-weight: 500; }
.rc-footer__phone { display: inline-block; margin-bottom: 8px; font: 600 22px/1.2 var(--rc-font-display); }
.rc-footer__mail { display: inline-block; margin-bottom: 12px; }
.rc-footer__muted { margin: 0 0 16px; font-size: 14px; }
.rc-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-socials a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 13px; font-weight: 700; }
.rc-drawer .rc-socials a { border-color: var(--rc-line); color: var(--rc-ink); }
.rc-footer__word {
	margin: 0 calc(-0.02 * 100vw); white-space: nowrap; text-align: center; user-select: none;
	font: 600 clamp(80px, 21vw, 380px)/0.8 var(--rc-font-display); letter-spacing: -0.06em;
	color: transparent; -webkit-text-stroke: 1px rgba(244, 240, 232, 0.22);
}
.rc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.rc-footer__bottom p { margin: 0; }
.rc-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 1024px) { .rc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rc-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
