/* ==========================================================================
   Dune House — стили лендинга
   Цвета, шрифты и отступы задаются только через переменные ниже.
   ========================================================================== */

/* ---------- Шрифты (локально, с кириллицей) ----------
   Forum — заголовки, Jost — текст. Marcellus из макета заменён на Forum:
   в Marcellus нет кириллицы, и русские буквы подменялись системным шрифтом. */
/* Forum — cyrillic */
@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/forum-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Forum — latin-ext */
@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/forum-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Forum — latin */
@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/forum-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Jost — cyrillic */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Jost — latin-ext */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost — latin */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Цвета */
  --gold: #b5834a;
  --gold-dark: #8d6334;
  --gold-soft: #e8dcc9;
  --ink: #1f2124;
  --text: #6d6a66;
  --muted: #8a8781;
  --white: #ffffff;
  --sand: #f4f1ea;
  --line: #e6e2da;
  --line-strong: #d8d4cc;
  --dark: #1f2124;
  --dark-2: #2a2c30;
  --dark-line: #36383c;
  --on-dark: #b9b5ae;
  --on-dark-muted: #9d9993;
  --overlay: 20, 22, 24;

  /* Шрифты */
  --serif: "Forum", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Сетка */
  --container: 1480px;
  --gutter: clamp(16px, 4vw, 60px);
  --section-y: clamp(72px, 8vw, 110px);
  --topbar-h: 58px;
  --nav-h: 96px;

  /* Движение */
  --ease: cubic-bezier(.2, .65, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 50px -24px rgba(31, 33, 36, .28);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
html.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-dark); }

::selection { background: rgba(181, 131, 74, .25); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 18px; background: var(--gold); color: var(--white);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }

/* Обёртка для фото с плавным увеличением при наведении */
.media { position: relative; overflow: hidden; background: var(--line); }
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s;
}

