/*
Theme Name: Xijinmenhu
Author: Maciej Noworyta (Moago)
Author URI: https://moago.pl/
*/

@font-face {
    font-family: 'Alibaba PuHuiTi';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/alibaba-puhuiti/Alibaba-PuHuiTi-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/alibaba-puhuiti/Alibaba-PuHuiTi-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/alibaba-puhuiti/Alibaba-PuHuiTi-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/alibaba-puhuiti/Alibaba-PuHuiTi-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/alibaba-puhuiti/Alibaba-PuHuiTi-Heavy.woff2') format('woff2');
}

:root {
    --primary-color: #5684ca;
    --secondary-color: #ff3746;
    --text-color: #000009;
    --background-color: #f1f4f9;
    --white: #FFFFFF;
    --black: #000000;
    --font-size-base: 16px;
    --font-size-h1: 24px;
    --font-size-h2: 20px;
    --font-size-h3: 16px;
    --font-size-h4: 14px;
    --font-size-h5: 12px;
    --font-size-h6: 10px;
}

a, abbr, address, article, aside, audio, b, blockquote, body, canvas,
caption, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset,
figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header,
html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav,
object, ol, p, pre, q, samp, section, small, span, strong, sub, summary,
sup, time, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-weight: inherit;
    font-style: inherit;
}

article, aside, canvas, details, figcaption, figure, footer, header, menu, nav, section, summary {
    display: block;
}

a, ins, del {
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

strong {
    font-weight: 500;
}

caption, th {
    text-align: left;
}

* {
    outline: none;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 300ms ease-out 0s;
}

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: underline;
    outline: none;
}

html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

html, body {
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
    background: var(--background-color);
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.transition {
    opacity: 0.85;
    -webkit-transition: all 300ms ease-out 0s;
    -moz-transition: all 300ms ease-out 0s;
    -o-transition: all 300ms ease-out 0s;
    transition: all 300ms ease-out 0s;
}

.transition:hover {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1308px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

p {
    margin: 0 0 10px;
    line-height: 1.4;
}

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

.text-primary {
    color: var(--primary-color);
}

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

.font-semi-bold {
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .title {
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.title {
    margin-bottom: 0;
}

@media (min-width: 1141px) {
    .hide-on-desktop {
        display: none !important;
    }
}

@media (max-width: 1140px) {
    .hide-on-mobile {
        display: none !important;
    }
}

h1, .h1 {
    font-size: var(--font-size-h1);
}

h2, .h2 {
    font-size: var(--font-size-h2);
}

h3, .h3 {
    font-size: var(--font-size-h3);
}

h4, .h4 {
    font-size: var(--font-size-h4);
}

h5, .h5 {
    font-size: var(--font-size-h5);
}

h6, .h6 {
    font-size: var(--font-size-h6);
}

.module {
    padding: 40px 0;
}

.module-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.module-heading {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.module-heading.left {
    align-items: flex-start;
    text-align: left;
}

.module-heading.center {
    align-items: center;
    text-align: center;
}

.module-heading.right {
    align-items: flex-end;
    text-align: right;
}

.module-heading .title {
    font-size: var(--font-size-h1);
}

.module-heading .subtitle {
    width: 100%;
}

#main {
    padding-top: 64px;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 0px 25px 0px 25px;
}

.alignleft {
    float: left;
    margin: 0px 25px 0px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 25px 25px;
}

a img.alignnone {
    margin: 5px 25px 25px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 25px 25px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

@media (max-width: 1280px) {
}

@media (max-width: 768px) {
    #main {
        padding-top: 60px;
    }

    .module {
        padding: 20px 0;
    }

    .module-wrapper {
        gap: 20px;
    }

    .module-heading .title {
        font-size: var(--font-size-h2);
    }
}

@media (max-width: 1140px) {
    .section {
        padding: 48px 0;
    }
}

@media (max-width: 1140px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #main {
        padding-top: 65px;
    }
}

@media (max-width: 992px) {
    .section-heading .superscription:before {
        width: 42px;
    }

    .section-heading .superscription {
        padding-left: 66px;
        font-size: 18px;
    }

    .section-heading .title {
        font-size: 24px;
    }

    .section-heading .description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 32px 0;
    }
}
