@charset "UTF-8";

:root {
    --dark: #2b2b2b;
    --red: #ff2b2b;
    --white: #fff;
    --line: rgba(255, 255, 255, .3);
    --line2: rgba(255, 255, 255, .1);
    --muted-light: rgba(255, 255, 255, .5);
    --muted-dark: rgba(43, 43, 43, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--dark);
    color: var(--white);
    font-family: "Onest", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

p, h1, h2, ul { margin: 0; }
a { color: inherit; }

.page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--dark);
}

.text-link {
    font-weight: 500;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 1px;
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 36px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-weight: 500;

    .section-heading__eyebrow {
        font-size: 16px;
        line-height: 1.2;
    }

    h2 {
        font-size: 32px;
        font-weight: 500;
        line-height: 1.3;
    }
}

.hero {
    position: relative;
    display: flex;
    height: 1024px;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(43, 43, 43, .51), var(--dark)), url("/f/hero.webp") center / cover no-repeat;

    .hero__header {
        position: relative;
        display: flex;
        flex: 0 0 89px;
        align-items: center;
        justify-content: space-between;
        padding-left: 24px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .hero__logo {
        display: block;
        width: 146px;
        height: 40px;
        object-fit: cover;
    }

    .hero__contacts {
        align-self: stretch;
        display: flex;
        align-items: stretch;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 37px;
            font-size: 14px;
            font-weight: 500;
            line-height: 1;
            white-space: nowrap;
        }

        .hero__email { border-left: 1px solid var(--line); }
        .hero__phone { background: var(--red); text-decoration: none; }
    }

    .hero__content {
        max-width: 1440px;
        margin-inline: auto;
        position: relative;
        flex: 1;
        min-height: 0;
        padding: 48px;
    }

    .hero__title {
        align-self: stretch;
        font-size: 64px;
        font-weight: 600;
        line-height: 1;

        span { color: var(--red); }
    }

    .hero__intro {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 24px;

        p { font-size: 24px; line-height: 1.3; }
        a { font-size: 16px; line-height: 1; }
    }
}

.about {
    height: 415px;
    padding: 0 48px;

    .about__card {
        height: 415px;
        align-items: center;
        padding: 72px 48px 96px;
        border-radius: 20px;
        background: var(--white);
        color: #000;
        text-align: center;

        .section-heading__eyebrow { color: var(--muted-dark); }
        h2 { width: 100%; max-width: 960px; }
    }
}

.numbers {
    height: 750px;
    padding: 48px;

    .numbers__grid {
        display: grid;
        width: 100%;
        max-width: 624px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;

        article {
            display: flex;
            height: 320px;
            flex-direction: column;
            justify-content: space-between;
            padding: 24px;
            border: 1px solid var(--line);
            border-radius: 20px;

            strong { color: var(--red); font-size: 72px; font-weight: 200; line-height: 1; }
            p { font-size: 18px; line-height: 1.2; }
        }
    }

    .numbers__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;

        p { font-size: 24px; line-height: 1.3; }
        a { font-size: 16px; line-height: 1; }
    }
}

.services {
    display: flex;
    height: 1024px;
    background: var(--white);
    color: var(--dark);

    .services__content,
    .services__image { width: 50%; }

    .services__content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 48px;
    }

    .services__nav {
        display: flex;
        max-width: 436px;
        flex-direction: column;
        gap: 12px;

        button {
            width: fit-content;
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--muted-dark);
            font: inherit;
            font-size: 14px;
            line-height: 1.2;
            text-align: left;
            cursor: pointer;
            transition: color .2s ease;

            &.is-active { color: var(--red); }
            &:hover { color: var(--dark); }
            &:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
        }
    }

    .services__description {
        width: 100%;
        max-width: 436px;
        font-size: 16px;
        line-height: 1.5;

        .services__panel {
            display: flex;
            flex-direction: column;
            gap: 24px;

            &[hidden] { display: none; }
            h2 { font-size: 32px; font-weight: 600; line-height: 1.3; }
            strong { font-weight: 700; }
            ul { padding-left: 24px; }
        }
    }

    .services__image {
        height: 100%;
        object-fit: cover;
        transition: opacity .18s ease;

        &.is-changing { opacity: 0; }
    }
}

