/* Общие стили для всех внутренних страниц (advantages и articles) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2d2d2d;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка — серый градиент */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 2.8em;
    color: #1a1a1a;
    font-weight: 700;
}

/* Контент — белый фон */
.content {
    background: white;
    padding: 60px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
}

.content-img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.content-text {
    flex: 1;
}

.content-text p,
.content-text ul {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.content-text ul {
    padding-left: 20px;
}

.content-text li {
    margin-bottom: 8px;
}

/* Ссылка «Назад» */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #2962ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.back-link:hover {
    text-decoration: underline;
}
/* Вводная цитата рядом с картинкой */
.intro-with-image {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.intro-with-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.intro-quote {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin: 0;
    padding: 0;
    font-style: italic;
}

.intro-quote p {
    margin: 0;
}

/* Основной текст — на всю ширину */
.main-content {
    width: 100%;
}

.main-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2962ff;
    font-size: 1.6em;
}

.main-content p,
.main-content ul,
.main-content ol,
.main-content table,
.main-content pre,
.main-content blockquote.epigraph {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.main-content th,
.main-content td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
}

.main-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.main-content pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.95em;
}

.main-content blockquote.epigraph {
    border-left: 4px solid #2962ff;
    padding-left: 20px;
    color: #555;
    font-style: italic;
}

/* Адаптив: на мобильных — картинка сверху */
@media (max-width: 768px) {
    .intro-with-image {
        flex-direction: column;
    }

    .intro-with-image img {
        max-width: 100%;
        align-self: center;
    }
}