/* ========= Global styles ========= */

:root {
    --primary-color: #4d5ae5;
    --primary-hover-color: #404bbf;
    --secondary-color: #2e2f42;
    --text-color: #434455;
    --light-color: #f4f4fd;
    --footer-hover-color: #31d0aa;
    --icon-color: #f4f4fd;
    --icon-hover-color: #ffffff;
}

body {
    font-family: "Roboto", sans-serif;
    color: var(--text-color);
    background-color: #fff;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

/* common */

.container {
    max-width: 320px;
    padding: 0 16px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media screen and (min-width: 1158px) {
    .container {
        max-width: 1158px;
        padding: 0 15px;
    }
}

/* ========= Header styles ========= */

.page-header {
    border-bottom: 1px solid #e7e9fc;
    box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 1px 6px rgba(46, 47, 66, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list,
.contacts {
    display: none;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.header-logo {
    padding: 16px 0;
    display: block;
}

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

.burger-btn {
    padding: 0;
    border: none;
    background-color: transparent;
}

.burger-icon {
    display: block;
    fill: #2f2f37;
}

@media screen and (min-width: 768px) {
    .burger-btn {
        display: none;
        border: none;
        background-color: transparent;
    }

    .header-nav {
        display: flex;
        align-items: center;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .header-logo {
        padding: 24px 0;
        margin-right: 120px;
    }

    .nav-link {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: var(--secondary-color);
        padding: 24px 0;
        display: block;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link.current {
        position: relative;
    }

    .nav-link.current::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background-color: var(--primary-hover-color);
    }

    .contacts {
        margin-left: auto;
        display: block;
        font-style: normal;
    }

    .nav-link:hover,
    .nav-link:focus,
    .nav-link.current {
        color: var(--primary-hover-color);
    }

    .contacts-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contacts-link {
        display: block;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: var(--text-color);
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .contacts-link:hover,
    .contacts-link:focus {
        color: var(--primary-hover-color);
    }

}

@media screen and (min-width: 1158px) {
    .header-logo {
        margin-right: 76px;
    }

    .contacts-list {
        flex-direction: row;
        gap: 24px;
    }

    .contacts-link {
        padding: 24px 0;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
}

/*mobile menu*/

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu-container {
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background-color: var(--primary-hover-color);
    border: none;
}

.close-button-icon {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close:hover .close-button-icon,
.mobile-menu-close:focus .close-button-icon {
    fill: #ffffff;
}

.mobile-menu-nav {
    margin-bottom: auto;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--primary-hover-color);
}

/* Studio link should be blue by default */
.mobile-nav-item:first-child .mobile-nav-link {
    color: var(--primary-color);
}

.mobile-contacts {
    margin-bottom: 48px;
    font-style: normal;
}

.mobile-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-contacts-link {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-color);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phone number should be blue */
.mobile-contacts-item:last-child .mobile-contacts-link {
    color: var(--primary-color);
}

.mobile-contacts-link:hover,
.mobile-contacts-link:focus {
    color: var(--primary-hover-color);
}

.mobile-socials .social-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

.mobile-socials .social-item {
    width: 40px;
    height: 40px;
}

.mobile-socials .social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-socials .social-link:hover,
.mobile-socials .social-link:focus {
    background-color: var(--primary-hover-color);
}

.mobile-socials .social-icon {
    fill: var(--icon-color);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

@media screen and (min-width: 1158px) {
    .mobile-menu {
        display: none;
    }
}

/*section hero*/

.hero {
    display: flex;
    background-color: #2E2F42;
    color: #ffffff;
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 72px;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url('../images/office/office-mobile-1x.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    max-width: 1440px;
    margin: 0 auto;

}

@media screen and (min-resolution: 2x) {
    .hero {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url('../images/office/office-mobile-2x.jpg');
    }
}





.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11111;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    max-width: 216px;
    margin-bottom: 72px;
}

.order-button {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: var(--primary-color);
    cursor: pointer;
    padding: 16px 32px;
    margin: 0 auto;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.order-button:hover,
.order-button:focus {
    background-color: var(--primary-hover-color);
}

@media screen and (min-width: 768px) {
    .hero {
        max-width: 768px;
        padding-top: 120px;
        padding-bottom: 120px;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
            url('../images/office/office-tablet-1x.jpg');
    }

    @media screen and (min-width: 768px) and (min-resolution: 2x) {
        .hero {
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url('../images/office/office-tablet-2x.jpg');
        }
    }




    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        letter-spacing: 0.02em;
        max-width: 496px;
        margin-bottom: 36px;
    }
}

@media screen and (min-width: 1158px) {
    .hero {
        max-width: 1440px;
        padding: 188px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/office/office-desctop-1x.jpg');
    }

    @media screen and (min-width: 1158px) and (min-resolution: 2x) {
        .hero {
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
                url('../images/office/office-desctop-2x.jpg');
        }
    }

    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
        margin-bottom: 48px;
    }

    .order-button {
        min-width: 198px;
        height: 64px;
        padding: 20px 40px;
        font-size: 18px;
        line-height: 1.33333;
    }
}





/*Our Features*/



.features-section {
    padding: 96px 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.section-icon {
    display: none;
}

.section-item {
    margin-bottom: 72px;
}

.section-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.section-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

@media screen and (min-width: 768px) {
    .sections-list {
        display: flex;
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 72px;
    }

    .section-item {
        width: calc((100% - 24px) / 2);
        margin: auto;
    }

    .section-title {
        text-align: left;
    }
}

@media screen and (min-width: 1158px) {
    .features-section {
        padding: 160px 0;
    }

    .sections-list {
        column-gap: 30px;
        row-gap: 88px;
    }

    .section-item {
        width: calc((100% - 60px) / 3);
    }

    .section-icon {
        display: block;
        margin: 0 auto 24px;
    }

    .section-title {
        font-size: 48px;
        line-height: 1.08333;
        margin-bottom: 16px;
    }

    .section-text {
        font-size: 18px;
        line-height: 1.55556;
    }
}

@media screen and (min-width: 1158px) {
    .features-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .sections-list {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .section-item {
        flex-basis: calc((100% - 72px) / 4);
    }

    .section-icon {
        box-sizing: border-box;
        border: 1px solid #8E8F99;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        padding: 24px 100px;
        background-color: #F4F4FD;
        height: 112px;
    }

    .section-title {
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        text-align: center;
        letter-spacing: 0.02em;
        text-align: left;
    }

    .section-text {
        font-weight: 400;
        font-size: 16px;
        letter-spacing: 0.02em;
        line-height: 1.5;
        color: #434455;
    }
}

/*our team*/

/* our team */

.team-container {
    max-width: 296px;
}

.team-section {
    padding-top: 96px;
    padding-bottom: 96px;
    background-color: var(--light-color);
}


.team-hero {
    text-align: center;
    margin-bottom: 72px;
    font-weight: 700;
    font-size: 36px;
    line-height: 111%;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--secondary-color);
}

.team-item {
    background-color: #FFFFFF;
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.team-item:not(:last-child) {
    margin-bottom: 72px;
}



.team-info {
    padding: 32px 0;
}

.team-title {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-align: center;
}

.team-text {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 8px;
}

.social-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0;
}

.social-item {
    width: 40px;
    height: 40px;
}

.social-link {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover,
.social-link:focus {
    background-color: var(--primary-hover-color);
}

.social-icon {
    fill: var(--icon-color);
}

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

    .team-hero {
        font-weight: 500;
        line-height: 1.2;
    }

    .team-list {
        display: flex;
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 64px;
    }
    .team-container {
        max-width: 584px;
    }
    .team-item {
        width: calc((100% - 24px) / 2);
    }

    .team-item:not(:last-child) {
        margin: 0;
    }


    .team-title {
        font-size: 24px;
        line-height: 1.16667;
        margin-bottom: 12px;
    }
}

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

    .team-container {
        max-width: 1158px;
    }
    .team-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .team-list {
        flex-wrap: nowrap;
    }

    .team-item {
        width: calc((100% - 72px) / 4);
        box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
            0px 1px 1px rgba(46, 47, 66, 0.16),
            0px 2px 1px rgba(46, 47, 66, 0.08);
    }
}


/* ========= Portfolio ========= */

.portfolio-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.portfolio-hero {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 72px;
    text-align: center;
}

.portfolio-item {
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    overflow: hidden;
}

.portfolio-item:not(:last-child) {
    margin-bottom: 48px;
}


.portfolio-decor {
    box-sizing: border-box;
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.portfolio-description {
    display: none;
}

.portfolio-title {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #2e2f42;
    margin-bottom: 8px;
}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

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

    .portfolio-list {
        display: flex;
        flex-wrap: wrap;
        row-gap: 72px;
        column-gap: 24px;
    }

    .portfolio-item {
        width: calc((100% - 24px) / 2);
    }

    .portfolio-item:not(:last-child) {
        margin: 0;
    }
}

@media screen and (min-width: 1158px) {
    .portfolio-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .portfolio-list {
        row-gap: 48px;
    }

    .portfolio-item {
        width: calc((100% - 48px) / 3);
        transition-property: box-shadow;
        transition-duration: 250ms;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .portfolio-item:hover,
    .portfolio-item:focus {
        box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08),
            0 1px 1px 0 rgba(46, 47, 66, 0.16),
            0 1px 6px 0 rgba(46, 47, 66, 0.08);
    }

    .portfolio-image-wrapper {
        position: relative;
        overflow: hidden;
    }

    .portfolio-description {
        display: block;
        background-color: #4d5ae5;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateY(100%);
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 32px;
        font-weight: 400;
        font-size: 16px;
        line-height: 150%;
        letter-spacing: 0.02em;
        color: #F4F4FD;
    }

    .portfolio-item:hover .portfolio-description {
        transform: translateY(0);
    }

}

/* ... existing code ... */

/* ========= Footer ========= */
.footer {
    background-color: #2e2f42;
    padding-top: 96px;
    padding-bottom: 96px;
    justify-content: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-description {
    margin-bottom: 72px;
}


.logo-link {
    display: block;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    color: #4d5ae5;
    text-align: center;
}

.footer-logo-text {
    color: var(--light-color);
}

.footer-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    width: 264px;
}

.social-heading {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

/* ========= Footer Social Media ========= */
.footer-social-subscribe {
    display: flex;
    align-items: baseline;
    gap: 80px;
    width: 208px;
}

.social-heading {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

.footer .social-list {
    display: flex;
    gap: 16px;
    padding: 0;
    justify-content: center;
}

.footer .social-item {
    width: 40px;
    height: 40px;
}

.footer .social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .social-link:hover,
.footer .social-link:focus {
    background-color: var(--footer-hover-color);
}

.footer .social-icon {
    fill: var(--light-color);
}

/* ========= Footer Subscribe Form ========= */

.subscription-wrapper {
    margin-bottom: 72px;
}

.subscription-heading {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-label {
    width: 288px;
}

.subscription-input {
    width: 100%;
    height: 40px;
    background-color: transparent;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border: 1px solid #fff;
    padding: 8px 16px;
    font-weight: 400;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 16px;
}

.subscription-input::placeholder {
    color: #ffffff;
}

.subscription-button {
    border-radius: 4px;
    border: none;
    padding: 8px 24px;
    min-width: 165px;
    height: 40px;
    background-color: #4d5ae5;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subscription-button:hover,
.subscription-button:focus {
    background-color: var(--primary-hover-color);
}

.subscription-icon {
    fill: #ffffff;
    width: 24px;
    height: 24px;
}

@media screen and (min-width: 768px) {
    .footer {
        padding-top: 96px;
        padding-bottom: 96px;
    }

    .footer-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 72px 24px;
        flex-wrap: wrap;
        max-width: 584px;
    }

    .footer-description {
        margin-bottom: unset;
    }

    .footer-text {
        margin-bottom: 0;
        text-align: left;
        width: 264px;
    }

    .logo-link {
        text-align: left;
        margin-bottom: 16px;
    }

    .footer-social-wrapper {
        display: flex;
        flex-direction: column;
        flex: 0 0 208px;
    }

    .social-heading {
        text-align: left;
        margin-bottom: 16px;
    }

    .footer .social-list {
        justify-content: flex-start;
        margin-bottom: 0;
        gap: 16px;
    }

    .subscription-wrapper {
        margin-bottom: unset;
    }

    .subscription-heading {
        text-align: left;
        margin-bottom: 16px;
    }

    .subscription-form {
        flex-direction: row;
        align-items: flex-end;
        gap: 24px;
    }

    .subscription-label {
        width: 264px;
        margin: 0;
    }

    .subscription-input {
        margin-bottom: 0;
        font-size: 12px;
        line-height: 2;
        height: 40px;
        padding: 8px 16px;
    }

    .subscription-button {
        min-width: 165px;
        height: 40px;
        flex-shrink: 0;
    }


}

@media screen and (min-width: 1158px) {
    .footer {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .footer-container {
        max-width: 1158px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .footer-description {
        flex: 0 0 264px;
    }

    .footer-social-wrapper {
        flex: 0 0 208px;
    }

    .subscription-wrapper {
        flex: 0 0 453px;
        min-width: auto;
    }

    /* Restore footer-right-section for desktop if needed */
    .footer-right-section {
        display: flex;
        flex-direction: row;
        gap: 80px;
        align-items: flex-start;
    }
}

/* ========= Modal ========= */
.backdrop {
    background-color: rgba(46, 47, 66, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* form open*/
.backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: #fcfcfc;
    width: 288px;
    min-height: 623px;
    padding: 72px 16px 24px 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
        0px 1px 3px rgba(0, 0, 0, 0.12),
        0px 2px 1px rgba(0, 0, 0, 0.2);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e7e9fc;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    padding: 0;
    margin-bottom: 24px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.close-button-icon {
    fill: black;
    transition-property: fill;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.close-button:hover,
.close-button:focus {
    background-color: #404bbf;
    border: none;
}

.close-button-icon:hover,
.close-button-icon:focus {
    fill: #fff;
}

.modal-text {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-prefix {
    margin-bottom: 8px;
}

.modal-label {
    font-weight: 400;
    font-size: 12px;
    line-height: 117%;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: block;
    margin-bottom: 4px;
}

.modal-input-wrapper {
    position: relative;
}

.modal-input {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 38px;
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon {
    fill: #2e2f42;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-input:focus {
    border: 1px solid #4d5ae5;
}

.modal-input:focus+.input-icon {
    fill: #4D5AE5;
}

.modal-prefix-comment {
    margin-bottom: 16px;
}

.modal-textarea {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    resize: none;
    padding: 8px 16px;
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}

.modal-textarea:focus {
    border: 1px solid #4d5ae5;
}

.modal-checkbox {
    margin-bottom: 24px;
    max-width: 256px;
}
/* .visually-hidden:checked+.custom-checkbox-label .privacy-policy-link {
    background-color: #404bbf;
    border: none;
    fill: #F4F4FD;
} */

.custom-checkbox-input:checked+.custom-checkbox-label .checkbox-icon {
    background-color: var(--primary-hover-color);
    border: none;
    fill: var(--light-color);
}

.custom-checkbox-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.checkbox-svg {
    width: 10px;
    height: 8px;
}

.checkbox-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border 250ms cubic-bezier(0.4, 0, 0.2, 1),
        fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: transparent;
    margin-right: 8px;
}

.checkbox-svg {
    width: 10px;
    height: 8px;
}
.checkbox-text {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #8e8f99;
}

.privacy-policy-link {
    color: #4d5ae5;
    text-decoration: underline;

}

.modal-button {
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: #4d5ae5;
    border: inherit;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.04em;
    text-align: center;
    margin-right: auto;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.modal-button:hover,
.modal-button:focus {
    background-color: #404bbf;
}

@media screen and (min-width: 768px) {
    .modal {
        width: 408px;
        min-height: 584px;
    }

    .modal-checkbox {
        max-width: 360px;
    }

    .custom-checkbox-label {
        align-items: center;
        gap: 8px;
    }


    .checkbox-icon {
        justify-content: center;
    }

    .privacy-policy-link {
        display: inline;
    }
}