/* ============================================================
   Гостевой дом «Буг» · official-site-v1 · tone №12 airy-resort
   Палитра: морская соль #fbfaf7 · ink #1a1a1a · amber #e0a423
   teal #46c79a (бейджи) · фото несут цвет, UI почти бесцветен
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5f5a52;
  --amber: #e0a423;
  --amber-deep: #b9831a;
  --teal: #46c79a;
  --hairline: rgba(26, 26, 26, 0.12);
  --hairline-soft: rgba(26, 26, 26, 0.07);

  --serif: Georgia, "Times New Roman", "Noto Serif", Times, serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --r-lg: 12px;
  --r-sm: 6px;
  --section-pad: clamp(96px, 12vw, 150px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- база ---------- */

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

html {
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
}
.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

::selection { background: rgba(224, 164, 35, 0.3); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--r-lg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, color 0.25s ease;
}
.btn .ico { width: 21px; height: 21px; flex: none; }

.btn-primary {
  background: var(--amber);
  color: #221a06;
  box-shadow: 0 10px 30px -10px rgba(224, 164, 35, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(224, 164, 35, 0.65);
  background: #eab238;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* стеклянная кнопка для тёмного hero (вторичный CTA рядом с amber-primary) */
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-glass .ico { border-radius: 5px; }
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-glass:active { transform: translateY(0); }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  color: #fff;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 14px clamp(20px, 4.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { text-decoration: none; line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.site-nav a {
  font-size: 14.5px;
  text-decoration: none;
  opacity: 0.88;
  position: relative;
  padding-bottom: 3px;
  transition: opacity 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-phone {
  font-family: var(--mono);
  font-size: 13.5px !important;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 16px 8px !important;
  opacity: 1 !important;
}
.nav-phone::after { display: none; }
.nav-phone:hover { background: var(--amber); border-color: var(--amber); color: #221a06; }

.burger {
  display: none;
  width: 44px; height: 40px;
  background: none;
  border: 0;
  /* button не наследует color по умолчанию (UA buttontext = чёрный):
     без inherit бургер оставался ink на прозрачном хедере поверх фото */
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  animation: kenburns 28s var(--ease-out) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14) translateY(-1.5%); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.42) 0%, rgba(10, 14, 18, 0.05) 38%,
                    rgba(10, 14, 18, 0.18) 62%, rgba(10, 14, 18, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(64px, 10vh, 120px);
  padding-top: 140px;
  max-width: 1180px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  /* локальный скрим: текст попадает на светлые зоны фото (стена/окно/зелень) */
  background: rgba(10, 14, 18, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 16px 8px 14px;
  border-radius: var(--r-sm);
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 14px;
}

.hero-title { line-height: 0.95; }
.hero-kicker {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 26px);
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0.95;
  margin-bottom: 6px;
  /* локальный скрим — та же причина, что у .hero-eyebrow */
  background: rgba(10, 14, 18, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 3px 14px 5px 12px;
  border-radius: var(--r-sm);
}
.hero-name {
  display: block;
  font-size: clamp(84px, 14vw, 168px);
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.hero-trust {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  right: clamp(24px, 5vw, 60px);
  z-index: 2;
  width: 1px;
  height: 56px;
  overflow: hidden;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* page-load stagger (hero) */
.load-reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: loadreveal 1s var(--ease-out) forwards;
  animation-delay: var(--ld, 0s);
}
@keyframes loadreveal {
  to { opacity: 1; transform: none; }
}

/* ---------- секции: общее ---------- */

.section { padding-block: var(--section-pad); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.section-num {
  color: var(--amber-deep);
  margin-right: 10px;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
}

.section-sub {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 640px;
  margin: 20px 0 0;
}
.section-head-center .section-sub { margin-inline: auto; }

.lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.55;
  margin-top: 0;
}

/* scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- 01 о доме ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about-text p { color: #2e2b26; }
.about-text p:not(.lead) { color: var(--muted); }

.about-stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
}
.about-stats li {
  padding: 20px 12px 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.about-stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 40px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.about-stats span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  border-radius: var(--r-lg);
}
.about-photo figcaption,
.rooms-featured figcaption,
.location-banner figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- 02 номера ---------- */

.section-rooms { background: var(--surface); }

.rooms-featured {
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.rooms-featured img {
  width: 100%;
  border-radius: var(--r-lg);
}

.amenities {
  list-style: none;
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--hairline);
}
.amenities li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.am-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.am-text {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.5;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.gallery a {
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}
.gallery a:hover img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.gallery-hint {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 18px 0 0;
}

/* ---------- 03 территория ---------- */

.territory-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}
.t-card a {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.t-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.t-card a:hover img { transform: scale(1.045); }
.t-card h3 {
  font-size: 23px;
  margin: 20px 0 8px;
}
.t-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

.territory-chips {
  list-style: none;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.territory-chips li {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(70, 199, 154, 0.55);
  color: #1f6b51;
  background: rgba(70, 199, 154, 0.08);
}
.territory-chips .chip-paid {
  border-color: var(--hairline);
  color: var(--muted);
  background: transparent;
}

/* ---------- 04 локация ---------- */

.section-location { padding-top: 0; }

.location-banner {
  margin: 0 0 var(--section-pad);
  position: relative;
}
.location-banner img {
  width: 100%;
  height: clamp(320px, 55vh, 560px);
  object-fit: cover;
}
.location-banner figcaption {
  position: absolute;
  left: clamp(20px, 4.5vw, 48px);
  bottom: 16px;
  max-width: calc(100% - 2 * clamp(20px, 4.5vw, 48px));
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  /* локальный скрим: белый mono поверх зелени без подложки полустёрт */
  background: rgba(10, 14, 18, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--r-sm);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.location-big {
  position: sticky;
  top: 110px;
  line-height: 1;
}
.big-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(160px, 22vw, 300px);
  line-height: 0.85;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.big-label {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.location-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name time" "note time";
  column-gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.loc-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
}
.loc-note {
  grid-area: note;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
}
.loc-time {
  grid-area: time;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--amber-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 05 цены ---------- */

.section-prices { background: var(--surface); }

.price-shell {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.price-stub-lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.45;
  margin: 0 0 14px;
}
.price-stub-lead strong { font-weight: 400; border-bottom: 2px solid var(--amber); }
.price-stub-note {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 16px;
}
.price-stub-mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 22px 0 0;
}

/* будущая таблица цен (месяцы × гости) — стили готовы заранее */
.price-table-wrap { overflow-x: auto; text-align: left; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table caption {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding-bottom: 14px;
}
.price-table th, .price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.price-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 400;
}
.price-table tbody th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
}
.price-footnote {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ---------- 06 условия ---------- */

.terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 40px) clamp(36px, 5vw, 72px);
}
.terms-list li {
  display: flex;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.term-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber-deep);
  padding-top: 5px;
}
.terms-list h3 { font-size: 21px; margin: 0 0 6px; }
.terms-list p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- 07 карта ---------- */

.section-map { background: var(--surface); }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 55vh, 520px);
  border: 0;
}
.map-link { margin: 20px 0 0; }
.map-link a {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.map-link a:hover { color: var(--amber-deep); }

/* ---------- 08 контакты ---------- */

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  font-family: var(--sans);
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -18px rgba(26, 26, 26, 0.22);
  border-color: rgba(224, 164, 35, 0.6);
}

.cc-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.cc-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-variant-numeric: tabular-nums;
}
/* телефонные значения: не рвать номер посреди («…664-63-» / «88») */
.cc-value-num { white-space: nowrap; }
@media (min-width: 769px) {
  /* 3 колонки: кегль чуть ниже, чтобы номер влезал в карточку без переноса */
  .cc-value-num { font-size: clamp(18px, 1.7vw, 21px); }
}
.cc-hint {
  font-size: 13.5px;
  color: var(--muted);
}

/* primary-канал доминирует среди трёх карточек: заливка amber */
.cc-whatsapp {
  background: var(--amber);
  border-color: var(--amber);
  color: #221a06;
  box-shadow: 0 16px 40px -16px rgba(224, 164, 35, 0.6);
}
.cc-whatsapp .cc-label { color: rgba(34, 26, 6, 0.66); }
.cc-whatsapp .cc-hint { color: rgba(34, 26, 6, 0.72); }
.cc-whatsapp:hover {
  background: #eab238;
  border-color: var(--amber-deep);
  box-shadow: 0 20px 48px -16px rgba(224, 164, 35, 0.7);
}

/* значок-бейдж на контакт-карточках (телефон / whatsapp / max) */
.cc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 4px;
}
.cc-ico svg { width: 24px; height: 24px; }
.cc-ico-phone { background: rgba(224, 164, 35, 0.14); color: var(--amber-deep); }
.cc-ico-wa { background: #25d366; }
.cc-ico-max { width: 46px; height: 46px; }
.cc-ico-max img { width: 46px; height: 46px; border-radius: 12px; display: block; }
/* MAX-карточка: лиловый акцент лейбла под бренд мессенджера */
.cc-max .cc-label { color: #6a3df0; }

/* QR-блок MAX (под тремя карточками) */
.max-qr {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 480px;
  margin: 22px auto 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.max-qr-img {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.max-qr-text p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ---------- футер ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 56px;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 10px;
}
.footer-line {
  margin: 4px 0;
  font-size: 15px;
  color: var(--muted);
}
.footer-line a {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.25s ease;
}
.footer-line a:hover { border-color: var(--amber); }
.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-msgr { display: inline-flex; align-items: center; gap: 7px; border-bottom: 0; }
.footer-msgr:hover { border-bottom: 0; }
.footer-ico-wa { width: 17px; height: 17px; color: #25d366; }
.footer-msgr img { display: block; border-radius: 5px; }
.footer-mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14, 13, 11, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}
.lb-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--r-sm);
}
.lb-caption {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 14px;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--amber); }
.lb-close { top: 18px; right: 22px; font-size: 34px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

body.lb-locked { overflow: hidden; }

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .location-big { position: static; }
  .big-num { font-size: clamp(120px, 18vw, 200px); }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    background: rgba(251, 250, 247, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--serif); font-size: 24px; }
  .nav-phone { font-size: 16px !important; margin-top: 10px; }
  .burger { display: block; }
  .site-header:not(.is-scrolled) .burger.is-open { color: var(--ink); }
  /* при открытом меню снимаем backdrop-filter с шапки: иначе она становится
     containing-block для fixed-меню и оно не растягивается на весь экран (баг на скролле) */
  .site-header.menu-open {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ink);
  }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .territory-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .location-grid { grid-template-columns: 1fr; }
  .location-big { display: flex; align-items: baseline; gap: 22px; }
  .big-label br { display: none; }
  .terms-list { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  /* на мобиле eyebrow переносится в 2 строки — центрируем, чтобы «моря» не висело слева */
  .hero-eyebrow { text-align: center; }
  /* компактные горизонтальные контакт-карточки (значок слева, текст справа) —
     вертикальные на весь экран были слишком крупными */
  .contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1px 15px;
    padding: 14px 18px;
  }
  .cc-ico { grid-row: 1 / span 3; align-self: center; margin-bottom: 0; width: 42px; height: 42px; }
  .cc-ico svg { width: 22px; height: 22px; }
  .cc-ico-max { width: 42px; height: 42px; }
  .cc-ico-max img { width: 42px; height: 42px; }
  .cc-label { grid-column: 2; }
  .cc-value { grid-column: 2; font-size: 19px; line-height: 1.2; }
  .cc-hint { grid-column: 2; font-size: 12.5px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-content { padding-top: 120px; }
  .hero-name { font-size: clamp(72px, 24vw, 110px); }
  .btn { width: 100%; justify-content: center; }
  /* две CTA в hero на узком телефоне — стопкой во всю ширину (без съездов текста) */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .price-shell { padding: 30px 20px; }
  .location-list li {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "note" "time";
    row-gap: 2px;
  }
  .loc-time { margin-top: 4px; }
  /* QR-блок MAX в столбик по центру на узких экранах */
  .max-qr { flex-direction: column; text-align: center; gap: 14px; padding: 22px; }
}

/* ---------- кнопка «наверх» ---------- */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 120;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--amber);
  color: #221a06;
  box-shadow: 0 10px 28px -10px rgba(224, 164, 35, 0.75);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              visibility 0.35s ease, background 0.25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #eab238; transform: translateY(-3px); }
/* при открытом мобильном меню кнопку «наверх» прячем — чтобы overlay был чистым */
.site-header.menu-open ~ .to-top { opacity: 0; visibility: hidden; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img { animation: none; transform: none; }
  .hero-scroll-hint { display: none; }
  .load-reveal { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
