:root {
    --ink: #172033;
    --muted: #647084;
    --navy: #0e3a54;
    --teal: #0d8290;
    --green: #2f7d57;
    --gold: #c79b3b;
    --paper: #f7f9f7;
    --line: #dce5e7;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(23, 32, 51, 0.12);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topline {
    background: var(--navy);
    color: var(--white);
}

.topline__inner {
    width: min(100% - 32px, var(--max));
    min-height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-size: 14px;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: rgba(255, 255, 255, 0.92);
}

.quick-link__icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: var(--white);
    font-size: 13px;
    line-height: 1;
}

.nav {
    width: min(100% - 32px, var(--max));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--white);
}

.brand {
    display: flex;
    align-items: center;
    width: 178px;
    min-width: 150px;
}

.brand img {
    width: 100%;
    height: auto;
}

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

.nav__links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 650;
    transition: color 160ms ease, background 160ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: var(--navy);
    background: #edf6f5;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle__bar {
    width: 20px;
    height: 2px;
    background: var(--navy);
}

.hero {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 36px 0 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--navy);
    font-size: 58px;
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    color: var(--navy);
    font-size: 40px;
    line-height: 1.16;
    letter-spacing: 0;
}

h3 {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0;
}

.hero__lead {
    max-width: 680px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 19px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button--primary {
    color: var(--white);
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(13, 130, 144, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #096f7b;
}

.button--quiet {
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
}

.button--light {
    color: var(--navy);
    background: var(--white);
    border-color: var(--white);
}

.hero__visual {
    min-height: 0;
    padding: 16px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13, 130, 144, 0.06), rgba(199, 155, 59, 0.08)),
        var(--white);
    box-shadow: var(--shadow);
}

.hero__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
}

.hero__stats {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero__stats span {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.hero__stats strong {
    color: var(--gold);
    font-size: 24px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.section {
    padding: 78px 0;
}

.section--tinted {
    background: var(--paper);
}

.section--dark {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(13, 58, 84, 0.94), rgba(47, 125, 87, 0.94)),
        var(--navy);
}

.section--dark .eyebrow,
.section--dark h2 {
    color: var(--white);
}

.section__heading {
    width: min(100% - 32px, 760px);
    margin: 0 auto 36px;
    text-align: center;
}

.section__heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
}

.section--dark .section__heading p {
    color: rgba(255, 255, 255, 0.78);
}

.section__heading--left {
    width: auto;
    margin: 0;
    text-align: left;
}

.feature-grid,
.document-grid,
.info-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.document-card,
.service-item,
.contact-form {
    border-radius: 8px;
}

.feature-card {
    min-height: 228px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
}

.feature-card__number {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
}

.feature-card p,
.service-item p {
    color: var(--muted);
}

.split {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-item {
    min-height: 116px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

.service-item__mark {
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}

.document-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 160ms ease, background 160ms ease;
}

.document-card:hover,
.document-card:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.document-card__icon {
    display: block;
    width: 40px;
    height: 52px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    position: relative;
}

.document-card__icon::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -2px;
    width: 14px;
    height: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.14);
}

.document-card strong,
.document-card span {
    display: block;
}

.document-card strong {
    margin-bottom: 10px;
    font-size: 19px;
}

.document-card span {
    color: rgba(255, 255, 255, 0.74);
}

.info-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: stretch;
}

.info-card {
    min-height: 280px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    color: var(--white);
    font-size: 25px;
}

.info-card p,
.plain-list {
    color: rgba(255, 255, 255, 0.78);
}

.info-card__label {
    display: inline-block;
    margin-bottom: 14px;
    color: #f1cf78;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.plain-list {
    margin: 0 0 24px;
    padding-left: 22px;
}

.plain-list li {
    margin-bottom: 10px;
}

.text-panel {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

.text-panel p {
    margin-bottom: 16px;
    color: var(--muted);
}

.text-panel p:first-child {
    color: var(--ink);
    font-weight: 700;
}

.text-panel p:last-child {
    margin-bottom: 0;
}

.regulation-list {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    counter-reset: regs;
}

.regulation-list li {
    min-height: 72px;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    counter-increment: regs;
}

.regulation-list li::before {
    content: counter(regs, decimal-leading-zero);
    color: var(--teal);
    font-weight: 900;
}

.external-note {
    width: min(100% - 32px, var(--max));
    margin: 22px auto 0;
    text-align: center;
}

.external-note a {
    color: var(--green);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.section--contact {
    background: var(--paper);
}

.contact-layout {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.75fr);
    gap: 48px;
    align-items: start;
}

.contact-info p {
    color: var(--muted);
}

.contact-list {
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

.contact-list li {
    padding-left: 24px;
    position: relative;
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.contact-list a {
    color: var(--navy);
    font-weight: 800;
}

.contact-form {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
}

.contact-form span {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(13, 130, 144, 0.14);
}

.contact-form textarea {
    resize: vertical;
}

.company-field {
    position: absolute;
    left: -9999px;
}

.form-status {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-status--success {
    color: #135033;
    background: #e7f5ed;
}

.form-status--error {
    color: #8a271f;
    background: #fdecea;
}

.footer {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.footer img {
    width: 140px;
}

.footer p {
    margin: 0;
}

@media (max-width: 980px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 34px;
    }

    .topline__inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .hero,
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 32px;
        gap: 34px;
    }

    .hero__visual {
        min-height: 0;
    }

    .feature-grid,
    .document-grid,
    .info-grid,
    .regulation-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 31px;
    }

    .nav {
        min-height: 74px;
    }

    .brand {
        width: 142px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        inset: 0;
        z-index: 20;
        padding: 110px 24px 24px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__links a {
        min-height: 54px;
        font-size: 20px;
    }

    .nav-toggle {
        position: relative;
        z-index: 30;
    }

    .topline__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .hero__actions,
    .button {
        width: 100%;
    }

    .hero__visual {
        padding: 12px;
    }

    .hero__stats {
        position: static;
        width: 100%;
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .document-grid,
    .info-grid,
    .regulation-list,
    .service-list {
        grid-template-columns: 1fr;
    }

    .info-card,
    .text-panel {
        padding: 22px;
    }

    .section {
        padding: 58px 0;
    }

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

@media (max-width: 420px) {
    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 27px;
    }

}
