:root {
  --paper: #f6f0e7;
  --paper-deep: #eee2d4;
  --surface: #fffdf8;
  --surface-warm: #f2dfcc;
  --ink: #2c211b;
  --ink-soft: #4c3d34;
  --muted: #78695f;
  --line: #d9cabe;
  --terracotta: #bd5d3b;
  --terracotta-dark: #934226;
  --clay: #d59468;
  --chocolate: #31231d;
  --cream: #fff8ee;
  --font-body: "Golos Text", Arial, sans-serif;
  --font-display: "Manrope", "Golos Text", Arial, sans-serif;
  --font-card: "Onest", "Golos Text", Arial, sans-serif;
  --font-card-display: "Literata", Georgia, serif;
  --container: 1200px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 24px 70px rgba(72, 45, 30, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--cream);
  background: var(--chocolate);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-bg {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(79, 54, 41, 0.12);
  background: rgba(246, 240, 231, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 34px;
  height: 31px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.86;
}

.brand-name,
.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
}

.header-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.header-cta {
  min-height: 42px;
  padding-inline: 18px;
  color: var(--cream);
  background: var(--chocolate);
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--terracotta-dark);
}

.button-primary {
  color: var(--cream);
  background: var(--terracotta);
  box-shadow: 0 12px 28px rgba(151, 67, 38, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--terracotta-dark);
  box-shadow: 0 16px 34px rgba(151, 67, 38, 0.24);
}

.button-text {
  min-height: auto;
  padding: 10px 0;
  border-radius: 0;
  border-bottom-color: var(--ink);
}

.button-text:hover,
.button-text:focus-visible {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta-dark);
}

.section {
  padding: 92px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 0;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  height: clamp(590px, 56.25vw, 675px);
  overflow: hidden;
  border: 1px solid rgba(84, 55, 38, 0.18);
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  box-shadow: 0 28px 80px rgba(72, 45, 30, 0.14);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background-image: url("reforma-hero-runner-poster-end.jpg");
  background-position: center;
  background-size: cover;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.18s linear;
}