/* ---------- Типографика ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px;
  font-size: 14px; line-height: 1.4; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; flex: none;
  width: 44px; height: 1px; background: var(--gold);
}
.eyebrow--sm { font-size: 13px; letter-spacing: .22em; gap: 12px; margin-bottom: 14px; }
.eyebrow--sm::before { width: 32px; }
.eyebrow--plain::before { display: none; }
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow--center::before { display: none; }
.eyebrow--light { color: var(--gold-soft); }

.h2 {
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.2vw + 16px, 48px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: var(--white); }
.accent { color: var(--gold); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 46px;
}
.section-head .h2 { margin-bottom: 0; }
.section-head__note { max-width: 420px; margin: 0; font-size: 15px; color: var(--muted); }

.price { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--gold); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 14px 36px;
  border: 1px solid transparent;
  font-size: 15px; line-height: 1.2; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--gold:hover {
  background: var(--gold-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(141, 99, 52, .8);
}
.btn--gold:hover::after { transform: translateX(120%); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn--outline-light {
  min-height: 52px; padding: 13px 32px; font-size: 14px;
  border-color: var(--line-strong); color: var(--ink); flex: none;
}
.btn--outline-light:hover { border-color: var(--gold); background: var(--gold); color: var(--white); transform: translateY(-2px); }

.btn--outline-gold {
  min-height: 46px; padding: 10px 24px; font-size: 14px; letter-spacing: .1em;
  border-color: var(--gold); color: var(--gold);
}
.btn--outline-gold:hover { background: var(--gold); color: var(--white); }

.btn[disabled] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 34px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  transition: color .25s;
}
.link-arrow::after {
  content: ""; width: 18px; height: 1px; background: currentColor;
  transition: width .35s var(--ease-out);
}
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { width: 30px; }

.square-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: var(--white);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.square-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.square-btn:hover { background: var(--gold); border-color: var(--gold); }
.square-btn[data-review-prev]:hover svg { transform: translateX(-3px); }
.square-btn[data-review-next]:hover svg { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 100;
}

.topbar {
  height: var(--topbar-h);
  background: var(--dark);
  color: var(--on-dark);
  font-size: 15px;
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__contacts { display: flex; align-items: center; gap: 40px; min-width: 0; }
.topbar__item { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--on-dark); }
.topbar__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__item--phone { color: var(--white); flex: none; }
.topbar__item:hover { color: var(--gold); }
.topbar__icon { width: 17px; height: 17px; flex: none; fill: var(--gold); transition: transform .35s var(--ease-out); }
.topbar__item:hover .topbar__icon { transform: scale(1.18) rotate(-8deg); }
.topbar__callback {
  display: flex; align-items: center; gap: 10px; flex: none;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
}
.topbar__callback span { border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar__callback:hover { color: var(--gold); }
.topbar__callback:hover span { border-color: var(--gold); }
.topbar__callback:hover .topbar__icon { transform: rotate(-12deg) scale(1.12); }
.topbar__wave { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.topbar__callback:hover .topbar__wave { animation: ring .9s var(--ease-out) infinite; }
@keyframes ring { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s;
}
.site-header.is-stuck .navbar { box-shadow: 0 10px 30px -18px rgba(31, 33, 36, .35); }
.navbar__inner { height: var(--nav-h); display: flex; align-items: center; gap: 40px; }

.logo { flex: none; position: relative; z-index: 2; }
.logo img { width: auto; height: 44px; transition: opacity .3s; }
.logo:hover img { opacity: .8; }

.menu { margin-left: auto; }
.menu__list { display: flex; align-items: center; gap: 26px; }
.menu__link {
  position: relative; display: block; padding: 6px 0;
  font-size: 16px; letter-spacing: .04em; white-space: nowrap;
  color: #3f4145;
}
.menu__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.menu__link:hover,
.menu__link.is-active { color: var(--gold); }
.menu__link:hover::after,
.menu__link.is-active::after { transform: scaleX(1); }
.menu__footer { display: none; }

.navbar__cta { flex: none; }

.burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out), opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1439.98px) {
  .navbar__inner { gap: 28px; }
  .logo img { height: 38px; }
  .menu__list { gap: 20px; }
  .menu__link { font-size: 15px; }
}

/* Мобильное меню */
@media (max-width: 1279.98px) {
  :root { --nav-h: 80px; }
  .burger { display: flex; }
  .navbar__cta { margin-left: auto; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
    padding: calc(var(--topbar-h) + var(--nav-h) + 24px) var(--gutter) 32px;
    background: var(--white);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .menu__link { font-family: var(--serif); font-size: clamp(24px, 5vw, 32px); letter-spacing: 0; color: var(--ink); padding: 8px 0; }
  .menu__link::after { bottom: 4px; }
  .menu.is-open .menu__list li { animation: menu-in .5s var(--ease-out) both; }
  .menu.is-open .menu__list li:nth-child(2) { animation-delay: .04s; }
  .menu.is-open .menu__list li:nth-child(3) { animation-delay: .08s; }
  .menu.is-open .menu__list li:nth-child(4) { animation-delay: .12s; }
  .menu.is-open .menu__list li:nth-child(5) { animation-delay: .16s; }
  .menu.is-open .menu__list li:nth-child(6) { animation-delay: .2s; }
  .menu.is-open .menu__list li:nth-child(7) { animation-delay: .24s; }
  .menu__footer {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: auto; padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .menu__phone { font-family: var(--serif); font-size: 26px; color: var(--ink); }
  .menu__max { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  html.is-locked .cw { opacity: 0; pointer-events: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 767.98px) {
  :root { --topbar-h: 44px; --nav-h: 68px; }
  .topbar { font-size: 14px; }
  .topbar__item--address { display: none; }
  .topbar__callback { font-size: 13px; letter-spacing: .1em; }
  .logo img { height: 30px; }
}
@media (max-width: 599.98px) {
  .navbar__cta { display: none; }
  .burger { margin-left: auto; }
}
@media (max-width: 379.98px) {
  .topbar__callback span { display: none; }
  .logo img { height: 26px; }
}

/* ---------- Герой со слайдером ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s 1.4s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(var(--overlay), .55), rgba(var(--overlay), .35) 45%, rgba(var(--overlay), .62));
}
.hero__content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  padding-block: 80px 190px;
  text-align: center;
}
.hero__eyebrow { margin: 0; font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); }
.hero__line { display: block; width: 110px; height: 1px; margin: 22px 0 26px; background: var(--gold); }
.hero__title {
  max-width: 1100px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw + 12px, 74px);
  line-height: 1.1;
  color: var(--white);
  text-wrap: balance;
  hyphens: manual;
}
.hero__lead { max-width: 900px; margin: 24px 0 0; font-size: clamp(18px, .6vw + 14px, 23px); font-weight: 300; color: rgba(255, 255, 255, .9); }
.hero__features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  margin-top: 28px;
  font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft);
}
.hero__features li { display: flex; align-items: center; gap: 26px; }
.hero__features li + li::before { content: "·"; color: var(--gold); }

.hero__arrow {
  position: absolute; top: 50%; z-index: 4;
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-top: -60px;
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--white);
  transition: background-color .3s, border-color .3s, transform .35s var(--ease-out);
}
.hero__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__arrow--prev { left: var(--gutter); }
.hero__arrow--next { right: var(--gutter); }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero__arrow--prev:hover { transform: translateX(-4px); }
.hero__arrow--next:hover { transform: translateX(4px); }

.hero__pager {
  position: absolute; left: 50%; bottom: 150px; z-index: 4;
  display: flex; align-items: center; gap: 22px;
  transform: translateX(-50%);
  font-size: 14px; letter-spacing: .14em; color: rgba(255, 255, 255, .75);
}
.hero__counter b { font-weight: 500; color: var(--white); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  position: relative; width: 34px; height: 20px;
}
.hero__dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .3s;
}
.hero__dot::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 0;
  background: var(--gold);
}
.hero__dot:hover::before { background: rgba(255, 255, 255, .7); }
.hero__dot.is-active::after { animation: dot-progress var(--hero-delay, 6500ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes dot-progress { to { width: 100%; } }

@media (max-width: 1099.98px) {
  .hero__content { padding-block: 70px 120px; }
  .hero__pager { bottom: 70px; }
  .hero__arrow { display: none; }
}
@media (max-width: 767.98px) {
  .hero { min-height: 560px; }
  .hero__eyebrow { font-size: 13px; letter-spacing: .24em; }
  .hero__line { margin: 18px 0 20px; }
  .hero__features { font-size: 13px; letter-spacing: .12em; gap: 6px 18px; }
  .hero__features li { gap: 18px; }
  .hero__counter { display: none; }
  .hero__dot { width: 26px; }
}

/* ---------- Бронирование ---------- */
.booking-section { display: flow-root; background: var(--sand); }
.booking {
  position: relative; z-index: 5;
  margin: -118px auto 0;
  max-width: 1360px;
  padding: 28px 34px 22px;
  background: var(--white);
  box-shadow: 0 -18px 60px rgba(var(--overlay), .18);
}
.booking__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: end; gap: 22px;
}
.field { display: block; min-width: 0; }
.field__label {
  display: block; margin-bottom: 9px;
  font-size: 13px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.field__control {
  display: block; width: 100%; height: 46px;
  padding: 0 2px;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink); font-size: 16px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field__control:hover { border-color: var(--line-strong); }
.field__control:focus { outline: none; border-color: var(--gold); }
.field__control:focus-visible { outline: none; box-shadow: 0 1px 0 var(--gold); }
.field__control::placeholder { color: var(--muted); opacity: 1; }
select.field__control {
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23c3bfb7'/%3E%3C/svg%3E") right center / 18px no-repeat;
  text-overflow: ellipsis;
}
input[type="date"].field__control { min-width: 0; padding-right: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; transition: opacity .2s; }
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.booking__submit { min-height: 62px; padding-inline: 40px; white-space: nowrap; }
.booking__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 14px; }
.booking__note { margin: 0; font-size: 14px; color: var(--muted); }
.booking__note a { border-bottom: 1px solid rgba(181, 131, 74, .35); white-space: nowrap; }

.form-status:empty { display: none; }
.form-status { padding: 10px 16px; background: var(--sand); font-size: 15px; line-height: 1.4; }
.footer .form-status { background: var(--white); margin-top: 12px; }

@media (max-width: 1279.98px) {
  .booking__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking__grid > :nth-child(3),
  .booking__grid > :nth-child(4),
  .booking__grid > :nth-child(5) { grid-column: span 2; }
}
@media (max-width: 1099.98px) {
  .booking { margin-top: -48px; padding: 24px; }
}
@media (max-width: 767.98px) {
  .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .booking__grid > * { grid-column: span 2 !important; }
  .booking__grid > :nth-child(1),
  .booking__grid > :nth-child(2) { grid-column: span 1 !important; }
  .booking { padding: 22px 18px; }
  .booking__submit { width: 100%; }
}

/* ---------- Удобства ---------- */
.amenities { background: var(--sand); padding-block: 64px 44px; }
.amenities__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; }
.amenity { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; cursor: default; }
.amenity__icon {
  position: relative;
  display: grid; place-items: center;
  width: 84px; height: 84px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, box-shadow .4s;
}
.amenity__icon::after {
  content: ""; position: absolute; inset: -7px;
  border: 1px dashed var(--gold); border-radius: 50%;
  opacity: 0; transform: scale(.85) rotate(0);
  transition: opacity .4s, transform .8s var(--ease-out);
}
.amenity__icon svg {
  width: 44px; height: 44px;
  fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s, transform .5s var(--ease-out);
}
.amenity__icon .fill { fill: var(--ink); stroke: none; transition: fill .4s; }
.amenity__title { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); transition: color .3s; }
.amenity:hover .amenity__icon {
  transform: translateY(-6px);
  background: var(--white); border-color: var(--gold);
  box-shadow: 0 16px 30px -16px rgba(141, 99, 52, .55);
}
.amenity:hover .amenity__icon::after { opacity: 1; transform: scale(1) rotate(90deg); }
.amenity:hover .amenity__icon svg { stroke: var(--gold); transform: scale(1.06); }
.amenity:hover .amenity__icon .fill { fill: var(--gold); }
.amenity:hover .amenity__title { color: var(--gold-dark); }

@media (max-width: 1023.98px) {
  .amenities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
}
@media (max-width: 559.98px) {
  .amenities { padding-top: 48px; }
  .amenities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .amenity__icon { width: 72px; height: 72px; }
  .amenity__icon svg { width: 38px; height: 38px; }
  .amenity__title { font-size: 17px; }
}

/* ---------- Об отеле ---------- */
.about { padding-top: 20px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about__media { position: relative; padding-bottom: 90px; }
.about__photo { height: clamp(380px, 42vw, 620px); }
.about__photo-small {
  position: absolute; right: -40px; bottom: 0;
  width: min(340px, 55%); aspect-ratio: 34 / 26;
  border: 10px solid var(--sand);
  box-sizing: content-box;
}
.about__media:hover .about__photo img { transform: scale(1.04); }
.about__photo-small:hover img { transform: scale(1.08); }
.about__text > p { margin-bottom: 20px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 20px 40px;
  margin: 34px 0 0; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats__item { display: flex; flex-direction: column; }
.stats__value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--ink); }
.stats__label { margin: 6px 0 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 1279.98px) {
  .about__photo-small { right: 0; }
}
@media (max-width: 1023.98px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about__media { padding-bottom: 70px; }
}
@media (max-width: 559.98px) {
  .about__photo { height: 340px; }
  .about__photo-small { width: 58%; border-width: 6px; }
  .stats { grid-template-columns: repeat(2, minmax(0, auto)); gap: 18px 28px; }
  .stats__value { font-size: 32px; }
  .stats__label { font-size: 12px; letter-spacing: .1em; }
}

/* ---------- Карточки номеров ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.room-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.room-card__media { aspect-ratio: 4 / 3; }
.room-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.room-card__title { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); transition: color .3s; }
.room-card__desc { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.room-card__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.room-card__desc { padding-bottom: 20px; }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.room-card:hover .room-card__media img { transform: scale(1.07); }
.room-card:hover .room-card__title { color: var(--gold-dark); }

@media (max-width: 1199.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 34px; }
}
@media (max-width: 559.98px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Категории ---------- */
.categories__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.categories .h2 { margin-bottom: 30px; }

.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tab {
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  font-size: 15px; line-height: 1.4; color: var(--text);
  transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--ease-out);
}
.tab:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.tab.is-active { background: var(--white); border-color: var(--gold); color: var(--ink); }

