:root {
    --color-orange: #E57A33;
    --color-orange-dark: #D96521;
    --color-orange-light: #ED8B42;
    --color-charcoal: #252524;
    --color-dark-gray: #424241;
    --color-gray: #706F6E;
    --color-soft: #F0CDBD;
    --color-bg: #FAFAF8;
    --color-white: #FFFFFF;
    --color-text: #252524;
    --color-muted: #706F6E;
    --color-teal: #6F756D;
    --color-line: rgba(37, 37, 36, 0.1);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 24px 80px rgba(37, 37, 36, 0.08);
    --shadow-card: 0 18px 60px rgba(37, 37, 36, 0.07);
    --container: min(1180px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 16% 0%, rgba(229, 122, 51, 0.11), transparent 30rem),
        radial-gradient(circle at 86% 4%, rgba(111, 117, 109, 0.1), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #fbfaf7 48%, #ffffff 100%);
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 37, 36, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 37, 36, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 58%);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-orange-dark);
}

:focus-visible {
    outline: 3px solid rgba(229, 122, 51, 0.62);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 99;
    transform: translateY(-160%);
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 10px 14px;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.header-inner,
.container,
.footer-inner,
.footer-bottom {
    width: var(--container);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(37, 37, 36, 0.09);
    backdrop-filter: blur(18px) saturate(1.15);
}

.site-header[data-scrolled] {
    box-shadow: 0 10px 32px rgba(37, 37, 36, 0.07);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 0 auto;
}

.brand img {
    width: clamp(132px, 12vw, 164px);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.primary-nav a,
.language-switch a,
.language-switch span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    border-radius: 0;
    color: var(--color-dark-gray);
    font-size: 0.91rem;
    font-weight: 700;
    white-space: nowrap;
}

.primary-nav a:hover {
    color: var(--color-orange-dark);
}

.primary-nav a[aria-current="page"] {
    color: var(--color-charcoal);
    box-shadow: inset 0 -2px 0 var(--color-orange);
}

.primary-nav a:last-child {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(37, 37, 36, 0.16);
    border-radius: 6px;
}

.primary-nav a:last-child:hover,
.primary-nav a:last-child[aria-current="page"] {
    border-color: rgba(229, 122, 51, 0.42);
    box-shadow: none;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(37, 37, 36, 0.14);
    background: transparent;
}

.language-switch a,
.language-switch span {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.82rem;
}

.language-switch span {
    background: rgba(37, 37, 36, 0.08);
    color: var(--color-charcoal);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 37, 36, 0.13);
    border-radius: 7px;
    background: #ffffff;
    padding: 10px;
}

.menu-toggle__bar {
    display: block;
    height: 2px;
    background: var(--color-charcoal);
    margin: 5px 0;
}

.section {
    padding: clamp(68px, 8.8vw, 118px) 0;
}

.section-tight {
    padding: clamp(44px, 6vw, 82px) 0;
}

.split-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
    gap: clamp(36px, 6vw, 76px);
    align-items: center;
    min-height: calc(100vh - 118px);
    padding: clamp(24px, 4vw, 44px) 0 clamp(52px, 7vw, 82px);
}

.split-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(420px, 55vw);
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-teal), transparent);
}

.hero-copy {
    max-width: 790px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--color-orange-dark);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 24px;
    color: var(--color-charcoal);
    font-size: clamp(3rem, 5.7vw, 5.35rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    color: var(--color-charcoal);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    color: var(--color-charcoal);
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    line-height: 1.25;
}

p {
    overflow-wrap: anywhere;
}

.lead {
    max-width: 760px;
    color: var(--color-dark-gray);
    font-size: clamp(1.08rem, 1.55vw, 1.25rem);
    line-height: 1.65;
}

.hero-actions,
.choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 820;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--color-charcoal);
    color: var(--color-white);
    box-shadow: 0 18px 40px rgba(37, 37, 36, 0.18);
}

.button-primary:hover {
    background: var(--color-orange-dark);
    color: var(--color-white);
}

.button-secondary,
.button-ghost {
    background: var(--color-white);
    border-color: rgba(37, 37, 36, 0.13);
    color: var(--color-charcoal);
}

.button-secondary::after,
.button-ghost::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.system-panel {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(37, 37, 36, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(229, 122, 51, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6f2ec 100%);
    box-shadow: 0 28px 90px rgba(37, 37, 36, 0.12);
}

.system-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 37, 36, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 37, 36, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
}

.system-panel__top {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(37, 37, 36, 0.1);
    background: rgba(255, 255, 255, 0.74);
}

.system-panel__top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(37, 37, 36, 0.22);
}

.system-panel__top span:first-child {
    background: var(--color-orange);
}

.system-panel__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    padding: 28px;
}

