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

:root {
    --bg: #06060b;
    --bg2: #0c0c14;
    --bg3: #12121e;
    --card: rgba(255,255,255,0.04);
    --card-hover: rgba(255,255,255,0.08);
    --border: rgba(255,255,255,0.06);
    --accent: #00e87b;
    --accent2: #00c96a;
    --accent-glow: rgba(0,232,123,0.15);
    --accent-glow2: rgba(0,232,123,0.3);
    --text: #e8e8ed;
    --text2: #9494a8;
    --text3: #5c5c72;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAV */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6,6,11,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.2px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--accent) 0%, #00ffaa 50%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    padding-bottom: 6px;
}

.logo-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #00ffaa 55%, var(--accent2));
    box-shadow: 0 0 10px rgba(0, 255, 170, .45);
    transition: box-shadow .25s ease, height .25s ease;
}

.logo:hover .logo-text::after {
    height: 4px;
    box-shadow: 0 0 18px rgba(0, 255, 170, .8);
}

/* ХЛЕБНЫЕ КРОШКИ */
.crumbs {
    width: 100%;
    padding: 10px 0 0;
}

.crumbs .container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.crumbs-domain {
    color: #00ffaa;
    text-decoration: none;
    transition: color .2s ease;
}

.crumbs-domain:hover {
    color: var(--accent);
    text-decoration: underline;
}

.crumbs-slash {
    color: var(--text2);
}

.crumbs-cur {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.logo-glow {
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--accent), #00ffaa);
    border-radius: 8px;
    opacity: 0.12;
    filter: blur(8px);
    z-index: 0;
}

.logo:hover .logo-glow {
    opacity: 0.25;
    filter: blur(12px);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.mobile-auth { display: none; }

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text2);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--card);
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 28px var(--accent-glow2);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.12);
}

.btn-big {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow2); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

/* FADE UP */
.fade-up {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}
.fade-up-d1 { animation-delay: 0.15s; }
.fade-up-d2 { animation-delay: 0.3s; }
.fade-up-d3 { animation-delay: 0.45s; }
.fade-up-d4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent) 0%, #00ffaa 60%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text2);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* SOC ICONS */
.soc-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Мобильный вид: иконки ровно по центру, всегда влезают в экран */
@media (max-width: 700px) {
    .soc-icons {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding: 2px 0 8px;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .soc-icons::-webkit-scrollbar { display: none; }
    .soc-icons .soc-icon {
        flex: 1 1 0;
        min-width: 0;
        max-width: 46px;
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }
}

.soc-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text2);
    font-size: 22px;
}

.soc-icon:hover,
.soc-icon.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

/* SEARCH BOX */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    padding-right: 54px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.search-box input::placeholder { color: var(--text3); }
.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    width: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    box-shadow: 0 0 20px var(--accent-glow2);
    transform: scale(1.05);
}

.hero-hint {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text3);
}

/* RESULT BLOCK */
.result-block {
    display: none;
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text2);
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
}

.result-block.show { display: block; }
.result-block.success { border-color: var(--accent); }
.result-block.error { border-color: #ef4444; }
.result-block.pending { border-color: rgba(255,255,255,0.1); }

.result-progress {
    margin-top: 14px;
    height: 4px;
    background: var(--bg3);
    border-radius: 2px;
    overflow: hidden;
}

.result-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00ffaa);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-dark { background: var(--bg2); }
.section-accent {
    background: linear-gradient(160deg, #052e16 0%, #064e3b 40%, #052e16 100%);
    position: relative;
    overflow: hidden;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,232,123,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text2);
    font-size: 16px;
}

/* SERVICE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.35s;
}

.service-card:hover {
    background: var(--card-hover);
    border-color: rgba(0,232,123,0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 14px;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-3px);
}

.feature-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 16px;
    font-size: 22px;
    font-weight: 900;
    color: #000;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.6;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
    margin-right: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 1;
    box-shadow: 0 0 12px var(--accent-glow2);
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.timeline-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--card);
    transition: all 0.3s;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    gap: 12px;
    user-select: none;
}

.faq-q i {
    font-size: 12px;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.8;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
}

.stat-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
}

/* AUTH FORMS */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(12,12,20,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.auth-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--text3);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder { color: var(--text3); }

.auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
}

.auth-submit:hover {
    box-shadow: 0 0 24px var(--accent-glow2);
    transform: translateY(-1px);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text3);
}

.auth-links a {
    color: var(--accent);
    font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-success {
    background: rgba(0,232,123,0.1);
    border: 1px solid rgba(0,232,123,0.3);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

/* ABOUT PAGE */
.about-page {
    padding: 120px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.about-text h1 .accent {
    background: linear-gradient(135deg, var(--accent), #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text2);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}

.about-stat .num {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
}

.about-stat .label {
    font-size: 13px;
    color: var(--text3);
}

/* FOOTER */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
    font-size: 14px;
    color: var(--text3);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text2);
    transition: all 0.25s;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--text);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--text3);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-col .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 12px;
}

.footer-col .contact-item i {
    color: var(--accent);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text3);
}

