/* ==========================================================================
   Фидес — tokens
   ========================================================================== */
:root {
    --malachite: #0C3B2E;
    --malachite-2: #134A3A;
    --malachite-3: #1F5A47;
    --bone: #F3F4F0;
    --paper: #FBFBF9;
    --ink: #17201C;
    --ink-soft: #4A5651;
    --brass: #B8925A;
    --brass-light: #D9BE8E;
    --mist: #C9D4CD;
    --line: rgba(23, 32, 28, .14);
    --line-light: rgba(243, 244, 240, .16);

    --font-display: "Forum", "Times New Roman", serif;
    --font-text: "Onest", system-ui, -apple-system, sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 48px);
    --section: clamp(88px, 12vw, 168px);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

section[id] { scroll-margin-top: 72px; }

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--brass);
    color: var(--ink);
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ==========================================================================
   Type
   ========================================================================== */
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(38px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -.01em;
}

.section-lead {
    margin-top: 24px;
    max-width: 34em;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--ink-soft);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}

/* fill wipes up from below on hover */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass::before { background: var(--brass-light); }

.btn-ghost { border: 1px solid var(--line-light); color: var(--bone); }
.btn-ghost::before { background: var(--bone); }
.btn-ghost:hover { color: var(--malachite); border-color: var(--bone); }

.btn-ink { background: var(--malachite); color: var(--bone); }
.btn-ink::before { background: var(--malachite-3); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--bone);
    transition: background .5s var(--ease-out), color .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s;
}

.header.is-solid {
    background: rgba(251, 251, 249, .86);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
}

.header.is-hidden { transform: translateY(-100%); }
.header.menu-active {
    background: transparent;
    color: var(--bone);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; color: var(--brass); }
.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
}

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 32px; }

.nav-link {
    position: relative;
    font-size: 15px;
    text-decoration: none;
    opacity: .8;
    transition: opacity .3s;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease-out);
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.header-phone {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
}
.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: currentColor;
    transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* full-screen mobile menu, revealed by a circular wipe from the toggle */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px var(--gutter) 40px;
    background: var(--malachite);
    color: var(--bone);
    clip-path: circle(0 at calc(100% - 38px) 38px);
    visibility: hidden;
    transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mobile-menu.is-open {
    clip-path: circle(150% at calc(100% - 38px) 38px);
    visibility: visible;
    transition: clip-path .8s var(--ease-in-out), visibility 0s;
}
.mobile-menu li {
    overflow: hidden;
}
.mobile-menu li a {
    display: block;
    padding: 6px 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 11vw, 64px);
    line-height: 1.1;
    text-decoration: none;
    transform: translateY(110%);
    transition: transform .7s var(--ease-out);
}
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .3s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .35s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .4s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .45s; }

.mobile-menu-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
}
.mobile-menu-foot a { text-decoration: none; color: var(--brass-light); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 128px 0 40px;
    background:
        radial-gradient(120% 80% at 85% 0%, var(--malachite-3) 0%, transparent 60%),
        var(--malachite);
    color: var(--bone);
    overflow: hidden;
}

/* subtle engraved paper grain */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the big carved word */
.hero-word {
    position: absolute;
    top: 50%;
    right: -0.04em;
    display: flex;
    font-family: var(--font-display);
    font-size: clamp(160px, 30vw, 460px);
    line-height: .8;
    letter-spacing: .02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(217, 190, 142, .28);
    transform: translateY(calc(-62% + var(--py, 0px)));
    pointer-events: none;
    user-select: none;
    will-change: transform;
}
.hero-word span {
    display: inline-block;
    transition: transform 1.6s var(--ease-out), opacity 1.6s var(--ease-out);
}
.js .hero-word span { transform: translateY(40%); opacity: 0; }
.hero-word span:nth-child(1) { transition-delay: .1s; }
.hero-word span:nth-child(2) { transition-delay: .18s; }
.hero-word span:nth-child(3) { transition-delay: .26s; }
.hero-word span:nth-child(4) { transition-delay: .34s; }
.hero-word span:nth-child(5) { transition-delay: .42s; }
body.is-loaded .hero-word span { transform: none; opacity: 1; }