.hero-stage.is-ended .hero-video,
.hero-stage.is-static .hero-video {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(246, 240, 231, 0.99) 0%,
      rgba(246, 240, 231, 0.94) 35%,
      rgba(246, 240, 231, 0.72) 49%,
      rgba(246, 240, 231, 0.18) 67%,
      transparent 78%
    );
  opacity: 1;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero-stage.is-primed:not(.is-copy-visible) .hero-shade {
  opacity: 0.08;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(60%, 700px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 4.8vw, 68px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 22px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.hero h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(44px, 4.45vw, 64px);
  font-weight: 700;
  line-height: 1.02;
}

.hero h1 em {
  display: block;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-bottom: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(76, 61, 52, 0.3);
  font-size: 12px;
  line-height: 1.45;
}

.fact-mark {
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero-stage.is-primed:not(.is-copy-visible) .hero-copy > * {
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.js .hero-stage.is-copy-visible .hero-copy > .eyebrow {
  transition-delay: 0s;
}

.js .hero-stage.is-copy-visible .hero-copy > h1 {
  transition-delay: 0.07s;
}

.js .hero-stage.is-copy-visible .hero-copy > .hero-text {
  transition-delay: 0.15s;
}

.js .hero-stage.is-copy-visible .hero-copy > .hero-actions {
  transition-delay: 0.23s;
}

.js .hero-stage.is-copy-visible .hero-copy > .hero-facts {
  transition-delay: 0.32s;
}

.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-ribbon div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.hero-ribbon div:first-child {
  padding-left: 0;
}

.hero-ribbon div:last-child {
  border-right: 0;
}

.hero-ribbon strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.hero-ribbon span {
  color: var(--muted);
  font-size: 12px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: end;
  margin-bottom: 46px;
}

.section-intro h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 700;
}

.section-lead {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.editorial-card {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  font-family: var(--font-card);
  border: 1px solid #d4c5b8;
  border-radius: var(--radius-md);
  background: #e9e1d9;
  box-shadow: 0 12px 32px rgba(72, 45, 30, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(189, 93, 59, 0.42);
  box-shadow: var(--shadow-soft);
}

.editorial-card-topics {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  grid-column: 1 / -1;
  gap: 22px 64px;
  align-items: end;
  padding: 38px 42px;
  background: #e9e1d9;
  border-color: #d4c5b8;
}

.editorial-card-pace {
  background: #e9e1d9;
  border-color: #d4c5b8;
}

.editorial-card-telegram {
  color: var(--ink);
  background: #e9e1d9;
  border-color: #d4c5b8;
}

.editorial-mark {
  width: 38px;
  height: 5px;
  display: block;
  margin-bottom: 36px;
  background: var(--terracotta);
  border-radius: 999px;
}

.editorial-card-topics .editorial-mark {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.editorial-card h3 {
  font-family: var(--font-card-display);
  font-optical-sizing: auto;
  margin-bottom: 16px;
  font-size: clamp(30px, 2.65vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.editorial-card-topics h3 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(33px, 3.2vw, 43px);
  line-height: 1.09;
}

.editorial-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.68;
}

.editorial-card-topics p:last-child {
  max-width: 430px;
  margin-top: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.about-section {
  padding-bottom: 56px;
}

.safety-section {
  padding-top: 18px;
}

.safety-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 5vw, 70px);
  padding: clamp(38px, 5vw, 60px);
  border: 1px solid #d4b89e;
  border-left: 7px solid var(--terracotta);
  border-radius: 6px var(--radius-lg) var(--radius-lg) 6px;
  background: var(--surface-warm);
  box-shadow: 0 20px 60px rgba(86, 54, 35, 0.08);
}

.safety-heading {
  align-self: start;
}

.safety-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4vw, 54px);
}

.safety-heading > p:last-child {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.safety-heading a {
  color: var(--terracotta-dark);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.safety-list {
  border-top: 1px solid rgba(81, 51, 35, 0.22);
}

.safety-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(81, 51, 35, 0.22);
}

.check {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--cream);
  background: var(--terracotta);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.safety-list h3 {
  margin-bottom: 7px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.safety-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.pricing-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.46), transparent 42%),
    #e7ded5;
  border-top: 1px solid #d2c4b8;
  border-bottom: 1px solid #d2c4b8;
}

.pricing-section .section-intro {
  align-items: start;
}

.pricing-section .section-lead {
  max-width: 470px;
  margin-top: 7px;
  padding-left: 24px;
  border-left: 2px solid var(--terracotta);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #cabbae;
  border-radius: 18px;
  background: #cabbae;
  box-shadow: 0 20px 52px rgba(72, 45, 30, 0.08);
}

.pricing-card {
  min-height: 336px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 0;
  border-radius: 0;
  background: #fffaf4;
  transition: background-color 0.22s ease;
}

.pricing-card:not(.pricing-card-featured):hover {
  background: #fffdf9;
}

.pricing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.pricing-term {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-tag {
  padding: 6px 9px;
  color: var(--terracotta-dark);
  background: rgba(189, 93, 59, 0.09);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 26px 0 2px;
  font-family: var(--font-display);
}

.pricing-price strong {
  font-size: clamp(42px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.pricing-price span {
  margin-top: 6px;
  color: var(--terracotta);
  font-size: 20px;
  font-weight: 700;
}

.pricing-month {
  margin-bottom: 22px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 600;
}

.pricing-copy {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.button-card {
  width: 100%;
  margin-top: auto;
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-card:hover,
.button-card:focus-visible {
  color: var(--cream);
  background: var(--ink);
}

.pricing-card-featured {
  grid-column: span 2;
  color: var(--cream);
  background: var(--chocolate);
}

.pricing-card-featured .pricing-top {
  border-color: rgba(255, 248, 238, 0.28);
}

.pricing-card-featured .pricing-tag {
  color: var(--cream);
  background: rgba(255, 248, 238, 0.15);
}

.pricing-card-featured .pricing-price span,
.pricing-card-featured .pricing-month,
.pricing-card-featured .pricing-copy {
  color: rgba(255, 248, 238, 0.84);
}

.pricing-card-featured .pricing-price span {
  color: var(--clay);
}

.button-featured {
  width: 100%;
  margin-top: auto;
  color: var(--terracotta-dark);
  background: var(--cream);
}

.button-featured:hover,
.button-featured:focus-visible {
  background: #fff;
  box-shadow: 0 13px 30px rgba(67, 31, 20, 0.16);
}

.steps-section {
  padding: 86px 0 92px;
  color: var(--cream);
  background: var(--chocolate);
}

.steps-section .section-intro {
  margin-bottom: 52px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.2);
}

.steps-section .section-kicker,
.steps-section .step-number {
  color: var(--clay);
}

.steps-section .section-lead,
.steps-list p {
  color: rgba(255, 248, 238, 0.66);
}

.steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  position: relative;
  display: block;
  padding: 38px 36px 0 0;
  border-top: 1px solid rgba(255, 248, 238, 0.26);
}

.steps-list li:not(:first-child) {
  padding-left: 36px;
  border-left: 1px solid rgba(255, 248, 238, 0.16);
}

.steps-list li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid var(--chocolate);
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
}

.steps-list li:not(:first-child)::before {
  left: 36px;
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.steps-list li > div {
  display: block;
}

.steps-list h3 {
  max-width: 300px;
  margin-bottom: 15px;
  font-size: clamp(25px, 2.7vw, 34px);
}

.steps-list p {
  max-width: 320px;
  margin-bottom: 0;
}

.note-section {
  padding: 54px 0;
  background: #eee6dd;
}

.medical-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 30px;
  padding: 0 0 0 30px;
  border-left: 3px solid var(--terracotta);
}

.note-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--terracotta-dark);
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
}

.medical-note .section-kicker {
  margin-bottom: 10px;
}

.medical-note h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.medical-note p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
}

