/* #region Common */
.hidden {
    display: none;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #434455;
    background-color: #fff;
}

/* Reset */

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

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

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

h1 {
    font-size: 56px;
    line-height: 1.07;
    text-align: center;
    letter-spacing: 0.02em;
}

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

/* common container */

.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;
    }
}

/* Variables */

:root {
    --navy: #2E2F42;
    --muted: #8e8f99;
    --accent: #4D5AE5;
    --accent-dark: #404bbf;
    --light: #F4F4FD;
    --color-primary: #4d5ae5;
    --icon-color: #f4f4fd;
}
/* #endregion */
/* #region Header */

.page-header {
    border-bottom: 1px solid #e7e9fc;
    box-shadow:
        0 1px 6px 0 rgba(46, 47, 66, 0.08),
        0 1px 1px 0 rgba(46, 47, 66, 0.16),
        0 2px 1px 0 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(--accent);
}

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

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

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

.burger-icon {
    display: block;
    fill: var(--navy);
}

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

    .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 {
        display: block;
        padding: 24px 0;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: var(--navy);
        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(--accent-dark);
    }

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

    .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: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

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

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

    .contacts-list {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .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: 100vh;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
    z-index: 1000;
    overflow-x: hidden;
}

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

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

.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: var(--light);
    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(--accent-dark);
    border: none;
}

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

    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-nav .mobile-menu-link {
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    text-decoration: none;
    display: block;
    width: 100%;
}

.mobile-menu-contacts {
    margin-bottom: 32px;
}

.mobile-menu-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.mobile-menu-contacts-link {
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: var(--navy);
    text-decoration: none;
}

.mobile-social-list {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    padding-bottom: 12px;
}

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

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

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

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

@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}
/* #endregion */
/* #region Section 1 */
.first-section {
    padding: 188px 0;
    color: #FFFFFF;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7),
            rgba(46, 47, 66, 0.7)),
        url(../images/background/background.jpg);
    max-width: 1440px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;

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

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

.first-section-header {
    max-width: 496px;
    margin-bottom: 48px;
    font-size: 40px;
    /* десктопний розмір */
    line-height: 1.2;
}

/* Кнопка */
.first-section-order-button {
    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    font-size: 18px;
}

.first-section-order-button:hover,
.first-section-order-button:focus {
    background-color: #404BBF;
    letter-spacing: 0.04em;
}

/* --- Медіа-запити --- */

/* Смартфон */
@media (max-width: 767px) {
    .first-section {
        padding: 120px 16px;
        /* менше зверху/знизу, додаємо падінг з боків */
        background-position: center center;
        background-size: cover;
    }

    .first-section-header {
        max-width: 280px;
        font-size: 28px;
        margin-bottom: 32px;
    }

    .first-section-order-button {
        min-width: 140px;
        height: 48px;
        font-size: 16px;
        padding: 0 16px;
    }
}

/* Планшет */
@media (min-width: 768px) and (max-width: 1157px) {
    .first-section {
        padding: 160px 24px;
        background-position: center center;
        background-size: cover;
    }

    .first-section-header {
        max-width: 400px;
        font-size: 36px;
        margin-bottom: 40px;
    }

    .first-section-order-button {
        min-width: 160px;
        height: 52px;
        font-size: 17px;
        padding: 0 20px;
    }
}
/* #endregion */
/* #region Section 2 */
.second-section {
    padding: 120px 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;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    background-color: #f4f4fd;
    border-radius: 4px;
    border: 1px solid #8e8f99;
    margin-bottom: 8px;
}

.second-section-list {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    /* дозволяє переносити елементи */
}

.second-section-element {
    width: 100%;
    /* мобільна версія - по одному блоку в ряд */
    margin-bottom: 32px;
}

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

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

/* Планшетна версія */
@media screen and (min-width: 768px) {
    .second-section-element {
        width: calc((100% - 24px) / 2);
        margin-bottom: 40px;
    }
}

/* Десктопна версія */
@media screen and (min-width: 1158px) {
    .second-section-element {
        width: calc((100% - 72px) / 4);
        margin-bottom: 0;
    }
}
/* #endregion */
/* #region Section 3 */
.third-section {
    background-color: #F4F4FD;
    padding: 80px 16px;
    /* Мобільна версія */
}

.third-section-header {
    margin-bottom: 48px;
    font-size: 28px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
}

