* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 30%, #0a0e1a, #02040c);
    color: #e9f1ff;
    line-height: 1.55;
    overflow-x: hidden;
}

:root {
    --accent: #2dd4bf;
    --accent-dark: #0f766e;
    --accent-glow: rgba(45, 212, 191, 0.3);
    --card-bg: rgba(15, 25, 45, 0.7);
    --border-dim: #1e2a3a;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header + css-only burger */
.header {
    position: sticky;
    top: 0;
    background: rgba(2, 8, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent);
    z-index: 100;
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2dd4bf, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.desktop-nav a {
    color: #cbd5f0;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.desktop-nav a:hover {
    color: #2dd4bf;
}

/* burger hack */
.burger-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2dd4bf;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #030814ee;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--accent);
    padding: 1.5rem;
    z-index: 99;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin: 1rem 0;
}

.mobile-nav a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

#menu-checkbox {
    display: none;
}

#menu-checkbox:checked ~ .mobile-nav {
    display: block;
}

/* hero */
.hero {
    padding: 70px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-sub {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.link-badge {
    background: #0f172f;
    border: 1px solid var(--accent);
    border-radius: 60px;
    padding: 12px 24px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.onion-url {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: break-word;
    background: #00000055;
    padding: 6px 14px;
    border-radius: 40px;
    color: #7dd3fc;
    max-width: 100%;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b2b2a;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid #2dd4bf;
    white-space: nowrap;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title span {
    background: linear-gradient(135deg, #f0f9ff, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    padding: 1.8rem;
    border: 1px solid var(--border-dim);
    transition: 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.step-number {
    background: var(--accent-dark);
    width: 38px;
    height: 38px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* таблица с переносами */
.mirror-table {
    width: 100%;
    border-collapse: collapse;
    background: #0a1022;
    border-radius: 1.5rem;
    overflow: hidden;
}

.mirror-table th, .mirror-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e2a3a;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mirror-table th {
    background: #050a18;
    color: #2dd4bf;
}

.online {
    color: #2dd4bf;
    font-weight: 500;
}

details {
    background: #0f172f;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid #1e2a3a;
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: #cbd5f0;
    outline: none;
}

summary::-webkit-details-marker {
    color: #2dd4bf;
}

.faq-answer-content {
    padding-top: 1rem;
    color: #b9c7dd;
}

footer {
    background: #020617;
    border-top: 1px solid #2dd4bf40;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid a {
    text-decoration: none;
}

/* ===== УЛУЧШЕННЫЙ АДАПТИВ ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .burger-icon {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .link-badge {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        width: 100%;
    }
    .status {
        white-space: normal;
        text-align: center;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .glass-card {
        padding: 1.2rem;
    }
    .card-grid {
        gap: 1.2rem;
    }
    /* Мобильная таблица: каждая строка — карточка */
    .mirror-table,
    .mirror-table tbody,
    .mirror-table tr,
    .mirror-table td {
        display: block;
        width: 100%;
    }
    .mirror-table tr {
        margin-bottom: 1rem;
        border: 1px solid #2dd4bf30;
        border-radius: 1rem;
        padding: 0.8rem;
    }
    .mirror-table th {
        display: none;
    }
    .mirror-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 0.5rem 0;
        border-bottom: none;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .mirror-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2dd4bf;
        width: 35%;
        flex-shrink: 0;
    }
    /* для ячеек без data-label добавим вручную в HTML, но можно и так */
    .mirror-table td:first-child:before { content: "Type: "; }
    .mirror-table td:nth-child(2):before { content: "Address: "; }
    .mirror-table td:nth-child(3):before { content: "Status: "; }
    .mirror-table td:nth-child(4):before { content: "Last check: "; }
    /* перенос длинных адресов */
    .mirror-table td:nth-child(2) {
        word-break: break-all;
        white-space: normal;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1.5rem;
    }
}

/* для экранов уже 480px и меньше — дополнительная защита */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .onion-url {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .status {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    .glass-card {
        padding: 1rem;
    }
    .feature-icon {
        font-size: 1.8rem;
    }
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .link-badge {
        gap: 8px;
    }
}

/* общие классы для переноса текста */
.break-word {
    word-break: break-word;
    overflow-wrap: break-word;
}
.text-teal-300 {
    color: #5eead4;
}
/* исправление для длинных слов в любом месте */
p, h1, h2, h3, h4, .glass-card, .status, .onion-url {
    word-break: break-word;
    overflow-wrap: break-word;
}