:root {
    --ink: #151934;
    --ink-soft: #59607b;
    --ink-muted: #8d93aa;
    --line: #e7e9f2;
    --surface: #ffffff;
    --canvas: #f6f7fb;
    --canvas-deep: #eef0fb;
    --brand: #5b5ce2;
    --brand-dark: #4142bc;
    --brand-light: #eef0ff;
    --violet: #7b3ee8;
    --signal: #70DB7B;
    --signal-deep: #3DA95B;
    --signal-glow: rgba(112, 219, 123, .24);
    --success: #159b73;
    --success-bg: #e9faf4;
    --shadow-sm: 0 4px 16px rgba(29, 34, 75, .06);
    --shadow-md: 0 14px 42px rgba(30, 35, 83, .11);
    --shadow-lg: 0 24px 64px rgba(30, 35, 83, .16);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; font-family: 'Manrope', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: radial-gradient(circle at 50% -30%, #e8eaff 0, transparent 38rem), var(--canvas); line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
svg { display: block; }
.hidden { display: none !important; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* Header and brand */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(222,225,238,.78); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.055em; }
.brand-badge { padding: 3px 6px; border-radius: 6px; color: var(--brand); background: var(--brand-light); font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.header-right, .auth-buttons { display: flex; align-items: center; gap: 9px; }
.btn-login, .btn-register { min-height: 40px; border-radius: 10px; padding: 0 15px; font-size: .82rem; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-login { color: #434966; background: transparent; }
.btn-login:hover { background: #f0f1f7; }
.btn-register { color: #fff; background: var(--ink); box-shadow: 0 7px 14px rgba(21,25,52,.14); }
.btn-register:hover { transform: translateY(-1px); background: #292f5c; box-shadow: 0 10px 18px rgba(21,25,52,.2); }
.user-menu { position: relative; }
.user-avatar { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); color: #3d4260; background: #fff; border-radius: 12px; font-size: .82rem; font-weight: 700; }
.avatar-letter { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: linear-gradient(145deg, #6e72ff, #8436e8); border-radius: 9px; font-weight: 800; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
.user-dropdown a { display: block; padding: 10px 12px; border-radius: 9px; color: #434963; font-size: .84rem; font-weight: 650; }
.user-dropdown a:hover { color: var(--brand); background: var(--brand-light); }

/* Hero */
.main { flex: 1; padding: clamp(42px, 6vw, 82px) 0 38px; }
.hero { max-width: 940px; margin: 0 auto 52px; text-align: center; }
.eyebrow, .section-kicker, .banner-kicker { font-size: .66rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: #4e5294; border: 1px solid #dfe2fb; border-radius: 999px; background: rgba(250,250,255,.85); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 100%; background: #50c49b; box-shadow: 0 0 0 3px rgba(80,196,155,.13); }
.hero h1 { max-width: 740px; margin: 18px auto 14px; color: var(--ink); font-size: clamp(2.45rem, 5.5vw, 4.55rem); font-weight: 800; letter-spacing: -.066em; line-height: .99; }
.hero h1 span { background: linear-gradient(105deg, #5f60e8, #8c3fe5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 655px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(.98rem, 1.65vw, 1.1rem); line-height: 1.72; }
.search-surface { max-width: 846px; margin: 34px auto 0; padding: 10px; border: 1px solid rgba(213,216,239,.92); border-radius: 23px; background: rgba(255,255,255,.76); box-shadow: 0 18px 48px rgba(49,51,120,.08); backdrop-filter: blur(12px); text-align: left; }
.search-label { display: block; padding: 6px 8px 7px; color: #525873; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.search-box { min-height: 64px; display: flex; align-items: center; gap: 3px; padding: 5px; border: 1.5px solid #dfe2ee; border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.search-box:focus-within { border-color: #7778ea; box-shadow: 0 0 0 4px rgba(91,92,226,.12); }
.search-icon { width: 43px; display: grid; place-items: center; color: #969bb0; flex: 0 0 auto; }
.search-box input { min-width: 0; flex: 1; height: 48px; padding: 0 5px; border: 0; outline: 0; color: var(--ink); font-size: .98rem; font-weight: 600; background: transparent; }
.search-box input::placeholder { color: #a3a8b9; opacity: 1; }
.camera-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #737991; background: transparent; transition: color .18s ease, background .18s ease; }
.camera-btn:hover, .camera-btn:focus-visible { color: var(--brand); background: var(--brand-light); outline: 0; }
.search-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; flex: 0 0 auto; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #5c5ee2, #7540e4); box-shadow: 0 7px 15px rgba(91,92,226,.24); font-size: .9rem; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.search-btn:hover, .search-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(91,92,226,.32); outline: 0; }
.search-hint { min-height: 20px; margin: 8px 8px 3px; color: #848aa1; font-size: .75rem; line-height: 1.45; }
.search-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 9px 4px 3px; }
.modes-label { margin: 0 3px 0 5px; color: #777d95; font-size: .72rem; font-weight: 750; }
.search-mode { padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; color: #666d86; background: transparent; font-size: .73rem; font-weight: 750; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.search-mode:hover, .search-mode:focus-visible { border-color: #d9dcf6; color: var(--brand); background: #f5f5ff; outline: 0; }
.search-mode.active { color: #4546bf; border-color: #d3d5fb; background: #eceeff; }
.pwa-install { margin-left: auto; color: var(--brand); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 23px; color: #71788f; font-size: .71rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row svg { width: 15px; height: 15px; fill: none; stroke: #29a77d; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* Categories */
.categories { margin-bottom: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-kicker { margin: 0 0 5px; color: var(--brand); }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 295px; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; text-align: right; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-card { min-width: 0; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.9); text-align: left; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); border-color: #caccf4; box-shadow: var(--shadow-md); outline: 0; }
.category-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--brand); border-radius: 12px; background: var(--brand-light); }
.category-icon svg { width: 22px; height: 22px; }
.category-card > span:not(.category-icon) { margin-top: auto; font-size: .87rem; font-weight: 800; letter-spacing: -.025em; }
.category-card small { min-height: 16px; color: #9298ab; font-size: .65rem; font-weight: 650; line-height: 1.3; }
.category-card.featured { border-color: #d8dafb; background: linear-gradient(145deg, #fff, #f8f8ff); }
.category-card.featured .category-icon { color: #5e60e7; background: #e9ebff; }
.category-card.pending .category-icon { color: #778099; background: #f0f2f7; }

/* Search results */
.results { margin: 0 auto 42px; max-width: 846px; }
.loading { padding: 64px 0; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto 16px; border: 3px solid #e1e3f3; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.loading-text { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 800; }
.loading-sub { margin: 5px 0 0; color: var(--ink-soft); font-size: .82rem; }
.best-card, .savings-card { padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.best-card { position: relative; overflow: hidden; border-color: #b7ead9; background: linear-gradient(135deg, #fff 45%, #f1fff9); }
.best-card::after { content: ''; position: absolute; top: -70px; right: -72px; width: 210px; height: 210px; border-radius: 50%; background: rgba(64,200,151,.10); }
.best-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #087254; background: #dff7ee; font-size: .64rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.best-card h2 { position: relative; z-index: 1; max-width: 650px; margin: 14px 0 7px; font-size: clamp(1.3rem, 2.8vw, 1.72rem); letter-spacing: -.04em; line-height: 1.2; }
.best-price { position: relative; z-index: 1; margin-bottom: 7px; color: var(--success); font-size: clamp(1.65rem, 3.4vw, 2.15rem); font-weight: 800; letter-spacing: -.05em; }
.best-source, .best-rating { position: relative; z-index: 1; margin: 0 0 5px; color: #667085; font-size: .8rem; }
.best-rating { color: #c67a00; }
.best-reason { position: relative; z-index: 1; max-width: 670px; margin: 16px 0; padding: 11px 13px; border-left: 3px solid #69cfa9; border-radius: 0 10px 10px 0; color: #4a665d; background: rgba(225,250,239,.78); font-size: .82rem; line-height: 1.55; }
.best-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 12px 15px; border-radius: 11px; color: #fff; background: var(--success); font-size: .83rem; font-weight: 800; box-shadow: 0 8px 16px rgba(21,155,115,.2); transition: transform .18s ease, background .18s ease; }
.best-link:hover { color: #fff; transform: translateY(-1px); background: #0c8260; }
.affiliate-disclosure { position: relative; z-index: 1; margin: 10px 0 0; color: #858b9e; font-size: .69rem; line-height: 1.4; }
.savings-card { margin-top: 15px; }
.savings-card h3 { margin: 0 0 17px; font-size: 1rem; letter-spacing: -.02em; }
.savings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.savings-item { min-height: 86px; padding: 13px 9px; border-radius: 13px; background: #f7f8fc; text-align: center; }
.savings-value { color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.04em; }
.savings-value.green { color: var(--success); }
.savings-label { margin-top: 3px; color: #777f96; font-size: .65rem; font-weight: 650; }
.savings-summary { margin-top: 13px; padding: 10px 13px; border-radius: 11px; color: #407061; background: var(--success-bg); font-size: .78rem; font-weight: 700; text-align: center; }
.alternatives-section { margin-top: 20px; }
.alternatives-section h3 { margin: 0 0 10px; font-size: 1rem; }
.alt-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-bottom: 8px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.alt-card:hover { border-color: #ced1ee; box-shadow: var(--shadow-sm); }
.alt-info { min-width: 0; }
.alt-info h4 { margin: 0 0 3px; overflow: hidden; font-size: .84rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.alt-info p { margin: 0; color: #81889e; font-size: .72rem; }
.alt-price { color: var(--ink); font-size: .92rem; font-weight: 800; white-space: nowrap; }
.alt-link { padding: 8px 10px; border-radius: 9px; color: var(--brand); background: var(--brand-light); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.alt-link:hover { color: #fff; background: var(--brand); }
.alt-card .affiliate-disclosure { grid-column: 1 / -1; margin-top: -5px; }
.results-footer { margin: 15px 0 0; color: #949aad; font-size: .71rem; text-align: center; }

/* Referral banner */
.referral-banner { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 38px); border-radius: 24px; color: #fff; background: linear-gradient(113deg, #191e4e 0%, #3d2a88 58%, #6435bb 100%); box-shadow: 0 18px 35px rgba(49,40,128,.2); }
.referral-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { top: -120px; right: 5%; width: 280px; height: 280px; border: 46px solid rgba(208,202,255,.09); }
.orb-two { bottom: -95px; right: 32%; width: 185px; height: 185px; border: 34px solid rgba(255,255,255,.06); }
.banner-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.banner-kicker { color: #bfc0ff; }
.banner-copy h2 { margin: 6px 0 8px; font-size: clamp(1.35rem, 2.8vw, 1.9rem); letter-spacing: -.045em; }
.banner-copy p { max-width: 570px; margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }
.banner-copy strong { color: #ffc867; }
.banner-btn { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 12px 15px; border-radius: 11px; color: #302875; background: #fff; font-size: .8rem; font-weight: 850; transition: transform .18s ease, background .18s ease; }
.banner-btn:hover { color: #302875; transform: translateY(-1px); background: #f5f3ff; }
.banner-btn span { font-size: 1.05rem; }

/* Footer */
.footer { padding: 25px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.62); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8a91a5; font-size: .7rem; }
.footer-inner p { margin: 0; text-align: right; }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; color: #545b79; font-size: .8rem; font-weight: 800; }
.footer-mark, .modal-mark { display: grid; place-items: center; overflow: hidden; }
.footer-mark { width: 22px; height: 22px; }
.footer-mark img, .modal-mark img { display: block; width: 100%; height: 100%; }

/* Modals and forms */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(18,21,49,.45); backdrop-filter: blur(7px); }
.modal { position: relative; width: min(100%, 430px); max-height: min(760px, calc(100vh - 36px)); overflow: auto; padding: 29px; border-radius: 23px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-modal { padding-top: 31px; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #7b829a; background: transparent; font-size: 1.55rem; line-height: 1; }
.modal-close:hover { color: var(--ink); background: #f2f3f8; }
.modal-intro { text-align: center; }
.modal-mark { width: 42px; height: 42px; margin: 0 auto 12px; }
.modal-intro h2 { margin: 4px 0 6px; font-size: 1.36rem; letter-spacing: -.04em; }
.modal-intro p:not(.section-kicker) { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 20px; padding: 4px; border-radius: 11px; background: #f1f2f8; }
.modal-tab { min-height: 37px; border-radius: 8px; color: #727a92; background: transparent; font-size: .78rem; font-weight: 800; }
.modal-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(34,38,75,.08); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; color: #525973; font-size: .72rem; font-weight: 800; }
.form-group input { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #dce0ea; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: .84rem; transition: border-color .18s ease, box-shadow .18s ease; }
.form-group input:focus { border-color: #7677e7; box-shadow: 0 0 0 3px rgba(91,92,226,.12); }
.form-submit { width: 100%; min-height: 47px; margin-top: 4px; border-radius: 11px; color: #fff; background: var(--ink); font-size: .84rem; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.form-submit:hover { transform: translateY(-1px); background: #303667; }
.form-error { margin: 10px 0 0; color: #d64251; font-size: .75rem; text-align: center; }
.form-success { margin: 10px 0 0; padding: 9px 10px; border-radius: 9px; color: #087254; background: #e9faf3; font-size: .74rem; line-height: 1.45; text-align: center; }

/* Personal cabinet */
.modal-cabinet { width: min(100%, 760px); padding: 30px; }
.cabinet-top { display: flex; align-items: center; gap: 13px; padding-right: 35px; }
.cabinet-avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #6872ff, #8239e8); box-shadow: 0 8px 18px rgba(100,82,230,.25); font-size: 1.1rem; font-weight: 850; }
.cabinet-top h2 { margin: 2px 0 3px; font-size: 1.38rem; letter-spacing: -.045em; }
.cabinet-top > div > p:last-child { margin: 0; color: #7a8197; font-size: .76rem; }
.plan-pill { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #4a4db6; background: #eff0ff; font-size: .66rem; font-weight: 850; white-space: nowrap; }
.cabinet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; padding: 4px; border-radius: 16px; background: #f5f6fb; }
.cabinet-stats > div { min-width: 0; padding: 13px 10px; border-radius: 12px; background: #fff; text-align: center; }
.cabinet-stats strong { display: block; overflow: hidden; color: var(--ink); font-size: 1.05rem; font-weight: 850; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-stats span { display: block; margin-top: 3px; color: #8a91a5; font-size: .62rem; font-weight: 700; line-height: 1.25; }
.cabinet-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 13px; }
.cabinet-section { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cabinet-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cabinet-heading h3 { margin: 2px 0 0; font-size: .96rem; letter-spacing: -.025em; }
.cabinet-section > p { margin: 0 0 14px; color: #778096; font-size: .74rem; line-height: 1.5; }
.ref-chip { padding: 5px 7px; border-radius: 7px; color: #078060; background: #e9faf3; font-size: .61rem; font-weight: 850; white-space: nowrap; }
.ref-link-box { display: flex; gap: 7px; }
.ref-link-box input { min-width: 0; flex: 1; height: 39px; padding: 0 9px; border: 1px solid #dde0eb; border-radius: 9px; outline: 0; color: #555d76; background: #f8f9fc; font-size: .69rem; }
.btn-copy { padding: 0 10px; border-radius: 9px; color: #fff; background: var(--brand); font-size: .69rem; font-weight: 800; white-space: nowrap; }
.btn-copy:hover { background: var(--brand-dark); }
.history-list { max-height: 142px; overflow-y: auto; }
.history-item { padding: 8px 0; border-bottom: 1px solid #eef0f5; color: #505871; font-size: .74rem; line-height: 1.35; }
.history-item:last-child { border-bottom: 0; }
.history-item .h-time { color: #a0a5b5; font-size: .65rem; }
.decision-history-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.decision-history-item > div { min-width: 0; }
.decision-history-item strong { display: block; overflow: hidden; color: var(--ink); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.decision-history-item .h-time { display: block; margin-top: 3px; }
.history-repeat { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(92, 74, 216, .18); border-radius: 8px; color: var(--brand); background: #f8f7ff; font-size: .64rem; font-weight: 800; cursor: pointer; }
.history-repeat:hover { border-color: rgba(92, 74, 216, .34); background: #f1efff; }
.history-empty { margin: 13px 0 0; color: #a1a6b7; font-size: .74rem; font-style: italic; }

/* Responsive */
@media (max-width: 760px) {
    .container { width: min(100% - 28px, 620px); }
    .header-inner { min-height: 68px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: 1.12rem; }
    .main { padding-top: 36px; }
    .hero { margin-bottom: 40px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { min-height: 132px; padding: 15px; }
    .section-heading { align-items: start; flex-direction: column; gap: 6px; }
    .section-heading > p { max-width: none; text-align: left; }
    .banner-content { align-items: start; flex-direction: column; }
    .footer-inner { align-items: start; flex-direction: column; gap: 7px; }
    .footer-inner p { text-align: left; }
    .cabinet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .header-right { gap: 4px; }
    .btn-login, .btn-register { min-height: 36px; padding: 0 9px; font-size: .68rem; }
    .btn-register { max-width: 112px; line-height: 1.15; }
    .brand-badge { display: none; }
    .hero h1 { font-size: clamp(2.25rem, 12vw, 3.1rem); }
    .hero-sub { font-size: .9rem; }
    .search-surface { padding: 7px; border-radius: 18px; }
    .search-box { min-height: 0; gap: 0; padding: 4px; border-radius: 13px; }
    .search-icon { width: 36px; }
    .search-icon svg { width: 18px; height: 18px; }
    .search-box input { height: 43px; padding: 0 3px; font-size: .82rem; }
    .search-box input::placeholder { font-size: .76rem; }
    .camera-btn { width: 38px; height: 38px; }
    .search-btn { min-height: 42px; padding: 0 11px; border-radius: 9px; font-size: .76rem; }
    .search-btn svg { display: none; }
    .search-hint { margin: 7px 5px 1px; font-size: .67rem; }
    .search-modes { gap: 5px; padding-top: 7px; }
    .modes-label { width: 100%; margin: 0 4px 1px; }
    .search-mode { padding: 6px 9px; font-size: .66rem; }
    .pwa-install { margin-left: 0; }
    .trust-row { gap: 7px 12px; margin-top: 17px; font-size: .62rem; }
    .category-card > span:not(.category-icon) { font-size: .8rem; }
    .category-card small { font-size: .59rem; }
    .alt-card { grid-template-columns: 1fr auto; gap: 8px; }
    .alt-link { grid-column: 1 / -1; width: fit-content; }
    .modal { padding: 24px 19px; border-radius: 18px; }
    .modal-cabinet { padding: 25px 18px; }
    .cabinet-top { align-items: start; gap: 10px; }
    .cabinet-avatar { width: 44px; height: 44px; border-radius: 14px; }
    .cabinet-top h2 { font-size: 1.12rem; }
    .plan-pill { margin-left: 0; align-self: center; font-size: .57rem; }
    .cabinet-stats { gap: 4px; margin: 18px 0; }
    .cabinet-stats > div { padding: 10px 4px; }
    .cabinet-stats strong { font-size: .88rem; }
    .cabinet-stats span { font-size: .55rem; }
    .modal-cabinet { max-width: calc(100vw - 20px); overflow-x: hidden; }
    .cabinet-referral .ref-chip { max-width: 108px; white-space: normal; line-height: 1.3; text-align: right; }
    .ref-link-box { min-width: 0; flex-direction: column; }
    .ref-link-box input, .btn-copy { width: 100%; }
    .btn-copy { min-height: 39px; }
}

@media (max-width: 380px) {
    .brand-name { font-size: 1rem; }
    .user-menu-label { display: none; }
    .user-avatar { padding-right: 5px; }
    .categories-grid { gap: 8px; }
    .category-card { min-height: 122px; padding: 12px; }
    .ref-link-box { flex-direction: column; }
    .btn-copy { min-height: 37px; }
}

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; border: 1px dashed #d4d8e9; border-radius: var(--radius-lg); color: #798198; background: rgba(255,255,255,.72); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 1rem; letter-spacing: -.02em; }
.empty-state span { max-width: 420px; font-size: .81rem; line-height: 1.5; }
.empty-state-btn { margin-top: 7px; padding: 9px 12px; border-radius: 9px; color: var(--brand); background: var(--brand-light); font-size: .75rem; font-weight: 800; }
.empty-state-btn:hover { color: #fff; background: var(--brand); }

/* Partner programme */
.partner-body { background: radial-gradient(circle at 92% 0%, #e9e6ff 0, transparent 28rem), var(--canvas); }
.partner-back { padding: 9px 12px; border-radius: 9px; color: #5c6380; font-size: .76rem; font-weight: 800; }
.partner-back:hover { color: var(--brand); background: var(--brand-light); }
.partner-page { overflow: hidden; }
.partner-hero { position: relative; padding: clamp(52px, 8vw, 102px) 0 clamp(48px, 7vw, 78px); background: radial-gradient(circle at 74% 29%, rgba(162,139,255,.21), transparent 25rem); }
.partner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr); align-items: center; gap: clamp(34px, 7vw, 90px); }
.partner-hero-copy h1 { max-width: 620px; margin: 17px 0 16px; color: var(--ink); font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.partner-hero-copy h1 span { background: linear-gradient(105deg, #5f60e8, #8b42e7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner-hero-copy > p:not(.partner-fineprint) { max-width: 610px; margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.partner-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.partner-primary-cta { display: inline-flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #5b5ce2, #7439e4); box-shadow: 0 10px 20px rgba(91,92,226,.25); font-size: .82rem; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease; }
.partner-primary-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 25px rgba(91,92,226,.32); }
.partner-primary-cta span { font-size: 1rem; }
.partner-text-cta { color: #535a77; font-size: .8rem; font-weight: 800; }
.partner-text-cta:hover { color: var(--brand); }
.partner-fineprint { max-width: 560px; margin: 16px 0 0; color: #9298ac; font-size: .7rem; line-height: 1.5; }
.partner-preview { position: relative; overflow: hidden; padding: 24px; border: 1px solid rgba(255,255,255,.64); border-radius: 24px; color: #fff; background: linear-gradient(135deg, #1c2154 0%, #3e2d91 65%, #7738bc 100%); box-shadow: 0 26px 55px rgba(43,33,119,.25); transform: rotate(1deg); }
.partner-preview::after { content: ''; position: absolute; top: -100px; right: -70px; width: 250px; height: 250px; border: 36px solid rgba(255,255,255,.09); border-radius: 50%; }
.preview-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.86); font-size: .75rem; font-weight: 750; }
.preview-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; overflow: hidden; }
.preview-mark img { display: block; width: 100%; height: 100%; }
.preview-link-label { position: relative; z-index: 1; margin: 28px 0 7px; color: rgba(255,255,255,.59); font-size: .65rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.preview-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(8,10,40,.28); font-size: .72rem; }
.preview-link > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-copy { flex: 0 0 auto; padding: 5px 7px; border-radius: 7px; color: #f2efff; background: rgba(255,255,255,.13); font-size: .62rem; font-weight: 800; }
.preview-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.preview-metrics > div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); }
.preview-metrics strong { display: block; color: #fff; font-size: 1.4rem; letter-spacing: -.05em; }
.preview-metrics span { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: .63rem; font-weight: 650; line-height: 1.35; }
.preview-note { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 7px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.74); font-size: .68rem; line-height: 1.45; }
.preview-note span { color: #63ddb3; font-weight: 900; }
.partner-section { padding: clamp(48px, 7vw, 82px) 0; }
.partner-heading { margin-bottom: 26px; }
.partner-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.partner-step { position: relative; min-height: 260px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.step-number { position: absolute; top: 18px; right: 20px; color: #c4c8d9; font-size: .72rem; font-weight: 850; letter-spacing: .06em; }
.step-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 13px; color: var(--brand); background: var(--brand-light); }
.step-icon svg { width: 23px; height: 23px; }
.partner-step h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.03em; }
.partner-step p { margin: 0; color: #737b93; font-size: .77rem; line-height: 1.6; }
.partner-reward-section { color: #fff; background: #1a1e51; }
.partner-reward-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr); align-items: center; gap: clamp(28px, 7vw, 80px); }
.partner-reward-grid .section-kicker { color: #c1c3ff; }
.partner-reward-grid h2 { max-width: 500px; margin: 6px 0 12px; color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.75rem); letter-spacing: -.055em; line-height: 1.1; }
.partner-reward-grid > div > p:not(.section-kicker) { max-width: 550px; margin: 0; color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.7; }
.partner-rules { padding: 8px 0; }
.partner-rules > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.partner-rules > div:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.partner-rules span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); font-size: .62rem; font-weight: 850; }
.partner-rules p { margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: .76rem; line-height: 1.45; }
.partner-account-section { padding-top: 0; }
.partner-account-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(390px, 1.15fr); align-items: center; gap: 35px; padding: clamp(24px, 5vw, 42px); border: 1px solid #dce0fa; border-radius: 23px; background: linear-gradient(135deg, #fff 0%, #f2f2ff 100%); }
.partner-account-card h2 { max-width: 430px; margin: 5px 0 8px; font-size: clamp(1.4rem, 3vw, 2.05rem); letter-spacing: -.045em; line-height: 1.15; }
.partner-account-card > div > p:not(.section-kicker) { max-width: 480px; margin: 0; color: #69718a; font-size: .8rem; line-height: 1.6; }
.partner-link-panel { padding: 16px; border: 1px solid #dcdfed; border-radius: 16px; background: #fff; box-shadow: 0 9px 18px rgba(43,48,104,.06); }
.partner-link-panel label { display: block; margin-bottom: 7px; color: #66708c; font-size: .67rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.partner-link-panel > div { display: flex; gap: 7px; }
.partner-link-panel input { min-width: 0; height: 42px; flex: 1; padding: 0 10px; border: 1px solid #dce0eb; border-radius: 10px; outline: 0; color: #6b7289; background: #f8f9fc; font-size: .72rem; }
.partner-link-panel button { flex: 0 0 auto; padding: 0 11px; border-radius: 9px; color: #fff; background: var(--brand); font-size: .69rem; font-weight: 850; }
.partner-link-panel button:disabled { color: #9aa0b3; background: #edf0f7; cursor: not-allowed; }
.partner-link-panel > p { margin: 10px 0 0; color: #848ba0; font-size: .67rem; line-height: 1.45; }
.partner-faq-section { padding-top: 15px; }
.partner-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partner-faq details { padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.partner-faq summary { padding-right: 19px; color: #303650; cursor: pointer; font-size: .79rem; font-weight: 800; line-height: 1.45; }
.partner-faq summary::marker { color: var(--brand); }
.partner-faq details p { margin: 10px 0 0; color: #778096; font-size: .73rem; line-height: 1.55; }
@media (max-width: 860px) { .partner-hero-grid, .partner-reward-grid, .partner-account-card { grid-template-columns: 1fr; } .partner-preview { max-width: 580px; width: 100%; margin: 0 auto; transform: none; } .partner-steps { grid-template-columns: 1fr; } .partner-step { min-height: 0; } .step-icon { margin-bottom: 25px; } }
@media (max-width: 560px) { .partner-back { padding-right: 0; font-size: .67rem; } .partner-hero { padding-top: 44px; } .partner-hero-copy h1 { font-size: clamp(2.15rem, 12vw, 3.15rem); } .partner-hero-copy > p:not(.partner-fineprint) { font-size: .88rem; } .partner-hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; } .partner-preview { padding: 18px; border-radius: 19px; } .partner-account-card { gap: 23px; padding: 20px; border-radius: 18px; } .partner-link-panel > div { flex-direction: column; } .partner-link-panel button { min-height: 38px; } .partner-faq { grid-template-columns: 1fr; } }


/* Approved Signal Path scale and mobile install flow */
.header { min-height: 88px; }
.brand { gap: 11px; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; }
.brand-mark img, .footer-mark img, .modal-mark img, .preview-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-size: 1.36rem; letter-spacing: -0.055em; }
.brand-badge { margin-left: 1px; }
.footer-mark { width: 30px; height: 30px; }
.modal-mark { width: 62px; height: 62px; }
.preview-mark { width: 32px; height: 32px; }

.pwa-install { display: inline-flex; align-items: center; border-color: rgba(77, 92, 240, .25); color: var(--ink); background: #fff; }
.pwa-install::before { content: '↓'; display: grid; place-items: center; width: 17px; height: 17px; margin-right: 5px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #3454e8, #7a3ce5); font-size: 12px; font-weight: 800; }
.pwa-sheet { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: end center; padding: 20px; background: rgba(10, 14, 36, .56); backdrop-filter: blur(8px); }
.pwa-sheet.hidden { display: none; }
.pwa-sheet-card { position: relative; width: min(100%, 450px); padding: 28px 24px 24px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 28px 28px 18px 18px; color: #20264f; background: #fff; box-shadow: 0 24px 80px rgba(7, 11, 41, .32); animation: sheet-in .24s ease-out both; }
.pwa-sheet-brand { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 19px; background: #f3f5ff; }
.pwa-sheet-brand img { width: 51px; height: 51px; object-fit: contain; }
.pwa-sheet-card h2 { margin: 7px 0 8px; font-size: 1.48rem; letter-spacing: -0.045em; }
.pwa-sheet-card > p:not(.section-kicker) { margin: 0; color: #697092; line-height: 1.55; }
.pwa-sheet-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #606987; background: #f3f5fb; cursor: pointer; font-size: 22px; line-height: 1; }
.pwa-steps { display: grid; gap: 10px; margin-top: 20px; }
.pwa-step { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid #e9ebf5; border-radius: 14px; background: #fafbff; }
.pwa-step > span { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #3454e8, #7a3ce5); font-size: 12px; font-weight: 800; }
.pwa-step p { margin: 1px 0 0; color: #424a6c; font-size: .9rem; line-height: 1.45; }
.share-glyph { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid #b7bedb; border-radius: 5px; color: #4150c9; font-size: 13px; line-height: 1; }
.pwa-sheet-action { width: 100%; margin-top: 16px; padding: 14px 18px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3454e8, #7a3ce5); box-shadow: 0 10px 24px rgba(74, 63, 205, .24); cursor: pointer; font: inherit; font-weight: 800; }
body.sheet-open { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .header { min-height: 74px; }
  .brand { gap: 8px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-name { font-size: 1.18rem; }
  .brand-badge { display: none; }
  .user-menu-label, .btn-login { display: none; }
  .btn-register { padding-inline: 12px; font-size: .76rem; }
  .pwa-install { order: 4; }
}

@media (max-width: 390px) {
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-name { font-size: 1.08rem; }
  .pwa-sheet { padding: 10px; }
  .pwa-sheet-card { padding: 24px 18px 18px; border-radius: 24px 24px 16px 16px; }
}


/* Bottom mobile app installation entry point */
.bottom-install { display: none; }
@media (max-width: 760px) {
  .bottom-install { display: block; position: relative; overflow: hidden; margin: 20px 0 6px; padding: 20px 18px 16px; border: 1px solid #dce0fb; border-radius: 22px; background: linear-gradient(140deg, #f9f9ff 0%, #eff0ff 54%, #f7f2ff 100%); box-shadow: 0 12px 32px rgba(47, 48, 127, .10); }
  .bottom-install::after { content: ''; position: absolute; right: -42px; bottom: -54px; width: 150px; height: 150px; border: 25px solid rgba(109, 60, 235, .09); border-radius: 50%; pointer-events: none; }
  .bottom-install-copy { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; }
  .bottom-install-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background: #fff; box-shadow: 0 6px 16px rgba(70, 71, 168, .12); }
  .bottom-install-icon img { width: 40px; height: 40px; object-fit: contain; }
  .bottom-install .section-kicker { margin-bottom: 3px; font-size: .59rem; }
  .bottom-install h2 { margin: 0; color: #202651; font-size: 1.08rem; letter-spacing: -.04em; line-height: 1.18; }
  .bottom-install-copy p:not(.section-kicker) { margin: 5px 0 0; color: #68708d; font-size: .78rem; line-height: 1.45; }
  .bottom-install-button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 16px; padding: 13px 14px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3454e8, #7a3ce5); box-shadow: 0 10px 20px rgba(76, 64, 207, .22); font-size: .84rem; font-weight: 800; }
  .bottom-install-button-icon { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; font-size: .85rem; }
  .bottom-install-note { position: relative; z-index: 1; margin: 11px 0 0; color: #7c83a0; font-size: .64rem; line-height: 1.45; text-align: center; }
}


/* Unified Signal Path: no secondary icon card in web UI */
.pwa-sheet-brand { width: 58px; height: 58px; padding: 0; border-radius: 0; background: transparent; }
.pwa-sheet-brand img { width: 58px; height: 58px; }
@media (max-width: 760px) {
  .bottom-install-icon { width: 48px; height: 48px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .bottom-install-icon img { width: 48px; height: 48px; }
}

/* Defensive compatibility guard: Podskaji never uses root-level media nodes.
   Hide only orphan graphics injected directly into <body> by a stale third-party layer or extension. */
body > img,
body > svg,
body > picture {
  display: none !important;
}

/* Keep approved Signal Path assets clipped to their declared containers even if a third-party stylesheet attempts to enlarge an image. */
.brand-mark,
.footer-mark,
.modal-mark,
.preview-mark,
.bottom-install-icon,
.pwa-sheet-brand {
  overflow: hidden;
}
.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}


/* Design refinement — desktop composition, component rhythm and type scale */
:root {
  --content-max: 1120px;
  --shell-max: 1680px;
  --shell-gutter: 48px;
}

.container { width: min(var(--content-max), calc(100% - 48px)); }
.header { min-height: 0; }
.header .container,
.footer .container { width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2))); }
.header-inner { min-height: 74px; }
.brand { gap: 10px; }
.brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
.brand-name { font-size: 1.22rem; letter-spacing: -.052em; }
.brand-badge { padding: 3px 6px; font-size: .61rem; }
.btn-login, .btn-register { min-height: 40px; padding-inline: 16px; font-size: .84rem; }
.user-avatar { min-height: 40px; font-size: .82rem; }
.avatar-letter { width: 30px; height: 30px; }

.main { padding: clamp(50px, 4.4vw, 70px) 0 52px; }
.hero { max-width: 920px; margin-bottom: 50px; }
.eyebrow, .section-kicker, .banner-kicker { font-size: .72rem; letter-spacing: .105em; }
.eyebrow { padding: 7px 12px; }
.hero h1 { max-width: 680px; margin: 17px auto 13px; font-size: clamp(2.55rem, 4.15vw, 3.95rem); letter-spacing: -.064em; line-height: 1.02; }
.hero-sub { max-width: 635px; font-size: 1rem; line-height: 1.62; }
.search-surface { max-width: 800px; margin-top: 29px; padding: 11px; border-radius: 20px; }
.search-label { padding: 5px 8px 8px; font-size: .78rem; }
.search-box { min-height: 61px; padding: 5px; border-radius: 14px; }
.search-icon { width: 42px; }
.search-box input { height: 46px; font-size: .94rem; }
.camera-btn { width: 42px; height: 42px; }
.search-btn { min-height: 46px; padding-inline: 17px; font-size: .88rem; }
.search-hint { min-height: auto; margin: 9px 8px 3px; color: #747c94; font-size: .78rem; line-height: 1.4; white-space: nowrap; }
.search-modes { gap: 6px; padding: 9px 4px 2px; }
.modes-label { color: #677089; font-size: .76rem; }
.search-mode { padding: 7px 11px; font-size: .76rem; }
.trust-row { gap: 12px 28px; margin-top: 20px; font-size: .76rem; }

.categories { margin-bottom: 52px; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(1.45rem, 2vw, 1.72rem); }
.section-heading > p { max-width: none; color: #68718a; font-size: .86rem; line-height: 1.4; white-space: nowrap; }
.categories-grid { gap: 14px; }
.category-card { min-height: 156px; gap: 8px; padding: 19px; border-radius: 17px; }
.category-icon { width: 41px; height: 41px; border-radius: 12px; }
.category-icon svg { width: 21px; height: 21px; }
.category-card > span:not(.category-icon) { font-size: .9rem; }
.category-card small { min-height: 18px; font-size: .72rem; line-height: 1.4; }

.referral-banner { padding: 31px 34px; border-radius: 22px; }
.banner-content { gap: 30px; }
.banner-copy h2 { margin: 6px 0 7px; font-size: clamp(1.45rem, 2.25vw, 1.82rem); }
.banner-copy p { font-size: .9rem; }
.banner-btn { min-height: 44px; padding: 0 16px; font-size: .82rem; }

.footer { padding: 21px 0; }
.footer-inner { font-size: .76rem; }
.footer-brand { gap: 7px; font-size: .86rem; }
.footer-mark { width: 26px; height: 26px; }
.footer-inner p { max-width: 560px; color: #7e869d; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(91,92,226,.25); outline-offset: 3px; }

@media (max-width: 1180px) {
  :root { --shell-gutter: 32px; }
  .header .container, .footer .container { width: min(var(--shell-max), calc(100% - (var(--shell-gutter) * 2))); }
}

@media (max-width: 760px) {
  :root { --shell-gutter: 14px; }
  .container, .header .container, .footer .container { width: min(100% - 28px, 620px); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { font-size: 1.13rem; }
  .main { padding: 38px 0 38px; }
  .hero { margin-bottom: 40px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .hero-sub { font-size: .93rem; }
  .search-hint { white-space: normal; font-size: .72rem; }
  .section-heading > p { white-space: normal; }
  .category-card { min-height: 138px; padding: 16px; }
  .category-card small { font-size: .66rem; }
  .referral-banner { padding: 24px; }
  .footer { padding: 20px 0; }
}

@media (max-width: 560px) {
  .search-surface { margin-top: 25px; }
  .search-hint { margin-inline: 5px; }
  .trust-row { gap: 8px 13px; font-size: .65rem; }
  .section-heading h2 { font-size: 1.42rem; }
  .category-card > span:not(.category-icon) { font-size: .84rem; }
  .category-card small { font-size: .62rem; }
}


/* Final wide-screen alignment: header and footer navigation live on the page edges,
   while the product content retains a disciplined central column. */
@media (min-width: 1000px) {
  .header .container,
  .footer .container {
    width: calc(100% - 64px);
    max-width: none;
  }

  .header-inner { min-height: 78px; }
  .footer { padding-block: 22px; }
  .search-surface { max-width: 920px; }
  .hero { max-width: 1000px; }
  .hero-sub { max-width: 690px; }
}

@media (min-width: 1600px) {
  .header .container,
  .footer .container { width: calc(100% - 88px); }
  .search-surface { max-width: 940px; }
}


/* Single primary grid: every key block inside the first screen shares the category grid boundaries. */
@media (min-width: 1000px) {
  .main > .container { max-width: var(--content-max); }
  .hero { max-width: none; }
  .search-surface { max-width: none; }
  .trust-row { justify-content: space-between; gap: 16px; }
  .section-heading { width: 100%; }
}


/* Hero copy is a first-class member of the same primary content grid. */
.hero-copy-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-copy-grid,
  .hero-copy-grid .hero-sub,
  .hero-copy-grid h1 { max-width: none; }
  .hero-copy-grid .hero-sub { width: 100%; }
}


/* Desktop hero copy aligns to the exact left edge of the shared content grid. */
@media (min-width: 1000px) {
  .hero-copy-grid { align-items: stretch; text-align: left; }
  .hero-copy-grid .eyebrow { align-self: flex-start; }
  .hero-copy-grid h1 { margin: 17px 0 13px; text-align: left; }
  .hero-copy-grid .hero-sub { margin: 0; max-width: none; text-align: left; }
}


/* Refined hero: one centered statement with an integrated AI accent. */
.hero-copy-grid { align-items: center; text-align: center; }
.hero-copy-grid h1 {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .18em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 4.25vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -.067em;
  line-height: 1.04;
}
.hero-title-base { color: var(--ink); }
.hero-title-accent {
  background: linear-gradient(105deg, #5f60e8, #8c3fe5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ai {
  display: inline-grid;
  place-items: center;
  align-self: center;
  min-width: 2.15em;
  height: 1.38em;
  margin-left: .04em;
  padding: 0 .36em;
  border-radius: .38em;
  color: #fff;
  background: linear-gradient(135deg, #5a5de4, #813fe4);
  box-shadow: 0 .16em .42em rgba(91,92,226,.26);
  font-size: .32em;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1;
  transform: translateY(-.08em);
}
.hero-copy-grid .hero-sub { max-width: 760px; margin: 16px auto 0; text-align: center; }

@media (min-width: 1000px) {
  .hero-copy-grid { align-items: center; text-align: center; }
  .hero-copy-grid h1 { margin: 0; text-align: center; white-space: nowrap; }
  .hero-copy-grid .hero-sub { width: auto; margin: 16px auto 0; max-width: 760px; text-align: center; }
}

@media (max-width: 760px) {
  .hero-copy-grid h1 { flex-wrap: wrap; gap: 0 .16em; font-size: clamp(2.08rem, 9.7vw, 3.05rem); }
  .hero-ai { margin-left: .12em; }
  .hero-copy-grid .hero-sub { margin-top: 15px; }
}


/* Preserve distinct title colours despite legacy span styling. */
.hero-copy-grid h1 .hero-title-base {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.hero-copy-grid h1 .hero-title-accent {
  background: linear-gradient(105deg, #5f60e8, #8c3fe5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-copy-grid h1 .hero-ai {
  background: linear-gradient(135deg, #5a5de4, #813fe4);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  -webkit-text-fill-color: #fff;
}


/* Logo signal system: the green point means a live, verified or currently available path. */
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-glow);
}

.availability-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4f8060 !important;
}

.category-card.featured:hover .signal-dot { box-shadow: 0 0 0 4px var(--signal-glow); }
.trust-row svg { stroke: var(--signal-deep); }
.best-badge .signal-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(112,219,123,.18); }
.results-footer { display: flex; align-items: center; justify-content: center; gap: 7px; }
.results-footer .signal-dot { width: 6px; height: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .availability-live .signal-dot { animation: signal-pulse 2.4s ease-out infinite; }
  @keyframes signal-pulse {
    0%, 55%, 100% { box-shadow: 0 0 0 3px var(--signal-glow); }
    70% { box-shadow: 0 0 0 7px rgba(112,219,123,0); }
  }
}


/* Approved logo scale adjustment. */
.brand-mark { width: 46px; height: 46px; }
.header-inner { min-height: 82px; }
.footer-mark { width: 28px; height: 28px; }
.footer-brand { gap: 8px; }

@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .footer-mark { width: 25px; height: 25px; }
}


/* Decision-agent result system */
.decision-brief,
.decision-card,
.alternatives-section,
.savings-card {
    animation: decision-enter .32s cubic-bezier(.23, 1, .32, 1) both;
}
.decision-card { animation-delay: .04s; }
.alternatives-section { animation-delay: .08s; }
@keyframes decision-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.decision-brief {
    margin: 0 0 14px;
    padding: 18px 20px;
    border: 1px solid #dfe3f3;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 9px 24px rgba(31,38,94,.05);
}
.decision-brief-topline,
.decision-card-head,
.section-title-row,
.decision-main,
.decision-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.decision-kicker,
.section-kicker,
.alternative-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4d53be;
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.decision-offers-count,
.checked-at { color: #858ca3; font-size: .7rem; font-weight: 700; }
.decision-brief h2 { margin: 8px 0 13px; color: var(--ink); font-size: 1rem; letter-spacing: -.028em; }
.decision-brief-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 9px; }
.decision-brief-grid > div { min-width: 0; padding: 10px 11px; border-radius: 11px; background: #f7f8fd; }
.decision-brief-grid span { display: block; margin-bottom: 3px; color: #858ca1; font-size: .63rem; font-weight: 750; }
.decision-brief-grid strong { display: block; overflow: hidden; color: #39405b; font-size: .73rem; font-weight: 800; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }

.decision-card {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4.5vw, 34px);
    border: 1px solid #bcebd9;
    border-radius: 24px;
    background: linear-gradient(140deg, #fff 0%, #fbfffd 58%, #f3fff9 100%);
    box-shadow: 0 18px 38px rgba(24,75,58,.09);
}
.decision-card::before {
    position: absolute;
    top: -90px;
    right: -70px;
    width: 250px;
    height: 250px;
    border: 42px solid rgba(112,219,123,.12);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}
.decision-card-head,
.decision-main,
.decision-evidence,
.decision-tradeoff,
.decision-cta-row,
.decision-card .affiliate-disclosure { position: relative; z-index: 1; }
.decision-main { align-items: flex-start; margin: 16px 0 19px; }
.decision-primary-copy { min-width: 0; max-width: 600px; }
.decision-primary-copy h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.28rem, 2.8vw, 1.82rem); font-weight: 850; letter-spacing: -.05em; line-height: 1.18; }
.decision-price-block { flex: 0 0 auto; min-width: 128px; padding: 11px 0 11px 18px; border-left: 1px solid #dcefe5; text-align: right; }
.decision-price-block .best-price { margin: 0; color: #07865e; }
.decision-price-block p { margin: 4px 0 0; color: #62776f; font-size: .71rem; font-weight: 700; }
.decision-evidence { padding: 15px 16px; border: 1px solid #d5f0e2; border-radius: 16px; background: rgba(238,251,245,.8); }
.decision-evidence h3,
.decision-tradeoff > span { margin: 0 0 8px; color: #2c6955; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.decision-evidence ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.decision-evidence li { position: relative; padding-left: 17px; color: #405c52; font-size: .79rem; font-weight: 650; line-height: 1.45; }
.decision-evidence li::before { position: absolute; left: 0; top: .43rem; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-glow); content: ''; }
.decision-tradeoff { margin-top: 11px; padding: 13px 16px; border-left: 3px solid #7867d9; border-radius: 0 13px 13px 0; background: #f5f4ff; }
.decision-tradeoff > span { display: block; margin-bottom: 4px; color: #5f58a9; }
.decision-tradeoff p { margin: 0; color: #555778; font-size: .78rem; line-height: 1.5; }
.decision-cta-row { align-items: flex-start; margin-top: 18px; }
.decision-cta-copy { display: grid; gap: 5px; max-width: 355px; margin: 1px 0 0 auto; }
.decision-data-notice { margin: 0; color: #778294; font-size: .69rem; line-height: 1.45; text-align: right; }
.transition-context { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: #49635a; font-size: .7rem; font-weight: 700; line-height: 1.45; text-align: right; }
.transition-context > span { color: #109568; font-size: .82rem; line-height: 1.1; }
.transition-context.compact { margin: 0; color: #63756e; font-size: .62rem; text-align: left; }
.decision-brief-meta { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; min-width: 0; }
.decision-saved-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; color: #197151; background: #e9f8ee; font-size: .61rem; font-weight: 850; letter-spacing: .025em; white-space: nowrap; }
.decision-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; border-radius: 12px; font-size: .78rem; font-weight: 850; transition: transform .16s cubic-bezier(.23, 1, .32, 1), box-shadow .16s ease, background .16s ease; }
.decision-action:hover { transform: translateY(-1px); }
.decision-action:active { transform: scale(.97); }
.decision-action.primary { padding: 0 15px; color: #fff; background: linear-gradient(135deg, #087f5b, #18ad79); box-shadow: 0 10px 20px rgba(17,155,108,.22); }
.decision-action.primary:hover { color: #fff; background: linear-gradient(135deg, #057353, #11996b); }
.decision-action.secondary { width: 100%; padding: 0 12px; color: #4f51b8; border: 1px solid #d9daf6; background: #f7f7ff; }
.decision-action.secondary:hover { color: #4143a7; background: #eeeeff; }
.decision-action.disabled { padding: 0 11px; color: #9298aa; border: 1px solid #e3e6ed; background: #f7f8fa; cursor: default; }

.alternatives-section { margin-top: 18px; }
.section-title-row { margin: 0 0 11px; }
.section-title-row h3 { margin: 2px 0 0; color: var(--ink); font-size: 1.04rem; letter-spacing: -.032em; }
.alternatives-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.alt-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 228px; gap: 7px; margin: 0; padding: 16px; border-radius: 16px; }
.alt-card h4 { min-height: 39px; margin: 0; overflow: hidden; color: var(--ink); font-size: .84rem; font-weight: 850; letter-spacing: -.023em; line-height: 1.35; }
.alt-source, .alt-detail { margin: 0; overflow: hidden; color: #7b8398; font-size: .69rem; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.alt-detail { min-height: 18px; color: #5b677c; white-space: normal; }
.alt-price { margin-top: auto; }
.alt-card .decision-action { margin-top: 5px; }
.alt-card .transition-context { min-height: 28px; }
.alt-card .affiliate-disclosure { margin: 0; font-size: .62rem; }
.savings-card { padding: 20px; }
.savings-card > div:first-child h3 { margin: 3px 0 14px; }
.decision-empty { margin-top: 14px; }

@media (max-width: 760px) {
    .decision-brief-grid { grid-template-columns: 1fr 1fr; }
    .decision-brief-grid > div:first-child { grid-column: 1 / -1; }
    .alternatives-grid { grid-template-columns: 1fr; }
    .alt-card { min-height: 0; }
    .alt-card h4 { min-height: 0; }
}
@media (max-width: 560px) {
    .decision-brief { padding: 15px; border-radius: 15px; }
    .decision-brief-topline { align-items: flex-start; }
    .decision-brief-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
    .decision-offers-count { white-space: nowrap; }
    .decision-brief-grid { grid-template-columns: 1fr; }
    .decision-brief-grid > div:first-child { grid-column: auto; }
    .decision-main { align-items: stretch; flex-direction: column; gap: 11px; }
    .decision-price-block { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 0 0; border-top: 1px solid #dcefe5; border-left: 0; text-align: left; }
    .decision-price-block p { text-align: right; }
    .decision-cta-row { align-items: stretch; flex-direction: column; }
    .decision-action.primary { width: 100%; }
    .decision-cta-copy { max-width: none; margin: 0; }
    .decision-data-notice, .transition-context { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .decision-brief, .decision-card, .alternatives-section, .savings-card { animation: none; }
    .decision-action { transition: none; }
}

.decision-challenge { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 11px; padding: 12px 14px; border: 1px solid #e2ddfb; border-radius: 14px; background: linear-gradient(135deg, #fbfaff, #f7f6ff); }
.decision-challenge > span { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 7px; color: #5d4cc4; background: #ebe8ff; font-size: .61rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.decision-challenge p { margin: 1px 0 0; color: #595a78; font-size: .75rem; font-weight: 650; line-height: 1.48; }
@media (max-width: 560px) { .decision-challenge { grid-template-columns: 1fr; gap: 6px; } .decision-challenge > span { width: fit-content; } }

/* Результаты должны появляться целиком: без задержки, которая может скрыть альтернативы на медленном мобильном рендере. */
.decision-brief,
.decision-card,
.alternatives-section,
.savings-card { animation: none; }


/* Concrete Results Engine: coverage, source status and evidence facts. */
.source-passport {
    margin: 0 0 14px;
    padding: 18px 20px;
    border: 1px solid #dfe3f3;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(252,253,255,.96), rgba(247,250,255,.94));
    box-shadow: 0 9px 24px rgba(31,38,94,.045);
}
.passport-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.passport-head h3 { margin: 4px 0 0; color: var(--ink); font-size: 1rem; letter-spacing: -.03em; }
.passport-head > strong { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 9px; color: #2b7459; background: #eefbf5; font-size: .73rem; font-weight: 850; white-space: nowrap; }
.passport-summary { margin: 10px 0 12px; color: #5c667d; font-size: .77rem; font-weight: 600; line-height: 1.45; }
.passport-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.passport-source { min-width: 0; padding: 11px 12px; border: 1px solid #e4e8f2; border-radius: 12px; background: rgba(255,255,255,.78); }
.passport-source > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.passport-source strong { min-width: 0; overflow: hidden; color: #3b4059; font-size: .75rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.passport-source > div > span { flex: 0 0 auto; color: #67728a; font-size: .62rem; font-weight: 800; }
.passport-source p { min-height: 30px; margin: 7px 0 6px; color: #7a8397; font-size: .66rem; font-weight: 600; line-height: 1.35; }
.passport-source small { display: block; color: #727d91; font-size: .6rem; font-weight: 700; }
.passport-source.passport-checked { border-color: #ccefdc; background: #fbfffc; }
.passport-source.passport-checked > div > span { color: #208662; }
.passport-source.passport-pending { border-style: dashed; }
.passport-note { margin: 12px 0 0; color: #7b8498; font-size: .66rem; line-height: 1.45; }

.evidence-ledger { position: relative; z-index: 1; margin-top: 11px; overflow: hidden; border: 1px solid #e1e5f0; border-radius: 13px; background: rgba(255,255,255,.7); }
.evidence-ledger summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; color: #4f5871; font-size: .72rem; font-weight: 800; cursor: pointer; list-style: none; }
.evidence-ledger summary::-webkit-details-marker { display: none; }
.evidence-ledger summary::after { content: '⌄'; color: #6d6aca; font-size: .9rem; line-height: 1; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.evidence-ledger[open] summary::after { transform: rotate(180deg); }
.evidence-ledger summary span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; border-radius: 7px; color: #5961be; background: #eff0ff; font-size: .62rem; }
.evidence-ledger ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0 14px 14px; list-style: none; }
.evidence-ledger li { min-width: 0; padding: 9px 10px; border-radius: 10px; background: #f8f9fd; }
.evidence-ledger li span { display: block; margin-bottom: 3px; color: #818a9d; font-size: .61rem; font-weight: 750; }
.evidence-ledger li strong { display: block; overflow: hidden; color: #4d556c; font-size: .7rem; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.decision-score-signals { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.decision-score-signals span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; color: #626b80; background: rgba(246,247,252,.95); font-size: .63rem; font-weight: 750; }
.decision-score-signals span:first-child { color: #33745f; background: #effbf5; }

@media (max-width: 560px) {
    .source-passport { padding: 15px; border-radius: 15px; }
    .passport-sources, .evidence-ledger ul { grid-template-columns: 1fr; }
    .passport-source p { min-height: auto; }
    .passport-note { font-size: .64rem; }
    .evidence-ledger li strong { white-space: normal; }
}

/* Partner programme beta */
.partner-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.partner-balance-grid > div { padding: 13px 14px; border: 1px solid rgba(92, 74, 216, .13); border-radius: 13px; background: linear-gradient(135deg, rgba(112, 219, 123, .07), rgba(255,255,255,.88)); }
.partner-balance-grid strong { display: block; color: var(--ink); font-size: 1.04rem; }
.partner-balance-grid span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .76rem; line-height: 1.35; }
.partner-ledger { margin: 13px 0 15px; }
.partner-ledger-title { margin: 0 0 7px; color: var(--ink-soft); font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.partner-ledger-item { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 9px 0; border-top: 1px solid #eef0f5; }
.partner-ledger-item > div { min-width: 0; }
.partner-ledger-item > div:last-child { text-align: right; }
.partner-ledger-item strong, .partner-ledger-item span { display: block; }
.partner-ledger-item strong { color: var(--ink); font-size: .73rem; line-height: 1.35; }
.partner-ledger-item span { margin-top: 3px; color: var(--ink-soft); font-size: .64rem; line-height: 1.35; }
.cabinet-inline-link { color: var(--brand); font-size: .83rem; font-weight: 700; text-decoration: none; }
.cabinet-inline-link:hover { text-decoration: underline; }
.terms-page { max-width: 900px; padding-top: 72px; padding-bottom: 80px; }
.terms-hero { padding: 40px; border: 1px solid rgba(92, 74, 216, .11); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,243,255,.92)); box-shadow: var(--shadow-md); }
.terms-hero h1 { max-width: none; margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; }
.terms-hero > p { max-width: 680px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.terms-notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 15px 17px; border-radius: 14px; background: rgba(112, 219, 123, .10); color: #245a33; font-size: .88rem; line-height: 1.5; }
.terms-notice p { margin: 0; }
.brand-signal-dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: .34em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-glow); }
.terms-section { margin-top: 28px; padding: 28px 32px; border: 1px solid rgba(30, 35, 70, .08); border-radius: 20px; background: #fff; }
.terms-section h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.22rem; letter-spacing: -.025em; }
.terms-section p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.7; }
.terms-table-wrap { overflow-x: auto; margin: 18px 0 14px; }
.terms-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .86rem; }
.terms-table th, .terms-table td { padding: 13px; border-bottom: 1px solid rgba(30, 35, 70, .09); text-align: left; vertical-align: top; }
.terms-table th { color: #3d365f; background: rgba(92, 74, 216, .05); font-weight: 800; }
.terms-table td { color: var(--ink-soft); line-height: 1.45; }
.terms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.terms-actions .btn-primary, .terms-actions .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.terms-actions .btn-primary { color: #fff; background: linear-gradient(110deg, #4b41cb, #7a41e8); box-shadow: 0 10px 22px rgba(90,65,216,.2); }
.terms-actions .btn-secondary { border: 1px solid rgba(92,74,216,.18); color: #4b41cb; background: #fff; }
@media (max-width: 640px) { .partner-balance-grid { grid-template-columns: 1fr; } .terms-page { padding-top: 30px; padding-bottom: 45px; } .terms-hero { padding: 26px 21px; border-radius: 18px; } .terms-section { margin-top: 18px; padding: 22px 20px; border-radius: 16px; } .terms-actions { flex-direction: column; } .terms-actions a { width: 100%; } }
.terms-actions .btn-primary { border: 0; cursor: pointer; }
.terms-actions .btn-primary:disabled { cursor: default; opacity: .62; box-shadow: none; }
.terms-action-status { margin: 13px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }

.form-optional { color: #8e95aa; font-size: .72rem; font-weight: 600; }
.form-note { margin: 10px 0 0; color: #7b839a; font-size: .72rem; line-height: 1.5; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 3px; color: #68718a; font-size: .72rem; line-height: 1.5; cursor: pointer; }
.consent-check input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--brand); }
.consent-check a, .footer a { color: var(--brand); text-decoration: none; }
.consent-check a:hover, .footer a:hover { text-decoration: underline; }
.verify-email-lead { margin: 0 0 17px; color: #69718a; font-size: .83rem; line-height: 1.55; }
.verify-email-lead strong { color: var(--ink); word-break: break-word; }
.form-text-action { width: 100%; margin-top: 10px; padding: 9px; border: 0; color: var(--brand); background: transparent; cursor: pointer; font: inherit; font-size: .79rem; font-weight: 750; }
.form-text-action:hover { text-decoration: underline; }
@media (max-width: 560px) { .consent-check { font-size: .7rem; } .footer-inner p { text-align: center; line-height: 1.6; } }

/* AI Query Refinement */
.query-refinement {
  margin: 10px 0 2px;
  padding: 12px;
  border: 1px solid rgba(112, 219, 123, .38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(112, 219, 123, .10), rgba(92, 76, 240, .055));
  box-shadow: 0 8px 22px rgba(25, 31, 68, .05);
}
.query-refinement.hidden { display: none; }
.query-refinement-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.query-refinement-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.query-refinement-head p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.35; text-align: right; }
.query-refinement-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.query-refinement-option { min-height: 58px; padding: 10px 11px; border: 1px solid rgba(96, 86, 207, .15); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.88); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.query-refinement-option:hover, .query-refinement-option:focus-visible { transform: translateY(-1px); border-color: rgba(84, 72, 222, .48); box-shadow: 0 7px 16px rgba(60, 52, 169, .10); outline: 0; }
.query-refinement-option strong, .query-refinement-option span { display: block; }
.query-refinement-option strong { font-size: 12px; line-height: 1.25; }
.query-refinement-option span { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.25; }
.query-refinement-original { margin-top: 9px; padding: 0; color: var(--brand); background: transparent; font-size: 12px; font-weight: 700; }
.search-btn.is-thinking { opacity: .78; cursor: progress; }
@media (max-width: 640px) { .query-refinement { padding: 11px; border-radius: 14px; } .query-refinement-head { display: block; } .query-refinement-head p { margin-top: 5px; text-align: left; } .query-refinement-options { grid-template-columns: 1fr; } .query-refinement-option { min-height: 54px; } }

/* Evidence-based scenario savings */
.scenario-insights { margin-top: 16px; padding: 18px; border: 1px solid rgba(112, 219, 123, .34); border-radius: 18px; background: linear-gradient(135deg, #f5fffa, #f7f8ff); box-shadow: var(--shadow-sm); }
.scenario-insights-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.scenario-insights-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-deep); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scenario-insights h3 { margin: 0; color: var(--ink); font-size: 1.05rem; letter-spacing: -.03em; }
.scenario-insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.scenario-insight { padding: 15px; border: 1px solid rgba(112, 219, 123, .26); border-radius: 14px; background: rgba(255,255,255,.86); }
.scenario-insight h4 { margin: 0 0 5px; color: var(--ink); font-size: .94rem; letter-spacing: -.025em; }
.scenario-insight p { margin: 0; color: #326855; font-size: .84rem; font-weight: 700; line-height: 1.45; }
.scenario-insight small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: .68rem; line-height: 1.4; }
.scenario-insight-action { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 11px; border-radius: 10px; color: #075c42; background: #ddf8ea; font-size: .76rem; font-weight: 800; }
.scenario-insight-action:hover, .scenario-insight-action:focus-visible { color: #fff; background: var(--signal-deep); outline: 0; }
@media (max-width: 640px) { .scenario-insights { padding: 15px; } .scenario-insights-head { display: block; } .scenario-insights h3 { margin-top: 4px; } }
