*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    --purple: #6d3ee7;
    --purple-dark: #4d25b8;
    --purple-soft: #f1ecff;
    --purple-line: #d9cdfc;
    --ink: #17213a;
    --muted: #68738a;
    --surface: #ffffff;
    --surface-alt: #f7f8fc;
    --line: #e3e7f0;
    --green: #168b72;
    --coral: #e8656b;
    --danger: #c83e4d;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 8px;
    --shadow-sm: 0 8px 24px rgba(31, 35, 48, 0.07);
    --shadow: 0 18px 55px rgba(42, 28, 85, 0.13);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--surface); color: var(--ink); line-height: 1.55; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.navbar-inner { min-height: 72px; display: flex; align-items: center; gap: 36px; }
.navbar-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; }
.navbar-logo svg { width: 34px; height: 34px; color: var(--purple); }
.navbar-menu { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 0 auto; }
.navbar-link { color: #465169; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.navbar-link:hover, .navbar-link:focus-visible { color: var(--purple); }
.navbar-phone { color: var(--purple-dark); text-decoration: none; font-size: 15px; font-weight: 750; white-space: nowrap; }

.hero { background: #f7f4ff; border-bottom: 1px solid var(--purple-line); padding: 68px 0 40px; overflow: hidden; }
.hero-grid { position: relative; width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); align-items: center; gap: 54px; }
.hero-copy { max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin-bottom: 28px; border: 1px solid var(--purple-line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--purple-dark); font-size: 12px; font-weight: 700; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,139,114,.13); animation: badgePulse 2.8s ease-in-out infinite; }
.hero-kicker { color: var(--purple); font-size: 15px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.hero-title { max-width: 650px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: 0; }
.hero-accent { display: block; color: var(--purple); }
.hero-sub { max-width: 570px; margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.hero-art { --hero-x: 0px; --hero-y: 0px; position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-art-backdrop { position: absolute; inset: 26px 0; border: 1px solid var(--purple-line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(233,226,255,.9)); transform: rotate(2deg); }
.hero-art img { position: relative; width: min(100%, 500px); height: auto; border-radius: var(--radius); mix-blend-mode: multiply; filter: drop-shadow(0 18px 24px rgba(77,37,184,.14)); transform: translate3d(var(--hero-x), var(--hero-y), 0); transition: transform .28s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat { min-width: 0; padding: 21px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; color: var(--purple-dark); font-size: 24px; line-height: 1.2; font-weight: 800; }
.stat-label { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-size: 15px; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(109,62,231,.3); outline-offset: 3px; }
.btn-primary { color: white; background: var(--purple); box-shadow: 0 9px 22px rgba(109,62,231,.24); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-secondary { color: var(--purple-dark); background: white; border-color: var(--purple-line); }

.diagnostic-section { padding: 54px 0 34px; background: var(--surface); }
.diagnostic-card { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 34px; border: 1px solid #cfc0fa; border-radius: var(--radius); background: linear-gradient(115deg, #5a2fc6 0%, #7650e3 58%, #4c42a9 100%); box-shadow: 0 18px 48px rgba(76,45,160,.2); color: white; }
.diag-icon-wrap { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); background: rgba(255,255,255,.12); animation: diagIconFloat 3.6s ease-in-out infinite; }
.diag-icon-wrap svg { width: 30px; height: 30px; }
.diag-copy h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.diag-copy > p { max-width: 650px; margin-top: 9px; color: rgba(255,255,255,.82); }
.diag-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 17px; list-style: none; color: rgba(255,255,255,.92); font-size: 13px; font-weight: 650; }
.diag-points li::before { content: "✓"; margin-right: 7px; color: #baf6df; }
.section-tag { display: inline-flex; align-items: center; margin-bottom: 13px; padding: 5px 10px; border: 1px solid var(--purple-line); border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark); text-transform: uppercase; font-size: 11px; font-weight: 800; }
.section-tag--light { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: white; }
.btn-diag { min-width: 210px; color: var(--purple-dark); background: white; box-shadow: 0 9px 24px rgba(25,15,58,.16); }
.btn-diag:hover { box-shadow: 0 12px 28px rgba(25,15,58,.22); }
.btn-diag svg { width: 18px; height: 18px; }

.about-section { padding: 88px 0; background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.about-heading h2, .section-header h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.about-lead { color: var(--ink); font-size: 19px; line-height: 1.65; }
.about-features { display: grid; gap: 14px; margin-top: 28px; }
.feature-item { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.feature-num { color: var(--purple); font-size: 13px; font-weight: 800; }
.feature-item h3 { font-size: 16px; }
.feature-item p { margin-top: 3px; color: var(--muted); font-size: 14px; }

.fraud-section { padding: 88px 0; background: radial-gradient(ellipse at 50% 0, #f3efff 0, transparent 65%); }
.section-header { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-header p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.fraud-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.fraud-card { --card-accent: #6d3ee7; --card-tint: #f3efff; display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid #e6e4f0; border-radius: 24px; background: linear-gradient(155deg,var(--card-tint),#fff 42%); box-shadow: 0 10px 32px rgba(31,35,48,.04); transition: box-shadow .22s ease, border-color .22s ease; }
.fraud-card:nth-child(2) { --card-accent: #087c70; --card-tint: #eaf8f3; }
.fraud-card:nth-child(3) { --card-accent: #bd5761; --card-tint: #fff0ef; }
.fraud-card:hover { border-color: var(--purple-line); box-shadow: var(--shadow-sm); }
.fraud-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.fraud-card-number { color: var(--card-accent); opacity: .35; font-size: 30px; font-weight: 700; letter-spacing: -.06em; }
.fraud-card-icon { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #ffffff; border-radius: 22px; background: #ffffffb3; color: var(--card-accent); box-shadow: 0 4px 16px #17213a06; }
.fraud-card-icon svg { width: 46px; height: 46px; }
.fraud-card h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.fraud-card > p { margin: 12px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.warning { margin-top: auto; display: flex; gap: 10px; padding: 16px; border: 1px solid #e5e9f1; border-radius: 14px; background: #f8fafc; color: #46516a; font-size: 13px; line-height: 1.6; }
.warning > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--card-accent); }
.warning-label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }

.sponsors-section { padding: 72px 0 54px; background: linear-gradient(180deg,#f7f8fc,#fff); border-top: 1px solid var(--line); }
.sponsors-heading { max-width: 560px; margin: 0 auto 36px; text-align: center; }
.sponsors-heading h2 { margin-top: 16px; font-size: clamp(26px,3vw,36px); letter-spacing: -.035em; line-height: 1.25; }
.privacy-open-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--purple-line); border-radius: var(--radius); background: white; color: var(--purple-dark); font-weight: 700; cursor: pointer; }
.privacy-open-btn svg { width: 20px; height: 20px; }
.partners-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; max-width: 960px; margin: 0 auto; }
.partners-grid .sponsor-item { grid-column: span 2; }
.partners-grid .sponsor-item:first-child { grid-column: 2 / span 2; }
.partners-grid .sponsor-item:nth-child(2) { grid-column: 4 / span 2; }
.sponsors-privacy { display: flex; justify-content: center; margin-top: 36px; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 7px rgba(22,139,114,.08); } }
@keyframes diagIconFloat { 50% { transform: translateY(-4px); } }
.sponsor-item { --brand-rgb: 109,62,231; min-width: 0; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 18px; border: 1px solid rgba(var(--brand-rgb),.2); border-radius: 22px; background: radial-gradient(ellipse at 15% 0,rgba(var(--brand-rgb),.18),transparent 80%),linear-gradient(145deg,rgba(255,255,255,.9),rgba(var(--brand-rgb),.04)); box-shadow: 0 8px 24px rgba(var(--brand-rgb),.04); }
.sponsor-item--sber { --brand-rgb: 35,170,74; }
.sponsor-item--kaspersky { --brand-rgb: 0,155,128; }
.sponsor-item--tbank { --brand-rgb: 244,192,0; }
.sponsor-item--gos { --brand-rgb: 38,104,210; }
.sponsor-item--rkn { --brand-rgb: 49,77,133; }
.sponsor-logo { width: auto; height: 48px; max-width: 150px; object-fit: contain; }
.sponsor-name { font-size: 14px; font-weight: 650; text-align: center; overflow-wrap: anywhere; }

.footer { padding: 46px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo-text { font-size: 20px; font-weight: 800; }
.footer-brand p, .footer-copy, .hotline-label { color: var(--muted); font-size: 12px; }
.footer-hotline { display: flex; flex-direction: column; align-items: center; }
.hotline-num { color: var(--purple-dark); text-decoration: none; font-size: 22px; font-weight: 800; }
.hotline-free { color: var(--green); font-size: 11px; font-weight: 700; }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; background: rgba(20,24,39,.62); backdrop-filter: blur(8px); }
.modal-overlay.active { display: flex; }
.privacy-modal-overlay { overscroll-behavior: contain; }
.modal-box { position: relative; width: min(100%, 470px); max-height: min(720px, calc(100dvh - 40px)); overflow: auto; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-alt); color: var(--muted); font-size: 27px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--purple-dark); background: var(--purple-soft); }
.diag-stage { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.diag-stage[hidden] { display: none; }
.modal-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple); }
.modal-icon svg { width: 27px; height: 27px; }
.diag-phone-title { max-width: calc(100% - 50px); font-size: 27px; line-height: 1.18; }
.diag-phone-sub { color: var(--muted); font-size: 14px; line-height: 1.6; }
.field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.diag-phone-input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #cfd6e4; border-radius: var(--radius); background: var(--surface-alt); color: var(--ink); font-size: 17px; outline: 0; }
.diag-phone-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,62,231,.12); background: white; }
.diag-phone-input.error { border-color: var(--danger); }
.diag-phone-error { display: none; margin-top: 6px; color: var(--danger); font-size: 12px; }
.diag-phone-error.visible { display: block; }
.diag-phone-btn { min-height: 52px; border: 0; border-radius: var(--radius); background: var(--purple); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(109,62,231,.2); }
.diag-phone-btn:hover { background: var(--purple-dark); }
.diag-phone-btn:disabled { opacity: .55; cursor: progress; }
.diag-consent { color: var(--muted); font-size: 12px; line-height: 1.5; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--purple-dark); text-decoration: underline; cursor: pointer; }
.diag-modal-dots { display: flex; justify-content: center; gap: 8px; padding-top: 36px; }
.diag-modal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); animation: dotPulse 1.2s ease-in-out infinite; }
.diag-modal-dots span:nth-child(2) { animation-delay: .15s; }
.diag-modal-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse { 50% { opacity: .3; transform: translateY(-4px); } }
.diag-modal-text { color: var(--muted); text-align: center; }
.diag-waiting { align-items: center; text-align: center; padding: 18px 0 4px; }
.waiting-spinner { width: 58px; height: 58px; border: 4px solid var(--purple-soft); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.diag-waiting h2 { font-size: 27px; }
.diag-waiting > p { color: var(--muted); }
.waiting-phone { display: block; padding: 10px 18px; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple-dark); font-size: 18px; }
.waiting-timer { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 40px; line-height: 1; font-weight: 800; }
.waiting-note { max-width: 350px; font-size: 13px; }
@keyframes diagShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.diag-phone-input.shake { animation: diagShake .35s ease; }

.privacy-modal-box { width: min(100%, 760px); padding: 0; }
.privacy-modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 20px; border-bottom: 1px solid var(--line); background: white; }
.privacy-modal-header h2 { font-size: 28px; line-height: 1.2; }
.modal-close--static { position: static; flex: 0 0 auto; }
.privacy-content { padding: 26px 30px 34px; color: #48536b; }
.privacy-content > p { padding: 15px; border-left: 3px solid var(--purple); background: var(--purple-soft); }
.privacy-content section { margin-top: 23px; }
.privacy-content h3 { margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.privacy-content p { font-size: 14px; line-height: 1.65; }

.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: min(460px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-content { display: flex; align-items: center; gap: 20px; padding: 18px; }
.cookie-text { flex: 1; }
.cookie-text h3 { font-size: 14px; }
.cookie-text p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cookie-buttons { display: flex; gap: 8px; }
.cookie-btn { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.cookie-btn-accept { border-color: var(--purple); background: var(--purple); color: white; }
.cookie-btn-decline { background: white; color: var(--muted); }

@media (max-width: 900px) {
    .navbar-menu { display: none; }
    .hero-grid { grid-template-columns: 1fr .72fr; gap: 24px; }
    .hero-art { min-height: 330px; }
    .hero-stats { grid-template-columns: repeat(2,1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .diagnostic-card { grid-template-columns: 58px 1fr; }
    .btn-diag { grid-column: 1 / -1; width: 100%; }
    .about-grid { gap: 44px; }
    .fraud-cards { gap: 14px; }
    .fraud-card { padding: 22px; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 30px, 1160px); }
    .navbar { position: relative; }
    .navbar-inner { min-height: 62px; }
    .navbar-phone { font-size: 13px; }
    .hero { padding: 44px 0 28px; }
    .hero-grid { width: min(100% - 30px, 1160px); grid-template-columns: 1fr; }
    .hero-title { font-size: 42px; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-art { min-height: auto; }
    .hero-art-backdrop { inset: 12px 0; }
    .hero-art img { width: 100%; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 17px 15px; }
    .stat-num { font-size: 20px; }
    .diagnostic-section { padding-top: 30px; }
    .diagnostic-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
    .diag-points { flex-direction: column; }
    .about-section, .fraud-section { padding: 60px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .fraud-cards { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .partners-grid { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .partners-grid .sponsor-item:nth-child(n) { grid-column: auto; min-height: 128px; padding: 18px 10px; border-radius: 16px; }
    .partners-grid .sponsor-item:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
    .sponsor-logo { max-width: 110px; height: 42px; }
    .footer-hotline { align-items: flex-start; }
    .modal-box { padding: 26px 20px; }
    .privacy-modal-box { padding: 0; }
    .privacy-modal-header, .privacy-content { padding-left: 20px; padding-right: 20px; }
    .privacy-modal-header h2 { font-size: 23px; }
    .cookie-content { align-items: stretch; flex-direction: column; }
    .cookie-buttons { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
