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

:root {
    --app-vh: 100svh;
    --primary-color: #5b4eff;
    --primary-light: #eef2ff;
    --primary-hover: #4a3ed9;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --blue: var(--primary-color);
    --blue-dark: var(--primary-hover);
    --blue-darker: #3b28cc;
    --blue-light: var(--primary-light);
    --blue-subtle: rgba(91, 78, 255, 0.06);
    --red: #e42626;
    --green: #22c55e;
    --bg: var(--white);
    --border: #e5e7eb;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --r: 14px;
    --r-sm: 10px;
}
@supports (height: 100dvh) {
    :root { --app-vh: 100dvh; }
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    width: 100%;
    margin: 0;
    font-family: var(--font);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    -webkit-transition: opacity 0.55s var(--ease), -webkit-transform 0.55s var(--ease);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-webkit-keyframes scaleIn {
    from { opacity: 0; -webkit-transform: scale(0.95); transform: scale(0.95); }
    to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes scaleIn {
    from { opacity: 0; -webkit-transform: scale(0.95); transform: scale(0.95); }
    to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.logo i {
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}
.logo:hover i {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.header-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}
.header-nav a:hover {
    color: var(--primary-color);
}
.header-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.header-nav a:hover::after {
    width: 100%;
}

.header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.header-burger__icon {
    display: block;
    fill: var(--text-dark);
}
.header-burger:hover .header-burger__icon {
    fill: var(--primary-color);
}

/* ===== Mobile menu ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
    -webkit-transition: visibility 0.3s;
    transition: visibility 0.3s;
}
.mobile-nav.mobile-nav--open {
    pointer-events: auto;
    visibility: visible;
}
.mobile-nav__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: opacity 0.3s var(--ease);
    transition: opacity 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav--open .mobile-nav__backdrop {
    opacity: 1;
}
.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: var(--app-vh, 100%);
    height: var(--app-vh, 100dvh);
    width: 88vw;
    max-width: 300px;
    background: var(--white);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.3s var(--ease);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 12px 16px 20px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.mobile-nav--open .mobile-nav__panel {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
}
.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-gray);
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close:hover {
    background: var(--border);
    color: var(--text-dark);
}
.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav__list a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__list a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}
body.mobile-nav-open {
    overflow: hidden;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 78, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .subtitle {
    color: var(--text-gray);
    font-size: clamp(16px, 3vw, 20px);
    max-width: 650px;
    margin: 0 auto 40px;
}

.stats-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 50px;
    max-width: min(900px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    box-sizing: border-box;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}
.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ===== Fraud ===== */
.fraud-section {
    padding: 100px 0;
    max-width: none;
    margin: 0 auto;
    background: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 15px;
    color: var(--text-dark);
}
.section-header p {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    width: 100%;
    min-width: 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}
.card:hover::before {
    opacity: 1;
}
.icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
    flex-shrink: 0;
}
.icon-box svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}
.card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}
.warning-box {
    background-color: #f3f4ff;
    border-left: 5px solid var(--primary-color);
    padding: 18px;
    border-radius: 6px;
}
.warning-box p {
    margin: 0;
    font-size: 14px;
    color: #4338ca;
    font-weight: 500;
}

/* ===== Diagnostic banner ===== */
.diagnostic-banner-section {
    padding: 20px 0 60px;
}
.diagnostic-banner {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.diagnostic-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.diagnostic-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.diagnostic-text h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.diagnostic-text p {
    font-size: 15px;
    color: var(--text-gray);
    margin: 0;
}
.diagnostic-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.diagnostic-btn:hover {
    background-color: var(--primary-hover);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 78, 255, 0.2);
}

/* ===== Rules ===== */
.rules-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b28cc 100%);
    color: var(--white);
    text-align: center;
}
.rules-container {
    max-width: 1100px;
    margin: 0 auto;
}
.rules-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 15px;
    color: var(--white);
}
.rules-header p {
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 50px;
}
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.rule-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-align: left;
}
.rule-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}
.rule-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #a78bfa;
}
.rule-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}
.rule-card p {
    font-size: 15px;
    color: var(--primary-light);
    line-height: 1.6;
}

/* ===== App ===== */
.app-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.app-container {
    max-width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.app-info {
    text-align: left;
    flex: 1;
    min-width: 260px;
}
.app-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 12px;
}
.app-info h2 {
    font-size: clamp(32px, 5vw, 46px);
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--text-dark);
}
.app-info p {
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 30px;
    font-size: 18px;
}
.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.store-btn {
    background-color: var(--white);
    border: 2px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}
