* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #536c7a;
    background: #f7fafb;
    line-height: 1.62;
}

p {
    margin: 0;
    font-size: 16px;
}

p + p {
    margin-top: 14px;
}

a {
    color: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f7fafb;
    border-top: 4px solid #a84f5c;
    border-bottom: 1px solid #bdd0d7;
}

.header-grid {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #486677;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #237f92;
    color: #ffffff;
    font-size: 19px;
    border-bottom: 4px solid #a84f5c;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a,
.contact-label {
    padding: 9px 11px;
    color: #526f7d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
    color: #237f92;
    border-bottom-color: #a84f5c;
}

.contact-label {
    margin-left: 5px;
    background: #dfecef;
    border-left: 3px solid #237f92;
    color: #486677;
}

a:focus-visible {
    outline: 3px solid #d16c78;
    outline-offset: 3px;
}

.section-code {
    margin-bottom: 12px;
    color: #237f92;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 22px;
    color: #486677;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h2 {
    margin: 0;
    color: #486677;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h3 {
    color: #486677;
}

.intro-band,
.prep-intro,
.scope-intro {
    background: #dce9ed;
    border-bottom: 1px solid #b8cbd2;
}

.intro-grid,
.prep-intro-grid,
.scope-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
    gap: 58px;
    padding: 54px 0 50px;
    align-items: stretch;
}

.axis-readout,
.prep-index,
.scope-key {
    position: relative;
    align-self: stretch;
    border-left: 4px solid #237f92;
    background: #eef5f7;
    padding: 8px 0;
}

.axis-readout::before,
.prep-index::before,
.scope-key::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 17px;
    width: 12px;
    height: 12px;
    background: #a84f5c;
    border-radius: 50%;
}

.axis-line,
.prep-index > div,
.scope-key > div {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #c7d8de;
}

.prep-index > div,
.scope-key > div {
    grid-template-columns: 42px 1fr;
}

.axis-line:last-child,
.prep-index > div:last-child,
.scope-key > div:last-child {
    border-bottom: 0;
}

.axis-line span,
.prep-index span,
.scope-key span {
    color: #237f92;
    font-size: 13px;
    font-weight: 900;
}

.axis-line strong,
.prep-index strong,
.scope-key strong {
    color: #486677;
}

.axis-line small {
    color: #657c89;
    font-size: 13px;
    text-align: right;
}

.service-axis,
.prep-sequence,
.scope-register {
    padding: 58px 0;
    background: #f7fafb;
}

.axis-heading {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 30px;
}

.axis-heading .section-code {
    margin: 0;
}

.axis-list {
    position: relative;
}

.axis-list::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8fbac4;
    transform: translateX(-1px);
}

.axis-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    min-height: 132px;
}

.axis-content {
    grid-column: 1;
    padding: 20px 30px 20px 0;
    border-top: 1px solid #c9d9de;
}

.axis-node {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    background: #237f92;
    color: #ffffff;
    font-weight: 900;
    border: 5px solid #f7fafb;
    z-index: 1;
}

.axis-step-alt .axis-content {
    grid-column: 3;
    padding: 20px 0 20px 30px;
}

.axis-content h3 {
    margin: 0 0 7px;
    font-size: 19px;
}

.document-register,
.record-board,
.inheritance-strip {
    padding: 58px 0;
    background: #e4eef1;
    border-top: 1px solid #c4d5db;
    border-bottom: 1px solid #c4d5db;
}

.register-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 46px;
}

.register-title {
    padding-right: 34px;
    border-right: 1px solid #afc6ce;
}

.register-title h2 {
    margin-bottom: 14px;
}

.register-rows {
    border-top: 3px solid #237f92;
}

.register-row {
    display: grid;
    grid-template-columns: 72px 210px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #b9cdd4;
    align-items: start;
}

.register-id,
.scope-no,
.sequence-no {
    color: #a84f5c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.register-row h3 {
    margin: 0;
    font-size: 17px;
}

.evidence-strip,
.form-differences,
.certification-board,
.deposit-register {
    padding: 54px 0;
    background: #f8fbfc;
}

.evidence-grid,
.record-board-grid,
.inheritance-grid,
.deposit-register-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 50px;
    align-items: start;
}

.evidence-copy h2,
.record-board-grid h2,
.inheritance-grid h2,
.deposit-copy h2 {
    margin-bottom: 16px;
}

.service-meter,
.record-note,
.inheritance-index,
.deposit-list {
    border-top: 4px solid #a84f5c;
    background: #e7f0f3;
}

.service-meter > div,
.inheritance-index > div,
.deposit-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid #bfd1d8;
}

