:root {
    --bg: #ede8e0;
    --bg-deep: #e3dcd0;
    --paper: #f7f4ee;
    --ink: #143330;
    --muted: #5c6764;
    --line: rgba(1, 103, 96, 0.16);
    --teal: #016760;
    --teal-deep: #014e49;
    --gold: #d7a955;
    --gold-deep: #a67c32;
    --white: #fdfefd;
    --danger: #8c3a32;
    --ok: #1d6b45;
    --header-h: 92px;
    --footer-bar-h: 56px;
    --shadow: 0 24px 60px rgba(1, 54, 50, 0.08);
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
    --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    --radius: 28px;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #102220;
    --bg-deep: #0c1b19;
    --paper: #17302d;
    --ink: #f3efe6;
    --muted: #c5cec8;
    --line: rgba(215, 169, 85, 0.28);
    --teal: #7dccc4;
    --teal-deep: #d7f3ef;
    --gold: #e3bc72;
    --gold-deep: #e3bc72;
    --white: #122826;
    --danger: #f0b2aa;
    --ok: #9ed9b8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(215, 169, 85, 0.18), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(1, 103, 96, 0.08), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-bottom: var(--footer-bar-h);
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }

.skip {
    position: absolute; left: 12px; top: 12px; z-index: 20;
    transform: translateY(-150%);
    background: var(--teal); color: white; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { transform: none; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
    margin: 0 0 12px; color: var(--gold-deep); font-size: 0.82rem;
    letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650;
}
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2, .hero h1, .page-hero h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.section-head p, .lede { color: var(--muted); font-size: 1.12rem; }

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-logo-white { display: none; }
html[data-theme="dark"] .brand-logo-color { display: none; }
html[data-theme="dark"] .brand-logo-white { display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-header .site-nav > a { color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.site-header .site-nav > a:hover, .site-header .site-nav > a.is-active { color: var(--teal); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.site-header .lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.site-header .lang-switch a {
    min-width: 36px; text-align: center; text-decoration: none; color: var(--muted);
    border-radius: 999px; padding: 4px 8px; font-size: 0.82rem; font-weight: 700;
}
.site-header .lang-switch a.is-active,
html[data-theme="dark"] .site-header .lang-switch a.is-active { background: #016760; color: #fff; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; }
.site-header .nav-toggle-lines {
    display: block; height: 2px; width: 22px; background: var(--ink); position: relative;
}
.site-header .nav-toggle-lines:before,
.site-header .nav-toggle-lines:after {
    content: ""; position: absolute; left: 0; height: 2px; width: 22px; background: var(--ink);
}
.site-header .nav-toggle-lines:before { top: -7px; }
.site-header .nav-toggle-lines:after { top: 7px; }
html[data-theme="dark"] .site-header .btn { background: #016760; color: #fff; }

.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--teal); color: white; text-decoration: none; border: 0;
    border-radius: 999px; padding: 14px 22px; font-weight: 650; cursor: pointer;
}
html[data-theme="dark"] .btn { color: #102220; }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn-ghost {
    background: transparent; color: var(--ink); border: 1px solid var(--line);
}
html[data-theme="dark"] .btn-ghost { color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px;
}

.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 72px 0 40px; color: #f7f4ee;
}
.hero-bg {
    position: absolute; inset: -48px; z-index: 0;
    background: #06332f var(--hero-image) center / cover no-repeat;
    filter: blur(10px) saturate(0.8); transform: scale(1.06);
}
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background: #016760;
    mix-blend-mode: color;
    opacity: 0.82;
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(4, 36, 33, 0.68) 0%, rgba(1, 55, 50, 0.34) 48%, rgba(1, 72, 66, 0.18) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero .kicker { color: #e3bc72; }
.hero h1 { color: #f7f4ee; }
.hero .lede { color: rgba(247, 244, 238, 0.9); }
.hero .btn-ghost { color: #f7f4ee; border-color: rgba(247, 244, 238, 0.45); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mark-card {
    background: #f7f4ee; border-radius: 36px; padding: 42px 28px;
    box-shadow: var(--shadow); border: 1px solid rgba(1, 103, 96, 0.16); text-align: center;
}
.mark-card img { width: min(100%, 420px); }
.gold-dot {
    width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
    display: inline-block; margin-bottom: 18px;
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.fact {
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
}
.fact span { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 4px; font-size: 1rem; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; min-height: 230px; display: flex; flex-direction: column; gap: 10px;
}
.service-card em { font-style: normal; color: var(--gold-deep); font-weight: 750; letter-spacing: 0.08em; }
.service-card h3 { margin: 0; font-size: 1.55rem; }
.service-card p { color: var(--muted); }

.about-grid, .contact-grid, .legal-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: start; }
.about-copy p + p { margin-top: 16px; }
.object {
    margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--gold);
    background: color-mix(in srgb, var(--paper) 75%, transparent);
}
.object strong { display: block; margin-bottom: 6px; }
.fact-list { list-style: none; margin: 0; padding: 8px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { color: var(--muted); }
.fact-list strong { text-align: right; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 8px 8px 0 0; }
.step b { display: block; color: var(--gold-deep); font-size: 0.86rem; letter-spacing: 0.12em; }
.step h3 { margin: 8px 0; font-size: 1.7rem; }
.step p { color: var(--muted); }

.contact-card, .form, .auth-card, .area-card, .legal-content, .legal-nav {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-card { padding: 28px; }
.contact-card h3 { margin: 22px 0 6px; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--sans); }
.contact-card h3:first-child { margin-top: 0; }
.form { padding: 28px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 650; }
label small { font-weight: 500; color: var(--muted); }
input, textarea {
    width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px;
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 16%, var(--paper)); }
.notice.is-error { background: color-mix(in srgb, var(--danger) 14%, var(--paper)); color: var(--danger); }

.site-footer { background: #013e3a; color: #f4efe6; margin-top: 20px; padding: 64px 0 28px; }
html[data-theme="dark"] .site-footer { background: #071614; }
.site-footer a { color: #f4efe6; }
.footer-grid { display: grid; grid-template-columns: minmax(340px, 1.55fr) 1fr 0.9fr 0.75fr; gap: 32px; }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo img { width: 240px; height: auto; }
.site-footer .muted { color: rgba(244, 239, 230, 0.78); }
.footer-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }
.footer-seals { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.footer-seals > img { height: 76px; width: auto; flex-shrink: 0; border-radius: 8px; }
.footer-seals .carbon-badge { flex-shrink: 0; min-height: 76px; }
.footer-pills { display: flex; flex-wrap: nowrap; gap: 8px; }
.site-footer .carbon-badge {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 8px 14px 8px 8px; border-radius: 12px; text-decoration: none;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(244, 239, 230, 0.18);
    color: rgba(244, 239, 230, 0.78); font-size: 11px; line-height: 1.25;
}
.site-footer .carbon-badge:hover { border-color: rgba(1, 103, 96, 0.7); background: rgba(255, 255, 255, 0.07); }
.carbon-rating {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 10px;
    background: #3FB950; color: #0b1f1c; font-size: 17px; font-weight: 750;
}
.carbon-body { display: flex; flex-direction: column; gap: 3px; }
.carbon-body strong { color: #fff; font-size: 15px; }
.carbon-body strong small { font-size: 11px; font-weight: 400; color: rgba(244, 239, 230, 0.78); }
.carbon-body em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; color: #8fd0c8; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
    border: 1px solid rgba(143, 208, 200, 0.55); color: #8fd0c8;
}
.badge-pill--accent { border-color: rgba(215, 169, 85, 0.55); color: var(--gold); }
.pill-icon { width: 16px; height: 16px; flex: none; }
.site-footer h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer-sub { margin-top: 26px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social-list { display: flex; gap: 10px; }
.social-list a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(244,239,230,.3); border-radius: 50%; }
.social-list svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
    background: #012c29; border-top: 1px solid rgba(215, 169, 85, 0.35); color: #f4efe6;
}
.footer-bottom { min-height: 52px; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 8px 0; }
.copyright { margin: 0; font-size: 0.78rem; line-height: 1.4; min-width: 0; }
.copyright a { color: #fff; text-decoration: none; white-space: nowrap; }
.copyright a:hover { color: var(--gold); }
.copyright-site { white-space: nowrap; }
.copyright-icon { width: 16px; height: 16px; border-radius: 4px; display: inline-block; vertical-align: -3px; margin: 0 .15em; }
.footer-tools { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; flex-wrap: nowrap; justify-content: flex-end; flex: none; }
.link-btn, .theme-switch button {
    background: none; border: 0; color: inherit; cursor: pointer; padding: 0;
}
.theme-switch { display: flex; gap: 6px; }
.theme-switch button[aria-pressed="true"] { color: var(--gold); }
.sep { opacity: 0.45; }
.to-top {
    position: fixed; right: 18px; bottom: calc(var(--footer-bar-h) + 16px); z-index: 11;
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold); color: #143330; text-decoration: none; font-weight: 750;
    opacity: 0; pointer-events: none;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.cookie-banner { position: fixed; left: 16px; bottom: calc(var(--footer-bar-h) + 16px); z-index: 13; width: min(420px, calc(100% - 32px)); }
.cookie-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cookie-card h2 { margin: 0 0 8px; font-size: 1.6rem; }
.cookie-card p { color: var(--muted); margin-bottom: 14px; }

.page { padding: 42px 0 72px; }
.page-hero { margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.legal-nav, .legal-content, .auth-card, .area-card { padding: 28px; }
.legal-nav ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.legal-nav a { color: var(--ink); text-decoration: none; }
.legal-nav a.is-active { color: var(--teal); font-weight: 750; }
.legal-content h1 { margin-top: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.legal-content h2 { font-size: 1.6rem; margin: 28px 0 8px; }
.legal-meta { color: var(--muted); }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content ul { padding-left: 18px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 0.95rem; }
.legal-content th, .legal-content td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.auth-wrap { width: min(480px, 100%); margin: 0 auto; }
.auth-card h1, .area-card h1 { margin: 0 0 10px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.password-row { display: flex; justify-content: space-between; align-items: center; }
.password-row button { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.area-grid article { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.area-grid h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.back-link { display: inline-block; margin-bottom: 18px; }

@media (max-width: 980px) {
    .hero-grid, .about-grid, .contact-grid, .legal-layout, .footer-grid, .service-grid, .steps, .facts, .area-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-grid, .steps, .facts { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 12px 20px 20px; flex-direction: column; align-items: flex-start;
    }
    .site-nav.is-open { display: flex; }
    .hero-grid, .about-grid, .contact-grid, .legal-layout, .footer-grid, .service-grid, .steps, .facts, .area-grid {
        grid-template-columns: 1fr;
    }
    .footer-logo img { width: min(240px, 100%); }
    .footer-seals { gap: 8px; }
    .footer-seals > img { height: 64px; }
    .footer-seals .carbon-badge { min-height: 64px; gap: 8px; padding: 6px 10px 6px 6px; }
    .carbon-rating { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
    .carbon-body strong { font-size: 13px; }
    .carbon-body, .carbon-body strong small { font-size: 10px; }
    .footer-pills { flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 10px 0 12px; }
    .copyright { font-size: 0.72rem; }
    .footer-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .brand-logo { height: 42px; }
    .header-inner { min-height: 74px; }
    .cookie-banner { left: 10px; width: calc(100% - 20px); }
}
