:root {
    --main-color: #835a5a;
    --hover-color: #a88b8b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    padding: 0;
    color: #666;
    line-height: 26px;
    font-size: 16px;
    font-family: Poppins, sans-serif;
}

a {
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    #container {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media screen and (min-width: 768px) {
    .inner-container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1259px) {
    #container {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media screen and (min-width: 1260px) {
    #container {
        margin-right: auto;
        margin-left: auto;
        width: 1240px;
    }
}

#header-top {
    position: relative;
    border-bottom: 5px solid var(--main-color);
}

#header-top::after {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, #8c6666 0, #8c6666 20%, #835a5a 20%, #835a5a 80%, #8c6666 80%, #8c6666 100%);
    content: "";
}

#header-top-container::after {
    display: block;
    clear: both;
    content: "";
}

#header-brand {
    float: left;
}

#header-brand-link {
    display: block;
}

#header-logo-image {
    display: block;
    width: 100%;
    height: auto;
}

#header-menu-toggle {
    float: right;
    margin-top: 10px;
    width: 43px;
    height: 43px;
    border: 0 none;
    background: transparent;
    padding: 5px 0;
}

#header-menu-toggle .menu-icon-bar {
    display: block;
    height: 5px;
    background: var(--main-color);
    transition: background-color 0.3s ease-in-out;
}

#header-menu-toggle:hover .menu-icon-bar {
    background: var(--hover-color);
}

#header-menu-toggle .menu-icon-bar + .menu-icon-bar {
    margin-top: 9px;
}

#header-contact {
    float: right;
    text-align: right;
    line-height: 20px;
}

.header-contact-link {
    color: inherit;
}

#header-menu-items {
    margin: 0;
    list-style: none;
}

.header-menu-item {
    text-align: center;
    line-height: 0;
}

.header-menu-link {
    display: inline-block;
    color: #494949;
    line-height: 24px;
    font-size: 18px;
}

.header-menu-link:hover {
    color: var(--main-color);
    font-weight: 600;
}

#header-image-container {
    position: relative;
    height: 0;
    overflow: hidden;
    padding-bottom: 30.6452%;
}

#header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 3s ease-in-out;
}

#header-image.zoom {
    transform: scale(1.05);
}

@media screen and (max-width: 1259px) {
    #header-top {
        padding-top: 21px;
        padding-bottom: 20px;
    }

    #header-brand {
        width: 203px;
    }

    #header-contact {
        display: none;
    }

    #header-menu {
        height: 0;
        overflow-y: hidden;
        transition: height 0.5s ease-in-out;
    }

    #header-menu.open {
        height: 340px;
    }

    #header-menu-items {
        padding: 32px 0;
    }

    .header-menu-item + .header-menu-item {
        margin-top: 18px;
    }
}

@media screen and (min-width: 1260px) {
    #header-top {
        padding-top: 49px;
        padding-bottom: 46px;
    }

    #header-brand {
        margin-top: 4px;
        width: 316px;
    }

    #header-menu-toggle {
        display: none;
    }

    #header-middle {
        padding-top: 19px;
        padding-bottom: 13px;
    }

    #header-menu-items {
        padding: 0;
        display: flex;
        justify-content: space-between;
    }

    .header-menu-link::before {
        display: block;
        visibility: hidden;
        height: 1px;
        overflow: hidden;
        color: transparent;
        font-weight: 700;
        content: attr(data-label);
    }
}

#footer {
    border-top: 3px dotted #e3d9c9;
}

#footer-top {
    padding-top: 40px;
    padding-bottom: 40px;
}

#footer-brand {
    width: 203px;
}

#footer-brand-link {
    display: block;
}

#footer-logo-image {
    display: block;
}

.footer-contact-list {
    margin: 0;
    padding: 0;
    line-height: 19px;
    font-size: 15px;
}

.footer-contact-list div::after {
    display: block;
    clear: both;
    content: "";
}

.footer-contact-list dt {
    margin: 0;
    padding: 0;
    float: left;
}

.footer-contact-link {
    color: inherit;
}

#footer-middle {
    background: #f2f2f2;
    padding-top: 7px;
    padding-bottom: 9px;
    text-align: right;
    line-height: 0;
}

#footer-privacy-policy-link {
    display: inline-block;
    color: var(--main-color);
    font-weight: 600;
    line-height: 24px;
}

#footer-privacy-policy-link:hover {
    color: var(--hover-color);
}

#footer-bottom {
    padding-top: 22px;
    padding-bottom: 23px;
}

#footer-bottom-container::after {
    display: block;
    clear: right;
    content: "";
}

#footer-credit {
    float: right;
}

#footer-credit::after {
    display: block;
    clear: left;
    content: "";
}

#footer-credit-text {
    float: left;
    margin-top: 1px;
    color: #dfdfdf;
    line-height: 15px;
    font-size: 12px;
}

#footer-credit-logo {
    float: left;
    margin-left: 8px;
}

#footer-credit-link {
    display: block;
}

#footer-credit-logo-image {
    display: block;
}

