/* LILA_LOCAL_FONTS_V2_20260715 */
@import url("/css/lila-fonts.css?v=20260715-2");

:root {
  --bg: #eee9e1;
  --bg-soft: #f6f1e9;
  --text: #181819;
  --muted: #625f59;
  --line: rgba(36, 36, 36, 0.24);
  --line-strong: rgba(36, 36, 36, 0.36);
  --dark: #101010;
  --card: rgba(247, 242, 234, 0.58);
  --shadow: 0 26px 90px rgba(54, 45, 36, 0.12);
  --font-title: "Oranienbaum", "Times New Roman", serif;
  --font-text: "Manrope", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.58), transparent 38rem),
    linear-gradient(180deg, #eee9e1 0%, #ece7df 100%);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(100% - 120px, 1680px);
  margin-inline: auto;
}

.section {
  position: relative;
  border-bottom: 1px solid rgba(36, 36, 36, 0.11);
}

.mobile-only { display: none; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 32px;
  overflow: hidden;
  border: 1px solid var(--dark);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    transform 420ms var(--ease-out),
    background 420ms var(--ease-out),
    color 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -42%;
  width: 36%;
  transform: skewX(-18deg) translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transition: transform 780ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(18, 18, 18, .10);
}
.btn:hover::before { transform: skewX(-18deg) translateX(420%); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #292825; }
.btn-large { min-height: 64px; min-width: 260px; font-size: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(238, 233, 225, 0.92);
  border-bottom: 1px solid rgba(36, 36, 36, 0.20);
  backdrop-filter: blur(14px);
  transition: background 360ms var(--ease-soft), box-shadow 360ms var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(238, 233, 225, 0.78);
  box-shadow: 0 10px 34px rgba(50, 42, 35, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(310px, .92fr) 1.9fr auto auto;
  align-items: stretch;
  min-height: var(--header-h);
  padding-inline: 34px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  text-transform: uppercase;
}

.brand-mark {
  flex: 0 0 auto;
  font-family: var(--font-title);
  font-size: 36px;
  line-height: 1;
}

.brand-text,
.footer-brand span:last-child {
  color: #2f2d29;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.03em;
}

.desktop-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  border-left: 1px solid rgba(36, 36, 36, 0.22);
  border-right: 1px solid rgba(36, 36, 36, 0.22);
}

.desktop-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 clamp(28px, 2.3vw, 52px);
  overflow: hidden;
  border-right: 1px solid rgba(36, 36, 36, 0.22);
  color: #2a2927;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}
.desktop-nav a:last-child { border-right: 0; }
.desktop-nav a::after {
  content: "→";
  font-size: 22px;
  color: #77716a;
  transition: transform 320ms var(--ease-out);
}
.desktop-nav a::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  transform: translateY(100%);
  background: rgba(255, 255, 255, 0.24);
  transition: transform 360ms var(--ease-out);
  z-index: -1;
}
.desktop-nav a:hover::before { transform: translateY(0); }
.desktop-nav a:hover::after { transform: translateX(7px); }

.header-cta {
  align-self: center;
  min-width: 164px;
  min-height: 42px;
  margin-left: 34px;
  padding-inline: 28px;
  font-size: 13px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-self: center;
  margin-left: 18px;
  border: 0;
  background: transparent;
}
.burger span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 7px auto;
  background: var(--text);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(36, 36, 36, 0.16);
  padding: 22px 24px 28px;
  background: rgba(238, 233, 225, 0.96);
}
.mobile-panel.is-open { display: block; }
.mobile-panel a,
.mobile-panel button { width: 100%; margin-top: 8px; }
.mobile-panel a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36, 36, 36, 0.16);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-panel a::after { content: "→"; color: #77716a; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(720px, 51.35vw, 986px);
}
.hero-grid { display: block; min-height: inherit; }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(45vw, 860px);
  max-width: 860px;
  padding: 118px 0 70px;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(100px, 7.1vw, 138px);
  font-weight: 400;
  line-height: .84;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-subtitle {
  margin: 12px 0 38px;
  font-size: clamp(34px, 2.15vw, 43px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 660px;
  margin-bottom: 38px;
  color: #242424;
  font-size: clamp(16px, .95vw, 18px);
  line-height: 1.62;
}
.hero-lead p { margin: 0 0 12px; }
.hero-benefits {
  width: min(100%, 720px);
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  border-bottom: 1px solid var(--line-strong);
  color: #393633;
  font-size: clamp(15px, .88vw, 17px);
}
.hero-benefits img { width: 28px; height: 28px; }
.hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(820px, 56.5vw, 980px);
  min-height: inherit;
  pointer-events: none;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  transform-origin: 70% 22%;
}

/* Headings */
.section-heading { text-align: center; }
.section-heading h2,
.split-copy h2,
.path-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.section-heading h2 { font-size: clamp(48px, 3.25vw, 66px); }
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  color: #9a9288;
  font-family: var(--font-title);
  font-size: 24px;
}
.ornament span {
  display: block;
  width: 140px;
  height: 1px;
  transform-origin: center;
  background: rgba(153, 146, 136, 0.48);
}

/* How */
.how { padding: 88px 0 132px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 5vw, 88px);
  margin-top: 92px;
}
.step-card {
  position: relative;
  min-height: 445px;
  padding: 34px 38px 24px;
  border: 1px solid rgba(36, 36, 36, 0.26);
  border-radius: 16px;
  background: rgba(243, 238, 230, 0.34);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38) inset;
  transition:
    transform 520ms var(--ease-out),
    box-shadow 520ms var(--ease-out),
    background 520ms var(--ease-out),
    border-color 520ms var(--ease-out);
}
.step-card:hover {
  transform: translateY(-8px);
  background: rgba(246, 241, 233, 0.64);
  border-color: rgba(36, 36, 36, 0.38);
  box-shadow: 0 26px 80px rgba(54, 45, 36, .09);
}
.step-card:not(:last-child)::after {
  content: "✶";
  position: absolute;
  top: 50%;
  right: calc(clamp(34px, 5vw, 88px) / -2 - 14px);
  transform: translateY(-50%);
  color: rgba(36, 36, 36, 0.35);
  font-family: var(--font-title);
  font-size: 30px;
}
.step-number {
  display: block;
  margin-bottom: 32px;
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1;
}
.step-card p {
  min-height: 150px;
  margin: 0;
  font-size: clamp(14px, .84vw, 16px);
  line-height: 1.5;
}
.step-card img {
  width: 150px;
  height: 150px;
  margin: 20px auto 0;
  object-fit: contain;
  transform-origin: center;
}
.step-card:hover img { animation: softFloat 3.2s var(--ease-soft) infinite; }
.mobile-slider-ui { display: none; }

