*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: 72px; letter-spacing: -2.16px; line-height: 1.1; }
h2 { font-size: 36px; letter-spacing: -0.72px; }
h3 { font-size: 26px; letter-spacing: -0.325px; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }

p { color: var(--body); line-height: 1.5; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.logo-mark {
    background: var(--primary);
    color: var(--on-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logo-text { color: var(--ink); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--ink);
    background: var(--surface-strong);
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 8px;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--body);
    border-radius: var(--rounded-sm);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover { color: var(--ink); background: var(--canvas); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--rounded-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-band {
    padding: 80px 0;
    background: var(--canvas);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-label {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 24px;
}

.hero-band h1 {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--ink);
}

.hero-band .hero-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 540px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-image-wrap {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-top: 48px;
}

.hero-image-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-head {
    font-size: 36px;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 640px;
}

.section-intro {
    font-size: 16px;
    color: var(--body);
    max-width: 580px;
    margin-bottom: 48px;
    line-height: 1.6;
}

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

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0;
}

.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.feature-card .card-tag {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--rounded-pill);
    margin-bottom: 16px;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.1px;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card-link:hover { color: var(--primary-active); }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover, .btn-primary:focus { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: background 0.15s;
}

.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

.article-page { padding: 60px 0 80px; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article-main {}

.article-header { margin-bottom: 40px; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-tag {
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
}

.article-date {
    font-size: 13px;
    color: var(--muted);
}

.article-main h1 {
    font-size: 42px;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.article-lead {
    font-size: 18px;
    color: var(--body);
    line-height: 1.7;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 32px;
}

.article-hero-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
    height: 360px;
    object-fit: cover;
}

.article-body h2 {
    font-size: 26px;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
    letter-spacing: -0.1px;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--body);
    line-height: 1.7;
    font-size: 16px;
}

.article-body li { margin-bottom: 8px; }

.article-body a { color: var(--primary); }
.article-body a:hover { color: var(--primary-active); }

.info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    margin: 28px 0;
}

.info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.info-box p { font-size: 14px; color: var(--body); margin: 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

.data-table th {
    background: var(--canvas-soft);
    color: var(--ink);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--hairline);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--canvas); }

.article-sidebar {}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
    color: var(--body);
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-card a:hover { color: var(--primary); }

.page-content { padding: 60px 0 80px; }

.page-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--hairline); }

.page-header h1 {
    font-size: 48px;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
}

.page-body h2 {
    font-size: 26px;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-body ul, .page-body ol {
    margin: 0 0 20px 24px;
    color: var(--body);
    line-height: 1.7;
    font-size: 16px;
}

.page-body li { margin-bottom: 8px; }

.updated-notice {
    font-size: 13px;
    color: var(--muted);
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline-soft);
}

.contact-section {
    padding: 80px 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 { font-size: 32px; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--body); margin-bottom: 24px; line-height: 1.7; }

.contact-details { list-style: none; margin-top: 24px; }
.contact-details li { padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 15px; color: var(--body); }
.contact-details li:last-child { border-bottom: none; }

.contact-form-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.contact-form-wrap h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.1px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background: #e8f5ef;
    color: var(--semantic-success);
    border: 1px solid #b3dfc9;
    display: block;
}

.form-message.error {
    background: #fce8ed;
    color: var(--semantic-error);
    border: 1px solid #f0b3c0;
    display: block;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.footer-col a:hover { color: var(--primary); }

.footer-col address { font-style: normal; }

.footer-col address p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 20px 0;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-disclaimer { max-width: 540px; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    z-index: 500;
    padding: 16px 24px;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p { font-size: 14px; color: var(--body); flex: 1; }
.cookie-inner a { color: var(--primary); }

.cookie-actions { display: flex; gap: 8px; }

.waterway-map {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin: 28px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--body);
    line-height: 1.8;
}

.waterway-map .map-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 16px;
}

.route-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.route-row:last-child { border-bottom: none; }

.route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.route-dot.r1 { background: #9fbbe0; }
.route-dot.r2 { background: #9fc9a2; }
.route-dot.r3 { background: #dfa88f; }

.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

@media (max-width: 1024px) {
    h1 { font-size: 56px; }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 38px; letter-spacing: -1px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface-card);
        border-bottom: 1px solid var(--hairline);
        padding: 16px;
        z-index: 99;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a { padding: 12px 16px; width: 100%; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--canvas);
        padding: 4px 0 4px 16px;
        border-radius: 0;
    }

    .hero-band { padding: 48px 0; }
    .hero-image-wrap img { height: 240px; }

    .section { padding: 48px 0; }

    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }

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

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

    .cookie-inner { flex-direction: column; align-items: flex-start; }

    .article-main h1 { font-size: 32px; }

    .page-header h1 { font-size: 36px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    h1 { font-size: 32px; }
}
