:root {
    --site-bg: #f4efe5;
    --site-surface: rgba(255, 252, 246, 0.78);
    --site-strong: #10231a;
    --site-text: #294235;
    --site-muted: #5d7467;
    --site-accent: #d86f45;
    --site-accent-dark: #a84f2c;
    --site-border: rgba(16, 35, 26, 0.08);
    --site-shadow: 0 24px 60px rgba(38, 30, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(216, 111, 69, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(16, 35, 26, 0.08), transparent 28%),
        linear-gradient(180deg, #fbf6ee 0%, var(--site-bg) 100%);
}

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

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 5vw;
    backdrop-filter: blur(16px);
    background: rgba(251, 246, 238, 0.78);
    border-bottom: 1px solid var(--site-border);
}

.site-brand,
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-brand small {
    display: block;
    color: var(--site-muted);
}

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--site-strong);
    color: #fff;
    font-weight: 700;
}

.site-nav a,
.site-admin-link,
.button {
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-admin-link:hover,
.button:hover {
    transform: translateY(-1px);
}

.site-nav a {
    color: var(--site-muted);
}

.site-admin-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
}

.site-admin-link,
.button-primary {
    background: var(--site-strong);
    color: #fff;
}

.button-secondary {
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.5);
}

.site-main {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 96px;
}

.hero,
.section {
    margin-bottom: 28px;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
    border-radius: 32px;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 32px;
    padding: 48px;
    min-height: 72vh;
    align-items: center;
}

.hero h1,
.section h2,
.module-item h3,
.feature-card h3,
.hero-card strong {
    color: var(--site-strong);
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.hero p,
.section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--site-muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-card,
.feature-card,
.module-item,
.cta-panel {
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    padding: 24px;
}

.hero-card {
    align-self: end;
}

.section {
    padding: 36px;
}

.section-contrast {
    background: linear-gradient(135deg, rgba(16, 35, 26, 0.95), rgba(31, 54, 42, 0.92));
}

.section-contrast h2,
.section-contrast .section-tag,
.section-contrast .module-item h3,
.section-contrast .module-item span,
.section-contrast .module-item small {
    color: #fff;
}

.section-contrast .module-item p {
    color: rgba(255, 255, 255, 0.76);
}

.section-contrast .module-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.section-heading {
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--site-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-stack {
    display: grid;
    gap: 16px;
}

.feature-grid,
.module-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.section-cta {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.cta-panel {
    background: linear-gradient(135deg, rgba(216, 111, 69, 0.14), rgba(255, 255, 255, 0.7));
}

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

.content-html {
    display: grid;
    gap: 18px;
}

.content-html > *:first-child {
    margin-top: 0;
}

.content-html > *:last-child {
    margin-bottom: 0;
}

.content-html h1,
.content-html h2,
.content-html h3,
.page-section h1 {
    color: var(--site-strong);
}

.content-html p,
.content-html li {
    color: var(--site-muted);
    line-height: 1.8;
}

.contact-form-panel {
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 24px;
}

.contact-meta {
    display: grid;
    gap: 10px;
}

.site-form {
    display: grid;
    gap: 14px;
}

.site-form label {
    display: grid;
    gap: 8px;
}

.ui-field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-strong);
    font-weight: 600;
}

.ui-field-text {
    line-height: 1.3;
}

.ui-field-help {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 111, 69, 0.24);
    background: rgba(216, 111, 69, 0.12);
    color: var(--site-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
}

.ui-field-help::after {
    content: attr(data-help);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #1f2d24;
    color: #fff;
    box-shadow: 0 18px 40px rgba(31, 45, 36, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: 500;
}

.ui-field-help:hover::after,
.ui-field-help:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.site-form input,
.site-form textarea,
.site-form select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.84);
    padding: 14px 16px;
    font: inherit;
    color: var(--site-text);
}

.site-form textarea {
    resize: vertical;
    min-height: 140px;
}

.site-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(162, 69, 69, 0.12);
    color: #a33d3d;
    border: 1px solid rgba(162, 69, 69, 0.18);
}

.site-alert-success {
    background: rgba(24, 138, 90, 0.12);
    color: #1c825b;
    border-color: rgba(24, 138, 90, 0.18);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 0.95rem;
}

.blog-comments-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.blog-comment-card {
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    padding: 22px;
}

.blog-comment-card small {
    display: block;
    margin-top: 6px;
    color: var(--site-muted);
}

.blog-comment-card p {
    margin-bottom: 0;
}

.maintenance-section {
    min-height: 72vh;
    display: grid;
    place-items: center;
}

.maintenance-card {
    max-width: 720px;
    text-align: center;
    display: grid;
    gap: 18px;
    padding: 48px;
    border: 1px solid var(--site-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--site-shadow);
}

@media (max-width: 960px) {
    .site-header,
    .site-nav,
    .hero,
    .feature-grid,
    .module-list,
    .cta-grid,
    .blog-comments-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-main {
        width: min(100% - 24px, 1200px);
    }

    .hero,
    .section {
        padding: 24px;
        border-radius: 24px;
    }
}