/* MOBILE */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(6,6,11,0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .mobile-auth { display: block; }
    .nav-actions { display: none; }
    .burger { display: flex; }

    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(odd) { flex-direction: row; }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot { left: 20px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .modal-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .modal-option {
        flex-wrap: wrap;
        padding: 14px;
    }
    .modal-option .btn { width: 100%; justify-content: center; }

    .search-box { flex-direction: column; }
    .search-box button {
        position: static;
        width: 100%;
        padding: 14px;
        border-radius: 10px;
        height: auto;
        font-size: 15px;
        gap: 10px;
    }
    .search-box button::after {
        content: 'Взломать';
        font-weight: 700;
    }
    .search-box input { padding-right: 16px; }

    .services-grid,
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 0; }

    .soc-icons { gap: 8px; }
    .soc-icon { width: 44px; height: 44px; font-size: 18px; }

    .auth-card { padding: 28px 24px; }

    .stat-num { font-size: 32px; }
    .hero { padding-top: 80px; }

    /* не даём контенту вылезать за границы линий */
    .result-block {
        padding: 16px;
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .pf-header { gap: 12px; }
    .pf-avatar { width: 52px; height: 52px; }
    .pf-name { font-size: 15px; }
    .pf-actions .btn-big,
    .pf-actions .btn { width: 100%; justify-content: center; }

    .hack-console {
        height: 200px;
        font-size: 12px;
        padding: 12px;
        line-height: 1.8;
        word-break: break-word;
    }

    .hack-top { flex-direction: column; align-items: flex-start; }
    .hack-progress-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .hero-badge { font-size: 12px; padding: 5px 14px; margin-bottom: 20px; }
}

@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .hero h1 { font-size: 28px; }
    .nav-links { padding: 10px 14px; }
    .soc-icon { width: 40px; height: 40px; font-size: 16px; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* PROFILE PREVIEW CARD */
.profile-card-mini {
    text-align: left;
}

.pf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pf-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    background: var(--bg3);
}

.pf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 22px;
}

.pf-info {
    min-width: 0;
}

.pf-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
    word-break: break-word;
}

.pf-nick {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 4px;
    word-break: break-word;
}

.pf-soc {
    font-size: 12px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-desc {
    background: var(--bg3);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 14px;
    word-break: break-word;
}

.pf-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,232,123,0.07);
    border: 1px solid rgba(0,232,123,0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* HACK CONSOLE */
.hack-wrap {
    text-align: left;
}

.hack-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hack-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.hack-status-dot {
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.hack-target {
    font-size: 13px;
    color: var(--text3);
    background: var(--bg3);
    padding: 5px 12px;
    border-radius: 100px;
    word-break: break-all;
}

.hack-console {
    background: #020208;
    border: 1px solid rgba(0,232,123,0.15);
    border-radius: 12px;
    height: 220px;
    overflow-y: auto;
    padding: 14px 16px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 14px;
}

.hack-console::-webkit-scrollbar { width: 6px; }
.hack-console::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

.console-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    animation: consoleIn 0.3s ease forwards;
    color: var(--text2);
    word-break: break-word;
}

.console-ts {
    color: var(--text3);
    font-size: 11px;
    flex-shrink: 0;
    padding-top: 3px;
    user-select: none;
}

.console-text {
    min-width: 0;
    flex: 1;
    word-break: break-word;
}

.console-dot {
    flex-shrink: 0;
}

.console-line.ok { color: var(--accent); }
.console-line.warn { color: #fbbf24; }
.console-line.info { color: #60a5fa; }

.console-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes consoleIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.hack-progress {
    margin-bottom: 16px;
}

.hack-progress-bar-wrap {
    height: 6px;
    background: var(--bg3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.hack-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00ffaa);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px var(--accent-glow2);
}

.hack-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text3);
    gap: 10px;
    flex-wrap: wrap;
}

#hackPercent {
    color: var(--accent);
    font-weight: 700;
    font-family: 'Consolas', monospace;
}

.btn-warning {
    background: #fbbf24;
    color: #000;
}

.btn-warning:hover {
    box-shadow: 0 0 20px rgba(251,191,36,0.4);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6,6,11,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px var(--accent-glow);
    animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    margin: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text2);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s;
}

.modal-close:hover {
    background: var(--card-hover);
    color: var(--text);
    transform: rotate(90deg);
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.25s;
}

.modal-option:hover {
    border-color: var(--accent);
    background: var(--card-hover);
}

.modal-option-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-option-text {
    min-width: 0;
    flex: 1;
}

/* PROFILE MINIMAL */
.profile-page { padding: 120px 0 80px; }

.profile-avatar-letter {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 36px;
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 32px var(--accent-glow);
}

.hack-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s;
}

.hack-row:hover {
    background: var(--card-hover);
    border-color: rgba(0,232,123,0.2);
}

.hack-row-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--accent);
    font-size: 19px;
    flex-shrink: 0;
}

.hack-row-info {
    min-width: 0;
    flex: 1;
}

.hack-row-account {
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 2px;
}

.hack-row-meta {
    font-size: 12px;
    color: var(--text3);
}

@media (max-width: 600px) {
    .hack-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hack-row .btn { width: 100%; justify-content: center; }
    .hack-row-info { flex-basis: calc(100% - 70px); }
}
.profile-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.profile-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.profile-card p { color: var(--text3); font-size: 14px; margin-bottom: 24px; }
.profile-card .profile-name {
    font-size: 18px; font-weight: 700; margin-bottom: 4px;
}
.profile-card .profile-email { color: var(--text3); font-size: 14px; margin-bottom: 24px; }

/* MOBILE OVERFLOW GUARD */
@media (max-width: 700px) {
    .crumbs .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .crumbs .container::-webkit-scrollbar { display: none; }
    h1, h2, .logo-text, .crumbs, .hero-title, .btn, .nav-link {
        overflow-wrap: anywhere;
    }
    .crumbs-domain, .crumbs-cur { white-space: nowrap; }
    .modal-card, .search-form, .hero-form { max-width: 100%; }
}