:root {
  --bg: #f4eee8;
  --bg-soft: #ebe2dd;
  --bg-deep: #d8c8c2;
  --surface: #fbf8f5;
  --text: #262323;
  --muted: #665f5d;
  --quiet: #817875;
  --line: #d7cbc5;
  --accent: #744e4d;
  --accent-dark: #583a39;
  --button: #202020;
  --button-text: #fffaf6;
  --footer-muted: #bfb5b0;
  --footer-copy: #d7ceca;
  --footer-link-line: #756d69;
  --legal-copy: #423d3b;
  --font-display: Spectral, "Iowan Old Style", Palatino, serif;
  --font-body: Manrope, "Segoe UI", sans-serif;
  --wrap: 76rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-height: 4.5rem;
  --section-space: clamp(4.5rem, 8vw, 8rem);
  --radius-small: 0.75rem;
  --radius-medium: 1.5rem;
  --radius-large: 2rem;
  --shadow-button: 0 0.8px 0.8px -0.3px #24242426,
    0 2px 2px -0.6px #24242426,
    0 3.6px 3.6px -0.9px #24242426,
    0 6px 6px -1.2px #24242426,
    0 10px 10px -1.5px #24242426,
    0 16px 16px -1.8px #24242426,
    0 28px 28px -2.1px #24242426;
  --shadow-header: 0 3px 7px #24242420, 0 8px 16px #24242412;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: min(calc(100% - 2 * var(--pad)), var(--wrap));
  margin-inline: auto;
}

.skipLink {
  position: fixed;
  z-index: 100;
  left: var(--pad);
  top: -5rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  text-decoration: none;
}

.skipLink:focus {
  top: 0.75rem;
}

.siteHeader {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px);
}

.headerInner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.siteNav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.siteNav a,
.textLink {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.siteNav a:hover,
.textLink:hover {
  color: var(--text);
}

.headerAction {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow-header);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.headerAction:hover {
  background: #0e0e0e;
  color: var(--button-text);
}

.headerAction:active {
  transform: translateY(1px);
}

.section {
  padding-block: var(--section-space);
}

.hero {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: 0;
}

.heroCopy,
.sectionIntro {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(3.1rem, 7.5vw, 6.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
}

.heroLead {
  max-width: 49rem;
  margin: 2rem auto 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  text-wrap: balance;
}

.heroDetail,
.sectionLead {
  max-width: 43rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.primaryButton {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.primaryButton {
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-text);
  box-shadow: var(--shadow-button);
}

.primaryButton:hover {
  background: #0e0e0e;
  transform: translateY(-2px);
}

.primaryButton:active {
  transform: translateY(0);
}

.heroGallery {
  position: relative;
  width: 100%;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.heroGallery.isDragging {
  cursor: grabbing;
}

.heroTrack {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  background: var(--bg-deep);
}

.heroSlide {
  width: 100%;
  height: 100%;
  margin: 0;
  animation: slideReveal 420ms ease both;
}

.heroSlide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sliderDot {
  border: 0;
  cursor: pointer;
}

.sliderArrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 4vw, 3.25rem);
  height: clamp(2.5rem, 4vw, 3.25rem);
  padding: 0;
  border: 1px solid #ffffffaa;
  border-radius: 50%;
  background: #fffaf6b8;
  color: var(--text);
  box-shadow: 0 0.4rem 1.6rem #2b202033;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}

.sliderArrow:hover {
  background: #fffaf6e8;
  transform: translateY(-50%) scale(1.04);
}

.sliderArrowPrevious {
  left: clamp(0.75rem, 2vw, 1.75rem);
}

.sliderArrowNext {
  right: clamp(0.75rem, 2vw, 1.75rem);
}

.sliderDots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.sliderDot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ffffff66;
  box-shadow: 0 1px 5px #2b202066;
}

.sliderDot[aria-current="true"] {
  background: #fff;
}

.howSection {
  background: var(--surface);
}

.sectionIntro h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.sectionIntro .sectionLead {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
}

.stepsList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(3.5rem, 6vw, 5rem) 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: steps;
}

.stepItem {
  min-width: 0;
  padding: 1.5rem clamp(1rem, 2vw, 2rem) 0;
  border-right: 1px solid var(--line);
  counter-increment: steps;
}

.stepItem:last-child {
  border-right: 0;
}

.stepNumber {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
}

.stepItem h3 {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stepItem p {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.storyVisual,
.afterVisual {
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.storyVisual {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-large);
}

.storyVisual img,
.afterVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afterSection {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: var(--bg-soft);
}

.afterGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.afterCopy h2 {
  max-width: 12ch;
}

.afterCopy .sectionLead {
  margin-inline: 0;
}

.examplesTitle {
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}

.messageList {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.messageList li {
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, white);
  border-radius: 1.25rem 1.25rem 1.25rem 0.35rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--quiet);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.afterPunch {
  width: 100%;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  color: var(--quiet);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.afterVisual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-large);
}

.afterVisual img {
  object-position: center;
}

.finalSection {
  padding-block: clamp(8rem, 14vw, 13rem);
  background: var(--surface);
  color: var(--text);
}

.finalInner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.finalInner h2 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 4.8vw, 4.5rem);
  line-height: 1.08;
}

