/* Main */
body {
    font-family: 'Raleway', sans-serif;
    min-height: 100vh;
    font-size: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

@media (max-width: 475px) {
    body {
        font-size: 16px;
    }
}

body.lock {
    overflow: hidden;
}

#page {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

img {
    max-width: 100%;
}

a {
    color: #fff;
    text-underline-offset: 5px;
    transition: color .3s ease-in-out;
}

a:hover {
    color: #164b7e;
}

.button-empty {
    display: inline-block;
    border: solid 2px #164b7e;
    padding: 20px 25px;
    color: #164b7e;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
    align-self: center;
}

.nav .button-empty {
    color: #fff;
    border-color: #fff;
}

.button-empty:hover {
    color: #fff;
    background-color: #164b7e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

h1 {
    font-size: 1.2rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 2rem;
}

h6 {
    font-size: 2.2rem;
}

section {
    width: 100%;
    overflow: hidden;
    margin: 50px 0;
}

/* Bootstrap */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }
}
@media (min-width: 991px) {
    .form-container {
        max-width: 700px;
    }
}

.row.narrow {
    padding: 0 10%;
}

.row.narrower {
    padding: 0 20%;
}

/* Top Bar */

.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 15px;
    background: #5590ca;
}

.top-bar .logo a {
    font-size: 40px;
    color: #fff;
    text-decoration: none;
}

.top-bar .top-bar-contact {
    display: flex;
    flex-wrap: wrap;
}

.top-bar .top-bar-contact a {
    white-space: nowrap;
}

.top-bar .top-bar-contact div {
    margin: auto 10px;
}

/* Nav */

.nav {
    background: #5590ca;
    padding: 0 30px;
    font-size: 20px;
    position: relative;
    display: flex;
    justify-content: space-around;
}

.nav-mobile {
    display: none;
}

.nav .sub-menu{
    padding: 0;
}

.nav .menu-menu-1-container #menu-menu-1 {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav .menu-menu-1-container #menu-menu-1 a {
    text-decoration: none;
    display: block;
    padding: 30px 15px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > a {
    font-weight: 600;
}

.nav .menu-menu-1-container .menu-item {
    list-style: none;
}

.nav .menu-menu-1-container #menu-menu-1 > .menu-item {
    margin: 0;
    position: relative;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu {
    display: none;
    position: absolute;
    z-index: 10;
    background: #fff;
    font-size: 16px;
    padding: 20px;
    -webkit-box-shadow: 4px 2px 19px -8px rgba(85, 144, 202, 1);
    -moz-box-shadow: 4px 2px 19px -8px rgba(85, 144, 202, 1);
    box-shadow: 4px 2px 19px -8px rgba(85, 144, 202, 1);
    white-space: nowrap;
    left: 0;
    top: 90px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > li {
    min-width: 250px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > .menu-item-has-children > a {
    font-weight: 600;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > .menu-item-object-advert_cats {
    border-left: solid 1px #5590ca;
}

.nav .menu-menu-1-container #menu-menu-1 #menu-item-143 .sub-menu > li {
    border-left: 0
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > li:first-child {
    border-left: 0;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > li > .sub-menu {
    margin-top: 20px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > li > .sub-menu > li {
    margin: 5px 0;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu a {
    color: #164b7e;
    padding: 10px 15px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu a:hover {
    color: #5590ca;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu.show {
    display: block;
}

.nav .menu-menu-1-container #menu-menu-1 > li#menu-item-15 > .sub-menu.show,
.nav .menu-menu-1-container #menu-menu-1 > li#menu-item-16 > .sub-menu.show {
    display: flex;
    flex-wrap: wrap;
}

.nav .menu-menu-1-container #menu-menu-1 > li#menu-item-15 > .sub-menu.show {
    width: 540px;
}

.nav .menu-menu-1-container #menu-menu-1 > li#menu-item-16 > .sub-menu.show {
    width: 790px;
}

.nav-mobile {
    background: #5590ca;
    padding: 30px;
}

.nav-mobile .hamburger-menu .button-empty {
    color: #fff;
    border-color: #fff;
    font-size: 15px;
    padding: 10px 12px;
    margin-top: 20px;
}

.nav .menu-menu-1-container #menu-menu-1 > li > .sub-menu > .menu-item-object-advert_cats#menu-item-128 {
    border: 0;
}

#menu__toggle {
    opacity: 0;
  }
  #menu__toggle:checked + .menu__btn > span {
    transform: rotate(45deg);
  }
  #menu__toggle:checked + .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
  }
  #menu__toggle:checked + .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
  }
  #menu__toggle:checked ~ .menu__box {
    left: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .menu__btn {
    position: relative;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 11;
  }
  .menu__btn > span,
  .menu__btn > span::before,
  .menu__btn > span::after {
    display: block;
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition-duration: .25s;
  }
  .menu__btn > span::before {
    content: '';
    top: -8px;
  }
  .menu__btn > span::after {
    content: '';
    top: 8px;
  }
  .menu__box {
    position: absolute;
    display: block;
    top: 0;
    left: -100%;
    width: 300px;
    height: fit-content;
    margin: 0;
    padding: 93px 0 20px;
    list-style: none;
    background-color: #5590ca;
    border: solid 1px #fff;
    transition-duration: .25s;
    z-index: 10;
  }
  #menu-menu-2 {
    padding: 0 20px;
    margin: 0;
  }
  #menu-menu-2 li {
    display: block;
    padding: 12px 0;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition-duration: .25s;
  }

  #menu-menu-2 li a {
    text-decoration: none;
    padding: 12px;
  }

  .nav-mobile {
    position: relative;
  }

  .nav-mobile .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
  }

