:root {
    --bg: #f5f7f8;
    --bg-soft: #eef3f1;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #1f7a4f;
    --accent-dark: #17603e;
    --accent-soft: #e8f5ee;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --max: 1180px;
    --header-h: 76px;
    --text-col: 760px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

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

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

/* ===== SHARED HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 247, 248, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    font-size: 16px;
}

.header-bar {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: Oswald, sans-serif;
    font-size: 32px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.header-nav a,
.header-back {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    opacity: 0.94;
}

.header-nav a:hover,
.header-back:hover {
    color: var(--accent);
}

/* ===== SHARED FOOTER ===== */

.site-footer {
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    background: #f8fafb;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-mark {
    font-family: Oswald, sans-serif;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 820px) {
    .header-bar {
        flex-wrap: wrap;
        row-gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-nav {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}

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

    .brand img {
        height: 32px;
    }

    .brand-text strong {
        font-size: 24px;
    }

    .header-back,
    .header-nav a {
        font-size: 14px;
    }
}
