:root {
    --underline-color: #39737b;
    --underline-color2: #435153;
    --page-v-padding: 100px;
    --page-h-padding: 100px;
    
    /*--h1-size: 48px;*/
    --h1-size: 85px;
    --h3-size: 16px;

    --gallery-photo-height: 250px;

    --catalog-item-width: 24vh;

    --scrollbar-width: 5px;
    --scrollbar-color: var(--underline-color2);
    
    --logo-height: calc(2 * var(--h1-size));
}

*::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  border-radius: 5px;
}

*::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar:horizontal {
    height: var(--scrollbar-width);
}

body {
    font: 12px Manrope;
}

main {
    height: 100vh;
    overflow: hidden;
}

h1 { font-family: 'Montserrat Alternates', serif; }

h2 { font-family: 'Oswald', sans-serif; }

h3 {
    font-size: var(--h3-size);
    margin: 0px 0px 10px;
}

a, a:visited, a:hover, a:focus { color: initial; }

input:focus { outline: none;  }

#mainPart {
    position: relative;
    z-index: 5;
}

#mainPart .pageSide {
    height: 100%;
    padding: var(--page-v-padding) var(--page-h-padding);
    overflow-y: auto;
}

.biggerText { font-size: 18px; }

.mainHeader {
    margin-top: 15vh;
    font-size: var(--h1-size);
}

.mainHeader img {
    height: var(--logo-height);
}

h1.mainHeader * {
    border-bottom: 3px solid var(--underline-color);
    padding-bottom: 5px;
}

.address-wrap, .contact-wrap { margin-top: 30px; }

.catalog-section-item {
    width: var(--catalog-item-width);
    max-width: calc(50% - 30px);
    margin: 0px 15px 15px;
}

.catalog-section-text {
    padding: 15px;
    display: block;
}

.catalog-section-thumb {
    position: relative;
    background-color: #eee;
    aspect-ratio: 4 / 5;
    transition: .3s ease-out;
}

.catalog-section-thumb:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0,0,0,.3), transparent);
    opacity: 0;
    transition: .3s ease-out;
}

.catalog-section-thumb:hover {
    transform: perspective(180px) rotateY(-2deg);
    transform-origin: center center;
    box-shadow: 10px 10px 20px 0px rgba(0,0,0,.1);
}

.catalog-section-thumb:hover:before {
    opacity: 1;
}

.link-icon + .link-icon { margin-left:  15px; }

.inline-form {
    padding-top: 80px;
}

.inline-form input {
    border: 1px solid var(--underline-color2);
    font: inherit;
    padding: 10px 15px;
    font-size: 18px;
    max-width: calc(100% - 60px);
}

.inline-form .submit-inline-form {
    background-color: var(--underline-color2);
    color: #fff;
    height: 46px;
    width: 60px;
    text-align: center;
    cursor: pointer;
    transition: .3s ease-out;
}

.inline-form .submit-inline-form:hover {
    background-color: var(--underline-color);
}

.inline-form .icon { line-height: 46px; }

.photo-item img {
    height: var(--gallery-photo-height);
    pointer-events: none;
    transition: .3s ease-out;
}

.photo-item { padding: 15px; }

.photo-item img.active {
    width: 100%;
    height: auto;
}

.modal-wrap {
    z-index: 50;
    background-color: rgba(255,255,255,.8);
}

.modal-wrap .flex {
    justify-content: space-around;
}

.modal-wrap .close-modal {
    font-weight: 200;
    font-size: 30px;
    position: absolute;
    right: 30px;
    top: 30px;
    cursor: pointer;
    z-index: 5;
}

.modal-wrap img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

.modal-text {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: large;
    text-transform: uppercase;
}

.modal-btn {
    width: 80px;
    padding: 15px;
    text-align: center;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 5;
}

.modal-btn.btn-next {
    left: auto;
    right: 0;
}

.modal-btn .icon { font-size: 40px;}

@media (max-width: 1800px) and (min-width: 1281px) {
    :root {
        --page-h-padding: 50px;
        --catalog-item-width: 15vw;
    }
}


@media (max-width: 1280px) and (min-width: 1100px) {
    :root {
        --gallery-photo-height: 17vw;
        --page-h-padding: 40px;
        --catalog-item-width: 15vw;
    }
    .catalog-section-thumb { aspect-ratio: 1 / 1; }
    .mainHeader { margin-top: 3vh; }
    .inline-form { padding-top: 40px; }
}


@media (max-width: 1099px) and (min-width: 790px) {
    :root {
        --h1-size: 40px;
        --gallery-photo-height: 17vw;
        --page-h-padding: 30px;
        --catalog-item-width: 15vw;
        --page-v-padding: 80px;
    }
    .inline-form input { padding: 8px 10px; width: 180px; } 
    .mainHeader { margin-top: 3vh; }
    .inline-form .submit-inline-form { height: 42px; width: 50px; }
    .inline-form .submit-inline-form .icon { line-height: 42px;  }
}

@media (max-width: 789px) and (min-width: 501px) {
    :root {
        --h1-size: 40px;
        --gallery-photo-height: 27vw;
        --page-h-padding: 30px;
        --catalog-item-width: 27vw;
        --page-v-padding: 40px;
    }
    .mainHeader { margin-top: 0vh; }
    .address-wrap { margin-top: 10px; }

    .inline-form h2 {
        display: inline-block;
        vertical-align: middle;
        margin: 0px 10px 0px 0px;
        width: 150px;
    }

    .inline-form-wrapper {
        display: inline-block;
        vertical-align: middle;
        width: calc(100% - 170px);
    }

    .inline-form { padding-top: 15px; }
    .inline-form input { width: calc(100% - 60px) }

    #mainPart .pageSide.left { height: 225px; }
    #mainPart .pageSide.right { height: calc(100% - 225px); }

    .section-name { margin: 0px; }

    .section-text { margin: 10px 0px 0px; }
}

@media (max-width: 500px) {
    :root {
        --h1-size: 30px;
        --gallery-photo-height: 37vw;
        --page-h-padding: 30px;
        --catalog-item-width: 37vw;
        --page-v-padding: 20px;
    }

    h2 { font-size: 22px; }

    .mainHeader { margin-top: 0vh; }

    .section-name { margin-top: 5px; }

    .section-text { margin: 15px 0px 0px; }

    .contact-wrap { margin-top: 10px; }

    .contact-wrap.lower { margin-top: 10px }

    .inline-form { padding-top: 20px; position: relative; }

    .inline-form h2 {
        margin: 0px;
        position: absolute;
        background-color: #fff;
        top: 4px;
        left: 90px;
        padding: 0px 5px;
    }

    #mainPart .pageSide.left { height: 200px; }
    #mainPart .pageSide.right { height: calc(100% - 200px); }

    .address-wrap { margin-top: 5px; }
    
    .modal-btn { width: 40px; }
}