/*
Theme Name: EduProfChoice_8503
Theme URI: https://akvasink.ru
Author: Воробьев Данил
Author URI: https://akvasink.ru
Description: Высшее образование: выбор профессии и вуза. Рейтинги университетов, востребованные специальности, советы по подготовке к экзаменам. Помощь в профориентации.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduprofchoice
*/

/* === ПЕРЕМЕННЫЕ === */
:root {
    --epc-bg-main: #F4F7FC;
    --epc-accent-deep: #1A3B5C;
    --epc-accent-amber: #E8A735;
    --epc-accent-gold: #D4951F;
    --epc-card-bg: #FFFFFF;
    --epc-text-primary: #2C3E4E;
    --epc-text-secondary: #5D6F7F;
    --epc-border-pale: #D0E0F0;
    --epc-pill-bg: #EAF0F8;
    --epc-radius-btn: 6px;
    --epc-radius-pill: 30px;
    --epc-shadow-card: 0 2px 12px rgba(26, 59, 92, 0.08);
    --epc-shadow-hover: 0 6px 24px rgba(26, 59, 92, 0.14);
    --epc-transition: 0.3s ease;
    --epc-glow-amber: 0 0 0 3px rgba(232, 167, 53, 0.25);
    --epc-font-heading: 'Merriweather', Georgia, serif;
    --epc-font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
}

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--epc-font-body);
    color: var(--epc-text-primary);
    background-color: var(--epc-bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--epc-accent-deep);
    text-decoration: none;
    transition: color var(--epc-transition);
}

a:hover {
    color: var(--epc-accent-amber);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--epc-font-heading);
    color: var(--epc-accent-deep);
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin: 0 0 1em 1.5em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

table, th, td {
    border: 1px solid var(--epc-border-pale);
}

th, td {
    padding: 10px 14px;
    text-align: left;
}

th {
    background-color: var(--epc-accent-deep);
    color: #fff;
    font-weight: 600;
}

td {
    background-color: var(--epc-card-bg);
}

/* === КНОПКИ === */
.epc-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--epc-accent-amber), var(--epc-accent-gold));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--epc-radius-btn);
    cursor: pointer;
    transition: box-shadow var(--epc-transition), transform var(--epc-transition);
    text-align: center;
}

.epc-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(232, 167, 53, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.epc-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--epc-accent-deep);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--epc-accent-deep);
    border-radius: var(--epc-radius-btn);
    cursor: pointer;
    transition: all var(--epc-transition);
    text-align: center;
}

.epc-btn-secondary:hover {
    background: var(--epc-accent-deep);
    color: #fff;
}

.epc-btn-pill {
    display: inline-block;
    padding: 8px 20px;
    background: var(--epc-pill-bg);
    color: var(--epc-text-primary);
    font-size: 0.9rem;
    border: none;
    border-radius: var(--epc-radius-pill);
    cursor: pointer;
    transition: all var(--epc-transition);
}

.epc-btn-pill:hover,
.epc-btn-pill.active {
    background: var(--epc-accent-deep);
    color: #fff;
}

/* === ШАПКА === */
.epc-site-header {
    background: var(--epc-card-bg);
    border-bottom: 1px solid var(--epc-border-pale);
    position: relative;
    z-index: 100;
    transition: padding var(--epc-transition);
}

.epc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.epc-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.epc-logo-area img,
.epc-logo-area svg {
    max-height: 48px;
    width: auto;
    transition: max-height var(--epc-transition);
}

.epc-site-header.shrink .epc-logo-area img,
.epc-site-header.shrink .epc-logo-area svg {
    max-height: 32px;
}

.epc-site-header.shrink .epc-header-inner {
    padding: 8px 20px;
}

.epc-site-title {
    font-family: var(--epc-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--epc-accent-deep);
    line-height: 1.2;
}

.epc-site-title a {
    color: inherit;
}

/* === НАВИГАЦИЯ === */
.epc-main-nav {
    display: flex;
    align-items: center;
}

.epc-main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.epc-main-nav li {
    margin: 0;
}

.epc-main-nav a {
    display: block;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--epc-text-primary);
    border-radius: var(--epc-radius-btn);
    transition: background var(--epc-transition), color var(--epc-transition);
}