.third-section-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.third-section-list-item {
    background-color: #FFFFFF;
    border-radius: 0 0 4px 4px;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.container-name-title {
    padding: 24px 0;
}

.third-section-subtitle {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    margin-bottom: 8px;
}

.third-section-paragraph {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0 16px;
}

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

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

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

.social-link:hover,
.social-link:focus {
    background-color: var(--accent-dark, #404bbf);
}

.social-icon {
    fill: var(--light, #f4f4fd);
}

@media screen and (min-width: 768px) {
    .third-section {
        padding: 100px 32px;
    }

    .third-section-header {
        font-size: 32px;
        margin-bottom: 56px;
    }

    .third-section-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

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

    .third-section-subtitle {
        font-size: 20px;
    }

    .third-section-paragraph {
        font-size: 15px;
        padding: 0 24px;
    }

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

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

    .third-section-header {
        font-size: 36px;
        margin-bottom: 72px;
    }

    .third-section-list {
        gap: 24px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .third-section-list-item {
        width: calc((100% - 72px) / 4);
        padding: 0;
    }

    .third-section-subtitle {
        font-size: 20px;
    }

    .third-section-paragraph {
        font-size: 16px;
        padding: 0;
    }
}
/* #endregion */
/* #region Section 4 */
.fourth-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.third-section-header {
    margin-bottom: 48px;
    font-size: 28px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
}

.fourth-section-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 16px;
    /* row-gap column-gap */
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fourth-section-list-item {
    background-color: #fff;
    width: 100%;
    /* мобільна версія — картки на всю ширину */
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.img-wrap {
    position: relative;
    overflow: hidden;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    padding: 40px 32px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--color-cloud, #f4f4fd);
    background-color: #4d5ae5;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fourth-section-list-item:hover .overlay-text {
    transform: translateY(0%);
}

.fourth-section-list-item:hover {
    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);
}

.container-fourth-section-name {
    padding: 24px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.fourth-section-header {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
    text-align: center;
}

.fourth-section-paragraph {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Планшет (768px і вище) */
@media screen and (min-width: 768px) {
    .fourth-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .third-section-header {
        font-size: 32px;
        margin-bottom: 56px;
    }

    .fourth-section-list-item {
        width: calc((100% - 48px) / 2);
        /* 2 колонки з відступом */
    }

    .container-fourth-section-name {
        padding: 28px 20px;
    }

    .fourth-section-header {
        font-size: 20px;
    }

    .fourth-section-paragraph {
        font-size: 15px;
    }
}

/* Десктоп (1158px і вище) */
@media screen and (min-width: 1158px) {
    .fourth-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .third-section-header {
        font-size: 36px;
        margin-bottom: 72px;
    }

    .fourth-section-list {
        gap: 32px 24px;
        /* збільшення відстаней */
        justify-content: space-between;
    }

    .fourth-section-list-item {
        width: calc((100% - 72px) / 3);
        /* 4 колонки */
    }

    .container-fourth-section-name {
        padding: 32px 24px;
    }

    .fourth-section-header {
        font-size: 20px;
    }

    .fourth-section-paragraph {
        font-size: 16px;
    }
}
/* #endregion */
/* #region Footer */
.footer {
    background-color: #2e2f42;
    padding: 100px 16px;
    color: #fff;
}

.container-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.footer-logo-wrapper {
    margin: 0 auto;
    max-width: 280px;
    width: 100%;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    /* Повернули колір WEB */
    text-align: center;
}

.footer-logo .footer-logo-part {
    color: #fff;
    /* STUDIO білим */
}

.footer-paragraph {
    margin: 0 auto 24px auto;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
    color: #f4f4fd;
    letter-spacing: 0.02em;
}

.footer-socials {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.social-media-text,
.subscribe-text {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.social-media-text {
    color: #fff;
}

.social-media-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 48px;
    max-width: 280px;
}

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

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

.social-media-link:hover,
.social-media-link:focus {
    background-color: #31d0aa;
}

.social-media-icon {
    fill: var(--icon-color, #f4f4fd);
}

.subscribe-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.subscribe-text {
    color: #fff;
    margin-bottom: 8px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.subscribe-input {
    width: 100%;
    height: 40px;
    font-size: 14px;
    padding-left: 16px;
    border-radius: 4px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    outline: none;
}

.subscribe-input::placeholder {
    color: #fff;
}

.subscribe-btn {
    width: 100%;
    height: 40px;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    background-color: #4d5ae5;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.subscribe-btn:hover,
.subscribe-btn:focus {
    background-color: #404bbf;
}

.subscribe-icon {
    margin-left: 8px;
    fill: #fff;
}

@media screen and (min-width: 768px) and (max-width: 1157px) {
    .container-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px 32px;
        align-items: start;
        text-align: left;
        max-width: 768px;
        margin: 0 auto;
    }

    .footer-logo-wrapper {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        margin: 0;
        max-width: none;
        width: auto;
        text-align: left;
    }

    .footer-logo {
        margin: 0 0 16px 0;
        font-size: 18px;
        color: #4d5ae5;
    }

    .footer-logo .footer-logo-part {
        color: #fff;
    }

    .footer-paragraph {
        margin: 0 0 0 0;
        max-width: 264px;
        font-size: 14px;
        color: #f4f4fd;
    }

    .footer-socials {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin-top: 16px;
        max-width: none;
        width: auto;
        text-align: right;
    }

    .social-media-text {
        margin-bottom: 16px;
        text-align: right;
    }

    .social-media-list {
        margin: 0;
        justify-content: flex-end;
        max-width: none;
        gap: 24px;
    }

    .subscribe-container {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        margin-top: 16px;
        max-width: none;
        width: 100%;
        gap: 24px;
        align-items: center;
        text-align: center;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }

    .subscribe-text {
        margin-bottom: 8px;
        text-align: center;
        color: #fff;
        font-size: 14px;
        width: 100%;
    }

    .subscribe-form {
        flex-direction: row;
        gap: 24px;
        width: auto;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .subscribe-input {
        width: 230px;
        height: 40px;
        font-size: 12px;
        padding-left: 16px;
        border-radius: 4px;
        border: 1px solid #fff;
        background-color: transparent;
        color: #fff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
        outline: none;
    }

    .subscribe-input::placeholder {
        color: #fff;
    }

    .subscribe-btn {
        width: 165px;
        height: 40px;
        font-size: 12px;
    }
}

@media screen and (min-width: 1158px) {
    .container-footer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 48px;
        align-items: start;
        text-align: left;
        max-width: 1158px;
        margin: 0 auto;
    }

    .footer-logo-wrapper {
        grid-column: 1 / 2;
        margin: 0;
        max-width: none;
        width: auto;
    }

    .footer-logo {
        margin: 0 0 16px 0;
        font-size: 18px;
        text-align: left;
        font-family: 'Raleway', sans-serif;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4d5ae5;
    }

    .footer-logo .footer-logo-part {
        color: #fff;
    }

    .footer-paragraph {
        margin: 0 0 0 0;
        max-width: 264px;
        font-size: 14px;
        color: #f4f4fd;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }

    .footer-socials {
        grid-column: 2 / 3;
        margin: 0;
        max-width: none;
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .social-media-text {
        margin-bottom: 16px;
        text-align: left;
        font-weight: 500;
        font-size: 16px;
        color: #fff;
    }

    .social-media-list {
        margin: 0;
        justify-content: flex-start;
        max-width: none;
        display: flex;
        gap: 16px;
    }

    .subscribe-container {
        grid-column: 3 / 5;
        margin: 0;
        max-width: none;
        width: auto;
        gap: 16px;
        align-items: flex-start;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .subscribe-text {
        margin-bottom: 8px;
        text-align: left;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
    }

    .subscribe-form {
        flex-direction: row;
        gap: 16px;
        width: auto;
        display: flex;
        align-items: center;
    }

    .subscribe-input {
        width: 270px;
        height: 40px;
        font-size: 14px;
        padding-left: 16px;
        border-radius: 4px;
        border: 1px solid #fff;
        background-color: transparent;
        color: #fff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
        outline: none;
    }

    .subscribe-input::placeholder {
        color: #fff;
    }

    .subscribe-btn {
        width: 170px;
        height: 40px;
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        background-color: #4d5ae5;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 16px;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .subscribe-btn:hover,
    .subscribe-btn:focus {
        background-color: #404bbf;
    }

    .subscribe-icon {
        margin-left: 8px;
        fill: #fff;
    }
}
/* #endregion */
/* #region Modal */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    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%;
    width: 408px;
    min-height: 584px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.14),
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 2px 1px rgba(0, 0, 0, 0.2);
    padding: 72px 24px 24px 24px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop:not(.is-open) .modal {
    transform: translate(-50%, -100%);
}

/* Close button */
.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e7e9fc;
    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);
}

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

.modal-close-btn:hover,
.modal-close-btn:focus {
    background-color: var(--accent-dark);
    border: none;
}

.modal-close-btn:hover .modal-close-icon,
.modal-close-btn:focus .modal-close-icon {
    fill: #ffffff;
}

/* Title paragraph */
.modal-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
    color: var(--navy);
    margin-bottom: 16px;
}

/* Form fields */
.field {
    margin-bottom: 8px;
}

.field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.input-wrap {
    position: relative;
}

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

.text-input:focus {
    border-color: var(--accent);
}

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

.text-input:focus+.input-icon {
    fill: var(--accent);
}

/* Textarea */
.field-area {
    margin-bottom: 16px;
}

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

.area-input:focus {
    border-color: var(--accent);
}

/* Checkbox */
.agree {
    margin-bottom: 24px;
}

.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;
}

.agree-label {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    fill: transparent;
    margin-right: 8px;
    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);
}

#user-privacy:checked+.agree-label .checkbox-box {
    background-color: var(--accent-dark);
    border: none;
    fill: var(--light);
}

.agree-link {
    color: var(--accent);
}

/* Submit button */
.form-btn {
    display: block;
    min-width: 169px;
    height: 56px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    cursor: pointer;
    background-color: var(--accent);
    border: none;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-btn:hover,
.form-btn:focus {
    background-color: var(--accent-dark);
}
/* #endregion */