/* region common rules */
body, html {
    height: 100%;
}

#layout-wrapper {
    width: 100%;
    min-height: 100%;
    display: grid;
    /*height: 100%;*/
    /*height: 100vh;*/
    grid-template-rows: 144px auto auto;
    /*align-content: space-between;*/
}

body {
    font-family: var(--font-family-default);
    font-weight: 300;
    font-size: var(--font-size-main);
    line-height: 24px;
    background: var(--basic-background-color);
    color: var(--primary-text-color);
}

body.empty-mode #main-content {
    padding: 0;
}

body.empty-mode #main-content > .page-wrapper > .content-card {
    margin: 0;
    border-radius: 0;
}

.page-wrapper {
    width: 100%;
    max-width: 1440px;
    min-width: 550px;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
}

a, .a {
    color: var(--accent-text-color);
}

input, select, textarea, .content-preview {
    color: var(--primary-text-color);
    border: 1px solid var(--control-border-color);
    background: var(--content-background-color);
}

input:focus, select:focus, textarea:focus {
    border: 1px solid var(--control-accent-border-color);
}

.content-preview {
    background: var(--content2-background-color);
}

.divider {
    border-top: 1px solid var(--content-border-color);
}

.form-error-details, .form-errors-wrap {
    display: none;
}

.error-message, .warning-message {
    color: var(--warn-text-color);
}

/* endregion common rules */

/* region text */
.text-primary {
    color: var(--primary-text-color) !important;
}

.text-secondary {
    font-size: 13px;
    color: var(--secondary-text-color) !important;
}

/* endregion text */

/* region colors */
.primary-color {
    color: var(--primary-text-color) !important;
}

.secondary-color {
    color: var(--secondary-text-color) !important;
}

.accent-color {
    color: var(--accent-text-color) !important;
}

.disabled-color {
    color: var(--disabled-text-color) !important;
}

.warn-color {
    color: var(--warn-text-color) !important;
}

.highlight-color {
    color: var(--highlight-text-color) !important;
}

/* endregion colors */

/* region backgrounds */
.primary-background {
    background: var(--primary-background-color) !important;
}

.basic-background {
    background: var(--basic-background-color) !important;
}

.accent-background {
    background: var(--accent-background-color) !important;
}

.disabled-background {
    background: var(--disabled-background-color) !important;
}

.warn-background {
    background: var(--warn-background-color) !important;
}

.highlight-background {
    background: var(--highlight-background-color) !important;
}

/* endregion backgrounds */

/* region color-style */
.primary-style-colors {
    background: var(--primary-background-color) !important;
    color: var(--white-text-color) !important;
}

.accent-style-colors {
    background: var(--accent-background-color) !important;
    color: var(--white-text-color) !important;
}

.warn-style-colors {
    background: var(--warn-background-color) !important;
    color: var(--white-text-color) !important;
}

.grey-style-colors {
    background: var(--content3-background-color) !important;
    color: var(--content-text-color) !important;
}

.primary-light-style-colors {
    background: var(--primary-light-background-color) !important;
    color: var(--primary-light-text-color) !important;
}

.accent-light-style-colors {
    background: var(--accent-light-background-color) !important;
    color: var(--accent-light-text-color) !important;
}

.warn-light-style-colors {
    background: var(--warn-light-background-color) !important;
    color: var(--warn-light-text-color) !important;
}

/* endregion color-style */

/* region header */
#header {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
    display: block;
    z-index: 2;
}
body.header-overlay #header{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
body.header-overlay #layout-wrapper{
   grid-template-rows: auto auto;
}
#header section {
    -padding: 0 32px;
}

#header #top-menu-button {
    display: none;
}

/* top-logo */
#top-logo {
    color: var(--white-text-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    font-size: 21px;
    line-height: 21px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#top-logo img {
    height: 52px;
    margin-right: 10px;
}

#header-row-1 {
    background: var(--accent-background-color);
    color: var(--secondary-text-color);
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#header-row-1 .page-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* header-nav-1 */
#header-nav-1 {
    font-size: 24px;
    line-height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

#header-nav-1 > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

#header-nav-1 > ul > li {
    color: var(--icon2-color);
    margin-left: 8px;
    min-width: 40px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

#header-nav-1 > ul > li:first-child {
    margin-left: 0;
}

#header-nav-1 > ul > li > a,
#header-nav-1 > ul > li > noa,
#header-nav-1 > ul > li > button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    font-size: 0;
    color: inherit;
}

