/* EventUslugi module styles (based on page-events.css) */

:root {
    --pe-font: 'Jost', sans-serif;
    --pe-font-ui: 'Inter', sans-serif;
    --pe-color-text: #292929;
    --pe-color-muted: #7D7D7D;
    --pe-color-accent: #BB433C;
    --pe-color-accent-dark: #9D3632;
    --pe-color-accent-soft: #D36461;
    --pe-color-red-text: #B22222;
    --pe-bg: #F6F6F6;
    --pe-bg-card: #FFFFFF;
    --pe-border: #E0E0E0;
    --pe-container: min(1280px, 100% - 20px);
}

.page-events {
    font-family: var(--pe-font);
    font-size: 16px;
    line-height: 27px;
    color: var(--pe-color-text);
    background: var(--pe-bg);
    margin: 0;
    padding: 0;
}

.pe-container {
    max-width: var(--pe-container);
    margin: 0 auto;
    padding: 24px 40px 48px;
}

.eventuslugi-module-action h2 {
    margin-bottom: 40px;
}

/* Block 1: Breadcrumb */
.pe-breadcrumb {
    margin-bottom: 16px;
}

.pe-breadcrumb__inner {
    font-size: 14px;
    line-height: 27px;
    font-weight: 500;
    color: var(--pe-color-muted);
}

.pe-breadcrumb__inner a {
    color: var(--pe-color-muted);
    text-decoration: none;
}

.pe-breadcrumb__inner a:hover {
    color: var(--pe-color-accent);
}

.pe-breadcrumb__sep {
    margin: 0 6px;
}

/* Block 2: Hero */
.pe-hero {
    margin-bottom: 48px;
}

.pe-hero__title {
    font-family: var(--pe-font);
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    color: var(--pe-color-text);
    max-width: 1220px;
}

.pe-hero__intro {
    font-weight: 700;
    font-size: 16px;
    line-height: 27px;
    margin: 10px 0 24px;
    max-width: 1220px;
}

/* CTA banner (hero + block 8) */
.pe-cta-banner {
    display: flex;
    align-items: center;
    background: var(--pe-bg-card);
    box-shadow: 0 2px 10px rgba(137, 101, 101, 0.25);
    border-radius: 8px;
    border-left: 10px solid var(--pe-color-accent);
}

.pe-cta-banner__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 24px 30px 24px 24px;
    flex: 1;
    min-width: 0;
}

.pe-cta-banner__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pe-cta-banner__heading {
    font-family: var(--pe-font);
    font-weight: 500;
    font-size: 30px;
    line-height: 32px;
    color: var(--pe-color-red-text);
    margin: 0;
}

.pe-cta-banner__desc {
    font-size: 20px;
    line-height: 27px;
    color: var(--pe-color-text);
    margin: 0;
}

.pe-cta-banner__btn {
    flex-shrink: 0;
}

/* Decoration after button, flush to right edge */
.pe-cta-banner__deco {
    flex-shrink: 0;
    width: 236px;
    height: 160px;
    background: url("/modules/EventUslugi/public/front/img/rect839.svg") no-repeat center;
    background-size: contain;
    pointer-events: none;
    align-self: center;
}

/* Button */
.pe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    font-family: var(--pe-font-ui);
    font-size: 14px;
    line-height: 27px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: linear-gradient(180deg, #BB413E -12.96%, var(--pe-color-accent-dark) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 19px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.pe-btn:hover {
    background: #ca3537;
    color: #FFFFFF !important;
}

/* Section title (blocks 3–7) */
.pe-section-title {
    font-family: var(--pe-font);
    font-weight: 500;
    font-size: 30px;
    line-height: 43px;
    color: var(--pe-color-text);
    margin: 0 0 8px;
}

/* Block 3: Event formats grid */
.pe-formats {
    margin-bottom: 56px;
}

.pe-formats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 24px;
}

.pe-formats__card {
    margin: 0;
}

.pe-formats__img-wrap {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 386 / 330;
    display: block;
}

.pe-formats__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe-formats__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 37%;
    background: linear-gradient(180deg, rgba(41, 41, 41, 0) 0%, #292929 61.67%);
    pointer-events: none;
}

.pe-formats__label {
    position: absolute;
    left: 31px;
    bottom: 31px;
    font-weight: 500;
    font-size: 30px;
    line-height: 43px;
    color: #FFFFFF;
    pointer-events: none;
}

/* Center the "All formats" link below the grid */
.pe-formats__link-wrap {
    text-align: center;
    margin-top: 34px;
}

.pe-formats__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    color: var(--pe-color-accent);
    text-decoration: underline;
}

.pe-formats__link:hover {
    color: var(--pe-color-accent-dark);
}

.pe-formats__link-arrow {
    color: var(--pe-color-accent);
    text-decoration: none;
    font-weight: 700;
}

.pe-formats__link-wrap:hover .pe-formats__link-arrow {
    color: var(--pe-color-accent-dark);
}

/* Block 4: Additional services */
.pe-services {
    margin-bottom: 56px;
}

.pe-services__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 31px;
}