.hero-inner { position: relative; z-index: 1; }

.hero-definition {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--brass-light);
    transition: opacity 1s .9s var(--ease-out);
}
.hero-definition::before {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--brass);
    transform-origin: left;
    transition: transform 1.2s .9s var(--ease-out);
}
.js body:not(.is-loaded) .hero-definition { opacity: 0; }
.js body:not(.is-loaded) .hero-definition::before { transform: scaleX(0); }
.hero-definition em {
    font-family: var(--font-display);
    font-size: 20px;
    font-style: normal;
}
body.is-loaded .hero-definition { opacity: 1; }
body.is-loaded .hero-definition::before { transform: none; }

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 7.4vw, 104px);
    line-height: .98;
    letter-spacing: -.015em;
    max-width: 12em;
}
.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}
.hero-title .line > span {
    display: block;
    transition: transform 1.3s var(--ease-out);
}
.js body:not(.is-loaded) .hero-title .line > span { transform: translateY(105%); }
.hero-title .line:nth-child(1) > span { transition-delay: .2s; }
.hero-title .line:nth-child(2) > span { transition-delay: .32s; }
.hero-title .line:nth-child(3) > span { transition-delay: .44s; }
body.is-loaded .hero-title .line > span { transform: none; }

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 48px;
}

.hero-lead {
    max-width: 33em;
    font-size: clamp(17px, 1.4vw, 19px);
    color: rgba(243, 244, 240, .78);
}

.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }

.js body:not(.is-loaded) :is(.hero-lead, .hero-actions, .hero-facts) {
    opacity: 0;
    transform: translateY(24px);
}
.hero-lead, .hero-actions, .hero-facts {
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.hero-lead { transition-delay: .7s; }
.hero-actions { transition-delay: .82s; }
.hero-facts { transition-delay: 1s; }
body.is-loaded .hero-lead,
body.is-loaded .hero-actions,
body.is-loaded .hero-facts { opacity: 1; transform: none; }

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line-light);
}
.hero-facts > div {
    padding: 24px 24px 0 0;
}
.hero-facts > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line-light);
}
.hero-facts dt {
    font-family: var(--font-display);
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.1;
    color: var(--brass-light);
}
.hero-facts dd {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(243, 244, 240, .62);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px);
}
[data-reveal] {
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--delay, 0s);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: var(--section) 0; }

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head .section-lead { margin-top: 0; }

.service {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr 240px;
    gap: 48px;
    align-items: start;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

/* brass rule draws across the row on hover */
.service::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }

.service-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    max-width: 12em;
    transition: transform .7s var(--ease-out), color .4s;
}
.service:hover .service-title { transform: translateX(12px); color: var(--malachite-3); }

.service-body p { color: var(--ink-soft); max-width: 32em; }
.service-body ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.service-body li {
    padding: 6px 14px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
    padding: var(--section) 0;
    background: var(--bone);
}

.process-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.process-intro {
    position: sticky;
    top: 120px;
}
.process-intro .btn { margin-top: 40px; }

.steps {
    position: relative;
    padding-left: 72px;
}

.steps-track {
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}
.steps-progress {
    position: absolute;
    inset: 0;
    background: var(--brass);
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
}

.step {
    position: relative;
    padding-bottom: 64px;
}
.step:last-child { padding-bottom: 0; }

.step-num {
    position: absolute;
    left: -72px;
    top: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink-soft);
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background .6s var(--ease-out), color .6s, border-color .6s;
}
.step.is-active .step-num {
    background: var(--malachite);
    border-color: var(--malachite);
    color: var(--brass-light);
}

.step h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.1;
    padding-top: 6px;
}
.step p {
    margin-top: 12px;
    max-width: 30em;
    color: var(--ink-soft);
}

/* ==========================================================================
   Principles
   ========================================================================== */
.principles {
    padding: var(--section) 0;
    background: var(--malachite);
    color: var(--bone);
}

.principles-quote {
    max-width: 22em;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.14;
}
.principles-quote::before {
    content: "“";
    display: block;
    height: .5em;
    font-size: 2.2em;
    line-height: 1;
    color: var(--brass);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: clamp(72px, 9vw, 120px);
    padding-top: 40px;
    border-top: 1px solid var(--line-light);
}
.principle h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15;
    color: var(--brass-light);
}
.principle p {
    margin-top: 12px;
    font-size: 16px;
    color: rgba(243, 244, 240, .7);
}

