@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body > div:last-child {
    padding-bottom: 50px;
}

body {
    margin: 0;
    height: 100vh;
    font-family: "Jost", sans-serif;
}

/* первый блок */
body > div:first-child { 
    background: url(bg.svg) #fde06e;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    background-position: bottom;
    background-size: 100vw;
    background-repeat: no-repeat;
    animation: anim 10s cubic-bezier(0.46, -0.01, 0.49, 1) infinite;
}

/* логотип */
body > div:first-child > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

/* надпись логотипа */
body > div > div > h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
}

/* надпись огромная в первом блоке */
body > div:first-child > h1 {
    font-size: min(10rem, 8vw);
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-wrap: balance;
    line-height: 120%;
}

/* надпись после огромной надписи */
body > div > h3 {
    font-weight: 500;
    margin: 0;
    font-size: min(3.7rem, 3vw);
    text-align: center;
    text-wrap: balance;
}

@keyframes anim {
    0% {
        background-size: 88vw;
    }
    50% {
        background-size: 118vw;
    }
    100% {
        background-size: 88vw;
    }
}

body > div:nth-child(2) > h1, body > div:nth-child(3) > h1 {
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
}

body > div:nth-child(2), body > div:nth-child(3), body > div:nth-child(4) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 65px 0px;    
    gap: 30px;
}

body > div:nth-child(2) {
    min-height: 252px;
}

body > div:nth-child(3) {
    background-color: #FFEFAF;
}

.ph {
    font-size: 60px;
}

.card {
    display: flex;
    gap: 10px;
    width: 300px;
    font-weight: 500;
    background: #fde06e;
    padding: 10px;
    border-radius: 20px;
}

.card > p {
    font-size: 21px;
}

p {
    margin: 0;
}

.list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

body > div:nth-child(2) > p {
    font-size: 1.5rem;
    color: #000000b8;
}

.faqcontainer {
    width: 90%;
    max-width: 880px;
}

.messagecontainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.message {
    font-size: 26px;
    margin: 0;
    padding: 8px 16px;
    width: fit-content;
    max-width: 80%;
    margin-bottom: 20px;
}

.message.me {
    background: #ffcb73;
    border-radius: 20px 20px 20px 5px;
}

.message:not(.me) {
    background: #ffd999;
    border-radius: 20px 20px 5px 20px;
    align-self: end;
}

a {
    text-decoration: none;
    color: #925919;
}

button {
    background: #fab94d;
    border: none;
    font-size: 24px;
    font-family: "Jost", sans-serif;
    padding: 11px 21px;
    border-radius: 30px;
    transition: linear 0.2s all;
    cursor: pointer;
}

button:hover {
    box-shadow: #cd7f27 4px 5px;
}

button:active {
    transform: scale(0.9);
}