.epc-main-nav a:hover,
.epc-main-nav .current-menu-item a {
    background: var(--epc-pill-bg);
    color: var(--epc-accent-deep);
}

.epc-burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.epc-burger-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--epc-accent-deep);
    margin: 5px 0;
    transition: all var(--epc-transition);
    border-radius: 2px;
}

.epc-burger-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.epc-burger-toggle.open span:nth-child(2) {
    opacity: 0;
}

.epc-burger-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === КОНТЕЙНЕР === */
.epc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.epc-content-wide {
    width: 85%;
    margin: 0 auto;
}

/* === LAYOUT С САЙДБАРОМ === */
.epc-layout-with-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.epc-content-main {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.epc-sidebar-area {
    flex: 0 0 27%;
    max-width: 27%;
    min-width: 0;
}

.epc-layout-full .epc-content-main {
    flex: 0 0 85%;
    max-width: 85%;
    margin: 0 auto;
}

/* === САЙДБАР === */
.epc-sidebar-area .widget {
    background: var(--epc-card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--epc-shadow-card);
}

.epc-sidebar-area .widget-title,
.epc-sidebar-area .widgettitle {
    font-family: var(--epc-font-heading);
    font-size: 1.1rem;
    color: var(--epc-accent-deep);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--epc-accent-amber);
}

.epc-sidebar-area .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.epc-sidebar-area .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--epc-border-pale);
}

.epc-sidebar-area .widget ul li:last-child {
    border-bottom: none;
}

.epc-sidebar-area .widget ul li a {
    font-size: 0.93rem;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.epc-breadcrumbs {
    padding: 14px 0;
    font-size: 0.88rem;
    color: var(--epc-text-secondary);
}

.epc-breadcrumbs a {
    color: var(--epc-accent-deep);
}

.epc-breadcrumbs a:hover {
    color: var(--epc-accent-amber);
}

.epc-breadcrumbs .epc-bc-separator {
    margin: 0 6px;
    color: var(--epc-border-pale);
}

/* === КАРТОЧКИ ЗАПИСЕЙ === */
.epc-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.epc-post-card {
    background: var(--epc-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--epc-shadow-card);
    transition: box-shadow var(--epc-transition), transform var(--epc-transition);
    display: flex;
    flex-direction: column;
}

.epc-post-card:hover {
    box-shadow: var(--epc-shadow-hover);
    transform: translateY(-3px);
}

.epc-post-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.epc-post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.epc-post-card-meta {
    font-size: 0.82rem;
    color: var(--epc-text-secondary);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.epc-post-card-title {
    font-family: var(--epc-font-heading);
    font-size: 1.12rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.epc-post-card-title a {
    color: var(--epc-accent-deep);
}

.epc-post-card-title a:hover {
    color: var(--epc-accent-amber);
}

.epc-post-card-excerpt {
    font-size: 0.92rem;
    color: var(--epc-text-secondary);
    line-height: 1.6;
    flex: 1;
}

.epc-post-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--epc-border-pale);
}

/* === ГЛАВНАЯ СТРАНИЦА — ГЕРОЙ === */
.epc-hero-section {
    background: linear-gradient(135deg, var(--epc-accent-deep) 0%, #264E73 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.epc-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(232, 167, 53, 0.08);
    border-radius: 50%;
}

.epc-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.epc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.epc-hero-content h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.epc-hero-subtitle {
    color: var(--epc-accent-amber);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.epc-hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
}

.epc-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === БЛОКИ НА ГЛАВНОЙ === */
.epc-section-block {
    padding: 50px 0;
}

.epc-section-title {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 12px;
    color: var(--epc-accent-deep);
}

.epc-section-desc {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--epc-text-secondary);
    font-size: 1rem;
}

/* Блок: Выбор профессии */
.epc-professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.epc-profession-card {
    background: var(--epc-card-bg);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--epc-shadow-card);
    transition: all var(--epc-transition);
    cursor: default;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.epc-profession-card:hover {
    box-shadow: var(--epc-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--epc-accent-amber);
}

.epc-profession-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.epc-profession-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.epc-profession-skills {
    font-size: 0.84rem;
    color: var(--epc-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.epc-profession-card:hover .epc-profession-skills {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
}

/* Блок: Рейтинг */
.epc-rating-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.epc-rating-item {
    display: flex;
    align-items: center;
    background: var(--epc-card-bg);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: var(--epc-shadow-card);
    border-left: 5px solid var(--epc-border-pale);
    transition: box-shadow var(--epc-transition);
}

.epc-rating-item:hover {
    box-shadow: var(--epc-shadow-hover);
}

.epc-rating-item.gold-rank { border-left-color: #FFD700; }
.epc-rating-item.silver-rank { border-left-color: #C0C0C0; }
.epc-rating-item.bronze-rank { border-left-color: #CD7F32; }

.epc-rating-pos {
    font-family: var(--epc-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--epc-accent-deep);
    min-width: 50px;
    text-align: center;
    transition: transform var(--epc-transition);
}

.epc-rating-item:hover .epc-rating-pos {
    transform: scale(1.15);
}

.epc-rating-info {
    flex: 1;
    margin-left: 20px;
}

.epc-rating-info h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.epc-rating-info p {
    font-size: 0.88rem;
    color: var(--epc-text-secondary);
    margin: 0;
}

/* Блок: Советы-timeline */
.epc-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 36px;
}

.epc-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--epc-border-pale);
    border-radius: 3px;
}

.epc-timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: var(--epc-card-bg);
    border-radius: 10px;
    box-shadow: var(--epc-shadow-card);
}

.epc-timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--epc-accent-amber);
    border-radius: 50%;
    border: 3px solid var(--epc-bg-main);
    box-shadow: 0 0 0 2px var(--epc-accent-amber);
}

