@import url('https://fonts.googleapis.com/css2?family=Arsenal:ital,wght@0,400;0,700;1,400;1,700&family=Cabin+Sketch:wght@400;700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
}


body {
    background-color: #F8F8F8;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    font-family: "Arsenal", sans-serif;
    font-weight: var(--fw-regular);
    font-style: normal;
    text-decoration: none;
}

main {
    flex: 1 0 auto;
}

.container{
    max-width: 85%; 
    margin-inline: auto;
    padding-inline: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a{
    font-style: normal;
    text-decoration: none;
}


.title{
    font-weight: var(--fw-bold);
    color: var(--text-dark-green);
}

::selection {
    background-color: var(--bg-green) ; 
    color: var(--text-bodily);           
}

.btn{
    color: var(--text-bodily);
    border-radius: var(--br-m);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    padding: var(--space-2xs) var(--space-l);

}

.g{
    background-color: var(--bg-green);
    transition: var(--transition-base);
}

.g:hover{
    background-color: var(--accent-green-button);
}

.b{
    background-color: var(--bg-brown-button);
    transition: var(--transition-base);
}

.b:hover{
    background-color: var(--accent-brown-button);
}

.svg-for-beauty{
    position: relative;
    top: 0;
    height: auto;
    align-self: stretch;
}
.svg-for-beauty-left{
    position: relative;
    left: 0;
}

.container-all-in-page{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.container-all-in-page{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    margin-bottom: -120px; /* дорівнює margin-top футера (120px) — без розриву і без нахлесту */
}

/* розподіл рядка: 10% svg / 60% контент / 10% svg */
.container-all-in-page > .svg-for-beauty{
    flex: 0 0 10%;
    width: 10%;
    margin-top: 0;
    /* та сама компенсація, що й у батьківського .container-all-in-page —
       тримаємо для узгодженості, хоча тепер її можна було б і прибрати */
    margin-bottom: -120px;
}

.svg-for-beauty--mirrored{
    transform: scaleX(-1);
}

.container-all-in-page{
    display: flex;
    flex-direction: row;
    justify-content: center; /* .container сам центрується через margin-inline: auto */
    align-items: flex-start;
    width: 100%;
    position: relative; /* точка відліку для absolute-позиціонованих svg */
}

.svg-for-beauty{
    position: absolute;
    top: 0;
    left: 0;
    width: 10%;
    z-index: -1;        /* завжди позаду реального контенту й футера */
    pointer-events: none; /* декоративний елемент не повинен перехоплювати кліки */
}

.svg-for-beauty--mirrored{
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

footer svg {
    width: 24px; 
    height: 24px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Висота мінімум 100% відносно вікна перегляду */
}

/* 3. Основний блок заповнює весь вільний простір */
main {
  flex: 1; /* Або flex-grow: 1; */
}

@media screen and (min-width: 560px) and (max-width: 1024px){
    body {
        overflow-x: hidden;
    }

    .container{
        max-width: 100%; 
        margin-inline: auto;
        padding-inline: 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn{
        color: var(--text-bodily);
        border-radius: var(--br-m);
        font-size: var(--fs-xl);
        font-weight: var(--fw-bold);
        padding: var(--space-2xs) var(--space-xs);

    }

    .svg-for-beauty{
        display: none;
    }
    .svg-for-beauty-left{
        display: none;
    }


    .container-all-in-page{
        margin-bottom:var(--space-5xs); /* дорівнює margin-top футера (120px) — без розриву і без нахлесту */
    }

    .svg-for-beauty--mirrored{
        display: none;
    }

}


@media (max-width: 560px) {

    body {
        overflow-x: hidden;
    }

    .container{
        max-width: 100%; 
        margin-inline: auto;
        padding-inline: 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn{
        color: var(--text-bodily);
        border-radius: var(--br-m);
        font-size: var(--fs-l);
        font-weight: var(--fw-bold);
        padding: var(--space-3xs) var(--space-m);

    }

    .svg-for-beauty{
        display: none;
    }
    .svg-for-beauty-left{
        display: none;
    }


    .container-all-in-page{
        margin-bottom:var(--space-5xs); /* дорівнює margin-top футера (120px) — без розриву і без нахлесту */
    }

    .svg-for-beauty--mirrored{
        display: none;
    }

    
    .btn{
        color: var(--text-bodily);
        border-radius: var(--br-m);
        font-size: var(--fs-l);
        font-weight: var(--fw-bold);
        padding: var(--space-3xs) var(--space-2xs);

    }
}