/* About */
.split-section {
  display: block;
  min-height: clamp(720px, 51.35vw, 986px);
  overflow: hidden;
}
.split-image {
  position: absolute;
  z-index: 0;
  top: 0;
  left: -3.45vw;
  width: 91.25vw;
  height: 100%;
  pointer-events: none;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.split-copy {
  position: relative;
  z-index: 2;
  width: min(37.8vw, 720px);
  max-width: 720px;
  margin-left: auto;
  margin-right: clamp(90px, 8.5vw, 164px);
  padding-top: clamp(88px, 7vw, 134px);
  border-top: 1px solid var(--line-strong);
}
.split-copy h2 {
  margin-bottom: 72px;
  font-size: clamp(42px, 3.3vw, 64px);
}
.split-copy p,
.path-copy p {
  margin: 0 0 28px;
  font-size: clamp(16px, .92vw, 18px);
  line-height: 1.68;
}

/* Path */
.path {
  overflow: hidden;
  min-height: clamp(590px, 39.12vw, 751px);
  background:
    radial-gradient(circle at 42% 18%, rgba(255,255,255,.46), transparent 24rem),
    linear-gradient(180deg, rgba(246,241,233,0.33), rgba(238,233,225,0));
}
.path-grid {
  position: relative;
  display: block;
  min-height: inherit;
}
.path-copy {
  position: relative;
  z-index: 2;
  width: min(35.5vw, 650px);
  max-width: 650px;
  padding-top: clamp(120px, 8.75vw, 168px);
}
.path-copy::after {
  content: "◉";
  position: absolute;
  right: -40px;
  bottom: -70px;
  color: rgba(36, 36, 36, 0.22);
  font-size: 48px;
}
.path-copy h2 {
  margin-bottom: 74px;
  font-size: clamp(50px, 3.9vw, 74px);
}
.path-art {
  position: absolute;
  z-index: 0;
  top: 0;
  left: -8.55vw;
  width: 116.25vw;
  height: 100%;
  pointer-events: none;
}
.path-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* FAQ */
.faq { padding: 96px 0 122px; }
.faq-container { max-width: 1460px; }
.accordion {
  width: min(100%, 1440px);
  margin: 94px auto 0;
}
.accordion-item {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(36, 36, 36, 0.24);
  border-radius: 8px;
  background: rgba(244, 239, 231, 0.58);
  transition:
    border-color 380ms var(--ease-out),
    background 380ms var(--ease-out),
    box-shadow 380ms var(--ease-out),
    transform 380ms var(--ease-out);
}
.accordion-item:hover,
.accordion-item.is-open {
  border-color: rgba(36, 36, 36, 0.34);
  background: rgba(248, 243, 235, 0.72);
  box-shadow: 0 16px 44px rgba(54, 45, 36, .055);
}
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 66px;
  padding: 0 28px;
  border: 0;
  background: transparent;
  color: #252321;
  font-size: clamp(15px, .88vw, 17px);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}
.accordion-trigger::after {
  content: "↓";
  flex: 0 0 auto;
  color: #716a62;
  font-size: 22px;
  font-weight: 300;
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out);
}
.accordion-item.is-open .accordion-trigger::after { transform: rotate(180deg); opacity: .82; }
.accordion-panel { height: 0; overflow: hidden; transition: height 560ms var(--ease-out); }
.accordion-panel-inner {
  max-width: 1280px;
  padding: 0 28px 26px;
  color: #34312e;
  font-size: clamp(15px, .84vw, 16px);
  line-height: 1.68;
}
.accordion-panel-inner p { margin: 0; }