/* Breadcrumbs */

.breadcrumbs {
    color: #164b7e;
    margin: 20px;
    font-weight: 600;
    font-size: 15px;
}

.breadcrumbs a {
    color: #164b7e;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #5590ca;
}

/* Home Page */

.box-without-border-wrap a {
    color: #5590ca;
    text-decoration: none;
}

.box-without-border-wrap a:hover {
    color: #164b7e;
}

.double-box .box-with-border-wrap {
    padding: 20px;
    border: solid 1px #5590ca;
    color: #164b7e;
    margin: 30px;
}

.double-box .box-without-border-wrap {
    color: #164b7e;
}

.boxes-button-wrap {
    text-align: center;
    margin: 20px 0 30px;
}

.full-container-banner {
    margin: 50px 0 30px;
}

.full-container-banner .full-container-content {
    background: #5590ca;
    color: #fff;
    padding: 30px;
}

.collage img {
    margin-top: 20px;
}

.text {
    margin: 50px 0;
}

.text .col-lg-12 {
    text-align: center;
    padding: 0 25%;
    color: #164b7e;
}

.text .col-lg-12 a {
    margin-top: 30px;
    display: inline-block;
}

/* Contact */

.contact {
    margin: 50px 0;
}

.contact h3,
.cf h3 {
    text-align: center;
    margin-bottom: 30px;
}

.contact ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

.contact li {
    list-style: none;
    font-size: 25px;
}

.contact a {
    color: #164b7e;
}

.contact a:hover {
    color: #5590ca;
}

/* Form */

.error-input::placeholder,
input[type="text"].error-input , 
input[type="email"].error-input , 
select.error-input , 
textarea.error-input ,
.error-select {
    color: red;
}

.container.form-container {
    padding: 0 30px;
}

.give-away {
    margin: 50px 0;
}

.give-away p {
    color: #164b7e;
    font-weight: 600;
}

.give-away li,
.give-away label {
    color: #164b7e;
}

.name-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.name-wrap div {
    width: 49%;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    margin: 10px 0;
    padding: 20px 25px;
    border: 1px solid #5590ca;
    color: #164b7e;
}


.validation-error {
    margin: 0;
}

.area-error {
    margin-bottom: 50px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: #164b7e;
    opacity: 1;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23164b7e' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: 50%;
    border: 1px solid #5590ca;
    border-radius: 2px;
    margin-right: 20px 25px;
    padding: 20px 25px;
}

