:root {
  --bg: #f6f0e7;
  --paper: #fffaf2;
  --paper-2: #fbf3e6;
  --ink: #111827;
  --muted: #6e746f;
  --line: rgba(17, 24, 39, .12);
  --green: #184c35;
  --green-2: #2c7350;
  --lime: #d8ff70;
  --gold: #d7b46a;
  --coral: #e58b6f;
  --blue: #96b7e7;
  --shadow: 0 24px 70px rgba(17, 24, 39, .12);
  --shadow-soft: 0 16px 38px rgba(17, 24, 39, .08);
  --display: "Playfair Display", Georgia, serif;
  --font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
body::selection { background: var(--lime); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { width: 100%; border: 0; outline: 0; }
textarea { min-height: 128px; resize: vertical; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
.ambient { position: fixed; z-index: -1; width: 430px; height: 430px; border-radius: 50%; filter: blur(30px); opacity: .5; pointer-events: none; }
.ambient--one { top: -140px; left: -120px; background: #d9ff9d; }
.ambient--two { right: -130px; bottom: 10%; background: #f1c58d; }

.topbar { display: flex; width: min(1180px, calc(100% - 44px)); min-height: 78px; align-items: center; justify-content: space-between; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: var(--ink); color: var(--lime); font-size: 12px; }
.brand b { letter-spacing: -.04em; }
.topbar__link { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 250, 242, .72); color: var(--green); font-size: 13px; font-weight: 800; backdrop-filter: blur(10px); }

.hero { position: relative; padding-bottom: 74px; }
.hero__grid { display: grid; width: min(1180px, calc(100% - 44px)); grid-template-columns: 1fr .8fr; align-items: center; gap: 58px; min-height: 650px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-2); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216, 255, 112, .25); content: ""; }
.hero h1 { max-width: 780px; margin: 18px 0 20px; font-family: var(--display); font-size: clamp(54px, 8vw, 104px); line-height: .9; letter-spacing: -.065em; }
.hero p { max-width: 640px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 17px; font-weight: 900; transition: transform .25s, box-shadow .25s, background .25s; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: #fff; box-shadow: 0 16px 28px rgba(17, 24, 39, .18); }
.button--primary span { color: var(--lime); }
.button--ghost { border: 1px solid var(--line); background: rgba(255, 250, 242, .72); color: var(--ink); }
.button.is-hidden { display: none; }
.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 680px; margin-top: 34px; }
.hero__meta span { min-height: 82px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 250, 242, .6); color: var(--muted); font-size: 12px; line-height: 1.4; }
.hero__meta b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 18px; }

