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

/* reset */

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

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

h1,
h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

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

/* common */

.container {
    max-width: 320px;
    padding: 0px 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: 0px 15px;
    }
}

/*header*/

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

.header-logo {
    display: block;
    padding: 16px 0;
    color: #fff;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

    .nav-link:hover,
    .nav-link:focus {
        color: #404bbf;
    }
}

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

/* mobile menu */

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

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

.mob-menu-container {
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.mob-menu-close {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #fff;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    height: 24px;
    width: 24px;
    top: 24px;
    right: 24px;
    background-color: #434455;
    fill: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-menu-close:hover,
.mob-menu-close:focus {
    background-color: #fff;
    fill: #434455;
    border: none;
}

.btn-menu {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-list {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 40px;
}

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

.nav-menu-link:hover,
.nav-menu-link:focus {
    color: #404bbf;
}

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

/*section one*/

.title {
    max-width: 320px;
    padding: 72px 0;
    margin: 0 auto;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7),
            rgba(46, 47, 66, 0.7)),
        url(../images/hero.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container-title {
    padding: 0;
}

.title-text {
    max-width: 216px;
    margin: 0 auto;
    margin-bottom: 72px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
}

.title-subtext {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    padding-bottom: 40px;
}

.title-text-list {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.title-text-item {
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.title-text-part {
    color: #0397fa;
}

.title-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 169px;
    border-radius: 15px;
    height: 56px;
    border: none;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background-color: #f5e903;
    color: #2e2f42;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.title-button:hover,
.title-button:focus {
    background-color: #0052b4;
    color: #fff;
}

@media screen and (min-width: 768px) {
    .container-title {
        margin: 0 40px;
    }

    .title {
        max-width: 768px;
        padding: 112px 0;
    }

    .title-text {
        max-width: 496px;
        margin-bottom: 36px;
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07;
    }
}


@media screen and (min-width: 1158px) {
    .footer-container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 140px;
    }

    .container-title {
        margin: 0 140px;
    }

    .title-text {
        text-align: center;
    }

    .title {
        max-width: 1440px;
        padding: 188px 0;
    }

    .title-text {
        margin-bottom: 48px;
    }
}

/* backdrop*/

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: rgba(46, 47, 66, 0.4);
    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: 288px;
    min-height: 623px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    padding: 72px 16px 24px 16px;
    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);
}


.close {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    height: 24px;
    width: 24px;
    top: 24px;
    right: 24px;
    background-color: #e7e9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    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);
}

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

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

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

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

.modal-wrap {
    position: relative;
    margin-bottom: 8px;
}

.input-icon {
    position: relative;
}

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

.subject-input:focus {
    border-color: #4d5ae5;
    fill: #4d5ae5;
}

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

.subject-input::placeholder {
    color: rgba(46, 47, 66, 0.4);
}

.radio-group {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}

.textarea {
    margin-bottom: 16px;
}

.modal-textarea {
    margin-top: 4px;
    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);
}

.modal-textarea:focus {
    border-color: #4d5ae5;
}

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

.form-button {
    min-width: 169px;
    border-radius: 15px;
    height: 56px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background-color: #f5e903;
    border: 1px solid #404bbf;
    color: #2e2f42;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0 auto;
}

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

.modal-checkbox {
    margin-bottom: 24px;
}

.check-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #000;
}

.text {
    line-height: 1.33;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
}

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

.check-modal:checked+.check-text .modal-check {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
}

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

    .check-text {
        justify-content: start;
        align-items: start;
    }
}

/*section two*/
.table {
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: #282834;
}

.table-wrapper {
    margin: 20px 0;
}

.table-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.table-list,
.table-list tbody,
.table-list tr,
.table-list td {
    display: block;
    width: 100%;
}

.table-list .table-header-row {
    display: none;
}

.table-list .table-title-row {
    display: table-row;
}

.table-list tr {
    margin-bottom: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.table-list td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #eee;
}

.table-list td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #aaa;
}

.action-cell {
    display: block;
    padding: 12px;
}

.table-title-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 169px;
    border-radius: 15px;
    height: 56px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #2e2f42;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    background-color: #fa0255;
}

.table-title-button:hover,
.table-title-button:focus {
    background: #0052b4;
    color: #fff;
}

