:root {
    --titleSize: 36px;
    --subtitleSize: 14px;
}

#scrollTopBtn {
    height: 65px;
    width: 65px;
    padding: 5px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    background-color: var(--complement);
    border: none; 
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;                /* start hidden */
    visibility: hidden;        /* not clickable */
    transform: translateY(20px); /* slide up a bit when shown */
    transition: all 0.4s ease; /* smooth fade + slide */
    text-decoration: none;
}

#arrowUp, #arrowUp img, #arrowUp svg {
    height: 100%;
    width: 100%;
    stroke: var(--offWhite);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: var(--complementHover);
}

#homeArea {
    background-color: transparent;
}

#homeSurtitle {
    color: var(--accentText);
    font-family: 'Allura';
    position: relative;
}

#homeSurtitle:lang(ru) {
    font-family: 'Great Vibes';
}

#homeStroke {
    position: absolute;
}

#homeStroke svg {
    fill: var(--complement);
}

#homeTitle {
    color: var(--accentText);
    font-weight: bold;
    font-family: 'Playfair Display';
}

#homeText h3 {
    color: var(--accentText);
    font-weight: 250;
}

#onPageContactButton {
    background-color: var(--complement);
    color: var(--accentDarkest);
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 1vw;
}

#onPageContactButton:hover {
    background-color: var(--complementHover);
}

#homeAreaBackgroundImage {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/mainPage.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 30% 50%;
    filter: brightness(70%);
    z-index: 0;
}

/* #homeAreaBackgroundImage::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(
        ellipse at top right,        
        rgba(0,0,0,1),             
        rgba(0,0,0,0) 70%            
    );
    z-index: 1;
} */


@media screen and (max-width: 600px) {

    #homeAreaBackgroundImage {
        position: absolute;
        top: 20vw;
        height: 140.5vw;
        background-position: 80% 50%;
        width: 95%;
        margin-left: 2.5%;
        border-radius: 4vw;
    }

    /* #homeAreaBackgroundImage {
        position: absolute;
        top: 20vw;
        height: 150vw;
        background-position: 80% 50%;
        width: 100%;
        margin-left: 0%;
        border-radius: 0;
    } */

    #homeArea {
        display: block;
        height: 150vw;
        position: relative;
    }

    #homeImage {
        width: 75vw;
        margin: auto;
        margin-top: 0;
    }

    #homeImage img {
        border-radius: 3vw;
        width: 100%;
    }

    #homeText {
        display: flex;
        flex-wrap: wrap;
        width: 80vw;
        margin: auto;
        text-align: left;
    }

    #homeSurtitle {
        font-size: 8vw;
        margin-bottom: 5vw;
        margin-top: 70vw;
    }

    #homeStroke {
        top: 70%;
        width: 100%;
    }

    #homeStroke img,
    #homeStroke svg {
        width: 70%;
        margin: auto;
    }

    #homeTitle {
        font-size: 7.5vw;
    }

    #homeText h3 {
        font-size: 4vw;
        /* margin-top: 12vw; */
        margin-top: 5vw;
    }

    #onPageContactButton {
        font-size: 4vw;
        margin: 12vw auto 0;
        min-width: 60vw;
        height: 15vw;
        display: none;
    }

    #stamp {
        margin-top: 10vw;
        width: 30vw;
        display: none;
    }

    #homeLeaf {
        position: absolute;
        top: 90vw;
        right: 0;
        height: 70vw;
        width: 70vw;
        z-index: 1;
        display: none;
    }

    #homeLeaf svg,
    #homeLeaf img {
        height: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 600.01px) and (max-width: 767.98px) {

    #homeAreaBackgroundImage {
        position: absolute;
        top: 17vw;
        height: 155vw;
        background-position: 80% 50%;
        width: 95%;
        margin-left: 2.5%;
        border-radius: 5vw;
    }

    #homeArea {
        display: block;
        height: 160vw;
        position: relative;
    }

    #homeImage {
        width: 60vw;
        margin: auto;
        margin-top: 5vw;
    }

    #homeImage img {
        width: 100%;
        border-radius: 3vw;
    }

    #homeText {
        display: flex;
        flex-wrap: wrap;
        width: 80vw;
        margin: auto;
        text-align: left;
    }

    #homeSurtitle {
        font-size: 8vw;
        margin-bottom: 5vw;
        margin-top: 70vw;
    }

    #homeStroke {
        position: relative;
        width: 100%;
    }

    #homeStroke img,
    #homeStroke svg {
        width: 80%;
        margin: auto;
    }

    #homeTitle {
        font-size: 7.5vw;
    }

    #homeText h3 {
        font-size: 4vw;
        /* margin-top: 12vw; */
        margin-top: 5vw;
    }

    #onPageContactButton {
        font-size: 3vw;
        margin: 8vw auto 0;
        min-width: 40vw;
        height: 10vw;
        padding: 0 2vw;
        display: none;
    }

    #stamp {
        margin-top: 5vw;
        margin-left: -2vw;
        width: 35vw;
    }

    #homeLeaf {
        position: absolute;
        top: 90vw;
        right: 0;
        height: 70vw;
        width: 70vw;
        z-index: 1;
        display: none;
    }

    #homeLeaf svg,
    #homeLeaf img {
        height: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991.98px),
       screen and (min-width: 991.98px) and (max-width: 1024.98px) and (orientation: portrait) {
    #homeArea {
        width: 100vw;
        height: 100vw;
        display: flex;
        justify-content: right;
        padding-bottom: 12vw;
    }

    #homeAreaBackgroundImage {
        background-position: 40% 50%;
    }

    #homeImage {
        position: relative;
        margin: 0 10vw 0 20vw;
        width: 50vw;
    }

    #homeImage img {
        display: none;
        width: 100%;
        border-radius: var(--homeImageCorners);
        height: 70vw;
        object-fit: cover;
    }

    #homeText {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        width: 65vw;
        height: fit-content;
        left: 10vw;
        z-index: 2;
        margin-right: 4vw;
    }

    #homeSurtitle {
        font-size: 6vw;
        padding-top: 32vw;
        padding-bottom: 2vw
    }

    #homeStroke {
        width: 45vw;
        left: -4vw;
    }

    #homeStroke img,
    #homeStroke svg {
        width: 100%;
    }

    #homeTitle {
        font-size: 5vw;
    }

    #homeText h3 {
        font-size: 2vw;
        margin-top: 5vw;
    }

    #onPageContactButton {
        margin-right: 10%;
        margin-top: 6vw;
        min-width: 25vw;
        height: 6.5vw;
        border-radius: 3.25vw;
    }

    #stamp {
        margin-top: -10vw;
        width: 42%;
        margin-left: 30vw;
    }

    #homeLeaf {
        position: absolute;
        top: 35vw;
        right: 0;
        height: 50vw;
        width: 50vw;
        z-index: 1;
    }

    #homeLeaf svg,
    #homeLeaf img {
        height: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) and (max-height: 800px),
       screen and (min-width: 991.98px) and (max-width: 1024.98px) and (orientation: portrait) and (max-height: 800px) {
    #homeArea {
        height: 70vw;
        overflow: hidden;
        position: relative;
    }

    #homeSurtitle {
        font-size: 6vw;
        padding-top: 100px;
        padding-bottom: 1vw
    }

    #homeTitle {
        font-size: 5vw;
    }

    #homeText h3 {
        font-size: 16px;
        margin-top: 3vw;
    }

    #homeLeaf {
        position: absolute;
        top: 30vw;
        right: -10vw;
        height: 40vw;
        width: 40vw;
        z-index: 1;
        transform: rotate(-20deg);
    }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) and (min-height: 800.01px),
       screen and (min-width: 991.98px) and (max-width: 1024.98px) and (orientation: portrait) and (min-height: 800.01px) {
    #homeArea {
        height: 100vw;
        overflow: hidden;
        position: relative;
    }  

    #homeSurtitle {
        font-size: 6vw;
        padding-top: 32vw;
        padding-bottom: 2vw;
    }

    #homeTitle {
        font-size: 5vw;
    }

    #homeText h3 {
        font-size: 2vw;
        margin-top: 5vw;
    }

    #homeLeaf {
        position: absolute;
        top: 70vw;
        right: -5vw;
        height: 40vw;
        width: 40vw;
        z-index: 1;
        transform: rotate(-20deg);
    }
}