.service-meter span,
.inheritance-index span,
.deposit-list span {
    color: #237f92;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.service-meter strong,
.inheritance-index strong,
.deposit-list strong {
    color: #486677;
}

.local-note,
.closing-docs,
.company-note {
    padding: 56px 0;
    background: #d8e6ea;
}

.local-note-grid,
.closing-docs-grid,
.company-note-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 50px;
}

.closing-docs-grid,
.company-note-grid {
    grid-template-columns: minmax(0, 820px);
}

.local-note-grid h2,
.closing-docs-grid h2,
.company-note-grid h2 {
    margin-bottom: 16px;
}

.note-board,
.record-note {
    background: #eef5f7;
    border-left: 5px solid #237f92;
    padding: 22px;
}

.note-board h3,
.record-note h3 {
    margin: 0 0 12px;
    font-size: 19px;
}

.sequence-rows {
    border-top: 3px solid #237f92;
}

.sequence-rows article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #c5d6dc;
}

.sequence-no {
    font-size: 18px;
}

.sequence-rows h3,
.scope-rows h3,
.form-lines h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.form-differences > .wrap > h2 {
    margin-bottom: 26px;
}

.form-lines {
    border-top: 3px solid #237f92;
}

.form-lines article {
    display: grid;
    grid-template-columns: 60px 260px 1fr;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid #c5d6dc;
    align-items: start;
}

.form-lines span {
    color: #a84f5c;
    font-weight: 900;
}

.scope-rows {
    border-top: 3px solid #237f92;
}

.scope-rows article {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #c5d6dc;
}

.certification-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 58px;
}

.certification-grid h2 {
    margin-bottom: 16px;
}

.deposit-list > div {
    grid-template-columns: 40px 1fr;
}

.privacy-page {
    min-height: calc(100vh - 164px);
    padding: 62px 0;
    background: #e4eef1;
}

.privacy-wrap {
    max-width: 820px;
}

.privacy-wrap h1 {
    margin-bottom: 24px;
}

.site-footer {
    background: #617d8b;
    color: #f7fbfc;
    border-top: 4px solid #a84f5c;
}

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

.footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-weight: 800;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    text-decoration: underline;
}

.footer-nav .privacy {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.78;
}

@media (max-width: 1024px) {
    .header-grid {
        grid-template-columns: 1fr;
        padding: 16px 0;
        gap: 12px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .intro-grid,
    .prep-intro-grid,
    .scope-intro-grid,
    .evidence-grid,
    .record-board-grid,
    .inheritance-grid,
    .deposit-register-grid,
    .local-note-grid,
    .certification-grid {
        grid-template-columns: 1fr;
    }

    .axis-readout,
    .prep-index,
    .scope-key,
    .service-meter,
    .record-note,
    .inheritance-index,
    .deposit-list,
    .note-board {
        max-width: 640px;
    }

    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-title {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid #afc6ce;
    }

    .register-row {
        grid-template-columns: 70px 200px 1fr;
    }
}

@media (max-width: 768px) {
    .wrap {
        width: min(100% - 32px, 1180px);
    }

    .site-header {
        position: static;
    }

    .main-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .contact-label {
        margin-left: 0;
    }

    .intro-grid,
    .prep-intro-grid,
    .scope-intro-grid {
        padding: 42px 0;
        gap: 28px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .axis-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .axis-list::before {
        left: 20px;
    }

    .axis-step,
    .axis-step-alt {
        grid-template-columns: 42px 1fr;
        min-height: 0;
        padding: 10px 0;
    }

    .axis-node,
    .axis-step-alt .axis-node {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .axis-content,
    .axis-step-alt .axis-content {
        grid-column: 2;
        padding: 16px 0 16px 16px;
    }

    .register-row {
        grid-template-columns: 54px 1fr;
        gap: 12px;
    }

    .register-row p {
        grid-column: 1 / -1;
        padding-left: 66px;
    }

    .form-lines article {
        grid-template-columns: 50px 1fr;
        gap: 12px;
    }

    .form-lines article p {
        grid-column: 1 / -1;
        padding-left: 62px;
    }

    .footer-grid {
        display: block;
        padding: 22px 0;
    }

    .footer-nav {
        margin-top: 10px;
    }
}

@media (max-width: 430px) {
    .main-nav {
        grid-template-columns: 1fr;
    }

    .axis-line {
        grid-template-columns: 34px 1fr;
    }

    .axis-line small {
        grid-column: 2;
        text-align: left;
    }

    .register-row p,
    .form-lines article p {
        padding-left: 0;
    }

    .service-meter > div,
    .inheritance-index > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.additional-acts {
    padding: 56px 0;
    background: #edf4f6;
    border-top: 1px solid #c4d5db;
}

.additional-acts-grid {
    display: grid;
    grid-template-columns: minmax(0, 860px);
}

.additional-acts-grid h2 {
    margin-bottom: 16px;
}
