*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: #111827; font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: #1D4ED8; }
a:hover { color: #111827; }
input, button { font-family: inherit; }
input::placeholder { color: #9CA3AF; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { border-bottom: 1px solid #E5E7EB; }
.header .wrap { height: 64px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #111827; }
.brand__word { position: relative; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: #111827; line-height: 1; }
.brand__cursor { position: absolute; right: -9px; bottom: -4px; display: block; }

/* Type */
.h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: min(50px, calc((100vw - 40px) / 11.8)); line-height: 1.16; font-weight: 700; letter-spacing: -0.025em; }
.h1 .line { display: block; white-space: nowrap; }
.accent { color: #1D4ED8; }
.lead { margin: 0; font-size: 18px; line-height: 1.5; color: #4B5563; text-wrap: pretty; }
.h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(23px, 1.2vw + 19px, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }

/* Buttons */
.cta-row { display: flex; }
.btn { height: 60px; min-width: min(320px, 100%); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 0; border-radius: 12px; background: #1D4ED8; color: #FFFFFF; font-family: 'Manrope', sans-serif; font-size: min(18px, calc((100vw - 110px) / 13.6)); font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 8px 20px -8px rgba(29, 78, 216, 0.55); transition: background 150ms, transform 120ms; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: #1E40AF; color: #FFFFFF; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.35); outline-offset: 2px; }
.btn svg { flex: none; }
.btn--block { width: 100%; font-size: min(18px, calc((100vw - 150px) / 13.6)); }
.btn.is-sending { opacity: 0.75; cursor: progress; }
@media (max-width: 767px) { .cta-row .btn { width: 100%; } }

/* Sections */
.hero { padding-top: 44px; display: flex; flex-direction: column; gap: 20px; }
.hero .cta-row { padding-top: 8px; }
.section { padding-top: clamp(64px, 9vw, 96px); }
.terms { padding-top: clamp(64px, 9vw, 88px); display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card, .founder__card { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 18px -8px rgba(17, 24, 39, 0.08); }
.card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #EFF4FF; display: flex; align-items: center; justify-content: center; }
.card__title { margin: 0; font-family: 'Manrope', sans-serif; font-size: min(19px, calc((100vw - 132px) / 13.2)); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.card__text { margin: 0; font-size: 17px; line-height: 1.55; color: #374151; text-wrap: pretty; }

/* About */
.about { display: flex; flex-direction: column; gap: 16px; }
.about .h2 { margin-bottom: 4px; }
.about p { margin: 0; font-size: 17px; line-height: 1.6; color: #374151; }

/* Founder */
.founder { padding-top: 32px; }
.founder__card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.founder__row { display: flex; align-items: center; gap: 14px; }
.founder__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #E5E7EB; }
.founder__meta { display: flex; flex-direction: column; line-height: 1.35; }
.founder__name { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; }
.founder__role { font-size: 15px; color: #6B7280; }
.founder__quote { margin: 0; padding-top: 16px; border-top: 1px solid #E5E7EB; font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; color: #111827; text-wrap: balance; }

/* Steps */
.how { display: flex; flex-direction: column; gap: 24px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: #E5E7EB; }
.step__num { width: 36px; height: 36px; border-radius: 50%; background: #EFF4FF; color: #1D4ED8; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; }
.step:last-child .step__num { background: #1D4ED8; color: #FFFFFF; }
.step__text { font-size: 17px; line-height: 1.5; font-weight: 500; padding-top: 5px; text-wrap: pretty; }

/* Form */
.form-section { padding-bottom: 80px; scroll-margin-top: 8px; }
.form { position: relative; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px -12px rgba(17, 24, 39, 0.12); }
.form__head { display: flex; flex-direction: column; gap: 6px; }
.form__sub { margin: 0; font-size: 17px; line-height: 1.5; color: #374151; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 15px; font-weight: 500; color: #374151; }
.field__input { width: 100%; height: 56px; padding: 0 16px; border: 1px solid #D1D5DB; border-radius: 12px; font-size: 17px; color: #111827; background: #FFFFFF; outline: none; transition: border-color 150ms, box-shadow 150ms; -webkit-appearance: none; appearance: none; }
.field__input[type="tel"], .field__input[inputmode="tel"] { font-variant-numeric: tabular-nums; }
.field__input:focus { border-color: #1D4ED8; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12); }
.field__input[aria-invalid="true"] { border-color: #B91C1C; }
.field__error { font-size: 15px; line-height: 1.4; color: #B91C1C; }
.field__error[hidden], .form__status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* phone-country.js country picker */
.pc-btn { font-size: 15px !important; font-weight: 500; }

/* Messenger choice */
.messengers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.messenger { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.messenger input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.messenger__box { position: relative; height: 80px; padding: 0 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #D1D5DB; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); transition: background 150ms, border-color 150ms, box-shadow 150ms; }
.messenger__name { font-size: 15px; font-weight: 500; color: #111827; }
.messenger__check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #1D4ED8; display: none; align-items: center; justify-content: center; }
.messenger input:checked + .messenger__box { border-color: #1D4ED8; background: #F5F8FF; box-shadow: inset 0 0 0 1px #1D4ED8, 0 4px 12px -6px rgba(29, 78, 216, 0.4); }
.messenger input:checked + .messenger__box .messenger__name { color: #1D4ED8; font-weight: 600; }
.messenger input:checked + .messenger__box .messenger__check { display: flex; }
.messenger input:focus-visible + .messenger__box { outline: 3px solid rgba(29, 78, 216, 0.35); outline-offset: 2px; }

.form__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.form__status { margin: 0; font-size: 15px; line-height: 1.4; color: #B91C1C; }
.consent { margin: 0; font-size: 13px; line-height: 1.5; color: #6B7280; text-wrap: pretty; }
.link-muted { padding: 0; border: 0; background: none; font: inherit; color: #6B7280; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-muted:hover { color: #111827; }

/* Footer */
.footer { border-top: 1px solid #E5E7EB; }
.footer .wrap { padding-top: 28px; padding-bottom: 36px; font-size: 15px; line-height: 1.5; color: #6B7280; display: flex; flex-direction: column; gap: 10px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footer__small { margin: 0; font-size: 13px; line-height: 1.5; text-wrap: pretty; }

/* Thank-you */
.ty { padding-top: 48px; padding-bottom: 80px; min-height: calc(100vh - 64px - 220px); display: flex; flex-direction: column; gap: 16px; }
.ty__icon { width: 52px; height: 52px; border-radius: 50%; background: #EFF4FF; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ty__title { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(31px, 2.6vw + 21px, 44px); line-height: 1.16; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.ty__muted { color: #6B7280; }
.ty__text { margin: 0; font-size: 18px; line-height: 1.55; color: #374151; text-wrap: pretty; }
[data-name-wrap][hidden] { display: none; }
.ty__card { margin-top: 16px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; padding: clamp(20px, 4vw, 28px); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px -12px rgba(17, 24, 39, 0.12); }
.ty__card-title { margin: 0; font-family: 'Manrope', sans-serif; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.ty__card-text { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: #374151; text-wrap: pretty; }
.btn--tg { width: 100%; background: #1D93D2; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 8px 20px -8px rgba(29, 147, 210, 0.6); font-size: min(18px, calc((100vw - 170px) / 11)); }
.btn--tg:hover { background: #1782BC; }
@media (min-width: 768px) { .btn--tg { width: auto; align-self: flex-start; padding: 0 28px; } }

/* Privacy modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 39, 0.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__panel { background: #FFFFFF; width: 100%; max-width: 640px; max-height: 88vh; border-radius: 16px; display: flex; flex-direction: column; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #E5E7EB; }
.modal__title { margin: 0; font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 700; }
.modal__close { height: 44px; padding: 0 16px; border: 1px solid #E5E7EB; border-radius: 10px; background: #FFFFFF; color: #111827; font-size: 15px; cursor: pointer; }
.modal__body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px; font-size: 15px; line-height: 1.6; color: #374151; }
@media (max-width: 767px) {
  .modal { align-items: flex-end; padding: 16px 0 0; }
  .modal__panel { border-radius: 16px 16px 0 0; }
}
.policy h3 { margin: 22px 0 8px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; color: #111827; }
.policy h3:first-child { margin-top: 0; }
.policy p { margin: 0 0 8px; }
.policy ul { margin: 0 0 8px; padding-left: 20px; }
.policy li { margin-bottom: 4px; }
.policy dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.policy dt { color: #6B7280; }
.policy dd { margin: 0; color: #111827; }
.policy__meta { margin-top: 18px !important; font-size: 13px; color: #6B7280; }
