/*
Theme Name: COPP Theme
Template: hello-elementor
Author: Gemini CLI
Version: 1.0.1
*/

:root {
    --copp-green: #005b82;
    --copp-green-hover: #1b7fae;
    --copp-navy: #005b82;
    --copp-navy-hover: #1b7fae;
    --copp-btn-bg: #005b82;
    --copp-btn-hover: #1b7fae;
    --bg-light-grey: #F4F6F9;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden;
    background-color: var(--bg-light-grey) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Основной контент страницы --- */
main, #site-content, .site-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    flex: 1 0 auto;
}

@media (max-width: 768px) {
    main, #site-content, .site-main {
        padding: 0 15px;
        margin: 20px auto;
    }
}

/* --- Шапка (.site-header) --- */
body .site-header {
    background: #ffffff !important; background-image: none !important; border-bottom: 1px solid #e5e5e5;
    background-size: cover;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo menu contacts";
    align-items: center;
    gap: 24px;
    padding: 25px 40px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100px;
    box-sizing: border-box !important;
}

body .header-logo {
    grid-area: logo;
    flex: 0 0 auto;
}

body .header-right {
    grid-area: contacts;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    justify-self: end;
}

body .header-menu {
    grid-area: menu;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    justify-self: center;
    align-self: center;
}

/* --- Главное меню --- */
body .header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

body .header-menu ul li {
    position: relative;
}

body .header-menu ul li a {
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 600;
    position: relative;
    padding: 10px 0;
    display: block;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

body .header-menu ul > li > a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

body .header-menu ul li.menu-item-has-children > a {
    padding-right: 14px;
}

body .header-menu ul li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -2px;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #ffffff transparent transparent transparent;
    transition: transform 0.3s ease;
}

body .header-menu ul li.menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

body .header-menu ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background-color: var(--copp-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

body .header-menu ul > li:hover > a::after,
body .header-menu ul > li.current-menu-item > a::after,
body .header-menu ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* --- Выпадающие списки (.sub-menu) --- */
body .header-menu ul .sub-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 76, 108, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 91, 130, 0.14);
    border-radius: 14px;
    min-width: 280px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

body .header-menu ul li:hover > .sub-menu,
body .header-menu ul li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body .header-menu ul .sub-menu li {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
}

body .header-menu ul .sub-menu li a {
    color: #1a2c38 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    padding: 10px 24px 10px 36px !important; /* Отступ слева увеличен, названия сдвинуты к центру */
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
}

body .header-menu ul .sub-menu li a::after {
    display: none !important;
}

body .header-menu ul .sub-menu li a:hover {
    color: #005b82 !important;
    background-color: #edf5fa !important;
    padding-left: 38px !important;
}

/* --- Контакты и Кнопки --- */
body .header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

body .header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact, .news-filter-btn {
    background: #005b82 !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    border: 2px solid #005b82 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-contact--mobile {
    display: none !important;
}

.btn-contact:hover, .btn-contact:focus, .news-filter-btn:hover, .news-filter-btn:focus {
    background-color: #1b7fae !important;
    border-color: #1b7fae !important;
    color: #ffffff !important;
}

/* --- Банер под шапкой --- */
.site-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 1px;
    position: relative;
    display: flex;
    align-items: center;
}

.site-banner-large {
    height: 450px;
}

.site-banner-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.site-banner-title {
    color: #ffffff !important;
    font-size: 44px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.copp-banner-carousel {
    overflow: hidden;
}

.copp-banner-slides {
    position: absolute;
    inset: 0;
}

.copp-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.copp-banner-slide.is-active {
    opacity: 1;
}

.copp-banner-carousel .site-banner-inner {
    position: relative;
    z-index: 2;
}

.copp-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    z-index: 3;
}

.copp-banner-prev { left: 18px; }
.copp-banner-next { right: 18px; }

.copp-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.copp-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.copp-banner-dot.is-active {
    background: #ffffff;
}

