/* ================================================== */
/* variables */
:root {
  --max-width-container: 1400px;
  --menu-width: 400px;
  --stripes-width: 71.3%;
  --font-family: "e-Ukraine";
  --text-color: #242e33;
  --link-color: #00aaff;
  --main-blue: #295f92;
  --main-yellow: #ffc700;
  --main-box-shadow: 0px 20px 80px rgb(55 92 111 / 10%);
}

/* ================================================== */
/* html */
html {
  height: 100%;
}

/* ================================================== */
/* body */
body {
  height: 100%;
  font-family: var(--font-family);
  overflow-x: hidden;
}

body._menu-open {
  overflow-y: hidden;
}

/* ================================================== */
/* container */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================== */
/* wrapper */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ================================================== */
/* main */
.main {
  flex: 1 0 auto;
  margin-top: 80px;
}

/* ================================================== */
/* titles */
.title {
  font-size: 36px;
}

.sub-title {
  font-size: 24px;
}

@media (max-width: 1400px) {
  .title {
    font-size: calc(26px + (12 * 1.3) * ((100vw - 320px) / 1400));
  }

  .sub-title {
    font-size: calc(24px + (4 * 1.3) * ((100vw - 320px) / 1400));
  }
}

/* ================================================== */
/* header */
.header {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 10;
  background: linear-gradient(to right, rgb(45, 115, 181), rgb(31, 81, 127));
}

.header__container {
  height: 100%;
}

.header__body {
  display: flex;
  column-gap: 60px;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* ================================================== */
/* header logo */
.logo {
  display: flex;
  column-gap: 10px;
  flex: 0 0 230px;
  align-items: center;
}

.logo-flag {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-flag__blue,
.logo-flag__yellow {
  width: 10px;
  height: 20px;
}

.logo-flag__blue {
  background-color: var(--main-blue);
}

.logo-flag__yellow {
  background-color: var(--main-yellow);
}

.logo__image.header-logo__image img{
  max-height: 4em;
}

.logo__text {
  font-family: "Kyiv Type Sans";
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
}

.logo__image.header-logo__image img{
    width: auto;
}

.header-logo__text {
  color: #fff;
}

/* ================================================== */
/* header contacts */
.contacts-header {
  flex: 1 1 auto;
  display: flex;
  column-gap: 40px;
  justify-content: flex-end;
  align-items: center;	
}

.contacts-header__column {
  text-align: right;
}

.contacts-header__text {
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
}

@media (any-hover: hover) {
  a.contacts-header__text:hover {
    text-decoration: underline;
  }
}

/* ================================================== */
/* header menu button */
.menu-button-open {
  flex: 0 0 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 5px;
}

.menu-button-open__text {
  color: #fff;
}

.menu-button-open__burger {
  position: relative;
  width: 35px;
  height: 25px;
}

.menu-button-open__burger span {
  position: absolute;
  left: 0;
  top: calc(50% - 1.5px);
  width: 100%;
  height: 3px;
  transition: all 0.3s ease 0s;
  background-color: #fff;
}

.menu-button-open__burger span:first-child {
  top: 0;
}

.menu-button-open__burger span:last-child {
  top: calc(100% - 3px);
}

/* ================================================== */
/* stripes */
.stripes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.stripes__container {
  height: 100%;
}

.stripes__body {
  height: 100%;
}

.stripes__wrapper {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.stripes__item {
  width: 1px;
  height: 100%;
  background-color: #cee6f2;
}

/* ================================================== */
/* menu */
body._bg-filter::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  opacity: 0.4;
  background-color: #000;
  z-index: 15;
}

.main-menu {
  position: fixed;
  /* top: 0; */
  left: 100%;
  width: var(--menu-width);
  max-width: 100vw;
  height: 100%;
  margin-right: 0;
  transition: left 0.3s linear 0s;
  z-index: 20;
  background-color: #fff;
}

body._menu-open .main-menu {
  left: calc(100% - var(--menu-width));
  overflow-y: auto;
}

.menu__button-wrapper {
  min-height: 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 15px 0 0;
}

.menu-button-close {
  position: relative;
  width: 35px;
  height: 25px;
}

.menu-button-close span {
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-blue);
}

.menu-button-close span:first-child {
  transform: rotate(45deg);
}

.menu-button-close span:last-child {
  transform: rotate(-45deg);
}

.menu__body {
  padding-bottom: 70px;
}

.menu__item_lvl_1 {
  position: relative;
  padding: 15px 0 15px 65px;
}

.menu__item_lvl_1 .menu__link {
  font-size: 22px;
  position: relative;
  display: block;
  margin-right: 15px;
}

.menu__item_lvl_1::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  width: 50px;
  height: 1px;
  background-color: var(--main-yellow);
}

