/* ============================================================
   Академия Характера — конверсионные блоки
   Единая таблица стилей. Подключается один раз на странице:
   <link rel="stylesheet" href="styles.css">
   Шрифт Gilroy проприетарный — здесь подставлен Montserrat.
   Если у вас лицензирован Gilroy, замените font-family ниже.
   ============================================================ */

:root {
  --ah-green: #0EB41F;
  --ah-green-bright: #31C740;
  --ah-green-dark: #0D8319;
  --ah-red: #FE2428;
  --ah-ink: #0B0A0A;
  --ah-bg: #EBF0FE;
  --ah-field: #F3F6FF;
  --ah-border: #E4E7F0;
  --ah-muted: rgba(11, 10, 10, 0.6);
  --ah-font: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ah-green-panel: radial-gradient(130% 130% at 12% 18%, #31C740 0%, #0EB41F 46%, #0D8319 100%);
}

.ah * { box-sizing: border-box; }

/* ---------- layout ---------- */
.ah { font-family: var(--ah-font); color: var(--ah-ink); }
.ah-container { max-width: 1200px; margin: 0 auto; }
.ah-block { margin: 0 auto clamp(28px, 4vw, 40px); }

.ah-group { margin: clamp(44px, 6vw, 72px) auto clamp(20px, 2.5vw, 28px); }
.ah-group:first-of-type { margin-top: 0; }
.ah-group__head { display: flex; align-items: baseline; gap: 16px; }
.ah-group__head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; margin: 0; white-space: nowrap; }
.ah-group__rule { flex: 1; height: 2px; background: rgba(11, 10, 10, 0.08); }
.ah-group__sub { margin: 8px 0 0; color: rgba(11, 10, 10, 0.5); font-size: 14px; font-weight: 600; }

.ah-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8892AD; margin-bottom: 12px;
}

