:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --bg-soft: #14120f;
  --surface: #191612;
  --surface-raised: #211d17;
  --text: #f2ede3;
  --text-soft: #c8c0b3;
  --muted: #8f877b;
  --gold: #cda96d;
  --gold-bright: #dfbd82;
  --gold-dark: #8e6b3f;
  --button-gold: #e2b95f;
  --button-gold-hover: #f0ca76;
  --line: rgba(215, 184, 130, 0.18);
  --line-strong: rgba(215, 184, 130, 0.36);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --shell: min(1180px, calc(100vw - 40px));
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(154, 112, 57, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.is-dialog-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--gold);
  background: var(--bg);
  color: var(--text);
}

.skip-link:focus {
  transform: none;
}

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

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

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.hero__glow {
  position: absolute;
  right: -16rem;
  bottom: -16rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: rgba(182, 133, 67, 0.08);
  filter: blur(90px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding-block: 24px 72px;
}

.hero__media {
  order: -1;
}

.portrait-frame {
  position: relative;
  margin-inline: -20px;
  overflow: hidden;
  background: var(--surface);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 12, 10, 0.44));
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.12 / 1;
  object-fit: cover;
  object-position: 55% 45%;
  filter: saturate(0.82) contrast(1.03) brightness(0.87);
}

.portrait-frame__line {
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(231, 203, 155, 0.3);
  pointer-events: none;
}

.portrait-frame__caption {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  color: rgba(248, 240, 226, 0.7);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 17vw, 84px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
}

.hero__lead {
  max-width: 31rem;
  margin: 28px 0 34px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: clamp(21px, 5.8vw, 28px);
  line-height: 1.34;
  letter-spacing: -0.018em;
  text-align: center;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 650;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.button--primary {
  width: min(330px, 100%);
  padding: 17px 18px;
  background: var(--button-gold);
  box-shadow: 0 12px 38px rgba(176, 122, 40, 0.28);
  color: #17120d;
  white-space: nowrap;
}

.button--primary:hover {
  transform: translateY(-2px);
  background: var(--button-gold-hover);
  box-shadow: 0 16px 46px rgba(176, 122, 40, 0.36);
}

.button--primary:hover svg {
  transform: translateX(3px);
}

.button--primary:active {
  transform: translateY(0);
}

.details {
  position: relative;
  padding-block: 94px 102px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 20rem),
    var(--bg-soft);
}

.details::after {
  position: absolute;
  top: 0;
  right: 8%;
  width: 1px;
  height: 88px;
  content: "";
  background: linear-gradient(var(--gold-dark), transparent);
}

.details__inner {
  display: grid;
  gap: 66px;
}

.details__intro {
  text-align: center;
}