@media screen and (min-width: 992px) and (max-width: 1024.98px) and (orientation: landscape),
       screen and (min-width: 1025px) {
        
    #homeArea {
        position: relative;
        margin-top: -1px;
        display: flex;
        height: 650px;
        justify-content: right;
        padding-bottom: 100px;
        background-color: transparent;
    }

    #homeImage {
        position: relative;
        display: none;
        margin: 0 10% 0 20%;
        width: var(--homeImageWidth);
        height: var(--homeAreaHeight);
    }

    #homeImage img {
        width: 100%;
        border-radius: var(--homeImageCorners);
        height: var(--homeImageHeight);
        object-fit: cover;
    }

    #homeText {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        width: var(--titleWidth);
        height: fit-content;
        left: 10%;
        z-index: 2;
        
        margin-right: 30vw;
    }

    #homeSurtitle {
        font-size: 42px;
        margin-top: 220px;
        margin-bottom: 0;
    }

    #homeStroke {
        width: 400px;
        left: -5%;
    }

    #homeStroke img,
    #homeStroke svg {
        width: 100%;
    }

    #homeTitle {
        font-size: var(--titleSize);
    }

    #homeText h3 {
        font-size: var(--subtitleSize);
        margin-top: 30px;
    }

    #onPageContactButton {
        margin-right: 10%;
        margin-top: 30px;
        min-width: 250px;
        height: 55px;
        border-radius: 27.5px;
    }

    #stamp {
        margin-top: 40px;
        width: 30%;
        position: relative;
        left: 300px;
        top: -105px;
    }

    #homeLeaf {
        position: absolute;
        top: 275px;
        right: -5px;
        height: 500px;
        width: 500px;
        z-index: 1;
        transform: rotate(-20deg);
        display: none;
    }

    #homeLeaf svg,
    #homeLeaf img {
        height: 100%;
        width: 100%;
    }

    #homeAreaBackgroundImage {
        content: "";
        position: fixed;
        width: 100%;
        height: 800px;
        background-image: url('../images/mainPage.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: 30% 50%;
        filter: brightness(70%);
        z-index: 0;
        /* width: 45%;
        height: calc(0.75 * 700px);
        top: 150px;
        left: 50%; */
    }
}