:root {
  --page: #eefaff;
  --page-deep: #e5f6fc;
  --white: #fff;
  --ink: #264944;
  --muted: #6f7d84;
  --blue: #2160c4;
  --blue-strong: #174da6;
  --cyan: #7dd3fc;
  --cyan-soft: #c8ecf7;
  --yellow: #f5bd21;
  --green: #2a9d78;
  --line: #cbd5da;
  --shadow: 0 9px 26px rgba(52, 85, 95, .1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body {
  min-height: 100%; margin: 0; color: var(--ink); background: var(--page);
  font-family: Arial, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; stroke-width: 2; }
[hidden] { display: none !important; }

.app-shell { width: min(100%, 560px); min-height: 100vh; margin: 0 auto; background: var(--page); }
.app-header {
  position: sticky; z-index: 20; top: 0; height: calc(64px + var(--safe-top)); padding: var(--safe-top) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(238, 250, 255, .96); border-bottom: 1px solid #d7e8ef; backdrop-filter: blur(14px);
}
.wordmark { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; }
.wordmark span { color: #506ec0; font-size: 29px; line-height: 1; }
.wordmark b { width: 1px; height: 34px; background: #819097; }
.wordmark strong { color: #111; font-size: 10px; line-height: .95; text-align: left; }
.header-action, .header-back {
  min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  color: var(--blue); background: var(--white); border: 1px solid #bdc4c9; border-radius: 500px; font-size: 12px; font-weight: 700;
}
.header-action { max-width: 48%; padding-left: 5px; }
.header-action > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-back { display: none; width: 38px; padding: 0; justify-content: center; }
.header-back.is-visible { display: flex; }
.header-back.is-visible + .wordmark span { font-size: 25px; }

.app-main { padding: 20px 14px calc(102px + var(--safe-bottom)); }
.screen { display: none; animation: screen-in .2s ease-out; }
.screen.is-active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } }
.screen-heading { margin: 0 2px 18px; }
.screen-heading p { margin: 0 0 7px; color: #87959c; font-size: 13px; }
.screen-heading h1 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.15; }
.screen-heading h1 span { margin-left: 5px; }
.screen-heading > span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.access-summary, .feature-card, .onboarding-card, .profile-card, .access-card, .settings-card, .plan-card, .payment-history, .support-card, .faq-list details, .legal-document {
  background: var(--white); border: 1px solid var(--cyan); border-radius: 10px;
}
.user-avatar {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
  color: #fff; background: var(--blue); border-radius: 50%; font-weight: 800; line-height: 1;
}
.user-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-avatar.has-photo img { display: block !important; }
.user-avatar.has-photo > span { visibility: hidden; }
.user-avatar--header { width: 30px; height: 30px; border: 2px solid #d7e8ef; font-size: 10px; }
.user-avatar--profile { width: 68px; height: 68px; border: 3px solid #d8f2fb; font-size: 20px; }
.onboarding-card { margin-bottom: 13px; overflow: hidden; }
.onboarding-heading { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: #f7fcff; border-bottom: 1px solid #dcecf1; }
.onboarding-heading > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: #eaf4ff; border-radius: 9px; }
.onboarding-heading svg { width: 20px; height: 20px; }
.onboarding-heading small, .onboarding-heading strong { display: block; }
.onboarding-heading small { color: var(--muted); font-size: 11px; }
.onboarding-heading strong { margin-top: 3px; color: var(--ink); font-size: 15px; }
.onboarding-steps button { width: 100%; min-height: 66px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 10px 15px; text-align: left; background: #fff; border: 0; }
.onboarding-steps button + button { border-top: 1px solid #e3edf1; }
.onboarding-steps button > b { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 12px; }
.onboarding-steps button.is-done > b { color: #fff; background: var(--green); }
.onboarding-steps button.is-done > b::before { content: "✓"; }
.onboarding-steps button.is-done > b { font-size: 0; }
.onboarding-steps button strong, .onboarding-steps button small { display: block; }
.onboarding-steps button strong { color: var(--ink); font-size: 13px; }
.onboarding-steps button small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.onboarding-steps button > svg { width: 17px; color: #8e9ca2; }
.access-summary {
  min-height: 126px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  padding: 18px; cursor: pointer;
}
.summary-icon, .feature-icon, .row-icon, .large-status-icon, .support-illustration {
  display: grid; place-items: center; color: var(--blue); position: relative;
}
.summary-icon { width: 52px; height: 52px; border: 2px solid var(--blue); border-radius: 14px; }
.summary-icon::after, .feature-icon::after { content: ""; position: absolute; width: 8px; height: 8px; right: -3px; top: -3px; background: var(--yellow); border: 2px solid var(--white); transform: rotate(45deg); }
.summary-copy { min-width: 0; }
.summary-copy span, .summary-copy strong, .summary-copy small { display: block; }
.status-label { margin-bottom: 7px; color: #a16600; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.summary-copy strong { color: var(--blue); font-size: 17px; line-height: 1.25; }
.summary-copy small { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.chevron { flex: 0 0 auto; color: #8e9ca2; width: 19px; }

.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 23px; }
.primary-button, .secondary-button {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px;
  border-radius: 500px; font-weight: 700; border: 1px solid var(--cyan);
}
.primary-button { color: #fff; background: var(--blue); }
.primary-button:active { background: var(--blue-strong); }
.primary-button:disabled { opacity: .45; }
.primary-button svg, .secondary-button svg { width: 19px; height: 19px; }
.secondary-button { color: var(--blue); background: var(--white); }
.section-label { margin: 22px 2px 11px; color: #7f8d94; font-size: 13px; }
.feature-list { display: grid; gap: 13px; }
.feature-card {
  width: 100%; min-height: 112px; display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  padding: 17px 18px; text-align: left; cursor: pointer;
}
.feature-icon { width: 46px; height: 46px; border: 2px solid var(--blue); border-radius: 13px; }
.feature-icon svg { width: 25px; height: 25px; }
.feature-copy { min-width: 0; }
.feature-copy strong, .feature-copy small { display: block; }
.feature-copy strong { color: var(--blue); font-size: 17px; line-height: 1.25; }
.feature-copy small { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.service-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin: 18px 4px 0; color: #77878e; font-size: 11px; line-height: 1.45; }
.service-disclaimer svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: var(--blue); }
.service-disclaimer--support { margin-top: 16px; }

.search-field {
  min-height: 50px; display: grid; grid-template-columns: 25px 1fr 34px; align-items: center; gap: 8px;
  padding: 0 9px 0 15px; background: var(--white); border: 1px solid var(--line); border-radius: 500px;
}
.search-field > svg { color: #829198; width: 20px; }
.search-field input { min-width: 0; height: 48px; color: var(--ink); background: none; border: 0; outline: 0; }
.search-field input::placeholder { color: #98a4aa; }
.search-field button { width: 34px; height: 34px; display: grid; place-items: center; color: #8b999f; background: none; border: 0; }
.search-field button svg { width: 18px; }
.selection-note { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px; color: var(--muted); font-size: 13px; }
.selection-note b { color: var(--blue); }
.selection-note button { color: var(--blue); background: none; border: 0; font-weight: 700; }
.city-list { display: grid; gap: 10px; }
.city-option {
  width: 100%; min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 26px; align-items: center; gap: 12px;
  padding: 11px 15px; text-align: left; background: var(--white); border: 1px solid var(--cyan-soft); border-radius: 10px;
}
.city-option.is-selected { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(33, 96, 196, .12); }
.country-code { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); background: #f2fbff; border-radius: 8px; font-size: 12px; font-weight: 800; }
.city-option strong, .city-option small { display: block; }
.city-option strong { color: var(--ink); font-size: 16px; }
.city-option small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.check-circle { width: 23px; height: 23px; display: grid; place-items: center; color: transparent; border: 1px solid #b8c5cb; border-radius: 50%; }
.check-circle svg { width: 15px; height: 15px; }
.city-option.is-selected .check-circle { color: #fff; background: var(--blue); border-color: var(--blue); }
.empty-state { display: none; padding: 40px 0; color: var(--muted); text-align: center; }
.empty-state.is-visible { display: block; }
.sticky-action { position: sticky; bottom: calc(77px + var(--safe-bottom)); z-index: 10; padding: 14px 0 3px; background: linear-gradient(transparent, var(--page) 24%); }
.sticky-action .primary-button { width: 100%; box-shadow: 0 8px 20px rgba(33, 96, 196, .2); }

.profile-card { min-height: 94px; display: flex; align-items: center; gap: 15px; margin-bottom: 13px; padding: 12px 16px; }
.profile-copy { min-width: 0; display: block; }
.profile-copy strong, .profile-copy small, .profile-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { color: var(--ink); font-size: 17px; }
.profile-copy small { margin-top: 5px; color: var(--blue); font-size: 13px; }
.profile-copy > span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.profile-copy b { color: var(--ink); font-weight: 700; }
.access-card { padding: 20px; }
.access-card.is-active { border-color: #7ddbc2; }
.access-card-top { display: flex; align-items: center; justify-content: space-between; }
.large-status-icon { width: 48px; height: 48px; background: #eaf4ff; border-radius: 12px; }
.large-status-icon svg { width: 27px; height: 27px; }
.access-card.is-active .large-status-icon { color: var(--green); background: #eafaf4; }
.access-badge { padding: 6px 10px; color: #986600; background: #fff7dc; border-radius: 500px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.access-card.is-active .access-badge { color: #187259; background: #e6f8f2; }
.access-card h2 { margin: 17px 0 8px; color: var(--blue); font-size: 21px; }
.access-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.access-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #deedf2; }
.access-meta div { display: grid; gap: 5px; }
.access-meta span { color: var(--muted); font-size: 12px; }
.access-meta strong { color: var(--ink); font-size: 14px; }
.settings-card { margin-top: 13px; overflow: hidden; }
.settings-row { min-height: 74px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 15px; }
.settings-row + .settings-row { border-top: 1px solid #dcecf1; }
.row-icon { width: 36px; height: 36px; background: #f0faff; border-radius: 9px; }
.row-icon svg { width: 20px; height: 20px; }
.settings-row > span:nth-child(2) { min-width: 0; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { color: var(--ink); font-size: 14px; }
.settings-row small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.settings-row button { padding: 7px 0 7px 10px; color: var(--blue); background: none; border: 0; font-size: 12px; font-weight: 700; }
.switch { position: relative; width: 46px; height: 27px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; background: #bdc7cc; border-radius: 500px; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #829198; transition: .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(19px); }
.plan-card { padding: 19px; }
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.plan-heading > span > small, .plan-heading > span > strong { display: block; }
.plan-heading > span > small { color: var(--muted); font-size: 12px; }
.plan-heading > span > strong { margin-top: 5px; color: var(--blue); font-size: 19px; }
.plan-price { min-width: 92px; text-align: right; }
.plan-price b { color: var(--blue); font-size: 25px; }
.plan-price small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; }
.plan-calculation { margin: 12px 0 0; padding: 9px 11px; color: var(--blue); background: #eef8ff; border: 1px solid #cce9f4; border-radius: 8px; font-size: 12px; text-align: center; }
.plan-card ul { display: grid; gap: 10px; margin: 18px 0; padding: 16px 0; border-block: 1px solid #dcecf1; list-style: none; }
.plan-card li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.plan-card li svg { width: 17px; height: 17px; color: var(--green); }
.plan-card .primary-button { width: 100%; }
.text-button { width: 100%; padding: 15px 10px 2px; color: var(--blue); background: none; border: 0; font-weight: 700; }
.payment-history { min-height: 72px; margin-top: 13px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-history > div { display: flex; align-items: center; gap: 10px; }
.payment-history strong, .payment-history small { display: block; }
.payment-history strong { font-size: 13px; }
.payment-history small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.paid-mark { color: var(--green); font-size: 12px; font-weight: 800; }

.support-card { padding: 24px 20px 20px; text-align: center; }
.support-illustration { width: 68px; height: 68px; margin: 0 auto; color: var(--blue); background: #eef8ff; border: 2px solid var(--cyan); border-radius: 18px; }
.support-illustration::after { content: ""; position: absolute; width: 13px; height: 13px; right: 3px; top: 3px; background: var(--yellow); border-radius: 3px; transform: rotate(45deg); }
.support-illustration svg { width: 34px; height: 34px; }
.support-card h2 { margin: 17px 0 8px; color: var(--blue); font-size: 21px; }
.support-card p { max-width: 360px; margin: 0 auto 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.support-card .primary-button { width: 100%; }
.faq-list { display: grid; gap: 9px; }
.faq-list details { overflow: hidden; }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; color: var(--ink); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; color: var(--blue); transition: .2s; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal-links { display: grid; gap: 9px; margin-top: 13px; }
.legal-links button { min-height: 58px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 0 16px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--cyan); border-radius: 10px; font-size: 13px; font-weight: 700; }
.legal-links button > svg:first-child { width: 21px; color: var(--blue); }
.legal-links button > svg:last-child { width: 17px; color: #8e9ca2; }
.legal-document { overflow: hidden; }
.legal-document section { padding: 16px; }
.legal-document section + section { border-top: 1px solid #dcecf1; }
.legal-document h2 { margin: 0 0 7px; color: var(--blue); font-size: 15px; }
.legal-document p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.bottom-nav {
  position: fixed; z-index: 25; left: 50%; bottom: 0; width: min(calc(100% - 28px), 532px); height: calc(72px + var(--safe-bottom));
  padding: 6px 8px var(--safe-bottom); display: grid; grid-template-columns: repeat(4, 1fr); transform: translateX(-50%);
  background: rgba(255, 255, 255, .97); border-top: 1px solid #dfe8eb; border-radius: 26px 26px 0 0; box-shadow: 0 -8px 24px rgba(52, 85, 95, .12); backdrop-filter: blur(14px);
}
.bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7b888e; background: none; border: 0; font-size: 11px; }
.bottom-nav button svg { width: 22px; height: 22px; }
.bottom-nav button.is-active { color: var(--blue); font-weight: 700; }
.bottom-nav button b { position: absolute; top: 5px; right: calc(50% - 22px); min-width: 17px; height: 17px; display: none; place-items: center; padding: 0 4px; color: #fff; background: var(--yellow); border: 2px solid #fff; border-radius: 500px; font-size: 9px; }
.bottom-nav button b.is-visible { display: grid; }

.sheet-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(18, 37, 43, .44); }
.payment-sheet { position: relative; width: min(100%, 560px); padding: 13px 20px calc(20px + var(--safe-bottom)); background: #fff; border-radius: 24px 24px 0 0; text-align: center; animation: sheet-up .24s ease-out; }
@keyframes sheet-up { from { transform: translateY(35%); opacity: 0; } }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 16px; background: #ccd4d8; border-radius: 500px; }
.sheet-close { position: absolute; top: 18px; right: 17px; width: 36px; height: 36px; display: grid; place-items: center; color: #718087; background: #f1f5f6; border: 0; border-radius: 50%; }
.sheet-close svg { width: 18px; }
.stars-symbol { width: 62px; height: 62px; margin: 0 auto 10px; display: grid; place-items: center; color: #fff; background: var(--yellow); border-radius: 18px; }
.stars-symbol svg { width: 34px; height: 34px; fill: rgba(255,255,255,.25); }
.payment-sheet > p { margin: 0 0 5px; color: #8a989f; font-size: 12px; }
.payment-sheet h2 { max-width: 300px; margin: 0 auto 20px; color: var(--ink); font-size: 20px; }
.invoice-row { min-height: 60px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 16px; background: #f5fbfd; border-radius: 10px; }
.invoice-row span { color: var(--muted); font-size: 13px; }
.invoice-row strong { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 20px; }
.invoice-row strong svg { width: 19px; color: var(--yellow); fill: var(--yellow); }
.invoice-breakdown { margin: 0 0 10px; color: var(--muted); font-size: 13px; text-align: center; }
.payment-active-note { margin: 0 0 12px; padding: 10px 12px; color: #28514a; background: #effaf6; border: 1px solid #bfe7d9; border-radius: 8px; font-size: 12px; line-height: 1.45; text-align: left; }
.payment-sheet .primary-button { width: 100%; }
.prototype-note { display: block; margin-top: 10px; color: #96a1a6; font-size: 11px; }
.payment-disclaimer { display: block; max-width: 360px; margin: 8px auto 0; color: #7d8b91; font-size: 10px; line-height: 1.4; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(88px + var(--safe-bottom)); max-width: calc(100% - 40px); padding: 11px 16px; color: #fff; background: #263d42; border-radius: 500px; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Public browser landing page. The authenticated Mini App keeps the compact UI above. */
body.landing-mode { color: #142f2c; background: #fffbe8; }
.telegram-mode .web-landing, .legal-mode .web-landing { display: none; }
.web-landing { min-height: 100vh; overflow: hidden; background: #fffbe8; }
.landing-header {
  position: sticky; z-index: 40; top: 0; min-height: 70px; display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); align-items: center; gap: 30px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2)); background: rgba(255, 251, 232, .96);
  border-bottom: 1px solid #cbd8ef; backdrop-filter: blur(14px);
}
.landing-wordmark { display: flex; align-items: center; gap: 9px; width: max-content; color: inherit; text-decoration: none; }
.landing-wordmark span { color: #2253de; font-size: 30px; line-height: 1; }
.landing-wordmark b { width: 1px; height: 36px; background: #819097; }
.landing-wordmark strong { color: #05070d; font-size: 10px; line-height: .95; }
.landing-header > nav { display: flex; align-items: center; gap: 26px; }
.landing-header > nav a, .landing-footer nav a { color: #425a57; font-size: 14px; font-weight: 700; text-decoration: none; }
.landing-header > nav a:hover, .landing-footer nav a:hover { color: #2253de; }
.landing-telegram-button, .landing-primary, .landing-secondary {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 19px; border: 1px solid #2253de; border-radius: 500px; font-weight: 800; text-decoration: none;
}
.landing-telegram-button { justify-self: end; color: #fff; background: #2253de; font-size: 13px; }
.landing-telegram-button svg, .landing-primary svg { width: 18px; height: 18px; }
.landing-primary { color: #fff; background: #2253de; }
.landing-primary:hover, .landing-telegram-button:hover { background: #12348b; }
.landing-secondary { color: #0d2d7f; background: #fff; border-color: #cbd8ef; }
.landing-hero {
  position: relative; min-height: 585px; max-width: 1240px; margin: 0 auto; padding: 48px 47% 34px 30px;
  display: flex; align-items: center; background-image: url("assets/miniapp-access.png");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 430px auto;
}
.landing-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.landing-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #2253de; font-size: 14px; font-weight: 800; }
.landing-eyebrow svg { width: 19px; }
.landing-hero h1 { max-width: 670px; margin: 0; color: #05070d; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.02; letter-spacing: 0; }
.landing-lead { max-width: 590px; margin: 24px 0 0; color: #425a57; font-size: 18px; line-height: 1.55; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.landing-trust { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: #5b6d69; font-size: 12px; line-height: 1.45; }
.landing-trust svg { flex: 0 0 auto; width: 17px; color: #2a9d78; }
.landing-product-visual { display: none; }
.landing-proof {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: 0 auto;
  border-block: 1px solid #cbd8ef; background: #fff;
}
.landing-proof > div { min-height: 116px; display: grid; grid-template-columns: 42px 1fr; align-content: center; column-gap: 13px; padding: 20px 32px; }
.landing-proof > div + div { border-left: 1px solid #e0e7f1; }
.landing-proof svg { grid-row: 1 / span 2; width: 29px; height: 29px; color: #2253de; }
.landing-proof strong, .landing-proof span { display: block; }
.landing-proof strong { color: #0d2d7f; font-size: 15px; }
.landing-proof span { margin-top: 5px; color: #687976; font-size: 13px; }
.landing-section { max-width: 1180px; margin: 0 auto; padding: 88px 30px; }
.landing-section-heading { max-width: 700px; margin-bottom: 38px; }
.landing-section-heading > p, .landing-offer > div:first-child > p { margin: 0 0 10px; color: #2253de; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.landing-section-heading h2, .landing-offer h2, .landing-final-cta h2 { margin: 0; color: #05070d; font-size: 34px; line-height: 1.15; }
.landing-section-heading > span, .landing-offer > div:first-child > span { display: block; margin-top: 13px; color: #687976; font-size: 15px; line-height: 1.55; }
.landing-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-block: 1px solid #cbd8ef; }
.landing-how li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 30px 28px; }
.landing-how li + li { border-left: 1px solid #cbd8ef; }
.landing-how li > b { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #2253de; border-radius: 50%; font-size: 14px; }
.landing-how strong, .landing-how span { display: block; }
.landing-how strong { color: #0d2d7f; font-size: 18px; }
.landing-how span { margin-top: 9px; color: #687976; font-size: 14px; line-height: 1.55; }
.landing-intent { border-top: 1px solid #d7e8ef; }
.landing-intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.landing-intent-grid > div { padding-top: 24px; border-top: 2px solid #7dd3fc; }
.landing-intent-grid h3 { margin: 0 0 12px; color: #3267d5; font-size: 20px; letter-spacing: 0; }
.landing-intent-grid p { margin: 0; color: #687976; font-size: 15px; line-height: 1.7; }
.landing-cities { max-width: none; padding-inline: max(30px, calc((100vw - 1120px) / 2)); background: #eaf1ff; border-block: 1px solid #cbd8ef; }
.landing-city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.landing-city-grid a { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 9px 13px; color: #142f2c; background: #fff; border: 1px solid #cbd8ef; border-radius: 8px; text-decoration: none; }
.landing-city-grid a:hover { border-color: #2253de; }
.landing-city-grid b { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #0d2d7f; background: #eaf1ff; border-radius: 7px; font-size: 11px; }
.landing-city-grid span { min-width: 0; font-size: 14px; font-weight: 700; }
.landing-city-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: #5f706d; font-size: 12px; }
.landing-city-note svg { width: 16px; color: #2253de; }
.landing-offer { margin-block: 84px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 38px; background: #0d2d7f; border-radius: 8px; }
.landing-offer > div:first-child > p { color: #ffd800; }
.landing-offer h2, .landing-offer > div:first-child > span { color: #fff; }
.landing-offer-price { min-width: 130px; text-align: right; }
.landing-offer-price strong, .landing-offer-price span { display: block; }
.landing-offer-price strong { color: #ffd800; font-size: 40px; line-height: 1; }
.landing-offer-price span { margin-top: 6px; color: #fff; font-size: 12px; }
.landing-offer .landing-primary { color: #0d2d7f; background: #ffd800; border-color: #ffd800; }
.landing-faq > div:last-child { border-top: 1px solid #cbd8ef; }
.landing-faq details { border-bottom: 1px solid #cbd8ef; }
.landing-faq summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #0d2d7f; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary svg { flex: 0 0 auto; width: 19px; transition: .2s; }
.landing-faq details[open] summary svg { transform: rotate(180deg); }
.landing-faq details p { max-width: 820px; margin: 0; padding: 0 0 24px; color: #687976; font-size: 15px; line-height: 1.6; }
.landing-final-cta { padding: 72px 30px; text-align: center; background: #eaf1ff; border-block: 1px solid #cbd8ef; }
.landing-final-cta p { max-width: 650px; margin: 16px auto 26px; color: #5f706d; line-height: 1.55; }
.landing-footer { max-width: 1180px; min-height: 150px; margin: 0 auto; padding: 35px 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.landing-footer > p { max-width: 560px; margin: 0; color: #687976; font-size: 12px; line-height: 1.5; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; }
.analytics-consent { position: fixed; z-index: 90; right: 18px; bottom: 18px; width: min(420px, calc(100% - 36px)); padding: 18px; background: #fff; border: 1px solid #cbd8ef; border-radius: 8px; box-shadow: 0 12px 32px rgba(13, 45, 127, .18); }
.analytics-consent p { margin: 0; color: #425a57; font-size: 13px; line-height: 1.5; }
.analytics-consent div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.analytics-consent button { min-height: 38px; padding: 0 13px; color: #0d2d7f; background: #fff; border: 1px solid #cbd8ef; border-radius: 500px; font-size: 12px; font-weight: 800; }
.analytics-consent button:last-child { color: #fff; background: #2253de; border-color: #2253de; }

@media (max-width: 900px) {
  .landing-header { grid-template-columns: 1fr auto; }
  .landing-header > nav { display: none; }
  .landing-hero { min-height: 620px; padding: 42px 43% 36px 28px; background-size: 385px auto; background-position: right -105px center; }
  .landing-hero h1 { font-size: 44px; }
  .landing-city-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-offer { grid-template-columns: 1fr auto; }
  .landing-offer .landing-primary { grid-column: 1 / -1; }
  .landing-footer { grid-template-columns: auto 1fr; }
  .landing-footer nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .landing-header { min-height: 62px; padding: 8px 15px; }
  .landing-wordmark span { font-size: 25px; }
  .landing-wordmark b { height: 32px; }
  .landing-telegram-button { min-height: 40px; padding: 0 13px; }
  .landing-telegram-button span { display: none; }
  .landing-hero { min-height: 650px; padding: 38px 18px 30px; align-items: flex-start; background-size: 285px auto; background-position: center 530px; }
  .landing-hero h1 { font-size: 36px; }
  .landing-lead { margin-top: 18px; font-size: 16px; }
  .landing-actions { margin-top: 23px; }
  .landing-actions a { width: 100%; }
  .landing-trust { font-size: 11px; }
  .landing-proof { grid-template-columns: 1fr; }
  .landing-proof > div { min-height: 90px; padding: 17px 22px; }
  .landing-proof > div + div { border-left: 0; border-top: 1px solid #e0e7f1; }
  .landing-section { padding: 64px 18px; }
  .landing-section-heading { margin-bottom: 28px; }
  .landing-section-heading h2, .landing-offer h2, .landing-final-cta h2 { font-size: 28px; }
  .landing-how ol { grid-template-columns: 1fr; }
  .landing-how li { padding: 24px 7px; }
  .landing-how li + li { border-left: 0; border-top: 1px solid #cbd8ef; }
  .landing-intent-grid { grid-template-columns: 1fr; gap: 28px; }
  .landing-cities { padding-inline: 18px; }
  .landing-city-grid { grid-template-columns: 1fr 1fr; }
  .landing-city-grid a { padding-inline: 10px; }
  .landing-offer { margin-block: 60px; padding: 28px 20px; grid-template-columns: 1fr; gap: 24px; }
  .landing-offer-price { text-align: left; }
  .landing-offer .landing-primary { grid-column: auto; }
  .landing-faq summary { min-height: 64px; font-size: 15px; }
  .landing-final-cta { padding: 60px 18px; }
  .landing-footer { padding: 32px 18px; grid-template-columns: 1fr; gap: 20px; }
  .landing-footer nav { grid-column: auto; justify-content: flex-start; }
  .analytics-consent div { flex-direction: column; }
}

@media (max-width: 350px) {
  .landing-hero { min-height: 590px; padding: 30px 18px; background-size: 180px auto; background-position: center 520px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-lead { font-size: 15px; }
  .landing-trust { margin-top: 12px; }
}

@media (min-width: 700px) {
  body:not(.landing-mode) { background: #dfeff4; }
  .app-shell { min-height: 100vh; box-shadow: 0 0 40px rgba(38, 73, 68, .12); }
  .bottom-nav { bottom: 12px; height: 72px; border: 1px solid #dfe8eb; border-radius: 26px; }
  .app-main { padding-bottom: 112px; }
}

@media (max-width: 370px) {
  .header-action > span:last-child { display: none; }
  .header-action { width: 38px; padding: 0; justify-content: center; }
  .wordmark span { font-size: 25px; }
  .home-actions { grid-template-columns: 1fr; }
  .bottom-nav span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Align the public site with the visual language of my.pasport.org.ua. */
body.landing-mode, .web-landing { color: #264944; background: #eefaff; }
.landing-primary, .landing-telegram-button { background: #3267d5; border-color: #3267d5; }
.landing-primary:hover, .landing-telegram-button:hover { background: #2556b9; }
.landing-secondary { color: #3267d5; border-color: #b8c5cb; }
.landing-eyebrow, .landing-section-heading > p, .landing-offer > div:first-child > p { color: #3267d5; }
.landing-hero h1, .landing-section-heading h2, .landing-offer h2, .landing-final-cta h2 { color: #264944; }
.landing-hero { background-color: #eefaff; }
.landing-proof { gap: 16px; padding: 0 30px 34px; background: transparent; border: 0; }
.landing-proof > div { background: #fff; border: 1px solid #7dd3fc; border-radius: 8px; }
.landing-proof > div + div { border-left: 1px solid #7dd3fc; }
.landing-proof strong, .landing-how strong, .landing-faq summary { color: #3267d5; }
.landing-how ol { gap: 16px; border: 0; }
.landing-how li { background: #fff; border: 1px solid #7dd3fc; border-radius: 8px; }
.landing-how li + li { border-left: 1px solid #7dd3fc; }
.landing-how li > b { background: #3267d5; }
.landing-cities { background: #eefaff; border-block: 1px solid #d7e8ef; }
.landing-city-grid a { border-color: #7dd3fc; }
.landing-city-grid b { color: #3267d5; background: #eefaff; }
.landing-offer { color: #264944; background: #fff; border: 1px solid #7dd3fc; }
.landing-offer > div:first-child > p { color: #3267d5; }
.landing-offer h2 { color: #3267d5; }
.landing-offer > div:first-child > span, .landing-offer-price span { color: #6f7d84; }
.landing-offer-price strong { color: #3267d5; }
.landing-offer .landing-primary { color: #fff; background: #3267d5; border-color: #3267d5; }
.landing-final-cta { background: #fff; border-color: #7dd3fc; }
.landing-footer { background: #eefaff; }

@media (min-width: 761px) {
  .landing-header {
    position: fixed; inset: 0 auto 0 0; width: 272px; min-height: 100vh; padding: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #3f4c54; border: 0; backdrop-filter: none;
  }
  .landing-header > .landing-wordmark { width: 100%; min-height: 80px; padding: 0 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .landing-header > .landing-wordmark span, .landing-header > .landing-wordmark strong { color: #fff; }
  .landing-header > .landing-wordmark b { background: rgba(255,255,255,.55); }
  .landing-header > nav { width: 100%; display: grid; gap: 0; margin-top: 20px; }
  .landing-header > nav a {
    min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 30px;
    color: #dce5e9; border-left: 4px solid transparent; font-size: 15px; text-decoration: none;
  }
  .landing-header > nav a:first-child { color: #fff; background: #416a85; border-left-color: #32a9ed; }
  .landing-header > nav a:hover { color: #fff; background: #465d6a; }
  .landing-header > nav svg { width: 20px; color: #b8ced9; }
  .landing-header > .landing-telegram-button { width: calc(100% - 40px); margin: auto 20px 24px; justify-self: auto; }
  .web-landing > main { margin-left: 272px; }
  .landing-footer { max-width: none; margin: 0 0 0 272px; padding-inline: max(30px, calc((100vw - 1392px) / 2)); }
  .landing-hero { max-width: 1180px; min-height: 585px; background-size: 410px auto; }
  .landing-hero h1 { font-size: clamp(38px, 4vw, 51px); color: #264944; }
}

@media (max-width: 760px) {
  body.landing-mode { padding-bottom: 88px; }
  .landing-header {
    position: fixed; inset: 0 0 auto; width: 100%; min-height: 62px; padding: 8px 15px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #eefaff; border-bottom: 1px solid #d7e8ef; backdrop-filter: none;
  }
  .landing-header > .landing-wordmark span { color: #506ec0; }
  .landing-header > nav {
    position: fixed; z-index: 55; left: 14px; right: 14px; bottom: max(0px, var(--safe-bottom));
    min-height: 72px; padding: 6px 8px; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: rgba(255,255,255,.98); border: 1px solid #dfe8eb; border-radius: 26px 26px 0 0;
    box-shadow: 0 -8px 24px rgba(52,85,95,.12); backdrop-filter: blur(14px);
  }
  .landing-header > nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7b888e; font-size: 10px; text-decoration: none; }
  .landing-header > nav a:first-child { color: #3267d5; font-weight: 800; }
  .landing-header > nav svg { width: 21px; height: 21px; }
  .landing-header > .landing-telegram-button { width: 40px; min-height: 40px; padding: 0; }
  .landing-header > .landing-telegram-button span { display: none; }
  .web-landing > main { margin-left: 0; padding-top: 62px; }
  .landing-hero { background-color: #eefaff; }
  .landing-proof { gap: 10px; padding: 14px 18px 34px; }
  .landing-proof > div + div { border-left: 1px solid #7dd3fc; border-top: 1px solid #7dd3fc; }
  .landing-how ol { gap: 10px; }
  .landing-how li { padding-inline: 18px; }
  .landing-how li + li { border-left: 1px solid #7dd3fc; border-top: 1px solid #7dd3fc; }
  .landing-cities { background: #eefaff; }
  .landing-offer { background: #fff; }
  .landing-final-cta { background: #fff; }
  .landing-footer { padding-bottom: 112px; }
  .analytics-consent { bottom: calc(86px + var(--safe-bottom)); }
}

/* Indexable city detail pages. */
.city-breadcrumb { max-width: 1180px; margin: 0 auto; padding: 26px 30px 0; display: flex; align-items: center; gap: 8px; color: #6f7d84; font-size: 13px; }
.city-breadcrumb a { color: #3267d5; text-decoration: none; }
.city-breadcrumb svg { width: 14px; height: 14px; }
.city-detail-hero { max-width: 1180px; min-height: 500px; margin: 0 auto; padding: 54px 47% 46px 30px; display: flex; align-items: center; background: url('/assets/miniapp-access.png') no-repeat right 30px center / 390px auto; }
.city-detail-hero h1 { margin: 12px 0 0; color: #264944; font-size: 46px; line-height: 1.08; letter-spacing: 0; }
.city-detail-hero .landing-eyebrow { display: flex; align-items: center; gap: 8px; }
.city-detail-hero .landing-eyebrow svg { width: 17px; }
.city-detail-proof { max-width: 1180px; margin: 0 auto; padding: 0 30px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.city-detail-proof > div { min-height: 112px; padding: 22px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 13px; background: #fff; border: 1px solid #7dd3fc; border-radius: 8px; }
.city-detail-proof svg { grid-row: 1 / 3; width: 24px; color: #3267d5; }
.city-detail-proof strong { color: #3267d5; font-size: 16px; }
.city-detail-proof span { margin-top: 4px; color: #6f7d84; font-size: 12px; line-height: 1.4; }
.city-copy-section { max-width: 1180px; margin: 0 auto; padding: 74px 30px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 62px; border-top: 1px solid #d7e8ef; }
.city-copy-section > div > p:first-child, .city-offer > div:first-child > p { margin: 0 0 10px; color: #3267d5; font-size: 12px; font-weight: 800; }
.city-copy-section h2, .city-offer h2, .city-faq h2, .city-related h2 { margin: 0; color: #264944; font-size: 34px; line-height: 1.16; letter-spacing: 0; }
.city-copy-section > div > p:not(:first-child) { color: #687976; font-size: 15px; line-height: 1.65; }
.city-copy-section ol { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #7dd3fc; border-radius: 8px; }
.city-copy-section li { min-height: 104px; padding: 20px 24px; display: flex; align-items: center; gap: 17px; }
.city-copy-section li + li { border-top: 1px solid #d7e8ef; }
.city-copy-section li > b { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #3267d5; border-radius: 50%; }
.city-copy-section li span { display: grid; gap: 5px; }
.city-copy-section li strong { color: #264944; }
.city-copy-section li small { color: #6f7d84; line-height: 1.4; }
.city-offer { max-width: 1120px; margin: 18px auto 84px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 38px; background: #fff; border: 1px solid #7dd3fc; border-radius: 8px; }
.city-offer > div:first-child > span, .city-offer .landing-offer-price span { color: #6f7d84; }
.city-offer .landing-offer-price strong { color: #3267d5; }
.city-faq, .city-related { max-width: 1180px; margin: 0 auto; padding: 74px 30px; }
.city-faq { border-top: 1px solid #d7e8ef; }
.city-faq > div:last-child { border-top: 1px solid #cbd8ef; }
.city-faq details { border-bottom: 1px solid #cbd8ef; }
.city-faq summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #3267d5; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.city-faq summary::-webkit-details-marker { display: none; }
.city-faq summary svg { flex: 0 0 auto; width: 19px; transition: .2s; }
.city-faq details[open] summary svg { transform: rotate(180deg); }
.city-faq details p { max-width: 820px; margin: 0; padding: 0 0 24px; color: #687976; font-size: 15px; line-height: 1.6; }
.city-related { padding-top: 32px; }
.city-related .landing-city-grid { margin-top: 26px; }

@media (max-width: 900px) and (min-width: 761px) {
  .city-detail-hero { padding-right: 42%; background-size: 330px auto; background-position: right 12px center; }
  .city-detail-hero h1 { font-size: 38px; }
  .city-copy-section { gap: 34px; }
}

@media (max-width: 760px) {
  .city-breadcrumb { padding: 20px 18px 0; }
  .city-detail-hero { min-height: 690px; padding: 34px 18px 300px; align-items: flex-start; background-size: 265px auto; background-position: center bottom 24px; }
  .city-detail-hero h1 { font-size: 34px; }
  .city-detail-hero .landing-actions a { width: 100%; }
  .city-detail-proof { padding: 8px 18px 42px; grid-template-columns: 1fr; gap: 10px; }
  .city-detail-proof > div { min-height: 92px; }
  .city-copy-section { padding: 60px 18px; grid-template-columns: 1fr; gap: 30px; }
  .city-copy-section h2, .city-offer h2, .city-faq h2, .city-related h2 { font-size: 28px; }
  .city-copy-section li { padding-inline: 18px; }
  .city-offer { margin: 16px 18px 60px; padding: 28px 20px; grid-template-columns: 1fr; gap: 24px; }
  .city-offer .landing-offer-price { text-align: left; }
  .city-offer .landing-primary { width: 100%; }
  .city-faq, .city-related { padding: 60px 18px; }
  .city-faq summary { min-height: 64px; font-size: 15px; }
  .city-related .landing-city-grid { grid-template-columns: 1fr 1fr; }
}
