/* Тёплый минимализм. Меняйте палитру здесь. */
:root {
  --bg: #f7f3ed;
  --bg-warm: #efe6da;
  --ink: #39332f;
  --muted: #5c534c;
  --sage: #8a9a83;
  --sage-deep: #5c6b55;
  --sage-deep-hover: #516348;
  --sage-deep-active: #465742;
  --button-text: #f7f3ed;
  --rose: #c9b2a6;
  --line: rgba(57, 51, 47, 0.14);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --page: 1000px;
  --gutter: clamp(1.125rem, 4vw, 1.5rem);
  --ease: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  text-wrap: balance;
  hyphens: none;
}

h1,
h1.page-title {
  margin: 0 0 1.75rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
}

h2 {
  margin: 0 0 1.15rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

p,
a,
li,
span {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

strong,
b,
.highlight,
.prose strong {
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

::selection {
  background: #e4ddd2;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.6rem 0.9rem;
  background: var(--sage-deep);
  color: var(--button-text);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  padding: env(safe-area-inset-top) 0 0;
}

.wordmark {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink);
  transition: color var(--ease);
}

.wordmark:hover {
  color: var(--sage-deep);
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 5.25rem) 0 clamp(1rem, 3vw, 1.5rem);
}

.hero-ornament {
  display: none;
}

.mark {
  width: 2.5rem;
  height: 1px;
  margin-bottom: 1.6rem;
  background: var(--sage);
}

.prose {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose .stanza {
  margin: 0 0 1.15rem;
}

.prose .stanza p {
  margin: 0 0 0.4rem;
}

.prose .stanza p:last-child {
  margin-bottom: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}


.block {
  padding-top: clamp(4.75rem, 11vw, 8rem);
}

.band {
  margin-top: clamp(4.75rem, 11vw, 8rem);
  padding: clamp(4rem, 9vw, 6.75rem) 0;
  background: var(--bg-warm);
}

.direction + .direction {
  margin-top: clamp(3.75rem, 8vw, 6rem);
}

.direction + .direction::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  background: var(--rose);
}

.direction-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.direction-head h2 {
  margin: 0;
}

.direction-icon {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.35rem;
  color: var(--sage);
}

.direction-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.85rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--sage-deep);
  color: var(--button-text);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color var(--ease);
}

button.button {
  border: 0;
  cursor: pointer;
}

button.button:disabled {
  opacity: 0.65;
  cursor: default;
}

.button .arrow {
  display: inline-block;
  transition: transform var(--ease);
}

.form-error {
  min-height: 1.4em;
  margin: 1rem 0 0;
  color: #7a3e32;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button + h2 {
  margin-top: 1.75rem;
}

.button:active {
  background: var(--sage-deep-active);
}

.button-quiet {
  margin-top: 0;
  margin-bottom: 2rem;
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid rgba(92, 107, 85, 0.45);
}

.button-quiet:active {
  background: rgba(138, 154, 131, 0.16);
  color: var(--sage-deep);
}

.button-back {
  margin-top: 3rem;
  margin-bottom: 0;
}

.end-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 3rem;
}

.end-nav .button {
  width: 100%;
  margin: 0;
}

.doc-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sage-deep);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.doc-links a span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.doc-links a .arrow {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--ease);
}

.button-step {
  min-height: 2.35rem;
  margin-top: 0.55rem;
  margin-bottom: 0;
  padding: 0.4rem 0.85rem;
  font-size: 14px;
  font-weight: 600;
}

.closing {
  padding-top: clamp(5.5rem, 13vw, 9.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.closing .mark {
  background: var(--rose);
}

.prose .closing-last,
.after-button {
  margin-top: 2.25rem;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.prose .price-line {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer {
  margin-top: clamp(4.5rem, 10vw, 7.5rem);
  padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(92, 107, 85, 0.45);
  border-radius: 12px;
  color: var(--sage-deep);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  background: transparent;
  transition: background-color var(--ease), color var(--ease);
}

.footer-nav a:hover {
  color: var(--sage-deep);
  background: rgba(138, 154, 131, 0.14);
}

.levels {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
}

.levels li + li {
  margin-top: 1.65rem;
}

.levels h3 {
  margin: 0 0 0.4rem;
}

.levels p {
  margin: 0;
}

.subpage {
  padding-top: clamp(2.6rem, 6vw, 4.75rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.subpage .lead {
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
}

.subpage section + section {
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
}

.subpage h2 {
  margin-bottom: 0.85rem;
}

.subpage .prose h3 {
  margin: 2rem 0 0.85rem;
}

.subpage .prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0.35rem 0 1.15rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.3rem;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 0.35rem;
}

.field label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(92, 107, 85, 0.45);
  border-radius: 12px;
  background: #fbf8f4;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field .hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.after-pay {
  margin-top: 1.35rem;
}

.details-form {
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
}

.steps {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  counter-reset: item;
}

.steps li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sage-deep);
}

.legal h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.legal .note {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.legal section + section {
  margin-top: 2.25rem;
}

.legal h2 {
  margin-bottom: 0.7rem;
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal a {
  color: var(--sage-deep);
  overflow-wrap: anywhere;
}

.legal-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 0;
  background: var(--bg);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch button {
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--sage-deep);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: default;
}

.lang-switch .slash {
  color: var(--muted);
  font-weight: 600;
}

.legal-copy[hidden] {
  display: none;
}

.legal-copy h1 {
  max-width: none;
}

.legal-blank {
  min-height: 2.4rem;
  margin: 0.35rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  .button {
    width: auto;
    max-width: 100%;
    padding-inline: 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: row;
    width: auto;
  }
}

@media (min-width: 1440px) {
  .hero-ornament {
    display: block;
    position: absolute;
    top: 5rem;
    right: max(2rem, calc((100% - var(--page)) / 2 - 8.5rem));
    width: 6.75rem;
    color: var(--sage);
    opacity: 0.5;
    pointer-events: none;
  }
}

@media (hover: hover) {
  .button:hover {
    background: var(--sage-deep-hover);
  }

  .button:hover .arrow,
  .doc-links a:hover .arrow {
    transform: translateX(4px);
  }

  .doc-links a:hover {
    color: var(--sage-deep-hover);
  }

  .button-quiet:hover {
    background: rgba(138, 154, 131, 0.16);
    color: var(--sage-deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal:not(.is-visible),
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button,
  .button .arrow,
  .wordmark,
  .footer-nav a {
    transition: none;
  }
}

h1,
h2,
h3,
h1.page-title,
.page-title,
.direction-head h2,
.levels h3,
.subpage h2,
.subpage .prose h3,
.closing h2,
.legal h1,
.legal h2,
.steps h3,
.price-line,
.closing-last,
.after-button,
.wordmark,
.footer-name {
  font-family: "Montserrat", sans-serif;
}
