:root {
  --bg: #efe7da;
  --ink: #1c1915;
  --muted: #5e564c;
  --card: #fffaf4;
  --line: #e4d8c8;
  --deep: #10241f;
  --serif: "Literata", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.top {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #f7f2e8;
  font-size: 0.92rem;
}
.top a { text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; flex: 0 0 auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  max-width: min(640px, 78%);
}
.nav a { padding-bottom: 2px; }
.nav a[aria-current="page"] { border-bottom: 1px solid rgba(247,242,232,.9); }
.hero {
  position: relative;
  min-height: 78vh;
  color: #f7f2e8;
  display: grid;
  align-items: end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,14,12,.88) 0%, rgba(8,14,12,.45) 48%, rgba(8,14,12,.38) 100%);
}
/* длинные названия мест (выходные рядом) — не сжимать в 11ch как лыжные курорты */
body.weekend h1 {
  max-width: min(18ch, 92vw);
}
body.weekend .hero .shade {
  background:
    linear-gradient(to top, rgba(8,14,12,.9) 0%, rgba(8,14,12,.5) 46%, rgba(8,14,12,.42) 100%),
    linear-gradient(90deg, rgba(8,14,12,.28) 0%, transparent 45%);
}
body.weekend .hero p.lead {
  max-width: 34rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
body.weekend .hero .eyebrow,
body.weekend .hero h1 {
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
body.weekend .top a {
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
body.weekend .rail-wrap {
  padding-inline: 0;
}
body.weekend .rail {
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
}
body.weekend .cmp td,
body.weekend .cmp th {
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
/* хаб: ровно 3 региона — все в ряд, без «обрезанной» 3-й карточки */
body.weekend .rail.regions {
  padding-left: max(14px, calc((100% - 1120px) / 2));
  padding-right: max(14px, calc((100% - 1120px) / 2));
}
body.weekend .rail.regions a {
  flex: 1 1 0;
  min-width: 0;
  height: 280px;
}
body.weekend .grid.regions {
  grid-template-columns: repeat(3, 1fr);
}
/* градиент карточек — общий .cover/.tease/.rail a::after (без щели у низа) */
body.weekend .rail .cap,
body.weekend .tease .cap {
  padding: 12px 12px 14px;
  box-sizing: border-box;
  width: 100%;
}
body.weekend .rail .cap strong,
body.weekend .tease .cap strong {
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.15;
  font-size: clamp(0.92rem, 2.8vw, 1.2rem);
  white-space: normal;
  word-break: break-word;
}
body.weekend .cmp-wrap {
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: inset -12px 0 12px -16px rgba(0,0,0,.18);
}
.hero .copy {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding-bottom: 8px;
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.85;
}
h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.hero p.lead {
  margin: 0 0 16px;
  max-width: 28rem;
  font-size: 1.05rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.btn-light { background: #f7f2e8; color: var(--deep); }
.btn-line { background: #fff; border-color: var(--line); color: var(--deep); }
.btn-send { background: var(--deep); color: #f7f2e8; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.rail-wrap { margin-top: -36px; position: relative; z-index: 2; }
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 14px 18px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.doors a { flex: 1 1 0; height: 280px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.section-head h2 { margin: 0; }
.section-head a { color: var(--deep); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.tease {
  position: relative;
  display: block;
  height: 300px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
}
.tease img { width: 100%; height: 100%; object-fit: cover; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.channels a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
}
.cmp-wrap { overflow-x: auto; margin: 0 0 28px; }
.cmp { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmp th { color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.cmp a { font-weight: 700; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.icons-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.icons span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  max-height: 2.5em;
}
.guard svg { width: 28px; height: 28px; color: #8d5a30; margin-bottom: 6px; }
.diy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 28px;
}
.diy article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 20px;
}
.diy h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.25rem; }
.diy ul { margin: 0; padding-left: 1.1rem; }
.diy li { margin: 5px 0; }
.diy .total { margin: 12px 0 6px; font-size: 1.15rem; }
.atmo {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 0 0 28px;
}
.atmo figure { margin: 0; }
.atmo img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; }
.atmo figcaption { margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.rail a {
  position: relative;
  /* ~2.5 карточки в ряд — видно, что можно листать */
  flex: 0 0 calc((100% - 24px) / 2.5);
  height: 250px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 30px rgba(20,16,10,.18);
}
.rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translate3d(calc(var(--tilt-x, 0) * 1%), calc(var(--tilt-y, 0) * 1%), 0);
  will-change: transform;
}
.hero[data-parallax-root],
.hero {
  overflow: hidden;
}
.hero > img,
.hero [data-tilt] img {
  transform: scale(1.08) translate3d(
    calc(var(--tilt-x, 0) * 1%),
    calc(var(--parallax-y, 0) * 1% + var(--tilt-y, 0) * 1%),
    0
  );
  transform-origin: center center;
  will-change: transform;
}
html.has-tilt .hero > img,
html.has-tilt .rail img,
html.has-tilt .tease img,
html.has-tilt .cover img,
html.has-tilt .atmo img,
html.has-tilt .gallery img,
html.has-tilt [data-tilt] > img {
  transition: transform 0.08s linear;
}
.tease img,
.cover img,
.atmo img,
.gallery img,
[data-tilt] > img {
  transform: scale(1.06) translate3d(calc(var(--tilt-x, 0) * 1%), calc(var(--tilt-y, 0) * 1%), 0);
}
.atmo figure,
.gallery {
  overflow: hidden;
}
.dep-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 100%;
}
.dep-chip > span {
  white-space: nowrap;
  flex: 0 0 auto;
}
.dep-chip select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--deep);
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: min(52vw, 12rem);
}
.dep-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
}
form select,
form input[type="date"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  margin: 0 0 12px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nowrap { white-space: nowrap; }
.season-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.season-note svg { flex: 0 0 auto; width: 28px; height: 28px; color: #8d5a30; }
.rail a::after, .cover::after, .tease::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 78%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8,12,10,.97) 0%,
    rgba(8,12,10,.97) 10%,
    rgba(8,12,10,.78) 32%,
    rgba(8,12,10,.35) 58%,
    transparent 100%
  );
  box-shadow: 0 1px 0 0 rgba(8,12,10,.97); /* стык с телом карточки без светлой щели */
}
.cover, .tease { color: #fff; }
.rail .cap, .cover .cap, .tease .cap { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.rail .cap, .cover .cap, .tease .cap {
  position: absolute;
  z-index: 2;
  left: 14px; right: 14px; bottom: 12px;
}
.rail .kicker, .cover .kicker, .tease .kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.rail strong, .cover strong, .tease strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 26px;
}
.icons div {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 8px 10px;
  text-align: center;
  border: 1px solid var(--line);
}
.icons svg { width: 34px; height: 34px; color: #8d5a30; }
.icons b { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 650; line-height: 1.25; }
.guard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 36px;
}
.guard div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 24px;
}
.guard b { display: block; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.02em; }
.guard span { display: block; margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.offer-meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.offer-meta > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.offer-meta svg { width: 18px; height: 18px; flex: 0 0 auto; color: #8d5a30; margin-top: 1px; }
.season-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
}
.season-note svg { width: 22px; height: 22px; flex: 0 0 auto; color: #8d5a30; }
h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.place {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cover {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden; /* scale(1.06) не вылезает светлой полосой под градиент */
  border-radius: 0;
  background: #080e0c; /* щель/субпиксель — тёмная, не песок фото */
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.pad { padding: 14px 14px 16px; margin-top: -1px; }
.place h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.03em; }
.line { margin: 4px 0 10px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3eadf;
  border-radius: 999px;
  padding: 4px 9px 4px 6px;
  font-size: 0.8rem;
  font-weight: 650;
}
.facts svg { width: 22px; height: 22px; color: #8d5a30; }
.gallery { margin-bottom: 10px; }
.gallery img { height: 150px; width: 100%; object-fit: cover; border-radius: 12px; }
.mini { margin: 0 0 4px; font-size: 0.92rem; }
.mini b { font-weight: 700; }
.note {
  margin: 22px 0;
  padding: 14px 16px;
  background: #e7f0ea;
  border-radius: 16px;
}
form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 20px;
}
label { display: block; font-size: 0.82rem; color: var(--muted); margin: 10px 0 5px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 72px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: #f3eadf;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--deep); color: #f7f2e8; border-color: var(--deep); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.contacts a { color: var(--deep); font-weight: 700; }
footer { color: var(--muted); font-size: 0.85rem; padding-bottom: 24px; }
footer a { color: var(--deep); }
.site-legal {
  margin: 36px 0 0;
  padding: 20px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.site-legal a { color: var(--deep); font-weight: 600; }
.site-legal-entity { margin: 0 0 6px; color: var(--ink); font-weight: 650; }
.site-legal-contacts,
.site-legal-links,
.site-legal-note { margin: 0 0 6px; }
.site-legal-note { opacity: 0.9; }
.legal-checks { margin: 14px 0 4px; display: grid; gap: 10px; }
.legal-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  font-size: 0.86rem !important;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  white-space: normal !important;
}
.legal-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--deep);
}
.legal-check a { color: var(--deep); }
.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(28, 25, 21, 0.94);
  color: #f7f2e8;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-size: 0.9rem;
  line-height: 1.4;
}
.cookie-bar p { margin: 0; flex: 1 1 220px; }
.cookie-bar a { color: #f3eadf; text-decoration: underline; }
.cookie-bar .btn { flex: 0 0 auto; }
.legal-page .legal-hero {
  min-height: 42vh;
  background: linear-gradient(145deg, #1c3a4a, #10241f 55%, #2a1f18);
}
.legal-page .legal-hero .shade { background: rgba(8,14,12,.25); }
.legal-wrap { padding-top: 8px; }
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 14px;
}
.legal-card h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.25rem; }
.legal-card p { margin: 0 0 8px; }
.legal-prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 8px;
  margin: 0 0 18px;
}
.legal-prose h2 {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.legal-prose p, .legal-prose li { color: var(--muted); }
.legal-prose ul { padding-left: 1.2rem; }
@media (max-width: 800px) {
  .cookie-bar {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.credits { margin-top: 8px; }
.credits summary { cursor: pointer; }
.credits li { margin: 4px 0; }
.bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  align-items: center;
  gap: 8px;
  /* отступ кнопок до края подложки сверху = снизу (12px); safe-area — цветной border, не «дыра» */
  padding: 12px 14px;
  background: rgba(239, 231, 218, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: env(safe-area-inset-bottom, 0px) solid rgba(239, 231, 218, 0.94);
  backdrop-filter: blur(8px);
  transform: translateY(120%);
  transition: transform .2s ease;
  box-sizing: border-box;
}
.bar.on { transform: none; }
.bar a { flex: 1; margin: 0; }
@media (min-width: 900px) {
  .rail a { flex: 0 0 calc((100% - 24px) / 2.5); height: 320px; }
  .hero { min-height: 86vh; }
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .diy { grid-template-columns: 1fr; }
  .atmo { grid-template-columns: 1fr; }
  .atmo img { height: 220px; }
  .icons-6 { grid-template-columns: repeat(2, 1fr); }
  .top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { max-width: 100%; justify-content: flex-start; }
  .rail.doors a { flex: 0 0 calc((100% - 12px) / 2.5); height: 230px; }
  .tease { height: 240px; }
  .guard { gap: 12px; }
  .guard div { padding: 16px 16px 18px; }
  .guard b { font-size: 1rem; }
  .guard span { font-size: 0.92rem; }
  .icons { grid-template-columns: repeat(2, 1fr); }
  .icons b { font-size: 0.78rem; }
  .cover { height: 280px; }
  .hero { min-height: 62vh; }
  .rail a { flex: 0 0 calc((100% - 12px) / 2.5); height: 210px; }
  .bar { display: flex; }
  h1 { max-width: 14ch; }
  /* нижний бар не перекрывает последние карточки жилья */
  body.weekend .wrap {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  body.weekend .nav {
    gap: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    row-gap: 6px;
  }
  body.weekend .top {
    padding-bottom: 14px;
    background: linear-gradient(to bottom, rgba(8,14,12,.62) 0%, rgba(8,14,12,.28) 70%, transparent 100%);
  }
  body.weekend .rail.regions {
    padding-left: 12px;
    padding-right: 12px;
  }
  /* на узком экране — 2 карточки + peek третьей, не три «спички» */
  body.weekend .rail.regions a {
    flex: 0 0 calc((100% - 12px) / 2.15);
    min-width: 148px;
    height: 210px;
  }
  body.weekend .rail:not(.regions) a {
    flex: 0 0 calc((100% - 12px) / 2.05);
    min-width: 158px;
    height: 210px;
  }
  body.weekend .grid.regions {
    grid-template-columns: 1fr;
  }
  body.weekend .cmp {
    font-size: 0.88rem;
  }
  body.weekend .cmp th,
  body.weekend .cmp td {
    padding: 10px 10px;
  }
  body.weekend .hero .copy {
    width: calc(100% - 28px);
  }
  body.weekend h1 {
    max-width: min(16ch, 92vw);
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  body.weekend .nav {
    max-width: min(680px, 82%);
    gap: 6px 12px;
    font-size: 0.9rem;
  }
  body.weekend .rail.regions a {
    height: 240px;
  }
}