#header-nav-1 > ul > li > .badge {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
}

#header-nav-1 > ul > li > a{
    position: relative;
}

#header-nav-1 > ul > li > a >.badge,
#header-nav-1 > ul > li > noa >.badge,
#header-nav-1 > ul > li > .a >.badge {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
}

#header-nav-1 > ul > li > button > i {
    font-size: 19px;
    line-height: 19px;
}

#header-nav-1 > ul > li > a:hover:after {
    background: var(--hover-background-color);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
#header nav ul > li > .button,#footer nav ul > li > .button  {
    padding: 0 32px;
    font-size: 14px;
    line-height: 40px;
    min-height:40px;
    height: 40px;
}

#header-nav-1 > ul > li > a > i {
    font-size: 19px;
    line-height: 19px;
}
#header-nav-1 > ul > li > noa > i {
    font-size: 21px;
    line-height: 21px;
}

#header-nav-1 > ul > li ul {
    background: var(--content-background-color);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
    color: var(--dropdown-text-color);
    border-radius: 4px;
    font-size: 14px;
    line-height: 24px;
    padding: 8px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
}

#header-nav-1 > ul > li li {
    padding: 0;
    width: 100%;
    white-space: nowrap;
}

#header-nav-1 > ul > li li:hover {
    background: var(--hover2-background-color);
}

#header-nav-1 > ul > li li a,
#header-nav-1 > ul > li li span {
    padding: 0 16px;
    min-height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
#header-nav-1 > ul > li li a{
    width: auto;
    color: inherit !important;
}

#header-nav-1 > ul > li li a i {
    color: rgb(100, 116, 139);
    font-size: 19px;
    line-height: 19px;
    margin-right: 5px;
    min-width: 19px;
}

/* header-row-2 */
#header-row-2 {
    background: var(--content-background-color);
    height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

#header-row-2 .page-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* header-nav-2 */
#header-nav-2 > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

#header-nav-2 > ul > li {
    margin: 0;
}

#header-nav-2 > ul > li > a {
    color: var(--primary-text-color);
    width: 100%;
    height: 48px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

#header-nav-2 > ul > li > a > i {
    color: var(--icon-color);
    font-size: 19px;
    line-height: 19px;
    margin-right: 12px;
    margin-top: -3px;
    position: relative;
}

#header-nav-2 > ul > li:hover > a {
    background: var(--hover3-background-color);
    border-radius: 4px;
}
nav > ul > li:hover > a.button {
    border-radius: 24px!important;
    color:var(--content-text-color)!important;
    background:var(--content-background-color)!important;
}

nav > ul > li a.button.primary,
nav  > ul > li:hover > a.button.primary {
    background: var(--primary-background-color)!important;
    color: var(--white-text-color)!important;
}
nav  > ul > li a.button.accent,
nav > ul > li:hover > a.button.accent{
    color: var(--white-text-color)!important;
    background: var(--accent-background-color)!important;
}
nav > ul > li a.button.warn,
nav > ul > li:hover > a.button.warn{
    color: var(--white-text-color)!important;
    background: var(--warn-background-color)!important;
}

#header-nav-2 > ul > li > a > span > strong {
    display: none;
}

/* endregion header */

/* region footer */
/* footer */
#footer {
    background: var(--content-background-color);
    color: var(--secondary-text-color);
    padding: 30px 0;
    overflow: hidden;
    align-self: end;
}

#footer #footer-nav {
    padding: 0 32px 20px 32px;
    color: var(--primary-text-color);
}

#footer #footer-nav .row {
    align-items: flex-start;
}

#footer #footer-nav nav {
    margin-left: 70px;
}

#footer #footer-nav nav:first-of-type {
    margin-left: 0;
}

#footer #footer-row-1 {
    /*height: 80px;*/
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px;
    line-height: 21px;
    font-weight: 500;
    padding: 0 32px;
    margin: 30px 0 0 0;
}

#footer #footer-row-1 .adv {
    color: var(--primary-text-color);
}

#footer #footer-row-1 .page-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#footer #bottom-logo {
    margin: 0 40px 0 0;
}

#footer #bottom-logo img {
    height: 75px;
}

#footer-nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

#footer-nav > ul > li {
    margin: 0;
}

#footer-nav > ul > li > a {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

#footer-socials {
    margin: 20px 0 0 0;
}

#footer-socials ul {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