/* CTA */
.final-cta {
  overflow: hidden;
  min-height: 610px;
  padding: 110px 0 82px;
  background:
    linear-gradient(180deg, rgba(238,233,225,0) 0%, rgba(238,233,225,0.24) 100%),
    url("../assets/images/cta-bg.webp") center / cover no-repeat;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 49% 54%, rgba(255, 255, 255, .3), transparent 28rem);
  opacity: .8;
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(46px, 3.125vw, 64px); }
.final-cta p {
  margin: 58px 0 54px;
  color: #2f2c29;
  font-size: clamp(21px, 1.45vw, 30px);
  line-height: 1.45;
}
.final-cta .ornament { margin-top: 58px; }
.final-cta .cta-bottom {
  margin: 24px 0 0;
  font-size: clamp(20px, 1.75vw, 32px);
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  padding: 36px 0 34px;
  border-top: 1px solid rgba(36, 36, 36, 0.12);
  background: linear-gradient(90deg, rgba(244,239,231,0.7), rgba(252,235,227,0.44), rgba(244,239,231,0.76));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 48px;
  align-items: center;
  gap: 56px;
}
.footer-brand strong {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 8px;
  padding-left: 30px;
  border-left: 1px solid rgba(36, 36, 36, 0.32);
}
.footer-links a {
  color: #3c3935;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.telegram { display: flex; justify-content: flex-end; }
.telegram img { width: 42px; height: 42px; }

.eyebrow {
  margin: 0 0 12px;
  color: #736c63;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 21, 18, 0.42);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeIn 360ms var(--ease-out) forwards;
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(36, 36, 36, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(235, 197, 158, 0.35), transparent 14rem),
    var(--bg-soft);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px) scale(.97);
  animation: modalIn 520ms var(--ease-out) 60ms forwards;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(36, 36, 36, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #2d2a26;
  font-size: 28px;
  line-height: 1;
  transition: transform 320ms var(--ease-out), background 320ms var(--ease-out);
}
.modal-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.32); }
.modal-card h2 {
  max-width: 520px;
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.modal-intro { max-width: 520px; margin: 0 0 32px; color: var(--muted); }
.start-form { display: grid; gap: 18px; }
.start-form label span { display: block; margin-bottom: 8px; color: #383430; font-size: 13px; font-weight: 600; }
.start-form input[type="email"],
.start-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 36, 36, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 260ms var(--ease-out), background 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.start-form input[type="email"] { min-height: 54px; padding: 0 18px; }
.start-form textarea { resize: vertical; min-height: 122px; padding: 16px 18px; }
.start-form input:focus,
.start-form textarea:focus { border-color: rgba(36, 36, 36, 0.62); background: rgba(255,255,255,.52); box-shadow: 0 0 0 4px rgba(36,36,36,.05); }
.check-row { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 10px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #111; }
.check-row span { margin: 0 !important; font-size: 12px !important; line-height: 1.45; }
.form-note { min-height: 22px; margin: 0; color: #4d473f; font-size: 13px; }

/* Motion */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(10px);
  transition:
    opacity 980ms var(--ease-out),
    transform 980ms var(--ease-out),
    filter 980ms var(--ease-out),
    clip-path 1200ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity, filter;
}
.js-ready .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }

/* Hero has its own intro, without the bad “jump” */
.js-ready .hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
.js-ready .hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(6px);
  animation: heroLineIn 900ms var(--ease-out) forwards;
}
.js-ready .hero-copy > *:nth-child(1) { animation-delay: 80ms; }
.js-ready .hero-copy > *:nth-child(2) { animation-delay: 160ms; }
.js-ready .hero-copy > *:nth-child(3) { animation-delay: 240ms; }
.js-ready .hero-copy > *:nth-child(4) { animation-delay: 340ms; }
.js-ready .hero-copy > *:nth-child(5) { animation-delay: 440ms; }
.js-ready .hero-art {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.012);
  animation: heroArtIn 1300ms var(--ease-out) 160ms forwards;
  will-change: opacity, filter, transform;
}

.js-ready .split-image.reveal,
.js-ready .path-art.reveal { transform: scale(1.035); filter: blur(8px); }
.js-ready .split-image.reveal.is-visible,
.js-ready .path-art.reveal.is-visible { transform: scale(1); filter: blur(0); }
.js-ready .step-card.reveal { transform: translate3d(0, 42px, 0) scale(.985); }
.js-ready .step-card.reveal.is-visible { transform: translate3d(0, 0, 0) scale(1); }
.js-ready .accordion.reveal .accordion-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out), border-color 380ms var(--ease-out), background 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-ready .accordion.reveal.is-visible .accordion-item { opacity: 1; transform: translateY(0); }

@keyframes softFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(1.2deg); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes modalIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes heroLineIn { to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); } }
@keyframes heroArtIn { to { opacity: 1; filter: blur(0); transform: scale(1); } }

/* Desktop down */
@media (max-width: 1440px) {
  :root { --header-h: 60px; }
  .container { width: min(100% - 80px, 1220px); }
  .header-inner { grid-template-columns: minmax(260px, .8fr) 1.6fr auto auto; padding-inline: 24px; }
  .brand-text { font-size: 12px; }
  .desktop-nav a { padding: 0 24px; font-size: 12px; }
  .header-cta { min-height: 38px; min-width: 148px; font-size: 12px; }
  .hero-copy { width: min(47vw, 620px); max-width: 620px; padding-top: 105px; }
  .hero-copy h1 { font-size: clamp(86px, 7vw, 112px); }
  .hero-subtitle { font-size: clamp(28px, 2.2vw, 34px); }
  .hero-art { width: clamp(790px, 56vw, 900px); }
  .steps { gap: 44px; }
  .step-card { padding-inline: 28px; }
  .split-copy { margin-right: 70px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 58px; }
  .container { width: min(100% - 48px, 940px); }
  .desktop-nav,
  .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; min-height: var(--header-h); padding-inline: 24px; }
  .burger { display: block; }

  .hero { min-height: auto; }
  .hero-grid { display: grid; grid-template-columns: 1fr; }
  .hero-copy { width: 100%; max-width: 760px; padding: 64px 0 32px; }
  .hero-art { position: relative; inset: auto; width: auto; min-height: 520px; margin: 0 -24px; }
  .hero-art img { position: relative; inset: auto; width: 100%; height: 520px; object-position: right top; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-card:not(:last-child)::after { display: none; }

  .split-section { min-height: auto; padding-bottom: 70px; }
  .split-image { position: relative; left: auto; width: 100%; height: auto; min-height: 520px; }
  .split-image img { width: 100%; height: 520px; object-fit: cover; object-position: left center; }
  .split-copy { width: auto; max-width: none; margin: 0; padding: 64px 48px 0; }

  .path { min-height: auto; padding: 76px 0 0; }
  .path-grid { display: grid; grid-template-columns: 1fr; gap: 42px; min-height: auto; }
  .path-copy { width: auto; max-width: 760px; padding-top: 0; }
  .path-copy h2 { margin-bottom: 44px; }
  .path-art { position: relative; left: auto; width: auto; height: 390px; margin: 0 -24px; }
  .path-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { padding-left: 0; border-left: 0; }
  .telegram { justify-content: flex-start; }
}

