:root {
    --bg: #e4f1e9;
    --bg-alt: #ffffff;
    --text: #0f1720;
    --muted: #5e6b75;
    --accent: #156488;
    --accent-hover: #0f506d;
    --accent-soft: #d9edf6;
    --border: #dbe3e8;
    --surface: #ffffff;
    --shadow-sm: 0 8px 22px rgba(11, 36, 49, 0.06);
    --shadow-md: 0 18px 38px rgba(11, 36, 49, 0.1);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

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

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background:
        radial-gradient(900px circle at 8% 10%, rgba(214, 240, 206, 0.52) 0%, rgba(214, 240, 206, 0) 54%),
        radial-gradient(980px circle at 92% 16%, rgba(208, 234, 221, 0.42) 0%, rgba(208, 234, 221, 0) 58%),
        linear-gradient(180deg, #f6fcf8 0%, var(--bg) 42%, #ddece4 100%);
    color: var(--text);
}

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(228, 241, 233, 0.88);
    border-bottom: 1px solid rgba(219, 227, 232, 0.7);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled {
    background: rgba(228, 241, 233, 0.97);
    border-bottom: 1px solid rgba(196, 214, 205, 0.9);
    box-shadow: 0 6px 18px rgba(30, 64, 49, 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: rgba(21, 100, 136, 0.1);
    color: var(--accent);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 3.2vw, 40px);
    padding: clamp(28px, 5vw, 52px) 24px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
}

.hero-media img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-position: center 58%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(30px, 4.1vw, 46px);
    line-height: 1.12;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hero-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
    margin-bottom: 24px;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 100, 136, 0.28);
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--border);
    color: var(--text);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #c6d3dc;
}

/* Sections */

.section {
    padding: 52px 0;
}

.section-header {
    margin-bottom: 26px;
}

.section-header h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Split section */

.section-split {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: var(--radius-xl);
    margin: 0 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    padding: clamp(24px, 3.2vw, 36px);
}

.split-text h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(24px, 2.7vw, 30px);
    line-height: 1.2;
}

.split-text p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.split-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-block {
    padding: 14px 14px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(11, 36, 49, 0.05);
}

.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 15px;
    line-height: 1.45;
}

/* Cards */

.section-cards .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: var(--radius-lg);
    padding: 22px 20px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #c8d8e2;
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.card-tag {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.card p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Gallery */

.section-gallery {
    padding-top: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contacts */

.section-contacts {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: var(--radius-xl);
    margin: 34px 20px 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contacts-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    padding: clamp(24px, 3vw, 34px);
}

.section-contacts h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(24px, 2.7vw, 30px);
}

.section-contacts p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

/* Footer */

.site-footer {
    padding: 24px 0 30px;
    font-size: 13px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    border-top: 1px solid rgba(219, 227, 232, 0.8);
    padding-top: 16px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-bottom: 52px;
    }

    .split-inner,
    .section-cards .cards-grid,
    .gallery-grid,
    .contacts-inner {
        grid-template-columns: 1fr;
    }

    .section-split,
    .section-contacts {
        margin: 20px;
    }

    .hero-media {
        order: -1;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 42px 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-header.is-scrolled {
        background: rgba(226, 240, 231, 0.98);
        box-shadow: 0 8px 20px rgba(30, 64, 49, 0.12);
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.06em;
    }

    .nav {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 18px;
        font-weight: 600;
    }

    .nav a {
        padding: 10px 14px;
    }

    .hero {
        padding: 24px 16px 44px;
    }

    .hero-media {
        aspect-ratio: 4 / 3;
    }

    .gallery-item {
        aspect-ratio: 16 / 11;
    }

    .hero h1 {
        font-size: 30px;
    }
}
