.contacts-page {
    width: 100%;
}

.contacts-hero-section,
.contacts-main-section,
.contacts-map-section,
.contacts-requisites-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contacts-hero-section {
    padding: 56px 0;
    border-bottom: 1px solid #e2e2ec;
    background: #fff;
}

.contacts-hero-container,
.contacts-main-container,
.contacts-map-container,
.contacts-requisites-container {
    width: 100%;
    max-width: var(--content-max-width);
    box-sizing: border-box;
}

.contacts-hero-label {
    margin: 0;
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #252691;
}

.contacts-hero-container h1 {
    margin: 12px 0 0;
    font-family: var(--second-family);
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    color: #151525;
    overflow-wrap: anywhere;
}

.contacts-hero-lead {
    margin: 4px 0 0;
    max-width: 672px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #717188;
    overflow-wrap: anywhere;
}

.contacts-main-section {
    padding: 56px 0;
    background: #f6f6fa;
}

.contacts-main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.contacts-cards {
    display: grid;
    gap: 16px;
}

.contacts-card,
.contacts-form-card,
.contacts-requisites-card {
    background: #fff;
    border: 1px solid #e2e2ec;
    border-radius: 16px;
}

.contacts-card {
    padding: 24px;
}

.contacts-card h2 {
    margin: 0;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #717188;
}

.contacts-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.contacts-row span {
    font-family: var(--font-family);
    font-size: 14px;
    color: #717188;
    overflow-wrap: anywhere;
}

.contacts-row a,
.contacts-email-item a {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: #252691;
    overflow-wrap: anywhere;
}

.contacts-row a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    line-height: 20px;
    text-decoration: none;
}

.contacts-row a img {
    flex: 0 0 auto;
    display: block;
    width: 14px;
    height: 14px;
}

.contacts-email-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contacts-email-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-email-icon {
    flex: 0 0 auto;
    display: block;
}

.contacts-card p {
    margin: 12px 0 0;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 20px;
    color: #151525;
    overflow-wrap: anywhere;
}

.contacts-form-card {
    padding: 32px;
}

.contacts-form-card h2 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #151525;
}

.contacts-form-card > p {
    margin: 8px 0 0;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 20px;
    color: #717188;
}

.contacts-form {
    margin-top: 16px;
}

.contacts-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

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

.contacts-field-label {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #717188;
}

.contacts-field-control {
    width: 100%;
    border-radius: 8px;
    background: #f6f6fa;
    border: 1px solid #e2e2ec;
    padding: 13.5px 16px;
    display: flex;
    align-items: flex-start;
}

.contacts-field-control input,
.contacts-field-control textarea {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: var(--font-family);
    font-size: 14px;
    color: #151525;
    outline: none;
}

.contacts-field-control input::placeholder,
.contacts-field-control textarea::placeholder {
    color: #a0a0ba;
}

.contacts-field-control--textarea {
    padding-top: 12px;
    padding-bottom: 12px;
}

.contacts-field-control--textarea textarea {
    min-height: 120px;
    line-height: 20px;
    resize: vertical;
}

.contacts-submit {
    border: 0;
    border-radius: 99px;
    padding: 14px 24px;
    background: #ff191e;
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
}

.contacts-map-section {
    padding: 56px 0;
    border-top: 1px solid #e2e2ec;
    background: #fff;
}

.contacts-map-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-map-address {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #151525;
}

.contacts-map-iframe {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 0;
    display: block;
}

.contacts-requisites-section {
    padding: 56px 0;
    background: #f6f6fa;
}

.contacts-requisites-title {
    margin: 0 0 24px;
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #151525;
}

.contacts-requisites-card {
    padding: 32px;
}

.contacts-requisites-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.contacts-requisites-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts-requisites-label {
    display: block;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #717188;
}

.contacts-requisites-value {
    display: block;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #151525;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .contacts-hero-section,
    .contacts-main-section,
    .contacts-map-section,
    .contacts-requisites-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

@media (max-width: 1000px) {
    .contacts-hero-container,
    .contacts-main-container,
    .contacts-map-container,
    .contacts-requisites-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .contacts-map-iframe {
        height: 300px;
    }
}

@media (max-width: 900px) {
    .contacts-main-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts-hero-container h1 {
        font-size: 42px;
        line-height: 1.12;
    }

    .contacts-hero-lead {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (max-width: 700px) {
    .contacts-hero-container,
    .contacts-main-container,
    .contacts-map-container,
    .contacts-requisites-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contacts-requisites-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contacts-form-card,
    .contacts-requisites-card {
        padding: 24px;
    }

    .contacts-hero-container h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .contacts-submit {
        width: 100%;
    }

    .contacts-map-iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .contacts-hero-container,
    .contacts-main-container,
    .contacts-map-container,
    .contacts-requisites-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contacts-card {
        padding: 20px;
    }

    .contacts-form-card,
    .contacts-requisites-card {
        padding: 20px;
    }

    .contacts-hero-container h1 {
        font-size: 30px;
    }

    .contacts-map-iframe {
        height: 240px;
    }

    .contacts-email-row {
        grid-template-columns: 1fr;
    }
}
