/* assets/css/site.css */

:root {
    --text: #15191c;
    --muted: #626a70;
    --line: #dfe3e5;
    --background: #ffffff;
    --soft: #f4f6f6;
    --accent: #008f68;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 174px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--text);
}

/* Hero */

.hero {
    padding: 104px 0 112px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 64px;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero-lead {
    max-width: 660px;
    margin: 38px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55;
}

.hero-visual {
    margin: 0;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* General sections */

.section {
    padding: 96px 0;
    border-top: 1px solid var(--line);
}

.section-muted {
    background: var(--soft);
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
}

.three-columns article {
    max-width: 340px;
}

.number {
    margin: 0 0 25px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.three-columns h2 {
    margin: 0 0 18px;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.three-columns p:last-child {
    margin: 0;
    color: var(--muted);
}

/* Scope */

.scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scope-list span {
    padding: 11px 17px;
    border: 1px solid #cfd5d7;
    background: var(--background);
    font-size: 15px;
}

/* Process */

.process h2 {
    max-width: 800px;
    margin: 0 0 46px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.process-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
}

.process-flow span {
    font-weight: 600;
}

.process-flow i {
    color: var(--accent);
    font-style: normal;
}

.process-note {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}


/* Contact */

.contact-section {
    background: var(--soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
    gap: 80px;
    align-items: start;
}

.contact-intro h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.contact-intro > p:last-child {
    max-width: 460px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--background);
    color: var(--text);
    font: inherit;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-submit {
    justify-self: start;
    padding: 12px 22px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-submit:hover,
.form-submit:focus-visible {
    filter: brightness(0.92);
}

.form-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-success,
.form-errors {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: var(--background);
}

.form-errors {
    border-left-color: #a12a2a;
}

.form-errors p {
    margin: 0;
}

.form-errors p + p {
    margin-top: 6px;
}

/* Footer */

.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-inner strong {
    letter-spacing: 0.04em;
}

.footer-inner p {
    margin: 6px 0 0;
    color: var(--muted);
}

.footer-inner a {
    text-decoration: none;
}

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

/* Mobile */

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .header-inner {
        min-height: 68px;
    }

    .main-nav a:not(:last-child) {
        display: none;
    }

    .brand img {
        width: 150px;
    }

    .hero {
        padding: 72px 0 82px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hero-visual {
        max-width: 620px;
    }

    .hero-lead {
        margin-top: 28px;
        font-size: 18px;
    }

    .section {
        padding: 70px 0;
    }

    .three-columns {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .three-columns article {
        max-width: 560px;
    }

    .process-flow {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .process-flow i {
        transform: rotate(90deg);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .footer-inner {
        flex-direction: column;
    }
}