.tab-panel__title { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(22px, 1vw + 14px, 26px); line-height: 1.25; color: var(--ink); }
.tab-panel > p { margin-bottom: 26px; }
.tab-panel.is-active { animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.room-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px;
  padding-top: 24px; border-top: 1px solid var(--line);
  counter-reset: room;
}
.room-list li { display: flex; flex-direction: column; counter-increment: room; color: var(--ink); line-height: 1.45; }
.room-list li span::before { content: counter(room) ". "; }
.room-list b { margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--gold); }

.carousel { position: relative; aspect-ratio: 1.3; max-height: 560px; width: 100%; overflow: hidden; background: var(--line); }
.carousel__group { position: absolute; inset: 0; visibility: hidden; }
.carousel__group.is-active { visibility: visible; }
.carousel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease-out);
}
.carousel__group.is-active .carousel__img.is-active { opacity: 1; transform: none; }
.carousel__arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-top: -24px;
  background: rgba(255, 255, 255, .88); color: var(--ink);
  opacity: 0;
  transition: opacity .3s, background-color .3s, color .3s, transform .35s var(--ease-out);
}
.carousel__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }
.carousel:hover .carousel__arrow,
.carousel__arrow:focus-visible { opacity: 1; }
.carousel__arrow:hover { background: var(--gold); color: var(--white); }
.carousel__dots { position: absolute; left: 50%; bottom: 22px; z-index: 2; display: flex; gap: 4px; transform: translateX(-50%); }
.carousel__dot { display: grid; place-items: center; width: 24px; height: 24px; }
.carousel__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .3s, transform .3s; }
.carousel__dot:hover::before { background: rgba(255, 255, 255, .85); transform: scale(1.2); }
.carousel__dot.is-active::before { background: var(--white); transform: scale(1.2); }

