
.cpv5-section,
.cpv5-preview-shell {
    --cpv5-container-max-width: 1320px;
    --cpv5-grid-gap: 26px;
    --cpv5-card-width: 278px;
    --cpv5-card-height: 332px;
    --cpv5-card-radius: 20px;
    --cpv5-card-padding-x: 20px;
    --cpv5-card-padding-top: 18px;
    --cpv5-card-padding-bottom: 16px;
    --cpv5-card-border-width: 3px;
    --cpv5-card-border-color: #FFFFFF;
    --cpv5-card-bg: #E9E0FF;
    --cpv5-card-shadow: 0 10px 30px rgba(62,31,145,0.18);
    --cpv5-map-width: 118px;
    --cpv5-map-height: 60px;
    --cpv5-map-top: 34px;
    --cpv5-map-left: 0px;
    --cpv5-date-size: 23px;
    --cpv5-date-margin-top: 18px;
    --cpv5-separator-margin-top: 14px;
    --cpv5-type-size: 16px;
    --cpv5-button-width: 155px;
    --cpv5-button-height: 42px;
    --cpv5-button-radius: 10px;
    --cpv5-button-margin-top: 18px;
    --cpv5-title-size: 20px;
    --cpv5-badge-height: 30px;
    --cpv5-badge-radius: 14px;
    --cpv5-badge-city-pad-x: 18px;
    --cpv5-badge-status-pad-x: 16px;
    --cpv5-contact-width: 320px;
    --cpv5-contact-height: 305px;
    --cpv5-contact-radius: 22px;
    --cpv5-contact-button-width: 230px;
    --cpv5-contact-button-height: 58px;
    --cpv5-background-overlay: linear-gradient(90deg, rgba(130,180,255,.88) 0%, rgba(139,98,255,.82) 48%, rgba(186,132,255,.75) 100%);
    --cpv5-footer-band-bg: #7B68D9;
    --cpv5-footer-band-bg-new: #D9A5A0;
    --cpv5-footer-band-bg-full: #8A84A3;
    --cpv5-card-tint-new: #F3D2CC;
    --cpv5-card-tint-full: #C9C1DB;
    --cpv5-section-padding-top: 34px;
    --cpv5-section-padding-bottom: 34px;
    --cpv5-bg-image: none;
}
.cpv5-section,
.cpv5-preview-shell {
    position: relative;
    padding: var(--cpv5-section-padding-top) 20px var(--cpv5-section-padding-bottom);
    background-image: var(--cpv5-background-overlay), var(--cpv5-bg-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.cpv5-section:before,
.cpv5-preview-shell:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 15% 18%, rgba(255,255,255,.35) 0 2px, transparent 3px),
      radial-gradient(circle at 85% 32%, rgba(255,255,255,.28) 0 2px, transparent 3px),
      radial-gradient(circle at 60% 12%, rgba(255,255,255,.24) 0 1.5px, transparent 2.5px),
      radial-gradient(circle at 25% 68%, rgba(255,255,255,.24) 0 2px, transparent 3px),
      radial-gradient(circle at 78% 80%, rgba(255,255,255,.2) 0 2px, transparent 3px);
    opacity: .8;
}
.cpv5-inner {
    max-width: var(--cpv5-container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cpv5-front-title {
    text-align: center;
    font-size: var(--cpv5-title-size);
    letter-spacing: .02em;
    font-weight: 900;
    color: #231645;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.cpv5-front-sub {
    text-align: center;
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 34px;
    text-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.cpv5-front-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--cpv5-card-width)) var(--cpv5-contact-width);
    gap: var(--cpv5-grid-gap);
    align-items: start;
    justify-content: center;
}
.cpv5-front-card {
    width: var(--cpv5-card-width);
    min-height: var(--cpv5-card-height);
    border-radius: var(--cpv5-card-radius);
    border: var(--cpv5-card-border-width) solid var(--cpv5-card-border-color);
    background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-bg);
    box-shadow: var(--cpv5-card-shadow);
    padding: var(--cpv5-card-padding-top) var(--cpv5-card-padding-x) var(--cpv5-card-padding-bottom);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}
