@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('fonts/oswald-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url('fonts/roboto-flex-latin-ext.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url('fonts/roboto-flex-latin.woff2') format('woff2');
}

:root {
    --color-1: #1698ba;
    --color-2: #2f3335;
    --color-3: #f4f4f4;
}
* {
    box-sizing: border-box;
    margin: 0
}
body {
    font-family: "Roboto Flex";
    background: url('pics/bg-body.webp');
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px
}
@media(max-width:800px) {
    .wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}
header {
    display: grid;
    grid-template-columns: 250px 1fr;
    margin: 30px 0;
    align-items: center;
}
header .flags {
    justify-self: end;
}
header .flags img {
    width: 24px;
}

.header-nav {
    background: var(--color-1);
}
.header-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.header-nav .menu-item-has-children {
    position: relative;
}
.header-nav .sub-menu {
    flex-direction: column;
    position: absolute;
    display: none;
    min-width: 250px;
    font-size: 14px;
}
.header-nav .menu-item-has-children:hover>.sub-menu {
    display: flex;
}
.header-nav .menu-item-has-children:hover>a {
    background: var(--color-2);
}
.header-nav .menu-item-has-children>a {
    padding-right: 30px;
}
.header-nav .menu-item-has-children>a:after {
    content: '';
    border: solid rgba(255,255,255,0.5);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    position: absolute;
    top: 16px;
    right: 10px;
}
.header-nav .sub-menu .menu-item-has-children>a:after {
    content: '';
    transform: rotate(316deg);
    top: 10px;
}

.header-nav a {
    color: white;
    display: block;
    padding: 10px 15px;
    line-height: 1.5;
}
.header-nav a:hover {
    background: var(--color-2);
}
.header-nav button {
    display: none;
}
.header-nav .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}
.header-nav .sub-menu a {
    background: var(--color-2);
    padding: 5px 15px;
}
.header-nav .sub-menu a:hover {
    background: var(--color-1);
}

@media(max-width:800px) {
    .header-nav {
        justify-content: end;
        display: flex;
        padding: 5px;
        border-radius: 5px;
    }
    .header-nav ul {
        display: none;
    }
    .header-nav button {
        display: inline-flex;
        flex-direction: column;
        width: 60px;
        height: 45px;
        justify-content: space-between;
        border: 0;
        background: var(--color-1);
        padding: 10px;
        border-radius: 3px;
    }
    .header-nav button span {
        display: block;
        background: white;
        width: 100%;
        height: 3px;
        border-radius: 1px;
    }
}

.mobile-menu {
	height: 100%;
	width: 250px;
	position: fixed;
	z-index: 3;
	top: 0;
	left: -250px;
	background-color: rgba(0,0,0,0.9);
	overflow-x: hidden;
	transition: .5s;
    font-size: smaller;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu li {
	border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu a {
	color: white;
    display: block;
    padding: 7px 10px;
}
.mobile-menu .sub-menu a {
    padding-left: 30px;
}
.mobile-menu .sub-menu .sub-menu a {
    padding-left: 60px;
    line-height: 1.5;
}
.mobile-menu .current_page_item>a {
    background: var(--color-1);
    color: white;
}

main {
    padding: 30px 0
}

main h1 {
    margin-bottom: 30px;
    font-family: "Oswald", sans-serif;
    color: var(--color-1);
}
main h2 {
    margin: 30px 0 15px 0;
    font-family: "Oswald", sans-serif;
}
main h3 {
    margin: 30px 0 15px 0;
    font-family: "Oswald", sans-serif;
}

main p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}
main ul,
main ol {
    margin-bottom: 30px;
}
main ul ul,
main ul ol {
    margin-top: 15px;
}

main li {
    line-height: 1.5;
    margin-bottom: 5px;
}
main a {
    color: var(--color-1);
}

table {
    margin-bottom: 15px;
}


.gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: start;
    margin-bottom: 30px;
}
.gallery a {
    flex-basis: 150px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    text-align: center;
    font-size: smaller;
}

.btn,
input[type="submit"] {
    background: var(--color-1);
    color: white;
    display: inline-block;
    padding: 7px 20px;
    line-height: 1.5;
    text-decoration: none;
    border: 0;
    border-radius: 3px;
    transition: 0.2s;
    font: inherit;
    cursor: pointer;
}
.btn:hover,
input[type="submit"]:hover {
    background: var(--color-2);
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.partner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    background: var(--color-3);
    padding: 15px;
    border-radius: 10px;
}
.partner figure {
    background: white;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 5px;
}
.partner h2 {
    margin-top: 0;
    font-size: medium;
}
.partner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.partner ul li:first-child {
    font-weight: 600;
}
@media(max-width:600px) {
    .partner {
        grid-template-columns: 1fr;
    }
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: smaller;
}
table th,
table td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}
table th {
    background: var(--color-3);
}
table td p:last-child {
    margin: 0;
}
table td ol:last-child,
table td ul:last-child {
    margin-bottom: 0;
}



.eu {
    background: url('/wp-content/uploads/2024/07/eu.png') no-repeat;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 215px;
    height: 150px;
    z-index: 100;
}



footer {
    border-top: 2px dashed var(--color-1);
    padding: 50px 0;
}
footer ul {
    margin: 15px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
footer ul li:first-child {
    font-weight: 700;
}
footer .cyrex {
    margin-top: 50px;
}
footer .cyrex a {
    color: var(--color-2);
    text-decoration: underline;
}


.main-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.main-page figure {
    background: url('/wp-content/uploads/2024/07/main.webp') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
}
@media(max-width:800px) {
    .main-page {
        grid-template-columns: 1fr;
    }
}


.post-box {
    background: white;
    padding: 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}
.post-box img {
    border-radius: 5px;
}
.post-box h2,
.post-box h3 {
    margin-top: 0;
    font-size: 20px;
}
@media(max-width:800px) {
    .post-box {
        grid-template-columns: 1fr;
        padding: 15px;
        margin-bottom: 15px;
        gap: 15px;
    }
}

.breadcrumb {
    margin-bottom: 30px;
}

.wpcf7-form {
    max-width: 500px;
}
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
    font: inherit;
    padding: 6px;
    border: 1px solid #ddd;
    width: 100%;
    display: block;
    border-radius: 3px;
    margin-top: 3px;
    background: white;
}
textarea {
    height: 150px;
}

input.wpcf7-not-valid,
textarea.wpcf7-not-valid {
    border-color: #dc3232;
}

.wpcf7-form-control-wrap {
    margin-bottom: 10px;
    display: block;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 10px 15px;
    border: 0;
    background: var(--color-1);
    color: white;
    border-radius: 5px;
}

.wpcf7-not-valid-tip {
    font-size: small;
    margin-top: 5px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    background: #dc3232;
}
.wpcf7 form.sent .wpcf7-response-output {
    background: #46b450;
}
.wpcf7-form.sent p {
    display: none;
}