html{
    scroll-behavior: smooth;
}


body{
    font-family: "Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-weight: 400;
    background: var(--color-primary-weak);
    color: var(--color-primary);
}

button{
    appearance: none;
    border: none;
    background: none;
    color: var(--color-primary);
    font: var(--font-size-l);
    padding: 0;
    cursor: pointer;
}


*:focus-visible{
    position: relative;
    outline: transparent 3px solid;

    opacity: 0.8;
    outline-color: var(--color-accent-1);
    outline-offset: 4px;
    outline-width: 2px;
    border-radius: 2px;
} 

*:focus-visible:before{
    content: "";
    position: absolute;
    pointer-events: none;
    inset: -3px;
    border-radius: 2px;
    background-color: transparent;
    border: 0px solid rgb(255, 255, 255);
    box-sizing: border-box;
    box-shadow: var(--color-accent-1) 0px 0px 0px 2px;
    z-index: 9999;
    opacity: 0.8;
} 




dialog::backdrop {
    background-color: var(--color-primary);
    opacity: 0.75;
}

dialog{
    border-radius: 12px;
    padding: 2rem 1.5rem;

    transition:
    display .3s allow-discrete,
    overlay .3s allow-discrete;
	
    animation: close .5s forwards;	

    &[open] {
        animation: open .5s forwards;
    }
}

