/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Section */
.section:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section:first-child .container {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.3),
        0 1px 0px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 35px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 1;
    font-weight: 500;
    color: #f8fafc;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 1px 0px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    margin-top: 15px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Header links styling */
.section:first-child a {
    color: #fef3c7;
    text-decoration: underline;
    text-decoration-color: rgba(254, 243, 199, 0.6);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.section:first-child a:hover {
    color: #fbbf24;
    text-decoration-color: #fbbf24;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(251, 191, 36, 0.4);
}

.section:first-child a:visited {
    color: #fef3c7;
    text-decoration-color: rgba(254, 243, 199, 0.6);
}

.section:first-child a:visited:hover {
    color: #fbbf24;
    text-decoration-color: #fbbf24;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(251, 191, 36, 0.4);
}

.section:first-child p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.4s both;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.section:not(:first-child) {
    background: #f8fafc;
    padding: 60px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
    padding: 40px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    color: #667eea;
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin-bottom: 30px;
    margin-top: 40px;
}

h4:first-child {
    margin-top: 0;
}

h2 {
    font-size: 2.2rem;
    color: #667eea;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4a5568;
    text-align: justify;
}

/* Lists */
ul {
    margin: 12px 0;
    padding-left: 0;
}

li {
    list-style: none;
    position: relative;
    margin-bottom: 8px;
    padding-left: 25px;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
}

li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Предупреждение о разработке */
.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #e67e22;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    text-align: left;
}

.warning::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 2rem;
    background: white;
    padding: 0 1rem;
    font-size: 1.5rem;
}

.warning h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Навигация */
.navigation {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.navigation a:hover {
    text-decoration: underline;
}

/* Разделитель */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 3rem 0;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
        padding: 15px 25px;
    }

    .header-subtitle {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .section:first-child {
        padding: 60px 15px;
    }

    .section:not(:first-child) {
        padding: 40px 15px;
    }

    .blog-card-body {
        padding: 30px 20px;
    }

    .container {
        padding: 0 15px;
    }

    h4 {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .warning {
        margin: 1rem 0;
        padding: 1rem;
    }
}