:root {
  --bg: #f4f4f6;
  --bg-2: #e8e8ec;
  --ink: #161616;
  --muted: #7d7d85;
  --line: rgba(22, 22, 22, 0.1);
  --panel: #ffffff;
  --accent: #76b82a;
  --accent-2: #8fd63f;
  --accent-ink: #143008;
  --film: #161616;
  --ok: #76b82a;
  --pink: #eef6e6;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(22, 22, 22, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1160px;
  --gutter: clamp(1rem, 3vw, 1.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(800px 420px at 100% -10%, rgba(118, 184, 42, 0.12), transparent 55%),
    radial-gradient(600px 380px at 0% 30%, rgba(207, 207, 213, 0.55), transparent 50%),
    linear-gradient(180deg, #f7f7f9 0%, #ececf0 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; padding: 0.85rem 1.3rem; font-weight: 800; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #143008; box-shadow: 0 10px 28px rgba(118, 184, 42, 0.35);
}
.btn--accent:hover { transform: translateY(-2px); }
.btn--dark { background: var(--film); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(20,20,20,0.16);
}
.btn--ghost.is-active {
  background: var(--film); color: #fff; border-color: var(--film);
}
.btn--lg { padding: 1rem 1.5rem; font-size: 1.02rem; }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* HEADER */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 246, 0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.topbar__row {
  display: flex; align-items: center; gap: 1rem; min-height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo img { width: auto; height: 36px; border-radius: 0; }
.logo__name {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em;
}
.logo__sub { display: block; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.perks {
  display: none; gap: 0.55rem; margin-left: auto;
  font-size: 0.72rem; font-weight: 650; color: var(--muted);
  letter-spacing: 0.01em;
}
.perk {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(22,22,22,0.06);
}
.perk i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;
  box-shadow: 0 0 0 3px rgba(118,184,42,0.18);
}
.topbar__cta { display: flex; align-items: center; gap: 0.65rem; margin-left: auto; }
.topbar__phone {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.topbar__phone:hover { color: var(--accent); }
@media (min-width: 980px) {
  .perks { display: flex; }
  .topbar__cta { margin-left: 1rem; }
}

/* HERO */
.hero {
  padding: clamp(2.2rem, 6vw, 4rem) 0 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(244,244,246,0.97) 0%, rgba(244,244,246,0.88) 42%, rgba(22,22,22,0.35) 100%),
    url("assets/gallery/living.jpg") right center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 0.9rem;
  background: rgba(118,184,42,0.18); padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero__badge span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(118,184,42,0.2);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.8rem; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead {
  margin: 0 0 1.4rem; color: var(--muted); font-size: 1.08rem; max-width: 34rem;
}
.choice {
  display: grid; gap: 0.75rem; max-width: 560px;
}
@media (min-width: 560px) {
  .choice { grid-template-columns: 1fr 1fr; }
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  min-height: 88px;
  padding: 0.95rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: 0 10px 30px rgba(22, 22, 22, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.28s ease,
    color 0.2s ease;
}
.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 184, 42, 0.55);
  box-shadow: 0 16px 36px rgba(22, 22, 22, 0.1);
}
.choice-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.choice-card.is-active {
  background: var(--film);
  border-color: var(--film);
  color: #fff;
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.28);
}
.choice-card__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--accent);
  min-width: 1.4ch;
}
.choice-card__num--multi {
  font-size: clamp(1.7rem, 4.4vw, 2.15rem);
  letter-spacing: -0.04em;
  min-width: 2.6ch;
}
.choice-card.is-active .choice-card__num { color: #b8f06a; }
.choice-card__text { display: grid; gap: 0.2rem; min-width: 0; }
.choice-card__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.choice-card__hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.choice-card.is-active .choice-card__hint { color: rgba(255, 255, 255, 0.62); }

/* Journey steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 560px;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 22, 22, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.steps__item span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.08);
  font-family: var(--mono);
  font-size: 0.65rem;
  flex: 0 0 auto;
}
.steps__item.is-done {
  color: var(--accent-ink);
  border-color: rgba(118, 184, 42, 0.35);
  background: rgba(118, 184, 42, 0.12);
}
.steps__item.is-done span { background: var(--accent); color: #143008; }
.steps__item.is-current {
  color: #fff;
  background: var(--film);
  border-color: var(--film);
}
.steps__item.is-current span { background: var(--accent); color: #143008; }
@media (max-width: 520px) {
  .steps__item { font-size: 0; gap: 0; justify-content: center; padding: 0.4rem; }
  .steps__item span { font-size: 0.7rem; }
}

[hidden] { display: none !important; }

/* Section enter animations */
.stage-panel {
  padding-block: 0.5rem 2rem;
}
.stage-panel.is-entering {
  animation: panelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* LAYOUTS */
.layouts {
  padding: 0.5rem 0 2rem;
}
.layouts__head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem;
}
.layouts__head h2 {
  font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0;
}
.layouts__grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) {
  .layouts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .layouts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.plan-card {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.plan-card:hover, .plan-card.is-active {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(118,184,42,0.55);
}
.plan-card img { width: 100%; aspect-ratio: 1.1; object-fit: contain; background: #f7f7f9; padding: 0.4rem; }
.plan-card__meta { padding: 0.85rem 1rem 1rem; }
.plan-card__meta strong {
  display: block; font-family: var(--display); font-size: 0.95rem;
  letter-spacing: -0.02em; margin-bottom: 0.2rem;
}
.plan-card__meta span { color: var(--muted); font-weight: 700; font-size: 0.86rem; }

/* MINI FORM */
.gate {
  padding: 1rem 0 2.5rem;
}
.gate__card {
  border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(145deg, #fff, var(--pink));
  border: 1px solid rgba(118,184,42,0.28); box-shadow: var(--shadow);
  display: grid; gap: 1.2rem;
  transform-origin: center top;
}
@media (min-width: 860px) {
  .gate__card { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.gate__copy h2 {
  font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin: 0 0 0.6rem; line-height: 1.15;
}
.gate__copy p { margin: 0; color: var(--muted); }
.gift {
  display: inline-flex; margin-top: 0.9rem; padding: 0.45rem 0.75rem;
  border-radius: 999px; background: rgba(118,184,42,0.14); color: var(--accent-ink);
  font-weight: 800; font-size: 0.85rem;
}
.form { display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
.field > span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; padding: 0.85rem 0.95rem; outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(118,184,42,0.55); }
.form__note { margin: 0; font-size: 0.78rem; color: var(--muted); }
.form-msg { min-height: 1.1em; color: var(--ok); font-size: 0.9rem; font-weight: 700; }

/* EXPERIENCE */
.experience {
  padding: 0 0 3rem;
}
.experience__grid {
  display: grid; gap: 1.2rem; align-items: start;
}
@media (min-width: 960px) {
  .experience__grid { grid-template-columns: 1.35fr 0.85fr; gap: 1.5rem; }
}
.gallery {
  border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line);
}
.gallery__tabs {
  display: flex; gap: 0.4rem; padding: 0.75rem; overflow-x: auto; border-bottom: 1px solid var(--line);
}
.gallery__tab {
  border: 0; background: var(--bg-2); border-radius: 999px; padding: 0.5rem 0.85rem;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
}
.gallery__tab.is-active { background: var(--film); color: #fff; }
.gallery__stage {
  position: relative; aspect-ratio: 3 / 2; background: #ddd;
}
.gallery__stage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.gallery__stage img.is-switching {
  opacity: 0; transform: scale(1.02);
}
.hotspot {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(118,184,42,0.25), 0 8px 18px rgba(0,0,0,0.25);
  cursor: pointer; transform: translate(-50%, -50%);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(118,184,42,0.25), 0 8px 18px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(118,184,42,0.1), 0 8px 18px rgba(0,0,0,0.25); }
}
.hotspot-card {
  position: absolute; z-index: 5; width: min(240px, calc(100% - 24px));
  background: #fff; border-radius: 14px; padding: 0.85rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rise 0.2s ease;
}
.hotspot-card strong { display: block; margin-bottom: 0.2rem; }
.hotspot-card span { color: var(--accent-ink); font-weight: 800; }
.hotspot-card .btn { margin-top: 0.7rem; }

.offer-panel {
  border-radius: 22px; padding: 1.25rem;
  background: linear-gradient(165deg, #121212, #2a2a2e);
  color: #f4f4f6; box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .offer-panel { position: sticky; top: 84px; }
}
.offer-panel h2 {
  font-family: var(--display); font-size: 1.35rem; line-height: 1.2; margin: 0 0 0.7rem;
}
.offer-panel p { color: rgba(244,244,246,0.72); margin: 0 0 1rem; }
.cert {
  border-radius: 16px; padding: 1rem;
  background: rgba(118,184,42,0.14); border: 1px solid rgba(118,184,42,0.4);
  margin-bottom: 1rem;
}
.cert strong {
  display: block; font-family: var(--display); font-size: 1.4rem; color: #b8f06a; margin-bottom: 0.25rem;
}
.cert span { font-size: 0.88rem; color: rgba(244,244,246,0.8); }
.offer-contacts { display: grid; gap: 0.35rem; margin-bottom: 1rem; font-weight: 700; }
.offer-contacts a:hover { color: #b8f06a; }
.calc-box {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.calc-box h3 { margin: 0 0 0.55rem; font-size: 0.95rem; }
.calc-list { display: grid; gap: 0.35rem; font-size: 0.88rem; color: rgba(244,244,246,0.8); margin-bottom: 0.75rem; }
.calc-list li { display: flex; justify-content: space-between; gap: 0.5rem; }
.calc-empty { color: rgba(244,244,246,0.45); font-size: 0.85rem; }

/* FINAL */
.final {
  padding: 0 0 4rem;
}
.final__card {
  border-radius: 24px; background: #fff; border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow);
  display: grid; gap: 1.2rem;
}
@media (min-width: 860px) {
  .final__card { grid-template-columns: 1fr 1fr; }
}
.final__card h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.5rem;
}
.final__card p { margin: 0; color: var(--muted); }

.thanks {
  text-align: center; padding: 3rem 1rem 5rem;
  animation: rise 0.35s ease;
}
.thanks h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 0.7rem;
}
.thanks p { color: var(--muted); max-width: 28rem; margin: 0 auto 1.2rem; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--film); color: #fff; padding: 0.75rem 1.1rem; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: 0.25s ease; z-index: 80; font-weight: 700;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.form__note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* View Transitions */
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.35s;
  }
  #gate { view-transition-name: gate-panel; }
  #layouts { view-transition-name: layouts-panel; }
  #experience { view-transition-name: experience-panel; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot, .stage-panel.is-entering, .plan-card, .thanks { animation: none !important; }
  .choice-card, .gallery__stage img { transition: none !important; }
}

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-foot__row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
}
.site-foot a { font-weight: 700; }
.site-foot a:hover { color: var(--accent); }

.seo-faq {
  padding: 0 0 3.5rem;
}
.seo-faq h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 1rem;
}
.seo-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