/* Адаптивность банера */
@media (max-width: 768px) {
    .site-banner {
        height: auto;
        min-height: 250px;
        padding: 40px 0;
    }
    .site-banner-large {
        height: auto;
        min-height: 350px;
    }
    .site-banner-focused {
        background-position: 60% center !important;
    }
    .site-banner-centered {
        background-position: center center !important;
    }
    .site-banner-title {
        font-size: 36px !important;
        line-height: 1.2;
        padding: 0;
        max-width: 100%;
    }
    .site-banner-inner {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .banner-program-badges {
        gap: 6px;
        margin-bottom: 12px;
    }
    .banner-program-badges .program-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .copp-banner-arrow {
        width: 40px;
        height: 40px;
    }
    .copp-banner-prev { left: 8px; }
    .copp-banner-next { right: 8px; }
    .copp-banner-dots {
        bottom: 12px;
    }

    /* Фильтры в мобилке */
    .news-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .news-search-input, .news-date-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    .news-filter-btn {
        width: 100%;
    }
    .news-reset-btn {
        text-align: center;
        margin: 5px 0 0 0;
    }
}

@media (max-width: 480px) {
    .site-banner-title {
        font-size: 18px;
        text-transform: none;
        font-weight: 700;
        max-width: 100%;
        line-height: 1.4;
    }
    .site-banner-inner {
        padding: 0 15px;
    }
}

/* --- Форма поиска и фильтрации --- */
.news-filter-form {
    margin-top: 20px;
}

.copp-home-latest-news {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Actual homepage layout uses Gutenberg columns block. */
.home .wp-block-columns.copp-home-split-section {
    max-width: 1400px;
    margin: 40px auto 0 !important;
    padding: 0 40px;
    box-sizing: border-box;
}

.home .wp-block-columns.copp-home-split-section.alignwide {
    max-width: 1400px;
}

/* Align homepage content gutters with news page across Chromium browsers. */
.copp-home-latest-news .row,
.copp-home-split-section.row,
.copp-home-split-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.copp-home-split-section {
    align-items: stretch;
    --copp-home-split-height: 220px;
}

.copp-home-split-section .copp-latest-news-slider {
    margin: 0;
    width: 100% !important;
    max-width: none !important;
    min-height: var(--copp-home-split-height);
    align-self: stretch;
}

.copp-home-news-col {
    display: flex;
}

.copp-home-about-col {
    display: flex;
}

.copp-home-about-panel {
    width: 100%;
    border: 6px solid #ffffff;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    box-sizing: border-box;
    min-height: var(--copp-home-split-height);
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.copp-home-about-panel::before {
    content: "";
    display: block;
    width: calc(100% + 12px);
    height: 135px;
    margin: 0 -6px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(6, 32, 48, 0.25), rgba(0, 91, 130, 0.45)),
                url("./assets/images/about_center_murmansk.webp") center/cover no-repeat;
    flex: 0 0 auto;
}

.copp-home-about-panel .wp-block-group__inner-container,
.copp-home-about-panel .is-layout-constrained {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.copp-home-about-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.2;
    color: #0f4c6c;
    font-weight: 800;
}

.copp-home-about-text {
    margin: 0;
    font-size: 18.5px;
    line-height: 1.6;
    color: #334e68;
    overflow-wrap: normal;
    word-break: normal;
    display: block;
    overflow: visible;
}

.copp-home-about-panel .copp-home-about-title,
.copp-home-about-panel .copp-home-about-text {
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .copp-home-split-section {
        --copp-home-split-height: auto;
    }
    .copp-home-split-section > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .copp-home-about-col {
        margin-top: 14px;
    }
    .copp-home-about-panel {
        min-height: 0;
        height: auto;
        padding: 22px;
        align-items: flex-start;
    }
    .copp-home-about-panel::before {
        height: 130px;
    }
    .copp-home-about-title {
        font-size: clamp(22px, 4.8vw, 26px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .copp-home-about-text {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .copp-home-latest-news {
        padding: 0 15px;
    }
    .home .wp-block-columns.copp-home-split-section {
        padding: 0 15px;
        margin-top: 20px !important;
    }
    .copp-home-latest-news .row,
    .copp-home-split-section.row,
    .copp-home-split-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .copp-home-latest-news [class*="col-"],
    .copp-home-split-section > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .copp-home-about-col,
    .copp-home-split-section .copp-latest-news-slider,
    .copp-home-about-panel {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .copp-home-split-section {
        --copp-home-split-height: auto;
    }
    .copp-home-split-section .copp-latest-news-slider {
        width: 100% !important;
        height: auto !important;
        min-height: 0;
    }
    .copp-home-about-panel {
        padding: 20px;
        min-height: 0;
        height: auto;
    }
    .copp-home-about-title {
        font-size: 24px;
    }
    .copp-home-about-text {
        font-size: 16px;
        line-height: 1.55;
    }
}

.news-filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.news-search-input, .news-date-input {
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-search-input {
    flex: 1;
    min-width: 350px;
    max-width: 600px;
}

.news-date-input {
    width: 250px;
    cursor: pointer;
    background-color: #fff;
}

.news-reset-btn {
    color: #ffffff;
    text-decoration: underline;
    font-size: 16px;
    margin-left: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* --- Сетка мероприятий (Аутентичный стиль copp51.ru) --- */
.copp-events-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .copp-events-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .copp-events-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
}

.copp-event-card {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    height: 100%;
}

/* Authentic copp51.ru Event Block */
.event-block {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #003249;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none !important;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 50, 73, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 50, 73, 0.24);
}

.event-block__image,
.event-block__image:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.event-block__image {
    overflow: hidden;
}

.event-block__image:before {
    content: "";
    display: block;
    background: linear-gradient(0deg, rgba(0, 18, 38, 0.94) 0%, rgba(0, 24, 50, 0.6) 42%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.22) 100%);
    z-index: 1;
    pointer-events: none;
}

.image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.event-block:hover .image__img {
    transform: scale(1.04);
}

.event-block__container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 22px 24px 18px;
    z-index: 2;
    box-sizing: border-box;
}

.event-block__badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.event-block__badge.badge.black {
    padding: 7px 15px;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.3;
    font-family: inherit;
}

.event-block__content {
    width: 100%;
    margin-top: auto;
}

.event-block__title {
    font-weight: 600;
    font-size: 16.5px;
    line-height: 1.35;
    color: #ffffff !important;
    margin: 0 0 14px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    font-family: inherit;
    transition: color 0.2s ease;
}

.event-block:hover .event-block__title {
    color: #ffffff !important;
}

.event-block__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.event-block__date {
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-block__date svg {
    flex-shrink: 0;
    color: #ffffff;
}

.event-block__arrow-right {
    position: relative;
    right: 0;
    transition: transform 0.25s ease;
    color: #ffffff;
    margin-left: 10px;
    flex-shrink: 0;
}

.event-block:hover .event-block__arrow-right {
    transform: translateX(4px);
}

/* --- Список программ (Горизонтальный) --- */
.copp-programs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.copp-program-row {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    min-height: 320px; /* Минимальная высота сохранена */
    height: auto; /* Теперь карточка может расти */
}

@media (max-width: 850px) {
    .program-entire-link {
        flex-direction: column !important; /* Принудительно в колонку на мобилках */
    }
}

.program-entire-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    min-height: 320px;
    width: 100%;
}

/* Левая часть (Картинка) */
.program-image-side {
    position: relative;
    width: 400px;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 850px) {
    .program-image-side {
        width: 100% !important;
        height: 220px !important;
    }
}

.program-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.copp-program-row:hover .program-image-side img {
    transform: scale(1.1);
}

/* Бейджи на картинке */
.program-badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.program-badge {
    padding: 6px 16px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
}

.fmt-offline { background-color: #FF9800; }
.fmt-online  { background-color: #005b82; }
.fmt-mixed   { background-color: #F44336; }

.program-hours {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* Правая часть (Контент) */
.program-content-side {
    padding: 0; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-title, .program-excerpt {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 850px) {
    .program-title, .program-excerpt {
        padding-left: 20px;
        padding-right: 20px;
    }
    .program-title {
        padding-top: 20px !important;
        font-size: 20px !important;
    }
}

.program-title {
    padding-top: 30px;
    font-size: 24px;
    font-weight: 800;
    color: #333333;
    margin: 0 0 15px 0;
    display: block !important;
}

.program-excerpt {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    display: block !important;
    margin-bottom: 20px;
}

/* --- Стили для банера в программах --- */
.site-banner-program {
    max-width: 1200px;
    margin: 20px auto 40px auto !important;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.site-banner-program::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Сплошное затемнение всего баннера */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.site-banner-program .site-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Центрируем бейджи и текст по горизонтали */
    text-align: center;   /* Центрируем сам текст внутри элементов */
    height: 100%;
}

.banner-program-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.program-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin-top: auto;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Синяя заливка при наведении */
.copp-program-row:hover .program-footer {
    background-color: #0056b3;
}

.program-price {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.program-price span {
    font-weight: 800;
    color: var(--copp-green);
    font-size: 20px;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.copp-program-row:hover .program-price,
.copp-program-row:hover .program-price span {
    color: #ffffff;
}

.program-more-link {
    text-decoration: none;
    color: var(--copp-green);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copp-program-row:hover .program-more-link {
    color: #ffffff;
    gap: 15px;
}

/* --- Одиночная страница программы (Новый дизайн) --- */
.program-top-meta {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-end;
    margin-bottom: 25px;
}

.single-program-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: stretch;
}

.program-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
    box-sizing: border-box;
}

.program-top-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555555;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    background: none !important; /* Убираем фон */
    padding: 0 !important; /* Убираем внутренние отступы */
    border: none !important; /* Убираем любые рамки */
}

.program-top-hours svg {
    color: var(--copp-green);
}

.program-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.program-sidebar-box {
    background-color: #f4f6f9;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
}

.enrollment-status-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.enrollment-status-box .status-plate {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    line-height: 1.3;
}

.status-open .status-plate {
    background-color: #52c41a; /* Green */
}

.status-closed .status-plate {
    background-color: #f5222d; /* Red */
}

.enrollment-extra-info {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.sidebar-info-item {
    margin-bottom: 20px;
}

.sidebar-info-item:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-label svg {
    color: var(--copp-green);
}

.sidebar-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-divider {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

@media (max-width: 1100px) {
    .program-top-meta {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
    }

    .single-program-layout {
        grid-template-columns: 1fr;
    }
    .program-sidebar-column {
        position: static;
    }
    .program-sidebar-box {
        position: static;
    }
}

@media (max-width: 850px) {
    .copp-program-row {
        flex-direction: column;
        height: auto;
    }
    .program-image-side {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .single-program-main {
        padding-left: 8px;
        padding-right: 8px;
    }

    .program-main-content,
    .program-sidebar-box,
    .enrollment-status-box {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .program-main-content,
    .program-sidebar-box {
        padding: 24px;
    }

    .program-top-left-meta {
        min-width: 0;
    }
}

/* --- Сетка новостей --- */
.copp-news-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .copp-news-wrapper {
        padding: 0;
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

.copp-news-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 8px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.copp-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.copp-news-card:hover .copp-news-image-wrap img {
    transform: scale(1.05);
}

.copp-news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.copp-news-image-wrap {
    position: relative;
    height: 220px;
    width: 100%;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #7f8da6 0%, #95a1b6 38%, #c2c9d6 68%, #edf1f6 100%);
}

.copp-news-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(127, 141, 166, 0.45) 0%, rgba(237, 241, 246, 0.12) 78%, rgba(237, 241, 246, 0.28) 100%);
    pointer-events: none;
    z-index: 1;
}

.copp-news-image-wrap img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.copp-news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(170, 181, 198, 0.92);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 15px;
    color: #f4f7fb;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(92, 104, 124, 0.18);
    z-index: 2;
}

.copp-news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.copp-news-title {
    color: #333333;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.copp-news-excerpt {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Стили для одиночной записи --- */
.copp-latest-news-slider {
    position: relative;
    overflow: hidden;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: auto;
}

.copp-latest-news-track {
    display: flex;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    transition: transform 0.35s ease;
}

.copp-latest-news-slide {
    min-width: 100%;
    height: auto;
}

.copp-latest-news-link {
    display: flex;
    flex-direction: column;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.copp-latest-news-image-wrap {
    width: 100%;
    height: 480px;
    min-height: 480px;
    position: relative;
    display: block;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: #c9cfda;
}

.copp-latest-news-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(127, 141, 166, 0.45) 0%, rgba(237, 241, 246, 0.12) 78%, rgba(237, 241, 246, 0.28) 100%);
    pointer-events: none;
    z-index: 1;
}

.copp-latest-news-image-wrap img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.copp-latest-news-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(129, 146, 171, 0.96);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 22px rgba(55, 68, 89, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.copp-latest-news-date::before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.copp-latest-news-content {
    width: 100%;
    padding: 16px 24px 18px;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    flex: 0 0 auto;
}

.copp-latest-news-main-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    min-width: 0;
}

.copp-latest-news-title {
    margin: 0 0 12px;
    font-size: 28px;
    color: #2b2b2b;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.copp-latest-news-excerpt {
    margin: 0;
    color: #5f5f5f;
    line-height: 1.62;
    font-size: 18px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.copp-latest-news-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #005b82;
    background: #005b82;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.copp-latest-news-more-btn:hover,
.copp-latest-news-more-btn:focus {
    background: #1b7fae;
    border-color: #1b7fae;
    color: #ffffff;
}

.copp-latest-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 18px;
    margin-top: 8px;
}

.copp-latest-news-read-more {
    color: #005b82;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.copp-latest-news-read-more:hover {
    color: #1b7fae;
    text-decoration: underline;
}

.copp-slider-arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
}

.copp-slider-prev { left: 12px; }
.copp-slider-next { right: 12px; }

@media (max-width: 768px) {
    .copp-latest-news-link {
        flex-direction: column;
    }
    .copp-latest-news-image-wrap,
    .copp-latest-news-content {
        width: 100%;
    }
    .copp-latest-news-image-wrap {
        height: 220px;
        min-height: 220px;
    }
    .copp-latest-news-title {
        font-size: 24px;
    }
    .copp-latest-news-excerpt {
        font-size: 16px;
        line-height: 1.45;
    }
    .copp-latest-news-date {
        font-size: 15px;
        padding: 7px 14px;
        top: 10px;
        left: 10px;
    }
    .copp-latest-news-more-btn {
        width: min(100%, 360px);
        font-size: 13px;
    }
    .copp-latest-news-footer {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding: 0 20px 16px;
    }
    .copp-slider-arrow { top: 110px; }
}

.single-article {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin: 0 auto;
}

.single-actions {
    margin-bottom: 25px;
}

.single-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    background-color: #005b82;
    border-radius: 6px;
    border: 2px solid #005b82;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.single-back-btn:hover,
.single-back-btn:focus {
    background-color: #1b7fae;
    border-color: #1b7fae;
    color: #ffffff;
}

.single-entry-title {
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.single-entry-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.single-entry-meta span {
    font-weight: 600;
    color: var(--copp-green);
}

.single-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444444;
}

.single-entry-content p {
    margin-bottom: 20px;
}

/* --- Одиночная страница программы --- */
.program-header-info {
    margin-bottom: 30px;
}

.program-meta-chips {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.program-chip {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.program-chip.fmt-offline { background-color: #FF9800; }
.program-chip.fmt-online  { background-color: #005b82; }
.program-chip.fmt-mixed   { background-color: #F44336; }

.program-chip.chip-hours {
    background-color: #f4f6f9;
    color: #555555;
}

.program-chip.chip-price {
    background-color: var(--copp-green);
    color: #ffffff;
}

.single-program-thumb {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.single-program-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Пагинация --- */
.copp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.copp-pagination a, .copp-pagination span {
    padding: 10px 18px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.copp-pagination .current {
    background-color: var(--copp-green);
    color: #ffffff;
}

/* --- Подвал (.site-footer) --- */
.site-footer {
    background: url('./assets/images/footer_54e55350b7.png') no-repeat center center;
    background-size: cover;
    width: 100% !important;
    max-width: none !important;
    margin: auto 0 0 0 !important;
    min-height: 300px;
    box-sizing: border-box !important;
    color: #fff;
    display: flex;
    justify-content: center;
}

/* --- Мобильное меню --- */
body .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (min-width: 861px) {
    body .header-right {
        grid-area: contacts;
        width: auto;
        justify-self: end;
        gap: 10px;
        min-width: 156px;
    }
    body .header-menu {
        width: 100%;
        max-width: none;
        grid-area: menu;
        justify-self: center;
    }
    body .header-menu ul {
        gap: clamp(8px, 0.9vw, 18px);
        flex-wrap: nowrap;
        justify-content: center;
    }
    body .header-menu ul li a {
        font-size: clamp(12px, 0.92vw, 15.5px);
        white-space: nowrap;
    }
    body .header-contacts {
        align-items: flex-end;
        gap: 8px;
    }
    body .header-phone {
        font-size: clamp(12px, 0.9vw, 15px);
        gap: 6px;
    }
    body .btn-contact {
        padding: clamp(8px, 0.8vw, 12px) clamp(12px, 1vw, 18px) !important;
        font-size: clamp(11px, 0.82vw, 13px) !important;
    }
}

@media (max-width: 1200px) {
    body .site-header {
        gap: 14px;
        padding: 18px 20px !important;
        align-items: center;
    }
    body .header-right {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        min-width: 168px;
    }
    body .header-menu {
        width: 100%;
        order: initial;
    }
    body .header-contacts {
        order: initial;
        align-self: center;
        justify-self: end;
        align-items: flex-end;
    }
    body .header-menu ul {
        gap: 10px;
        flex-wrap: nowrap;
    }
    body .header-menu ul li a {
        font-size: 13px;
        white-space: nowrap;
    }
    body .header-phone {
        font-size: 13px;
        gap: 6px;
    }
    body .btn-contact {
        padding: 9px 14px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 860px) {
    body .site-header { 
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
        position: relative !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    body .header-logo { 
        flex: 0 1 auto !important;
        max-width: 160px !important;
        margin: 0 !important;
        text-align: left !important;
    }
    body .header-logo img {
        max-height: 42px !important;
        width: auto !important;
        max-width: 100% !important;
        display: block !important;
    }
    body .header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-left: auto !important;
        width: auto !important;
    }
    body .header-contacts { 
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        order: 1 !important;
    }
    /* Номер телефона полностью скрываем из верхней полосы на смартфонах */
    body .header-phone,
    body .header-contacts .header-phone {
        display: none !important;
    }
    /* Компактная кнопка "Связаться" */
    body .btn-contact {
        padding: 7px 12px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        background: #005b82 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(0, 91, 130, 0.2) !important;
    }
    /* Кнопка бургера ☰ */
    body .mobile-menu-toggle { 
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        order: 2 !important;
        background: #005b82 !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 91, 130, 0.2) !important;
    }
    body .mobile-menu-toggle svg {
        width: 22px !important;
        height: 22px !important;
        stroke: #ffffff !important;
    }
    body .mobile-menu-toggle span {
        display: none !important;
    }

    /* Мобильное выпадающее меню */
    body .header-menu { 
        display: none !important;
    }
    body .header-menu.is-active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 62px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 62px) !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 20px 40px !important;
        box-sizing: border-box !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12) !important;
    }
    body .header-menu.is-active ul,
    body .header-menu.is-active .main-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 0 !important;
    }
    body .header-menu.is-active ul li,
    body .header-menu.is-active .main-nav > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #eef2f6 !important;
        position: static !important;
    }
    body .header-menu.is-active ul li a,
    body .header-menu.is-active .main-nav > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 4px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #0f4c6c !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
    body .header-menu.is-active ul li.menu-item-has-children > a::before {
        display: none !important;
    }
    body .header-menu.is-active ul li.menu-item-has-children > a::after {
        content: '▼' !important;
        font-size: 11px !important;
        color: #005b82 !important;
        display: inline-block !important;
        margin-left: auto !important;
        transition: transform 0.2s ease !important;
        opacity: 0.7 !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
        position: static !important;
    }
    body .header-menu.is-active ul li.menu-item-has-children.is-open > a::after {
        transform: rotate(180deg) !important;
        opacity: 1 !important;
    }
    
    /* Аккордеон подменю */
    body .header-menu.is-active ul .sub-menu { 
        position: static !important;
        display: none !important; 
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid #e2ecf3 !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        margin: 0 0 10px 0 !important;
        background: #f4f8fb !important;
        box-sizing: border-box !important;
    }
    body .header-menu.is-active ul li:hover > .sub-menu { 
        display: none !important; 
    }
    body .header-menu.is-active ul li.is-open > .sub-menu {
        display: flex !important;
        flex-direction: column !important;
    }
    body .header-menu.is-active ul .sub-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 91, 130, 0.08) !important;
        margin: 0 !important;
    }
    body .header-menu.is-active ul .sub-menu li:last-child {
        border-bottom: none !important;
    }
    body .header-menu.is-active ul .sub-menu li a {
        display: block !important;
        padding: 9px 4px !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #005b82 !important;
        text-transform: none !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    /* Контакты внутри мобильного меню */
    body .header-menu.is-active .header-menu-mobile-contacts {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 18px !important;
        padding-top: 16px !important;
        border-top: 2px solid #eef2f6 !important;
    }
    body .header-menu.is-active .header-menu-mobile-phone {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #005b82 !important;
        text-decoration: none !important;
        padding: 12px 14px !important;
        background: #f4f8fb !important;
        border-radius: 8px !important;
    }
    body .header-menu.is-active .header-menu-mobile-phone svg {
        stroke: #005b82 !important;
    }

    .copp-news-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body .header-logo {
        max-width: 140px !important;
    }
    body .header-logo img {
        max-height: 38px !important;
    }
    body .btn-contact {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    body .mobile-menu-toggle {
        width: 34px !important;
        height: 34px !important;
    }
    body .mobile-menu-toggle svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* --- �������� ��� ���������, ������ � ������ PDF --- */
.bvb-logos-container img { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease; }
.bvb-logos-container img:hover { transform: scale(1.08); filter: brightness(1.05); cursor: pointer; }
.bvb-pdf-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bvb-pdf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important; }
.bvb-platform-btn { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease, box-shadow 0.3s ease !important; }
.bvb-platform-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; filter: brightness(1.05); }
.bvb-pdf-btn { transition: all 0.3s ease !important; }
.bvb-pdf-card:hover .bvb-pdf-btn { background-color: #0693e3 !important; color: #fff !important; }

/* ������ ������ �� �������� ������ - ��� ��������� */
.page-id-1387 .site-banner { display: none !important; }


/* ������������ ������� �� 1400px */
.copp-front-activity-banner-inner { max-width: 1400px !important; padding: 0 40px !important; }


/* ������� ������������ ���� ���� ����������� �� �������� ����� � ������� */
#site-content > div[style*="width: 100%"] > div { max-width: 1400px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box !important; }
#site-content > div[style*="width: 100%"] > div[style*="height:40px"] { max-width: none !important; margin: 0 !important; }







/* --- ABOUT PAGE STYLES (MURMANSK REGION) --- */
.copp-about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.copp-about-hero-block {
  background: linear-gradient(135deg, #f4f9fd 0%, #ffffff 50%, #edf5fa 100%);
  border: 1px solid #d4e5f0;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(15, 76, 108, 0.06);
}

.copp-about-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #e1eff7;
  color: #12587e;
  border: 1px solid #c2def0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.copp-about-hero-block h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  color: #0f4c6c;
  margin: 0 0 16px;
  font-weight: 800;
}

.copp-about-hero-block p {
  font-size: 16px;
  line-height: 1.65;
  color: #435b6c;
  margin: 0 0 24px;
}

.copp-about-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 76, 108, 0.12);
  display: block;
}

/* Metrics 4-col Grid */
.copp-about-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.copp-about-metric-card {
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-top: 4px solid #1b7fae;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 76, 108, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copp-about-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 108, 0.08);
}

.copp-about-metric-val {
  font-size: 40px;
  font-weight: 800;
  color: #0f4c6c;
  line-height: 1;
  margin-bottom: 10px;
}

.copp-about-metric-lbl {
  font-size: 14px;
  color: #556c7d;
  line-height: 1.4;
  font-weight: 500;
}

/* About Intro Panel */
.copp-about-panel {
  background: #ffffff;
  border: 1px solid #dbe7ef;
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(15, 76, 108, 0.04);
}

.copp-about-panel h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f4c6c;
  margin: 0 0 16px;
}

.copp-about-panel p {
  font-size: 15px;
  line-height: 1.7;
  color: #3b5262;
  margin-bottom: 16px;
}

.copp-about-panel ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.copp-about-panel li {
  font-size: 15px;
  line-height: 1.6;
  color: #3b5262;
  margin-bottom: 8px;
}

/* Feature Grid */
.copp-about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}

.copp-about-feature-card {
  background: #f7fbfe;
  border: 1px solid #d4e7f3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 76, 108, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.copp-about-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 108, 0.08);
  border-color: #aed5ec;
}

.copp-about-feature-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.copp-about-feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f4c6c;
  margin: 0 0 10px;
}

.copp-about-feature-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: #556c7d;
  margin: 0;
}

/* CTA Banner */
.copp-about-cta {
  background: linear-gradient(135deg, #0f4c6c 0%, #1b7fae 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px;
  margin: 36px 0 32px;
  box-shadow: 0 12px 32px rgba(15, 76, 108, 0.16);
}

.copp-about-cta h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}

.copp-about-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: #e1f0f8;
  margin: 0 0 24px;
}

.copp-about-cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.copp-about-cta-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copp-about-cta .wp-block-button__link {
  background: #ffffff !important;
  color: #0f4c6c !important;
  font-weight: 700;
}

.copp-about-cta .wp-block-button__link:hover {
  background: #edf5fa !important;
  color: #12587e !important;
}

@media (max-width: 768px) {
  .copp-about-hero-block {
    padding: 24px 20px;
  }
  .copp-about-panel {
    padding: 24px 20px;
  }
  .copp-about-cta {
    padding: 24px 20px;
  }
  .copp-about-metrics {
    grid-template-columns: 1fr 1fr;
  }
}


/* === CZN Hotlines & Employment Styles === */
.copp-cz-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #edf6fb;
  color: #12587e;
  border: 1px solid #c8e2f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.copp-table-czn table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e5ee;
  box-shadow: 0 4px 14px rgba(15, 76, 108, 0.05);
}

.copp-table-czn th {
  background: #14628c !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 16px !important;
  text-align: left;
}

.copp-table-czn td {
  padding: 14px 16px !important;
  vertical-align: middle;
  font-size: 14px;
  border-top: 1px solid #e7f0f6;
  color: #2c3e50;
}

.copp-table-czn tr:hover td {
  background-color: #f6fbfe;
}

.copp-table-czn a {
  color: #1b7fae;
  text-decoration: none;
  font-weight: 500;
}

.copp-table-czn a:hover {
  text-decoration: underline;
  color: #0d4a6b;
}

/* === Useful Materials & Graduate Cards === */
.copp-useful-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}

@media (max-width: 992px) {
  .copp-useful-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .copp-useful-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.copp-useful-card {
  display: flex;
  flex-direction: column;
  background: #f7fbfe;
  border: 1px solid #d4e7f3;
  border-top: 4px solid #1b7fae;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 76, 108, 0.04);
}

.copp-useful-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 108, 0.09);
  border-color: #aed5ec;
}

.copp-useful-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f4c6c;
  margin: 0 0 12px;
  line-height: 1.35;
}

.copp-useful-card__desc {
  font-size: 14px;
  color: #556c7d;
  line-height: 1.5;
  margin: 0 0 18px;
  flex-grow: 1;
}

.copp-useful-card__btn,
a.copp-useful-card__btn,
.copp-panel-substrate .copp-useful-card a.copp-useful-card__btn,
.site-main .copp-useful-card a.copp-useful-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  background: #005b82 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 91, 130, 0.2) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15px !important;
  text-decoration: none !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  box-shadow: 0 4px 12px rgba(0, 91, 130, 0.18) !important;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
  cursor: pointer !important;
}

.copp-useful-card__btn:hover,
.copp-useful-card__btn:focus-visible,
a.copp-useful-card__btn:hover,
a.copp-useful-card__btn:focus-visible,
.copp-panel-substrate .copp-useful-card a.copp-useful-card__btn:hover,
.copp-panel-substrate .copp-useful-card a.copp-useful-card__btn:focus-visible,
.site-main .copp-useful-card a.copp-useful-card__btn:hover,
.site-main .copp-useful-card a.copp-useful-card__btn:focus-visible {
  background: #1b7fae !important;
  color: #ffffff !important;
  border-color: #1b7fae !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 91, 130, 0.28) !important;
  text-decoration: none !important;
}

.copp-useful-card__btn:active,
a.copp-useful-card__btn:active,
.copp-panel-substrate .copp-useful-card a.copp-useful-card__btn:active,
.site-main .copp-useful-card a.copp-useful-card__btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 91, 130, 0.2) !important;
}