.menu__item_lvl_1.menu__item_active::before {
  background-color: var(--main-blue);
}

.menu__link {
  color: var(--main-blue);
}

.menu__link._icon-arrow-down::before {
  content: "\e900";
  font-family: "icons";
  position: absolute;
  top: 6px;
  right: 0;
  font-size: 12px;
  transition: transform 0.3s;
}

.menu__link._active._icon-arrow-down::before {
  transform: rotate(-180deg);
}

@media (any-hover: hover) {
  .main-menu .menu__link:hover {
    color: var(--main-yellow);
  }
}

.sub-menu__list {
  margin: 15px 0 0 0;
}

.menu__item_lvl_2 {
  padding: 0 0 15px 0;
}

.menu__item_lvl_2 .menu__link {
  font-size: 18px;
}

/* ================================================== */
/* main */

/* ================================================== */
/* greeting */
.greeting {
  display: flex;
  max-width: 1184px;
  max-height: 452px;
  margin-bottom: 70px;
}

/* ================================================== */
/* slider */
.swiper {
  flex: 0 1 804px;
  height: 100%;
  margin: 0;
}

.swiper-slide img {
  width: 100% !important;
  height: 100% !important;
}

.swiper-pagination {
  text-align: right;
  padding: 0 30px 5px 0;
}

.swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  margin: 0 7px !important;
  border-radius: 0;
  opacity: 1;
  background-color: var(--main-yellow);
}

.swiper-pagination-bullet-active {
  background-color: #fff;
}

/* ================================================== */
/* latest news */
.latest-news {
  flex: 0 1 380px;
  min-height: 100%;
  padding: 50px 60px;
  box-shadow: var(--main-box-shadow);
  background-color: #fff;
}

.latest-news__header {
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 30px 0;
}

.news:not(:last-child) {
  margin: 0 0 20px 0;
}

.news__date {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #829199;
}

.news__title {
  font-size: 14px;
  color: var(--main-blue);
}

@media (any-hover: hover) {
  .news__title:hover {
    text-decoration: underline;
  }
}

/* ================================================== */
/* main themes */
.main-themes {
  margin-bottom: 70px;
}

.main-themes__row {
  display: grid;
  grid-template: 1fr / repeat(3, minmax(auto, 395px));
  justify-content: space-between;
  column-gap: 30px;
}

.main-themes-item {
  display: block;
  padding: 50px 60px;
  transition: box-shadow 0.3s;
  box-shadow: var(--main-box-shadow);
  background-color: #fff;
}

@media (any-hover: hover) {
  .main-themes-item:hover {
    box-shadow: 0px 20px 80px rgb(55 92 111 / 25%);
  }

  .main-themes-item:hover .main-themes-item__title {
    color: var(--main-yellow);
  }
}

.main-themes-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.main-themes-item__title {
  margin-bottom: 20px;
  color: var(--main-blue);
  transition: color 0.3s;
}

.main-themes-item__text {
  font-size: 14px;
  line-height: 180%;
  color: var(--text-color);
}

/* ================================================== */
/* latest posts */
.last-post {
  margin-bottom: 70px;
  padding: 0 70px 0 60px;
}

.last-post__title {
  margin-bottom: 30px;
  color: var(--main-blue);
}

@media (any-hover: hover) {
  .last-post__title a:hover {
    text-decoration: underline;
  }
}

.last-post__text {
  font-size: 16px;
  line-height: 180%;
  color: var(--text-color);
}

.last-post__text p:not(:last-child) {
  margin-bottom: 15px;
}

.last-post__text p a {
  color: var(--link-color);
  text-decoration: none;
}

@media (any-hover: hover) {
  .last-post__text p a:hover {
    text-decoration: underline;
  }
}

.recent-post {
  display: block;
  padding: 40px 60px;
  box-shadow: var(--main-box-shadow);
  transition: box-shadow 0.3s;
  background-color: #fff;
}

.recent-post {
  margin-top: 70px;
}

.recent-post__title {
  position: relative;
  padding-right: 45px;
  color: var(--link-color);
  transition: color 0.3s;
}

@media (any-hover: hover) {
  .recent-post:hover {
    box-shadow: 0px 20px 80px rgb(55 92 111 / 25%);
  }

  .recent-post:hover .recent-post__title {
    color: var(--main-yellow);
  }
}

._icon-arrow-right::before {
  content: "\ea3c";
  font-family: "icons";
  position: absolute;
  top: 3px;
  right: 0;
  width: 30px;
  height: 30px;
  color: var(--main-yellow);
}

/* ================================================== */
/* category type format */
.category {
  flex: 0 0 var(--stripes-width);
}

.category__title {
  padding: 0 60px;
  color: var(--main-blue);
}

