:root {
    --main-bg: #4B291D;
    --text: #FCF6E7;
    --text-blue: #A7D6F5;
    --text-gold: #EFCB8D;
    --btn-bg: #F95B18;
    --btn-text: #fff;
}

@font-face {
    font-family: Geller Sans Wedel;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/GellerSansWedel-Regular.otf) format("opentype")
}

@font-face {
    font-family: Geller Sans Wedel;
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/GellerSansWedel-Medium.otf) format("opentype")
}

@font-face {
    font-family: Geller Sans Wedel;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/GellerSansWedel-Black.otf) format("opentype")
}


@font-face {
    font-family: Geller Sans Wedel;
    font-style: normal;
    font-weight: 945;
    src: url(../fonts/GellerSansWedel-Heavy.otf) format("opentype")
}

*,
::after,
::before {
    box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
p {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--main-bg);
    font-family: "Geller Sans Wedel", sans-serif;
    color: var(--text);
}

.page__wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}


.page__wrapper::before {
    content: "";
    position: absolute;
    top: 506px;
    left: 24px;
    display: block;
    background-image: url("../images/bg.png");
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 445px auto;
    width: 445px;
    height: 287px;

}

@media (min-width: 460px) {    
    .page__wrapper::before {
        top: 506px;
        left: calc(100% - 445px);
    }
}

@media (min-width: 720px) {
    .page__wrapper::before {
        top: 310px;
        left: 484px;
        width: 600px;
        height: 386px;
    }
}

@media (min-width: 960px) {
    .page__wrapper::before {
        top: 360px;        
        left: calc(100% - 440px);
    }
}

@media (min-width: 1024px) {
    .page__wrapper::before {
        top: 250px;
        left: 464px;
        width: 824px;
        height: 545px;
        background-size: 824px auto;
    }
}

@media (min-width: 1280px) {
    .page__wrapper::before {
        width: 924px;
        height: 595px;
        top: 204px;    
        left: calc(100% - 924px);
        background-size: 924px auto;

        opacity: 0;
        transform: translateX(50px);
        animation: imagetSlidRight 0.5s ease-out forwards;
    }
}

.page__container {
    max-width: 1550px;
    padding: 0 22px;
    margin: 0 auto
}         

.page__header {
    padding: 30px 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transform: translateY(-20px);
    animation: headerSlideDown 0.5s ease-out forwards;
}


@media (min-width: 720px) {
    .page__header {
        padding: 32px 0 36px;
        justify-content: space-between;
    }
}

@media (max-width: 719px) {
    .page__header .social {
        display: none;
    }
}

.page__logo {
    width: 160px;
}
@media (min-width: 720px) {
    .page__logo {
    width: 208px;
    }
}

.social {
    width: 150px;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    list-style-type: none;
}

.social__item {  
    width: 30px;
    margin: 0;
    padding: 0;
}

.social__icon {
    width: 30px;
    height: 30px;
}

.page__content {
    display: flex;
    flex-direction: column;
    height: 824px;
}

@media (min-width: 720px) {
    .page__content {
        height: 674px;
    }
}

.page__content .social {
    margin-top: auto;
}

@media (min-width: 720px) {
    .page__content .social {
        display: none;
    }
}

.page__heading {
    text-transform: uppercase;
    font-size: 68px;
    font-weight: 945;
    line-height: 1;
    margin-bottom: 32px;

    opacity: 0;
    transform: translateY(20px);
    animation: textSlidUp 0.5s ease-out 0.6s forwards;
}

@media (min-width: 1024px) {
    .page__heading {
        font-size: 110px;
        margin-bottom: 36px;
    }
}

.page__heading span {
    display: block;
    margin-top: -10px;
    margin-left: 20px;
    font-size: 72px;
    color: var(--text-blue);
}

@media (min-width: 1024px) {
    .page__heading span {
    margin-top: -20px;
    margin-left: 136px;
    font-size: 120px;
    }
}

.text-container {
    max-width: 360px;
    margin-bottom: 28px;
}

@media (min-width: 1024px) {
    .text-container {
            max-width: 522px;
    }

}

.text-container p {
    font-size: 18px;
    line-height: 1.2;
}


.text-container p:nth-child(2) {
    opacity: 0;
    transform: translateY(20px);
    animation: textSlidUp 0.5s ease-out 1.6s forwards;
}

.text-container p:last-child {
    opacity: 0;
    transform: translateY(20px);
    animation: textSlidUp 0.5s ease-out 2.1s forwards;
}

@media (min-width: 1024px) {
    .text-container p {
        font-size: 22px;
    }
}

.text-container p:not(:last-child) {
    margin: 0 0 22px;
}

.lead {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    opacity: 0;
    transform: translateY(20px);
    animation: textSlidUp 0.5s ease-out 1.1s forwards;
}

@media (min-width: 1024px) {
    .lead {
        font-size: 24px;
    }
}

.lead strong {
    display: block;
    font-size: 44px;
    color: var(--text-gold);
}

@media (min-width: 1024px) {
    .lead strong {
        font-size: 48px;
    }
}


.btn {
    display: inline-block;
    width: fit-content;
    padding: 16px 28px;
    border-radius: 43px;
    color: var(--btn-text);
    font-size: 18px;
    font-weight: 500;
    background-color: var(--btn-bg);
    text-decoration: none;
    
    opacity: 0;
    transform: translateY(20px);
    animation: textSlidUp 0.5s ease-out 2.6s forwards;
}

.page__footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
    padding: 16px 0 32px;
}

@media (min-width: 720px) {
    .page__footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 32px 0;
    }
}

.page__footer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.page__footer a {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    text-decoration: none;
}

.page__footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0); 
  }
}

@keyframes textSlidUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0); 
  }
}


@keyframes imagetSlidRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0); 
  }
}