/* === Analytics Dashboard === */
.copp-analytics-dashboard {
  margin: 28px 0 36px;
}

.copp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.copp-kpi-card {
  background: #ffffff;
  border: 1px solid #d8e5ee;
  border-top: 4px solid #1b7fae;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(15, 76, 108, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copp-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 108, 0.09);
}

.copp-kpi-card__label {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.copp-kpi-card__value {
  font-size: 32px;
  font-weight: 800;
  color: #0f4c6c;
  line-height: 1.2;
  margin-bottom: 8px;
}

.copp-kpi-card__sub {
  font-size: 13px;
  color: #556c7d;
  line-height: 1.4;
}

.copp-charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.copp-chart-card {
  background: #ffffff;
  border: 1px solid #d8e5ee;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 76, 108, 0.05);
  display: flex;
  flex-direction: column;
}

.copp-chart-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f4c6c;
  margin: 0 0 20px;
}

.copp-chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

@media (max-width: 768px) {
  .copp-charts-row {
    grid-template-columns: 1fr;
  }
  .copp-chart-container {
    height: 280px;
  }
}

/* Explicit title reset for OPK and TV cards */
body .opk-card .opk-card__title a,
body .opk-card h3 a,
body .tv-card h3 a {
    background: transparent !important;
    color: #0f4c6c !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: normal !important;
    display: inline !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
body .opk-card .opk-card__title a:hover,
body .opk-card h3 a:hover,
body .tv-card h3 a:hover {
    color: #0077aa !important;
    text-decoration: underline !important;
    background: transparent !important;
}

/* Hide empty icon boxes in collaboration section */
.copp-about-feature-card__icon {
    display: none !important;
}


/* Белый цвет текста для всех заголовков и текстов на баннерах */
body .site-banner,
body .site-banner-title,
body .site-banner h1,
body .site-banner-inner h1,
body .copp-target-banner,
body .copp-target-banner h2,
.entry-content .copp-target-banner h2,
.site-main .copp-target-banner h2,
body .copp-front-activity-banner-title,
body .copp-front-activity-banner h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}