.finalInner .primaryButton {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}

.finalInner p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.siteFooter {
  padding-block: 2.25rem;
  background: var(--text);
  color: #e8dfda;
}

.footerInner {
  display: grid;
  grid-template-columns: minmax(18rem, 1.4fr) repeat(2, minmax(10rem, 0.6fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  font-size: 0.82rem;
}

.footerInner p {
  margin: 0;
}

.footerBrand {
  display: inline-block;
  color: white;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
}

.footerIdentity > p {
  margin-top: 0.55rem;
  color: var(--footer-muted);
}

.merchantSummary {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.25rem;
  color: var(--footer-copy);
  font-style: normal;
}

.merchantSummary strong {
  color: white;
  font-weight: 500;
}

.footerCol h2 {
  margin: 0 0 0.75rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footerCol ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footerCol a,
.merchantSummary a {
  color: var(--footer-copy);
  text-decoration-color: var(--footer-link-line);
  text-underline-offset: 0.2em;
}

.legalHero {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.wrapNarrow {
  width: min(calc(100% - 2 * var(--pad)), 48rem);
  margin-inline: auto;
}

.legalHero h1 {
  max-width: 12ch;
  margin-top: 0.75rem;
}

.legalHero p:last-child {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.legalDocument {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.legalToc {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.legalToc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legalBlock {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.legalBlock h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.legalBlock h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1rem;
}

.legalBlock p,
.legalBlock li,
.requisitesList {
  color: var(--legal-copy);
}

.legalBlock p {
  margin: 1rem 0 0;
}

.requisitesList {
  display: grid;
  margin: 2rem 0 0;
}

.requisitesList div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}

.requisitesList dt {
  color: var(--muted);
}

.requisitesList dd {
  margin: 0;
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: scale(1.008);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 800px) {
  .siteNav {
    display: none;
  }

  .headerInner {
    grid-template-columns: 1fr auto;
  }

  .stepsList {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .stepItem {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .stepNumber {
    grid-row: span 2;
  }

  .stepItem h3,
  .stepItem p {
    margin-top: 0;
  }

  .stepItem p {
    margin-top: 0.6rem;
  }

  .afterGrid {
    grid-template-columns: 1fr;
  }

  .afterCopy h2 {
    max-width: 16ch;
  }

  .afterVisual {
    aspect-ratio: 16 / 10;
  }

  .footerInner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .requisitesList div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 4rem;
    --section-space: 4.5rem;
  }

  .headerAction {
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .hero {
    padding-top: 4rem;
  }

  .heroLead {
    font-size: 1.08rem;
  }

  .heroDetail {
    font-size: 0.95rem;
  }

  .heroActions {
    align-items: stretch;
    flex-direction: column;
  }

  .primaryButton {
    width: 100%;
  }

  .heroTrack {
    aspect-ratio: 4 / 5;
  }

  .heroSlide img {
    object-position: center;
  }

  .heroSlide:nth-child(1) img {
    object-position: 41% center;
  }

  .heroSlide:nth-child(3) img {
    object-position: 59% center;
  }

  .sliderArrow {
    width: 2.35rem;
    height: 2.35rem;
    background: #fffaf69e;
  }

  .storyVisual {
    aspect-ratio: 4 / 5;
  }

  .storyVisual img {
    object-position: 45% center;
  }

  .afterVisual {
    aspect-ratio: 4 / 5;
  }

}

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

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