:root {
    --bg: #f4efe8;
    --bg-alt: #f9f6f1;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --text: #1c1f26;
    --muted: #596273;
    --line: rgba(28, 31, 38, 0.12);
    --shadow: 0 22px 60px rgba(36, 30, 20, 0.12);
    --accent: #4f7c68;
    --accent-strong: #2f5f4c;
    --accent-soft: #d8ede4;
    --badge: #eef4ee;
    --badge-text: #355f49;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1140px;
    --nav-height: 84px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    background: #fff;
}

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

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

p {
    line-height: 1.75;
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

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

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    padding: 0.75rem 1rem;
    background: #000;
    color: #fff;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(251, 248, 243, 0.82);
    border-bottom: 1px solid rgba(28, 31, 38, 0.08);
}

.nav-shell {
    min-height: var(--nav-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(47, 95, 76, 0.28);
}

.brand-text {
    font-size: 1.02rem;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: end;
}

.site-nav {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(28, 31, 38, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.96rem;
    transition: color 140ms ease;
}

.site-nav a:hover {
    color: var(--accent-strong);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switch a {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(28, 31, 38, 0.12);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.lang-switch a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 31, 38, 0.12);
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.section {
    padding: 5.5rem 0;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: grid;
    align-items: center;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(247, 242, 234, 0.3), rgba(247, 242, 234, 0.82)),
        linear-gradient(90deg, rgba(22, 27, 33, 0.18), rgba(22, 27, 33, 0.05));
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 0 4rem;
}

.hero-copy {
    width: min(100%, 42rem);
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-strong);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    margin-bottom: 1rem;
}

.lead {
    max-width: 34rem;
    margin: 0 auto;
    color: #4b5563;
    font-size: 1.08rem;
}

.wave-divider {
    margin-top: -1px;
    color: var(--bg-alt);
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 4.5rem;
}

.wave-divider path {
    fill: currentColor;
}

.wave-divider.alt {
    color: #fbf8f3;
}

.about-section {
    padding-top: 2rem;
    background: linear-gradient(180deg, #fbf8f3 0%, #f7f2ea 100%);
}

.grid-2 {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
}

.about-media img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(28, 31, 38, 0.06);
}

.connect-block {
    margin-top: 1.4rem;
    padding: 1.4rem 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(28, 31, 38, 0.08);
    text-align: center;
    box-shadow: 0 18px 36px rgba(28, 31, 38, 0.05);
}

.connect-block p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(28, 31, 38, 0.1);
    box-shadow: 0 12px 24px rgba(28, 31, 38, 0.06);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.social-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 95, 76, 0.3);
}

.social-btn.whatsapp {
    color: #1fa971;
}

.social-btn.telegram {
    color: #2aabee;
}

.social-btn:not(.whatsapp):not(.telegram) {
    color: #0a66c2;
}

.about-copy {
    padding: 0.5rem 0 0;
}

.about-copy h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
}

.about-copy p {
    color: var(--muted);
}

.info-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 31, 38, 0.08);
}

.info-item span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.info-item strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 700;
}

.resume-section {
    background: linear-gradient(180deg, #f7f2ea 0%, #f2ebe2 100%);
}

.section-intro {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--badge);
    color: var(--badge-text);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.section-intro h2 {
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-intro p {
    color: var(--muted);
    font-size: 1.05rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
}

.resume-card {
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(28, 31, 38, 0.08);
    box-shadow: var(--shadow);
}

.resume-visual {
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    min-height: 100%;
}

.resume-visual img {
    width: min(220px, 60%);
    margin: 0 auto 1rem;
}

.resume-visual h3 {
    font-size: 1.7rem;
}

.visual-light {
    display: none;
}

.resume-list {
    padding: 0.5rem 0;
    overflow: hidden;
}

.timeline-item {
    border-top: 1px solid rgba(28, 31, 38, 0.08);
    padding: 0.15rem 1.4rem;
}

.timeline-item:first-child {
    border-top: 0;
}

.timeline-item summary {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    cursor: pointer;
    font-weight: 700;
}

.timeline-item summary::-webkit-details-marker {
    display: none;
}

.timeline-item summary::after {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--accent-strong);
    border-bottom: 2px solid var(--accent-strong);
    transform: rotate(45deg);
    transition: transform 160ms ease;
    flex: 0 0 auto;
}

.timeline-item[open] summary::after {
    transform: rotate(225deg);
}

.timeline-item summary > span:first-child {
    flex: 1 1 auto;
}

.period {
    color: var(--accent-strong);
    font-size: 0.85rem;
    white-space: nowrap;
}

.timeline-body {
    padding: 0 0 1.2rem;
    color: var(--muted);
}

.timeline-body strong {
    display: block;
    color: var(--text);
    margin-top: 0.25rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(79, 124, 104, 0.11);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.82rem;
}

.section-separator {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px dashed rgba(28, 31, 38, 0.18);
}

.site-footer {
    padding: 1.25rem 0 2rem;
    background: #f2ebe2;
    border-top: 1px solid rgba(28, 31, 38, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.95rem;
}

.construction-card {
    width: min(40rem, calc(100% - 2rem));
    margin: 10vh auto 0;
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 31, 38, 0.08);
    box-shadow: var(--shadow);
    text-align: center;
}

.construction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 800;
    margin-bottom: 1rem;
}

.construction-card h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 1rem;
}

.muted {
    color: var(--muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 24px rgba(47, 95, 76, 0.22);
}

.button-ghost {
    border: 1px solid rgba(28, 31, 38, 0.12);
    background: #fff;
    color: var(--text);
}

.error-shell {
    display: grid;
    place-items: start center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .nav-shell {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }

    .brand {
        grid-area: brand;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        grid-area: nav;
        width: 100%;
        justify-self: stretch;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.75rem;
        border-radius: 20px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.8rem 0.95rem;
        border-radius: 14px;
        background: rgba(28, 31, 38, 0.03);
    }

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

    .resume-visual {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 74px;
    }

    .container {
        width: min(100% - 1rem, var(--container));
    }

    .section {
        padding: 4rem 0;
    }

    .hero-copy {
        padding: 1.5rem 1rem;
        border-radius: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .timeline-item {
        padding-inline: 1rem;
    }

    .timeline-item summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .period {
        white-space: normal;
    }
}