body .copp-target-banner p,
.entry-content .copp-target-banner p,
.site-main .copp-target-banner p,
body .copp-front-activity-banner-text,
body .copp-front-activity-banner p,
body .copp-target-priority__note,
body .copp-target-priority__note strong,
body .copp-target-priority__note span {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Стиль для полосы проектов (синий контрастный фон под белые иконки) */
.copp-front-project-icon {
    background-color: #005b82 !important;
    border: 2.5px solid #38a2d5 !important;
    box-shadow: 0 4px 14px rgba(0, 91, 130, 0.25) !important;
}

.copp-front-project-item:hover .copp-front-project-icon {
    background-color: #0077aa !important;
    border-color: #5bc0eb !important;
    box-shadow: 0 8px 22px rgba(0, 91, 130, 0.35) !important;
}

/* Окаймление кружков в секции "Проекты, курируемые ЦОПП" */
.copp-front-project-card-media img,
.copp-front-project-card-media-empty {
    border: 2.5px solid #005b82 !important;
    box-shadow: 0 4px 14px rgba(0, 91, 130, 0.18) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.copp-front-project-card:hover .copp-front-project-card-media img,
.copp-front-project-card:hover .copp-front-project-card-media-empty {
    border-color: #1b7fae !important;
    box-shadow: 0 6px 18px rgba(0, 91, 130, 0.28) !important;
    transform: scale(1.04) !important;
}

/* Акцентная линия блока "Полезные ресурсы" */
.copp-useful-resources__title-line {
    background: linear-gradient(90deg, #005b82 0%, #1b7fae 100%) !important;
}

@media (max-width: 560px) {
    body .copp-target-banner {
        padding: 24px 18px !important;
        border-radius: 20px !important;
    }
    body .copp-target-banner a {
        display: flex !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* --- Защита от горизонтального скролла и переполнения на мобильных экранах --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.site-header, .site-main, .site-footer {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Мобильный телефон в выпадающем бургер-меню */
.header-menu-mobile-contacts {
    display: none;
    padding: 16px 0 8px;
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-menu-mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    padding: 8px 0;
}

.header-menu-mobile-phone svg {
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .header-menu-mobile-contacts {
        display: block !important;
    }
}

/* ==========================================================================
   Кнопки темы COPP (включая Gutenberg core/buttons)
   ========================================================================== */
.wp-block-button.copp-btn .wp-block-button__link,
.wp-block-button.copp-btn a.wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    border-radius: 999px !important;
    border: 2px solid #005b82 !important;
    background: #005b82 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 4px 14px rgba(0, 91, 130, 0.16) !important;
    cursor: pointer !important;
}

.wp-block-button.copp-btn .wp-block-button__link:hover,
.wp-block-button.copp-btn a.wp-block-button__link:hover {
    background: #1b7fae !important;
    border-color: #1b7fae !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 91, 130, 0.26) !important;
    transform: translateY(-2px) !important;
}

.wp-block-button.copp-btn--outline .wp-block-button__link,
.wp-block-button.copp-btn--outline a.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline a.wp-block-button__link {
    background: #ffffff !important;
    border: 2px solid #005b82 !important;
    color: #005b82 !important;
    box-shadow: 0 2px 8px rgba(0, 91, 130, 0.08) !important;
}

.wp-block-button.copp-btn--outline .wp-block-button__link:hover,
.wp-block-button.copp-btn--outline a.wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline a.wp-block-button__link:hover {
    background: #005b82 !important;
    border-color: #005b82 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 91, 130, 0.22) !important;
    transform: translateY(-2px) !important;
}

.copp-surface-block__nested .wp-block-image {
    margin: 22px 0 !important;
    text-align: center !important;
}

.copp-surface-block__nested .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 91, 130, 0.14) !important;
    box-shadow: 0 6px 20px rgba(15, 76, 108, 0.06) !important;
    display: inline-block !important;
}

.copp-surface-block__nested .mobile-icon-item img {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   Сетка официальных иролей ДЭ (.mobile-icons-grid)
   ========================================================================== */
.mobile-icons-grid {
    display: block !important;
    width: 100% !important;
    margin: 28px 0 10px !important;
    padding: 0 !important;
}

.mobile-icons-grid > .wp-block-group__inner-container,
.mobile-icons-grid:not(:has(> .wp-block-group__inner-container)) {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: end !important;
    justify-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-icon-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-icon-item a {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    text-align: center !important;
}

.mobile-icon-item img {
    width: 100% !important;
    max-width: 135px !important;
    height: auto !important;
    aspect-ratio: 936 / 1086 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 6px 14px rgba(0, 91, 130, 0.12)) !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), filter 0.22s ease !important;
}

.mobile-icon-item:hover {
    transform: translateY(-6px) !important;
}

.mobile-icon-item:hover img {
    filter: drop-shadow(0 10px 22px rgba(0, 91, 130, 0.22)) !important;
}

@media (max-width: 1100px) {
    .mobile-icons-grid > .wp-block-group__inner-container,
    .mobile-icons-grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px 20px !important;
    }
    .mobile-icon-item img {
        max-width: 140px !important;
    }
}

@media (max-width: 580px) {
    .mobile-icons-grid > .wp-block-group__inner-container,
    .mobile-icons-grid:not(:has(> .wp-block-group__inner-container)) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
    }
    .mobile-icon-item img {
        max-width: 120px !important;
    }
}

/* ==========================================================================
   Инфографика Марафона ДЭ (.de-marathon-slides и постер)
   ========================================================================== */
.de-marathon-slides,
.de-marathon-slides > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 22px 0 !important;
    width: 100% !important;
}

.de-marathon-slides .wp-block-image {
    margin: 0 !important;
}

.de-marathon-poster {
    max-width: 740px !important;
    margin: 22px auto !important;
    text-align: center !important;
}

.de-marathon-poster img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 91, 130, 0.14) !important;
    box-shadow: 0 8px 24px rgba(15, 76, 108, 0.08) !important;
}

@media (max-width: 820px) {
    .de-marathon-slides,
    .de-marathon-slides > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
