/* Shared bento treatment for the consultation questionnaire and the AI test. */
.anketa-page, #test.ai-test { --bento-line: #d9e2e3; --bento-ink: #142a2b; --bento-accent: #086e60; --bento-mint: #d8f5e9; --bento-muted: #52636a; }
.bento-eyebrow { color: var(--bento-accent); font-size: 13px; font-weight: 500; }
.anketa-page main { background: #edf1f2; }
.anketa-hero.page-hero { background: transparent; color: var(--home-ink); }
.anketa-hero.page-hero::before, .anketa-hero.page-hero::after { display: none; }
.anketa-hero .page-hero__inner { display: grid; align-items: stretch; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 16px; padding-block: 32px 40px; }
.anketa-hero__copy { grid-row: span 2; padding: clamp(28px,3.2vw,48px); border-radius: 24px; background: var(--bento-ink); color: #fff; }
.anketa-hero .home-overline { color: #a5e8d5; font-family: inherit; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.anketa-hero .home-overline > span { display: none; }
.anketa-hero h1 { margin-top: 30px; font-size: clamp(38px,4.2vw,62px); line-height: 1.1; letter-spacing: -.045em; }
.anketa-hero h1 em { color: #9fe8d1; }
.anketa-hero .page-hero__lead { margin-top: 28px; color: #d1dfdf; font-size: 18px; line-height: 1.7; }
.anketa-hero__guide { padding: 28px; border: 1px solid #bddcce; border-radius: 24px; background: var(--bento-mint); }
.anketa-hero__guide h2 { margin-top: 16px; font-family: var(--home-display); font-size: 28px; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.anketa-hero__guide ol { display: grid; gap: 16px; margin-top: 24px !important; }
.anketa-hero__guide li { display: flex; gap: 14px; align-items: baseline; }
.anketa-hero__guide li > span { font-size: 12px; color: var(--bento-accent); font-variant-numeric: tabular-nums; }
.anketa-hero__guide strong { font-size: 16px; font-weight: 500; }
.anketa-hero__guide li p { margin-top: 3px; color: #435e56; font-size: 13px; }
.anketa-hero__contact { padding: 24px 28px; border: 1px solid var(--bento-line); border-radius: 24px; background: #fff; }
.anketa-hero__contact .anketa-hero__note { margin: 0 !important; color: var(--bento-muted); font-size: 14px; line-height: 1.8; }
.anketa-hero__note a { color: var(--bento-accent); }
.anketa-section { padding-block: 16px 72px; }
.anketa-layout { grid-template-columns: 280px minmax(0,1fr); gap: 24px; }
.anketa-aside { top: calc(var(--home-header-h, 96px) + 24px); padding: 26px 24px; border: 1px solid var(--bento-line); border-radius: 24px; background: #fff; }
.anketa-aside h2 { font-size: 24px; }
.anketa-aside > p { line-height: 1.65; }
.anketa-progress { gap: 8px; }
.anketa-progress li, .anketa-progress li:last-child { min-height: 56px; padding: 14px; border: 1px solid transparent; border-radius: 12px; background: #f1f5f4; }
.anketa-progress li[aria-current=step] { color: #174f43; background: var(--bento-mint); border-color: #b9dccc; }
.anketa-progress li.is-complete::before { content: '✓'; font-size: 17px; }
.anketa-aside .anketa-progress-status { display: block; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--bento-line); color: var(--bento-accent); }
.anketa-layout > div { min-width: 0; }
.anketa-panel-heading { padding: 28px 30px; border: 1px solid #c7dcd5; border-radius: 24px; background: #dceae6; }
.anketa-panel-heading h2 { font-size: clamp(28px,2.6vw,38px); }
.anketa-panel-heading > p { margin-top: 14px; max-width: 68ch; color: #435e56; font-size: 15px; line-height: 1.65; }
.anketa-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.anketa-fields > * { grid-column: 1 / -1; min-width: 0; }
.anketa-fields > .anketa-field:has(#role, #team-size) { grid-column: span 1; }
.anketa-field { gap: 12px; padding: 24px; border: 1px solid var(--bento-line); border-radius: 20px; background: #fff; }
fieldset.anketa-field { display: block; }
fieldset.anketa-field > legend { float: left; width: 100%; margin-bottom: 14px; }
fieldset.anketa-field > .anketa-hint, fieldset.anketa-field > .anketa-choices { clear: both; }
.anketa-field > label, .anketa-field > legend { font-size: 16px; line-height: 1.5; }
.anketa-optional { display: inline-block; font-size: 12px; color: var(--bento-muted); }
.anketa-field input:not([type=checkbox]), .anketa-field textarea, .anketa-field select { border-color: #b9c9c5; border-radius: 11px; background: #f5f8f7; }
.anketa-field textarea { min-height: 128px; }
.anketa-field input:not([type=checkbox]):focus, .anketa-field textarea:focus, .anketa-field select:focus { background: #fff; border-color: var(--bento-accent); }
.anketa-field:has([aria-invalid=true]), .anketa-field[data-invalid] { border-color: #b14d38; }
.anketa-choice { min-height: 56px; padding: 14px; border-color: #d4dddf; border-radius: 12px; background: #f5f7f7; transition: background 180ms, border-color 180ms, box-shadow 180ms; }
.anketa-choice:hover { background: #edf5f1; border-color: #6b9d8e; }
.anketa-choice:has(input:checked) { color: #174f43; background: #dcf5e8; border-color: var(--bento-accent); box-shadow: inset 0 0 0 1px var(--bento-accent); }
.anketa-choice input { width: 20px; height: 20px; accent-color: var(--bento-accent); }
.anketa-details { padding: 16px 24px; border: 1px dashed #a8bdb5; border-radius: 20px; background: #e5ece8; }
.anketa-details summary { line-height: 1.65; color: #235948; }
.anketa-details .anketa-field { padding: 20px; }
.anketa-conditional { padding: 24px; border: 1px solid #bdd9cb; border-radius: 20px; background: #dff0e7; }
.anketa-conditional .anketa-field { padding: 0; border: 0; background: transparent; }
.anketa-review { padding: 28px; border: 1px solid #bdd9cb; border-radius: 20px; background: #e5f2eb; }
.anketa-review h3 { font-size: 21px; }
.anketa-review dl div { padding-bottom: 12px; border-bottom: 1px solid #ccdcd3; }
.anketa-review dt { color: #435e56; }
.anketa-review > p { line-height: 1.6; }
.anketa-fields > [data-consent-field] { padding: 22px 24px; border: 1px solid var(--bento-line); border-radius: 20px; background: #fff; }
.anketa-consent { font-size: 14px; }
.anketa-actions { margin-top: 16px; padding: 20px 24px; border: 1px solid var(--bento-line); border-radius: 18px; background: #fff; }
.anketa-actions .home-button, .anketa-done .home-button { border-radius: 10px; }
.anketa-actions .home-button--ink { background: #153f37; }
.anketa-submit-note { padding-inline: 4px; }
.anketa-failure { padding: 22px; border-color: #b14d38; border-radius: 18px; background: #fae8e1; }
.anketa-done { padding: 36px; border: 1px solid #bddcce; border-radius: 24px; background: var(--bento-mint); }
.anketa-done .home-overline { margin-top: 0; }
.anketa-done h2 { margin-top: 24px; }
/* AI test is scoped to its anchor; the other sections of start.html keep their design. */
#test.ai-test { padding-block: 48px 64px; background: #edf1f2; scroll-margin-top: 100px; }
.ai-test__intro { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 16px; margin-bottom: 24px; }
.ai-test__copy { padding: clamp(28px,3.2vw,48px); border-radius: 24px; background: var(--bento-ink); color: #fff; }
.ai-test .home-section__intro { display: block; margin: 0; padding: 0; }
.ai-test .home-section__intro h2 { max-width: 18ch; margin-top: 28px; font-size: clamp(34px,3.6vw,54px); line-height: 1.12; }
.ai-test .home-section__intro > p:last-child { max-width: 58ch; margin-top: 24px !important; color: #d1dfdf; font-size: 17px; line-height: 1.7; }
.ai-test .home-overline { color: #a5e8d5; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ai-test .home-overline > span { display: none; }
.ai-test__guide { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.ai-test__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-test__facts > div { padding: 26px; border: 1px solid #bddcce; border-radius: 24px; background: var(--bento-mint); }
.ai-test__facts strong { display: block; font-family: var(--home-display); font-size: 52px; line-height: 1; letter-spacing: -.05em; font-weight: 650; color: #164e3f; }
.ai-test__facts small { font-size: 20px; letter-spacing: -.03em; }
.ai-test__facts span { display: block; margin-top: 16px; color: #435e56; font-size: 14px; }
.ai-test__outcome { padding: 28px; border: 1px solid var(--bento-line); border-radius: 24px; background: #fff; }
.ai-test__outcome > span { color: var(--bento-accent); font-size: 30px; }
.ai-test__outcome h3 { margin-top: 12px; font-family: var(--home-display); font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.ai-test__outcome p { margin-top: 16px; color: var(--bento-muted); font-size: 15px; line-height: 1.7; }
.ai-test .test__form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.ai-test .q { margin: 0; padding: 28px; border: 1px solid var(--bento-line); border-radius: 20px; background: #fff; box-shadow: 0 3px 0 rgba(26,55,49,.025); }
.ai-test .q legend { margin-bottom: 16px; min-height: 112px; }
.ai-test .q__num { font-family: inherit; color: var(--bento-accent); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ai-test .q__text { margin-top: 16px; font-size: clamp(18px,1.5vw,22px); line-height: 1.35; }
.ai-test .q__opt { min-height: 60px; margin-top: 10px; padding: 15px 16px; border-color: #d4dddf; border-radius: 12px; background: #f5f7f7; color: #35454b; font-size: 16px; line-height: 1.55; }
.ai-test .q__opt input { appearance: none; width: 20px; height: 20px; border: 1.5px solid #879b98; border-radius: 50%; background: #fff; }
.ai-test .q__opt input:checked { background: var(--bento-accent); border: 5px solid var(--bento-accent); box-shadow: inset 0 0 0 2px #fff; }
.ai-test .q__opt:hover { border-color: #6b9d8e; background: #edf5f1; }
.ai-test .q__opt:has(input:checked) { color: #174f43; background: #dcf5e8; border-color: var(--bento-accent); box-shadow: inset 0 0 0 1px var(--bento-accent); }
.ai-test .q__opt:has(input:focus-visible) { outline: 3px solid var(--bento-accent); outline-offset: 3px; }
.ai-test .test__actions { bottom: 16px; gap: 24px; padding: 22px 28px; border: 1px solid #b8cec6; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px #163e2e18; }
.ai-test .test__progress-box { flex: 1; max-width: 380px; min-width: 0; }
.ai-test .test__progress { display: block; color: var(--bento-accent); font-family: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.ai-test .test__track { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 5px; margin-top: 12px; }
.ai-test .test__track > span { height: 6px; border-radius: 4px; background: #e1e9e5; }
.ai-test .test__track > span.is-complete { background: var(--bento-accent); }
.ai-test .test__submit { border-radius: 10px; background: #153f37; }
.ai-test .test__result { scroll-margin-top: 128px; }
.ai-test .test__summary { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 16px; }
.ai-test .test__summary > div:first-child { padding: 36px; border-radius: 24px; background: var(--bento-ink); color: #fff; }
.ai-test .test__summary h3 { max-width: 24ch; line-height: 1.16; }
.ai-test .test__summary h3 + p { margin-top: 22px; max-width: 65ch; font-size: 18px; color: #d1dfdf; line-height: 1.7; }
.ai-test .test__score { display: flex; flex-direction: column; justify-content: center; padding: 30px; border: 1px solid #bddcce; border-radius: 24px; background: var(--bento-mint); }
.ai-test .test__score strong { font-family: var(--home-display); font-size: 80px; line-height: 1; letter-spacing: -.06em; font-weight: 650; color: #164e3f; }
.ai-test .test__score span { margin-top: 18px; color: #435e56; font-size: 14px; }
.ai-test .test__top { gap: 16px; margin-top: 24px; border: 0; }
.ai-test .test__card, .ai-test .test__card:first-child, .ai-test .test__card:last-child { padding: 28px; border: 1px solid var(--bento-line); border-radius: 20px; background: #fff; }
.ai-test .test__card > p:first-child { color: var(--bento-accent); font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ai-test .test__card h4 { line-height: 1.2; }
.ai-test .test__tool { padding: 18px; border: 0; border-radius: 12px; background: #e5f2eb; }
.ai-test .test__tool b { margin-bottom: 6px; font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ai-test .test__bonus { margin-top: 24px; border: 1px solid #bdd9cb; border-radius: 24px; color: var(--bento-ink); background: #dceae6; }
.ai-test .test__bonus-label { font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--bento-accent); }
.ai-test .test__bonus-text { color: #435e56; }
.ai-test .test__bonus .home-button { border-radius: 10px; background: #153f37; color: #fff; }
.ai-test .test__next { padding: 20px 24px; border: 1px solid var(--bento-line); border-radius: 18px; background: #fff; }
.ai-test .test__result > .contact-form__note { margin-top: 20px; }
@media (max-width: 1100px) {
  .anketa-hero h1 { font-size: 44px; }
  .ai-test__facts > div { padding: 22px; }
  .ai-test__facts small { display: block; margin-top: 6px; }
  .ai-test .test__top { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .anketa-hero .page-hero__inner, .ai-test__intro { grid-template-columns: 1fr; }
  .anketa-hero__copy { grid-row: auto; }
  .anketa-hero h1 { font-size: clamp(38px,7vw,60px); }
  .anketa-hero__guide ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .anketa-hero__guide h2 br { display: none; }
  .anketa-hero__guide li { flex-direction: column; gap: 8px; }
  .anketa-layout { grid-template-columns: 1fr; gap: 16px; }
  .anketa-aside { position: static; padding: 20px; }
  .anketa-progress { flex-direction: row; gap: 10px; }
  .anketa-progress li { min-height: 52px; padding: 12px; }
  .anketa-aside .anketa-progress-status { margin-top: 14px !important; padding-top: 12px; }
  .ai-test__guide { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ai-test__facts { gap: 12px; }
  .ai-test__facts > div { padding: 24px 18px; }
  .ai-test .test__form { grid-template-columns: 1fr; }
  .ai-test .q legend { min-height: 0; }
  .ai-test .test__actions { flex-direction: row; }
  .ai-test .test__actions .home-button { width: auto; }
  .ai-test .test__summary { grid-template-columns: minmax(0,1fr) 180px; }
}
@media (max-width: 640px) {
  .anketa-hero .page-hero__inner { padding-block: 20px 24px; gap: 12px; }
  .anketa-hero__copy { padding: 28px 22px; border-radius: 20px; }
  .anketa-hero h1 { font-size: clamp(30px,7.5vw,44px); }
  .anketa-hero .page-hero__lead { font-size: 17px; margin-top: 24px; }
  .anketa-hero__guide { padding: 24px; border-radius: 20px; }
  .anketa-hero__guide h2 { font-size: 25px; }
  .anketa-hero__guide ol { grid-template-columns: 1fr; gap: 16px; }
  .anketa-hero__guide li { flex-direction: row; gap: 14px; }
  .anketa-hero__contact { padding: 22px; border-radius: 20px; }
  .anketa-aside { padding: 16px; border-radius: 18px; }
  .anketa-progress { gap: 6px; }
  .anketa-progress li { flex-direction: column; align-items: start; gap: 6px; min-height: 66px; padding: 10px; font-size: 13px; }
  .anketa-progress li::before { font-size: 12px; }
  .anketa-section { padding-block: 8px 48px; }
  .anketa-panel-heading { padding: 24px 20px; border-radius: 18px; }
  .anketa-fields { grid-template-columns: 1fr; gap: 12px; }
  .anketa-fields > .anketa-field:has(#role, #team-size) { grid-column: 1; }
  .anketa-field { padding: 22px 18px; border-radius: 18px; }
  .anketa-choices { grid-template-columns: 1fr; }
  .anketa-details { padding: 14px 18px; border-radius: 18px; }
  .anketa-details .anketa-field { padding: 18px 14px; }
  .anketa-conditional, .anketa-review { padding: 22px 18px; border-radius: 18px; }
  .anketa-actions { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .anketa-actions .home-button { flex-grow: 1; font-size: 14px; padding-inline: 16px; }
  .anketa-fields > [data-consent-field] { padding: 20px 18px; }
  .anketa-done { padding: 28px 22px; }
  #test.ai-test { padding-block: 24px 40px; }
  .ai-test__intro { gap: 12px; margin-bottom: 16px; }
  .ai-test__copy { padding: 28px 22px; border-radius: 20px; }
  .ai-test .home-section__intro h2 { font-size: 34px; }
  .ai-test__guide { grid-template-columns: 1fr; gap: 12px; }
  .ai-test__facts > div { padding: 24px; border-radius: 20px; }
  .ai-test__facts strong { font-size: 44px; }
  .ai-test__facts small { display: inline; }
  .ai-test__outcome { padding: 24px; border-radius: 20px; }
  .ai-test .q { padding: 24px 18px; border-radius: 18px; }
  .ai-test .q__opt { padding: 14px 12px; }
  .ai-test .test__actions { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; bottom: 8px; }
  .ai-test .test__progress-box { max-width: none; }
  .ai-test .test__actions .home-button { width: 100%; }
  .ai-test .test__summary { grid-template-columns: 1fr; gap: 12px; }
  .ai-test .test__summary > div:first-child { padding: 28px 22px; border-radius: 20px; }
  .ai-test .test__score { flex-direction: row; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; }
  .ai-test .test__score strong { font-size: 64px; }
  .ai-test .test__score span { margin-top: 0; max-width: 16ch; }
  .ai-test .test__card, .ai-test .test__card:first-child, .ai-test .test__card:last-child { padding: 24px; }
  .ai-test .test__bonus { padding: 26px 22px; border-radius: 20px; }
  .ai-test .test__next { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .anketa-page *, .ai-test * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .ai-test .test__actions { position: static; } .anketa-aside { position: static; } }