/* Mobile: matches the second screenshot logic */
@media (max-width: 680px) {
  :root { --header-h: 50px; }
  body { font-size: 15px; }
  .container { width: min(100% - 32px, 560px); }

  .site-header { background: rgba(238, 233, 225, .82); backdrop-filter: blur(12px); }
  .header-inner { min-height: var(--header-h); padding: 0 8px; }
  .brand { gap: 10px; min-height: var(--header-h); }
  .brand-mark { font-size: 31px; }
  .brand-text { font-size: 0; line-height: 1; letter-spacing: 0; }
  .brand-text::before {
    content: "ЛИЛА";
    font-family: var(--font-title);
    font-size: 24px;
    line-height: 1;
    letter-spacing: .19em;
    color: #414141;
  }
  .burger { width: 40px; height: 40px; margin-left: 0; }
  .burger span { width: 26px; margin: 6px auto; }
  .mobile-panel { padding: 14px 18px 22px; }

  .mobile-only { display: block; }
  .eyebrow.mobile-only { display: none; }

  /* Hero: Figma mobile — image background at top, content below */
  .hero { min-height: auto; overflow: hidden; }
  .hero .container { width: 100%; }
  .hero-grid { display: block; min-height: 0; }
  .hero-art {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    min-height: 288px;
    height: 288px;
    margin: 0;
    opacity: .95;
  }
  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(238,233,225,.02) 0%, rgba(238,233,225,.23) 52%, #eee9e1 100%);
    pointer-events: none;
  }
  .hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 108px 8px 52px;
  }
  .hero-copy h1 {
    font-size: 59.5px;
    line-height: .82;
    letter-spacing: .19em;
  }
  .hero-subtitle {
    margin: 7px 0 28px;
    font-size: 18.6px;
    line-height: 1.53;
    letter-spacing: .09em;
  }
  .hero-lead {
    max-width: 302px;
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.5;
  }
  .hero-benefits {
    width: 313px;
    max-width: calc(100% - 40px);
    margin: 0 auto 26px;
  }
  .hero-benefits li { min-height: 43px; gap: 10px; font-size: 12px; line-height: 1.5; }
  .hero-benefits img { width: 24px; height: 24px; }
  .hero-copy .btn { width: 220px; min-height: 41px; margin-inline: auto; display: flex; font-size: 17px; font-weight: 500; }

  .btn { min-height: 48px; }
  .btn-large { min-width: 0; min-height: 58px; font-size: 14px; }

  /* How: horizontal mobile slider from Pixso proportions */
  .how { padding: 35px 0 58px; overflow: hidden; }
  .section-heading h2 { font-size: 25px; line-height: .82; letter-spacing: .19em; }
  .ornament { gap: 12px; margin-top: 22px; font-size: 20px; }
  .ornament span { width: 56px; }
  .steps {
    display: flex;
    grid-template-columns: none;
    gap: 37px;
    margin-top: 52px;
    margin-right: -16px;
    padding: 0 74px 8px 29px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step-card {
    flex: 0 0 246px;
    min-height: 372px;
    padding: 17px 30px 24px;
    scroll-snap-align: start;
    border-radius: 16px;
    background: rgba(237, 231, 224, .72);
  }
  .step-card:not(:last-child)::after { display: none; }
  .step-number { margin-bottom: 24px; font-size: 27px; letter-spacing: .09em; }
  .step-card p { min-height: 0; font-size: 14px; line-height: 1.5; }
  .step-card img { width: 125px; height: 125px; margin-top: 16px; }
  .mobile-slider-ui {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 16px;
    margin: 22px 32px 0;
  }
  .mobile-slider-ui button { width: 44px; height: 34px; border: 0; background: transparent; color: rgba(36,36,36,.45); font-size: 24px; }
  .slider-dots { display: flex; justify-content: center; gap: 10px; }
  .slider-dots span { width: 10px; height: 10px; border-radius: 999px; background: rgba(228,224,208,1); }
  .slider-dots span.is-active { background: rgba(153,152,149,1); }

  /* About: Pixso mobile — text block, then image immediately below */
  .split-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 37px 0 0;
    overflow: hidden;
    background: var(--bg);
  }
  .split-copy {
    order: 1;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 31px;
    border-top: 0;
  }
  .split-copy h2 {
    margin: 0 0 36px;
    font-size: 31.9px;
    line-height: 1.155;
    letter-spacing: .19em;
  }
  .split-copy p {
    width: 300px;
    max-width: 100%;
    margin: 0 0 21px;
    font-size: 14px;
    line-height: 1.5;
  }
  .split-copy p:last-child { margin-bottom: 0; }
  .split-image {
    order: 2;
    position: relative;
    left: 0;
    width: 102.2%;
    min-height: 0;
    height: 352px;
    margin-top: 30px;
    overflow: hidden;
    opacity: .96;
  }
  .split-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto 0;
    height: 82px;
    background: linear-gradient(180deg, #eee9e1 0%, rgba(238,233,225,.76) 36%, rgba(238,233,225,0) 100%);
    pointer-events: none;
  }
  .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  /* Path: Pixso mobile — compact text + image directly after it */
  .path {
    min-height: 0;
    padding: 56px 0 0;
    overflow: hidden;
    background: var(--bg);
  }
  .path-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 0;
  }
  .path-copy {
    order: 1;
    width: auto;
    max-width: none;
    padding: 0 31px;
  }
  .path-copy::after { display: none; }
  .path-copy h2 {
    margin: 0 0 32px;
    font-size: 25px;
    line-height: .82;
    letter-spacing: .19em;
  }
  .path-copy p {
    width: 300px;
    max-width: 100%;
    margin: 0 0 21px;
    font-size: 14px;
    line-height: 1.5;
  }
  .path-copy p:last-child { margin-bottom: 0; }
  .path-art {
    order: 2;
    position: relative;
    left: auto;
    width: 100%;
    height: 330px;
    margin: 18px 0 0;
    overflow: hidden;
    opacity: .96;
  }
  .path-art::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto 0;
    height: 72px;
    background: linear-gradient(180deg, #eee9e1 0%, rgba(238,233,225,.66) 38%, rgba(238,233,225,0) 100%);
    pointer-events: none;
  }
  .path-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% top;
  }

  .faq { padding: 22px 0 68px; }
  .faq .section-heading h2 { font-size: 25px; line-height: .82; letter-spacing: .19em; }
  .accordion { width: calc(100% - 34px); margin-top: 44px; }
  .accordion-item { margin-bottom: 12px; border-radius: 10px; }
  .accordion-trigger { min-height: 52px; padding: 0 15px; font-size: 12px; }
  .accordion-panel-inner { padding: 0 15px 15px; font-size: 12px; line-height: 1.5; }

  .final-cta {
    min-height: 345px;
    padding: 39px 0 36px;
    background-position: center bottom;
  }
  .final-cta h2 { font-size: 25px; line-height: 1.16; letter-spacing: .19em; }
  .final-cta p { width: 343px; max-width: calc(100% - 16px); margin: 28px auto 10px; font-size: 12px; line-height: 1.5; }
  .final-cta .btn { width: 220px; min-height: 41px; font-size: 17px; font-weight: 500; }
  .final-cta .ornament { margin-top: 13px; }
  .final-cta .cta-bottom { margin-top: 12px; font-size: 14px; line-height: 1.53; letter-spacing: .09em; }

  .site-footer { padding: 18px 0 18px; }
  .footer-inner { gap: 16px; }
  .footer-brand { gap: 10px; }
  .footer-brand strong { font-size: 13px; letter-spacing: .19em; }
  .footer-brand span:last-child { font-size: 6.5px; line-height: 1.67; }
  .footer-links a { font-size: 7.5px; line-height: 1.7; }
  .telegram img { width: 34px; height: 34px; }

  .modal { padding: 14px; }
  .modal-card { padding: 30px 22px 24px; border-radius: 14px; }
  .modal-card h2 { font-size: 32px; letter-spacing: .06em; }
}