.steps {
    position: relative;
    display: flex;
    height: 720px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 48px;
    background: radial-gradient(ellipse 50% 50% at center, rgba(43, 43, 43, .5), var(--dark)), url("/f/steps.png") center / cover no-repeat;

    .steps__heading {
        width: 100%;
        max-width: 960px;
        align-items: center;
        text-align: center;

        .section-heading__eyebrow { color: var(--muted-light); }
    }

    .steps__tabs {
        display: flex;
        width: 100%;
        max-width: 960px;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        gap: 18px;

        button {
            margin: 0;
            padding: 10px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: transparent;
            color: var(--muted-light);
            font: inherit;
            font-size: 14px;
            line-height: 1.2;
            white-space: nowrap;
            cursor: pointer;
            transition: border-color .2s ease, background-color .2s ease, color .2s ease;

            &.is-active { border-color: var(--white); background: var(--white); color: var(--red); }
            &:hover:not(.is-active) { color: var(--white); }
            &:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
        }
    }

    .steps__copy {
        display: flex;
        width: 100%;
        max-width: 960px;
        flex-direction: column;
        align-items: center;
        gap: 24px;

        p {
            font-size: 24px;
            line-height: 1.3;
            text-align: center;

            &[hidden] { display: none; }
        }
        a { font-size: 16px; line-height: 1; }
    }
}

.contact {
    display: flex;
    height: 720px;
    background: var(--white);
    color: var(--dark);

    .contact__image,
    .contact__content { width: 50%; }

    .contact__image { height: 100%; object-fit: cover; }

    .contact__content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 24px;
        padding: 48px;
    }

    .contact__heading,
    .contact__copy { width: 100%; max-width: 436px; }

    .contact__heading .section-heading__eyebrow { color: var(--muted-dark); }

    .contact__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;

        > p { font-size: 24px; line-height: 1.3; }
    }

    .contact__links {
        display: flex;
        gap: 18px;
        font-size: 16px;
        line-height: 1;
        white-space: nowrap;
    }
}

.details {
    display: grid;
    height: 301px;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 150px);
    gap: 1px;
    border-left: 1px solid var(--line2);
    border-right: 1px solid var(--line2);
    background: var(--line);
    font-style: normal;

    > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 48px;
        background: var(--dark);
        font-weight: 500;

        span { color: var(--muted-light); font-size: 16px; line-height: 1.2; }
        p, a { font-size: 18px; line-height: 1.3; }
    }
}

.footer {
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: space-between;
    padding: 36px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    border-top: 1px solid var(--line);

    p:last-child { color: var(--muted-light); }
}

@media (max-width: 900px) {
    .page { overflow: visible; }
    .two-cols { grid-template-columns: 1fr; }

    .hero {
        min-height: 760px;
        height: 100svh;

        .hero__header { flex-basis: auto; padding: 18px 20px; }
        .hero__contacts { display: none; }
        .hero__content { padding: 32px 20px; }
        .hero__title { font-size: clamp(32px, 8vw, 64px); }
        .hero__intro { justify-content: flex-end; }
    }

    .about { height: auto; padding: 0 20px; }
    .about .about__card { height: auto; padding: 56px 24px; }
    .section-heading h2 { font-size: 28px; }

    .numbers {
        height: auto;
        padding: 64px 20px;

        .numbers__grid { max-width: none; }
        .numbers__copy { margin-top: 24px; }
    }

    .services,
    .contact { height: auto; flex-direction: column; }
    .services .services__content,
    .services .services__image,
    .contact .contact__image,
    .contact .contact__content { width: 100%; }
    .services .services__content { gap: 64px; padding: 48px 20px; }
    .services .services__image { height: 70svh; }
    .contact .contact__image { height: min(100vw, 720px); }
    .contact .contact__content { align-items: flex-start; padding: 64px 20px; }

    .steps { height: auto; min-height: 720px; padding: 64px 20px; }
    .steps .steps__tabs button { white-space: normal; text-align: center; }

    .details { height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
    .details > div { padding: 36px 20px; }
    .footer { height: auto; flex-direction: column; align-items: flex-start; gap: 18px; padding: 36px 20px; white-space: normal; }

    .services .services__description, .contact .contact__heading, .contact .contact__copy {
        max-width: 100%;
    }

}

@media (max-width: 560px) {
    .numbers .numbers__grid { grid-template-columns: 1fr; }
    .numbers .numbers__grid article { height: 240px; }
    .numbers .numbers__grid article strong { font-size: 60px; }
    .contact .contact__links { flex-direction: column; white-space: normal; }
}