.hero-card { position: relative; min-height: 520px; padding: 28px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 42px; background: linear-gradient(145deg, #121a24, #233127 52%, #112018); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { position: absolute; inset: 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 32px; content: ""; }
.hero-card__head { position: relative; z-index: 2; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 800; }
.sheet-preview { position: absolute; right: 36px; bottom: 48px; left: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); }
.sheet-preview i { height: 42px; border-radius: 11px; background: rgba(255, 255, 255, .12); }
.sheet-preview i:nth-child(4n+1) { background: rgba(216, 255, 112, .36); }
.sheet-preview i:nth-child(7), .sheet-preview i:nth-child(10) { background: rgba(229, 139, 111, .45); }
.brief-orbit { position: absolute; z-index: 3; display: grid; min-width: 106px; min-height: 106px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 900; box-shadow: 0 18px 30px rgba(0, 0, 0, .18); animation: float 3.4s ease-in-out infinite alternate; }
.brief-orbit--one { top: 92px; left: 44px; }
.brief-orbit--two { top: 154px; right: 52px; background: #fff4c4; animation-delay: -.9s; }
.brief-orbit--three { bottom: 164px; left: 116px; background: #bfe1ff; animation-delay: -1.7s; }
@keyframes float { to { transform: translateY(-12px) rotate(2deg); } }

.section { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 92px 0; }
.section-title { display: grid; grid-template-columns: .72fr 1fr; gap: 48px; align-items: end; margin-bottom: 28px; }
.section-title h2 { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 72px); line-height: .9; letter-spacing: -.06em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 360px; padding: 20px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255, 250, 242, .68); box-shadow: var(--shadow-soft); }
.feature-card__visual { position: relative; height: 150px; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, #e9f4d2, #fff8df); }
.feature-card__visual span, .feature-card__visual i, .feature-card__visual b { position: absolute; display: block; border-radius: 999px; }
.feature-card__visual span { right: 28px; bottom: 20px; width: 132px; height: 46px; background: var(--green); transform: rotate(-7deg); }
.feature-card__visual i { top: 26px; left: 28px; width: 78px; height: 78px; background: var(--lime); }
.feature-card__visual b { right: 58px; top: 38px; width: 56px; height: 56px; background: var(--coral); }
.feature-card--offer .feature-card__visual { background: linear-gradient(135deg, #f9ead7, #e7f5d9); }
.feature-card--trust .feature-card__visual { background: linear-gradient(135deg, #e4efff, #fff3da); }
.feature-card h3 { margin: 22px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.brief-section { width: 100%; padding-bottom: 110px; }
.brief-layout { display: grid; width: min(1180px, calc(100% - 44px)); grid-template-columns: 340px 1fr; gap: 24px; margin: 0 auto; }
.brief-sidebar, .brief-sidebar__sticky, .brief-form { min-width: 0; }
.brief-sidebar__sticky { position: sticky; top: 22px; min-height: 560px; padding: 28px; border-radius: 30px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.brief-sidebar h2 { margin: 16px 0 10px; font-family: var(--display); font-size: 44px; line-height: .92; letter-spacing: -.06em; }
.brief-sidebar p { color: rgba(255, 255, 255, .65); line-height: 1.7; }
.progress { margin-top: 28px; }
.progress__bar { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.progress__bar i { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #fff6a3); transition: width .3s; }
.progress span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 800; }
.step-list { display: grid; gap: 8px; margin-top: 24px; }
.step-list button { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 13px; background: transparent; color: rgba(255, 255, 255, .58); text-align: left; font-size: 12px; font-weight: 800; }
.step-list button.is-active { background: rgba(216, 255, 112, .14); color: #fff; }
.step-list i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--lime); font-style: normal; font-size: 10px; }

.brief-form { min-height: 650px; padding: 24px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255, 250, 242, .74); box-shadow: var(--shadow-soft); }
.form-step { display: none; min-height: 520px; animation: step-in .32s ease both; }
.form-step.is-active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-head { padding: 14px 14px 24px; }
.step-head span { color: var(--green-2); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.step-head h3 { max-width: 680px; margin: 12px 0 8px; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: .95; letter-spacing: -.055em; }
.step-head p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; }
.field--wide, .field--solo { grid-column: 1 / -1; }
.field--solo { margin-top: 14px; }
.field span { color: var(--ink); font-size: 12px; font-weight: 900; }
.field input, .field textarea, .field select { min-height: 44px; background: transparent; color: var(--ink); font-size: 15px; }
.field textarea { padding-top: 8px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(17, 24, 39, .38); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid--small { grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
.choice-grid label { position: relative; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: flex; height: 100%; align-items: end; color: var(--ink); font-weight: 900; }
.choice-grid label::before { position: absolute; top: 13px; left: 13px; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.choice-grid label:has(input:checked) { border-color: rgba(24, 76, 53, .45); background: #eff9dd; transform: translateY(-2px); }
.choice-grid label:has(input:checked)::before { border-color: var(--green); background: radial-gradient(circle at center, var(--green) 0 43%, transparent 45%); }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.submit-modal { position: fixed; z-index: 100; display: grid; place-items: center; inset: 0; visibility: hidden; opacity: 0; transition: opacity .28s ease, visibility .28s ease; }
.submit-modal.is-open { visibility: visible; opacity: 1; }
.submit-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(17, 24, 39, .48); backdrop-filter: blur(14px); }
.submit-modal__card { position: relative; z-index: 2; width: min(440px, calc(100% - 32px)); padding: 34px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 32px; background: rgba(255, 250, 242, .86); box-shadow: 0 30px 90px rgba(17, 24, 39, .26); text-align: center; transform: translateY(12px) scale(.98); transition: transform .28s ease; }
.submit-modal.is-open .submit-modal__card { transform: none; }
.submit-modal__close { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--ink); font-size: 22px; line-height: 1; }
.submit-modal__icon { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: var(--green); color: var(--lime); font-size: 32px; font-weight: 900; box-shadow: 0 16px 28px rgba(24, 76, 53, .18); }
.submit-modal.is-warning .submit-modal__icon { background: #7c4a2c; color: #fff4c4; }
.submit-modal h2 { margin: 0 0 10px; font-family: var(--display); font-size: 44px; line-height: .95; letter-spacing: -.055em; }
.submit-modal p { margin: 0 0 24px; color: var(--muted); line-height: 1.7; }

.footer { display: flex; width: min(1180px, calc(100% - 44px)); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 34px 0 46px; border-top: 1px solid var(--line); color: var(--muted); }
.footer b { display: block; color: var(--ink); }
.footer a { color: var(--green); font-weight: 900; }

@media (max-width: 980px) {
  .hero__grid, .section-title, .brief-layout { grid-template-columns: 1fr; }
  .hero__grid { min-height: auto; padding-top: 42px; }
  .hero-card { min-height: 430px; }
  .brief-sidebar__sticky { position: relative; top: auto; min-height: auto; }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, #f8f4ec 0%, #f1ece3 48%, #f8f4ec 100%);
  }

  .ambient {
    width: 260px;
    height: 260px;
    opacity: .34;
    filter: blur(34px);
  }

  .topbar, .hero__grid, .section, .brief-layout, .footer { width: min(calc(100% - 24px), 520px); }

  .topbar {
    min-height: 64px;
  }

  .brand span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand b {
    font-size: 14px;
  }

  .topbar__link {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero { padding-bottom: 28px; }
  .hero__grid { gap: 28px; padding-top: 26px; }
  .hero h1 {
    margin: 14px 0 16px;
    max-width: 10ch;
    font-size: clamp(42px, 12vw, 52px);
    line-height: .94;
    letter-spacing: -.055em;
  }
  .hero p { font-size: 15px; line-height: 1.6; }
  .hero__actions, .form-nav { display: grid; }
  .button { width: 100%; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero-card { min-height: 360px; padding: 18px; border-radius: 28px; }
  .brief-orbit { min-width: 84px; min-height: 84px; font-size: 10px; }
  .brief-orbit--one { top: 70px; left: 22px; }
  .brief-orbit--two { top: 120px; right: 20px; }
  .brief-orbit--three { bottom: 132px; left: 76px; }
  .sheet-preview { right: 18px; bottom: 26px; left: 18px; }

  .section {
    padding: 56px 0;
  }

  .brief-section.section {
    padding: 30px 0 56px;
  }

  .brief-layout {
    gap: 14px;
  }

  .brief-sidebar__sticky {
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, .09);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(255, 250, 242, .9)),
      radial-gradient(circle at 92% 0%, rgba(216, 255, 112, .3), transparent 42%);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(17, 24, 39, .1);
  }

  .brief-sidebar .eyebrow {
    color: var(--green-2);
    font-size: 9px;
  }

  .brief-sidebar h2 {
    margin: 12px 0 8px;
    font-family: var(--font);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -.04em;
  }

  .brief-sidebar p {
    max-width: 31ch;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }

  .progress {
    margin-top: 18px;
  }

  .progress__bar {
    height: 6px;
    background: rgba(17, 24, 39, .1);
  }

  .progress__bar i {
    background: linear-gradient(90deg, var(--green), var(--lime));
  }

  .progress span {
    margin-top: 8px;
    color: rgba(17, 24, 39, .62);
    font-size: 11px;
  }

  .step-list {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    margin: 16px -4px -2px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    scroll-padding: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .step-list::-webkit-scrollbar {
    display: none;
  }

  .step-list button {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(17, 24, 39, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: rgba(17, 24, 39, .62);
    box-shadow: 0 8px 18px rgba(17, 24, 39, .04);
    scroll-snap-align: start;
  }

  .step-list button.is-active {
    border-color: rgba(24, 76, 53, .18);
    background: var(--ink);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 24, 39, .18);
  }

  .step-list i {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    background: rgba(24, 76, 53, .1);
    color: var(--green);
    font-size: 10px;
  }

  .step-list button.is-active i {
    background: var(--lime);
    color: var(--ink);
  }

  .step-list span {
    white-space: nowrap;
  }

  .brief-form {
    min-height: auto;
    padding: 14px;
    border-color: rgba(17, 24, 39, .09);
    border-radius: 24px;
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 18px 46px rgba(17, 24, 39, .08);
  }

  .form-step {
    min-height: auto;
  }

  .step-head {
    padding: 4px 4px 18px;
  }

  .step-head span {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .step-head h3 {
    margin: 10px 0 8px;
    font-family: var(--font);
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }

  .step-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  .field-grid, .choice-grid, .choice-grid--small { grid-template-columns: 1fr; }

  .field {
    padding: 13px;
    border-color: rgba(17, 24, 39, .09);
    border-radius: 18px;
    background: #fff;
  }

  .field span {
    font-size: 11px;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 40px;
    font-size: 14px;
  }

  .field textarea {
    min-height: 108px;
  }

  .choice-grid {
    gap: 8px;
  }

  .choice-grid label {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 14px 14px 14px 44px;
    border-color: rgba(17, 24, 39, .09);
    border-radius: 18px;
    background: #fff;
  }

  .choice-grid span {
    height: auto;
    align-items: center;
    font-size: 14px;
  }

  .choice-grid label::before {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }

  .choice-grid label:has(input:checked) {
    transform: none;
    background: #f1f8e2;
  }

  .form-nav {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding: 8px;
    border: 1px solid rgba(17, 24, 39, .09);
    border-radius: 22px;
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .07);
  }

  .form-nav .button {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 14px;
  }

  .footer { display: grid; }
}
