:root {
    --bg: #f4ece9;
    --card: #ffffff;
    --text: #1b231f;
    --muted: rgba(27, 35, 31, 0.65);
    --border: rgba(27, 35, 31, 0.12);
    --accent: #88ac4f;
    --accent-strong: #47695a;
    --shadow: 0 30px 60px rgba(46, 35, 30, 0.18);
}

body.dark {
    --bg: #0f1512;
    --card: #141d18;
    --text: #e9f2ec;
    --muted: rgba(233, 242, 236, 0.65);
    --border: rgba(233, 242, 236, 0.16);
    --accent: #88ac4f;
    --accent-strong: #88ac4f;
    --shadow: 0 30px 60px rgba(3, 9, 7, 0.45);
}

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

body {
    font-family: "Sora", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
}

.card {
    background: var(--card);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px 36px 28px;
    border: 1px solid var(--border);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
}

.mode-toggle {
    border: 1px solid var(--border);
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mode-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.dark .mode-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 40px;
    padding: 36px 0 32px;
    align-items: center;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.intro h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.2;
    text-wrap: balance;
}

.intro p {
    color: var(--muted);
    line-height: 1.7;
    text-wrap: pretty;
}


.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-line a {
    color: var(--muted);
    text-decoration: none;
}

.form-note {
    font-size: 0.85rem;
    color: var(--accent-strong);
    min-height: 18px;
}

.visual {
    display: flex;
    justify-content: center;
}

.visual-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(136, 172, 79, 0.06);
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
}

.visual-logo {
    width: min(70%, 260px);
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    position: relative;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-block .label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .intro {
        max-width: none;
    }

    .visual-frame {
        max-width: 360px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 40px 16px;
    }

    .card {
        padding: 24px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

}