.store-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 78, 255, 0.15);
}
.phone-mockup {
    width: 300px;
    max-width: 100%;
    height: 600px;
    max-height: 70vh;
    background: #1f2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.phone-screen h4 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}
.phone-safe-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.phone-safe-text {
    margin-top: 30px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}
.phone-safe-text .fa-check-circle {
    color: var(--green);
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-light);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-logo-block {
    font-weight: 700;
    font-size: 22px;
    display: flex;
    flex-direction: column;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}
.footer-logo-row i {
    color: var(--primary-color);
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    max-width: 280px;
    font-weight: 400;
}
.hotline {
    text-align: right;
}
.hotline h4 {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hotline a {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: var(--transition);
}
.hotline a:hover {
    color: var(--primary-color);
}
.hotline span {
    font-size: 14px;
    color: var(--green);
    display: block;
    margin-top: 5px;
    font-weight: 600;
}
.partners-bar {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.partners-title {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}
.partners-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.partner-item {
    background-color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: default;
}
.partner-item i {
    font-size: 18px;
    transition: transform 0.4s ease;
}
.partner-item:hover {
    -webkit-transform: translateY(-5px) scale(1.02);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(91, 78, 255, 0.12);
    color: var(--primary-color);
}
.partner-item:hover i {
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
}
.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 40px;
    padding: 0 16px;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    right: max(20px, env(safe-area-inset-right));
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 90;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s, box-shadow 0.2s, background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(91, 78, 255, 0.35);
}
.back-to-top:hover {
    background: var(--primary-hover);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}
.back-to-top__icon {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
    flex-shrink: 0;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Diagnostic modal ===== */
.diag-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.diag-modal-overlay.active {
    display: flex;
    -webkit-animation: fadeIn 0.2s ease;
    animation: fadeIn 0.2s ease;
}
body.modal-open {
    overflow: hidden;
}
body.modal-open .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.diag-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 380px;
    width: 90vw;
    -webkit-animation: scaleIn 0.3s var(--ease);
    animation: scaleIn 0.3s var(--ease);
    position: relative;
}
.diag-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.diag-modal-close:hover {
    background: var(--border);
    color: var(--text-dark);
}
.diag-modal-dots {
    display: flex;
    gap: 7px;
}
.diag-modal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    -webkit-animation: diagDot 1.4s ease-in-out infinite;
    animation: diagDot 1.4s ease-in-out infinite;
}
.diag-modal-dots span:nth-child(2) {
    animation-delay: 0.15s;
}
.diag-modal-dots span:nth-child(3) {
    animation-delay: 0.3s;
}
@-webkit-keyframes diagDot {
    0%, 80%, 100% { opacity: 0.15; -webkit-transform: scale(0.8); transform: scale(0.8); }
    40% { opacity: 1; -webkit-transform: scale(1.1); transform: scale(1.1); }
}
@keyframes diagDot {
    0%, 80%, 100% { opacity: 0.15; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.1); }
}
.diag-modal-text {
    color: var(--text-gray);
    font-size: 14px;
}
.diag-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.diag-phone-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}
.diag-phone-sub {
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
    margin-top: -4px;
}
.diag-phone-wrap {
    width: 100%;
}
.diag-phone-input {
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.diag-phone-input::placeholder {
    color: #bbb;
}
.diag-phone-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 78, 255, 0.12);
}
.diag-phone-input.error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(228, 38, 38, 0.06) !important;
}
.diag-phone-error {
    display: none;
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}
.diag-phone-error.visible {
    display: block;
}
.diag-phone-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(91, 78, 255, 0.2);
}
.diag-phone-btn:hover {
    background: var(--primary-hover);
}
.diag-phone-btn:active {
    transform: scale(0.98);
}
.diag-phone-btn:disabled {
    background: var(--border);
    color: var(--text-gray);
    cursor: default;
    transform: none;
    box-shadow: none;
}
@-webkit-keyframes diagShake {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    15% { -webkit-transform: translateX(-8px); transform: translateX(-8px); }
    35% { -webkit-transform: translateX(8px); transform: translateX(8px); }
    55% { -webkit-transform: translateX(-5px); transform: translateX(-5px); }
    75% { -webkit-transform: translateX(5px); transform: translateX(5px); }
}
@keyframes diagShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    35% { transform: translateX(8px); }
    55% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.diag-phone-input.shake {
    -webkit-animation: diagShake 0.4s ease;
    animation: diagShake 0.4s ease;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@-webkit-keyframes pulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .header-nav {
        display: none;
    }
    .header-burger {
        display: flex;
    }
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
    }
    .app-info {
        text-align: center;
    }
    .store-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 72px 0 56px;
    }
    .stats-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 28px 24px;
    }
    .stat-item {
        min-width: 0;
    }
    .diagnostic-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .diagnostic-content {
        flex-direction: column;
        text-align: center;
    }
    .diagnostic-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-logo-block {
        align-items: center;
        width: 100%;
    }
    .footer-logo-row {
        justify-content: center;
    }
    .footer-tagline {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hotline {
        text-align: center;
    }
    .fraud-section {
        padding: 64px 0;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .diag-modal-box {
        padding: 28px 20px;
        margin: 0 16px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 20px;
    }
    .logo i {
        padding: 8px;
        font-size: 18px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header p {
        font-size: 16px;
    }
    .card {
        padding: 28px 22px;
    }
    .rules-section {
        padding: 56px 0;
    }
    .app-section {
        padding: 64px 0;
    }
    .phone-mockup {
        height: 520px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }
    .stat-number {
        font-size: 28px;
    }
    .diag-modal-box {
        padding: 24px 16px;
        min-width: 0;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
    .diag-modal-overlay {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
}

@media (pointer: coarse) {
    .back-to-top {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
    .stat-number {
        -webkit-animation: none;
        animation: none;
    }
}