/* ==========================================================================
   Debtors
   ========================================================================== */
.debtors { padding: var(--section) 0; }

.debtors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 120px);
}

.debtor-item {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.debtor-item:first-child { padding-top: 0; border-top: 0; }
.debtor-item h3 {
    font-size: 19px;
    font-weight: 600;
}
.debtor-item p {
    margin-top: 8px;
    color: var(--ink-soft);
}
.debtor-item a { color: var(--malachite-3); text-underline-offset: 3px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: var(--section) 0;
    background: var(--bone);
}

.faq-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 8vw, 120px);
}

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
    position: relative;
    display: block;
    padding: 26px 56px 26px 0;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* plus that turns into a minus */
.faq-item summary::before,
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .5s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open]:not(.is-closing) summary::after { transform: rotate(0); }

.faq-answer {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .6s var(--ease-out);
}
.js .faq-item:not(.is-open) .faq-answer { grid-template-rows: 0fr; }
.faq-answer > p {
    overflow: hidden;
    max-width: 36em;
    color: var(--ink-soft);
}
.faq-answer > p::after {
    content: "";
    display: block;
    height: 28px;
}
.faq-answer a { color: var(--malachite-3); }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts { padding: var(--section) 0; }

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 120px);
}

.contact-list {
    margin-top: 48px;
    display: grid;
    gap: 24px;
}
.contact-list dt {
    font-size: 14px;
    color: var(--ink-soft);
}
.contact-list dd {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
}
.contact-list a {
    text-decoration: none;
    background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat;
    transition: background-size .6s var(--ease-out);
}
.contact-list a:hover { background-size: 100% 1px; }

.contact-form {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field { position: relative; }
.field input,
.field textarea {
    width: 100%;
    padding: 30px 0 12px;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    resize: vertical;
    transition: border-color .4s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--malachite-3);
}
.field label {
    position: absolute;
    left: 0;
    top: 30px;
    color: var(--ink-soft);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .4s var(--ease-out), color .4s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-22px) scale(.8);
    color: var(--malachite-3);
}
.field.is-invalid input { border-bottom-color: #A6402E; }
.field.is-invalid label { color: #A6402E; }

.contact-form .btn { margin-top: 28px; justify-self: start; }
.form-note {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ink-soft);
}

.requisites {
    margin-top: var(--section);
    padding: clamp(32px, 4vw, 56px);
    background: var(--bone);
    border-radius: 4px;
}
.requisites-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 2.6vw, 36px);
}
.requisites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 48px;
    margin-top: 32px;
}
.requisite dt {
    font-size: 14px;
    color: var(--ink-soft);
}
.requisite dd {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.copy {
    position: relative;
    font-weight: 500;
    text-align: left;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px dashed var(--ink-soft);
    transition: color .3s, border-color .3s;
}
.copy:hover { color: var(--malachite-3); border-color: var(--malachite-3); }
.requisites-hint {
    margin-top: 28px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 64px 0 40px;
    background: var(--malachite);
    color: var(--bone);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-light);
}
.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.footer-contacts a {
    text-decoration: none;
    opacity: .8;
    transition: opacity .3s, color .3s;
}
.footer-contacts a:hover { opacity: 1; color: var(--brass-light); }
.footer-legal {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(243, 244, 240, .55);
}


/* ==========================================================================
   Imagery & parallax
   ========================================================================== */
[data-parallax] {
    position: absolute;
    left: 0;
    top: -15%;
    width: 100%;
    height: 130%;
    object-fit: cover;
    transform: translate3d(0, var(--shift, 0px), 0);
    will-change: transform;
}