.pe-services__item {
    position: relative;
    box-sizing: border-box;
    min-height: 230px;
    padding: 33px 30px;
    padding-right: 220px;
    border: 2px solid var(--pe-border);
    border-radius: 15px;
    background: var(--pe-bg-card);
}

.pe-services__text {
    max-width: 360px;
}

.pe-services__heading {
    font-weight: 500;
    font-size: 24px;
    line-height: 35px;
    color: var(--pe-color-text);
    margin: 0 0 16px;
}

.pe-services__item p {
    margin: 0;
    font-size: 16px;
    line-height: 27px;
    color: var(--pe-color-text);
}

/* Service photos: full height of item, flush to right edge */
.pe-services__icon {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    border-radius: 0 13px 13px 0;
}

.pe-services__icon--script {
    background-image: url(/modules/EventUslugi/public/front/img/service-script.png);
}

.pe-services__icon--mic {
    background-image: url(/modules/EventUslugi/public/front/img/service-mic.png);
}

.pe-services__icon--camera {
    background-image: url(/modules/EventUslugi/public/front/img/service-camera.png);
}

.pe-services__icon--rider {
    background-image: url(/modules/EventUslugi/public/front/img/service-rider.png);
}

/* Block 5: Why PROSTARS */
.pe-why {
    margin-bottom: 56px;
}

