﻿/* ---------- Base ---------- */
:root {
    scrollbar-width: none;
}

body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

img {
    display: block;
}

.container {
    width: 320px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 96px;
    padding-bottom: 96px;
}
    /*---------- Header --------- */

.header {
    background-color: #ffffff;
    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);
    min-width: 320px;
    height: 56px;
    padding: 16px 0;
}

.header-navigation {
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: #4d5ae5;
    /* margin-right: 76px; */
}

.menu {
    display: flex;
    gap: 40px;
}

.logo-accent {
    color: #2e2f42;
}

.menu-link {
    display: none;
    padding: 24px 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    position: relative;
    transition-property: color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


.menu-link:focus {
    color: #404bbf;
}

.menu-link.current {
    color: #404bbf;
}

.menu-link.current::after {
    content: "";
    position: absolute;
    bottom: -1px;
    gap: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #404bbf;
}

.contacts {
    font-style: normal;
    margin-left: auto;
}

.contacts-list {
    display: none;
    gap: 40px;
}

.contact-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    text-decoration: none;
    transition-property: color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:focus {
    color: #404bbf;
}

/*------------ Mob Menu --------- */

.menu-open-btn {
    display: none;
    border: none;
    background-color: transparent;
    line-height: 0;
    width: 20px;
    height: 20px;
}


.menu-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.hamburger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background-color: #2e2f42;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.mob-menu {
    padding: 0 24px 0 16px;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    border: none;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 100%;
    stroke-width: 1px;
    stroke: #2e2f42;
    padding: 0;
}

.mob-navigation {
    width: 151px;
    margin-top: 72px;
    margin-bottom: 50px;
}

.mob-menu-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mob-menu-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.mob-menu-link.current {
    color: #404bbf;
}

.mob-contacts {
    width: 193px;
    height: 72px;
    margin-bottom: 48px;
}

.mob-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mob-contact-link {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    font-style: normal;
}

.mob-contact-tel {
    color: #404bbf;
}

.mob-icons {
    width: 280px;
    margin-bottom: 40px;
}

.mob-icon-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mob-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4d5ae5;
}

.mob-icon {
    fill: #f4f4fd;
}

.body.no-scroll {
    overflow: hidden;
}
/*---------- Hero --------- */

.hero-section {
    background-color: #2e2f42;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg-mob.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    padding: 72px 0;

    @media screen and (min-resolution: 2dppx), (-mobkit-min-device-pixel-ratio: 2x) {
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg-mob-2x.jpg');
    }
}

.hero-title {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    color: #ffffff;
    max-width: 216px;
    margin: 0 auto 72px;
}

.button {
    background-color: #4D5AE5;
    cursor: pointer;
    display: block;
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    border: none;
    margin: 0 auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.button-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
}

/*---------- Advantages --------- */

.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;
}

.advantages-title {
    margin-bottom: 8px;
}

.advantages-icon {
    display: none;
}

.advantages-subtitle {
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}

.advantages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
}

.advantages-item {
    width: 288px;
}

.advantages-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    font-weight: 500;
}

/*---------- Team --------- */

.team-section {
    background: #f4f4fd;
}

.team-title {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 72px;
}

.team-item {
    width: 264px;
    height: 428px;
    background: #fff;
    border-radius: 0 0 4px 4px;
    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-card {
    padding: 32px 0;
}

.team-subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 8px;
}

.team-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    margin-bottom: 8px;
}

.team-icon-list {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.team-icon-item {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
}
.team-icon {
    display: block;
    fill: #f4f4fd;
}

.team-icon-link {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: #4d5ae5;
  border-radius: 50%;
}
/*---------- Portfolio --------- */

.portfolio-title {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.portfolio-item {
    background: #fff;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    width: 288px;
}

.portfolio-item-slide {
    overflow: hidden;
}

.portfolio-item-text {
    display: none;
}

.portfolio-card {
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    padding: 32px 16px;
    border-top: none;
}

.portfolio-subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;

}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

/*---------- Footer --------- */

.footer {
    background-color: #2e2f42;
    padding-top: 96px;
    padding-bottom: 96px;
}

.footer-container {
    gap: 72px;
}

.footer-box {
    margin: 0 auto;
}

.logo-studio {
    color: #f4f4fd;
}

.footer-container .logo {
    display: flex;
    margin: 0 auto;
    margin-bottom: 16px;
    justify-content: center;
}

.footer-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;
    max-width: 264px;
}

.footer-icons {
    margin: 0 auto;
    width: 208px;
    height: 80px;
}

