@import "variables.css";
@import "header.css";
@import "button.css";
@import "footer.css";
@import "card.css";
@import "form.css";
@import "sidebar.css";

html,*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    height: 3px;
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-3);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

body{
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Roboto,  sans-serif;
    background: var(--color-4);
    color: white;
    margin: 0;
}

/* Отступ для админ-бара WordPress */
body.admin-bar {
    padding-top: 0;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    height: inherit;
}

a {
    text-decoration: none;
}

main {
    margin-top: 68px;
    flex: 1 0 auto;
}

/* Контейнер для контента на страницах постов */
.single main,
.single-post main {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Отступ для админ-бара WordPress */
body.admin-bar main {
    margin-top: 100px;
}

@media screen and (max-width: 782px) {
    body.admin-bar main {
        margin-top: 114px;
    }
}

/* Мобильная версия - уменьшаем отступ main */
@media (max-width: 1000px) {
    main {
        margin-top: 50px;
    }

    body.admin-bar main {
        margin-top: 82px;
    }

    @media screen and (max-width: 782px) {
        body.admin-bar main {
            margin-top: 96px;
        }
    }
}

footer {
    flex: 0 0 auto;
}


table {
    margin-block-start: 15px!important;
    margin-block-end: 15px!important;
    border-collapse: collapse;
}

table td {
    border: 1px solid white;
    padding: 10px;
}

.table_wrapper tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
}

.table_wrapper {
    overflow: auto;
}

.arrow_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;


}

.big__banner_wrapper {
    .arrow {
        left: 24px;

        &.arrow--right {
            right: 24px;
            left: auto;
        }
    }
}

.arrow {
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    background: linear-gradient( 180deg, rgb(233 238 255) 0%, rgb(208 215 255) 100% );
    cursor: pointer;
    border-radius: 12px;


    svg {
        width: 14px;
        height: 14px;

        fill: #454c8b;
    }

    &.arrow--disabled {
        opacity: 0.5;
    }
}

.navigation-wrapper {
    position: relative;
}

.navigation-wrapper .arrow.arrow--disabled {
    display: none;
}



.swiper-button-next:after, .swiper-button-prev:after {
    color: white;
    font-weight: bold;
}

.swiper-button-next {
    right: 0;
    left: auto;
}

.swiper-button-prev {
    left: 0;
    right: auto;
}

.block__head__title {
    font-size: 28px;
    color: var(--color-4);
    font-weight: bold;
}

html :where(.wp-block) {
    max-width: 100vw;
}

section {
    padding-bottom: 40px;
}

.wp-block-group p a {
    color: var(--color-4);
}

.layout_wrapper {
    display: flex;
}

.page__content_wrapper {
    flex: 1;
    max-width: calc(100vw - 230px);
    margin-left: 230px;
    transition: margin-left var(--base-transition), max-width var(--base-transition);

    .wp-block-group  a,
    main a,
    .text__more_wrapper a{
        color:  var(--color-5);
    }
}

/* Когда сайдбар закрыт (свернут) - добавляем класс aside */
body.aside .page__content_wrapper {
    margin-left: 70px;
    max-width: calc(100vw - 70px);
}



@media (max-width: 1000px) {
    .page__content_wrapper {
        max-width: 100vw;
        margin-left: 0;
        transition: none;
    }
    
    body.aside .page__content_wrapper {
        margin-left: 0;
        max-width: 100vw;
    }

    /* На мобильной версии контент не двигается при открытии сайдбара */
    body.aside__mob .page__content_wrapper {
        margin-left: 0 !important;
        max-width: 100vw !important;
        transform: none !important;
    }
}

@media (max-width: 500px) {
    .wp-block-image {
        max-width: calc(100vw - 20px);

        figure {
            width: 100%;
            display: block!important;
        }

        img {
            width: 100%;
            object-fit: contain;
        }
    }
}