@keyframes open {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes close {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

@media only screen and (max-width: 767px) {
  
    dialog{
        border-radius: 12px 12px 0 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: 1218px;
        margin: 0 auto;
    }

}

.dialog-header{
    display: flex;
}

.dialog-header h3{
    margin-bottom: 0.5rem;
}
  
dialog button{
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    position: relative;
}
dialog button:after{
    content: "";
    z-index: 10;
    width: 48px;
    height: 48px;
    position: absolute;
    top: -12px;
    left: -12px;
}
dialog button svg{
    width: 24px;
    height: 24px; 
    color: var(--color-primary);
}

dialog ul li a{
    display: block;
    line-height: 24px;
    padding: 8px 0;
}




.skip-to-main-content-link{
    position: absolute; 
    left: -9999px; 
    z-index: 999; 
    padding: 1em;
    background-color: black;
    color: white;
    opacity: 0; 
}  
.skip-to-main-content-link:focus {
    left: 50%; 
    transform: translateX(-50%); 
    opacity: 1;  
}

a{
    color: var(--color-primary);
    font: var(--font-size-l);
}


.arrow-link{
    position: relative;
    font-size: var(--font-size-l);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: underline;
}
.arrow-link svg{
    width: 24px;
    height: 24px;
    transform: rotate(-45deg);
    transition: all .15s;
}

.arrow-link:hover svg,
.arrow-link:focus svg{
    transform: rotate(0deg);
}

.arrow-link:hover,
.arrow-link:focus{
    text-decoration: none;
}

a:hover{
    text-decoration: none;
}

strong{
    font-weight: 600;
}

h1{
    font-weight: 600;
    font-size: var(--font-size-3xl);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2{
    font-weight: 600;
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3{
    font-weight: 600;
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

p{
    font-size: var(--font-size-l);
    line-height: 1.5;
    margin-bottom: 1rem;
}

small{ font-size: var(--font-size-s); }


/* Page */

.page-wrapper{
    max-width: 1218px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-bg-white);
    overflow: hidden;
}


@media only screen and (min-width: 1218px) {
    .page-wrapper{
        overflow: visible;
    }
}

/* Header */

header{
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0 0 2rem 2rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.header-wrapper{
    max-width: 912px; 
    width: 100%;
    padding: 4rem 2rem 8rem 2rem;
}

.header-wrapper__logo{
    margin-bottom: 10rem;
    width: auto;
    height: 18px;
}

@media only screen and (min-width: 768px) {
    .header-wrapper__logo{
        margin-bottom: 6rem;
        height: 24px;
    }
}

.header-wrapper__logo img{
    width: auto;
    height: 100%;
}

.header-wrapper__content{
    max-width: 100%;
}

@media only screen and (min-width: 768px) {
    .header-wrapper__content{
        max-width: 50%;
    }
}

.header-wrapper__content h1{
    margin-bottom: 2rem;
    font-size: var(--font-size-2xl);
}

@media only screen and (min-width: 768px) {
    .header-wrapper__content h1{
        font-size: var(--font-size-3xl);
    }
}

.header-wrapper__content p{
    color: var(--color-accent-1);
    font-size: var(--font-size-xl);
}

.header-wrapper__content a{
    color: var(--color-accent-1);
}



.header-sign{
    display: none;
}

.header-sign img{
    width: 100%;
    height: auto;
}

@media only screen and (min-width: 360px) {
    .header-sign{
        display: block;
        position: absolute;
        top: -4rem;
        right: -12rem;
        width: 350px;
        height: auto;
    }
}

@media only screen and (min-width: 768px) {
    .header-sign {
        top: -6rem;
        right: -6rem;
        width: 522px;
    }
}

.header-wrapper__animation{
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
}

.eye{
    width: 130px;
    height: 65px;
    border: var(--color-accent-1) 14px solid;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    position: relative;
}

.eye::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-accent-1);
    z-index: 10;
    animation: eyeblink 4s 2s infinite;
    -moz-animation: eyeblink 4s 2s infinite;
    -webkit-animation: eyeblink 4s 2s infinite;
    -o-animation: eyeblink 4s 2s infinite;
}

.eye--left{
    border-color: var(--color-accent-2);
}
.eye--left:before{
    background-color: var(--color-accent-2);
}

.eye span{
    width: 24px;
    height: 24px;
    display: block;
    background-color: var(--color-white);
    border-radius: 50%;
    transform: translateX(0);
    position: relative;
    z-index: 9;
    animation: eyepupils 4s 2s infinite;
    -moz-animation: eyepupils 4s 2s infinite;
    -webkit-animation: eyepupils 4s 2s infinite;
    -o-animation: eyepupils 4s 2s infinite;

}


@keyframes eyeblink {
    0% { height: 0%; }
    5% { height: 100%; }
    10% { height: 0%; }
    15% { height: 100%; }
    20% { height: 0%; }
    23% { height: 20%; }
    97% { height: 20%; }
}

@keyframes eyepupils {
    0% { transform: translateX(0); }
    5% { transform: translateX(0); }
    10% { transform: translateX(0); }
    15% { transform: translateX(0); }
    20% { transform: translateX(0); }
    22% { transform: translateX(60px); }
    70% { transform: translateX(60px); }
    75% { transform: translateX(0); }
    97% { transform: translateX(0); }
}




/* Hero  */


.hero{
    margin-top: -2rem;
}

.hero img{
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 0 0 2rem 2rem;
}


/* Content */

.content-wrapper{
    max-width: 912px; 
    width: 100%;
    margin: 0 auto;
    padding: 6rem 2rem 6rem 2rem;
    display: flex;
    gap: 2rem;
    flex-direction: column;

}

.content-wrapper__col{
    width: 100%;
}


@media only screen and (min-width: 768px) {
    .content-wrapper{
        flex-direction: row;
        padding: 6rem 2rem 10rem 2rem;
    }
    .content-wrapper__col{
        width: 50%;
    }
}

.content-wrapper__col .large-link{
    font-size: var(--font-size-xl);
    line-height: 1.5rem;
    text-decoration: none;
    padding: 1rem 1rem 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .3s;
}

.content-wrapper__col .large-link:hover,
.content-wrapper__col .large-link:focus{
 padding-right: 0;
}

.content-wrapper__col .large-link svg{
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background-color: var(--color-accent-1);
    color: var(--color-white);
    border-radius: 12px;
}

/* Block */

.block-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.block-wrapper__col{
    width: 100%;
    padding: 13rem 2rem 4rem;
    background-color: var(--color-accent-1);
    position: relative;
}

.block-wrapper__col--alt{
    background: var(--color-accent-2);
    color: var(--color-white);
}
.block-wrapper__col--alt button{
    color: var(--color-white);
}

@media only screen and (min-width: 768px) {
    .block-wrapper{
        flex-direction: row;
    }
    .block-wrapper__col{
        width: 50%;
        padding: 6rem 4rem 8rem;
    }
}

.block-wrapper__col p{
    font-size: var(--font-size-m);
    margin-bottom: 1rem;
}


.block-wrapper__sign{
    position: absolute;
    top: 2rem;
    left: 1rem;
    right: auto;
    height: 150px;
    width: auto;
}

@media only screen and (min-width: 768px) {

    .block-wrapper__sign{
        position: absolute;
        top: -3.5rem;
        right: 3rem;
        left: auto;
        height: 150px;
        width: auto;
    }

}

.block-wrapper__sign img{
    width: auto;
    height: 100%;
}



/* Footer */

footer{
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    position: relative;
}

.footer-logo{
    margin-bottom: 2rem;
}


.footer-wrapper{
    width: 100%;
    padding: 6rem 2rem 8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-wrapper__col{
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .footer-wrapper{
        flex-direction: row;
        padding: 6rem 4rem 8rem 4rem;
    }
    .footer-wrapper__col{
        width: 50%;
    }
}

footer a{
    color: var(--color-white);
    display: block;
    padding: 1rem 0;
}

footer p{
    color: var(--color-accent-1);
}