@media (min-width: 768px) {
    .table {
        max-width: 768px;
        padding: 0 16px;
        margin: 0 auto;
    }

    .table-wrapper {
        margin: 40px 40px 0 40px;
    }

    .table-list {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .table-list thead {
        display: table-header-group;
    }

    .table-list tbody {
        display: table-row-group;
    }

    .table-list tr {
        display: table-row;
        border: none;
    }

    .table-list th,
    .table-list td {
        display: table-cell;
        padding: 12px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .table-list th:first-child {
        text-align: left;
    }

    .table-title {
        text-align: left;
        font-size: 22px;
        margin-bottom: 20px;
    }

    .table-list td::before {
        display: none;
    }

    .table-list .table-header-row {
        display: table-row;
    }

    .action-cell {
        display: table-cell;
        text-align: center;
    }

    .table-title-button {
        width: auto;
        padding: 8px 12px;
    }
}

@media (min-width: 1158px) {
    .table {
        max-width: 1000px;
        margin-bottom: 40px;
    }

    .table-wrapper {
        margin: 40px 40px 0 40px;
    }

    .table-title {
        font-size: 24px;
    }

    .table-list th,
    .table-list td {
        font-size: 22px;
        padding: 12px 16px;
    }

    .table-list th:first-child {
        text-align: left;
    }
}

/*section three*/

.user {
    padding: 96px 0px;
    background-color: #434455;
}

.subtitle-list-user {
    max-width: 264px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 auto;
}

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

.subtitle-items {
    margin-bottom: 72px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.subtitle-items:last-child {
    margin-bottom: 0;
}

.user-text {
    border-radius: 0 0 15px 15px;
    background-color: #2e2f42;
    padding: 8px 0px;
    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);
}

.subject-user {
    text-align: center;
    margin-bottom: 8px;
}

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

.subject-user,
.gallery-subject {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
}

.user-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .subtitle-list-user {
        max-width: 552px;
        gap: 64px 24px;
        justify-content: center;
    }

    .subtitle-items {
        flex-basis: calc((100% - 48px) / 2);
        margin-bottom: 0;
    }

    .subtitle-items:last-child {
        margin: 0 auto;
    }
}

@media screen and (min-width: 1158px) {
    .user {
        padding: 40px 0px;
    }

    .subtitle-list-user {
        max-width: 918px;
        gap: 24px;
        justify-content: center;
    }

    .subtitle-items {
        flex: 0 0 calc((100% - 2 * 48px) / 3);
    }

    .subtitle-items:last-child {
        margin: 0;
    }
}

/*section four*/

.history {
    background: linear-gradient(135deg, #202023, #360a10);
}

.history-top {
    display: block;
}

.history-subtitle {
    padding: 40px 0;
}

.history-text-list-foto {
    margin-bottom: 20px;
}

.history-foto {
    padding: 20px 0;
}

.history-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.history-text-list-foto,
.history-text-list-item {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .history-top {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .history-text-list-foto {
        flex: 1;
    }

    .history-foto {
        flex: 1;
        padding: 0 0 20px;
    }

    .history-img {
        height: 100%;
    }
}

@media (min-width: 1158px) {
    .history-container {
        max-width: 1000px;
    }

    .history-top {
        gap: 40px;
    }

    .history-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/*section five*/

.contact {
    background: linear-gradient(135deg, #360a10, #202023);
    padding: 40px 0;
}

.contact-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-text {
    text-align: center;
    margin-bottom: 32px;
    color: #ccc;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    color: #fff;
}

.form-field input,
.form-field textarea {
    padding: 10px 12px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
}

textarea {
    min-height: 120px;
    resize: none;
}

.contact-btn {
    align-self: flex-start;
    padding: 10px 20px;
    height: 56px;
    border: none;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #2e2f42;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fa0255;
    border-radius: 15px;
}

.contact-btn:hover {
    background: #0052b4;
    color: #fff;
}

.contact-map img {
    width: 100%;
    border-radius: 8px;
}

.map-title {
    margin-bottom: 12px;
    color: #fff;
}

@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }

    .form-field {
        flex: 1;
    }
}

@media (min-width: 1158px) {
    .contact-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-form {
        flex: 1;
    }

    .contact-map {
        flex: 1;
    }
}

/* футер */
.page-footer {
    background-color: #434455;
    padding-bottom: 20px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-contacts {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

.dot {
    opacity: 0.6;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-contacts {
        justify-content: flex-start;
    }
}

@media (min-width: 1158px) {
    .footer-container {
        max-width: 1158px;
        padding: 0 90px;
    }
}