@import url('./reset.css');
@import url('./vars.css');

/* обертки */
.wrapper {
    color: var(--white);
    background-color: #050408;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.grid-block1 {
    grid-area: 1 / 2 / 2 / 4;
}
.grid-block2 {
    grid-area: 2 / 1 / 3 / 3;
}

.block {
    padding: 30px;

    border-radius: var(--border-radius);
    background: url('../assets/backgrounds.png');
    backdrop-filter: blur(7.5px);
}
.price__block {
    width: 100%;
}

.list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.nav__list {
    gap: 5vw;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px 0;

    margin: 80px 0;
}

.form {
    display: flex;
    gap: 5px;
    max-width: 100%;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10vh;

    transition: var(--animation);
}
.content__box {
    background-color: var(--black);
}

.content__box:hover {
    background-color: var(--color-block-7);
}

.price_margin {
    margin: 50px 0;
}

/* типография */
.text {
    color: var(--white);
    font: 400 1.5rem/1.3 var(--font-famile);
}

.subtext {
    color: #5c4e86;
    text-align: center;
    font: 400 1.3rem/1.3 var(--font-famile);
}

.title {
    color: #fff;
    font: 800 3rem/1.1 var(--font-famile);
    text-align: center;
}

.number {
    font: 700 4.5rem/1 var(--font-famile);
}

.violet {
    color: var(--violet);
    font-family: var(--font-famile);
}

/* компоненты */
.btn {
    padding: 1.7rem;

    color: var(--white);
    font: 400 2.25rem/1.3 var(--font-famile);

    border-radius: 50px;
    background: linear-gradient(95deg, var(--violet) 3.17%, #4f4dc9 50.27%, #450f5c 89.84%);

    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo img {
    width: 2rem;
}
.logo__name {
    font: 700 2rem/1.3 var(--font-famile);
}

.home {
    width: 100%;
    height: 100dvh;

    background: url('../assets/backgrounds.png') no-repeat center;
    background-size: cover;
    border-radius: 0 0 50px 50px;
}

.home__title {
    margin-bottom: 10vh;
}

.home__container {
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    position: absolute;
    top: 0;
    z-index: 1;

    width: 100%;
    padding: 3rem 0;

    background-color: var(--black-7);
}

.nav__link {
    font: 500 1.3rem/1.3 var(--font-famile);

    transition: var(--animation);
}
.nav__link:hover {
    color: var(--purple);
}

.nav__link > a {
    transition: var(--animation);
}

.nav__link > a:hover {
    color: var(--purple);
}

.input {
    width: 85vh;
    padding: 1.5rem 2rem;

    font: 400 1.5rem/1 var(--font-famile);
    color: var(--white);

    border-radius: 50px;
    background: var(--black);
}

.input::placeholder {
    color: var(--dark-violet);
    font: 400 1.5rem/1 var(--font-famile);
}
.input:focus-visible {
    border: 3px solid var(--purple);
    background: var(--black);
}
.input_btn {
    padding: 1.5rem 2rem;

    color: var(--dark-violet);
    font: 400 1.5rem/1 var(--font-famile);
    cursor: pointer;

    border-radius: 50px;
    background: var(--black);

    transition: var(--animation);
}
.input_btn:hover {
    color: #fff;
    background-color: var(--violet);
}
.input_btn:active {
    background-color: var(--dark-violet);
}

.socials {
    position: relative;

    padding: 50px 0 20px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social::after,
.social::before {
    position: absolute;
    top: 50%;
    content: '';

    background: var(--black);
    width: 30%;
    height: 3px;
}

.social::before {
    left: 0;
}
.social::after {
    right: 0;
}

.social {
    --background: var(--black);
    fill: var(--dark-violet);
    width: 5rem;

    transition: var(--animation);
}
.social:hover {
    --background: var(--violet);
    fill: var(--white) !important;
}
.social:hover path {
    fill: var(--white) !important;
}

.policies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
    margin-bottom: 20px;
}

.policies > a {
    text-align: center;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
    padding-bottom: 50px;
}

.nav__link-footer {
    cursor: default;
}

.nav__link-footer:hover {
    color: inherit;`
}

@media (max-width: 1050px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 770px) {
    .container {
        width: 95%;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-block1,
    .grid-block2 {
        grid-area: auto;
    }
    .input::placeholder {
        font: 400 1.2rem/1 var(--font-famile);
    }
}

@media (max-width: 770px) {
    .price__block {
        width: 90%;
    }
}

@media (max-width: 700px) {
    .nav__list {
        display: none;
    }
    .block {
        padding: 3vw;
    }
    .input {
        width: 65%;
    }
    .list {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .input::placeholder {
        font: 400 1.1rem/1 var(--font-famile);
    }
}

@media (max-width: 450px) {
    .social::after,
    .social::before {
        width: 10%;
    }
    .input::placeholder {
        font: 400 1rem/1 var(--font-famile);
    }
}

@media (max-width: 440px) {
    .title {
    font: 800 2.5rem/1.1 var(--font-famile);
    }
    .btn {
        font: 400 1.20rem/1.3 var(--font-famile);   
    }
    .block {
        padding: 20px;
    }
    .input {
        font: 400 1.3rem/1 var(--font-famile);
    }
}

@media (max-width: 375px) {
    .violet {
        font: 700 2.7rem/1 var(--font-famile);
    }
    .box {
        gap: 5vh;
    }
    .text {
        font: 400 1.25rem/1.3 var(--font-famile);
    }
    .hero-title {
        font: 700 2.5rem/1 var(--font-famile);
    }
    .title  {
        font: 800 2.24rem/1.1 var(--font-famile);
    }
}

@media (max-width: 350px) {
    .text {
        font: 400 1.25rem/1.3 var(--font-famile);
    }
    .hero-title {
        font: 700 2.1rem/1 var(--font-famile);
    }
    .title  {
        font: 800 2rem/1.1 var(--font-famile);
    }
    .input::placeholder {
        font: 400 0.95rem/1 var(--font-famile);
    }
}