/* ==========================================================================
   Новая Жизнь — база отдыха. Стили лендинга.
   Директива страницы: сливовая гамма, электрический акцент, острые углы,
   гигантская типографика, чередование цветных полос, никакого декора.
   ========================================================================== */

/* ---------- сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* ---------- палитра ---------- */
:root {
  /* сливовый — базовый тон и есть фон */
  --plum-950: oklch(15% 0.045 336);
  --plum-900: oklch(19% 0.065 336);
  --plum-800: oklch(25% 0.085 336);
  --plum-700: oklch(32% 0.10 335);
  --plum-line: oklch(40% 0.10 335 / 55%);

  /* акцент — тот же тон, в разы насыщеннее, почти неоновый */
  --accent: oklch(66% 0.29 334);
  --accent-strong: oklch(60% 0.30 332);
  --accent-tint: oklch(80% 0.19 335);
  --accent-ink: oklch(15% 0.05 336); /* тёмный текст поверх акцента */
  --accent-text: oklch(48% 0.24 333); /* акцент читаемым текстом по светлому фону */

  --paper: oklch(97% 0.014 336);
  --paper-dim: oklch(93% 0.024 336);
  --ink: oklch(16% 0.035 336);
  --ink-dim: oklch(34% 0.045 335);
  --cream: oklch(96% 0.016 336);
  --cream-dim: oklch(80% 0.045 335);

  --bg: var(--paper);
  --bg-alt: var(--paper-dim);
  --bg-deep: var(--plum-900);
  --text: var(--ink);
  --text-dim: var(--ink-dim);
  --text-on-deep: var(--cream);
  --text-on-deep-dim: var(--cream-dim);
  --line: oklch(70% 0.03 336 / 45%);
  --surface: oklch(100% 0 0);

  --font-head: ui-sans-serif, "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --space-1: clamp(.5rem, .4rem + .4vw, .75rem);
  --space-2: clamp(.9rem, .7rem + .8vw, 1.4rem);
  --space-3: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
  --space-4: clamp(2.4rem, 1.6rem + 3.2vw, 4.8rem);
  --space-5: clamp(3.6rem, 2.2rem + 5.5vw, 7.5rem);

  --container: min(72rem, 100% - 2.8rem);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: var(--plum-950);
  --bg-alt: var(--plum-900);
  --bg-deep: var(--plum-800);
  --text: var(--cream);
  --text-dim: var(--cream-dim);
  --text-on-deep: var(--cream);
  --text-on-deep-dim: var(--cream-dim);
  --line: var(--plum-line);
  --surface: var(--plum-900);
  --accent-text: var(--accent-tint);
  color-scheme: dark;
}

/* ---------- база ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

/* родной перенос картинок отключён — тайлы карты и фото не должны утаскиваться при клике */
img { -webkit-user-drag: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: var(--container); margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--space-2); top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: .8em 1.2em; font-weight: 700; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: var(--space-2); }

/* ---------- предохранитель от белого полотна ----------
   Секции видны всегда: скрипт лишь добавляет плавный сдвиг снизу вверх,
   а не прячет контент. Если скрипт не выполнится — ничего не потеряно. */
.reveal { transform: translateY(0); transition: transform .6s ease; }
.js .reveal { transform: translateY(18px); }
.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: none; }
}

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
p { max-width: 62ch; }
.overline {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text);
}
.overline::before {
  content: ""; width: 1.6em; height: 2px; background: var(--accent-text);
}
.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head h2 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  margin-top: var(--space-1);
}
[data-numerics] { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- секции и полосы ---------- */
.stripe { padding-block: var(--space-5); }
.stripe--bg { background: var(--bg); color: var(--text); }
.stripe--alt { background: var(--bg-alt); color: var(--text); }
.stripe--deep { background: var(--bg-deep); color: var(--text-on-deep); }
.stripe--deep .overline { color: var(--accent-tint); }
.stripe--deep .overline::before { background: var(--accent-tint); }
.stripe--accent { background: var(--accent); color: var(--accent-ink); }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--plum-950); color: var(--cream);
  border-bottom: 1px solid var(--plum-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding-block: .8rem;
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--accent-tint); text-transform: uppercase; }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--plum-line); flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav { display: flex; align-items: center; gap: var(--space-3); }
.main-nav__list { display: flex; gap: var(--space-2); font-weight: 600; font-size: .92rem; }
.main-nav__list a { padding: .3em 0; border-bottom: 2px solid transparent; }
.main-nav__list a:hover, .main-nav__list a:focus-visible { border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 44px; height: 44px; border: 1px solid var(--plum-line); display: grid; place-items: center; flex: none;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; font-weight: 700; font-size: .96rem; border: 2px solid transparent;
  white-space: nowrap; min-height: 44px; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translate(2px, -2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-strong); }