.epc-timeline-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.epc-timeline-item p {
    font-size: 0.92rem;
    color: var(--epc-text-secondary);
    margin: 0;
}

/* === ПАГИНАЦИЯ === */
.epc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.epc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--epc-radius-btn);
    font-weight: 600;
    font-size: 0.92rem;
    background: var(--epc-card-bg);
    color: var(--epc-accent-deep);
    border: 1px solid var(--epc-border-pale);
    transition: all var(--epc-transition);
}

.epc-pagination .page-numbers:hover {
    background: var(--epc-accent-deep);
    color: #fff;
    border-color: var(--epc-accent-deep);
}

.epc-pagination .page-numbers.current {
    background: var(--epc-accent-deep);
    color: #fff;
    border-color: var(--epc-accent-deep);
}

.epc-pagination .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

.epc-pagination .page-numbers.dots:hover {
    background: none;
    color: var(--epc-accent-deep);
}

/* === ПОДВАЛ === */
.epc-wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.epc-wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

.epc-site-footer {
    background: var(--epc-accent-deep);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 0;
}

.epc-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.epc-footer-col .widget {
    color: rgba(255, 255, 255, 0.8);
}

.epc-footer-col .widget-title,
.epc-footer-col .widgettitle {
    color: #fff;
    font-family: var(--epc-font-heading);
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--epc-accent-amber);
}

.epc-footer-col .widget a {
    color: rgba(255, 255, 255, 0.75);
}

.epc-footer-col .widget a:hover {
    color: var(--epc-accent-amber);
}

.epc-footer-col .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.epc-footer-col .widget ul li {
    padding: 5px 0;
}

.epc-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

/* === COOKIE === */
.epc-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--epc-accent-deep);
    color: #fff;
    padding: 16px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.epc-cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.epc-cookie-accept {
    padding: 8px 24px;
    background: var(--epc-accent-amber);
    color: #fff;
    border: none;
    border-radius: var(--epc-radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--epc-transition);
    white-space: nowrap;
}

.epc-cookie-accept:hover {
    background: var(--epc-accent-gold);
}

.epc-cookie-notice.hidden {
    display: none;
}

/* === ПОИСК === */
.epc-search-form {
    display: flex;
    max-width: 500px;
}

.epc-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--epc-border-pale);
    border-right: none;
    border-radius: var(--epc-radius-btn) 0 0 var(--epc-radius-btn);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--epc-transition), box-shadow var(--epc-transition);
    font-family: var(--epc-font-body);
}