.footer-icon-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.footer-icon-list {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-icon-item {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
}

.footer-icon {
    display: block;
    margin: 12px auto;
    fill: #f4f4fd;
}

.footer-icon-link {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: #4d5ae5;
  border-radius: 50%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
}

.footer-subscribe {
    width: 288px;
    height: 136px;
}

.footer-subscribe-text {
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-form-input {
    border: 1px solid #ffffff;
    border-radius: 4px;
    width: 288px;
    height: 40px;
    background-color: transparent;
    padding-left: 16px;
    color: #ffffff;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.15);
    opacity: 0.3;
}

.footer-form-input::placeholder {
    color: #ffffff;
    opacity: 0.6;
}

.footer-form-btn {
    border-radius: 4px;
    padding: 8px 24px;
    min-width: 165px;
    height: 40px;
    background: #4d5ae5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    gap: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    cursor: pointer;
    color: #fff;
    margin: 0 auto;
}

.footer-btn-icon {
    fill: #fff;
}

/*---------- Modal --------- */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    z-index: 1000;

    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);
}

.backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 288px;
    min-height: 623px;
    background-color: #fcfcfc;
    padding: 72px 16px 24px 16px;
    border-radius: 4px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 2px 1px 0 rgba(0, 0, 0, 0.2);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop.is-open .modal {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close-icon {
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 16px;
}

.modal-input-label {
    display: block;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 4px;
}

.modal-input-box {
    margin-bottom: 8px;
}

.modal-input-field {
    position: relative;
}

.modal-input {
    height: 40px;
    padding-left: 38px;
    padding-right: 16px;
    outline: transparent;
    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-element {
    outline: transparent;
    border: none;
    border-radius: 4px;
    width: 100%;
    border: 1px solid rgba(46, 47, 66, 0.4);
}

.modal-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-textarea {
    background-color: transparent;
    color: rgba(46, 47, 66, 0.4);
    letter-spacing: 0.04em;
    line-height: 1.17;
    font-size: 12px; 
    height: 120px;
    padding: 8px 16px;
    resize: none;
    margin-bottom: 16px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-textarea::placeholder {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
    opacity: 0.5;
}

.modal-input-textarea {
    margin-bottom: 16px;
}

.modal-checkbox-txt {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
}

.check-policy {
    line-height: 1.33;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
}

.modal-check-icon {
    fill: #f4f4fd;
}

.modal-checkbox-text {
    margin-bottom: 24px;
}

.modal-checkbox:checked + label > span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd
}

.modal-btn {
    display: block;
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    background-color: #4d5ae5;
    cursor: pointer;
    border: none;
    margin: 0 auto;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    margin-right: 8px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    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);
}

.modal-btn:active {
    background-color: #404bbf;
}

/* --------------- Media tablet ------------------- */

@media screen and (min-width: 768px) and (max-width: 1157px) {
    .container {
        width: 768px;
    }

    .menu-open-btn {
        display: none;
    }

    .header {
        height: 72px;
        min-width: 768px;
        padding: unset;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-navigation {
        gap: 120px;
    }

    .menu-link {
        padding: unset;
        padding-bottom: 24px;
        display: block;
    }

    .menu {
        margin-top: 24px;
        width: 261px;
    }

    .contacts-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contacts-item {
        width: 119px;
        height: 14px;
    }

    .contacts {
        margin: 16px 0 16px auto;
    }

    .contact-link {
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
    }

    .hero-section {
        padding: 112px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg-tab.jpg');

        @media screen and (min-resolution: 2x), (-mobkit-min-device-pixel-ratio: 2x) {
          background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg-tab-2x.jpg');
        }
    }

    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
        margin: 0 auto 36px;
    }

    .advantages-list {
        gap: 72px 24px;
    }

    .advantages-item {
        width: 356px;
        height: 120px;
        width: calc((100% - 24px) / 2);
    }

    .advantages-subtitle {
        text-align: unset;
    }
    
    .team-list {
        gap: 64px 24px;
    }

    .portfolio-list {
        justify-content: center;
        gap: 72px 24px;
    }

    .portfolio-item {
        box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
        width: 356px;
    }

    .footer-container {
        gap: 72px 24px;
    }

    .footer-container .logo {
        display: inline-block;
    }

    .footer-box {
        margin: unset;
        margin-left: 92px;
        width: 264px;
        height: 112px;
    }

    .footer-icon-text {
        text-align: start;
    }

    .footer-form {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .footer-subscribe {
        margin-left: 92px;
        width: 453px;
        height: 80px;
    }

    .footer-subscribe-text {
        text-align: start;
    }

    .footer-form-input {
        width: 264px;
        height: 40px;
    }

    .footer-icons {
        margin: unset;
    }
    
    .modal {
        width: 408px;
        min-height: 584px;
        padding: 72px 24px 24px 24px;
    }


    
}

@media screen and (min-width: 1158px) {
    .container {
        min-width: 1158px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .menu-open-btn {
        display: none;
    }

    .header {
        height: 72px;
        padding: unset;
        min-width: 1158px;
    }

    .logo {
        margin-right: 76px;
    }

    .menu {
        width: 261px;
        margin-top: 24px;
    }

    .menu-link {
        display: block;
        padding: unset;
        padding-bottom: 24px;
    }

    .menu-link:hover {
        color: #404bbf;
    }

    .contacts-list {
        display: flex;
        gap: 40px;
    }

    .contact-link:hover {
        color: #404bbf;
    }

    .hero-section {
        padding: 188px 0;
        background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg.jpg');

        @media screen and (min-resolution: 2x), (-mobkit-min-device-pixel-ratio: 2x) {
            background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url('../images/hero-bg-2x.jpg');
        }
    }

    .hero-title {
        font-size: 56px;
        line-height: 1.07;
        max-width: 496px;
        margin: 0 auto 48px;
    }

    .button {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .button:hover,
    .button:focus {
        background-color: #404BBF;
    }

    .advantages-box {
        border: 1px solid #8e8f99;
        border-radius: 4px;
        width: 264px;
        height: 112px;
        background: #f4f4fd;
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .advantages-icon {
        display: block;
        margin: 24px auto;
    }

    .advantages-subtitle {
        font-weight: 500;
        font-size: 20px;
        text-align: unset;
    }

    .advantages-text {
        font-weight: 400;
    } 

    .advantages-list {
        gap: 24px;
    }

    .advantages-item {
        width: calc((100% - 3 * 24px) / 4);
    }

    .team-list {
        gap: 24px;
    }

    .team-item {
        width: calc((100% - 3 * 24px) / 4);
    }

    .team-icon-link {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .team-icon-link:hover,
    .team-icon-link:focus {
        background-color: #404bbf;
    }

    .portfolio-list {
        gap: 48px 24px;
    }

    .portfolio-item {
        cursor: pointer;
        width: calc((100% - 48px) / 3);
        transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .portfolio-item:hover .portfolio-item-text,
    .portfolio-item:focus .portfolio-item-text {
        transform: translateY(0);
    }

    .portfolio-item:hover,
    .portfolio-item:focus {
        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-item-text {
        display: inline-block;
        position: absolute;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        top: 0;
        left: 0;
        padding: 40px 32px;
        color: #f4f4fd;
        background-color: #4d5ae5;
        width: 100%;
        height: 100%;
        transform: translateY(100%);
        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .portfolio-item-slide {
        position: relative;
    }

    .footer {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .footer-container {
        gap: unset;
    }

    .footer-container .logo {
        justify-content: flex-start;
    }

    .footer-box {
        margin: 0;
        width: 264px;
        height: 112px;
        margin-right: 120px;
    }

    .footer-icons {
        margin: unset;
        margin-right: 80px;
    }

    .footer-icon-text {
        text-align: start;
    }

    .footer-icon-link {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-icon-link:hover,
    .footer-icon-link:focus {
        background-color: #31d0aa;
    }

    .footer-container {
        justify-content: flex-start;
        align-items: baseline;
    }

    .footer-subscribe {
        margin-left: auto;
        width: 453px;
        height: 80px;
    }

    .footer-form {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .footer-subscribe-text {
        text-align: start;
    }

    .footer-form-input {
        opacity: 1;
        width: 264px;
    }

    .footer-form-input::placeholder {
        opacity: 1;
    }

    .footer-form-btn {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .footer-form-btn:hover,
    .footer-form-btn:focus {
        background-color: #404bbf;
    }

    .modal {
        width: 408px;
        min-height: 584px;
        padding: 72px 24px 24px 24px;
    }
    
    .modal-close-btn:hover .modal-close-icon,
    .modal-close-btn:focus .modal-close-icon {
        fill: #fff;
    }
    
    .modal-close-btn:hover,
    .modal-close-btn:focus {
        background-color: #404bbf;
        border: none;
    }
    
    .modal-input:focus {
        border: 1px solid #4d5ae5;
    }
    
    .modal-input:focus+svg {
        fill: #4d5ae5;
    }

    .modal-textarea:focus {
        border: 1px solid #4d5ae5;
    }
    
    .modal-btn:hover,
    .modal-btn:focus {
        background-color: #404bbf;
    }

}