/**
 * CTA-блок услуги после содержания статьи.
 */

.blog-service-cta {
    margin: clamp(20px, 2.4vw, 32px) 0;
}

.blog-service-cta__inner {
    position: relative;
    display: block;
    padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
    border-radius: var(--md-radius-sm, 18px);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(81, 161, 217, 0.26) 0%, rgba(81, 161, 217, 0) 58%),
        linear-gradient(135deg, #2A3558 0%, #1B2440 100%);
    border: 1px solid rgba(108, 197, 251, 0.28);
    box-shadow: 0 22px 56px rgba(10, 14, 30, 0.4);
    text-decoration: none;
    color: var(--md-color-text-primary, #fff);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.blog-service-cta__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 120% at 100% 50%, rgba(108, 197, 251, 0.12) 0%, rgba(108, 197, 251, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.blog-service-cta__inner:hover,
.blog-service-cta__inner:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(108, 197, 251, 0.6);
    box-shadow: 0 28px 68px rgba(10, 14, 30, 0.5);
    outline: none;
}

.blog-service-cta__inner:hover::after,
.blog-service-cta__inner:focus-visible::after {
    opacity: 1;
}

.blog-service-cta__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.blog-service-cta__title {
    margin: 0;
    color: var(--md-color-text-primary, #fff);
    font-size: clamp(18px, 1.6rem, 23px);
    line-height: 1.22;
    font-weight: var(--md-font-weight-semibold, 600);
    text-wrap: balance;
}

.blog-service-cta__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
    font-weight: var(--md-font-weight-light, 300);
    text-wrap: pretty;
}

.blog-service-cta__highlights {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.blog-service-cta__highlight {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.35;
    font-weight: var(--md-font-weight-medium, 500);
}

.blog-service-cta__highlight .service-when__mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 6px;
    transform: translateY(-1px);
}

.blog-service-cta__highlight .service-when__mark::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 6px;
    border-radius: 6px;
    background: rgba(108, 197, 251, 0.62);
    transform: translateY(-50%);
}

.blog-service-cta__button {
    align-self: flex-start;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6CC5FB 0%, #51A1D9 100%);
    color: #0F1830;
    font-size: 14px;
    font-weight: var(--md-font-weight-semibold, 600);
    line-height: 1;
    white-space: nowrap;
    transition: gap 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 26px rgba(81, 161, 217, 0.32);
}

.blog-service-cta__inner:hover .blog-service-cta__button,
.blog-service-cta__inner:focus-visible .blog-service-cta__button {
    gap: 15px;
    box-shadow: 0 16px 34px rgba(81, 161, 217, 0.46);
}

.blog-service-cta__button-arrow {
    width: 18px;
    height: 9px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 575.98px) {
    .blog-service-cta__button {
        width: 100%;
        justify-content: center;
    }
}
