:root {
    --bg: #f4f1ea;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --line: rgba(18, 42, 76, 0.12);
    --text: #18202e;
    --muted: #5f6775;
    --brand: #173b63;
    --brand-strong: #0f2741;
    --accent: #b88636;
    --accent-soft: #e9d4ad;
    --shadow: 0 18px 45px rgba(18, 42, 76, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(184, 134, 54, 0.16), transparent 30%),
        linear-gradient(180deg, #faf7f1 0%, #f4f1ea 52%, #efeae0 100%);
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 241, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(18, 42, 76, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 14px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo-text span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--brand-strong);
    background: rgba(23, 59, 99, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (min-width: 761px) {
    .header-actions {
        gap: 12px;
    }

    .nav a {
        padding: 8px 12px;
        font-size: 0.92rem;
    }
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(160deg, var(--brand), var(--brand-strong));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.nav-login:hover {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(18, 42, 76, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--brand-strong);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 54px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(15, 39, 65, 0.92) 0%, rgba(23, 59, 99, 0.88) 42%, rgba(23, 59, 99, 0.5) 62%, rgba(23, 59, 99, 0.2) 100%),
        url("assets/images/mchs.png") center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: 8%;
    top: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 212, 173, 0.28), transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.eyebrow,
.section-kicker {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--accent-soft);
}

.hero h1 {
    max-width: 12ch;
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 0.98;
    margin-bottom: 22px;
}

.hero-lead {
    max-width: 56ch;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #8e6625);
    box-shadow: 0 16px 30px rgba(142, 102, 37, 0.35);
}

.btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel,
.callout,
.info-card,
.card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel {
    align-self: start;
    padding: 28px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-panel h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    padding-left: 18px;
    position: relative;
    color: rgba(255, 255, 255, 0.88);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.section,
.page-content {
    padding: 78px 0;
}

.light {
    background: rgba(255, 255, 255, 0.34);
}

.section-accent {
    background: linear-gradient(180deg, rgba(23, 59, 99, 0.06), rgba(184, 134, 54, 0.08));
}

.section-head {
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--brand);
    margin-bottom: 10px;
}

h2,
h3,
h1 {
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-text,
.page-header .section-text,
.muted {
    color: var(--muted);
}

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

.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    padding: 24px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 59, 99, 0.22);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 26px;
    align-items: start;
}

.callout {
    padding: 28px;
}

.callout p + p {
    margin-top: 10px;
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.page-header {
    position: relative;
    padding: 64px 0 24px;
}

.page-header-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, rgba(15, 39, 65, 0.86), rgba(15, 39, 65, 0.3)),
        url("assets/images/lab.png") center/cover no-repeat;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.page-header-image .container {
    position: relative;
    z-index: 1;
}

.page-header-image .section-kicker,
.page-header-image h1,
.page-header-image .section-text {
    color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
}

.content-main,
.content-side {
    display: grid;
    gap: 20px;
}

.content-main p,
.content-main li,
.card p,
.info-card p,
.footer p,
.callout p {
    color: var(--muted);
}

.list {
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.info-card {
    padding: 22px;
}

.docs-grid {
    margin-top: 22px;
}

.doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.doc-actions .text-link {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.doc-modal {
    position: fixed;
    inset: 0;
    width: min(92vw, 460px);
    height: fit-content;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: var(--shadow);
    overflow: visible;
}

.doc-modal:not([open]) {
    display: none;
}

.doc-modal[open] {
    display: block;
}

.doc-modal::backdrop {
    background: rgba(15, 39, 65, 0.55);
    backdrop-filter: blur(4px);
}

.doc-modal-preview {
    width: min(96vw, 920px);
}

.doc-modal-inner {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
}

.doc-modal-title {
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--brand-strong);
}

.doc-modal-text {
    margin-top: 12px;
    color: var(--muted);
}

.doc-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.doc-modal-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.doc-modal-preview-body {
    margin-top: 18px;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f8f8f8;
}

.doc-modal-preview-body iframe {
    display: block;
    width: 100%;
    height: min(70vh, 620px);
    border: 0;
}

.doc-modal-note {
    margin-top: 14px;
}

.doc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.doc-modal-btn {
    min-height: 44px;
}

.doc-modal .btn:not(.primary) {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface-strong);
}

.news-card img {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.news-date {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 800;
}

.contact-schedule {
    margin: 24px auto 0;
    max-width: 980px;
}

.contact-schedule p + p {
    margin-top: 8px;
}

.contact-schedule h3 {
    text-align: center;
}

.schedule-title {
    margin-top: 20px;
}

.schedule-list {
    margin-top: 10px;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.schedule-list li {
    break-inside: avoid;
}

.systems-head {
    margin-bottom: 20px;
}

.systems-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.systems-card {
    padding: 26px;
}

.systems-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.systems-price {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.systems-standards {
    margin-top: 8px;
}

.systems-subtitle {
    margin-top: 12px;
}

.systems-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.systems-link {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer {
    padding: 28px 0 42px;
    border-top: 1px solid rgba(18, 42, 76, 0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-meta {
    text-align: right;
}

@media (max-width: 1040px) {
    .cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-inner,
    .split,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .header-tools {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-actions {
        display: none;
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 8px;
    }

    .header-actions.is-open {
        display: flex;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
    }

    .nav a {
        border-radius: 12px;
    }

    .nav-login {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }

    .grid,
    .cards-2,
    .cards-4 {
        grid-template-columns: 1fr;
    }

    .schedule-list {
        grid-template-columns: 1fr;
    }

    .systems-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-panel,
    .callout,
    .card,
    .info-card {
        padding: 20px;
    }
}
