:root {
  --void: #08090c;
  --ink: #0d1016;
  --panel: #141821;
  --bone: #efe6d4;
  --mute: #9aa3b4;
  --gold: #c6a56a;
  --gold-2: #e4d2a4;
  --line: rgba(198, 165, 106, 0.18);
  --max: 1184px;
  --nav: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--void);
}

.skip:focus {
  top: 16px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.meridian {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 48px;
  width: 1px;
  height: 100%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.28;
}

.meridian::before,
.meridian::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.meridian::before {
  top: 18%;
}

.meridian::after {
  bottom: 18%;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 12, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 9, 12, 0.88);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-links a:hover {
  color: var(--bone);
}

.nav-cta {
  color: var(--void) !important;
  background: var(--gold);
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--gold-2);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-menu {
  position: relative;
}

.lang-globe,
.menu {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.menu {
  display: none;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
  z-index: 10;
}

.lang-dropdown button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--mute);
  padding: 10px 12px;
  cursor: pointer;
}

.lang-dropdown button.active,
.lang-dropdown button:hover {
  color: var(--bone);
  background: rgba(198, 165, 106, 0.08);
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy .wrap {
  width: min(640px, calc(100% - 48px));
  margin-left: max(48px, calc((100vw - var(--max)) / 2));
  margin-right: 0;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tag {
  margin: 24px 0 0;
  max-width: 28ch;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-2);
  line-height: 1.35;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 38ch;
  color: var(--mute);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  min-height: 44px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, transform 150ms ease-out;
}

.btn:hover {
  background: rgba(198, 165, 106, 0.12);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--gold);
  color: var(--void);
}

.btn.primary:hover {
  background: var(--gold-2);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.chart {
  position: absolute;
  inset: 8% 6% 8% 4%;
  z-index: 0;
  opacity: 0.55;
  animation: orbit 90s linear infinite;
}

.hero-photo {
  position: absolute;
  inset: 48px 48px 48px 24px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.78) contrast(1.06);
}

.hero-photo .hero-mob {
  display: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 12, 0.55));
}

.manifesto {
  border-block: 1px solid var(--line);
  padding: 88px 0;
}

.manifesto h2 {
  margin: 12px 0 48px;
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  max-width: 18ch;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 32px 28px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step:first-child {
  padding-left: 0;
}

.idx {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.step h3,
.pillar h3,
.domain h3,
.offer h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: 24px;
  margin: 12px 0 12px;
}

.step p,
.pillar p,
.domain p,
.offer p,
.about-copy p {
  margin: 0;
  color: var(--mute);
}

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: end;
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.pillars {
  display: grid;
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: 140px 280px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.pillar h3 {
  margin: 0;
  font-size: 22px;
}

.domains {
  display: grid;
  gap: 0;
}

.domain {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.domain:last-child {
  border-bottom: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  object-position: center 82%;
  filter: saturate(0.8) contrast(1.04);
  border: 1px solid var(--line);
}

.about h2 {
  margin: 8px 0 8px;
  font-family: "Bodoni Moda", serif;
  font-size: 56px;
  font-weight: 500;
}

.aka {
  font-style: italic;
  color: var(--gold-2);
  margin: 0 0 24px;
}

.quote {
  margin: 32px 0 16px;
  font-family: "Bodoni Moda", serif;
  font-size: 28px;
  font-style: italic;
  color: var(--gold-2);
}

.about-lines {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-lines li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
}

.gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-template-rows: 280px 220px;
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.gallery figure {
  overflow: hidden;
  margin: 0;
}

.gallery figure:nth-child(1) {
  grid-row: 1 / 3;
}

.gallery figcaption {
  grid-column: 1 / -1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.offer {
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: var(--ink);
  min-height: 240px;
}

.booking {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--line);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--gold-2);
}

.form-status.error {
  color: #e08a7a;
}

.telegram {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--mute);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .chart,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .meridian {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    inset: var(--nav) 0 0 0;
    z-index: 30;
    background: rgba(8, 9, 12, 0.96);
    padding: 32px 24px;
    transform: translateY(-120%);
    transition: transform 220ms ease-out;
  }
  .mobile-panel.open {
    transform: none;
  }
  .mobile-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }
  .hero,
  .about,
  .booking,
  .section-head,
  .steps,
  .pillars,
  .offers,
  .domain,
  .field.two {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-copy {
    padding: 48px 0 24px;
  }
  .hero-copy .wrap {
    width: min(var(--max), calc(100% - 32px));
    margin-inline: auto;
  }
  .hero-visual {
    height: 72vh;
    min-height: 520px;
  }
  .hero-photo {
    inset: 0 16px 32px;
  }
  .hero-photo .hero-desk {
    display: none;
  }
  .hero-photo .hero-mob {
    display: block;
  }
  .chart {
    inset: 0;
  }
  .step,
  .pillar {
    border-right: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .pillar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
  }
  .gallery figure:nth-child(1) {
    grid-row: auto;
    grid-column: 1 / -1;
    height: 280px;
  }
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery figure,
  .gallery img {
    height: 240px;
  }
  .about-photo img {
    height: 520px;
  }
  .footer-inner {
    flex-direction: column;
  }
}