/* photos tinted into the malachite palette: image luminance over a green base */
.hero-media,
.principles-bg,
.band-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--malachite);
}
.hero-media img,
.principles-bg img,
.band-media img {
    mix-blend-mode: luminosity;
    filter: contrast(1.1);
}
.hero-media::after,
.principles-bg::after,
.band-media::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-media img { opacity: .5; transition: scale 2.6s var(--ease-out), opacity 2s var(--ease-out); }
.js body:not(.is-loaded) .hero-media img { scale: 1.12; opacity: 0; }
.hero-media::after {
    background:
        linear-gradient(90deg, rgba(12, 59, 46, .92) 0%, rgba(12, 59, 46, .55) 55%, rgba(12, 59, 46, .25) 100%),
        linear-gradient(0deg, var(--malachite) 0%, transparent 45%);
}

.principles { position: relative; overflow: hidden; }
.principles > .container { position: relative; z-index: 1; }
.principles-bg img { opacity: .38; }
.principles-bg::after {
    background: linear-gradient(180deg, rgba(12, 59, 46, .4) 0%, rgba(12, 59, 46, .85) 70%, var(--malachite) 100%);
}

/* inline photos: unveiled from the bottom, settling from a slight zoom */
.media {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--mist);
}
.media img {
    filter: saturate(.8);
    transition: scale 1.8s var(--ease-out);
}
/* a cover in the section colour retracts upward (clip-path would hide the
   element from IntersectionObserver, so the reveal uses an overlay) */
.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cover, var(--paper));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.4s var(--ease-out);
}
.js .media:not(.is-visible)::after { transform: scaleY(1); }
.js .media[data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
}
.process-media { --cover: var(--bone); }
.js .media:not(.is-visible) img { scale: 1.25; }

.service-media { aspect-ratio: 4 / 5; }
.service:hover .service-media img { scale: 1.06; }

.process-media {
    margin-top: 48px;
    aspect-ratio: 3 / 2;
}

.debtors-media {
    margin-top: 40px;
    aspect-ratio: 4 / 3;
}

/* full-bleed office band */
.band {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 88vh;
    padding: var(--section) 0 clamp(56px, 7vw, 96px);
    color: var(--bone);
    overflow: hidden;
}
.band-media img { opacity: .62; }
.band-media::after {
    background: linear-gradient(0deg, rgba(12, 59, 46, .92) 0%, rgba(12, 59, 46, .2) 60%, rgba(12, 59, 46, .35) 100%);
}
.band-inner { position: relative; z-index: 1; }
.band-title {
    max-width: 14em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(38px, 5.4vw, 76px);
    line-height: 1.02;
}
.band-address {
    margin: 20px 0 36px;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--brass-light);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 150;
    padding: 12px 22px;
    font-size: 15px;
    background: var(--malachite);
    color: var(--bone);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .nav, .header-phone { display: none; }
    .nav-toggle { display: block; }
}

@media (max-width: 900px) {
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .section-head,
    .service,
    .process-grid,
    .debtors-grid,
    .faq-grid,
    .contacts-grid { grid-template-columns: 1fr; }
    .section-head { gap: 0; }
    .section-head .section-lead { margin-top: 24px; }
    .service { gap: 20px; }
    .service-media { aspect-ratio: 16 / 10; }
    .process-media { aspect-ratio: 16 / 10; }
    .process-intro { position: static; }
    .principles-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .header-inner { height: 64px; }
    .hero { padding-top: 112px; }
    .hero-word { top: 30%; }
    .hero-actions { width: 100%; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts > div,
    .hero-facts > div + div {
        display: flex;
        align-items: baseline;
        gap: 16px;
        padding: 16px 0;
        border-left: 0;
    }
    .hero-facts > div + div { border-top: 1px solid var(--line-light); }
    .hero-facts dt { flex: 0 0 auto; min-width: 4.4em; }
    .hero-facts dd { margin-top: 0; }
    .steps { padding-left: 60px; }
    .step-num { left: -60px; width: 40px; height: 40px; font-size: 15px; }
    .steps-track { left: 19px; }
    .requisites-grid { grid-template-columns: 1fr; }
    .contact-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
        animation: none !important;
    }
    [data-reveal],
    .hero-title .line > span,
    .hero-word span,
    .hero-lead, .hero-actions, .hero-facts, .hero-definition,
    .media[data-reveal], .media img, .hero-media img {
        opacity: 1 !important;
        transform: none !important;
        scale: 1 !important;
    }
    .media::after { display: none; }
    .hero-media img { opacity: .5 !important; }
}