/* ================================================== */
/* page and post type formats */
.main__body {
  display: flex;
  margin-top: 50px;
}

.page {
  flex: 0 0 var(--stripes-width);
  padding: 0 60px;
}

.page__title {
  color: var(--main-blue);
  font-weight: 600;
}

/* ================================================== */
/* page content */
/* .page__content {
  padding: 0 60px;
} */

.page__content > :is(h1, h2, h3, h4, h5, h6) {
  margin: 50px 0 30px 0;
  font-weight: 600;
}

/* ================================================== */
/* page content headings */
.page__content h2 {
  font-size: 32px;
}

.page__content h3 {
  font-size: 28px;
}

.page__content h4 {
  font-size: 24px;
}

.page__content h5 {
  font-size: 20px;
}

.page__content h6 {
  font-size: 18px;
}

.page__content > p {
  margin-top: 20px;
}

.page__content p {
  font-size: 16px;
  line-height: 180%;
  color: var(--text-color);
}

.page__content a {
  color: var(--main-blue);
  text-decoration: underline;
}

@media (any-hover: hover) {
  .page__content a:hover {
    text-decoration: none;
  }
}

.page__content blockquote {
  position: relative;
  left: -60px;
  width: calc(100% + 120px);
  margin: 40px 0;
  padding: 30px 60px;
  box-shadow: var(--main-box-shadow);
  background-color: #fff;
}

.page__content blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 100%;
  background-color: #D2EAF7;
}

/* ================================================== */
/* page content images without caption */
.page__content img.alignleft, 
.page__content img.alignright {
  max-width: 50%;
  margin-bottom: 20px;
}

.page__content img.alignleft {
  float: left;
  margin-right: 50px;
}

.page__content img.alignright {
  float: right;
  margin-left: 50px;
}

.page__content img.aligncenter {
  max-width: 75%;
}

.page__content p:has(img.aligncenter) {
  text-align: center;
}

.page__content img.alignnone {
  width: 100%;
}

/* ================================================== */
/* page content images with caption */
.page__content figure {
  margin: 0;
}

.page__content .wp-caption {
  margin-top: 20px;
}

.page__content .wp-caption.alignleft,
.page__content .wp-caption.alignright {
  max-width: 50%;
  width: initial !important;
}

.page__content .wp-caption.alignleft {
  float: left;
  margin-right: 50px;
}

.page__content .wp-caption.alignright {
  float: right;
  margin-left: 50px;
}

.page__content .wp-caption.aligncenter {
  max-width: 100%;
  width: initial !important;
  text-align: center;
}

.page__content .wp-caption-text {
  margin-top: 5px;
  color: #667780;
  text-align: center;
  font-size: 14px;
}

/* ================================================== */
/* page content ul, ol, li */
.page__content :where(ul, ol) {
  margin-top: 20px;
  padding-left: 26px;
}

.page__content ul {
  list-style-type: square;
}

.page__content ol {
  list-style-type: decimal;
}

.page__content li {
  line-height: 180%;
}

.page__content li:not(:first-child) {
  margin-top: 25px;
}

.page__content ol li::marker {
  font-size: 20px;
  color: var(--main-blue);
  line-height: 180%;
}

.page__content ul li::marker {
  font-size: 20px;
  color: var(--main-yellow);
  line-height: 180%;
}

/* ================================================== */
/* page content google map */
.page__content > p:has(iframe) {
  position: relative;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
}

.page__content > p iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ================================================== */
/* sidebar */
.sidebar {
  flex: 1 1 auto;
  padding-left: 30px;
}

.sidebar__widget:not(:first-child) {
  margin-top: 60px;
}

.widgettitle {
  font-size: 20px;
  color: var(--main-blue);
}

.sidebar__widget > div {
  margin-top: 22px;
}

.sidebar .menu {
  padding-left: 18px;
  list-style: disc;
}

.sidebar .menu-item:not(:first-child) {
  margin-top: 15px;
}

.sidebar .menu-item a {
  font-size: 16px;
  color: var(--link-color);
}

.sidebar .menu-item::marker {
  color: var(--main-yellow);
}

@media (any-hover: hover) {
  .sidebar .menu-item:hover a {
    color: var(--main-yellow);
  }
}

.category__no-posts {
  padding: 0 60px;
  color: var(--text-color);
}

/* ================================================== */
/* post gallery */
.page__content .gallery {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
  gap: 10px;
  margin-top: 20px;
}

.page__content .gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(250px, 1fr));
}

.page__content .gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

.page__content .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-icon {
  width: 100% !important;
  overflow: hidden;
}

.page__content .gallery-item img {
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .page__content .gallery-item img:hover {
    transform: scale(1.1);
  }
}