.legal-section {
  padding: 82px 0 92px;
  background: var(--surface);
}

.legal-section .section-intro {
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.62fr);
  align-items: start;
  margin-bottom: 38px;
}

.legal-section .section-intro h2 {
  font-size: clamp(36px, 3.7vw, 52px);
}

.legal-section .section-lead {
  max-width: 520px;
  padding-top: 4px;
}

.legal-cards {
  border-top: 2px solid var(--ink);
}

.legal-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 40px;
  gap: 28px;
  align-items: center;
  padding: 27px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.legal-card:hover,
.legal-card:focus-visible {
  padding-inline: 20px;
  color: var(--terracotta-dark);
  background: rgba(255, 253, 248, 0.55);
}

.legal-card > span {
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.legal-card h3 {
  margin-bottom: 7px;
  font-size: 24px;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-card b {
  font-size: 20px;
  font-weight: 500;
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin-top: 72px;
  padding: clamp(42px, 6vw, 72px);
  color: var(--cream);
  background: var(--terracotta);
  border-radius: var(--radius-lg);
}

.closing-card .section-kicker {
  margin-bottom: 14px;
  color: rgba(255, 248, 238, 0.7);
}

.closing-card h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button-light {
  color: var(--terracotta-dark);
  background: var(--cream);
}

.button-outline-light {
  color: var(--cream);
  border-color: rgba(255, 248, 238, 0.65);
  background: transparent;
}

.button-light:hover,
.button-light:focus-visible {
  background: #fff;
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  color: var(--terracotta-dark);
  background: var(--cream);
}

.site-footer {
  margin-top: 0;
  padding: 78px 0 24px;
  color: rgba(255, 248, 238, 0.78);
  background: var(--chocolate);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 1fr;
  gap: 72px;
}

.brand-footer {
  margin-bottom: 22px;
  color: var(--cream);
}

.brand-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-about p {
  max-width: 390px;
  margin-bottom: 0;
  color: rgba(255, 248, 238, 0.58);
}

.site-footer h3 {
  margin-bottom: 20px;
  color: var(--cream);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.footer-links,
.footer-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li,
.footer-meta li {
  margin-bottom: 10px;
  color: rgba(255, 248, 238, 0.58);
  font-size: 13px;
}

.footer-links a,
.footer-meta a {
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-meta a:hover,
.footer-links a:focus-visible,
.footer-meta a:focus-visible {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 248, 238, 0.14);
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 248, 238, 0.42);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Legal pages */

.legal-page {
  background: var(--paper);
}

.legal-page .header-inner {
  min-height: 76px;
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
}

.button-ghost {
  color: var(--cream);
  background: var(--chocolate);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--terracotta-dark);
}

.legal-main {
  padding: 76px 0 110px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.legal-article,
.legal-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.legal-article {
  padding: clamp(32px, 5vw, 68px);
}

.legal-article > .section-kicker {
  display: block;
}

.legal-article h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 62px);
}

.legal-article h2 {
  margin: 42px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(23px, 2.6vw, 30px);
}

.legal-article h3 {
  margin: 30px 0 12px;
  font-size: 20px;
}

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

.legal-article p {
  margin-bottom: 14px;
}

.legal-article ul,
.legal-article ol {
  padding-left: 22px;
}

.legal-article a {
  color: var(--terracotta-dark);
  border-bottom: 1px solid currentColor;
}

.legal-summary {
  position: sticky;
  top: 105px;
  padding: 28px;
}

.legal-summary h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.legal-summary p {
  color: var(--muted);
  font-size: 13px;
}

.summary-links {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.summary-links a {
  padding: 14px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.summary-links a:hover,
.summary-links a:focus-visible {
  color: var(--terracotta-dark);
}

/* Motion */

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

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay {
  transition-delay: 0.1s;
}

.js .reveal-delay-2 {
  transition-delay: 0.18s;
}

:focus-visible {
  outline: 3px solid rgba(189, 93, 59, 0.42);
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .header-nav {
    display: none;
  }

  .hero-stage {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
  }

  .hero-copy {
    order: 1;
    width: 100%;
    height: auto;
    padding: 58px 48px 46px;
  }

  .hero-media {
    position: relative;
    order: 2;
    aspect-ratio: 16 / 9;
    background-position: center;
  }

  .hero-video {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(180deg, transparent 64%, rgba(49, 35, 29, 0.2));
    opacity: 1;
  }

  .hero h1 {
    max-width: 800px;
    font-size: clamp(46px, 6.2vw, 62px);
  }

  .hero-text,
  .hero-facts {
    max-width: 760px;
  }

  .safety-panel {
    gap: 48px;
  }

  .footer-grid {
    gap: 42px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 50px 38px 42px;
  }

  .hero h1 {
    max-width: 730px;
    font-size: clamp(44px, 7.2vw, 58px);
  }

  .hero-ribbon {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
  }

  .hero-ribbon div:nth-child(2) {
    border-right: 0;
  }

  .hero-ribbon div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-ribbon div:nth-child(3) {
    padding-left: 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-card-topics {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .editorial-card-topics .editorial-mark {
    grid-column: auto;
    margin-bottom: 14px;
  }

  .about-section {
    padding-bottom: 50px;
  }

  .safety-section {
    padding-top: 14px;
  }

  .safety-panel {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card-featured {
    grid-column: span 1;
  }

  .pricing-card-long {
    grid-column: span 2;
  }

  .steps-section {
    padding: 72px 0 76px;
  }

  .steps-section .section-intro {
    margin-bottom: 38px;
    padding-bottom: 30px;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list li {
    padding: 22px 0 30px 50px;
    border-top: 0;
    border-left: 1px solid rgba(255, 248, 238, 0.2);
  }

  .steps-list li:not(:first-child) {
    padding-left: 50px;
    border-left-color: rgba(255, 248, 238, 0.2);
  }

  .steps-list li::before,
  .steps-list li:not(:first-child)::before {
    top: 28px;
    left: -6px;
  }

  .step-number {
    margin-bottom: 12px;
  }

  .steps-list li > div {
    display: block;
  }

  .closing-card {
    display: grid;
  }

  .closing-actions {
    justify-content: flex-start;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand-logo {
    width: 30px;
    height: 27px;
  }

  .brand-name,
  .brand-text {
    font-size: 18px;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .header-cta span {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-stage {
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(72, 45, 30, 0.12);
  }

  .hero-copy {
    padding: 38px 24px 32px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .eyebrow span {
    width: 28px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(36px, 10.4vw, 46px);
    line-height: 1.05;
  }

  .hero-text {
    margin-bottom: 26px;
    font-size: 16px;
  }

  .hero-actions {
    gap: 18px;
    margin-bottom: 32px;
  }

  .button-primary {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-facts li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    background-position: 67% center;
  }

  .hero-ribbon {
    margin-top: 42px;
  }

  .hero-ribbon div {
    padding: 19px 14px;
  }

  .hero-ribbon div:first-child,
  .hero-ribbon div:nth-child(3) {
    padding-left: 0;
  }

  .hero-ribbon strong {
    font-size: 15px;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .section-intro h2 {
    font-size: 36px;
  }

  .section-lead {
    font-size: 15px;
  }

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

  .editorial-card {
    min-height: 0;
    grid-column: auto;
    padding: 26px;
  }

  .editorial-mark {
    margin-bottom: 32px;
  }

  .editorial-card h3 {
    font-size: 29px;
  }

  .editorial-card-topics {
    display: flex;
  }

  .editorial-card-topics h3 {
    font-size: 32px;
  }

  .editorial-card p:last-child {
    margin-top: 18px;
  }

  .editorial-card-topics p:last-child {
    margin-top: 4px;
  }

  .about-section {
    padding-bottom: 40px;
  }

  .safety-section {
    padding-top: 8px;
  }

  .safety-panel {
    gap: 34px;
    padding: 30px 24px;
    border-left-width: 5px;
    border-radius: 4px 24px 24px 4px;
  }

  .safety-heading h2 {
    font-size: 36px;
  }

  .safety-heading > p:last-child {
    font-size: 15px;
  }

  .safety-list article {
    grid-template-columns: 31px 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .check {
    width: 28px;
    height: 28px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .pricing-card,
  .pricing-card-long {
    min-height: 316px;
    grid-column: auto;
    padding: 26px;
    border: 1px solid #cabbae;
    border-radius: 14px;
  }

  .steps-list li {
    padding: 20px 0 28px 40px;
  }

  .steps-list li:not(:first-child) {
    padding-left: 40px;
  }

  .steps-list li::before,
  .steps-list li:not(:first-child)::before {
    top: 26px;
  }

  .medical-note {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 0 0 22px;
  }

  .note-mark {
    width: 45px;
    height: 45px;
  }

  .legal-card {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 24px 0;
  }

  .legal-card:hover,
  .legal-card:focus-visible {
    padding-inline: 8px;
  }

  .legal-card h3 {
    font-size: 20px;
  }

  .legal-card p {
    font-size: 13px;
  }

  .closing-card {
    margin-top: 64px;
    padding: 34px 26px;
    border-radius: 24px;
  }

  .closing-card h2 {
    font-size: 34px;
  }

  .closing-actions,
  .closing-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .legal-main {
    padding: 36px 0 72px;
  }

  .legal-article {
    padding: 28px 22px;
  }

  .legal-article h1 {
    font-size: 37px;
  }

  .legal-summary {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  .header-cta {
    padding-inline: 11px;
    font-size: 11px;
  }

  .brand {
    gap: 7px;
  }

  .hero-copy {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-ribbon {
    grid-template-columns: 1fr;
  }

  .hero-ribbon div,
  .hero-ribbon div:first-child,
  .hero-ribbon div:nth-child(3) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-ribbon div:last-child {
    border-bottom: 0;
  }
}

@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;
  }

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