@media screen and (max-width: 767px) {
    .footer-contact-list + .footer-contact-list {
        margin-top: 19px;
    }
}

@media screen and (min-width: 768px) {
    #footer-contact::after {
        display: block;
        clear: left;
        content: "";
    }

    .footer-contact-list {
        float: left;
    }
}

@media screen and (min-width: 768px) and (max-width: 1339px) {
    .footer-contact-list {
        width: 50%;
    }
}

@media screen and (max-width: 1023px) {
    #footer-contact {
        margin-top: 23px;
    }
}

@media screen and (min-width: 1024px) {
    #footer-top-container::after {
        display: block;
        clear: left;
        content: "";
    }

    #footer-brand {
        float: left;
    }

    #footer-contact {
        float: left;
        margin-top: 1px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 11259px) {
    #footer-contact {
        margin-left: 4%;
        width: calc(96% - 203px);
    }
}

@media screen and (min-width: 1260px) and (max-width: 1339px) {
    #footer-contact {
        margin-left: 10%;
        width: calc(90% - 203px);
    }
}

@media screen and (max-width: 1339px) {
    .footer-contact-list dd {
        float: left;
        margin-left: 7px;
    }
}

@media screen and (min-width: 1340px) {
    #footer-contact {
        margin-left: 40px;
        width: 957px;
    }

    .footer-contact-list {
        width: calc(50% - 20px);
        border-left: 3px dotted #e3d9c9;
        padding-left: 40px;
    }

    .footer-contact-list + .footer-contact-list {
        margin-left: 40px;
    }

    #footer-contact dd {
        float: right;
    }
}

#to-top-button {
     opacity: 0;
     position: fixed;
     bottom: 20px;
     width: 50px;
     height: 50px;
     border-radius: 21px;
     border: 0 none;
     padding: 0;
     background: var(--main-color);
     transition: opacity 1s ease-in-out;
 }

#to-top-button:hover {
    background: var(--hover-color);
}

#to-top-button.visible {
    opacity: 1;
}

#to-top-button::before,
#to-top-button::after {
    position: absolute;
    top: 23px;
    width: 11px;
    height: 3px;
    background: #fff;
    content: "";
}

#to-top-button::before {
    left: 17px;
    transform: rotate(-45deg);
}

#to-top-button::after {
    left: 22px;
    transform: rotate(45deg);
}

@media screen and (max-width: 767px) {
    #to-top-button {
        right: 10px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #to-top-button {
        right: 20px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1259px) {
    #to-top-button {
        right: 30px;
    }
}

@media screen and (min-width: 1260px) {
    #to-top-button {
        left: calc(50% + 570px);
    }
}

.page {
    padding-top: 50px;
    padding-bottom: 153px;
}

.page-heading {
    margin: 0;
    color: #663333;
    line-height: 38px;
    font-size: 32px;
    font-weight: 600;
}

.page-body {
    margin-top: 37px;
}

.textpage-text p,
.textpage-text ul {
    margin: 0;
}

.textpage-body p:not(:last-child),
.textpage-text ul:not(:last-child) {
    margin-bottom: 26px;
}

.textpage-image {
    display: block;
    max-width: 100%;
    width: 380px;
    height: auto;
    outline: 10px solid #efeeec;
    outline-offset: -10px;
}

@media screen and (max-width: 767px) {
    .textpage-image {
        margin-right: auto;
        margin-left: auto;
    }

    .textpage-image + .textpage-text {
        margin-top: 26px;
    }
}

@media screen and (min-width: 768px) {
    .textpage-body::after {
        display: block;
        clear: right;
        content: "";
    }

    .textpage-image {
        float: right;
        margin-top: 7px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .textpage-image {
        margin-left: 26px;
        margin-bottom: 26px;
    }
}

@media screen and (min-width: 1024px) {
    .textpage-body {
        text-align: justify;
    }

    .textpage-image + .textpage-text {
        margin-right: 420px;
    }
}

#references-page-text {
    line-height: 22px;
    font-size: 18px;
}

.reference-list {
    margin: 51px 0 0;
}

.reference-list li {
    margin-bottom: 16px;
}

@media screen and (min-width: 1024px) {
    .reference-list {
        column-count: 2;
    }
}

#contact-page-body-top {
    padding-bottom: 40px;
    border-bottom: 3px dotted #e3d9c9;
}

#contact-data {
    margin: 0;
    padding: 0;
    line-height: 22px;
    font-size: 18px;
}

#contact-data > div::after {
    display: block;
    clear: left;
    content: "";
}

#contact-data dt,
#contact-data dd {
    margin: 0;
    padding: 0;
    float: left;
}

#contact-data a {
    color: inherit;
}

@media screen and (max-width: 567px) {
    #contact-data dd {
        margin-left: 8px;
    }
}

@media screen and (min-width: 568px) {
    #contact-data dt {
        width: 180px;
    }
}

#contact-gallery {
    margin-top: 35px;
}

.contact-gallery-link {
    display: block;
}

.contact-gallery-image {
    display: block;
    width: 100%;
    height: auto;
}