.cpv5-front-card[data-status="new"] {
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-tint-new);
}
.cpv5-front-card[data-status="full"] {
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%), var(--cpv5-card-tint-full);
}
.cpv5-city-badge,
.cpv5-status-badge {
    height: var(--cpv5-badge-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    border-radius: var(--cpv5-badge-radius);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 8px 16px rgba(34, 35, 133, .18);
}
.cpv5-city-badge {
    align-self: flex-start;
    padding: 0 var(--cpv5-badge-city-pad-x);
    background: linear-gradient(180deg,#4f8dfb 0%,#2153d9 100%);
}
.cpv5-status-badge {
    position: absolute;
    right: 16px;
    top: 18px;
    padding: 0 var(--cpv5-badge-status-pad-x);
}
.cpv5-status-new { background: linear-gradient(180deg,#ffbb4b 0%,#ff8b18 100%); }
.cpv5-status-full { background: linear-gradient(180deg,#ff4772 0%,#cf143f 100%); }
.cpv5-map-shape {
    width: var(--cpv5-map-width);
    height: var(--cpv5-map-height);
    object-fit: contain;
    margin-top: var(--cpv5-map-top);
    transform: translateX(var(--cpv5-map-left));
    opacity: .94;
    filter: drop-shadow(0 10px 12px rgba(100,76,191,.18));
}
.cpv5-date {
    margin-top: var(--cpv5-date-margin-top);
    color: #2d1c73;
    font-size: var(--cpv5-date-size);
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
}
.cpv5-separator {
    width: 100%;
    height: 1px;
    margin-top: var(--cpv5-separator-margin-top);
    background: linear-gradient(90deg, rgba(77,58,152,0) 0%, rgba(77,58,152,.22) 18%, rgba(77,58,152,.22) 82%, rgba(77,58,152,0) 100%);
}
.cpv5-type-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #48376f;
    font-size: var(--cpv5-type-size);
    margin-top: 14px;
    text-align: center;
}
.cpv5-calendar-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}
.cpv5-card-footer-band {
    width: calc(100% + (var(--cpv5-card-padding-x) * 2));
    margin: auto calc(var(--cpv5-card-padding-x) * -1) calc(var(--cpv5-card-padding-bottom) * -1);
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(112,72,235,0.00) 0%, rgba(108,74,224,0.18) 28%, rgba(86,54,202,0.42) 100%);
    border-top: 1px solid rgba(255,255,255,0.18);
    position: relative;
}
.cpv5-front-card[data-status="new"] .cpv5-card-footer-band {
    background: var(--cpv5-footer-band-bg-new);
}
.cpv5-front-card[data-status="full"] .cpv5-card-footer-band {
    background: var(--cpv5-footer-band-bg-full);
}
.cpv5-card-button {
    margin-top: 0;
    width: var(--cpv5-button-width);
    height: var(--cpv5-button-height);
    border-radius: var(--cpv5-button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#6f3aff 0%,#3812d7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 20px rgba(61, 30, 143, .18);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 14px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}
.cpv5-card-button-disabled {
    background: linear-gradient(180deg,#b6aed1 0%,#726b8f 100%);
    cursor: default;
}
.cpv5-contact-card {
    width: var(--cpv5-contact-width);
    min-height: var(--cpv5-contact-height);
    border-radius: var(--cpv5-contact-radius);
    border: 3px solid rgba(255,255,255,.38);
    background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%), rgba(238,227,255,.58);
    box-shadow: 0 10px 30px rgba(62,31,145,.14);
    padding: 30px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}
.cpv5-contact-title {
    color: #3d2d68;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
}
.cpv5-contact-phone {
    color: #51436e;
    font-size: 18px;
    font-weight: 800;
    margin-top: 26px;
}
.cpv5-contact-phone-small { margin-top: 10px; }
.cpv5-contact-button {
    width: var(--cpv5-contact-button-width);
    height: var(--cpv5-contact-button-height);
    margin: 28px auto 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg,#20d6f2 0%,#2484ff 100%);
    box-shadow: 0 14px 28px rgba(36,132,255,.2);
}
.cpv5-preview-grid {
    grid-template-columns: var(--cpv5-card-width) var(--cpv5-contact-width);
    justify-content: center;
}
@media (max-width: 1180px) {
    .cpv5-front-grid {
        grid-template-columns: repeat(2, minmax(240px, var(--cpv5-card-width)));
    }
    .cpv5-contact-card {
        grid-column: 1 / -1;
        justify-self: center;
    }
}
@media (max-width: 767px) {
    .cpv5-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    .cpv5-front-grid {
        grid-template-columns: 1fr;
    }
    .cpv5-front-card,
    .cpv5-contact-card {
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }
}

.cpv5-preview-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}
.cpv5-preview-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4f496f;
}
