.copp-surface-block {
    margin: 28px 0;
}

.copp-surface-block__inner {
    position: relative;
    padding: clamp(24px, 3vw, 38px);
    border-radius: 28px;
    border: 1px solid #afc5ba;
    background: linear-gradient(180deg, #fbfdfc 0%, #f4f9f6 100%);
    box-shadow: 0 14px 32px rgba(18, 43, 25, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.copp-surface-block__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(214, 226, 223, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(36, 70, 77, 0.04), transparent 28%);
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.copp-surface-block:hover .copp-surface-block__inner,
.copp-surface-block:focus-within .copp-surface-block__inner {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 91, 130, 0.08);
    border-color: #b8d5e8;
}

.copp-surface-block:hover .copp-surface-block__inner::before,
.copp-surface-block:focus-within .copp-surface-block__inner::before {
    opacity: 0.82;
}

.copp-surface-block__title,
.copp-surface-block__text,
.copp-surface-block__nested {
    position: relative;
    z-index: 1;
}

.copp-surface-block__title {
    margin: 0;
    color: #24464d;
    font-size: clamp(30px, 2.7vw, 42px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.copp-surface-block__line {
    position: relative;
    z-index: 1;
    display: block;
    width: 82px;
    height: 3px;
    margin: 18px 0 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #005b82 0%, #1b7fae 100%);
}

.copp-surface-block__text {
    color: #486268;
    font-size: 17px;
    line-height: 1.72;
}

.copp-surface-block__text p {
    margin: 0 0 14px;
}

.copp-surface-block__text p:last-child {
    margin-bottom: 0;
}

.copp-surface-block__nested {
    margin-top: 18px;
}

.copp-surface-block__nested > *:first-child {
    margin-top: 0;
}

.copp-surface-block__nested .wp-block-table,
.copp-surface-block__nested .wp-block-file,
.copp-surface-block__nested .wp-block-image,
.copp-surface-block__nested .wp-block-buttons,
.copp-surface-block__nested .wp-block-group,
.copp-surface-block__nested .wp-block-heading,
.copp-surface-block__nested .wp-block-quote,
.copp-surface-block__nested .wp-block-list,
.copp-surface-block__nested p {
    margin-top: 0;
    margin-bottom: 16px;
}

.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;
}

.copp-surface-block__nested > *:last-child {
    margin-bottom: 0;
}

.copp-surface-block__nested .wp-block-table table {
    margin: 0;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    overflow: hidden;
}

.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: 8px !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,
.wp-block-button.copp-btn .wp-block-button__link:focus,
.wp-block-button.copp-btn a.wp-block-button__link:focus {
    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--green .wp-block-button__link {
    background: #005b82 !important;
    border-color: #005b82 !important;
    color: #ffffff !important;
}

.wp-block-button.copp-btn--green .wp-block-button__link:hover,
.wp-block-button.copp-btn--green .wp-block-button__link:focus {
    background: #1b7fae !important;
    border-color: #1b7fae !important;
    color: #ffffff !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.copp-btn--outline .wp-block-button__link:focus,
.wp-block-button.copp-btn--outline a.wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline a.wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline a.wp-block-button__link:focus {
    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;
}

.wp-block-button.copp-btn--lg .wp-block-button__link {
    padding: 14px 30px;
    font-size: 15px;
}

.wp-block-button.copp-btn--center {
    text-align: center;
}

.wp-block-button.copp-btn--center .wp-block-button__link {
    margin-left: auto;
    margin-right: auto;
}

.copp-surface-block__nested .wp-block-file {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(159, 184, 174, 0.65);
}

.copp-surface-block__nested .wp-block-file a {
    color: #245760;
}

.copp-surface-block--light .copp-surface-block__inner {
    background: #ffffff;
    border-color: #d9e5dd;
}

.copp-surface-block--accent .copp-surface-block__inner {
    background: linear-gradient(160deg, #f6fbf7 0%, #e9f5ee 100%);
    border-color: #9fc2ae;
}

.copp-surface-block--accent .copp-surface-block__title {
    color: #1f4f56;
}

.copp-surface-block--contrast .copp-surface-block__inner {
    background: linear-gradient(145deg, #15323d 0%, #24464d 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(11, 24, 28, 0.22);
}

.copp-surface-block--contrast:hover .copp-surface-block__inner,
.copp-surface-block--contrast:focus-within .copp-surface-block__inner {
    box-shadow: 0 22px 42px rgba(11, 24, 28, 0.3);
    border-color: rgba(255, 255, 255, 0.14);
}

.copp-surface-block--contrast .copp-surface-block__title,
.copp-surface-block--contrast .copp-surface-block__text,
.copp-surface-block--contrast .copp-surface-block__nested {
    color: #f4faf7;
}

.copp-surface-block--contrast .copp-surface-block__line {
    background: linear-gradient(90deg, #1b7fae 0%, #7c98b6 100%);
}

.copp-surface-block--contrast .copp-surface-block__nested .wp-block-table table,
.copp-surface-block--contrast .copp-surface-block__nested .wp-block-file {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.copp-surface-block--contrast .copp-surface-block__nested .wp-block-file a,
.copp-surface-block--contrast .copp-surface-block__nested .wp-block-table td,
.copp-surface-block--contrast .copp-surface-block__nested .wp-block-table th {
    color: #f4faf7;
}

/* ==========================================================================
   Сетка официальных иролей ДЭ (.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;
    }
}

.copp-surface-block--title-large .copp-surface-block__title {
    font-size: clamp(34px, 3.2vw, 50px);
}

.copp-surface-block--title-compact .copp-surface-block__title {
    font-size: clamp(24px, 2vw, 32px);
}

.copp-surface-block--align-center .copp-surface-block__inner {
    text-align: center;
}

.copp-surface-block--align-center .copp-surface-block__line {
    margin-left: auto;
    margin-right: auto;
}

.copp-surface-block--align-right .copp-surface-block__inner {
    text-align: right;
}

.copp-surface-block--align-right .copp-surface-block__line {
    margin-left: auto;
}

.copp-surface-block--no-line .copp-surface-block__line {
    display: none;
}

.editor-styles-wrapper .copp-surface-block,
.block-editor-block-list__block .copp-surface-block {
    margin: 0;
}

.editor-styles-wrapper .copp-surface-block__inner,
.block-editor-block-list__block .copp-surface-block__inner {
    min-height: 180px;
}

.editor-styles-wrapper .copp-surface-block__nested,
.block-editor-block-list__block .copp-surface-block__nested {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(159, 184, 174, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .copp-surface-block__inner,
    .copp-surface-block__inner::before {
        transition: none;
    }

    .copp-surface-block:hover .copp-surface-block__inner,
    .copp-surface-block:focus-within .copp-surface-block__inner {
        transform: none;
    }
}

@media (max-width: 767px) {
    .copp-surface-block {
        margin: 20px 0;
    }

    .copp-surface-block__inner {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .copp-surface-block__title {
        font-size: clamp(26px, 8vw, 34px);
    }

    .copp-surface-block__text {
        font-size: 16px;
        line-height: 1.65;
    }
}