.system-tile {
    min-height: 132px;
    padding: 20px;
    border: 1px solid rgba(37, 37, 36, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 36px rgba(37, 37, 36, 0.06);
}

.system-tile span {
    display: block;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.system-tile strong {
    display: block;
    color: var(--color-charcoal);
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.tile-main {
    min-height: 278px;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(145deg, rgba(37, 37, 36, 0.9), rgba(66, 66, 65, 0.92)),
        var(--color-charcoal);
}

.tile-main span,
.tile-main strong {
    color: #ffffff;
}

.tile-main::before {
    content: "";
    width: 96px;
    height: 96px;
    margin-bottom: auto;
    border: 18px solid rgba(229, 122, 51, 0.9);
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-24deg);
}

.system-flow {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.7fr 1.1fr 0.9fr;
    gap: 10px;
}

.system-flow span {
    height: 6px;
    border-radius: 999px;
    background: rgba(37, 37, 36, 0.14);
}

.system-flow span:nth-child(2) {
    background: var(--color-orange);
}

.intro-grid,
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.card-grid,
.product-grid,
.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.feature-card,
.product-card,
.notice,
.contact-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 37, 36, 0.1);
    border-radius: 8px;
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 12px 44px rgba(37, 37, 36, 0.045);
}

.info-card::after,
.product-card::after,
.contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-teal));
    transform: scaleX(0.34);
    transform-origin: left;
}

.info-card:hover,
.product-card:hover,
.contact-card:hover {
    box-shadow: var(--shadow-card);
}

.contact-page .intro-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: clamp(34px, 7vw, 96px);
    align-items: start;
}

.contact-page h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 4.9vw, 4.45rem);
}

.contact-page .contact-card {
    align-self: start;
    margin-top: 10px;
}

.info-card:nth-child(2n),
.product-card:nth-child(2n) {
    transform: none;
}

.card-index,
.meta-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 22px;
    color: var(--color-orange-dark);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.card-index::after,
.meta-label::after {
    content: "";
    width: 34px;
    height: 1px;
    margin-left: 12px;
    background: rgba(37, 37, 36, 0.2);
}

.band {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(229, 122, 51, 0.16), transparent 34%),
        var(--color-charcoal);
    color: var(--color-white);
}

.band::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(34vw, 460px);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
}

.band .container {
    position: relative;
    z-index: 1;
}

.band h2 {
    color: var(--color-white);
}

.band .eyebrow,
.band .lead,
.band p {
    color: rgba(255, 255, 255, 0.8);
}

.band .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list {
    display: grid;
    gap: 12px 20px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-orange-light);
    border-radius: 50%;
    background: transparent;
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-item {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
    padding: 30px;
    border: 1px solid rgba(37, 37, 36, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 36px rgba(37, 37, 36, 0.04);
}

.service-item strong {
    color: var(--color-charcoal);
    font-size: 1.02rem;
}

.service-item p:last-child {
    margin-bottom: 0;
}

.text-flow {
    max-width: 850px;
}

.text-flow h2 {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(37, 37, 36, 0.1);
    font-size: clamp(1.5rem, 2.35vw, 2.15rem);
}

.text-flow h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.notice {
    border-left: 5px solid var(--color-orange);
    background: #fff7f1;
}

.narrow {
    max-width: 900px;
}

.language-hero .split-hero {
    min-height: calc(100vh - 118px);
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 36px;
    padding: 62px 0 28px;
    background: var(--color-charcoal);
    color: var(--color-white);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(229, 122, 51, 0.18), transparent 38%),
        linear-gradient(90deg, transparent, rgba(47, 111, 104, 0.16));
    pointer-events: none;
}

.footer-inner,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 0.78fr));
    gap: 36px;
}

.footer-brand img {
    width: 146px;
    margin-bottom: 18px;
    padding: 9px;
    background: var(--color-white);
    border-radius: 6px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer h2 {
    margin-bottom: 13px;
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1080px) {
    .primary-nav a {
        padding-inline: 8px;
        font-size: 0.86rem;
    }
}

@media (max-width: 940px) {
    .split-hero,
    .intro-grid,
    .two-column,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .split-hero {
        min-height: auto;
        padding-top: 42px;
    }

    .card-grid,
    .product-grid,
    .legal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-actions {
        position: relative;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .js .primary-nav {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: min(340px, calc(100vw - 40px));
        padding: 12px;
        background: var(--color-white);
        border: 1px solid rgba(37, 37, 36, 0.12);
        border-radius: 8px;
        box-shadow: var(--shadow-soft);
    }

    .js .primary-nav[data-open] {
        display: grid;
    }

    .primary-nav {
        align-items: stretch;
    }

    .primary-nav a {
        width: 100%;
        font-size: 0.94rem;
    }

    .band .check-list {
        grid-template-columns: 1fr;
    }

    .contact-page .intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    :root {
        --container: min(100vw - 28px, 1180px);
    }

    body::before {
        background-size: 42px 42px;
    }

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

    .brand img {
        width: 116px;
    }

    .language-switch a,
    .language-switch span {
        min-height: 36px;
        padding-inline: 9px;
    }

    h1 {
        font-size: clamp(2.5rem, 12vw, 3.65rem);
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.55rem);
    }

    .card-grid,
    .product-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 24px;
    }

    .system-panel {
        min-height: 360px;
    }

    .system-panel__grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .system-tile,
    .tile-main {
        min-height: 96px;
    }

    .tile-main::before,
    .system-flow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