/* ---------- cards / panels ---------- */
.ah-card { background: #fff; border-radius: 43px; padding: clamp(28px, 3.5vw, 52px); }
.ah-card--tight { padding: clamp(24px, 2.6vw, 32px); }
.ah-inner { border-radius: 33px; padding: clamp(24px, 3vw, 40px); }
.ah-inner--white { background: #fff; }
.ah-inner--bg { background: var(--ah-bg); }
.ah-panel-green {
  border-radius: 43px; overflow: hidden; background: var(--ah-green-panel);
  padding: clamp(28px, 3.5vw, 52px); color: #fff;
}
.ah-panel-green--tr { background: radial-gradient(130% 130% at 88% 12%, #31C740 0%, #0EB41F 48%, #0D8319 100%); }

/* ---------- grids ---------- */
.ah-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(24px, 3vw, 44px); align-items: center; }
.ah-cols--start { align-items: start; }
.ah-cols--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ah-cols--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ah-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ah-tiles--130 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ah-tiles--150 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ah-tiles--230 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 11px; }
.ah-tiles--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ---------- typography ---------- */
.ah-h { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin: 0 0 14px; letter-spacing: -0.01em; line-height: 1.15; }
.ah-h--lg { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; }
.ah-lead { margin: 0; color: var(--ah-muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; font-weight: 500; }
.ah-lead--onGreen { color: rgba(255, 255, 255, 0.9); }
.ah-center { text-align: center; }
.ah-center .ah-lead { margin-left: auto; margin-right: auto; }
.ah-maxw { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- badges ---------- */
.ah-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 7px 15px; border-radius: 100px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.ah-badge--green { background: rgba(14, 180, 31, 0.12); color: var(--ah-green-dark); }
.ah-badge--onGreen { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ah-badge--red { background: rgba(254, 36, 40, 0.08); color: #D32027; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ---------- buttons ---------- */
.ah-btn {
  position: relative; border: none; font-family: inherit; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; color: #fff;
  height: 67px; border-radius: 100px; padding: 0 82px 0 34px; cursor: pointer;
  display: inline-flex; align-items: center; text-align: left;
}
.ah-btn--block { display: flex; width: 100%; }
.ah-btn--sm { height: 63px; padding-right: 70px; padding-left: 28px; }
.ah-btn--red { background: var(--ah-red); }
.ah-btn--green { background: var(--ah-green); }
.ah-btn__circle {
  position: absolute; right: 4px; top: 4px; width: 59px; height: 59px;
  border-radius: 100px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
}
.ah-btn--sm .ah-btn__circle { width: 55px; height: 55px; }
.ah-btn--red .ah-btn__circle { color: var(--ah-red); }
.ah-btn--green .ah-btn__circle { color: var(--ah-green); }
.ah-btn__circle svg { display: block; }

/* ---------- form fields ---------- */
.ah-input, .ah-select {
  width: 100%; height: 58px; border: 1.5px solid var(--ah-border); border-radius: 100px;
  padding: 0 26px; font-size: 16px; font-family: inherit; font-weight: 500;
  outline: none; background: var(--ah-field); color: var(--ah-ink); margin-bottom: 14px;
}
.ah-input--onWhite, .ah-select--onWhite { background: #fff; }
.ah-input::placeholder { color: rgba(11, 10, 10, 0.4); }
.ah-select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 46px; }
.ah-field { position: relative; }
.ah-field__chevron { position: absolute; right: 22px; top: 27px; pointer-events: none; color: var(--ah-green); font-size: 12px; }
.ah-fieldlabel { font-size: 13px; font-weight: 800; color: var(--ah-muted); margin-bottom: 7px; display: block; text-transform: uppercase; letter-spacing: 0.04em; }

.ah-consent { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ah-consent__box { flex: none; width: 20px; height: 20px; border-radius: 40px; box-shadow: inset 0 0 0 1.5px rgba(11, 10, 10, 0.2); }
.ah-consent span:last-child { font-size: 12px; color: rgba(11, 10, 10, 0.5); line-height: 1.4; font-weight: 500; }

/* ---------- lists ---------- */
.ah-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ah-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ah-tick { flex: none; width: 24px; height: 24px; border-radius: 100px; display: grid; place-items: center; font-size: 13px; margin-top: 1px; }
.ah-tick--green { background: rgba(14, 180, 31, 0.12); color: var(--ah-green); }
.ah-tick--bright { background: rgba(49, 199, 64, 0.16); color: var(--ah-green-dark); }
.ah-tick--onGreen { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- tiles ---------- */
.ah-stat { background: var(--ah-field); border-radius: 20px; padding: 20px 16px; text-align: center; }
.ah-stat__num { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; color: var(--ah-green); letter-spacing: -0.02em; }
.ah-stat__label { font-size: 12.5px; color: var(--ah-muted); margin-top: 6px; line-height: 1.35; font-weight: 600; }

.ah-feature { background: var(--ah-field); border-radius: 24px; padding: 24px; }
.ah-feature__icon { width: 46px; height: 46px; border-radius: 100px; background: rgba(14, 180, 31, 0.12); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.ah-feature__title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.ah-feature__text { font-size: 13.5px; color: var(--ah-muted); line-height: 1.45; font-weight: 500; }

.ah-chip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ah-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding: 9px 16px; border-radius: 100px; }
.ah-chip--trust { color: var(--ah-green-dark); background: rgba(14, 180, 31, 0.1); text-transform: uppercase; letter-spacing: 0.04em; }
.ah-chip--onGreen { color: #fff; background: rgba(255, 255, 255, 0.14); font-weight: 700; }

.ah-phone-link { color: #fff; font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; text-decoration: none; display: inline-block; margin-top: 26px; }

/* ---------- success state (toggled by JS) ---------- */
.ah-lead-form .ah-success { display: none; text-align: center; padding: 20px 0; }
.ah-lead-form.is-done .ah-form { display: none; }
.ah-lead-form.is-done .ah-success { display: block; }
.ah-success__icon { width: 62px; height: 62px; border-radius: 100px; background: rgba(14, 180, 31, 0.12); color: var(--ah-green); display: grid; place-items: center; margin: 0 auto 16px; font-size: 30px; }
.ah-success h3 { font-size: 22px; font-weight: 900; margin: 0 0 10px; }
.ah-success p { margin: 0; color: var(--ah-muted); font-size: 15px; line-height: 1.5; font-weight: 500; }

/* ---------- quiz ---------- */
.ah-quiz { max-width: 660px; margin: 0 auto; }
.ah-quiz__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #8892AD; margin-bottom: 8px; }
.ah-quiz__track { height: 8px; background: var(--ah-bg); border-radius: 100px; overflow: hidden; margin-bottom: 30px; }
.ah-quiz__bar { height: 100%; background: var(--ah-green); border-radius: 100px; transition: width 0.35s ease; }
.ah-quiz__q { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; line-height: 1.35; text-align: center; margin: 0 0 26px; }
.ah-quiz__opts { display: flex; flex-direction: column; gap: 12px; }
.ah-opt { text-align: left; border: 1.5px solid var(--ah-border); background: var(--ah-field); border-radius: 18px; padding: 17px 22px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ah-ink); cursor: pointer; transition: all 0.15s; }
.ah-opt:hover { border-color: var(--ah-green); background: rgba(14, 180, 31, 0.06); }
.ah-quiz__result { text-align: center; }
.ah-quiz__result-icon { width: 66px; height: 66px; border-radius: 100px; display: grid; place-items: center; margin: 0 auto 18px; font-size: 32px; }
.ah-quiz__result h3 { font-size: clamp(21px, 2.4vw, 25px); font-weight: 900; margin: 0 0 12px; }
.ah-quiz__result p { color: rgba(11, 10, 10, 0.62); font-size: 16px; line-height: 1.55; max-width: 540px; margin: 0 auto 28px; font-weight: 500; }
.ah-quiz__form { background: var(--ah-field); border: 1.5px solid var(--ah-border); border-radius: 24px; padding: 28px; max-width: 480px; margin: 0 auto; }
.ah-quiz__form p.t { margin: 0 0 16px; font-weight: 800; font-size: 16px; text-align: center; }
.ah-restart { background: none; border: none; color: #8892AD; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- houses ---------- */
.ah-house { border: 1.5px solid var(--ah-border); border-radius: 33px; overflow: hidden; }
.ah-house__media { position: relative; aspect-ratio: 16 / 10; background: var(--ah-bg); }
.ah-house__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-house__tag { position: absolute; left: 18px; top: 18px; color: #fff; padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.ah-house__tag--boys { background: var(--ah-green); }
.ah-house__tag--girls { background: var(--ah-green-bright); }
.ah-house__body { padding: clamp(22px, 2.4vw, 30px); }
.ah-house__body .ah-checks li { font-size: 15px; font-weight: 500; color: var(--ah-ink); }

/* ---------- steps ---------- */
.ah-step { background: var(--ah-field); border-radius: 24px; padding: 26px; }
.ah-step__n { width: 44px; height: 44px; border-radius: 100px; background: var(--ah-green); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.ah-step__title { font-size: 17px; font-weight: 800; margin-bottom: 7px; line-height: 1.2; }
.ah-step__text { font-size: 13.5px; color: var(--ah-muted); line-height: 1.45; font-weight: 500; }

/* ---------- checklist signs (on green) ---------- */
.ah-sign { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #fff; }
.ah-sign__box { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; font-size: 12px; margin-top: 1px; }

/* ---------- concerns ---------- */
.ah-concern { background: var(--ah-field); border-radius: 24px; padding: 26px; }
.ah-concern__q { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ah-concern__q b { font-size: 16px; font-weight: 800; line-height: 1.3; padding-top: 3px; }
.ah-concern__mark { flex: none; width: 30px; height: 30px; border-radius: 100px; background: rgba(254, 36, 40, 0.1); color: var(--ah-red); display: grid; place-items: center; font-size: 15px; font-weight: 900; }
.ah-concern__a { display: flex; align-items: flex-start; gap: 12px; }
.ah-concern__a span:first-child { flex: none; width: 30px; height: 30px; border-radius: 100px; background: rgba(14, 180, 31, 0.12); color: var(--ah-green); display: grid; place-items: center; font-size: 14px; }
.ah-concern__a span:last-child { font-size: 14px; color: rgba(11, 10, 10, 0.65); line-height: 1.5; font-weight: 500; padding-top: 4px; }

/* ---------- in-article CTA ---------- */
.ah-inline { background: rgba(14, 180, 31, 0.07); border: 1.5px solid rgba(14, 180, 31, 0.18); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 2.5vw, 32px); align-items: center; }
.ah-inline__note { margin: 0 0 14px; color: rgba(11, 10, 10, 0.35); font-size: 13px; font-weight: 600; font-style: italic; }
.ah-inline__lead { display: flex; align-items: center; gap: 18px; }
.ah-inline__ava { flex: none; width: 62px; height: 62px; border-radius: 100px; background: var(--ah-green); color: #fff; display: grid; place-items: center; font-size: 30px; }
.ah-inline__title { font-size: clamp(18px, 2vw, 22px); font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.ah-inline__text { font-size: 14.5px; color: rgba(11, 10, 10, 0.62); line-height: 1.45; font-weight: 500; }
.ah-inline__cta { display: flex; justify-content: flex-end; }

/* ---------- online psychologist ---------- */
.ah-online-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: center; }
.ah-online-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ah-online-row .ah-input { flex: 1; min-width: 180px; height: 60px; margin: 0; }
.ah-online-row .ah-btn { height: 60px; }

/* ---------- day chips (визит) ---------- */
.ah-daychip { border: 1.5px solid #E4E7F0 !important; background: #fff !important; color: var(--ah-ink); }
.ah-daychip[data-active] { border-color: var(--ah-green) !important; background: var(--ah-green) !important; color: #fff; }

/* ---------- sticky mobile bar demo ---------- */
.ah-phone-demo { display: flex; justify-content: center; }
.ah-phone { width: 340px; max-width: 100%; }
.ah-phone__frame { border-radius: 40px; border: 10px solid var(--ah-ink); overflow: hidden; position: relative; background: var(--ah-bg); height: 520px; box-shadow: 0 30px 60px -30px rgba(11, 10, 10, 0.4); }
.ah-phone__body { padding: 22px 18px 130px; }
.ah-phone__bar { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 14px; display: flex; gap: 10px; box-shadow: 0 -10px 30px -12px rgba(11, 10, 10, 0.15); }
.ah-phone__ico { flex: none; width: 54px; height: 54px; border-radius: 16px; background: rgba(14, 180, 31, 0.12); display: grid; place-items: center; font-size: 22px; text-decoration: none; }
.ah-phone__cta { flex: 1; border: none; background: var(--ah-red); color: #fff; font-family: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; border-radius: 16px; cursor: pointer; }
.ah-phone__caption { text-align: center; color: #8892AD; font-size: 13px; margin: 18px 0 0; line-height: 1.5; font-weight: 500; }

/* real sticky bar for production (hidden on desktop, fixed on mobile) */
.ah-sticky-bar { display: none; }
@media (max-width: 640px) {
  .ah-sticky-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -12px rgba(11, 10, 10, 0.15);
  }
  .ah-sticky-bar .ah-phone__ico { width: 50px; height: 50px; }
  .ah-sticky-bar .ah-phone__cta { height: 50px; }
}
