:root {
    --ink: #111111;
    --paper: #ffffff;
    --fog: #f2f2f0;
    --line: #d9d9d5;
    --muted: #72726f;
    --aqua: #a8d6d7;
    --content: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 50%;
    display: grid;
    width: min(calc(100% - 64px), var(--content));
    min-height: 104px;
    transform: translateX(-50%);
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.brand,
.footer-brand {
    display: inline-flex;
    width: max-content;
    flex-direction: column;
    line-height: 1;
}

.brand-word {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.085em;
}

.brand-caption {
    margin-top: 8px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    gap: 36px;
    font-size: 0.9rem;
}

    .desktop-nav a,
    .header-phone,
    .site-footer a {
        transition: opacity 180ms ease;
    }

        .desktop-nav a:hover,
        .header-phone:hover,
        .site-footer a:hover {
            opacity: 0.62;
        }

.header-actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 22px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-phone {
    font-size: 0.88rem;
}

.portal-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 24px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

    .portal-button:hover {
        background: #333;
        border-color: #333;
    }

.portal-button--header,
.portal-button--light {
    border-color: #fff;
    background: #fff;
    color: var(--ink);
}

    .portal-button--header:hover,
    .portal-button--light:hover {
        border-color: var(--aqua);
        background: var(--aqua);
    }

.hero {
    position: relative;
    display: flex;
    min-height: 820px;
    overflow: hidden;
    align-items: flex-end;
    color: #fff;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.hero-shade {
    background: linear-gradient( 90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 28%) 57%, rgb(0 0 0 / 18%) 100% ), linear-gradient( 0deg, rgb(0 0 0 / 40%) 0%, transparent 45% );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 64px), var(--content));
    margin: 0 auto;
    padding: 220px 0 104px;
}

.eyebrow {
    margin: 0 0 20px;
    color: #656562;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgb(255 255 255 / 70%);
}

.hero h1 {
    max-width: 870px;
    margin: 0;
    font-size: clamp(4rem, 7.1vw, 7.35rem);
    font-weight: 500;
    line-height: 0.91;
    letter-spacing: -0.068em;
}

.hero-lead {
    max-width: 580px;
    margin: 34px 0 0;
    color: rgb(255 255 255 / 82%);
    font-size: 1.15rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 42px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid currentColor;
    font-size: 0.93rem;
}

.text-link--light {
    color: #fff;
}

.hero-note {
    position: absolute;
    z-index: 2;
    right: max(32px, calc((100% - var(--content)) / 2));
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgb(255 255 255 / 70%);
    font-size: 0.78rem;
    text-align: right;
}

.section-shell {
    width: min(calc(100% - 64px), var(--content));
    margin-inline: auto;
}

.intro {
    display: grid;
    padding: 148px 0 110px;
    grid-template-columns: 25% 75%;
}

.section-index {
    color: #8b8b87;
    font-size: 0.78rem;
}

