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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================ */
/* NAVBAR - Liquid Glass */
/* ============================================ */
header.navbar {
    width: 100%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(117, 216, 185, 0.15);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 36px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #75d8b9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #75d8b9, #5bb99e);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.try-btn {
    background: linear-gradient(135deg, #75d8b9 0%, #5bb99e 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(117, 216, 185, 0.25);
    border: none;
    display: inline-block;
}

.try-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(117, 216, 185, 0.35);
}

.try-btn:active {
    transform: translateY(0);
}

/* ============================================ */
/* BLOG HEADER (только для главной страницы блога) */
/* ============================================ */
.blog-header {
    text-align: center;
    padding: 100px 32px 80px;
    background: radial-gradient(ellipse at top, rgba(117, 216, 185, 0.08) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(117, 216, 185, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.blog-title {
    position: relative;
    z-index: 1;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #ffffff 0%, #75d8b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.1;
}

.blog-subtitle {
    position: relative;
    z-index: 1;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: -0.4px;
}

/* ============================================ */
/* ARTICLES GRID (главная страница блога) */
/* ============================================ */
main#articles-container {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* Article Card - Liquid Glass Style */
.article-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 56px 36px;
    border-radius: 28px;
    min-height: 200px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient Background Layer */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.4s ease;
}

/* Glass Overlay */
.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Hover Effects */
.article-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(117, 216, 185, 0.2);
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(117, 216, 185, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-card:hover::before {
    opacity: 0.25;
}

.article-card:hover::after {
    opacity: 1;
}

/* Article Title */
.article-title {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.article-card:hover .article-title {
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(117, 216, 185, 0.3);
}

/* Gradient Variations */
.article-card:nth-child(6n+1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card:nth-child(6n+2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.article-card:nth-child(6n+3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.article-card:nth-child(6n+4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.article-card:nth-child(6n+5)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.article-card:nth-child(6n+6)::before {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.7s ease-out backwards;
}

.article-card:nth-child(n+1) { animation-delay: 0.05s; }
.article-card:nth-child(n+2) { animation-delay: 0.1s; }
.article-card:nth-child(n+3) { animation-delay: 0.15s; }
.article-card:nth-child(n+4) { animation-delay: 0.2s; }
.article-card:nth-child(n+5) { animation-delay: 0.25s; }
.article-card:nth-child(n+6) { animation-delay: 0.3s; }

/* ============================================ */
/* ARTICLE CONTENT (страницы отдельных статей) */
/* ============================================ */
.content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    line-height: 1.8;
    color: #ffffff;
}

.content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.2;
}

.content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.content p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

.content a {
    color: #75d8b9;
    text-decoration: none;
    border-bottom: 1px solid rgba(117, 216, 185, 0.3);
    transition: all 0.3s ease;
}

.content a:hover {
    color: #5bb99e;
    border-bottom-color: #5bb99e;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: #ffffff;
    font-weight: 600;
}

.content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.content code {
    background: rgba(117, 216, 185, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #75d8b9;
}

.content pre {
    background: rgba(20, 20, 20, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(117, 216, 185, 0.1);
}

.content pre code {
    background: none;
    padding: 0;
    color: #75d8b9;
}

.content blockquote {
    border-left: 4px solid #75d8b9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.content table {
    width: 100%;
    border-collapse: collapse;
}

.content th,
.content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(117, 216, 185, 0.1);
}

.content th {
    background: rgba(117, 216, 185, 0.1);
    font-weight: 600;
    color: #ffffff;
}

.content td {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================ */
/* OTHER ARTICLES SECTION (предыдущие статьи) */
/* ============================================ */
.other-art {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.other-art h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.art-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.article-btn {
    width: 100%;
    max-width: 600px;
    color: #ffffff;
    text-decoration: none;
    padding: 40px 32px;
    border-radius: 24px;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
    z-index: 0;
}

.article-btn span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-btn:active {
    transform: translateY(-2px) scale(1.01);
}

/* ============================================ */
/* REF BLOCK (рекламный блок VPN) */
/* ============================================ */
.ref-block {
    max-width: 800px;
    margin: 5rem auto;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #75d8b9 0%, #5bb99e 100%);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(117, 216, 185, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ref-block h1 {
    margin: 0 0 1rem 0;
    color: #0a0a0a;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.ref-block p {
    color: rgba(10, 10, 10, 0.8);
    font-size: 18px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
}

.btn-wrapper a {
    flex: 1;
    text-decoration: none;
}

.btn-wrapper button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #0a0a0a;
}

.main-btn {
    background: #0a0a0a;
    color: #75d8b9;
}

.tg-btn {
    background: transparent;
    color: #0a0a0a;
}

.main-btn:hover,
.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.main-btn:active,
.tg-btn:active {
    transform: translateY(0);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */
@media (max-width: 1024px) {
    main#articles-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .blog-subtitle {
        font-size: 18px;
    }

    main#articles-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .article-card {
        padding: 44px 28px;
        border-radius: 24px;
    }

    .article-title {
        font-size: 21px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .try-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .content {
        padding: 1.5rem;
    }

    .content h1 {
        font-size: 32px;
    }

    .content h2 {
        font-size: 26px;
    }

    .btn-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .ref-block {
        padding: 2rem 1.5rem;
    }

    .ref-block h1 {
        font-size: 26px;
    }

    .ref-block p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 80px 20px 60px;
    }

    .blog-title {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    main#articles-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .article-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .article-title {
        font-size: 19px;
    }

    .content {
        padding: 1rem;
    }

    .content h1 {
        font-size: 28px;
    }

    .content h2 {
        font-size: 22px;
    }

    .other-art {
        padding: 0 16px;
    }
}