input[type=file]::file-selector-button {
display: none;
}

.file-wrapper {
    width: 100%;
    margin: 10px 0;
    padding: 20px 25px;
    border: 1px solid #5590ca;
    color: #164b7e;
}

.file-wrapper label,
input[type="submit"] {
    border: solid 2px #164b7e;
    padding: 20px 25px;
    color: #fff;
    background-color: #164b7e;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
    margin-right: 20px;
    cursor: pointer;
}

input[type="submit"] {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.file-wrapper label:hover,
input[type="submit"]:hover {
    background-color: #fff;
    color: #164b7e;
}

.give-away-submit-wrapper {
    text-align: center;
}

.give-away-submit-wrapper input[type="submit"]{
    width: 100%;
}

label.checkbox {
    margin: 20px 0 10px;
    font-size: 15px;
}

label.checkbox input {
    margin-right: 5px;
}

/* Footer */

footer {
    background: #164b7e;
    padding: 30px 0;
    color: #fff;
    min-height:50px;
}

.site-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-info a {
    text-decoration: none;
}

.site-info a:hover {
    color: #5590ca;
}

/* Taxonomy */

.product-wrapper {
    position: relative;
    display: flex;
    margin: 20px 0;
    width: 100%;
    border: 1px solid #5590ca;
    padding: 20px;
}

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #164c7eae;
    z-index: 12;
}

.product-modal-form {
    max-width: 660px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #164b7e;
    width: 90%;
}

.product-modal input[type="text"],
.product-modal textarea {
    width: 100%;
    margin: 10px 0;
    padding: 20px 25px;
    border: 1px solid #5590ca;
    color: #164b7e;
}

.product-modal .checkbox {
    color: #fff;
}

.checkbox-error {
    margin-bottom: 20px;
}

.product-modal input[type="submit"] {
    border: solid 2px #fff;
    padding: 20px 25px;
    color: #fff;
    background-color: #164b7e;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
    margin-right: 20px;
    cursor: pointer;
}

.product-modal input[type="submit"]:hover {
    background-color: #fff;
    color: #164b7e;
}

.close {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 32px;
    height: 32px;
    opacity: 0.5;
    transition: opacity .3s ease-in-out;
}
.close:hover {
    opacity: 1;
}
.close:before, .close:after {
    position: absolute;
    left: 14px;
    top: 0px;
    content: ' ';
    height: 33px;
    width: 6px;
    background-color: #000;
}
.close:before {
    transform: rotate(45deg);
}
.close:after {
    transform: rotate(-45deg);
}

.product-description {
    margin-left: 30px;
}

.product-wrapper img {
    object-fit: cover;
    width: 300px;
    height: 300px;
    padding-right: 20px;
}