@media (hover: none) {
  .carousel__arrow { opacity: 1; }
}
@media (max-width: 1023.98px) {
  .categories__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 559.98px) {
  .room-list { grid-template-columns: minmax(0, 1fr); }
  .tab { padding: 10px 16px; font-size: 14px; }
  .carousel__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .carousel__arrow--prev { left: 10px; }
  .carousel__arrow--next { right: 10px; }
}

/* ---------- Цены ---------- */
.season-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.season {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text);
  transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--ease-out);
}
.season:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.season.is-active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.season.is-current::after { content: " · сейчас"; }

.price-table { border: 1px solid var(--line); overflow-x: auto; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th {
  font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: var(--sand);
  white-space: nowrap;
}
.price-table thead th[data-col] { text-align: right; }
.price-table tbody th { font-weight: 400; color: var(--ink); }
.price-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.price-table tbody tr { transition: background-color .25s; }
.price-table tbody tr:hover { background: #fbfaf7; }

.price-table[data-season="1"] [data-col="1"], .price-table[data-season="1"] td:nth-of-type(1),
.price-table[data-season="2"] [data-col="2"], .price-table[data-season="2"] td:nth-of-type(2),
.price-table[data-season="3"] [data-col="3"], .price-table[data-season="3"] td:nth-of-type(3),
.price-table[data-season="4"] [data-col="4"], .price-table[data-season="4"] td:nth-of-type(4),
.price-table[data-season="5"] [data-col="5"], .price-table[data-season="5"] td:nth-of-type(5),
.price-table[data-season="6"] [data-col="6"], .price-table[data-season="6"] td:nth-of-type(6) {
  background: rgba(181, 131, 74, .09);
  color: var(--ink);
}
.price-table td::after { content: " ₽"; color: var(--muted); }

@media (max-width: 1279.98px) {
  .price-table th, .price-table td { padding: 14px 14px; }
  .price-table thead th { letter-spacing: .08em; }
}
@media (max-width: 1099.98px) {
  .price-table thead th[data-col],
  .price-table td { display: none; }
  .price-table[data-season="1"] [data-col="1"], .price-table[data-season="1"] td:nth-of-type(1),
  .price-table[data-season="2"] [data-col="2"], .price-table[data-season="2"] td:nth-of-type(2),
  .price-table[data-season="3"] [data-col="3"], .price-table[data-season="3"] td:nth-of-type(3),
  .price-table[data-season="4"] [data-col="4"], .price-table[data-season="4"] td:nth-of-type(4),
  .price-table[data-season="5"] [data-col="5"], .price-table[data-season="5"] td:nth-of-type(5),
  .price-table[data-season="6"] [data-col="6"], .price-table[data-season="6"] td:nth-of-type(6) {
    display: table-cell; background: none;
  }
  .price-table td { font-family: var(--serif); font-size: 19px; color: var(--gold) !important; }
  .price-table th, .price-table td { padding: 14px 14px; }
  .price-table tbody th { font-size: 15px; line-height: 1.45; }
}
@media (max-width: 559.98px) {
  .season { padding: 8px 12px; font-size: 14px; }
}

/* ---------- Территория ---------- */
.features { display: flex; flex-direction: column; gap: 24px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  transition: box-shadow .5s var(--ease-out), border-color .4s;
}
.feature__media { min-height: 360px; }
.feature__media img { position: absolute; inset: 0; }
.feature__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 58px) clamp(22px, 4.4vw, 64px); }
.feature__title { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(24px, 1.2vw + 14px, 32px); line-height: 1.2; color: var(--ink); }
.feature--reverse .feature__media { order: 2; }
.feature:hover { box-shadow: var(--shadow); border-color: transparent; }
.feature:hover .feature__media img { transform: scale(1.05); }

