/* --- Base Settings --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --bg-light: #f9f9f9;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-main {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Header --- */
.main-header {
    background-color: var(--primary-color);
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    margin-left: 30px;
    font-size: 1rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #e9f3f4 0%, #77c0c9 100%);
    padding: 60px 0 80px 0;
    overflow: hidden; 
}

.hero-pink {
    background: linear-gradient(135deg, #f8d2da 0%, #d47c8f 100%); /* Розовый градиент для тематических страниц */
}

.hero-flex {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left; 
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 40px;
    font-weight: 500;
}

/* --- Article Styles --- */
.problem-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.problem-list li {
    background: #fff;
    border-left: 6px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 1.15rem;
    font-weight: 500;
}

.content-image-wrapper {
    margin: 50px 0;
    text-align: center;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Стили для ссылок в основном тексте */
.article-container a {
    transition: background-color 0.3s ease, color 0.3s ease; /* 0.3s — скорость анимации в секундах */
    text-decoration: underline;
}
.article-container a:link {
    color: #bc2112; /* Цвет не посещенной ссылки */
}

.article-container a:visited {
    color: #66170f; /* Цвет посещенной ссылки */
}

.article-container a:hover {
    color: #fa2a11; /* Цвет при наведении */
    background-color: #8dcad1; /* Цвет фона при наведении */
    text-decoration: none;
}

.article-container a:active {
    color: #2c3e50; /* Цвет в момент нажатия */
}

/* --- Action Block --- */
.action-block {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.action-block-pink {
    background: linear-gradient(135deg, #f8d2da 0%, #d47c8f 100%); /* Устраняет серую полосу */
    border-top: none; 
    padding: 60px 0;
}

.action-card {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    background-color: #1a252f;
    color: #95a5a6;
    text-align: center;
    padding: 40px 0;
    font-size: 0.85rem;
    border-top: 1px solid #34495e;
}

footer a { color: #bdc3c7; text-decoration: none; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-flex { flex-direction: column; text-align: center; gap: 30px; }
    .hero h1 { font-size: 2.2rem; }
    .nav-menu a { margin-left: 15px; font-size: 0.95rem; }
}