.intro-copy h2,
.contacts h2 {
    max-width: 930px;
    margin: 0;
    font-size: clamp(3.2rem, 5.6vw, 5.75rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.large-copy {
    max-width: 780px;
    margin: 50px 0 0;
    color: #454542;
    font-size: clamp(1.22rem, 2vw, 1.65rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    padding-bottom: 148px;
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    display: flex;
    min-height: 350px;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: var(--fog);
    border-right: 1px solid var(--line);
}

    .service-card:last-child {
        border: 0;
    }

.service-card--dark {
    background: var(--ink);
    color: #fff;
    border-color: #333;
}

.service-card-number {
    color: #8a8a86;
    font-size: 0.76rem;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.service-card p {
    max-width: 280px;
    margin: 0;
    color: #656562;
}

.service-card--dark p {
    color: rgb(255 255 255 / 62%);
}

.principle {
    display: grid;
    min-height: 750px;
    grid-template-columns: 1.2fr 1fr;
    background: var(--fog);
}

.principle-image-wrap {
    min-height: 600px;
    overflow: hidden;
}

.principle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.principle-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vw, 110px);
}

    .principle-content blockquote {
        margin: 0;
        font-size: clamp(3rem, 5vw, 5.2rem);
        font-weight: 500;
        line-height: 0.98;
        letter-spacing: -0.06em;
    }

    .principle-content > p:not(.eyebrow) {
        max-width: 500px;
        margin: 34px 0 0;
        color: #555552;
        font-size: 1.12rem;
    }

.principle-points {
    display: grid;
    margin-top: 54px;
    border-top: 1px solid var(--line);
}

    .principle-points span {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.9rem;
    }

    .principle-points b {
        font-size: 1.1rem;
        font-weight: 400;
    }

.contacts {
    padding: 130px max(32px, calc((100% - var(--content)) / 2));
    background: var(--ink);
    color: #fff;
}

.contacts-heading {
    display: grid;
    grid-template-columns: 25% 75%;
}

.section-index--dark {
    color: rgb(255 255 255 / 42%);
}

.contact-grid {
    display: grid;
    margin-top: 84px;
    border-top: 1px solid rgb(255 255 255 / 22%);
    border-bottom: 1px solid rgb(255 255 255 / 22%);
    grid-template-columns: repeat(3, 1fr);
}

.contact-card {
    display: flex;
    min-height: 355px;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border-right: 1px solid rgb(255 255 255 / 22%);
}

    .contact-card:last-child {
        border: 0;
    }

.contact-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-label {
    margin: 70px 0 18px;
    color: rgb(255 255 255 / 48%);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-card--phones > a {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.contact-value {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.55;
}

.contact-channels {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: auto;
}

.telegram-link,
.email-link,
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(255 255 255 / 55%);
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

    .telegram-link:hover,
    .email-link:hover,
    .contact-link:hover {
        color: #fff;
        border-color: #fff;
    }

.contact-link {
    margin-top: auto;
}

.telegram-icon,
.email-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.telegram-icon {
    fill: currentColor;
}

.email-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-schedule {
    display: flex;
    flex-direction: column;
}

.contact-schedule-main {
    display: block;
}

.contact-schedule-note {
    display: block;
    margin-top: 10px;
    color: rgb(255 255 255 / 48%);
    font-size: 0.88rem;
    line-height: 1.45;
}

.site-footer {
    display: grid;
    min-height: 210px;
    width: min(calc(100% - 64px), var(--content));
    margin-inline: auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: #555552;
    font-size: 0.82rem;
}

    .site-footer a {
        display: inline-flex;
        justify-self: end;
        align-items: center;
        gap: 7px;
        color: var(--ink);
    }

.footer-brand {
    color: var(--ink);
}

.portal-placeholder {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding: 42px clamp(28px, 6vw, 90px);
    background: var(--ink);
    color: #fff;
}

.brand--dark {
    color: #fff;
}

.portal-placeholder-content {
    width: min(920px, 100%);
    margin: auto 0;
    padding: 80px 0;
}

.portal-placeholder h1 {
    margin: 0;
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.portal-placeholder-content > p:not(.eyebrow) {
    max-width: 690px;
    margin: 42px 0 0;
    color: rgb(255 255 255 / 64%);
    font-size: 1.2rem;
    line-height: 1.55;
}

.portal-placeholder-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 1000px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav,
    .header-phone {
        display: none;
    }

    .principle {
        grid-template-columns: 1fr;
    }

    .principle-image-wrap {
        min-height: 540px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 280px;
        border-right: 0;
        border-bottom: 1px solid rgb(255 255 255 / 22%);
    }

        .contact-card:last-child {
            border-bottom: 0;
        }

    .contact-label {
        margin-top: 42px;
    }
}

@media (max-width: 760px) {
    .site-header,
    .section-shell,
    .site-footer {
        width: calc(100% - 36px);
    }

    .site-header {
        min-height: 84px;
    }

    .brand-word {
        font-size: 1.9rem;
    }

    .brand-caption {
        font-size: 0.5rem;
        letter-spacing: 0.09em;
    }

    .portal-button--header {
        min-height: 42px;
        padding-inline: 16px;
        font-size: 0.82rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        width: calc(100% - 36px);
        padding: 180px 0 115px;
    }

    .hero h1 {
        font-size: clamp(3.55rem, 16vw, 5.2rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions,
    .portal-placeholder-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero-note {
        display: none;
    }

    .intro,
    .contacts-heading {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .intro {
        padding: 100px 0 72px;
    }

    .intro-copy h2,
    .contacts h2 {
        font-size: clamp(3rem, 13vw, 4.4rem);
    }

    .large-copy {
        margin-top: 32px;
        font-size: 1.12rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding-bottom: 90px;
    }

    .service-card {
        min-height: 270px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .principle-image-wrap {
        min-height: 410px;
    }

    .principle-content {
        padding: 72px 24px;
    }

    .contacts {
        padding: 88px 18px;
    }

    .contact-grid {
        margin-top: 56px;
    }

    .contact-card {
        padding: 26px 16px;
    }

    .contact-channels {
        gap: 18px;
    }

    .site-footer {
        min-height: 240px;
        grid-template-columns: 1fr auto;
        row-gap: 20px;
    }

        .site-footer p {
            grid-column: 1 / -1;
            grid-row: 2;
        }

    .portal-placeholder {
        padding-inline: 22px;
    }

        .portal-placeholder h1 {
            font-size: clamp(3.4rem, 17vw, 5.8rem);
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