@media (max-width: 899.98px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Фотогалерея ---------- */
#gallery,
.prices + #territory { padding-top: 0; } /* без двойного отступа, только когда «Территория» идёт сразу после цен */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(160px, 16vw, 250px);
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery__item { display: block; cursor: zoom-in; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(var(--overlay), .35);
  opacity: 0; transition: opacity .4s;
}
.gallery__item::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 18px 1px no-repeat,
    linear-gradient(#fff, #fff) center / 1px 18px no-repeat;
  opacity: 0; transform: scale(.6);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.gallery__item:hover::before { opacity: 1; }
.gallery__item:hover::after { opacity: 1; transform: scale(1); }
.gallery__item:hover img { transform: scale(1.07); }

@media (max-width: 1023.98px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 30vw, 240px); gap: 12px; }
}
@media (max-width: 559.98px) {
  .gallery { gap: 8px; }
}

/* ---------- Акция ---------- */
.promo { background: var(--dark); padding-block: clamp(56px, 6vw, 72px); }
.promo .eyebrow { margin-bottom: 16px; letter-spacing: .24em; }
.promo__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.promo__text { margin: 0; font-family: var(--serif); font-size: clamp(24px, 1.1vw + 16px, 36px); line-height: 1.25; color: var(--white); }
.promo .btn-row { margin-top: 28px; }
.promo__phone { color: var(--on-dark); font-size: 17px; }
.promo__phone:hover { color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.countdown__cell {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 6px;
  border: 1px solid var(--dark-line);
  transition: border-color .3s;
}
.countdown__cell:hover { border-color: var(--gold); }
.countdown__num { font-family: var(--serif); font-size: clamp(32px, 2vw + 16px, 42px); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.countdown__label { margin-top: 8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.promo__caption { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--on-dark-muted); }
.promo.is-over .countdown { display: none; }

@media (max-width: 1023.98px) {
  .promo__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 479.98px) {
  .countdown { gap: 8px; }
  .countdown__label { font-size: 11px; letter-spacing: .1em; }
}

/* ---------- Отзывы ---------- */
.reviews { position: relative; padding-top: 90px; background: var(--dark); color: var(--white); }
.reviews__bg { position: absolute; inset: 0; overflow: hidden; }
.reviews__bg img { width: 100%; height: 100%; object-fit: cover; }
.reviews__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 30, .76); }
.reviews__inner { position: relative; }
.reviews .h2 { margin: 18px 0 34px; text-align: center; font-size: clamp(30px, 2.4vw + 16px, 52px); }
.reviews .eyebrow { margin-bottom: 0; letter-spacing: .26em; }

