:root {
    --primary: #075e54;
    --primary-2: #0b806f;
    --primary-dark: #043d37;
    --gold: #c9a227;
    --gold-light: #e6c75c;
    --ink: #18312d;
    --muted: #687b77;
    --surface: #ffffff;
    --soft: #f3f7f5;
    --line: #dfe8e5;
    --shadow: 0 18px 50px rgba(4,61,55,.10);
    --radius: 18px;
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 15px;
    top: -100px;
    z-index: 9999;
    background: #fff;
    color: var(--primary-dark);
    padding: 10px 15px;
    border-radius: 8px;
}
.skip-link:focus { top: 15px; }

.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.86);
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    text-decoration: none;
    margin-left: 18px;
}

.nav-wrap {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 230px;
}

.brand img {
    width: 50px;
    height: 50px;
}

.brand strong {
    display: block;
    letter-spacing: .08em;
    color: var(--primary);
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    text-decoration: none;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--soft);
}

.main-nav .nav-portal {
    background: var(--primary);
    color: #fff;
    margin-left: 7px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 46%, #fff 54%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #fff 46%, #fff 54%, transparent 55%);
    background-size: 70px 70px;
}

.hero-inner {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    align-items: center;
    gap: 50px;
    padding-block: 80px;
}

.hero-copy { max-width: 760px; }

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.eyebrow-light { color: var(--gold-light); }

.hero h1,
.page-hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 0 0 24px;
}

.hero p {
    max-width: 680px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 11px 19px;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-large { padding-inline: 28px; min-height: 54px; }

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

.hero-badge-inner {
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 20px rgba(255,255,255,.03), 0 0 0 40px rgba(255,255,255,.02);
}

.hero-badge-inner span {
    font-size: 80px;
    line-height: 1;
    color: var(--gold-light);
    font-weight: 900;
}

.hero-badge-inner strong { letter-spacing: .18em; }
.hero-badge-inner small { color: rgba(255,255,255,.7); margin-top: 7px; }

.section { padding: 90px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--primary-dark); color: #fff; }

.section h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -.025em;
}

.section p { color: var(--muted); }
.section-dark p { color: rgba(255,255,255,.7); }

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: start;
}

.split-center { align-items: center; }

.info-card,
.feature-card,
.news-card,
.login-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.info-card h3,
.feature-card h3,
.news-card h3 { margin: 8px 0 10px; line-height: 1.25; }

.card-icon,
.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--primary);
    font-weight: 900;
}

.number { border-radius: 50%; }

.check-list {
    padding-left: 18px;
    color: var(--muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 35px;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}
.text-link-light { color: var(--gold-light); }

.card-grid {
    display: grid;
    gap: 22px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.news-card {
    box-shadow: none;
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
}
.news-card-light {
    background: #fff;
    border-color: var(--line);
}
.news-date {
    font-size: 12px;
    color: var(--gold);
    font-weight: 800;
}
.news-card a {
    color: var(--gold-light);
    font-weight: 800;
    text-decoration: none;
}
.news-card-light a { color: var(--primary); }

.page-hero {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.page-hero h1 { margin-bottom: 10px; font-size: clamp(40px, 6vw, 62px); }
.page-hero p { color: rgba(255,255,255,.76); max-width: 720px; font-size: 17px; }

.content-narrow { max-width: 900px; }

.notice {
    padding: 22px 24px;
    border-left: 4px solid var(--primary);
    background: var(--soft);
    border-radius: 10px;
    margin-bottom: 30px;
}
.notice p { margin: 5px 0 0; }
.notice-warning { border-left-color: var(--gold); }

.cta-box {
    margin-top: 55px;
    padding: 35px;
    border-radius: var(--radius);
    background: var(--soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cta-box h2 { margin-bottom: 5px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-placeholder {
    min-height: 230px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(7,94,84,.14), rgba(201,162,39,.16)),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.35) 13px, rgba(255,255,255,.35) 14px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 900;
}
.gallery-placeholder small { color: var(--muted); font-weight: 500; }

.contact-list {
    display: grid;
    gap: 15px;
}
.contact-list > div {
    padding: 18px;
    background: var(--soft);
    border-radius: 12px;
}
.contact-list strong,
.contact-list span,
.contact-list a { display: block; }
.contact-list a { color: var(--primary); font-weight: 800; }

.contact-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form h3 { margin-top: 0; font-size: 28px; }
.contact-form label { display: block; font-weight: 700; margin-top: 15px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}
.contact-form small { display: block; margin-top: 12px; color: var(--muted); }

.login-card { max-width: 720px; margin: auto; text-align: center; }
.portal-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 25px; }
.portal-link {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    background: var(--soft);
}
.portal-link strong,
.portal-link span { display: block; }
.portal-link span { color: var(--muted); font-size: 13px; }

.site-footer {
    background: #021f1c;
    color: rgba(255,255,255,.72);
    padding-top: 60px;
}
.brand-footer strong { color: #fff; }
.brand-footer small { color: rgba(255,255,255,.55); }
.footer-description { max-width: 370px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .7fr 1fr;
    gap: 45px;
    padding-bottom: 50px;
}
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { text-decoration: none; }
.footer-grid > div:not(:first-child) a { display: block; margin: 7px 0; color: rgba(255,255,255,.7); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .main-nav { gap: 0; }
    .main-nav a { padding-inline: 8px; font-size: 13px; }
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-badge { display: none; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .topbar-inner { padding-block: 8px; }
    .topbar-inner > span { display: none; }
    .navbar { min-height: 70px; }
    .brand { min-width: 0; }
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-portal { margin-left: 0; text-align: center; }
    .hero-inner { min-height: 560px; padding-block: 60px; }
    .section { padding: 65px 0; }
    .section-heading, .cta-box { align-items: flex-start; flex-direction: column; }
    .card-grid-2, .card-grid-3, .gallery-grid, .portal-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
}