/* ================================================== */
/* pagination */
.pagination {
  margin-top: 30px;
  padding: 0 60px;
}

.pagination .nav-links {
  text-align: center;
}

.page-numbers {
  display: inline-block;
  padding: 5px 10px;
  color: var(--main-blue);
}

@media (any-hover: hover) {
  .page-numbers:hover {
    color: var(--main-yellow);
  }
}

.page-numbers.current {
  font-size: 22px;
  color: var(--main-yellow);
}

/* ================================================== */
/* footer */
.footer {
  margin-top: 50px;
  padding: 40px 0 40px 0;
  background-color: #e9eff2;
}

.footer__info {
  display: flex;
  column-gap: 50px;
  justify-content: space-between;
}

/* ================================================== */
/* footer logo */
.footer__logo {
  flex: 0 0 250px;
  height: 49.4px;
}

.footer-logo__text {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--main-blue);
}

/* ================================================== */
/* footer menu */
.footer-menu__item {
  padding: 10px 0;
}

.footer-menu__link {
  font-size: 12px;
  color: var(--main-blue);
}

.footer-menu__link:hover {
  text-decoration: underline;
}

@media(min-width: 951px){
  footer .sidebar__widget:not(:first-child){
    margin-top: 0;
  }
  footer .sidebar__widget{
    max-width: 25%;
  }
  footer .sidebar__widget{
    font-size: 12px;
  }
}
footer .stripes__body{
  width: 100%;
}
footer .sidebar__widget{
  color: var(--text-color);
}
footer .sidebar__widget > div{
  margin-top: 10px;
}
footer .textwidget{
  line-height: 1.6;
  text-wrap: balance
}
footer .textwidget a{
  color: var(--main-blue);
}
footer .textwidget a:hover{
  text-decoration: underline;
}
footer .textwidget hr{
  border-top: 1px solid var(--main-blue);
  margin-bottom: 1em;
}
footer .textwidget > p:not(:last-child){
  margin-bottom: 1em;
}

/* ================================================== */
/* footer copyright */
.footer-copyright {
  margin-top: 40px;
}

.footer-copyright__text {
  font-size: 12px;
  color: #667780;
}

/* ================================================== */
/* wpadminbar */
#wpadminbar {
  position: fixed;
}

.pr{
  position: relative;
}
.page__content .accordion__tt{
  margin: 0 0;
  cursor: pointer;
}
.accordion__tt::before{
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -ms-transition: -ms-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  position: absolute;
  top: 50%;
  right: 0;
}
.accordion__tt.active::before{
  -webkit-transform: rotate(-180deg);
  -moz-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
  transform: rotate(-180deg);
}
.accordion__tt::after{
  content: '';
  display: block;
  position: absolute;
}
.accordion__tx{
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.3s ease-out;
  -moz-transition: max-height 0.3s ease-out;
  -ms-transition: max-height 0.3s ease-out;
  transition: max-height 0.3s ease-out;
}
.accordion__tx > div{
  border-top: 1px solid #ccc;
}

@media(min-width: 993px){
  .accordion__item{
    margin-top: 40px;
  }
  .page__content .accordion__tt{
    font-size: 22px;
  }
  .accordion__tt::before{
    margin-top: -9px;
    font-size: 18px;
  }
  .accordion__tt::after{
    top: -30px;
    bottom: -30px;
    left: -35px;
    right: -35px;
  }
  .accordion__tx > div{
    padding-top: 30px;
    margin-top: 30px;
  }
}

@media(max-width: 992px){
  .accordion__item{
    margin-top: 20px;
  }
  .page__content .accordion__tt{
    font-size: 22px;
  }
  .accordion__tt::before{
    margin-top: -8px;
    font-size: 16px;
  }
  .accordion__tt::after{
    top: -20px;
    bottom: -20px;
    left: -20px;
    right: -20px;
  }
  .accordion__tx > div{
    padding-top: 20px;
    margin-top: 20px;
  }
}

.button_up{
  cursor: pointer;
  position: fixed;
  background-color: var(--main-blue);
  color: #fff;
  font-size: 10px;
  padding: 14px 12px 15px;
  border-radius: 20px;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}
body:not(.actButtonUp) .button_up{
  opacity: 0;
  visibility: hidden;
}
.actButtonUp .button_up{
  opacity: .7;
}
.actButtonUp .button_up:hover{
  opacity: 1;
}
.button_up:hover{
  color: var(--main-yellow);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}
.button_up::before{
  display: block;
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

@media(min-width: 993px){
  .button_up{
    bottom: 4em;
    right: 4em;
  }
}
@media(max-width: 992px){
  .button_up{
    bottom: 3em;
    right: 3em;
  }
}