/* Documents */
.doc-page { min-height: 100vh; padding: 70px 0; }
.doc-page .brand { margin-bottom: 70px; }
.doc-page h1 {
  max-width: 980px;
  margin: 0 0 34px;
  font-family: var(--font-title);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.doc-page p { max-width: 820px; color: var(--muted); font-size: 18px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js-ready .reveal,
  .js-ready .reveal.is-visible,
  .js-ready .accordion.reveal .accordion-item,
  .js-ready .accordion.reveal.is-visible .accordion-item,
  .js-ready .hero-copy > *,
  .js-ready .hero-art {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    animation: none !important;
  }
}


/* === MOBILE: аккуратно поднять картинки, не меняя их размеры === */

@media (max-width: 680px) {
  .split-image {
    margin-top: -44px !important;
    margin-bottom: 44px !important;
  }

  .path-art {
    margin-top: -52px !important;
    margin-bottom: 52px !important;
  }
}


/* === MOBILE SLIDER FIX: только горизонтальная прокрутка === */

@media (max-width: 680px) {
  .steps {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    align-items: stretch;
    padding-bottom: 0 !important;
  }

  .step-card {
    overflow: hidden;
    flex-shrink: 0;
  }

  .step-card:hover {
    transform: none;
  }

  .js-ready .step-card.reveal,
  .js-ready .step-card.reveal.is-visible {
    transform: none !important;
  }
}


/* === HERO IMAGE ENTRANCE === */

.hero-art-entrance {
  opacity: 0;
  transform: translate3d(24px, 0, 0) scale(1.018);
  filter: blur(10px);
  animation: heroArtEntrance 1350ms cubic-bezier(.16, 1, .3, 1) 180ms forwards;
  will-change: opacity, transform, filter;
}

@keyframes heroArtEntrance {
  0% {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(1.018);
    filter: blur(10px);
  }

  55% {
    opacity: 1;
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 680px) {
  .hero-art-entrance {
    transform: translate3d(0, -8px, 0) scale(1.015);
    animation-name: heroArtEntranceMobile;
  }

  @keyframes heroArtEntranceMobile {
    0% {
      opacity: 0;
      transform: translate3d(0, -8px, 0) scale(1.015);
      filter: blur(10px);
    }

    55% {
      opacity: 1;
      filter: blur(3px);
    }

    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-entrance {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
/* === FIX6: точечные правки без изменения посадки картинок и секций === */

/* SVG-знак в шапке и футере */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

/* Хедер: прозрачнее + вход в ЛК, без перестройки layout */
.site-header {
  background: rgba(238, 233, 225, 0.74) !important;
}
.site-header.is-scrolled {
  background: rgba(238, 233, 225, 0.86) !important;
}
.header-inner {
  grid-template-columns: minmax(310px, .92fr) 1.9fr auto auto;
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  margin-left: 26px;
}
.header-actions .header-cta {
  margin-left: 0;
}
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(16, 16, 16, 0.28);
  border-radius: 3px;
  background: rgba(238, 233, 225, 0.22);
  color: #171717;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 320ms var(--ease-out), transform 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.header-login:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(16, 16, 16, 0.42);
}
.mobile-login {
  margin-top: 12px;
}

/* Разделители: не на всю страницу, а в ширину контейнера */
.section {
  border-bottom: 0 !important;
}
.section::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: min(100% - 120px, 1680px);
  height: 1px;
  transform: translateX(-50%);
  background: rgba(36, 36, 36, 0.11);
  pointer-events: none;
}
.final-cta::after {
  opacity: .55;
}

/* Карточки: у PNG есть светлый фон, поэтому сама карточка ближе к макету */
.step-card {
  background: #eee7e0 !important;
}
.step-card:hover {
  background: #eee7e0 !important;
}

/* Звёздочки между карточками: центруем от реального gap */
.steps {
  --steps-gap: clamp(34px, 5vw, 88px);
  gap: var(--steps-gap);
}
.step-card:not(:last-child)::after {
  right: calc((var(--steps-gap) / -2) - 15px) !important;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Футер: прозрачнее и аккуратнее */
.site-footer {
  background: linear-gradient(90deg, rgba(244,239,231,0.50), rgba(252,235,227,0.28), rgba(244,239,231,0.58)) !important;
  backdrop-filter: blur(12px);
}
.footer-brand {
  gap: 18px;
}
.footer-brand > span:last-child {
  display: inline-block;
}

/* Регистрация / вход: новая модалка, без внутреннего скролла */
.modal-card {
  width: min(100%, 720px) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: clamp(28px, 3.1vw, 46px) !important;
}
.modal-card h2 {
  max-width: 620px !important;
  margin-bottom: 14px !important;
  font-size: clamp(34px, 3.5vw, 54px) !important;
  line-height: .98 !important;
}
.modal-intro {
  max-width: 610px !important;
  margin-bottom: 24px !important;
  font-size: 15px;
  line-height: 1.55;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.auth-field {
  display: grid;
  gap: 7px;
}
.auth-field span {
  color: #383430;
  font-size: 12px;
  font-weight: 700;
}
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(36, 36, 36, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 260ms var(--ease-out), background 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.auth-field input:focus {
  border-color: rgba(36, 36, 36, 0.62);
  background: rgba(255,255,255,.52);
  box-shadow: 0 0 0 4px rgba(36,36,36,.05);
}
.auth-form .check-row {
  margin: 2px 0 2px;
}
.auth-form .check-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-form .btn-large {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
}
.auth-switch-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -2px 0 0;
  color: #5b554f;
  font-size: 13px;
}
.auth-switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-card.is-login [data-register-only] {
  display: none !important;
}
.modal-card.is-login .auth-fields {
  grid-template-columns: 1fr;
}

@media (max-width: 1440px) {
  .section::after {
    width: min(100% - 80px, 1220px);
  }
  .header-actions {
    gap: 10px;
    margin-left: 18px;
  }
  .header-login {
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
  }
}

@media (max-width: 1080px) {
  .header-actions {
    display: none;
  }
  .mobile-panel .header-login,
  .mobile-panel .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    width: 26px !important;
    height: 26px !important;
  }
  .section::after {
    width: calc(100% - 32px);
  }
  .steps {
    --steps-gap: 37px;
  }
  .step-card:not(:last-child)::after {
    display: none !important;
  }

  .site-footer {
    padding: 0 !important;
  }
  .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr 40px !important;
    grid-template-areas:
      "brand tg"
      "links tg" !important;
    align-items: start !important;
    gap: 12px 16px !important;
    padding: 18px 0 !important;
  }
  .footer-brand {
    grid-area: brand;
    gap: 10px !important;
    align-items: flex-start;
  }
  .footer-brand .brand-mark {
    width: 24px !important;
    height: 24px !important;
  }
  .footer-links {
    grid-area: links;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
  .telegram {
    grid-area: tg;
    align-self: end;
    justify-content: flex-end;
  }

  .modal {
    padding: 12px !important;
  }
  .modal-card {
    width: min(100%, 400px) !important;
    padding: 24px 18px 18px !important;
    border-radius: 16px !important;
  }
  .modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
  }
  .modal-card h2 {
    max-width: 320px !important;
    font-size: 28px !important;
    letter-spacing: .07em !important;
  }
  .modal-intro {
    margin-bottom: 16px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }
  .auth-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .auth-field span {
    font-size: 11px;
  }
  .auth-field input {
    min-height: 42px;
    font-size: 13px;
  }
  .auth-form .check-row span,
  .auth-form .check-row a {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }
  .auth-form .btn-large {
    min-height: 46px;
    font-size: 13px;
  }
  .auth-switch-note {
    font-size: 12px;
  }
}

/* === FIX7: финальная доводка перед переносом в Laravel === */

/* Header: вход в ЛК оставлен, но визуально не спорит с основной CTA-кнопкой */
@media (min-width: 1081px) {
  .header-inner {
    grid-template-columns: minmax(250px, .82fr) minmax(0, 1.9fr) auto auto !important;
  }

  .desktop-nav {
    grid-template-columns: repeat(4, minmax(112px, 1fr)) !important;
  }

  .desktop-nav a {
    padding-inline: clamp(18px, 1.65vw, 42px) !important;
  }

  .header-actions {
    gap: 16px !important;
    margin-left: clamp(18px, 1.6vw, 30px) !important;
    white-space: nowrap;
  }

  .header-login {
    min-height: 42px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(24, 24, 25, .72) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .075em !important;
    box-shadow: none !important;
  }

  .header-login::after {
    content: "→";
    display: inline-block;
    margin-left: 11px;
    color: rgba(36, 36, 36, .42);
    font-size: 15px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 320ms var(--ease-out), color 320ms var(--ease-out);
  }

  .header-login:hover {
    transform: none !important;
    background: transparent !important;
    color: rgba(24, 24, 25, .95) !important;
  }

  .header-login:hover::after {
    transform: translate(5px, -1px);
    color: rgba(36, 36, 36, .72);
  }

  .header-actions .header-cta {
    min-width: 146px !important;
    padding-inline: 22px !important;
  }
}

@media (min-width: 1081px) and (max-width: 1440px) {
  .header-inner {
    grid-template-columns: minmax(224px, .68fr) minmax(0, 1.55fr) auto auto !important;
    padding-inline: 20px !important;
  }

  .brand {
    gap: 14px !important;
  }

  .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-text {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }

  .desktop-nav a {
    padding-inline: 17px !important;
    font-size: 10.8px !important;
  }

  .desktop-nav a::after {
    font-size: 18px !important;
  }

  .header-actions {
    gap: 13px !important;
    margin-left: 16px !important;
  }

  .header-login {
    font-size: 10.8px !important;
  }

  .header-actions .header-cta {
    min-width: 128px !important;
    min-height: 36px !important;
    padding-inline: 16px !important;
    font-size: 10.8px !important;
  }
}

/* Mobile/tablet menu: вход в ЛК остаётся отдельной спокойной кнопкой внутри раскрытого меню */
@media (max-width: 1080px) {
  .mobile-panel .header-login {
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(16, 16, 16, 0.26) !important;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #171717 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  .mobile-panel .header-login::after {
    content: none;
  }
}

/* Desktop/tablet steps: никаких стрелок и точек, карточки не превращаются в слайдер */
@media (min-width: 1081px) {
  .how {
    overflow: hidden;
  }

  .steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--steps-gap, clamp(34px, 5vw, 88px)) !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .step-card {
    min-width: 0 !important;
    flex: initial !important;
  }

  .mobile-slider-ui {
    display: none !important;
  }
}

@media (min-width: 681px) and (max-width: 1080px) {
  .steps {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .step-card {
    min-width: 0 !important;
    flex: initial !important;
  }

  .mobile-slider-ui {
    display: none !important;
  }
}

/* Mobile steps: только горизонтальная прокрутка, без вертикального "таскания" блока */
@media (max-width: 680px) {
  .steps {
    max-height: 382px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior: contain;
    touch-action: pan-x;
  }

  .step-card {
    height: 372px;
  }

  .mobile-slider-ui {
    touch-action: manipulation;
  }
}

/* Чуть точнее посадка карточек на широких экранах */
@media (min-width: 1441px) {
  .step-card {
    min-height: 445px;
    padding-top: 34px;
  }
}

@media (min-width: 1081px) and (max-width: 1440px) {
  .how {
    padding-top: 82px;
    padding-bottom: 118px;
  }

  .steps {
    --steps-gap: 42px;
    margin-top: 84px;
  }

  .step-card {
    min-height: 418px !important;
    padding: 28px 24px 22px !important;
  }

  .step-number {
    margin-bottom: 26px;
    font-size: 30px;
  }

  .step-card p {
    min-height: 136px;
    font-size: 13.2px;
    line-height: 1.48;
  }

  .step-card img {
    width: 132px;
    height: 132px;
    margin-top: 14px;
  }
}

/* Более мягкие расстояния в ключевых секциях */
@media (min-width: 1081px) and (max-width: 1440px) {
  .split-copy {
    width: min(39vw, 610px) !important;
    margin-right: 64px !important;
    padding-top: 102px !important;
  }

  .split-copy h2 {
    margin-bottom: 54px !important;
    font-size: clamp(38px, 3vw, 52px) !important;
  }

  .split-copy p,
  .path-copy p {
    font-size: 14.2px !important;
    line-height: 1.62 !important;
  }

  .path-copy {
    width: min(35.5vw, 520px) !important;
    padding-top: 118px !important;
  }

  .path-copy h2 {
    margin-bottom: 54px !important;
    font-size: clamp(42px, 3.4vw, 58px) !important;
  }
}

/* FAQ/CTA: ближе к макету по плотности, без утяжеления */
@media (min-width: 1081px) {
  .accordion {
    margin-top: 82px !important;
  }

  .accordion-item {
    margin-bottom: 16px !important;
  }

  .final-cta .btn-large {
    min-width: 246px;
  }
}

@media (max-width: 680px) {
  .faq {
    padding-top: 30px !important;
  }

  .accordion {
    margin-top: 42px !important;
  }

  .accordion-trigger {
    align-items: center;
  }

  .final-cta {
    padding-top: 44px !important;
  }
}

/* === FIX8: точечный фикс линий шапки, about и мобильного футера === */

/* Убираем лишнюю горизонтальную полосу над заголовком "О Лиле" */
.split-copy {
  border-top: 0 !important;
}

/* Шапка: разделительная вертикальная линия после знака, как в макете */
.site-header .brand {
  gap: 34px !important;
}

.site-header .brand .brand-mark {
  position: relative;
}

.site-header .brand .brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 1px;
  height: 40px;
  transform: translateY(-50%);
  background: rgba(36, 36, 36, 0.34);
  pointer-events: none;
}

@media (min-width: 1081px) and (max-width: 1440px) {
  .site-header .brand {
    gap: 29px !important;
  }

  .site-header .brand .brand-mark::after {
    right: -15px;
    height: 34px;
  }
}

@media (max-width: 680px) {
  /* Шапка mobile: знак | ЛИЛА | бургер */
  .header-inner {
    padding: 0 20px !important;
  }

  .site-header .brand {
    gap: 35px !important;
  }

  .site-header .brand .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .site-header .brand .brand-mark::after {
    right: -18px;
    height: 35px;
    background: rgba(36, 36, 36, 0.36);
  }

  .brand-text::before {
    font-size: 24px !important;
  }

  /* Футер mobile: возвращаем компактную строку как в макете */
  .site-footer {
    padding: 0 !important;
    border-top: 1px solid rgba(36, 36, 36, 0.14) !important;
  }

  .footer-inner {
    display: grid !important;
    grid-template-columns: auto minmax(96px, 1fr) 36px !important;
    grid-template-areas: "brand links tg" !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 0 !important;
  }

  .footer-brand {
    grid-area: brand;
    position: relative;
    gap: 24px !important;
    align-items: center !important;
    min-width: 0;
  }

  .footer-brand .brand-mark {
    position: relative;
    width: 26px !important;
    height: 26px !important;
  }

  .footer-brand .brand-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 1px;
    height: 52px;
    transform: translateY(-50%);
    background: rgba(36, 36, 36, 0.32);
    pointer-events: none;
  }

  .footer-brand > span:last-child {
    white-space: nowrap;
  }

  .footer-brand strong {
    font-size: 13px !important;
    line-height: 1.05 !important;
    letter-spacing: .19em !important;
  }

  .footer-brand span:last-child {
    font-size: 6.5px !important;
    line-height: 1.67 !important;
  }

  .footer-links {
    grid-area: links;
    display: grid !important;
    gap: 4px !important;
    min-width: 0;
    padding-left: 13px !important;
    border-left: 1px solid rgba(36, 36, 36, 0.32) !important;
  }

  .footer-links a {
    font-size: 7.4px !important;
    line-height: 1.55 !important;
    letter-spacing: .025em !important;
    white-space: nowrap;
  }

  .telegram {
    grid-area: tg;
    align-self: center !important;
    justify-content: flex-end !important;
  }

  .telegram img {
    width: 34px !important;
    height: 34px !important;
  }
}

/* === FIX9: точечная правка mobile header/footer и выравнивание desktop footer по header === */

/* Desktop footer: ставим внутреннюю сетку на те же боковые отступы, что и шапка */
@media (min-width: 1081px) {
  .site-footer {
    padding: 26px 0 24px !important;
  }

  .site-footer .footer-inner {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 34px !important;
    grid-template-columns: minmax(310px, .92fr) minmax(0, 1.9fr) auto !important;
    gap: 34px !important;
  }

  .footer-brand {
    gap: 34px !important;
  }

  .footer-brand .brand-mark {
    position: relative;
    width: 42px !important;
    height: 42px !important;
  }

  .footer-brand .brand-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -17px;
    width: 1px;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(36, 36, 36, 0.30);
    pointer-events: none;
  }

  .footer-brand strong {
    font-size: 24px !important;
    line-height: 1.04 !important;
    letter-spacing: .21em !important;
  }

  .footer-brand span:last-child {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  .footer-links {
    justify-self: end;
    min-width: 340px;
    padding-left: 34px !important;
  }

  .footer-links a {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .telegram img {
    width: 38px !important;
    height: 38px !important;
  }
}

@media (min-width: 1081px) and (max-width: 1440px) {
  .site-footer .footer-inner {
    padding-inline: 20px !important;
    grid-template-columns: minmax(224px, .68fr) minmax(0, 1.55fr) auto !important;
    gap: 28px !important;
  }

  .footer-brand {
    gap: 29px !important;
  }

  .footer-brand .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }

  .footer-brand .brand-mark::after {
    right: -15px;
    height: 34px;
  }

  .footer-brand strong {
    font-size: 21px !important;
  }

  .footer-brand span:last-child {
    font-size: 10.5px !important;
  }

  .footer-links a {
    font-size: 10px !important;
  }
}

@media (max-width: 680px) {
  /* Header mobile: бургер уводим левее от края/скроллбара */
  .burger {
    justify-self: end !important;
    margin-right: 10px !important;
  }

  .header-inner {
    padding-left: 20px !important;
    padding-right: 14px !important;
  }

  /* Footer mobile: компактнее текст и Telegram, чтобы всё поместилось как в макете */
  .footer-inner {
    grid-template-columns: auto minmax(0, 1fr) 30px !important;
    gap: 10px !important;
    padding: 16px 0 !important;
  }

  .footer-brand {
    gap: 22px !important;
  }

  .footer-brand .brand-mark {
    width: 24px !important;
    height: 24px !important;
  }

  .footer-brand .brand-mark::after {
    right: -11px !important;
    height: 46px !important;
  }

  .footer-brand strong {
    font-size: 12px !important;
    letter-spacing: .18em !important;
  }

  .footer-brand span:last-child {
    font-size: 6px !important;
    line-height: 1.58 !important;
  }

  .footer-links {
    gap: 3px !important;
    padding-left: 10px !important;
  }

  .footer-links a {
    font-size: 6.55px !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
  }

  .telegram img {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 680px) {
  .split-copy h2 {
    font-size: 26px !important;
    line-height: 1.16 !important;
    letter-spacing: 0.155em !important;
    max-width: 100% !important;
  }
}

/* === FIX10: мягкий вход в путь вместо регистрации до первого хода === */
.journey-modal {
  width: min(100%, 680px) !important;
}

.journey-form {
  gap: 15px !important;
}

.journey-fields {
  grid-template-columns: 1fr !important;
}

[data-login-only] {
  display: none !important;
}

.modal-card.is-login [data-start-only] {
  display: none !important;
}

.modal-card.is-login [data-login-only] {
  display: grid !important;
}

.modal-card.is-login .auth-magic-note {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

.journey-question textarea {
  width: 100%;
  min-height: 128px;
  padding: 16px 18px;
  border: 1px solid rgba(36, 36, 36, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  transition: border-color 260ms var(--ease-out), background 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.journey-question textarea:focus {
  border-color: rgba(36, 36, 36, 0.62);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(36, 36, 36, 0.05);
}

.journey-question textarea::placeholder {
  color: rgba(49, 45, 39, 0.48);
}

.journey-modal .auth-switch-note {
  margin-top: 2px;
}

@media (max-width: 680px) {
  .journey-modal {
    width: min(100%, 400px) !important;
  }

  .journey-question textarea {
    min-height: 116px;
    padding: 14px 15px;
    font-size: 13px;
  }
}

/* === GLOBAL MOBILE SHELL FIX: no horizontal page scroll === */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.site-header,
.header-inner,
.mobile-panel,
.site-footer {
  max-width: 100vw;
}

@media (max-width: 680px) {
  .site-header {
    width: 100%;
  }

  .header-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    padding-left: 18px !important;
    padding-right: 12px !important;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 78px);
  }

  .brand-text {
    min-width: 0;
    white-space: nowrap;
  }

  .burger {
    justify-self: end !important;
    margin-right: 0 !important;
  }

  .mobile-panel {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-panel a,
  .mobile-panel button {
    max-width: 100%;
  }

  .container {
    width: min(100% - 32px, 560px);
  }

  .footer-inner {
    width: min(100% - 32px, 560px) !important;
    margin-inline: auto !important;
  }
}

/* === GLOBAL FIX: mobile pages must not create horizontal scroll === */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.site-header,
.header-inner,
.mobile-panel,
.site-footer,
.footer-inner {
  max-width: 100vw;
}

@media (max-width: 680px) {
  .site-header {
    width: 100%;
  }

  .header-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    padding-left: 20px !important;
    padding-right: 14px !important;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 78px);
  }

  .brand-text {
    min-width: 0;
    white-space: nowrap;
  }

  .burger {
    justify-self: end !important;
    margin-right: 0 !important;
  }

  .mobile-panel {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-panel a,
  .mobile-panel button {
    max-width: 100%;
  }

  .container {
    width: min(100% - 32px, 560px);
  }

  .footer-inner {
    width: min(100% - 32px, 560px) !important;
    margin-inline: auto !important;
  }
}


/* lila-guide-validation-v1 */
.field-counter {
  display: block;
  margin-top: 7px;
  color: rgba(49, 45, 39, 0.56);
  font-size: 11px;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field-counter[data-state="near"] {
  color: rgba(91, 65, 36, 0.78);
}

.field-counter[data-state="over"] {
  color: #8d3f3f;
}
