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

a {
    text-decoration: none;
    color: inherit;
    transition: .3s;
}


img {
    max-width: 100%;
}

li {
    position: relative;
    list-style: none;
    z-index: 1;
}

body {
    font-family: "Rubik", sans-serif;
    color: var(--black);
    background-color: var(--white);
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --accent: #8DDB10;
    --bounce-transition: .35s cubic-bezier(.17, .67, .3, 1.33);
    --slow-transition: .75s cubic-bezier(.2, .6, 0, 1);
}

/* COMMON STYLES */
.btn {
    display: inline-block;
    border-radius: 16px;
    padding: 16px 28px;
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    border: none;
    cursor: pointer;
    transition: .5s;
}

.btn:hover {
    transform: scale(1.05);
}

.mob {
    display: none;
}

.container {
    max-width: 1500px;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
}

.title {
    font-weight: 600;
    font-size: 64px;
    line-height: 112%;
}

.description {
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
}

.logo {
    font-weight: 600;
    font-size: 40px;
    letter-spacing: -0.02em;
}

/* header */
.header .container {
    padding-top: 41px;
    padding-bottom: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    color: var(--white);
}

.header .phone-number {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: var(--white);
}

/* main */
.wrapper {
    background-image: url("../img/main-bg.png");
    background-size: cover;
    background-position: center;
}

.main .container {
    padding-top: 173px;
    padding-bottom: 68px;
}

.main-info {
    max-width: 979px;
    margin: 0 auto 105px;
}

.main-title {
    font-weight: 600;
    text-align: center;
    color: var(--white);
    margin-bottom: 32px;
}

.main-description {
    max-width: 550px;
    text-align: center;
    color: var(--white);
    margin: 0 auto 40px;
}

.btn-main {
    display: block;
    color: var(--black);
    background: var(--accent);
    margin: 0 auto;
}

.main-advantages {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-advantage {
    max-width: 418px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 209, 229, 0.4);
}

.advantage-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    color: var(--black);
}

/* parcels */
.parcels .container {
    padding-top: 73px;
    padding-bottom: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.parcels-info {
    max-width: 830px;
}

.parcels-image {
    max-width: 634px;
    margin-left: -72px;
}

.parcels-title {
    margin-bottom: 32px;
}

.parcels-description {
    max-width: 591px;
}

/* partners */
.partners .container {
    padding-top: 140px;
    padding-bottom: 140px;
}

.partners-title {
    max-width: 884px;
    font-weight: 700;
    font-size: 48px;
    line-height: 117%;
    text-align: center;
    margin: 0 auto 80px;
}

.partners-items {
    display: flex;
    justify-content: space-between;
    gap: 56px;
}

/* delivery */
.delivery {
    background-image: url("../img/delivery-bg.png");
    background-position: center;
}

.delivery .container {
    padding-top: 241px;
    padding-bottom: 241px;
}

.delivery-info {
    max-width: 830px;
    margin: 0 auto;
}

.delivery-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
}

.delivery-description {
    color: var(--white);
    text-align: center;
}

.delivery .btn-main {
    display: block;
    margin: 0 auto 24px;
}

/* faq */
.faq {
    background: #f2f3f6;
}
.faq .container {
    padding-top: 140px;
    padding-bottom: 130px;
}

.faq-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 117%;
    text-align: center;
    margin-bottom: 40px;
}

.accordion {
    max-width: 1002px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid rgba(203, 209, 229, 0.4);
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 2px 30px 0 rgba(121, 160, 169, 0.15);
    margin-bottom: 16px;
    height: max-content;
}

.accordion-header {
    padding: 24px;
    border-top: 1px solid #e8ebf2;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: 600;
    font-size: 24px;
    line-height: 133%;
    color: #1f2223;
}

.accordion-header:focus {
    outline: none;
}

.arrow {
    min-width: 24px;
    margin-left: 30px;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s linear;
    background-color: var(--white);

    padding: 0 24px;
    font-size: 20px;
    line-height: 140%;
    color: #1f2223;
    border-radius: 12px;
}

.accordion-item.active .accordion-header {
    margin-bottom: 10px;
}

.accordion-item.active .accordion-content {
    max-height: max-content;
}

.accordion-item.active .arrow {
    transform: rotate(45deg);
}

.questions {
    max-width: 1002px;
    margin: 15px auto 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 200%;
}

.questions a {
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    transition: .3s;
}

.questions a:hover {
    color: var(--hover);
    transition: .3s;
}

/* footer */
.footer {
    padding: 72px 0 40px 0;
    background-color: var(--black);
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-top .logo {
    color: var(--white);
    margin-bottom: 8px;
}

.footer-logo-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--white);
}

.footer-info {
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info svg {
    min-width: 24px;
}

.footer-info-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--white);
}

.footer-info-text a {
    text-decoration: none;
    color: var(--white);
}

.footer-info-text a:hover {
    color: var(--white);
    opacity: .7;
}

.footer-bottom {
    border-top: 1px solid var(--white);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    margin-top: 140px;

    font-weight: 400;
    font-size: 14px;
    line-height: 114%;
    color: var(--white);
}

.footer-rights {
    display: flex;
    gap: 24px;
}

.footer-rights p {
    margin: 0;
}

.footer-offer {
    cursor: pointer;
    transition: .3s;
}

.footer-offer:hover {
    transition: .3s;
    transform: scale(1.05);
}

/* modal */
.modal__container {
    border-radius: 10px;
    padding: 60px;
}

.modal__header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.modal__title {
    font-weight: 700;
    font-size: 46px;
    line-height: 110%;
    color: var(--black);
}

.modal__close {
    width: 24px;
    height: 24px;
}

.modal__close::before {
    font-weight: 700;
    font-size: 24px;
}

.modal__descr {
    color: gray;
    font-size: 20px;
}

.modal__form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

.modal__form-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.modal__form-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.modal__form-label {
    line-height: 100%;
}

.modal__form-label a {
    line-height: 100%;
}

.modal__btn {
    background-color: var(--accent);
    color: var(--black);
    margin: 0 auto;
}

.modal__btn:hover {
    color: var(--white);
}

.modal__form-card {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid gray;
}

.modal__link {
    display: inline-block;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    transition: all var(--bounce-transition);
    margin: 0;
}

.modal__link:hover {
    transform: scale(1.05);
    color: var(--hover);
}

#offer .modal__container {
    max-width: 80%;
    max-height: 90%;
}

#offer .modal__header {
    align-items: flex-start;
}

#offer .modal__body p {
    margin-bottom: 12px;
}

#offer .modal__body p:last-child {
    margin-bottom: 0;
}