.btn--ghost-deep { border-color: var(--plum-line); color: var(--cream); }
.btn--ghost-deep:hover { border-color: var(--accent-tint); color: var(--accent-tint); }
.btn--ghost {
  border-color: var(--line); color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--block { width: 100%; }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; min-height: 40px; }

.call-fab {
  position: fixed; right: var(--space-2); bottom: var(--space-2); z-index: 90;
  width: 60px; height: 60px; border-radius: 0; background: var(--accent); color: var(--accent-ink);
  display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--plum-950);
}
.call-fab svg { width: 26px; height: 26px; }

/* ---------- герой ---------- */
.hero {
  background: var(--plum-950); color: var(--cream);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-5);
  position: relative; overflow: clip; isolation: isolate;
  border-bottom: 1px solid var(--plum-line);
}
.hero::before {
  content: ""; position: absolute; inset: -4% ; z-index: -2;
  background-image: var(--hero-photo); background-size: cover; background-position: center;
  opacity: .4; filter: saturate(.7);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--plum-950) 78%, transparent) 0%, var(--plum-950) 92%),
    color-mix(in oklch, var(--plum-950) 55%, transparent);
}
@keyframes hero-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero__badgebar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--space-3); }
.badge {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .9em;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--plum-line); color: var(--text-on-deep-dim);
}
.badge--accent { border-color: var(--accent); color: var(--accent-tint); }
.badge__dot { width: .5em; height: .5em; background: var(--accent); flex: none; }

