:root {
  --ink: #1b1914;
  --muted: #5e584e;
  --paper: #f4efe6;
  --paper-2: #fffdf8;
  --line: rgba(28, 25, 21, 0.12);
  --sea: #0f3c45;
  --sea-deep: #0b242b;
  --gold: #a67945;
  --gold-2: #e4c89a;
  --danger: #8e2e1f;
  --ok: #1f6b45;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

body.modal-open { overflow: hidden; }

img, svg { display: block; }

h1, h2, h3, .logo__word {
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(4.2rem, 13vw, 8.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.55rem; }

p { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-2);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.skip:focus { top: 16px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header, .footer, .cabinet-bar {
  padding-inline: max(20px, calc((100% - 1120px) / 2));
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  color: #f4efe6;
}

.header--solid {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 2;
}

.logo__mark { width: 28px; height: 28px; }

.logo__word {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--gold-2); }
.header--solid .nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

.btn--light { background: #f4efe6; color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #f4efe6; }
.btn--dark:hover { background: #000; }
.btn--line {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(31, 150, 160, 0.38), transparent 60%),
    radial-gradient(ellipse 40% 40% at 12% 88%, rgba(196, 165, 116, 0.22), transparent 55%),
    linear-gradient(180deg, #07141b 0%, #0e2730 52%, #14343a 100%);
  color: #f4efe6;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 1.15rem;
  color: rgba(244, 239, 230, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--gold-2); }

.orbit {
  position: absolute;
  right: -40px;
  top: 46%;
  width: min(540px, 68vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.orbit__planet {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, #49b7c4, #0f6270 46%, #08242c 78%);
  box-shadow: inset -24px -18px 40px rgba(0, 0, 0, 0.35);
}

.orbit__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(228, 200, 154, 0.85);
  transform: rotateX(68deg) rotateZ(-20deg);
  animation: spin 36s linear infinite;
}

.orbit__ring::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--gold-2);
}

@keyframes spin {
  to { transform: rotateX(68deg) rotateZ(340deg); }
}

.strip {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.strip__row {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.section { padding: 88px 0 24px; }
.section--tight { padding-top: 24px; padding-bottom: 88px; }

.section__head { max-width: 680px; margin-bottom: 36px; }

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.place {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 28px 0 64px;
}

.place--flip .place__scene,
.place--flip .scene { order: -1; }

.place__index {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place__copy p { margin-top: 14px; color: var(--muted); }

.place__facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.place__facts li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.place__facts span {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

.scene {
  position: relative;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
}

.scene--mv {
  background: linear-gradient(#c5ebf4 0 34%, #7ad4e2 34% 52%, #1493ab 52% 100%);
}

.mv-sun {
  position: absolute;
  top: 42px;
  right: 48px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff6dc;
  box-shadow: 0 0 0 14px rgba(255, 246, 220, 0.35);
}

.mv-island {
  position: absolute;
  left: 16%;
  right: 18%;
  bottom: 30%;
  height: 42px;
  border-radius: 50%;
  background: #f0d7a4;
}

.mv-deck {
  position: absolute;
  left: 20%;
  width: 54%;
  bottom: 36%;
  height: 8px;
  border-radius: 8px;
  background: #e6d2a2;
}

.mv-villa {
  position: absolute;
  left: 24%;
  bottom: calc(36% + 8px);
  width: 72px;
  height: 44px;
  border-radius: 6px 6px 2px 2px;
  background: #fffdf8;
}

.mv-villa--2 { left: 52%; }

.mv-villa::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: -16px;
  height: 16px;
  background: #d98a55;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.mv-stilt, .mv-stilt--2 {
  position: absolute;
  bottom: 30%;
  width: 6px;
  height: 7%;
  background: #c9843f;
  left: calc(24% + 18px);
}

.mv-stilt--2 { left: calc(52% + 48px); }

.mv-stilt::after, .mv-stilt--2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 6px;
  height: 100%;
  background: #c9843f;
}

.scene--vn {
  background: linear-gradient(#d7ebe4 0 28%, #8fb8ad 28% 46%, #1f555c 46% 100%);
}

.vn-mist {
  position: absolute;
  inset: 18% 0 auto;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.vn-karst {
  position: absolute;
  bottom: 27%;
  background: #1d4c43;
  border-radius: 46% 46% 8px 8px;
}

.vn-karst--1 { left: 8%; width: 110px; height: 200px; }
.vn-karst--2 { left: 36%; width: 86px; height: 260px; background: #16382f; }
.vn-karst--3 { right: 8%; width: 130px; height: 170px; background: #2d6a58; }

.vn-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(#1c7380, #0d3c46);
}

.vn-boat {
  position: absolute;
  left: 46%;
  bottom: 14%;
  width: 58px;
  height: 12px;
  border-radius: 0 0 10px 10px;
  background: #f4efe6;
  animation: drift 7s ease-in-out infinite;
}

.vn-boat::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 12px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 24px solid #f7f1e6;
}

@keyframes drift {
  50% { transform: translateX(18px); }
}

.scene--eg {
  background: linear-gradient(#f6d7a4 0 46%, #e7b56a 46% 100%);
}

.eg-sun {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff8e8;
}

.eg-pyr {
  position: absolute;
  bottom: 24%;
  width: 0;
  height: 0;
  border-left: 78px solid transparent;
  border-right: 78px solid transparent;
  border-bottom: 132px solid #d9783c;
}

.eg-pyr--1 { left: 16%; }
.eg-pyr--2 {
  left: 42%;
  border-left-width: 96px;
  border-right-width: 96px;
  border-bottom-width: 168px;
  border-bottom-color: #c4622c;
}

.eg-dune {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 28%;
  background: #c9843f;
  border-radius: 50% 50% 0 0;
}

.scene--ma {
  background: linear-gradient(#10284a 0 50%, #e7b07a 50% 100%);
}

.ma-moon {
  position: absolute;
  top: 36px;
  right: 42px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: -8px 2px 0 0 #f4efe6;
}

.ma-arch {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 190px;
  height: 250px;
  transform: translateX(-50%);
  background: #f7efe2;
  border-radius: 100px 100px 0 0;
  box-shadow: inset 0 0 0 16px #1d4e8f;
}

.ma-arch::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 48px;
  bottom: 0;
  border-radius: 80px 80px 0 0;
  background: #12325f;
}

.ma-tiles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background:
    repeating-linear-gradient(90deg, #1d4e8f 0 18px, #f4efe6 18px 36px),
    repeating-linear-gradient(#c45c3e 0 18px, transparent 18px 36px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

.step__num {
  margin-bottom: 28px;
  color: var(--gold);
  font-family: Unbounded, Manrope, sans-serif;
}

.step p:last-child { margin-top: 10px; color: var(--muted); }

.request {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(166, 121, 69, 0.28), transparent 46%),
    var(--sea-deep);
  color: #f4efe6;
  padding: 88px 0;
}

.request__card {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
}

.request .eyebrow { color: var(--gold); }

form { display: grid; gap: 14px; margin-top: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: grid; gap: 8px; }

.field span { font-size: 0.92rem; font-weight: 700; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(28, 25, 21, 0.18);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 16px;
}

textarea { min-height: 120px; resize: vertical; }

.form-status { min-height: 1.4em; font-size: 0.95rem; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--ok); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px;
  color: var(--muted);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 20, 0.62);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--paper-2);
  color: var(--ink);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cabinet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.cabinet-bar__side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabinet-bar__who { color: var(--muted); font-size: 0.95rem; }

.cabinet {
  width: min(800px, calc(100% - 40px));
  margin: 40px auto 80px;
}

.cabinet h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

.cabinet__tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 8px;
}

.leads { display: grid; gap: 12px; margin-top: 18px; }

.lead {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}

.lead__top, .lead__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lead__meta { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.lead p { margin-top: 10px; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3e4cf;
  color: #6d4c22;
  font-size: 0.85rem;
  font-weight: 700;
}

.empty { margin-top: 18px; color: var(--muted); }

@media (max-width: 980px) {
  .orbit { opacity: 0.35; right: -120px; }
}

@media (max-width: 860px) {
  .place, .place--flip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .scene, .place--flip .scene { order: -1; min-height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .orbit { opacity: 0.45; right: -140px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px 20px;
    background: rgba(244, 239, 230, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }
  .nav .btn { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .place__facts li { grid-template-columns: 1fr; gap: 2px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit__ring, .vn-boat { animation: none; }
  .btn { transition: none; }
}