#footer-socials ul a {
    font-size: 24px;
    line-height: 24px;
    text-transform: capitalize;
    color: var(--secondary-text-color);
}

#footer-socials ul a i + span {
    font-size: 0;
}

#footer .form-title{
    margin: 10px 0;
    text-align: center;
    font-size: 32px;
}

/* endregion footer */

/* region main */

#main {
    width: 100%;
    overflow: hidden;
}

/* breadcrumbs */
#main .breadcrumbs {
    margin-bottom: 8px;
}

#main .breadcrumbs a,
#main .breadcrumbs span {
    color: var(--accent-text-color);
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
}

#main .breadcrumbs > li:before {
    color: var(--icon-color);
    content: "";
    background: url('/common/images/crumps-delimiter.svg');
    padding: 10px 11px 11px 11px;
    background-size: 20px 20px;
    opacity: 0.5;
    margin-right: 5px;
}

#main .breadcrumbs > li {
    margin-left: 5px;
}

#main .breadcrumbs>li:first-of-type {
    margin-left: 0;
}

#main .page-wrapper{
    padding: 0 32px;
}
#main section {
    -padding: 32px;
}

#main section section {
    padding: 0;
    margin: 0;
}

#main .page-description {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--content-border-color);
}


/* endregion main */

/* region title */
.page-title {
    color: var(--primary-text-color);
}

.page-title,
.page-title:not(:first-child) {
    font-size: 32px;
    line-height: 32px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.page-title i {
    color: var(--icon-color);
    margin-right: 8px;
    font-size: 28px;
    margin-top: 10px;
}

.page-title-description {
    color: var(--secondary-text-color);
}


/* endregion title */

/* region section */
.section-title {
    color: var(--primary-text-color);
    margin: 28px 0;
}

.section-title i {
    color: var(--icon-color);
    margin-right: 8px;
}

.section-title.with-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.section-title.with-link a {
    text-decoration: none;
    color: var(--accent-text-color);
}

.section-description {
    font-size: 16px;
    line-height: 21px;
    margin: 10px 0 20px 0;
}

#main-content > .page-wrapper > .content-card {
    margin-bottom: 0;
    overflow: hidden;
}

/*#main-content > .page-wrapper > .content-card > .content-wrapper > section {*/
/*    margin: 0 -40px;*/
/*    padding: 40px;*/
/*}*/

/*#main-content > .page-wrapper > .content-card > .content-wrapper > section:first-child {*/
/*    margin-top: -40px;*/
/*}*/

/*#main-content > .page-wrapper > .content-card > .content-wrapper > section:last-child {*/
/*    margin-bottom: -40px;*/
/*}*/

#main-content > .page-wrapper > .content-card > .content-wrapper > section > .page-wrapper {
    width: 100%;
    max-width: initial;
    min-width: initial;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .section-top-content {
    font-size: 16px;
    line-height: 21px;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .section-bottom-content {
    font-size: 16px;
    line-height: 21px;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-wo-gap {
    gap: 0;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns > .custom-block-item {
    height: 100%;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns > .custom-block-item-with-bg {
    padding: 32px;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .section-top-content h2,
#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .section-top-content h2 {
    color: var(--primary-text-color);
    margin: 28px 0;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns > .custom-block-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-content {
    order: 1;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image-left {
    order: 0;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image-right {
    order: 2;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image {
    padding: 0;
    min-height: 100%;
}

#main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image img {
    height: 100%;
    width: 100%;
    object-position: center;
}

/* endregion */

/* region lang-widget */
#header .lang-widget i {
    font-size: 20px;
}

#header .lang-widget .lang-widget-current-title {
    font-size: 14px;
    line-height: 14px;
}

#header .lang-widget img.country-flag {
    height: 20px;
    margin-bottom: 3px;
}

#header .lang-widget .lang-widget-current-title {
    display: none;
}

/* endregion lang-widget */

/* region searchbox */
/* header searchbox */
#header-nav-1 .search-box {
    padding-right: 10px;
}

#search-box {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 43px;
    overflow: hidden;
}

#search-box.active {
    width: auto;
    overflow: visible;
}

#search-box #form-search {
    display: none;
    position: relative;
}

#search-box.active #form-search {
    display: flex;
}

#search-box.active #search-show {
    display: none;
}

#search-box i {
    color: var(--icon-color);
}

#search-box button {
    background: none;
    padding: 0 10px;
    margin: 0;
    box-shadow: none;
    min-height: auto;
    cursor: pointer;
    position: relative;
    min-width: 41px;
}