.hero h1 {
  font-size: clamp(3.4rem, 1.6rem + 10vw, 9.5rem);
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.hero h1 span { display: block; }
.hero h1 .line-accent { color: var(--accent); }
.hero__h1-sub {
  font-family: var(--font-body); text-transform: none; font-weight: 600; letter-spacing: 0;
  font-size: clamp(1rem, .85rem + .6vw, 1.35rem); color: var(--text-on-deep-dim); margin-top: .5em;
}

.hero__lead {
  margin-top: var(--space-3);
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
}
@media (min-width: 62rem) {
  .hero__lead { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.hero__sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: var(--text-on-deep); max-width: 40ch; }
.hero__meta { color: var(--text-on-deep-dim); margin-top: .8em; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-3); }
.hero__photo-link { margin-top: var(--space-2); }

/* ---------- секция услуг ---------- */
.offer-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.offer-card {
  background: var(--bg); padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.offer-card__num { font-family: var(--font-mono); color: var(--accent-text); font-weight: 700; }
.offer-card h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.offer-card__fact {
  align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
  border: 1px solid var(--line); color: var(--text-dim); padding: .35em .7em; white-space: nowrap;
}
.offer-card__price {
  align-self: flex-start; font-family: var(--font-mono); font-weight: 700;
  background: var(--accent); color: var(--accent-ink); padding: .35em .7em; white-space: nowrap;
  border: 1px solid var(--accent);
}
.offer-card__desc { color: var(--text-dim); }

.feature-groups { display: grid; gap: var(--space-2); }
.feature-group__title {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .5em;
}
.feature-list { display: flex; flex-wrap: wrap; gap: .5em; }
.feature-list li {
  border: 1px solid var(--line); padding: .4em .75em; font-size: .86rem; display: flex; align-items: center; gap: .45em;
}
.feature-list li svg { width: 1em; height: 1em; color: var(--accent); flex: none; }

/* ---------- цифры / доказательства ---------- */
.stat-grid {
  display: grid; gap: 1px; background: var(--plum-line);
  border: 1px solid var(--plum-line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.stat-tile { background: var(--bg-deep); padding: var(--space-3); display: flex; flex-direction: column; }
.stat-tile__num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.05; color: var(--accent-tint);
}
.stat-tile__label { margin-top: .5em; color: var(--text-on-deep-dim); font-size: .92rem; }

/* ---------- фото в лайтбоксе ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: color-mix(in oklch, var(--plum-950) 92%, transparent);
  align-items: center; justify-content: center; padding: var(--space-2);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; object-fit: contain; border: 1px solid var(--plum-line); }
.lightbox__close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  width: 48px; height: 48px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- контакты / оплата ---------- */
.contact-phone {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  color: var(--text); display: inline-block;
}
.contact-status {
  display: flex; align-items: center; gap: .6em; margin-top: var(--space-2);
  font-weight: 700; font-size: 1.05rem;
}
.contact-status .status-dot { width: .6em; height: .6em; background: var(--accent); flex: none; }

.contact-list { display: grid; gap: .9rem; margin-top: var(--space-3); max-width: 34rem; }
.contact-list dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.contact-list dd { font-size: 1.02rem; overflow-wrap: anywhere; }

.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: var(--space-2); }
.chip {
  border: 1px solid var(--line); padding: .5em .85em; font-size: .85rem; display: inline-flex; align-items: center; gap: .5em;
}
.chip svg { width: 1em; height: 1em; color: var(--accent); }

.msg-grid { display: grid; gap: .7rem; grid-template-columns: 1fr; margin-top: var(--space-3); max-width: 34rem; }
@media (min-width: 62rem) {
  .msg-grid { grid-template-columns: repeat(5, 1fr); max-width: none; }
}
.msg-btn {
  border: 1px solid var(--line); padding: .9em 1em; display: flex; align-items: center; gap: .7em; font-weight: 700; font-size: .92rem;
  min-height: 44px;
}
.msg-btn svg { width: 1.3em; height: 1.3em; color: var(--accent); flex: none; }
.msg-btn:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- карта ---------- */
.map-block { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .map-block { grid-template-columns: 1.4fr 1fr; }
}
.map-frame {
  position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden;
  touch-action: none; background: var(--bg-alt); user-select: none;
}
@media (min-width: 48rem) {
  .map-frame { aspect-ratio: 16/9; }
}
.map-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-tiles { position: absolute; left: 0; top: 0; will-change: transform; }
.map-tiles img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
[data-theme="dark"] .map-tiles img { filter: invert(.92) hue-rotate(180deg) saturate(1.1); }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 5; pointer-events: none;
}
.map-pin svg { width: 40px; height: 46px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.map-controls { position: absolute; right: .7rem; top: .7rem; display: flex; flex-direction: column; gap: .4rem; z-index: 6; }
.map-controls button {
  width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; color: var(--text);
}
.map-recenter {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 6; min-height: 44px;
  background: var(--accent); color: var(--accent-ink); border: 0; padding: .6em .9em; font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; gap: .5em;
}
.map-address { border: 1px solid var(--line); padding: var(--space-3); display: grid; gap: .9rem; align-content: start; }
.map-address dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.map-address dd { overflow-wrap: anywhere; }

/* ---------- cta полоса ---------- */
.cta-strip { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.cta-strip h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); max-width: 28ch; }

/* ---------- подвал ---------- */
.site-footer { background: var(--plum-950); color: var(--text-on-deep-dim); padding-block: var(--space-4) var(--space-3); }
.footer-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-grid h4 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); margin-bottom: .9em; }
.footer-links { display: grid; gap: .55em; }
.footer-links a:hover { color: var(--accent-tint); }
.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--plum-line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .84rem;
}
.footer-bottom a { font-weight: 700; color: var(--accent-tint); }

/* ---------- адаптивность / шапка мобильная ---------- */
@media (max-width: 61.9rem) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(20rem, 84vw); height: 100vh;
    background: var(--plum-950); border-left: 1px solid var(--plum-line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: var(--space-4) var(--space-3); gap: var(--space-3);
    transform: translateX(100%); transition: transform .3s ease; z-index: 150;
    overflow-y: auto; overflow-x: hidden;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; gap: .2rem; font-size: 1.2rem; }
  .main-nav__list a { display: flex; align-items: center; min-height: 44px; }
  .header-actions--desktop { display: none; }
  .header-actions--mobile { display: flex; flex-direction: column; gap: .7rem; margin-top: var(--space-2); }
  .header-actions--mobile .theme-toggle { width: 100%; height: 44px; gap: .6em; }
  .call-fab { display: grid; }
}
@media (min-width: 62rem) {
  .nav-scrim { display: none; }
  .header-actions--mobile { display: none; }
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 140; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 47.9rem) {
  .hero h1 { font-size: clamp(2.6rem, 2rem + 9vw, 4.5rem); }
}

@media print {
  .site-header, .call-fab, .nav-scrim { display: none; }
}
