:root {
    --black: #18091D;
    --grey: #7F7582;
    --line: #EBE7ED;
    --indigo: #390894;
    --orange: #FD5B03;
    --bg: #F7F7F7;
    --container: min(1536px, calc(100vw - 48px));
    --wide: min(1696px, calc(100vw - 48px));
}

.contacts-page {
    background: var(--bg);
}

.contacts-main {
    width: 100%;
    color: var(--black);
}

.contacts-hero,
.contacts-showcase,
.contacts-route {
    width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.contacts-hero {
    margin-top: 64px;
}

.contacts-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 448px;
    gap: 80px;
    align-items: stretch;
}

.contacts-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.contacts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    color: var(--orange);
    font-size: 18px;
    font-weight: 800;
}

.contacts-kicker::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--orange);
    border-radius: 50%;
}

.contacts-hero h1 {
    margin: 0;
    color: var(--black);
    font-size: 88px;
    font-weight: 500;
    line-height: .95;
    letter-spacing: -0.05em;
}

.contacts-hero__content p:last-child {
    max-width: 760px;
    margin: 64px 0 auto;
    color: var(--black);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.contacts-hero__panel {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 0 100%, rgba(172, 17, 255, .82), transparent 42%),
        var(--black);
    border-radius: 32px;
    overflow: hidden;
}

.contacts-hero__panel span {
    margin-bottom: 16px;
    color: rgba(255,255,255,.72);
    font-size: 16px;
}

.contacts-hero__photo {
    width: 100%;
    height: 190px;
    margin-bottom: auto;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
}

.contacts-hero__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.contacts-hero__panel strong {
    display: block;
    margin-top: 24px;
    margin-bottom: 20px;
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.contacts-hero__panel a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.contacts-hero__panel a + a {
    margin-top: 6px;
}

.contacts-showcase {
    display: grid;
    grid-template-columns: 568px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 64px;
}

.contacts-showcase .contacts-card {
    min-height: 560px;
    height: 100%;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding: 40px;
    border: 1px solid rgba(57, 8, 148, .1);
    box-shadow: 0 24px 56px rgba(24, 9, 29, .06);
}

.contacts-showcase .contacts-card span {
    color: var(--grey);
    font-size: 16px;
}

.contacts-showcase .contacts-card a,
.contacts-showcase .contacts-card p {
    font-size: 24px;
    font-weight: 500;
}

.contacts-map {
    min-height: 560px;
    height: auto;
    position: relative;
    align-self: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(57, 8, 148, .1);
    border-radius: 32px;
    box-shadow: 0 24px 56px rgba(24, 9, 29, .06);
}

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

.contacts-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-top: 16px;
    padding: 32px 40px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(57, 8, 148, .96), rgba(24, 9, 29, .96)),
        var(--black);
    border-radius: 32px;
}

.contacts-route span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.72);
    font-size: 16px;
}

.contacts-route p {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.45;
}

.contacts-route a {
    width: 282px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: var(--orange);
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.contacts-route a:hover {
    background: #E75000;
    transform: translateY(-2px);
}

.contacts-route img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contacts-page .fp-form {
    width: var(--container);
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 80px;
    margin-bottom: 112px;
}

.contacts-page .fp-form input[type="text"],
.contacts-page .fp-form input[type="tel"],
.contacts-page .fp-form input[type="email"],
.contacts-page .fp-form label {
    width: 100%;
}

@media (max-width: 1280px) {
    .contacts-hero__grid,
    .contacts-showcase {
        grid-template-columns: 1fr;
    }

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

    .contacts-page .fp-form {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
        gap: 48px;
    }
}

@media (max-width: 960px) {
    .contacts-page .fp-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .contacts-hero,
    .contacts-showcase,
    .contacts-route {
        width: calc(100% - 32px);
    }

    .contacts-hero {
        margin-top: 40px;
    }

    .contacts-hero__grid {
        gap: 32px;
    }

    .contacts-hero__content {
        padding-top: 0;
    }

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

    .contacts-hero__content p:last-child {
        font-size: 22px;
    }

    .contacts-hero__panel,
    .contacts-showcase .contacts-card,
    .contacts-map,
    .contacts-route {
        border-radius: 24px;
    }

    .contacts-hero__panel {
        min-height: 260px;
        padding: 24px;
    }

    .contacts-hero__photo {
        height: 170px;
        border-radius: 18px;
    }

    .contacts-hero__panel strong {
        font-size: 34px;
    }

    .contacts-showcase .contacts-card {
        min-height: auto;
        height: auto;
        padding: 28px;
    }

    .contacts-showcase .contacts-card a,
    .contacts-showcase .contacts-card p {
        font-size: 20px;
    }

    .contacts-map {
        min-height: 360px;
        height: 360px;
    }

    .contacts-route {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .contacts-route a {
        width: 100%;
    }

    .contacts-page .fp-form {
        width: calc(100% - 32px);
        margin-bottom: 72px;
    }
}
