/* #region (mobile) */

:root {
    --fontDefault: 16px;
    --fontSize: 1rem;
    --containerWidth: 75rem;
    --fillMain: #587BAF;
    --fillSecond: #FFBB00;
    --fillFont: #383838;
    --fillBg: #FFF7EE;
    --transition: ease all .24s;
    --slowTransition: ease all .5s;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    object-fit: contain;
    object-position: center;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    color: var(--fillFont);
    font-size: var(--fontDefault);
    line-height: 1.5;
    font-weight: 400;
    background-color: var(--fillBg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html.--no-scroll, body.--no-scroll {
    overflow: hidden;
}

.block, .block.swiper {
    padding: calc(var(--fontSize) * 2) 0;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--fontSize);
}

.cards {
    filter: drop-shadow(0 0 .5rem rgba(0, 0, 0, 0.10));
}

.card {
    border-radius: var(--fontSize);
    overflow: hidden;
    will-change: transform;
    background-color: white;
    color: var(--fillFont);
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

.title, .sub-title, .post-title {
    font-size: calc(var(--fontSize) * 2);
    font-weight: 400;
    font-family: Мирослав, sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
}

.block .title {
    font-size: calc(var(--fontSize) * 1.75);
}

.sub-title {
    font-size: calc(var(--fontSize) * 1.5);
}

.post-title {
    font-size: calc(var(--fontSize) * 1.25);
}

.desc {
    font-size: var(--fontSize);
}

a {
    text-decoration: none;
    color: var(--fillFont);
    transition: var(--transition);
    font-weight: 500;
}

a:hover:not(.btn) {
    color: var(--fillSecond);
}

ol, ul {
    margin: 0;
    padding: 0 0 0 calc(var(--fontSize) * 2);
}

li::marker {
    /* color: var(--fillMain); */
    font-family: Мирослав, sans-serif;
    font-weight: 400;
}

li:not(:first-child) {
    margin-top: calc(var(--fontSize) * .5);
}

.p {
    padding: var(--fontSize);
}

.pt {
    padding-top: var(--fontSize);
}

.pb {
    padding-bottom: var(--fontSize);
}

.mt {
    margin-top: var(--fontSize);
}

.mb {
    margin-bottom: var(--fontSize);
}

.mr {
    margin-right: var(--fontSize);
}

.ml {
    margin-left: var(--fontSize);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.gap {
    grid-gap: var(--fontSize);
}

.direction-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.align-stretch {
    align-items: stretch;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.temp-col-2, .temp-col-3 {
    grid-template-columns: 1fr;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: calc(var(--fontSize) * 1.5);
    text-decoration: none;
    background-color: var(--fillFont);
    border: 2px solid var(--fillFont);
    color: white;
    font-size: calc(var(--fontSize) * 1.25);
    font-weight: 400;
    font-family: Мирослав, sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    padding: 1rem 4rem;
    width: fit-content;
    height: auto;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    border-color: var(--fillFont);
    color: var(--fillFont);
    background-color: transparent;
}

.btn:active {
    transform: scale(.95);
}

.btn.--fillMain {
    background-color: var(--fillMain);
    border: 2px solid var(--fillMain);
    color: white;
}

.btn.--fillMain:hover {
    color: var(--fillFont);
    background-color: transparent;
}

picture {
    display: flex;
    position: relative;
}

picture:before {
	content: '';
	display: block;
	width: 100%;
	padding-bottom: 65%;
}

picture.vertical:before {
	padding-bottom: 125%;
}

picture img {
	position: absolute;
	top: 0;
	left: 0;
    object-fit: cover;
}

img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.swiper {
    overflow: visible !important;
    width: calc(100% - calc(2 * var(--fontSize)));
    padding: 0 calc(2 * var(--fontSize));
}

.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.swiper-pagination-bullet {
    background-color: var(--fillFont);
    width: .75rem !important;
    height: .75rem !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--fillFont) !important;
}

.swiper-slide:after {
    content: '';
    position: absolute;
    top: calc(-1 * calc(calc(var(--fontSize) * 4) / 2));
    left: 0;
    width: 100%;
    height: calc(100% + calc(calc(var(--fontSize) * 4) / 2));
    z-index: 1;
    backdrop-filter: blur(2px);
    transition: var(--transition);
}

.swiper-slide-active:after {
    opacity: 0;
    pointer-events: none;
}

.swiper .btns {
    display: none;
}

.swiper .btn.--prev, .swiper .btn.--next {
    padding: 0;
    border-radius: 100%;
    width: 4rem;
    height: 4rem;
}

.swiper .btn.--prev svg, .swiper .btn.--next svg {
    height: 50%;
    width: 100%;
}

.swiper .btn.--prev path, .swiper .btn.--next path {
    fill: white;
    transition: var(--transition);
}

.swiper .btn.--prev:hover path, .swiper .btn.--next:hover path {
    fill: var(--fillFont)
}

.swiper .btn.swiper-button-disabled {
	pointer-events: none;
	opacity: 0;
}

/* #endregion */


/* tablets (480px) */
@media (min-width: 480px) {

    :root {
        --fontSize: 1.5rem;
    }

    body::-webkit-scrollbar {
        width: 0;
        border-radius: 0;
    }

    body::-webkit-scrollbar-thumb {
        background-color: transparent;
        border-radius: 0;
    }

    .swiper-slide-next:after {
        opacity: 0;
        pointer-events: none;
    }

}


/* desktop (1024px) */
@media (min-width: 1024px) {

    :root {
        /* --fontSize: 2rem; */
    }

    html::-webkit-scrollbar-thumb {
        background-color: var(--fillFont);
        border-radius: 1rem;
    }

    html::-webkit-scrollbar {
        width: .5rem;
    }

    html::-webkit-scrollbar-track {
        background-color: transparent;
        border-radius: 1rem;
    }

    /* .block {
        padding: calc(var(--fontSize) * 2) 0;
    } */

    .block, .block.swiper {
        padding: calc(var(--fontSize) * 3) 0;
    }

    .temp-col-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .temp-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* full desktop (1366px) */
@media (min-width: 1366px) {

    :root {
        /* --fontSize: 2rem; */
    }

    /* .block, .block.swiper {
        padding: calc(var(--fontSize) * 4) 0;
    } */

    .container {
        max-width: var(--containerWidth);
        padding: 0;
    }

    .news .btns {
        display: flex;
    }

    .swiper-slide-next + .swiper-slide:after {
        opacity: 0;
        pointer-events: none;
    }

}