:root {
    --blue: #1778c8;
    --blue-dark: #0f5ea0;
    --ink: #222;
    --muted: #555;
    --line: #e6e6e6;
    --black: #111;
    --white: #fff;
    --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Open Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.brand {
    color: var(--blue);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.brand span { font-weight: 400; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a.is-active,
.site-nav a:hover { border-bottom-color: var(--ink); text-decoration: none; }
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 420px;
    background: var(--black);
}
.hero-photo {
    background:
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18)),
        url("../img/home/photo-1529156069898-49953e39b3ac.avif") center/contain no-repeat;
    background-color: #111;
    aspect-ratio: 1399 / 596;
    min-height: 0;
    width: 100%;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    color: #fff;
    text-align: center;
    min-width: 0;
}
.hero-copy h1 {
    font-family: Oswald, Impact, sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.hero-copy h2 {
    font-family: Oswald, Impact, sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 2vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: capitalize;
    margin: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.section { padding: 72px 0; }
.section.alt { background: #f7f9fb; }
.section-title {
    font-family: Oswald, Impact, sans-serif;
    color: var(--blue);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 12px;
}
.section-title:after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: #ccc;
    margin: 14px auto 36px;
}

.split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}
.split img, .frame-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #ddd;
}
.block-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px;
}
.muted { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.card h3 { margin-top: 0; }

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none !important;
    border: 0;
    padding: 12px 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue) !important; border: 2px solid var(--blue); }

.form {
    display: grid;
    gap: 14px;
    max-width: 560px;
}
.form label { font-weight: 600; font-size: 0.9rem; }
.form input, .form textarea, .form select {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px 12px;
    font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-left: 4px solid var(--blue);
    background: #eef6fc;
}
.alert.error { border-color: #b42318; background: #fdecea; }
.alert.ok { border-color: #1b7f3a; background: #e8f6ec; }

.list { padding-left: 1.15rem; }
.list li { margin: 0.35rem 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.site-footer {
    background: #111;
    color: #ddd;
    padding: 48px 0 20px;
}
.site-footer a { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 32px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 36px;
    padding-top: 16px;
    font-size: 0.85rem;
    color: #999;
}
.admin-bar {
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.admin-bar a { color: #9ad0ff; }

@media (max-width: 1400px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-copy {
        padding: 40px 24px;
    }
    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(1.75rem, 4.5vw, 3rem);
    }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 72px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 12px 20px 20px;
        gap: 8px;
    }
    .site-nav.is-open { display: flex; }
    .hero, .split, .cards, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-inner { flex-wrap: wrap; }
    .brand { white-space: normal; font-size: 1.1rem; }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    display: block;
    background: #111;
    color: #fff;
    text-decoration: none !important;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.gallery-item span {
    display: block;
    padding: 10px 12px;
    font-size: 0.9rem;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close { top: 16px; right: 24px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 860px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
