:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #fbfcfd;
    --text: #10233f;
    --text-soft: #64758a;
    --text-muted: #8b97a8;
    --line: #e7ebf0;
    --line-strong: #d9dfe8;
    --brand: #c40000;
    --brand-dark: #a70000;
    --brand-soft: #fff2f2;
    --shadow-soft: 0 10px 30px rgba(16, 35, 63, 0.06);
    --shadow-card: 0 12px 28px rgba(16, 35, 63, 0.08);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --max: 1080px;
    --header-h: 76px;
    --font-main: Inter, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.45;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 30%),
        linear-gradient(180deg, #f8f9fb 0%, #f4f6f8 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 235, 240, 0.9);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    font-weight: 800;
    color: var(--text);
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
}

.brand span {
    font-size: 1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.8rem 1.05rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition:
        transform 0.14s ease,
        background 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(196, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--brand-dark);
}

.btn-secondary,
.btn-call {
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-call:hover {
    background: var(--surface-soft);
    border-color: #c9d1dc;
}

/* Hero */
.page-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--brand);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 900;
    color: var(--text);
}

.hero-text {
    margin: 0.7rem 0 0;
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 48ch;
}

/* Layout */
.page-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.gallery-intro {
    margin-bottom: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.info-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 850;
}

.info-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
}

.gallery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: #d8dee8;
}

.gallery-card-large {
    grid-row: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    max-height: 390px;
    object-fit: cover;
    background: #eef1f4;
}

.gallery-card-large img {
    min-height: 100%;
    max-height: 100%;
}

.gallery-card figcaption {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery-card figcaption strong {
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 850;
    color: var(--text);
}

.gallery-card figcaption span {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA */
.gallery-cta {
    margin-top: 1.2rem;
}

.cta-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.6rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.cta-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 52ch;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-card-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .gallery-card-large img {
        min-height: 360px;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0.8rem 0.85rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1 1 auto;
    }

    .brand span {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-hero {
        padding: 1.1rem 1rem 0.85rem;
        gap: 0.85rem;
    }

    .page-wrap {
        padding: 0 0.85rem 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .gallery-card-large {
        grid-column: auto;
    }

    .gallery-card img,
    .gallery-card-large img {
        min-height: 240px;
        max-height: 320px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn,
    .page-hero .btn {
        width: 100%;
    }

    .btn {
        min-height: 46px;
        padding: 0.8rem 1rem;
    }
}