#search-box button:hover:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: var(--hover-background-color);
}

#search-box input {
    background: none;
    border: none;
    outline: none;
    display: block;
    width: 400px;
    color: var(--white-text-color);
    line-height: 14px;
    min-height: auto;
}

#search-box #form-search #search-results-box {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1;
    background: var(--content-background-color);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
    color: var(--dropdown-text-color);
    border-radius: 8px;
    width: 100%;
}

#search-box #form-search.initialized #search-results-box {
    display: block;
}

#search-box #form-search #search-results-box ul {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    color: inherit;
    padding: 0;
    border-bottom: 1px solid var(--content-border-color);
}

#search-box #form-search #search-results-box ul li.selected {
    background: var(--hover2-background-color);
}

#search-box #form-search #search-results-box ul li a {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

#search-box #form-search #search-results-box ul li a span {
    padding: 0;
}

#search-box #form-search #search-results-box ul li .item-name {
    width: 100%;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

#search-box #form-search #search-results-box ul li .item-price {
    width: 100px;
    flex-shrink: 0;
    padding-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#search-box #form-search #search-results-box .link {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0;
}

#search-box #form-search #search-results-box .link:hover:after{
    display: none;
}

#search-box #form-search #search-results-box .link i {
    margin-left: 10px;
    vertical-align: middle;
}

#search-box #form-search #search-results-box .tip {
    min-height: 48px;
    font-size: 16px;
    padding: 0 16px;
    line-height: 48px;
    border-bottom: 1px solid var(--content-border-color);
}

#search-box #form-search #search-results-box .tip.error {
    color: var(--warn-text-color);
    font-weight: 500;
}

#search-box #form-search #search-results-box .tip.preloader {
    position: relative;
    padding-left: 48px;
}

#search-box #form-search #search-results-box .tip.preloader:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    display: block;
    border: 3px solid var(--primary-background-color);
    border-bottom: none;
    border-radius: 100%;
    animation: preloader 1.2s linear infinite;
}

/* endregion searchbox */

/* region preloader */
.preloading {
    position: relative;
    min-height: 40px;
}

.preloading:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border: 3px solid var(--primary-background-color);
    border-bottom: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    animation: preloader 1.2s linear infinite;
}

@keyframes preloader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* endregion preloader */

.iti__country-list{
    background: var(--content-background-color);
    border-color: var(--control-border-color);
    border-radius: 0 0 4px 4px;
}

.iti__country.iti__highlight{
    background-color: var(--primary-background-color);
}

.iti__divider{
    border-color: var(--control-border-color);
    padding-bottom: 0;
    margin-bottom: 0;
}
@media (max-width: 960px) {
    .page-wrapper {
        min-width: auto;
    }
    #main #main-content>,
    #header section{
        padding: 0 10px;
    }

    .content-card .content-card-header {
        padding: 22px 20px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .content-card > .content-wrapper {
        overflow: initial;
    }

    #layout-wrapper {
        grid-template-rows: 80px auto auto;
    }

    #header-row-2 {
        position: fixed;
        left: 0;
        top: 81px;
        display: none;
        height: auto;
        padding: 25px 0 25px 0 !important;
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
        min-width: 400px;
        background: var(--accent-background-color);
    }
    #header-nav-2 > ul > li > a {
        justify-content: center;

    }

    #header #top-menu-button {
        display: block;
        /*position: absolute;*/
        background: none;
        box-shadow: none;
        color: inherit;
        width: auto;
        min-width: auto;
        border-radius: 0;
        padding: 0;
        font-size: 26px;
        order: 1;
        flex-shrink: 0;
    }
    #header #top-logo span {
        display: none;
    }
    .top-menu #header-row-2 {
        display: block;
    }
    #top-menu-button i.fa-bars {
        display: block;
    }

    #top-menu-button i.fa-xmark {
        display: none;
    }
    .top-menu #top-menu-button i.fa-xmark {
        display: block;
    }
    .top-menu #top-menu-button i.fa-bars {
        display: none;
    }
    .top-menu #header #top-menu-button:before {
        position: fixed;
        top: 80px;
        left: 0;
        bottom: 0;
        right: 0;
        content: "";
        background: rgba(0, 0, 0, 0.3);
    }
    #header .row {
        margin-left: auto;
        margin-right: 10px;
    }
    #header-row-2 nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    #header-nav-1 > ul > li {
        margin-left: 0;
    }
    #header-row-2 nav,
    #header-nav-2 > ul > li,
    #header-nav-2 > ul > li > a {
        width: 100%;
    }
    #header nav > ul > li > a.button,
    #footer nav > ul > li > a.button{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    #header-nav-2 > ul > li > a {
        padding: 0 30px;
        color: var(--secondary-text-color);
    }
    #header-nav-2 > ul > li > a.button {
        color:initial;
    }
    #search-box input {
        width: auto;
    }

    #footer-socials ul {
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .page-title, .page-title:not(:first-child) {
        font-size: 26px;
        line-height: 26px;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-5{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }


}

