/**
 * Theme Name:  Доброезжев
 * Description: Короткое описание темы
 *
 * Theme URI:   URL темы. Пр: https://dobroezzhev.ru/themes/dobroezzhev
 * Author:      Команда Доброезжев
 * Author URI:  https://dobroezzhev.ru/
 *
 * Tags:
 * Text Domain: dobroezzhev
 *
 * Version:     1.0
 */

.pr-1 {
    padding-right: 4px;
}

[id^="chapter-title-"] {
    font-size: 42px;
}

.page-content table {
    border-collapse: collapse;
    width: 100%;
}

.page-content table td,
.page-content table.has-fixed-layout td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.page-content table th,
.page-content table.has-fixed-layout th {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    text-align: center;
    width: 324px;
    background-color: #f3f4f6;
    font-weight: 600;
}

#exhibitions .exhibitions-tabs-and-panels {
    border-radius: 8px;
}

#exhibitions .exhibitions-tabs {
    margin-bottom: 0;
    overflow-x: auto;
    overflow-y: visible;
}

#exhibitions .exhibitions-panel {
    margin-top: 0;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

#exhibitions .exhibitions-tab {
    border-radius: 8px 8px 0 0;
    margin-top: 0;
}

@media (min-width: 1280px) {
    #exhibitions .exhibitions-tab {
        min-height: 92px;
    }

    #exhibitions .exhibitions-tab.active {
        min-height: 112px;
    }
}

.exhibitions-tab__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 30px;
    vertical-align: middle;
    white-space: normal;
    align-items: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 140px;
}

.exhibitions-tab__title.active {
    font-family: "PT Root UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    font-weight: 700;
    font-size: 28px;
    padding-top: 4px;
}

#exhibitions .exhibitions-panel table td.px-3 {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 17px;
    border-top: 1px solid rgba(0, 0, 0, 1);
    font-family: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    word-break: break-word;
    overflow-wrap: break-word;
}

#exhibitions .exhibitions-panel table td.px-3:not(:last-child) {
    border: 0;
    border-right: 1px solid rgba(0, 0, 0, 1);
    border-top: 1px solid rgba(0, 0, 0, 1);
}

#exhibitions .exhibitions-panel table tbody tr:first-child td.px-3 {
    border-top: 0;
}

#exhibitions .exhibitions-panel table tbody tr:first-child td.px-3:not(:last-child) {
    border-top: 0;
}

#exhibitions a.link-exhibition {
    display: inline-block;
    border-radius: 4px;
    padding: 6px 10px;
    text-align: center;
    font-weight: 400;
    border: 1px solid rgb(207 0 0);
    background-color: rgb(207 0 0);
    color: rgb(255 255 255);
    text-decoration: none;
    transition: all 0.3s;
}

#exhibitions a.link-exhibition:hover {
    background-color: rgb(167 0 0);
    border-color: rgb(167 0 0);
}

@media (min-width: 768px) {
    #exhibitions a.link-exhibition {
        padding: 10px 20px;
        font-size: 16px;
        line-height: 20px;
    }
}

@media (min-width: 1024px) {
    #exhibitions a.link-exhibition {
        font-size: 20px;
        line-height: 24px;
    }
}

a.btn {
    font-family: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    font-weight: 500;
}

#exhibitions a.btn {
    height: 29px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    padding: 4px 6px;
    width: 111px;
    border: none;
    transition: background-color 0.3s, border-color 0.3s;
}

#exhibitions a.btn:hover {
    background-color: rgb(167 0 0);
    border-color: rgb(167 0 0);
}

@media (max-width: 1023px) {
    header {
        position: relative;
        z-index: 10000;
    }

    .menu-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 270px;
        max-width: 100%;
        z-index: 9999;
        background: #1a1a1a;
        padding: 1.5rem;
        padding-left: 0;
        overflow: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    #header-menu-toggle:checked~.menu-wrapper,
    .menu-wrapper.menu-open,
    .menu-wrapper.is-open {
        transform: translateX(0);
        pointer-events: auto;
        z-index: 10002;
    }

    .header-menu-btn-wrap {
        position: relative;
        z-index: 10001;
        isolation: isolate;
    }

    .header-menu-btn {
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .header-menu-container-mobile .menu-item-has-children.active .sub-menu,
    .header-menu-mobile .menu-item-has-children.active .sub-menu {
        display: block;
    }
}

@media (min-width: 1024px) {
    .menu-wrapper {
        display: none;
    }

    .banner-with-services .flex.flex-col.items-end>div:first-child {
        margin-bottom: 156px;
    }
}

.banner-with-services .services .services-item {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgb(255 255 255);
}

.banner-with-services .services .services-item:last-child {
    border-bottom: 1px solid rgb(255 255 255);
}

.banner-with-services .services .services-item {
    display: flex;
}

.banner-with-services .services .services-item__link {
    flex: 1;
    height: 100%;
    min-height: 100%;
}

.banner-with-services .services .services-item__link:hover {
    background-color: rgb(207 0 0);
}

@media (max-width: 1023px) {
    .banner-with-services .services .services-item {
        display: flex;
        border-left: none;
    }

    .banner-with-services .services .services-item:not(:last-child) {
        border-right: 1px solid rgb(255 255 255);
    }

    .banner-with-services .services .services-item:last-child {
        border-bottom: 1px solid rgb(255 255 255);
    }

    .banner-with-services .services {
        border-left: 1px solid rgb(255 255 255);
        border-right: 1px solid rgb(255 255 255);
    }
}

@media (min-width: 1024px) {
    .banner-with-services .services .services-item:first-child {
        border-right: none;
    }
}

#stages.stages-section {
    height: auto;
}

#stages .container-layout {
    margin-bottom: 48px;
}

@media (min-width: 1024px) {
    #stages .container-layout {
        margin-bottom: 120px;
    }
}

.stages-item.section+.stages-item.section {
    margin-top: 48px;
}

@media (min-width: 1024px) {
    .stages-item.section+.stages-item.section {
        margin-top: 120px;
    }
}