.review-slider { max-width: 1000px; margin: 0 auto; text-align: center; }
.review-slider__viewport { overflow: hidden; transition: height .5s var(--ease-out); }
.review-slider__track { display: flex; align-items: flex-start; transition: transform .7s var(--ease-out); }
.review { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.review__author { order: -1; display: flex; flex-direction: column; align-items: center; }
.review__author > span:last-child { display: flex; flex-direction: column; align-items: center; }
.review__avatar {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin-bottom: 18px;
  border-radius: 50%; background: var(--gold);
  font-family: var(--serif); font-size: 28px; color: var(--white);
}
.review__author b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--white); }
.review__author small { margin-top: 6px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.review__stars { margin-top: 16px; font-size: 18px; letter-spacing: 4px; color: var(--gold); }
.review__text { margin: 18px 0 0; font-size: clamp(17px, .5vw + 14px, 20px); line-height: 1.8; font-weight: 300; color: rgba(255, 255, 255, .92); }
.review__text::before { content: "«"; }
.review__text::after { content: "»"; }

.review-slider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.review-slider__count { min-width: 70px; font-size: 14px; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.review-slider__count b { font-weight: 500; color: var(--white); }
.reviews__all {
  display: inline-block; margin-top: 22px;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(232, 220, 201, .35);
  transition: color .3s, border-color .3s;
}
.reviews__all:hover { color: var(--white); border-color: var(--gold); }

.highlights {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;
  margin-top: 64px;
  transform: translateY(80px);
}
.highlight { background: var(--white); color: var(--text); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.highlight__media { aspect-ratio: 16 / 11; }
.highlight__body { padding: 30px 32px 34px; text-align: center; }
.highlight__title { font-family: var(--serif); font-size: 26px; line-height: 1.25; color: var(--ink); }
.highlight__body p { margin: 12px 0 0; }
.highlight:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.highlight:hover img { transform: scale(1.06); }

/* Карточки под отзывами на 80px заходят в следующий блок — даём ему место сверху */
.reviews + .section { padding-top: 190px; }

@media (max-width: 1023.98px) {
  .reviews { padding-bottom: 72px; }
  .highlights { grid-template-columns: minmax(0, 1fr); gap: 20px; transform: none; margin-top: 56px; }
  .highlight { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .highlight__media { aspect-ratio: auto; min-height: 220px; }
  .highlight__media img { position: absolute; inset: 0; }
  .highlight__body { display: flex; flex-direction: column; justify-content: center; text-align: left; }
  .reviews + .section { padding-top: var(--section-y); }
}
@media (max-width: 599.98px) {
  .reviews { padding-top: 72px; }
  .review__avatar { width: 68px; height: 68px; font-size: 24px; }
  .review__author b { font-size: 21px; }
  .review__author small { font-size: 12px; letter-spacing: .12em; }
  .review__text { line-height: 1.7; }
  .highlight { display: block; }
  .highlight__media { aspect-ratio: 16 / 10; min-height: 0; }
  .highlight__body { padding: 24px 22px 28px; }
  .highlight__title { font-size: 23px; }
}

/* ---------- Расположение ---------- */
.location__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 70px; align-items: center; }
.location .h2 { margin-bottom: 22px; }
.location__text > p { margin-bottom: 28px; }
.distances { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 16px; }
.distances span { color: var(--ink); }
.distances b { flex: none; font-weight: 400; }
.location .btn-row { margin-top: 30px; }
.location__hours { color: var(--ink); }
.map { padding: 10px; border: 1px solid var(--line); background: var(--white); transition: box-shadow .5s var(--ease-out); }
.map:hover { box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 480px; border: 0; background: var(--sand); }

@media (max-width: 1023.98px) {
  .location__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .map iframe { height: 420px; }
}
@media (max-width: 559.98px) {
  .map { padding: 6px; }
  .map iframe { height: 360px; }
}

/* ---------- Вопросы и ответы ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 90px; align-items: start; }
.faq .h2 { font-size: clamp(30px, 2.4vw + 16px, 52px); line-height: 1.1; margin-bottom: 16px; }
.faq__aside > p { margin-bottom: 40px; }
.call-card { padding: 34px 36px; background: var(--dark); }
.call-card__label { margin: 0; font-size: 15px; color: var(--on-dark); }
.call-card__phone { display: inline-block; margin: 10px 0 12px; font-family: var(--serif); font-size: clamp(28px, 1.2vw + 18px, 36px); line-height: 1.1; color: var(--white); }
.call-card__phone:hover { color: var(--gold); }
.call-card__mail { display: block; color: var(--gold); }
.call-card__mail:hover { color: var(--gold-soft); }

.accordion__item { border-top: 1px solid var(--line); }
.accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  width: 100%; padding: 30px 0;
  transition: color .3s, padding .45s var(--ease-out);
  text-align: left;
  font-family: var(--serif); font-size: clamp(20px, .8vw + 14px, 26px); line-height: 1.3; color: var(--ink);
}
.accordion__item.is-open .accordion__btn { padding-bottom: 16px; }
.accordion__btn:hover { color: var(--gold-dark); }
.accordion__icon {
  position: relative; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  transition: background-color .35s, border-color .35s, transform .5s var(--ease-out);
}
.accordion__icon::before,
.accordion__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: var(--muted);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__btn:hover .accordion__icon { border-color: var(--gold); }
.accordion__btn:hover .accordion__icon::before,
.accordion__btn:hover .accordion__icon::after { background: var(--gold); }
.accordion__item.is-open .accordion__icon { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.accordion__item.is-open .accordion__icon::before { background: var(--white); }
.accordion__item.is-open .accordion__icon::after { background: var(--white); transform: rotate(0deg); }

.accordion__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease-out); }
.accordion__inner { overflow: hidden; }
.accordion__inner p { max-width: 820px; padding-bottom: 30px; margin: 0; }
.js .accordion__item:not(.is-open) .accordion__panel { grid-template-rows: 0fr; }
.js .accordion__item:not(.is-open) .accordion__inner { visibility: hidden; transition: visibility 0s .45s; }

@media (max-width: 1023.98px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .faq__aside > p { margin-bottom: 28px; }
}
@media (max-width: 559.98px) {
  .accordion__btn { padding: 22px 0; gap: 18px; }
  .accordion__icon { width: 38px; height: 38px; }
  .accordion__inner p { padding-bottom: 22px; }
  .accordion__item.is-open .accordion__btn { padding-bottom: 12px; }
  .call-card { padding: 26px 22px; }
}

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(64px, 7vw, 90px) 0 34px; }
.footer a { color: inherit; }
.footer a:hover { color: var(--gold); }
.footer__cta {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 80px; align-items: center;
  padding-bottom: clamp(56px, 6vw, 80px); border-bottom: 1px solid var(--dark-line);
}
.footer .eyebrow { margin-bottom: 22px; letter-spacing: .3em; }
.footer .h2 { margin: 0; font-size: clamp(30px, 2.3vw + 16px, 50px); line-height: 1.2; }
.callback__label { display: block; margin-bottom: 10px; font-size: 15px; color: var(--on-dark); }
.callback__row { display: flex; }
.callback__input {
  flex: 1; min-width: 0; height: 62px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 0;
  background: var(--dark-2); color: var(--white);
  transition: border-color .3s, background-color .3s;
}
.callback__input::placeholder { color: var(--on-dark-muted); opacity: 1; }
.callback__input:hover { border-color: var(--dark-line); }
.callback__input:focus { outline: none; border-color: var(--gold); background: #2e3035; }
.callback__btn { flex: none; min-height: 62px; padding-inline: 34px; font-size: 14px; letter-spacing: .16em; }
/* Галочка согласия на обработку персональных данных */
.consent { display: flex; align-items: flex-start; gap: 14px; max-width: 560px; margin-top: 18px; cursor: pointer; }
.consent__box {
  flex: none; position: relative;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1px solid #5a5c60; border-radius: 0;
  background: var(--dark-2);
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.consent__box::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid var(--white); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease-out);
}
.consent__box:checked { background: var(--gold); border-color: var(--gold); }
.consent__box:checked::after { transform: rotate(45deg) scale(1); }
.consent:hover .consent__box { border-color: var(--gold); }
.consent__box:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent__text { font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); }
.footer .consent__text a { color: var(--on-dark); border-bottom: 1px solid #6c6864; transition: color .25s, border-color .25s; }
.footer .consent__text a:hover { color: var(--gold); border-color: var(--gold); }

.footer__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 60px; padding-top: 70px; }
.footer__brand img { width: auto; height: 54px; margin-bottom: 22px; }
.footer__brand p { margin-bottom: 20px; }
/* Плашки Яндекс Бизнеса: рейтинг и «Хорошее место» */
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.footer__badges iframe {
  flex: none; width: 150px; height: 50px;
  border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.footer__badges iframe:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
.footer__phones { color: var(--white); }
.footer__mail { display: inline-block; }
.footer__title { margin-bottom: 20px; font-family: var(--serif); font-size: 21px; color: var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { position: relative; display: inline-flex; align-items: center; transition: color .25s, transform .35s var(--ease-out); }
.footer__links a::before {
  content: ""; width: 0; height: 1px; margin-right: 0; background: var(--gold);
  transition: width .35s var(--ease-out), margin-right .35s var(--ease-out);
}
.footer__links a:hover { transform: translateX(2px); }
.footer__links a:hover::before { width: 14px; margin-right: 10px; }
.footer__col > p { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--dark-line);
  font-size: 14px;
  transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--ease-out);
}
.chip img { width: 18px; height: 18px; }
.footer .chip:hover { border-color: var(--gold); color: var(--white); background: rgba(181, 131, 74, .12); transform: translateY(-2px); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__legal a { border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.footer .footer__legal a:hover { border-color: var(--gold); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--dark-line);
  font-size: 15px;
}

@media (max-width: 1023.98px) {
  .footer__cta { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 52px; }
  .footer__brand img { height: 44px; }
}
@media (max-width: 479.98px) {
  .callback__row { flex-direction: column; gap: 10px; }
  .callback__btn { width: 100%; }
}

/* ---------- Просмотр фото ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 88px;
  background: rgba(15, 16, 18, .94);
  opacity: 0; transition: opacity .35s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transition: opacity .3s, transform .45s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0; transform: scale(.98); }
.lightbox__caption { margin-top: 16px; font-size: 15px; letter-spacing: .06em; color: var(--on-dark); text-align: center; }
.lightbox__close,
.lightbox__arrow {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .3); color: var(--white);
  transition: background-color .3s, border-color .3s, transform .35s var(--ease-out);
}
.lightbox__close svg,
.lightbox__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__close:hover { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.lightbox__arrow { top: 50%; margin-top: -26px; }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }
.lightbox__arrow:hover { background: var(--gold); border-color: var(--gold); }

@media (max-width: 767.98px) {
  .lightbox { padding: 70px 12px 90px; }
  .lightbox__img { max-height: calc(100vh - 200px); }
  .lightbox__arrow { top: auto; bottom: 20px; margin: 0; }
  .lightbox__arrow--prev { left: calc(50% - 64px); }
  .lightbox__arrow--next { right: calc(50% - 64px); }
}

/* ---------- Плавное появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__controls, .hero__pager, .lightbox { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Дополнительно ---------- */
.hero, .carousel, .review-slider__viewport, .lightbox { touch-action: pan-y; }
.field.is-flash .field__control { animation: field-flash 1.6s var(--ease-out); }
@keyframes field-flash {
  0%, 60% { border-color: var(--gold); box-shadow: 0 2px 0 var(--gold); }
  100% { border-color: var(--line); box-shadow: none; }
}

/* Подсказки плавающих кнопок связи (contact-widget.js) — в шрифте и цвете сайта */
.cw .cw__label { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .06em; background: var(--dark); }
.cw .cw__label::after { border-left-color: var(--dark); }

/* ---------- Страницы-документы (правила, политика, согласие) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(52px, 6vw, 80px);
  background: var(--dark); color: var(--white);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 30, .8); }
.page-hero__inner { position: relative; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 22px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.breadcrumbs a { color: var(--gold-soft); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden] { color: var(--gold); }
.page-hero__title { max-width: 900px; font-family: var(--serif); font-size: clamp(32px, 2.8vw + 16px, 58px); line-height: 1.12; color: var(--white); text-wrap: balance; }
.page-hero__meta { margin: 20px 0 0; font-size: 15px; color: var(--on-dark); }

.doc-layout {
  display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 90px); align-items: start;
  padding-block: var(--section-y);
}
.doc-toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.doc-toc__title { margin-bottom: 18px; }
.doc-toc ol { counter-reset: toc; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.doc-toc li { counter-increment: toc; }
.doc-toc ol a {
  position: relative; display: block;
  padding: 8px 0 8px 20px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 15px; line-height: 1.45; color: var(--text);
  transition: color .25s, border-color .25s, padding-left .35s var(--ease-out);
}
.doc-toc ol a::before { content: counter(toc) ". "; color: var(--gold); }
.doc-toc ol a:hover { color: var(--ink); border-left-color: var(--gold); padding-left: 26px; }
.doc-toc ol a.is-active { color: var(--ink); border-left-color: var(--gold); }
.doc-toc__aside { margin-top: 28px; padding: 24px 26px; background: var(--sand); font-size: 15px; line-height: 1.6; }
.doc-toc__aside a { display: inline-block; margin-top: 6px; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.doc-toc__aside a[href^="mailto"] { font-size: 17px; }
.doc-toc__aside a:hover { color: var(--gold); }

.doc { max-width: 860px; color: var(--text); }
.doc > :first-child { margin-top: 0; }
.doc h2 {
  margin: 60px 0 20px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(24px, 1.2vw + 16px, 32px); line-height: 1.25; color: var(--ink);
}
.doc h2:first-child { padding-top: 0; border-top: 0; }
.doc h3 { margin: 30px 0 12px; font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.doc p { margin: 0 0 16px; }
.doc a { border-bottom: 1px solid rgba(181, 131, 74, .35); }
.doc a:hover { border-color: var(--gold-dark); }
.doc ul, .doc ol { margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.doc ul li { position: relative; padding-left: 28px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1px; background: var(--gold); }
.doc ol { counter-reset: item; }
.doc ol li { position: relative; padding-left: 36px; counter-increment: item; }
.doc ol li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; font-family: var(--serif); color: var(--gold); }
.doc strong { font-weight: 500; color: var(--ink); }
.doc__lead { font-size: 19px; line-height: 1.7; color: var(--ink); }
.doc__note { margin: 24px 0; padding: 22px 26px; border-left: 2px solid var(--gold); background: var(--sand); color: var(--ink); }
.doc__note p:last-child { margin-bottom: 0; }
.requisites { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); margin: 0 0 20px; border-top: 1px solid var(--line); }
.requisites dt, .requisites dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.requisites dt { padding-right: 20px; color: var(--muted); font-size: 15px; }
.requisites dd { color: var(--ink); }
.doc__updated { margin-top: 48px; font-size: 15px; color: var(--muted); }

@media (max-width: 1023.98px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; padding: 24px 22px; background: var(--sand); }
  .doc-toc ol { border-left: 0; }
  .doc-toc ol a { padding: 6px 0; margin: 0; border: 0; }
  .doc-toc ol a:hover { padding-left: 6px; }
  .doc-toc__aside { display: none; }
}
@media (max-width: 559.98px) {
  .requisites { grid-template-columns: minmax(0, 1fr); }
  .requisites dt { padding-bottom: 0; border-bottom: 0; }
  .doc__lead { font-size: 17px; }
}

/* Иконка MAX в верхней панели — белая, при наведении золотая */
.topbar__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.topbar__max {
  display: grid; place-items: center;
  width: 32px; height: 32px; margin: -6px 0;
  color: var(--white);
  transition: color .3s, transform .35s var(--ease-out);
}
.topbar__max svg { width: 19px; height: 19px; fill: currentColor; }
.topbar__max:hover { color: var(--gold); transform: scale(1.15) rotate(-8deg); }
@media (max-width: 767.98px) {
  .topbar__actions { gap: 14px; }
  .topbar__max svg { width: 17px; height: 17px; }
}

/* Нижняя строка подвала не уходит под плавающие кнопки связи (contact-widget) */
.footer__bottom { padding-right: 84px; }
@media (max-width: 767.98px) {
  .footer__bottom { padding-right: 66px; }
}