@media (max-width: 800px) {
    input, textarea, select, .content-preview {
        min-height: 32px;
        line-height: 32px;
        padding: 0 10px;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-5,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-4{
        grid-template-columns: 1fr 1fr 1fr;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns{
        grid-template-columns: 1fr;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image-left {
        order: 0;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block.custom-block-with-image .grid-columns > .custom-block-item-image-right {
        order: 0;
    }

    #main #main-content {
         margin: 0;
    }
}

@media (max-width: 768px) {
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-2,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-2-1,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-3,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-3-1,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-4,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-4-1,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-2-1,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-3-1,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-1-4-1 {
        grid-template-columns: 1fr;
    }
    #footer{
        padding: 0;
        text-align: center;
    }
    #footer #footer-row-1{
        margin: 0;
    }
}

@media (max-width: 600px) {
    #footer #footer-nav .page-wrapper > .row > .row {
        flex-direction: column;
        align-items: flex-end;
    }

    #footer #footer-nav nav {
        margin-left: 0;
    }
    #footer #footer-nav ,#footer #footer-row-1{
        padding: 0;
    }
    #footer #footer-nav nav ul {
        align-items: flex-end;
    }

    #footer-socials {
        max-width: 200px;
    }

    #footer #footer-row-1 .page-wrapper {
        flex-direction: column-reverse;
    }

    #footer #footer-row-1 .copy,
    #footer #footer-row-1 .adv {
        margin: 0 0 20px 0;
    }

    #main section {
        padding: 0;
    }

    #main-content>.page-wrapper>.content-card>.content-card-header{
        padding: 20px;
    }
    #main-content>.page-wrapper>.content-card>.content-wrapper{
        padding: 20px;
    }
    #layout-wrapper #header-row-1 .page-wrapper{
        padding: 0;
    }
    #header section,
    #footer section {
        padding: 0 20px!important;
    }

    button, .button {
        padding: 0 20px;
        min-height: 30px;
        line-height: 30px;
    }

    .modal-window {
        padding: 10px;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-5,
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-4{
        grid-template-columns: 1fr 1fr;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns.grid-columns-3{
        grid-template-columns: 1fr;
    }
    .section-title.with-link{
        flex-direction: column;
        gap: 10px;
    }
   .section-title.with-link a{
        font-size: 14px;
        display: block;
        text-align: right;
    }
}

@media (max-width: 450px) {
    /*#main-content > .page-wrapper > .content-card > .content-wrapper {*/
    /*    padding: 0;*/
    /*}*/

    #main-content > .page-wrapper > .content-card > .content-wrapper > section{
        margin: 22px 0;
        padding: 0 10px;
    }
    #main-content > .page-wrapper > .content-card > .content-wrapper > section:first-child{
        margin-top: 0;
    }

    #main-content > .page-wrapper > .content-card > .content-wrapper > section:last-child{
        margin-bottom: 22px;
    }
    #footer .page-wrapper{
        padding: 0;
   }
    #footer #footer-nav .page-wrapper > .row {
        flex-direction: column;
        align-items: center;
    }

    #footer #footer-nav .page-wrapper > .row > div {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin: 0 0 20px 0;
        width: 100%;
    }

    #footer #footer-nav .page-wrapper > .row > .row {
        width: 100%;
    }

    #footer #footer-nav .page-wrapper > .row > .row,
    #footer #footer-nav nav ul {
        align-items: center;
    }

    #footer-socials ul {
        margin-top: 0;
    }

    #footer-socials ul a {
        font-size: 18px;
        line-height: 18px;
    }
    #footer #bottom-logo{
         margin: 0;
    }
    #main-content > .page-wrapper > .content-card > .content-wrapper > section.custom-block .grid-columns{
        grid-template-columns: 1fr!important;
    }
}