.epc-search-form input[type="search"]:focus {
    border-color: var(--epc-accent-amber);
    box-shadow: var(--epc-glow-amber);
}

.epc-search-form button {
    padding: 10px 20px;
    background: var(--epc-accent-deep);
    color: #fff;
    border: 2px solid var(--epc-accent-deep);
    border-radius: 0 var(--epc-radius-btn) var(--epc-radius-btn) 0;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--epc-transition);
}

.epc-search-form button:hover {
    background: #264E73;
}

/* === ОДИНОЧНАЯ ЗАПИСЬ === */
.epc-single-article {
    background: var(--epc-card-bg);
    border-radius: 10px;
    padding: 32px;
    box-shadow: var(--epc-shadow-card);
    margin-bottom: 30px;
}

.epc-single-article h1 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.epc-single-meta {
    font-size: 0.85rem;
    color: var(--epc-text-secondary);
    margin-bottom: 24px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.epc-single-article .entry-content p {
    margin-bottom: 1.1em;
}

.epc-single-article .entry-content img {
    border-radius: 8px;
    margin: 16px 0;
}

/* === КОММЕНТАРИИ === */
.epc-comments-section {
    background: var(--epc-card-bg);
    border-radius: 10px;
    padding: 28px;
    box-shadow: var(--epc-shadow-card);
    margin-top: 30px;
}

.epc-comments-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--epc-border-pale);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: var(--epc-accent-deep);
}

.comment-meta {
    font-size: 0.82rem;
    color: var(--epc-text-secondary);
    margin-bottom: 8px;
}

.comment-respond label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.92rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--epc-border-pale);
    border-radius: var(--epc-radius-btn);
    font-family: var(--epc-font-body);
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: border-color var(--epc-transition), box-shadow var(--epc-transition);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--epc-accent-amber);
    box-shadow: var(--epc-glow-amber);
}

.comment-respond .submit {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--epc-accent-amber), var(--epc-accent-gold));
    color: #fff;
    border: none;
    border-radius: var(--epc-radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow var(--epc-transition);
}

.comment-respond .submit:hover {
    box-shadow: 0 4px 16px rgba(232, 167, 53, 0.4);
}

/* === 404 === */
.epc-404-block {
    text-align: center;
    padding: 60px 20px;
}

.epc-404-block h1 {
    font-size: 5rem;
    color: var(--epc-accent-amber);
    margin-bottom: 10px;
}

.epc-404-block h2 {
    margin-bottom: 14px;
}

.epc-404-block p {
    color: var(--epc-text-secondary);
    margin-bottom: 24px;
}

.epc-404-block .epc-search-form {
    margin: 0 auto 20px;
}

/* === ПОСЛЕДНИЕ ЗАПИСИ НА ГЛАВНОЙ === */
.epc-latest-section {
    padding: 50px 0 40px;
}

.epc-latest-section .epc-section-title {
    margin-bottom: 30px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 960px) {
    .epc-layout-with-sidebar {
        flex-direction: column;
    }

    .epc-content-main,
    .epc-sidebar-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .epc-content-wide {
        width: 95%;
    }

    .epc-footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .epc-hero-content h1 {
        font-size: 1.75rem;
    }

    .epc-posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .epc-layout-full .epc-content-main {
        flex: 0 0 95%;
        max-width: 95%;
    }
}

@media (max-width: 600px) {
    .epc-burger-toggle {
        display: block;
    }

    .epc-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--epc-card-bg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 100;
    }

    .epc-main-nav.open {
        display: block;
    }

    .epc-main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .epc-main-nav a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .epc-posts-grid {
        grid-template-columns: 1fr;
    }

    .epc-hero-section {
        padding: 40px 16px;
    }

    .epc-hero-content h1 {
        font-size: 1.5rem;
    }

    .epc-professions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .epc-single-article {
        padding: 20px;
    }

    .epc-site-title {
        font-size: 1rem;
    }

    .epc-content-wide {
        width: 100%;
    }

    .epc-layout-full .epc-content-main {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .epc-cookie-notice {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
}
