/* intro */
.events-intro {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: #f4f2f0;
}

.events-intro::before {
    position: absolute;
    top: 240px;
    left: calc(50% - 116px);
    width: 299px;
    height: 336px;
    background: url('/bitrix/templates/lesriviera/images/decor-about.webp') center / contain no-repeat;
    content: '';
    pointer-events: none;
}

.events-intro__container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    width: calc(100% - 240px);
    max-width: 1200px;
    margin: 0 auto;
}

.events-intro__content {
    flex: 0 1 624px;
    min-width: 0;
}

.events-intro__title {
    max-width: 624px;
    margin: 0 0 20px;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.events-intro__facts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-intro__fact h3,
.events-intro__fact p {
    margin: 0;
    color: #14181f;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.25;
}

.events-intro__fact h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.events-intro__fact p {
    max-width: 538px;
    font-weight: 400;
}

.events-intro__picture {
    flex: 0 0 451px;
    height: 445px;
}

.events-intro__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .events-intro__container { width: calc(100% - 160px); }
    .events-intro__content { flex-basis: 582px; }
    .events-intro__fact p { max-width: 477px; }
    .events-intro__picture { flex-basis: 506px; height: 407px; }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .events-intro::before { top: 196px; left: calc(50% - 159px); }
    .events-intro__content { flex-basis: 470px; }
    .events-intro__title { max-width: 372px; font-size: 44px; }
    .events-intro__fact p { max-width: 408px; }
    .events-intro__fact:last-child p { max-width: 358px; }
    .events-intro__picture { flex-basis: 371px; height: 407px; }
}

@media (max-width: 1199px) {
    .events-intro__container { width: calc(100% - 64px); }
}

@media (max-width: 768px) {
    .events-intro { padding: 72px 0; }
    .events-intro::before { display: none; }
    .events-intro__content { flex: 1 1 350px; }
    .events-intro__title { max-width: none; font-size: 40px; }
    .events-intro__fact p,
    .events-intro__fact:last-child p { max-width: none; }
    .events-intro__picture { flex: 0 1 322px; height: 360px; }
}

@media (max-width: 700px) {
    .events-intro { padding: 56px 0; }
    .events-intro__container { display: block; width: calc(100% - 40px); }
    .events-intro__title { font-size: 32px; }
    .events-intro__picture { width: 100%; height: auto; margin-top: 24px; aspect-ratio: 1; }
}

/* places */
.events-places {
    padding: 0 0 100px;
    background: #f4f2f0;
}

.events-places__container {
    width: calc(100% - 240px);
    max-width: 1200px;
    margin: 0 auto;
}

.events-places__heading {
    max-width: 650px;
    margin-bottom: 30px;
}

.events-places__heading h2 {
    margin: 0 0 20px;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.events-places__heading p {
    margin: 0;
    color: #14181f;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.25;
}

.events-places__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.events-places__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
}

