/* ============================================================
   Mermiil Oy – Rakennuspalvelut
   Brand: gold (#f0b400) + ink black, warm off-white
   ============================================================ */

:root {
    --gold:        #f0b400;
    --gold-light:  #facf38;
    --gold-dark:   #d09f00;
    --ink:         #161616;
    --ink-soft:    #252525;
    --bg:          #faf8f3;
    --surface:     #ffffff;
    --surface-alt: #f3efe6;
    --text:        #2a2723;
    --muted:       #6b665e;
    --line:        #e7e1d5;
    --radius:      14px;
    --radius-lg:   22px;
    --shadow:      0 18px 40px -22px rgba(22, 22, 22, 0.35);
    --shadow-sm:   0 8px 20px -14px rgba(22, 22, 22, 0.4);
    --maxw:        1140px;
    --ease:        cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: .01em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.6rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn-primary {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 10px 24px -10px rgba(240, 180, 0, .8);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 243, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink);
}
.brand-text small {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink);
    position: relative;
    transition: color .2s var(--ease);
}
.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 26px; height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 78% -10%, rgba(240, 180, 0, .22), transparent 60%),
        linear-gradient(180deg, #fffdf8, var(--bg));
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
    /* subtle diagonal "raidat" nod to logo accents */
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(22,22,22,.025) 0 14px, transparent 14px 34px);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 3rem;
}
.eyebrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .8rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin: 0 0 1rem;
}
.hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 700;
    margin-bottom: 1.3rem;
}
.hero h1 .accent { color: var(--gold); }
.hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted);
    max-width: 36ch;
    margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    list-style: none;
    padding: 0; margin: 0;
}
.hero-badges li {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hero-badges li::before {
    content: '';
    width: 9px; height: 9px;
    background: var(--gold);
    border-radius: 2px;
    transform: rotate(45deg);
}
.hero-emblem { display: flex; justify-content: center; }
.hero-emblem img {
    width: min(340px, 80%);
    filter: drop-shadow(0 26px 40px rgba(22,22,22,.28));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark {
    background:
        radial-gradient(800px 400px at 85% 0%, rgba(240,180,0,.16), transparent 55%),
        var(--ink);
    color: #e9e6df;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }

/* Teal "eco" band – nods to the logo's hidden teal (#01696e) */
.section-eco {
    background:
        radial-gradient(820px 420px at 12% 0%, rgba(250, 207, 56, .14), transparent 55%),
        linear-gradient(160deg, #017a80, #01585c);
    color: #d9efef;
}
.section-eco h2, .section-eco h3 { color: #fff; }
.section-eco .eyebrow { color: var(--gold-light); }
.section-eco .section-intro { color: #b7dede; }
.section-eco .feature p { color: #b7dede; }
.section-eco .feature-num {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
}

.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-intro { color: var(--muted); font-size: 1.08rem; margin: 1rem 0 0; }
.section-dark .section-intro { color: #b9b4ab; }

/* ── Service cards ─────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    font-size: 2.2rem;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    background: var(--surface-alt);
    border-radius: 14px;
    margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .98rem; }

.card-grid-note { text-align: center; margin: 2.5rem 0 0; color: var(--muted); }
.card-grid-note a { color: var(--gold-dark); font-weight: 600; }

/* ── Referenssit ───────────────────────────────────────── */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ref-card {
    border: 0;
    padding: 0;
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ref-card:hover, .ref-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); outline: none; }
.ref-card:focus-visible { box-shadow: 0 0 0 3px rgba(240,180,0,.5), var(--shadow); }
.ref-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-alt);
}
.ref-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}
.ref-card:hover .ref-thumb img { transform: scale(1.05); }
/* Branded placeholder shown when a photo is missing */
.ref-thumb.placeholder {
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(135deg, rgba(22,22,22,.04) 0 14px, transparent 14px 34px),
        linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.ref-thumb.placeholder img { display: none; }
.ref-thumb.placeholder::after {
    content: attr(data-icon);
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.ref-count {
    position: absolute;
    right: .7rem; bottom: .7rem;
    display: flex; align-items: center; gap: .35rem;
    background: rgba(22,22,22,.78);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .6rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.ref-body { padding: 1.3rem 1.4rem 1.5rem; }
.ref-type {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    color: var(--gold-dark);
    font-weight: 600;
}
.ref-body h3 { font-size: 1.2rem; margin: .35rem 0 .4rem; }
.ref-meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, .92);
    padding: 2rem;
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-stage {
    margin: 0;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}
.lb-stage img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 8px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
    object-fit: contain;
}
#lb-caption { color: #d9d4cb; font-size: .95rem; text-align: center; }
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-close { top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-counter {
    position: absolute;
    bottom: 1.4rem; left: 50%;
    transform: translateX(-50%);
    color: #d9d4cb;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .05em;
}

/* ── Features (dark) ───────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem 2.5rem;
}
.feature { position: relative; padding-top: .5rem; }
.feature-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: .8rem;
}
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p { color: #b9b4ab; margin: 0; font-size: .98rem; }

/* ── Steps ─────────────────────────────────────────────── */
.steps {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem 1.8rem;
    position: relative;
}
.step-num {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    background: var(--ink);
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ── Toiminta-alue ─────────────────────────────────────── */
.area-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3rem;
    align-items: center;
}
.area-content h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.area-content > p { color: var(--muted); font-size: 1.08rem; }
.area-list {
    list-style: none;
    padding: 0;
    margin: 1.8rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}
.area-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .5rem 1.1rem;
    font-weight: 600;
    font-size: .92rem;
}
.area-note { color: var(--muted); margin: 0; }
.area-note a { color: var(--gold-dark); font-weight: 600; }
.area-card {
    background: var(--ink);
    color: #e9e6df;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.area-card-icon { font-size: 2.6rem; margin-bottom: .6rem; }
.area-card-big {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .6rem;
}
.area-card p:last-child { color: #b9b4ab; margin: 0; font-size: .98rem; }

/* ── Contact ───────────────────────────────────────────── */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; }
.contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1.2rem;
}
.contact-list li { display: flex; flex-direction: column; }
.contact-label {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .72rem;
    color: var(--gold-dark);
    margin-bottom: .2rem;
}
.contact-list a, .contact-list span:not(.contact-label) {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.contact-list a:hover { color: var(--gold-dark); }
.whatsapp-link {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    font-size: 1.05rem !important;
    color: #fff !important;
    background: #25d366;
    padding: .55rem 1rem;
    border-radius: 9px;
    width: fit-content;
    box-shadow: 0 8px 18px -10px rgba(37, 211, 102, .9);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.whatsapp-link:hover { background: #1ebe5b; color: #fff !important; transform: translateY(-2px); }
.whatsapp-link svg { flex-shrink: 0; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.1rem;
}
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--ink);
}
.field input, .field select, .field textarea {
    font: inherit;
    padding: .8rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240, 180, 0, .18);
    background: #fff;
}
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #c9c4bb; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}
.footer-logo { width: 60px; margin-bottom: 1rem; }
.footer-brand p { margin: 0; max-width: 30ch; font-size: .95rem; }
.footer-address {
    font-style: normal;
    margin-top: 1rem;
    font-size: .9rem;
    line-height: 1.7;
    color: #8a857c;
}
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a, .footer-contact a {
    color: #c9c4bb;
    text-decoration: none;
    transition: color .2s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: .7rem; font-weight: 600; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.6rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
    color: #8a857c;
}
.footer-bottom p { margin: 0; }

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── UKK / FAQ ─────────────────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-dark);
    transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin: 0;
    padding: 0 1.3rem 1.2rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ── Evästeilmoitus ────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 1200;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    background: var(--ink);
    color: #f3efe7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: .82rem;
    line-height: 1.45;
    transform: translateY(140%);
    transition: transform .4s var(--ease);
}
.cookie-notice.show { transform: translateY(0); }
.cookie-notice p { margin: 0; }
.cookie-accept {
    flex: none;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    padding: .5rem .9rem;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    font-size: .82rem;
    transition: background .2s var(--ease);
}
.cookie-accept:hover { background: var(--gold-light); }

@media (max-width: 520px) {
    .cookie-notice { left: .8rem; right: .8rem; bottom: .8rem; max-width: none; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-emblem { order: -1; }
    .hero-emblem img { width: 200px; }
    .hero-lead { max-width: none; }
    .area-inner, .contact-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: .5rem 24px 1.5rem;
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform .35s var(--ease);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.nav-cta)::after { display: none; }
    .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0 !important; }
}

@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .lightbox { padding: 1rem; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .lb-prev { left: .5rem; }
    .lb-next { right: .5rem; }
    .lb-close { top: .6rem; right: .8rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-emblem img { animation: none; }
}