.details h2 {
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(24px, 6.4vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.details h2 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.details__line {
  display: block;
}

.details__label {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.outcomes {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.outcomes li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.outcomes__number {
  padding-top: 4px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 12px;
}

.outcomes p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.outcomes strong {
  color: var(--text);
  font-weight: 650;
}

.cta-stack {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.cta-stack--hero {
  width: 100%;
}

.cta-stack--details {
  width: 100%;
  margin-top: 46px;
}

.cta-caption {
  width: 100%;
  margin: 16px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(12px, 3.25vw, 15px);
  line-height: 1.5;
  text-align: center;
}

.cta-caption p {
  margin: 0;
  white-space: nowrap;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 11px;
}

.footer__legal {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  text-decoration-color: rgba(205, 169, 109, 0.38);
  text-underline-offset: 4px;
}

.footer a:hover {
  color: var(--text-soft);
}

.telegram-link {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.telegram-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(205, 169, 109, 0.08);
}

.telegram-link svg {
  width: 23px;
  fill: currentColor;
}

.form-dialog {
  width: min(940px, calc(100vw - 24px));
  max-width: none;
  height: min(880px, calc(100dvh - 24px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

.form-dialog[open] {
  animation: dialog-in 220ms ease both;
}

.form-dialog::backdrop {
  background: rgba(3, 3, 2, 0.82);
  backdrop-filter: blur(8px);
  animation: backdrop-in 200ms ease both;
}

.form-dialog__panel {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.form-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.form-dialog__header .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}

.form-dialog__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.icon-button:hover {
  border-color: var(--gold);
  background: rgba(205, 169, 109, 0.08);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.form-dialog__content {
  min-height: 0;
  overflow: auto;
  background: #f7f7f7;
  overscroll-behavior: contain;
}

.form-dialog__content iframe {
  display: block;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #f7f7f7;
}

.form-loading,
.form-error {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 32px;
  color: #46413b;
  text-align: center;
}

.form-loading__mark {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(66, 56, 43, 0.2);
  border-top-color: #8e6b3f;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.reveal {
  animation: reveal-up 700ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal--delay {
  animation-delay: 180ms;
}

@keyframes reveal-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes dialog-in {
  from {
    transform: translateY(12px) scale(0.985);
    opacity: 0;
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

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

@media (min-width: 700px) {
  :root {
    --shell: min(1180px, calc(100vw - 80px));
  }

  .button--primary {
    width: 330px;
    padding-inline: 24px;
  }

  .cta-stack--hero {
    align-items: center;
    width: auto;
  }

}

@media (min-width: 900px) {
  .hero__inner {
    display: grid;
    min-height: 100svh;
    align-items: center;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(54px, 8vw, 120px);
    padding-block: 58px;
  }

  .hero__media {
    order: initial;
    grid-column: 2;
    grid-row: 1;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
  }

  .portrait-frame {
    margin: 0;
    box-shadow: 24px 28px 70px rgba(0, 0, 0, 0.28);
  }

  .portrait-frame::before {
    position: absolute;
    z-index: -1;
    top: -22px;
    right: -22px;
    width: 44%;
    height: 52%;
    border-top: 1px solid var(--gold-dark);
    border-right: 1px solid var(--gold-dark);
    content: "";
  }

  .portrait-frame img {
    aspect-ratio: 1 / 1.06;
  }

  .hero h1 {
    font-size: clamp(72px, 7.2vw, 112px);
    text-align: left;
  }

  .hero__lead {
    margin-top: 36px;
    font-size: clamp(24px, 2.1vw, 31px);
    text-align: left;
  }

  .details__intro {
    text-align: left;
  }

  .details h2 {
    max-width: 15ch;
    margin-left: 0;
  }

  .details__line {
    display: inline;
  }

  .details {
    padding-block: 140px 150px;
  }

  .details__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.8fr);
    gap: clamp(80px, 10vw, 160px);
  }

  .details h2 {
    font-size: clamp(48px, 4.2vw, 66px);
  }

  .outcomes p {
    font-size: 18px;
  }

  .form-dialog__header {
    padding: 24px 28px;
  }
}

@media (max-width: 480px) {
  .form-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .form-dialog__header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .portrait-frame__caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.success-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 16%, rgba(205, 169, 109, 0.12), transparent 25rem),
    var(--bg);
}

.success-card {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 48%), var(--surface);
  box-shadow: var(--shadow);
}

.success-card::before,
.success-card::after {
  position: absolute;
  width: 46px;
  height: 46px;
  content: "";
  pointer-events: none;
}

.success-card::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--gold-dark);
  border-left: 1px solid var(--gold-dark);
}

.success-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

.success-card__mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
}

.success-card__mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.success-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 9vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.success-card__text {
  max-width: 31rem;
  margin: 28px 0 34px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.success-card__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.legal-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(154, 112, 57, 0.08), transparent 32rem),
    var(--bg);
}

.legal-header {
  width: min(820px, calc(100vw - 40px));
  margin-inline: auto;
  padding-top: 28px;
}

.legal-back {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--text);
}

.legal-document {
  width: min(820px, calc(100vw - 40px));
  margin-inline: auto;
  padding-block: clamp(70px, 10vw, 120px);
}

.legal-document > h1 {
  max-width: 13ch;
  margin: 0 0 70px;
  font-family: var(--serif);
  font-size: clamp(43px, 7vw, 70px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-document section {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document ul {
  margin: 0 0 22px;
  padding-left: 21px;
}

.legal-document li {
  margin-bottom: 7px;
  padding-left: 4px;
}

.legal-document strong {
  color: var(--text);
  font-weight: 620;
}

.legal-document a {
  color: var(--gold-bright);
  text-underline-offset: 4px;
}

.legal-document code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