.contact-gallery-link {
    outline-style: solid;
    outline-color: #e0d6d6;
}

.contact-gallery-link:hover {
    outline-color: var(--hover-color);
}

@media screen and (max-width: 767px) {
    #contact-gallery {
        margin-right: auto;
        margin-left: auto;
        max-width: 100%;
        width: 380px;
    }

    .contact-gallery-item + .contact-gallery-item {
        margin-top: 30px;
    }

    .contact-gallery-link {
        outline-width: 10px;
        outline-offset: -10px;
    }
}

@media screen and (min-width: 768px) {
    #contact-gallery {
        display: flex;
        justify-content: space-between;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #contact-gallery {
        margin-right: -8px;
        margin-left: -8px;
    }

    .contact-gallery-item {
        padding-right: 8px;
        padding-left: 8px;
    }

    .contact-gallery-link {
        outline-width: 6px;
        outline-offset: -6px;
    }
}

@media screen and (min-width: 1024px) {
    #contact-gallery {
        margin-right: -15px;
        margin-left: -15px;
    }

    .contact-gallery-item {
        padding-right: 15px;
        padding-left: 15px;
    }

    .contact-gallery-link {
        outline-width: 10px;
        outline-offset: -10px;
    }
}

#contact-page-body-bottom {
    padding-top: 34px;
}

#contact-us-message {
    line-height: 22px;
    font-size: 18px;
}

#contact-us-message p {
    margin: 0;
}

#contact-form {
    margin-top: 28px;
}

#contact-form label {
    display: inline-block;
    line-height: 22px;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
}

#contact-form label.required::after {
    content: "*";
    color: #f00;
    font-weight: 700;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    display: block;
    margin-top: -2px;
    width: 100%;
    border-radius: 10px;
    border: 0 none;
    background: #eaeaea;
    padding: 8px 9px;
    line-height: 25px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
}

#contact-form textarea {
    height: 248px;
    resize: vertical;
}

#contact-form-submit-button {
    border-radius: 10px;
    border: 0 none;
    background: var(--main-color);
    padding: 13px 20px 13px;
    color: #fff;
    text-transform: uppercase;
    line-height: 24px;
    font-size: 18px;
    font-family: inherit;
    font-weight: 400;
}

#contact-form-submit-button:hover {
    background: var(--hover-color);
}

#contact-form .form-control + .form-control {
    margin-top: 4px;
}

#contact-form .form-actions {
    margin-top: 20px;
}

#contact-form .form-error {
    color: #f00;
    line-height: 21px;
    font-size: 14px;
}

#contact-form.form-error:empty {
    height: 0;
    overflow-y: hidden;
}

@media screen and (max-width: 567px) {
    #contact-form-submit-button {
        display: inline-block;
        margin-top: 20px;
    }
}

@media screen and (min-width: 568px) {
    #contact-form .form-actions::after {
        display: block;
        clear: both;
        content: "";
    }

    #contact-form-recaptcha {
        float: left;
    }

    #contact-form-submit-button {
        float: right;
    }
}

@media screen and (min-width: 768px) {
    #contact-form {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media screen and (max-width: 1023px) {
    #contact-form {
        max-width: 648px;
    }

    #contact-form .form-block + .form-block {
        margin-top: 4px;
    }
}

@media screen and (min-width: 1024px) {
    #contact-form::after {
        display: block;
        clear: both;
        content: "";
    }

    #contact-form .form-block:first-child {
        float: left;
    }

    #contact-form .form-block:last-child {
        float: right;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1259px) {
    #contact-form .form-block:first-child {
        width: calc(40% - 15px);
    }

    #contact-form .form-block:last-child {
        width: calc(60% - 15px);
    }
}

@media screen and (min-width: 1260px) {
    #contact-form .form-block:first-child {
        width: 360px;
    }

    #contact-form .form-block:last-child {
        width: 770px;
    }
}

#preselector-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
}

#preselector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 26px;
    font-size: 26px;
    white-space: nowrap;
    transition: opacity 0.5s ease-in-out;
}

#preselector.fade {
    opacity: 0;
}

.preselector-block .line:nth-child(1) {
    font-weight: 300;
}

.preselector-block .line:nth-child(2) {
    font-weight: 600;
}

.preselector-block .line:nth-child(3) {
    font-weight: 500;
}

#preselector-close {
    color: #663333;
    cursor: pointer;
}

#preselector-reseller-link {
    color: #1394d2;
}

#preselector-close:hover,
#preselector-reseller-link:hover {
    filter: brightness(1.3333);
}

@media screen and (max-width: 767px) {
    #preselector {
        top: 12.5%;
    }

    #preselector-reseller-block {
        margin-top: 26px;
    }
}

@media screen and (min-width: 768px) {
    #preselector {
        top: 25%;
        width: 692px;
    }

    #preselector::after {
        display: block;
        clear: both;
        content: "";
    }

    #preselector-public-block {
        float: left;
        text-align: right;
    }

    #preselector-reseller-block {
        float: right;
    }
}