.events-places__card img {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.events-places__card-content {
    display: flex;
    min-height: 181px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.events-places__card h3,
.events-places__card p {
    margin: 0;
    color: #14181f;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.25;
}

.events-places__card h3 {
    margin-bottom: 11px;
    font-weight: 600;
}

.events-places__card p {
    font-weight: 400;
}

.events-places__card a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #14181f;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.events-places__card a:hover,
.events-places__card a:focus-visible {
    background: #30343a;
    color: #fff;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .events-places__container { width: calc(100% - 160px); }
    .events-places__card-content { min-height: 201px; }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .events-places__heading { max-width: 593px; }
    .events-places__heading h2 { font-size: 34px; }
    .events-places__heading p { max-width: 474px; }
    .events-places__cards { gap: 19px; }
    .events-places__card img { height: 143px; }
    .events-places__card-content { min-height: 219px; }
}

@media (max-width: 1199px) {
    .events-places__container { width: calc(100% - 64px); }
}

@media (max-width: 768px) {
    .events-places { padding-bottom: 72px; }
    .events-places__heading { max-width: 650px; }
    .events-places__heading h2 { font-size: 40px; }
    .events-places__heading p { max-width: 485px; }
    .events-places__cards { gap: 20px; }
    .events-places__card img { height: 130px; }
    .events-places__card-content { min-height: 252px; }
    .events-places__card:nth-child(n + 2) p { font-size: 14px; }
}

@media (max-width: 700px) {
    .events-places { padding-bottom: 56px; }
    .events-places__container { width: calc(100% - 40px); }
    .events-places__heading { max-width: none; }
    .events-places__heading h2 { font-size: 32px; }
    .events-places__heading p { max-width: none; }
    .events-places__cards { grid-template-columns: 1fr; }
    .events-places__card img { height: 165px; }
    .events-places__card-content { min-height: 235px; }
    .events-places__card p { font-size: 14px; }
}

/* formats */
.events-formats {
    padding: 0 0 100px;
    background: #f4f2f0;
}

.events-formats__container {
    width: calc(100% - 240px);
    max-width: 1200px;
    margin: 0 auto;
}

.events-formats__heading {
    margin-bottom: 31px;
}

.events-formats__heading h2 {
    margin: 0 0 20px;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.events-formats__heading p {
    max-width: 600px;
    margin: 0;
    color: #14181f;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.25;
}

.events-formats__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.events-formats__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: #14181f;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.events-formats__item img {
    display: block;
    width: 65px;
    height: 65px;
    flex: none;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .events-formats__container { width: calc(100% - 160px); }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .events-formats__heading h2 { font-size: 40px; }
}

@media (max-width: 1199px) {
    .events-formats__container { width: calc(100% - 64px); }
}

@media (max-width: 768px) {
    .events-formats { padding-bottom: 72px; }
}

@media (max-width: 700px) {
    .events-formats { padding-bottom: 56px; }
    .events-formats__container { width: calc(100% - 40px); }
    .events-formats__heading h2 { font-size: 32px; }
    .events-formats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .events-formats__item { font-size: 14px; }
}

/* halls */
.events-halls {
    padding: 0 0 100px;
    background: #f4f2f0;
}

.events-halls__container {
    position: relative;
    width: calc(100% - 160px);
    max-width: 1200px;
    margin: 0 auto;
}

.events-halls__container::after {
    position: absolute;
    right: 0;
    bottom: -100px;
    width: clamp(120px, 14vw, 180px);
    aspect-ratio: 543 / 482;
    background: url('/bitrix/templates/lesriviera/images/decor-footer.webp') right bottom / contain no-repeat;
    content: '';
    pointer-events: none;
}

.events-halls h2 {
    margin: 0 0 20px;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.events-halls__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-hall {
    display: grid;
    grid-template-columns: 32% 31% minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border-bottom: 1px solid #e4e3e1;
    background: #fff;
    color: #14181f;
    font-family: var(--font-primary);
}

.events-hall__gallery,
.events-hall__copy,
.events-hall__specs {
    min-width: 0;
}

.events-hall__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1.32;
    overflow: hidden;
}

.events-hall__main img,
.events-hall__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-hall__arrow {
    position: absolute;
    top: 50%;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #14181f;
    cursor: pointer;
    font: 24px/1 Arial, sans-serif;
}

.events-hall__arrow--prev { left: 10px; }
.events-hall__arrow--next { right: 10px; }

.events-hall__thumbs {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.events-hall__thumbs::-webkit-scrollbar { display: none; }

.events-hall__thumb {
    flex: 0 0 calc((100% - 20px) / 5);
    padding: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    background: none;
    cursor: pointer;
}

.events-hall__thumb:focus-visible,
.events-hall__arrow:focus-visible {
    outline: 2px solid #14181f;
    outline-offset: 2px;
}

.events-hall__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.events-hall__copy h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.events-hall__copy p {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.events-hall__copy p:last-of-type { margin-bottom: 0; }

.events-hall__request {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 12px;
    background: #14181f;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.events-hall__request:hover,
.events-hall__request:focus-visible {
    background: #30343a;
    color: #fff;
}

.events-hall__request-mobile { display: none; }

.events-hall__specs {
    padding-left: 20px;
    border-left: 1px solid #e4e3e1;
}

.events-hall__facts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.events-hall__facts li {
    display: flex;
    min-height: 28px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.2;
}

.events-hall__fact-icon {
    display: flex;
    flex: 0 0 27px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.events-hall__fact-icon img {
    display: block;
}

.events-hall__detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e4e3e1;
}

.events-hall__detail h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.events-hall__detail p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.25;
}

.events-hall__detail p:last-child { margin-bottom: 0; }


@media (min-width: 1200px) and (max-width: 1279px) {
    .events-halls__container { width: calc(100% - 240px); }
    .events-halls h2 { max-width: 650px; font-size: 44px; }
    .events-hall { grid-template-columns: minmax(0, 310px) minmax(0, 1fr) minmax(0, 284px); gap: 20px; }
}

@media (max-width: 1199px) {
    .events-halls__container { width: calc(100% - 64px); }
    .events-halls__container::after { bottom: -72px; }
    .events-halls { padding-bottom: 72px; }
    .events-halls h2 { max-width: none; font-size: 40px; }
    .events-hall {
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
        gap: 24px;
    }
    .events-hall__specs {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 700px) {
    .events-halls { padding-bottom: 56px; }
    .events-halls__container { width: calc(100% - 40px); }
    .events-halls__container::after { content: none; }
    .events-halls h2 { font-size: 32px; }
    .events-hall {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 16px;
    }
    .events-hall__specs { grid-column: auto; }
    .events-hall__request--mobile-label > span:first-child { display: none; }
    .events-hall__request-mobile { display: inline; }
}

/* request */
.events-request {
    position: relative;
    scroll-margin-top: 85px;
    padding: 64px 0;
    background: #27231f url('/bitrix/templates/lesriviera/images/events/form-bg.png') center / cover no-repeat;
    color: #fff;
    font-family: var(--font-primary);
}

.events-request,
.events-request * { box-sizing: border-box; }

.events-request__container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 634px);
    align-items: start;
    gap: 48px;
    width: calc(100% - 240px);
    max-width: 1200px;
    margin: 0 auto;
}

.events-request__intro h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.events-request__intro p,
.events-request__contacts p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.events-request__contacts { margin-top: 20px; }
.events-request__contacts p + p { margin-top: 8px; }
.events-request__contacts a { color: inherit; text-decoration: none; }
.events-request__contacts a:hover,
.events-request__contacts a:focus-visible { text-decoration: underline; }

.events-request__form-wrap { min-width: 0; }

.events-request__form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: #fff;
    color: #14181f;
}

.events-request__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.events-request__fields > input,
.events-request__fields > textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid #dfdfdf;
    border-radius: 0;
    background: #f5f5f5;
    color: #14181f;
    font: 400 12px/1.25 var(--font-primary);
    outline-offset: 2px;
}

.events-request__fields > input { height: 50px; }
.events-request__fields > textarea { height: 101px; resize: vertical; }
.events-request__fields > input[name="phone_1"] { display: none; }
.events-request__fields > input::placeholder,
.events-request__fields > textarea::placeholder { color: #808080; opacity: 1; }

.events-request__fields > [aria-invalid="true"] { border-color: #a32929; }
.events-request__error { color: #a32929; font-size: 12px; line-height: 1.3; }
.events-request__error:empty { display: none; }

.events-request__channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
}

.events-request__channel {
    position: relative;
    display: inline-block;
    color: #808080;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.events-request__channel > span {
    display: inline-flex;
    height: 34px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 1px solid transparent;
}

.events-request__channel input:checked + span {
    border: 1px solid rgba(0, 0, 0, .77);
    color: #000;
}

.events-request__channel input:focus-visible + span { outline: 2px solid #14181f; outline-offset: 2px; }

.events-request__channel img {
    display: block;
    width: 18px;
    height: 18px;
    flex: none;
    object-fit: contain;
}

.events-request__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #808080;
    font-size: 11px;
    line-height: 1.2;
}

.events-request__consent input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
    border: 1px solid #b5b5b5;
    border-radius: 0;
    appearance: none;
    cursor: pointer;
}

.events-request__consent input:checked {
    background: #14181f;
    box-shadow: inset 0 0 0 4px #fff;
}

.events-request__consent p { margin: 0; }
.events-request__consent label { cursor: pointer; }
.events-request__consent a { color: inherit; text-decoration: underline; }
.events-request__consent a:hover,
.events-request__consent a:focus-visible { color: #14181f; }

.events-request__button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: 400 14px/1.2 var(--font-primary);
    cursor: pointer;
}

.events-request__button:disabled { opacity: .55; cursor: wait; }
.events-request__status { margin: 0; color: #a32929; font-size: 12px; line-height: 1.4; }
.events-request__success {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 30px;
    background: #fff;
    color: #14181f;
}
.events-request__success h3 { margin: 0; font: 400 40px/1.15 var(--font-secondary); text-transform: uppercase; }
.events-request__success p { margin: 0; font: 400 14px/1.5 var(--font-primary); }
.events-request__success:focus { outline: none; }
.events-request__form[hidden], .events-request__success[hidden], .events-request__status[hidden] { display: none; }

.events-request__button-1200 { display: none; }

.events-request__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .events-request__container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 590px);
        width: calc(100% - 160px);
    }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    .events-request { padding: 80px 0; }
    .events-request__container { grid-template-columns: minmax(0, 1fr) minmax(0, 527px); gap: 0; }
    .events-request__intro h2 { font-size: 37px; }
    .events-request__button-default { display: none; }
    .events-request__button-1200 { display: inline; }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .events-request__container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 32px;
        width: calc(100% - 64px);
    }
}

@media (max-width: 768px) {
    .events-request__container { grid-template-columns: minmax(0, 1fr); gap: 32px; width: calc(100% - 64px); }
}

@media (max-width: 700px) {
    .events-request { padding: 40px 0; }
    .events-request__container { width: calc(100% - 40px); }
    .events-request__intro h2 { font-size: 32px; }
    .events-request__form { padding: 20px; }
    .events-request__success { min-height: 180px; padding: 20px; }
    .events-request__success h3 { font-size: 32px; }
}

/* Footer on the events page */
.footer { margin-top: 0; }
.footer::before { content: none; }
