:root {
    --brand: #cb2027;
    --brand-dark: #991b1e;
    --ink: #111214;
    --muted: #62666d;
    --line: #e8e3dc;
    --paper: #ffffff;
    --soft: #faf8f5;
    --sand: #efe1d0;
    --sand-deep: #c9b59d;
    --success: #257a4a;
    --error: #a51e27;
    --container: 1180px;
    --header-height: 92px;
    --radius-lg: 30px;
    --radius-md: 20px;
    --shadow: 0 24px 70px rgba(20, 20, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

::selection { background: rgba(203, 32, 39, .14); }

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: height .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    height: 70px;
    border-color: rgba(17, 18, 20, .08);
    box-shadow: 0 8px 28px rgba(17, 18, 20, .05);
}
.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: 190px; height: auto; transition: width .25s ease; }
.site-header.is-scrolled .brand img { width: 164px; }

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    text-decoration: none;
    font-size: .93rem;
    font-weight: 580;
    color: #2e3034;
    position: relative;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--brand);
    transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.language-switch { display: flex; gap: 6px; align-items: center; color: #a1a3a8; }
.language-switch button {
    border: 0;
    padding: 8px 4px;
    background: transparent;
    color: #8a8d93;
    font-weight: 700;
    font-size: .82rem;
}
.language-switch button[aria-pressed="true"] { color: var(--brand-dark); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; }

.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 150px 0 84px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -180px;
    top: 160px;
    background: rgba(239, 225, 208, .35);
    filter: blur(1px);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 64px;
}
.eyebrow {
    margin: 0 0 18px;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .76rem;
    font-weight: 780;
}
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 {
    font-size: clamp(3.2rem, 6vw, 5.65rem);
    margin-bottom: 28px;
    max-width: 840px;
    font-weight: 690;
}
h2 {
    font-size: clamp(2.25rem, 4vw, 3.65rem);
    margin-bottom: 22px;
    font-weight: 660;
}
h3 { font-size: 1.28rem; font-weight: 670; }
.hero-lead {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.16rem;
    margin: 0 0 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 13px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 32px rgba(203, 32, 39, .2);
}
.button-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 36px rgba(153, 27, 30, .22); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; filter: drop-shadow(0 28px 60px rgba(50, 34, 20, .08)); }

.section { padding: 116px 0; }
.section-heading { max-width: 790px; margin-bottom: 54px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }

.services { background: var(--soft); border-block: 1px solid #f1ede8; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    min-height: 375px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ded5c9; }
.service-card-featured { background: #fffaf5; border-color: #e8d4bd; }
.service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 28px;
    color: var(--brand-dark);
    background: #faeeee;
    font-weight: 800;
    font-size: .78rem;
}
.service-card p { color: var(--muted); }
.service-card ul { margin: 22px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 18px; margin: 8px 0; color: #34363a; font-size: .94rem; }
.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .78em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sand-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 84px;
    align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy .scope {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 740;
    letter-spacing: .05em;
    margin-top: 30px;
}
.about-visual { min-height: 460px; display: grid; place-items: center; }
.system-diagram {
    width: min(100%, 500px);
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f9f5ef, #fff);
    border: 1px solid var(--line);
    border-radius: 42px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.system-diagram::before {
    content: "";
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(153,27,30,.18);
    border-radius: 50%;
}
.system-diagram::after {
    content: "";
    position: absolute;
    inset: 28%;
    border: 1px dashed rgba(153,27,30,.22);
    border-radius: 50%;
}
.system-diagram img {
    position: absolute;
    width: 92px;
    height: 92px;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.diagram-node {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px #e2d7ca;
    z-index: 2;
}
.node-a { left: 19%; top: 28%; }
.node-b { right: 17%; top: 23%; background: var(--brand-dark); }
.node-c { right: 20%; bottom: 22%; }
.node-d { left: 23%; bottom: 18%; background: var(--sand-deep); }
.diagram-line { position: absolute; height: 1px; background: #d8ccbd; transform-origin: left center; }
.line-a { width: 190px; left: 22%; top: 31%; transform: rotate(18deg); }
.line-b { width: 180px; left: 49%; top: 50%; transform: rotate(-38deg); }
.line-c { width: 182px; left: 29%; top: 69%; transform: rotate(-24deg); }

.why { background: #121214; color: #fff; }
.why .eyebrow { color: #e8b7b9; }
.why .section-heading { max-width: 840px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    padding: 30px;
    min-height: 255px;
    background: rgba(255,255,255,.02);
}
.why-card > span { color: #d1bba0; font-size: .78rem; font-weight: 800; }
.why-card h3 { margin-top: 54px; margin-bottom: 14px; }
.why-card p { color: #bfc1c6; margin: 0; font-size: .95rem; }

.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 84px; align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.contact-note {
    margin-top: 38px;
    padding: 22px 24px;
    border-left: 2px solid var(--sand-deep);
    background: #fbf8f4;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: 0 0 auto; }
.contact-note p { margin: 0; color: #55585d; font-size: .94rem; }

.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(28, 23, 18, .06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 680; color: #2f3135; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid #ddd8d1;
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(203,32,39,.08); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(165,30,39,.06); }

.captcha-row { display: grid; grid-template-columns: 1fr 46px; gap: 10px; align-items: end; }
.captcha-field { margin-bottom: 0; }
.captcha-field strong { margin-left: 6px; color: var(--brand-dark); }
.captcha-refresh {
    height: 48px;
    width: 46px;
    border: 1px solid #ddd8d1;
    border-radius: 12px;
    background: var(--soft);
    color: var(--brand-dark);
    font-size: 1.25rem;
}
.privacy-note { color: #777b82; font-size: .8rem; margin: 18px 0 22px; }
.submit-button { border: 0; }
.submit-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 24px; margin-top: 14px; font-size: .9rem; font-weight: 650; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { border-top: 1px solid var(--line); padding: 58px 0; background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: .9fr 1.4fr .7fr; gap: 48px; align-items: start; }
.footer-brand img { width: 165px; height: auto; margin-bottom: 12px; }
.footer-brand p, .footer-legal p, .footer-meta p { margin: 4px 0; color: #6f7277; font-size: .86rem; }
.footer-legal strong { color: var(--ink); }
.footer-meta { text-align: right; }
.footer-meta a { display: inline-block; margin-top: 12px; color: var(--brand-dark); font-size: .86rem; text-decoration: none; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .62s ease, transform .62s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: 190px 1fr auto; gap: 18px; }
    .main-nav { gap: 18px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 54px; }
}

@media (max-width: 820px) {
    :root { --header-height: 78px; }
    .container { width: min(calc(100% - 34px), var(--container)); }
    .header-inner { grid-template-columns: 1fr auto auto; }
    .brand img, .site-header.is-scrolled .brand img { width: 155px; }
    .nav-toggle { display: block; order: 3; }
    .main-nav {
        position: fixed;
        top: 78px;
        left: 17px;
        right: 17px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .site-header.is-scrolled .main-nav { top: 70px; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 12px; }
    .main-nav a::after { display: none; }
    .language-switch { justify-self: end; }
    .hero { min-height: auto; padding: 128px 0 72px; }
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
    .hero-visual { max-width: 620px; margin-inline: auto; }
    .section { padding: 86px 0; }
    .about-visual { order: 2; min-height: 0; }
    .about-copy { order: 1; }
    .contact-copy { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-meta { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 610px) {
    h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-grid { gap: 28px; }
    .hero-visual { margin-inline: -10px; }
    .service-grid, .why-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .contact-form { padding: 24px 20px; border-radius: 22px; }
    .site-footer { padding: 44px 0; }
    .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