.product-description {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.open-modal {
    border: solid 2px #164b7e;
    padding: 20px 25px;
    color: #fff;
    background-color: #164b7e;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
    cursor: pointer;
    align-self: flex-end;
}

.open-modal:hover {
    color: #164b7e;
    background-color: #fff;
}

.slider-nav {
    margin-top: 20px;
}

.gallery-modal {
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #164c7eae;
    z-index: 11;
}

.gallery-modal .close {
    right: 5%;
    top: 5%;
}

.product-wrapper.empty p {
    padding: 30px;
    margin: 0;
}

.sent-message,
.upload-message {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 50px;
    transform: translateX(-50%) translateY(-50%);
    border: 1px solid #5590ca;
    color: #5590ca;
    background: #fff;
    font-size: 25px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    max-width: 700px;
}

.sent-message {
    animation:signup-response 0.5s 1;
    -webkit-animation:signup-response 0.5s 1;
    animation-fill-mode: forwards;

    animation-delay:4s;
    -webkit-animation-delay:4s; /* Safari and Chrome */
    -webkit-animation-fill-mode: forwards;
}

@keyframes signup-response{
    from {opacity :1;}
    to {opacity :0;}
}

@-webkit-keyframes signup-response{
    from {opacity :1;}
    to {opacity :0;}
}

/* Simple content */

section.simple-content {
    margin: 50px 0;
}

.simple-content a {
    color: #164b7e;
}

.simple-content a:hover {
    color: #5590ca;
}

/* Slider */

.gallery-modal-slider {
    height: 100%;
    margin: 0 auto;

 }

.gallery-modal-slider .slick-slide {
    height: 100%;
    margin: 0 auto;

 }
 
.gallery-modal-slider .slick-slide img {
    max-height: 100%;
    margin: 0 auto;

}

.gallery-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.gallery-wrapper .slick-track,
.gallery-wrapper .slick-list {
    height: 100%;
}

.gallery-wrapper .slick-slider {
    height: 65%;
    width: 100%;
}

.gallery-wrapper .slider-nav {
    height: 15%;
    width: 35%;
    margin: 20px auto 0;
}

.slider-nav .slick-slide {
    height: 100%;
    margin: 0 10px;
}

.slider-nav .slick-slide img {
    max-height: 100%;
    margin: 0 auto;
}

/* RWD */

@media (max-width: 1399px) {
    .nav .menu-menu-1-container #menu-menu-1 > li#menu-item-16 > .sub-menu.show {
        left: -39px;
    }
    .nav .button-empty {
        margin-bottom: 30px;
    }
}


@media (max-width: 1200px) {
    .nav .menu-menu-1-container #menu-menu-1 > li#menu-item-16 > .sub-menu.show {
        left: -219px;
    }
    .nav .menu-menu-1-container #menu-menu-1 > #menu-item-19 > .sub-menu {
        left: -116px;
    }
}

@media (max-width: 991px) {
    .logo,
    .top-bar-contact {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .top-bar-contact {
        margin-top: 10px;
    }
    .top-bar {
        flex-wrap: wrap;
    }
    .nav {
        display: none;
    }
    .nav-mobile {
        display: block;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .site-footer .container {
        padding: 0 30px;
    }
    .double-box .box-with-border-wrap,
    .double-box .box-without-border-wrap,
    .double-box .boxes-button-wrap {
        margin: 20px 0;
    }
    .double-box .box-with-border-wrap {
        margin-top: 50px;
    }
    .full-container-banner {
        margin-top: 40px;
    }
    .top-bar .logo a {
        font-size: 35px;
    }
    .product-wrapper {
        flex-direction: column;
    }
    .product-description {
        margin: 20px 0 0;
        text-align: center;
    }
    .product-wrapper img {
        margin: 0 auto;
    }
    .open-modal {
        align-self: center;
        margin: 0 0 20px;
    }
    .name-wrap div {
        width: 100%;
    }
    .sent-message {
        font-size: 21px;
    }
    .close {
        transform: translateX(50%);
        right: 50%;
    }
    label.checkbox {
        font-size: 12px;
    }
    .product-modal input[type="text"], .product-modal textarea {
        padding: 12px 18px;
    }
}

@media (max-width: 576px) {
    .row.narrower,
    .row.narrow,
    .text .col-lg-12 {
        padding: 0 30px;
    }
    .top-bar .logo a {
        font-size: 30px;
    }
    .gallery-wrapper .slick-slider {
        height: 45%;
    }
    .row {
        width: 100%;
        margin: 0;
    }
    .gallery-wrapper .slider-nav {
        height: 10%;
    }
    .row.narrow.products-list {
        padding: 0;
    }
}

.error-404 .page-content .search-form {
    display: flex;
}
.error-404 .page-content .search-form input[type="text"] {
width: 100%;
  margin: 10px 0;
  padding: 20px 25px;
  border: 1px solid #5590ca;
  color: #164b7e;
}

.error-404 .page-content {
text-align: center;
width: 100%;
}

.error404 .product-wrapper {
    justify-content: center;
}

.error404 .product-wrapper h4 {
    color: #164b7e;
    margin-bottom: 50px;
}