.pe-why__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.pe-why__item {
    width: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.pe-why__icon {
    width: 96px;
    height: 96px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.pe-why__icon--cycle {
    background-image: url(/modules/EventUslugi/public/front/img/cycle1.svg);
}

.pe-why__icon--manager {
    background-image: url(/modules/EventUslugi/public/front/img/customer-service2.svg);
}

.pe-why__icon--artists {
    background-image: url(/modules/EventUslugi/public/front/img/artists3.svg);
}

.pe-why__icon--budget {
    background-image: url(/modules/EventUslugi/public/front/img/wallet-banknotes-svgrepo-com4.svg);
}

.pe-why__icon--geo {
    background-image: url(/modules/EventUslugi/public/front/img/earth-planet-svgrepo-com5.svg);
}

.pe-why__heading {
    font-weight: 600;
    font-size: 20px;
    line-height: 29px;
    color: var(--pe-color-text);
    margin: 0;
}

.pe-why__item p {
    margin: 0;
    font-size: 16px;
    line-height: 27px;
    color: var(--pe-color-text);
}

/* Block 6: Stats */
.pe-stats {
    margin-bottom: 56px;
}

.pe-stats__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pe-stats__card {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Dashed border only around the number; label stays outside below */
.pe-stats__number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 12px 20px;
    border: 1.5px dashed var(--pe-color-accent);
    border-radius: 15px;
    width: 150px;
    height: 90px;
}

.pe-stats__number {
    font-weight: 500;
    font-size: 48px;
    line-height: 69px;
    color: var(--pe-color-accent);
}

.pe-stats__label {
    font-weight: 600;
    font-size: 20px;
    line-height: 29px;
    color: var(--pe-color-text);
    text-align: center;
}

/* Block 7: FAQ */
.pe-faq {
    margin-bottom: 56px;
}

.pe-faq__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pe-faq__item {
    padding: 16px 30px;
    background: linear-gradient(90deg, var(--pe-bg) 0%, var(--pe-bg-card) 100%);
    border-radius: 15px;
}

.pe-faq__q {
    font-weight: 600;
    font-size: 20px;
    line-height: 29px;
    color: var(--pe-color-text);
    margin: 0 0 12px;
}

.pe-faq__a {
    margin: 0;
    font-size: 16px;
    line-height: 27px;
    color: var(--pe-color-text);
    font-weight: 400;
}

/* Block 8: CTA bottom */
.pe-cta-block {
    margin-bottom: 0;
}

.pe-cta-banner--bottom .pe-cta-banner__heading {
    color: var(--pe-color-text);
}

/* ========== Responsive: stats 2 columns from 1100px ========== */
@media (max-width: 1100px) {
    .pe-stats__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pe-stats__card {
        width: 100%;
    }
}

/* ========== Responsive: tablet ========== */
@media (max-width: 1024px) {
    .pe-container {
        padding: 20px 24px 40px;
    }

    .content-block:has(.pe-hero) {
        padding: 20px 24px 40px;
    }

    .pe-hero__title {
        font-size: 36px;
        line-height: 42px;
    }

    .pe-hero {
        margin-bottom: 36px;
    }

    .pe-formats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .pe-formats__label {
        font-size: 24px;
        line-height: 32px;
        left: 20px;
        bottom: 20px;
    }

    .pe-cta-banner {
        flex-wrap: wrap;
    }

    .pe-cta-banner__content {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px 20px 16px;
    }

    .pe-cta-banner__deco {
        width: 120px;
        height: 82px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .pe-section-title {
        font-size: 26px;
        line-height: 36px;
    }

    .pe-services__grid {
        grid-template-columns: 1fr;
    }

    .pe-services__item {
        min-height: 180px;
        padding: 24px 20px;
        padding-right: 180px;
    }

    .pe-services__icon {
        width: 160px;
    }

    .pe-services__heading {
        font-size: 22px;
    }

    .pe-why__grid {
        gap: 40px 50px;
    }

    .pe-why__item {
        width: 280px;
    }

    .pe-stats__number {
        font-size: 40px;
        line-height: 1.2;
    }

    .pe-stats__number-box {
        min-width: 70px;
        width: 130px;
        height: 78px;
        padding: 10px 16px;
    }

    .pe-faq__item {
        padding: 16px 24px;
    }

    .pe-faq__q {
        font-size: 18px;
    }
}

/* ========== Responsive: mobile ========== */
@media (max-width: 768px) {
    .pe-container,
    .content-block:has(.pe-hero) {
        padding: 16px 16px 32px;
    }

    .pe-breadcrumb {
        margin-bottom: 12px;
    }

    .pe-breadcrumb__inner {
        font-size: 13px;
    }

    .pe-hero {
        margin-bottom: 28px;
    }

    .pe-hero__title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 12px;
    }

    .pe-hero__intro {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 20px;
    }

    .pe-cta-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .pe-cta-banner__accent {
        width: 100%;
        height: 6px;
    }

    .pe-cta-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 16px;
    }

    .pe-cta-banner__heading {
        font-size: 20px;
        line-height: 26px;
    }

    .pe-cta-banner__desc {
        font-size: 15px;
        line-height: 22px;
    }

    .pe-cta-banner__btn {
        padding: 14px 24px;
    }

    .pe-cta-banner__deco {
        display: none;
    }

    .pe-section-title {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 6px;
    }

    .pe-section-title__underline,
    .pe-formats__underline {
        margin-bottom: 20px;
    }

    .pe-formats {
        margin-bottom: 40px;
    }

    .pe-formats__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pe-formats__label {
        font-size: 22px;
        line-height: 28px;
        left: 16px;
        bottom: 16px;
    }

    .pe-formats__link-wrap {
        margin-top: 20px;
    }

    .pe-formats__link {
        font-size: 17px;
    }

    .pe-why {
        margin-bottom: 40px;
    }

    .pe-why__grid {
        gap: 28px;
    }

    .pe-why__item {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .pe-why__icon {
        width: 72px;
        height: 72px;
    }

    .pe-why__heading {
        font-size: 18px;
    }

    .pe-why__item p {
        font-size: 15px;
        line-height: 24px;
    }

    .pe-stats {
        margin-bottom: 40px;
    }

    .pe-stats__grid {
        gap: 16px;
        justify-content: center;
    }

    .pe-stats__card {
        width: 100%;
        max-width: 280px;
        gap: 12px;
    }

    .pe-stats__number-box {
        min-width: 60px;
        width: 110px;
        height: 66px;
        padding: 8px 12px;
    }

    .pe-stats__number {
        font-size: 36px;
        line-height: 1.2;
    }

    .pe-stats__label {
        font-size: 17px;
        line-height: 24px;
    }

    .pe-faq {
        margin-bottom: 40px;
    }

    .pe-faq__list {
        gap: 12px;
    }

    .pe-faq__item {
        padding: 14px 16px;
    }

    .pe-faq__q {
        font-size: 17px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .pe-faq__a {
        font-size: 15px;
        line-height: 24px;
    }
}

/* ========== Responsive: small mobile ========== */
@media (max-width: 480px) {
    .pe-container,
    .content-block:has(.pe-hero) {
        padding: 12px 12px 24px;
    }

    .pe-hero__title {
        font-size: 22px;
        line-height: 28px;
    }

    .pe-hero__intro {
        font-size: 14px;
    }

    .pe-cta-banner__content {
        padding: 16px 12px;
    }

    .pe-cta-banner__heading {
        font-size: 18px;
        line-height: 24px;
    }

    .pe-section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .pe-formats__label {
        font-size: 20px;
    }

    .pe-formats__link {
        font-size: 16px;
    }

    .pe-services__icon {
        display: none;
    }

    .pe-services__item {
        padding-right: 16px;
    }

    .pe-stats__number {
        font-size: 32px;
    }

    .pe-stats__number-box {
        width: 100px;
        height: 60px;
    }

    .pe-stats__label {
        font-size: 15px;
    }

    .pe-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Embedded in .content-block (CMS fix) */
.content-block:has(.pe-hero) {
    max-width: var(--pe-container);
    margin-left: auto;
    margin-right: auto;
    padding: 24px 40px 48px;
    box-sizing: border-box;
}

.content-block:has(.pe-hero) .pe-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Reset layout.css list styles for our grids so design doesn't break */
.content-block .pe-formats__grid,
.content-block .pe-services__grid,
.content-block .pe-why__grid,
.content-block .pe-stats__grid,
.content-block .pe-faq__list {
    padding: 0;
    margin: 0;
}

.content-block .pe-formats__grid > li:before,
.content-block .pe-services__grid > li:before,
.content-block .pe-why__grid > li:before,
.content-block .pe-stats__grid > li:before,
.content-block .pe-faq__list > li:before {
    content: none;
    display: none;
}

.content-block .pe-formats__grid {
    margin-bottom: 0;
}

.content-block .pe-faq__list {
    margin-bottom: 0;
}

