﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap");

:root {
    --bg: #f5f8fa;
    --bg-alt: #eaf1f5;
    --bg-dark: #0f2940;
    --surface: #ffffff;
    --surface-muted: #eef7fa;
    --surface-subtle: #e6f0f5;
    --surface-dark: rgba(255, 255, 255, 0.08);
    --ink: #1a2e3b;
    --ink-strong: #0b1e2b;
    --ink-soft: #556070;
    --ink-on-dark: rgba(255, 255, 255, 0.9);
    --ink-on-dark-soft: rgba(255, 255, 255, 0.7);
    --line: rgba(23, 54, 74, 0.1);
    --line-strong: rgba(23, 54, 74, 0.18);
    --line-dark: rgba(255, 255, 255, 0.16);
    --brand: #167c9b;
    --brand-strong: #0f5872;
    --brand-soft: #d8eef6;
    --accent: #ff9a5d;
    --accent-strong: #d86c33;
    --accent-soft: #ffe4d4;
    --success-bg: #eef8f1;
    --success-border: #c9dfcd;
    --success-ink: #245841;
    --danger-bg: #fff1f1;
    --danger-border: #efc7c7;
    --danger-ink: #9c3737;
    --focus-ring: rgba(22, 124, 155, 0.22);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-sm: 0 4px 16px rgba(12, 39, 54, 0.07);
    --shadow-md: 0 8px 28px rgba(12, 39, 54, 0.11);
    --shadow-lg: 0 16px 48px rgba(10, 31, 43, 0.14);
    --container: 1280px;
    --transition: 0.28s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafcfe 30%, #f5f8fa 60%, #f0f5f9 100%);
    background-attachment: fixed;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.doc-lightbox-open {
    overflow: hidden;
}

body.doc-lightbox-open .site-header,
body.doc-lightbox-open .contact-dock {
    display: none;
}

html:has(body.doc-lightbox-open) {
    overflow: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
dt {
    margin: 0;
}

h1,
h2,
h3,
.brand__name,
.footer-logo {
    font-family: "Merriweather", "Georgia", serif;
    line-height: 1.14;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

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

.icon-symbol {
    width: 1.22rem;
    height: 1.22rem;
    flex: 0 0 auto;
}

.icon-symbol--telegram .icon-bg {
    fill: #2fa8ff;
}

.icon-symbol--telegram .icon-mark {
    fill: var(--surface);
}

.icon-symbol--phone .icon-bg {
    fill: var(--brand);
}

.icon-symbol--phone .icon-mark {
    fill: var(--surface);
}

.icon-symbol--clock .icon-bg {
    fill: #8fd3ed;
}

.icon-symbol--clock .icon-mark {
    fill: var(--bg-dark);
}

.icon-symbol--whatsapp .icon-bg {
    fill: #25d366;
}

.icon-symbol--whatsapp {
    width: 1.28rem;
    height: 1.28rem;
}

.icon-symbol--whatsapp .icon-ring {
    fill: none;
    stroke: var(--surface);
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-symbol--whatsapp .icon-mark {
    fill: var(--surface);
}

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

.site-shell {
    position: relative;
    width: 100%;
    overflow-x: clip;
    isolation: isolate;
    padding-top: var(--header-offset, 86px);
}

.site-shell::before,
.site-shell::after {
    content: none;
}

.site-main {
    position: relative;
    z-index: 1;
}

.body-flow {
    position: relative;
    padding: 0 0 clamp(4rem, 7vw, 6rem);
    isolation: isolate;
    background: linear-gradient(to bottom, transparent 94%, #102637 100%);
}

.body-flow > * {
    position: relative;
    z-index: 1;
}

.body-flow::before,
.body-flow::after {
    content: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-strong) 100%);
    opacity: 0.85;
}

.section {
    position: relative;
    padding: clamp(4.5rem, 7vw, 6.4rem) 0;
    scroll-margin-top: 6rem;
    overflow: hidden;
}

.body-flow .hero {
    padding: clamp(3rem, 6vw, 4.9rem) 0 1rem;
}

.body-flow .section {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.section--alt {
    background: linear-gradient(180deg, #eaf2f8 0%, #eef5fa 50%, #e8f0f6 100%);
}

.section--cta {
    background: linear-gradient(180deg, #f8fbfd 0%, #f6f9fc 50%, #f4f7fb 100%);
}

/* Decorative pseudo-elements enabled for all sections */

/* — Section background system — */

#services {
    background: linear-gradient(180deg, #fafcfe 0%, #f8fafe 50%, #f5f8fb 100%);
}

#process.section--alt {
    background: linear-gradient(180deg, #ecf3f9 0%, #eef5fa 50%, #eaf1f7 100%);
}

#reviews {
    background: linear-gradient(180deg, #fafcfe 0%, #f9fbfe 50%, #f7f9fc 100%);
}

#about.section--alt {
    background: linear-gradient(180deg, #eaf2f8 0%, #edf4f9 50%, #e8f0f6 100%);
}

#documents {
    background: linear-gradient(180deg, #f8fbfd 0%, #f6f9fc 50%, #f4f7fb 100%);
}

#faq.section--alt {
    background: linear-gradient(180deg, #ecf3f9 0%, #eef5fa 50%, #eaf1f7 100%);
}

/* — Soft section dividers via inset box-shadows — */

.body-flow .section + .section,
.body-flow .trust-bar + .section,
.body-flow .inline-cta + .section {
    box-shadow: inset 0 1px 0 0 rgba(22,124,155,0.07),
                inset 0 clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px) calc(-1 * clamp(20px, 3vw, 40px)) rgba(0,0,0,0.018);
}

/* Light-to-alt: tinted top edge + glow */
#process,
#about,
#faq {
    box-shadow: inset 0 1px 0 0 rgba(22,124,155,0.09),
                inset 0 clamp(40px, 6vw, 80px) clamp(50px, 7vw, 100px) calc(-1 * clamp(20px, 3vw, 40px)) rgba(22,124,155,0.04);
}

/* Alt-to-light: soft top edge + glow */
#reviews,
#documents,
#apply {
    box-shadow: inset 0 1px 0 0 rgba(23,54,74,0.06),
                inset 0 clamp(40px, 6vw, 80px) clamp(50px, 7vw, 100px) calc(-1 * clamp(20px, 3vw, 40px)) rgba(0,0,0,0.015);
}

/* — Decorative floating shapes — */

.section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

#services::after {
    width: 380px;
    height: 380px;
    top: -60px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,124,155,0.06) 0%, transparent 70%);
}

#process::after {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,124,155,0.05) 0%, transparent 70%);
}

#reviews::after {
    width: 320px;
    height: 320px;
    top: 40px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,154,93,0.06) 0%, transparent 70%);
}

#about::after {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,124,155,0.05) 0%, transparent 70%);
}

#documents::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,124,155,0.04) 0%, transparent 70%);
}

#faq::after {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,124,155,0.05) 0%, transparent 70%);
}

#apply::after {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,154,93,0.05) 0%, transparent 70%);
}

/* — Subtle geometric accents (CSS shapes) — */

#services::before,
#process::before,
#reviews::before,
#about::before,
#documents::before,
#faq::before,
#apply::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

#services::before {
    width: 200px;
    height: 200px;
    bottom: 30px;
    left: 5%;
    border: 2px solid rgba(22,124,155,0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-15deg);
}

#process::before {
    width: 160px;
    height: 160px;
    top: 60px;
    right: 8%;
    border: 2px solid rgba(22,124,155,0.06);
    border-radius: 50%;
    transform: rotate(20deg);
}

#reviews::before {
    width: 180px;
    height: 180px;
    bottom: 40px;
    right: 6%;
    border: 2px solid rgba(255,154,93,0.08);
    border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
    transform: rotate(10deg);
}

#about::before {
    width: 220px;
    height: 220px;
    bottom: 20px;
    left: 4%;
    border: 2px solid rgba(22,124,155,0.06);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    transform: rotate(-25deg);
}

#documents::before {
    width: 150px;
    height: 150px;
    top: 50px;
    left: 10%;
    border: 2px solid rgba(22,124,155,0.05);
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    transform: rotate(35deg);
}

#faq::before {
    width: 190px;
    height: 190px;
    top: 40px;
    right: 5%;
    border: 2px solid rgba(22,124,155,0.06);
    border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%;
    transform: rotate(-10deg);
}

#apply::before {
    width: 240px;
    height: 240px;
    bottom: 40px;
    left: 3%;
    border: 2px solid rgba(255,154,93,0.07);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    transform: rotate(15deg);
}

.section-panel {
    position: relative;
    overflow: hidden;
}

.section-panel > * {
    position: relative;
    z-index: 1;
}

.section-head {
    max-width: 760px;
    margin-bottom: 2.35rem;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
    display: grid;
    justify-items: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
}

.section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.section-head h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.1rem, 2.8vw + 1rem, 3.5rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-head p:not(.section-kicker) {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 60ch;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(22, 124, 155, 0.12);
    background: linear-gradient(135deg, #f0f9fc 0%, #ffffff 50%, #eef6fb 100%);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header--scrolled {
    background: linear-gradient(135deg, rgba(240, 249, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(238, 246, 251, 0.95) 100%);
    border-color: rgba(22, 124, 155, 0.15);
    box-shadow: 0 16px 38px rgba(12, 39, 54, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    max-width: 100%;
}

.brand__mark {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.brand__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.brand__body {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.brand__name {
    font-size: 1.18rem;
    color: var(--ink-strong);
}

.brand__tag {
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.35;
    max-width: 24ch;
}

.menu-toggle {
    height: 44px;
    padding: 0 0.9rem 0 0.75rem;
    border: 1px solid rgba(22, 124, 155, 0.15);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 251, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.08);
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.menu-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    width: 18px;
}

.menu-toggle__bars span {
    display: block;
    height: 2px;
    background: var(--brand-strong);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center center;
}

.menu-toggle__bars span:nth-child(1) { width: 18px; }
.menu-toggle__bars span:nth-child(2) { width: 13px; }
.menu-toggle__bars span:nth-child(3) { width: 18px; }

.menu-toggle__label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-strong);
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease;
}

body.menu-open .menu-toggle {
    padding: 0 0.6rem;
    gap: 0;
    background: linear-gradient(135deg, rgba(22, 124, 155, 0.08), rgba(22, 124, 155, 0.04));
    border-color: rgba(22, 124, 155, 0.25);
}

body.menu-open .menu-toggle__bars {
    width: 15px;
}

body.menu-open .menu-toggle__bars span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
    width: 15px;
}

body.menu-open .menu-toggle__bars span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open .menu-toggle__bars span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
    width: 15px;
}

body.menu-open .menu-toggle__label {
    display: none;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 124, 155, 0.25);
    box-shadow: 0 4px 16px rgba(12, 39, 54, 0.12);
}

.site-nav {
    position: fixed;
    top: var(--header-offset, 86px);
    left: 0;
    right: 0;
    transform: translateY(-140%);
    transition: transform var(--transition);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 54, 74, 0.08);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
    border-radius: 0 0 24px 24px;
}

body.menu-open .site-nav {
    transform: translateY(0);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 0.88rem;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    color: var(--ink);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
    border-color: rgba(22, 124, 155, 0.18);
    background: rgba(22, 124, 155, 0.09);
    color: var(--brand-strong);
}

.nav-contacts {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.6rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(23, 54, 74, 0.1);
}

.nav-contacts__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.88rem;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(22, 124, 155, 0.2);
    background: rgba(22, 124, 155, 0.06);
    font-weight: 800;
    color: var(--brand-strong);
    font-size: 1.05rem;
    transition: background var(--transition), border-color var(--transition);
}

.nav-contacts__phone:hover {
    background: rgba(22, 124, 155, 0.12);
    border-color: rgba(22, 124, 155, 0.3);
}

.nav-contacts__phone-icon {
    flex-shrink: 0;
    color: var(--brand);
}

.nav-contacts__hours {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.88rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.header-contacts {
    display: none;
}

.header-hours-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.header-hours-icon {
    flex-shrink: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid rgba(22, 124, 155, 0.2);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 800;
    color: var(--ink-strong);
    font-size: 0.9rem;
    transition: border-color var(--transition), background var(--transition);
}

.header-phone:hover {
    border-color: rgba(22, 124, 155, 0.4);
    background: #eef6fb;
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.94rem 1.32rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

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

.btn--primary {
    color: var(--surface);
    background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 58%, #4dc0d6 100%);
    box-shadow: 0 18px 34px rgba(16, 76, 102, 0.2);
}

.btn--soft {
    color: var(--brand-strong);
    border-color: rgba(22, 124, 155, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(12, 39, 54, 0.05);
}

.btn--full {
    width: 100%;
}

.hero {
    position: relative;
    padding: clamp(3.2rem, 7vw, 5.2rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    background-color: #e8f1f7;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-bg, none) no-repeat center / cover;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(105deg, #e8f1f7 35%, rgba(232,241,247,0.82) 48%, rgba(232,241,247,0.35) 62%, transparent 76%),
        linear-gradient(to bottom, rgba(232,241,247,0.6) 0%, transparent 30%, transparent 75%, rgba(245,248,250,0.7) 100%);
}

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

.hero-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(1.35rem, 2.8vw, 2.25rem);
    min-height: clamp(400px, 55vh, 600px);
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero-shell::before,
.hero-shell::after {
    content: none;
}

.hero-shell > * {
    min-width: 0;
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    max-width: 50rem;
}


.hero-kicker__coat {
    width: 20px;
    height: 25px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.hero-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 124, 155, 0.18);
    background: rgba(22, 124, 155, 0.07);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-strong);
}

.hero-kicker::before {
    content: none;
}


.hero h1 {
    margin-top: 0.95rem;
    max-width: 16ch;
    font-size: clamp(2.8rem, 4.4vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: var(--ink-strong);
    text-wrap: balance;
}

.hero-text {
    margin-top: 1rem;
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 0.88vw + 0.92rem, 1.1rem);
}

.hero-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.hero .btn--primary {
    min-height: 56px;
    padding-inline: 1.4rem;
    background: linear-gradient(135deg, #1480a2 0%, #40c2e0 100%);
    box-shadow: 0 20px 42px rgba(6, 25, 35, 0.28);
    animation: hero-pulse 3s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { box-shadow: 0 20px 42px rgba(6, 25, 35, 0.28); }
    50% { box-shadow: 0 20px 52px rgba(20, 128, 162, 0.35); }
}



.service-grid > *,
.documents-grid > *,
.process-steps > *,
.faq-list > *,
.about-grid > *,
.documents-shell > *,
.apply-grid > * {
    min-width: 0;
}

.about-grid,
.documents-shell,
.apply-grid {
    display: grid;
    gap: 1.4rem;
    align-items: start;
}

.about-lead {
    font-size: 1.14rem;
    font-weight: 600;
    color: var(--ink-strong);
}

.about-copy p + p {
    margin-top: 1rem;
    color: var(--ink-soft);
}

.about-highlights {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.85rem;
    grid-auto-rows: 1fr;
}

.about-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1.05rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(23, 54, 74, 0.09);
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 124, 155, 0.16);
}

.about-highlight__num {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand-strong);
    background: rgba(22, 124, 155, 0.12);
    border: 1px solid rgba(22, 124, 155, 0.12);
}

.service-grid {
    display: grid;
    gap: 1.15rem;
    grid-auto-rows: 1fr;
}

.service-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(23, 54, 74, 0.09);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(12, 39, 54, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
    content: none;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 54px rgba(12, 39, 54, 0.12);
    border-color: rgba(22, 124, 155, 0.14);
}

.service-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #d8eef6 0%, #eef8fb 100%);
}

.service-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 28%, rgba(7, 18, 24, 0.14) 100%),
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.2), transparent 18%);
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease, filter 0.65s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.04);
    filter: saturate(1.03);
}

.service-card__body {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.2rem 1.2rem 1.25rem;
}

.service-card__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.service-card h3 {
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 3rem;
    font-size: 1.18rem;
    line-height: 1.24;
}

.service-card__icon {
    width: auto;
    height: 3.15rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
    min-width: 3.35rem;
    opacity: 0.92;
    filter: drop-shadow(0 12px 16px rgba(12, 39, 54, 0.08));
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-card__icon img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.service-card:hover .service-card__icon {
    transform: translateX(1px) translateY(-1px);
    opacity: 1;
}

.service-card p {
    margin: 0;
    color: var(--ink-soft);
}

.service-card__footer {
    margin-top: auto;
    display: grid;
    gap: 0.7rem;
}

.service-card__footer::before {
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(22, 124, 155, 0.12), transparent 92%);
}

.service-card__footer .btn {
    width: 100%;
}

.service-price {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--accent-strong) !important;
}

.documents-copy h2 {
    font-size: clamp(2rem, 2.5vw + 1rem, 3.1rem);
    text-wrap: balance;
}

.documents-points {
    list-style: none;
    margin-top: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

.documents-points li {
    position: relative;
    padding-left: 1.2rem;
}

.documents-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.documents-grid {
    display: grid;
    gap: 1rem;
}

.document-group {
    height: 100%;
    display: grid;
    align-content: start;
    padding: 1.3rem;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid rgba(23, 54, 74, 0.09);
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.document-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(22, 124, 155, 0.14);
}

.document-group__text {
    margin-top: 0.55rem;
    color: var(--ink-soft);
}

.document-thumbs {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.document-thumbs a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(23, 54, 74, 0.08);
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(12, 39, 54, 0.08);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.document-thumbs a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(12, 39, 54, 0.14);
    border-color: rgba(22, 124, 155, 0.2);
}

.document-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #f8fcfe;
}

.process-steps {
    list-style: none;
    display: grid;
    gap: 1rem;
    grid-auto-rows: 1fr;
}

.process-step {
    position: relative;
    height: 100%;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1.25rem 1.05rem 1.2rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(23, 54, 74, 0.09);
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.05);
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 124, 155, 0.16);
}

.process-step__num {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 154, 93, 0.16);
    color: var(--accent-strong);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.process-step h3 {
    font-size: 1.14rem;
}

.process-step p {
    color: var(--ink-soft);
    max-width: none;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
    align-items: start;
}

.faq-item {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(23, 54, 74, 0.09);
    overflow: clip;
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    align-self: start;
}

.faq-item:hover,
.faq-item.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(22, 124, 155, 0.16);
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1.1rem 1.2rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
}

.faq-question span {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    color: var(--brand-strong);
    background: rgba(22, 124, 155, 0.12);
    transition: transform var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    padding: 0 1.15rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.15rem 1.1rem;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer p {
    color: var(--ink-soft);
}

.apply-copy h2 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem);
    text-wrap: balance;
}

.apply-copy p {
    margin-top: 0.95rem;
    color: var(--ink-soft);
}

.apply-benefits {
    list-style: none;
    margin-top: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.apply-benefits li {
    position: relative;
    padding-left: 1.2rem;
}

.apply-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.lead-form {
    padding: 1.45rem;
    border-radius: 16px;
    background: #eef5fa;
    border: 1px solid #d0e3ef;
    box-shadow: 0 8px 32px rgba(12, 39, 54, 0.12);
    display: grid;
    gap: 0.95rem;
}

.lead-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.lead-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}

@media (max-width: 480px) {
    .lead-form__row {
        grid-template-columns: 1fr;
    }
}

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

.lead-form__label--phone {
    gap: 0.45rem;
}

.lead-form__phone-box {
    position: relative;
}

.lead-form__phone-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(22, 124, 155, 0.1);
    color: var(--brand-strong);
    transform: translateY(-50%);
    pointer-events: none;
}

.lead-form__phone-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
    width: 100%;
    border: 1px solid rgba(23, 54, 74, 0.14);
    border-radius: 16px;
    padding: 0.84rem 0.95rem;
    color: var(--ink);
    background: rgba(249, 253, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.lead-form__phone-box input {
    padding-left: 3.55rem;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
    outline: none;
    border-color: rgba(22, 124, 155, 0.44);
    box-shadow: 0 0 0 4px rgba(22, 124, 155, 0.11);
}

.form-message {
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-ink);
}

.form-caption {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.form-caption a {
    color: var(--accent-strong);
    text-decoration: underline;
}

.lead-form-success {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.4rem;
    border-radius: 28px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    box-shadow: var(--shadow-md);
}

.lead-form-success p {
    color: var(--success-ink);
    font-weight: 800;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}


.contact-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 130;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(23, 54, 74, 0.1);
    box-shadow: 0 -4px 20px rgba(12, 39, 54, 0.1);
    --dock-action-size: 46px;
    --dock-action-radius: 14px;
}

.contact-dock__action {
    width: var(--dock-action-size);
    height: var(--dock-action-size);
    padding: 0;
    border: 0;
    border-radius: var(--dock-action-radius);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
    transition: transform var(--transition);
}

.contact-dock__action .icon-symbol {
    width: 100%;
    height: 100%;
}

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

.contact-dock__action--call {
    width: var(--dock-action-size);
    height: var(--dock-action-size);
    border-radius: var(--dock-action-radius);
}


/* ── Лайтбокс просмотра документов ── */
.doc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-lightbox[hidden] {
    display: none;
}

.doc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.75);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: fade-in 0.2s ease;
}

.doc-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.doc-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.65);
}

.doc-lightbox__close svg {
    width: 22px;
    height: 22px;
}

.doc-lightbox__counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    pointer-events: none;
}

.doc-lightbox__viewport {
    position: relative;
    z-index: 2;
    width: calc(100vw - 120px);
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 48px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.doc-lightbox__viewport.is-dragging,
.doc-lightbox__viewport.is-dragging img {
    cursor: grabbing !important;
}

.doc-lightbox__viewport img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.doc-lightbox__viewport.is-zoomed img {
    cursor: zoom-out;
}

.doc-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.doc-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.06);
}

.doc-lightbox__nav svg {
    width: 22px;
    height: 22px;
}

.doc-lightbox__nav--prev {
    left: 12px;
}

.doc-lightbox__nav--next {
    right: 12px;
}

.doc-lightbox__nav[hidden] {
    display: none;
}

.site-footer {
    color: var(--ink-on-dark);
    background: linear-gradient(180deg, #102637 0%, #0a1822 100%);
    --footer-inner-width: 1020px;
}

.footer-head,
.footer-grid,
.footer-bottom {
    max-width: var(--footer-inner-width);
    margin-inline: auto;
}

.footer-head {
    padding: 2.9rem 0 1.35rem;
    display: flex;
    justify-content: center;
}

.footer-grid {
    padding: 0 0 1.7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.95rem;
    align-items: stretch;
}

.footer-grid > * {
    min-width: 0;
}

.footer-card {
    flex: 1 1 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 0.72rem;
    padding: 1.02rem 0.96rem;
    border-radius: 18px;
    background: #152d40;
    border: 1px solid #1c3a50;
    box-shadow: 0 10px 24px rgba(5, 16, 24, 0.15);
}

.footer-brand {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
    color: var(--ink-on-dark);
    width: fit-content;
}

.footer-brand__logo {
    width: 112px;
    height: 112px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer-logo {
    display: block;
    color: var(--surface);
    font-size: 2rem;
    line-height: 1.1;
    min-width: 0;
    max-width: 12ch;
    overflow-wrap: anywhere;
}

.footer-title {
    display: flex;
    align-items: center;
    min-height: 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--surface);
    margin-bottom: 0;
}

.footer-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.footer-card__head--contacts {
    align-items: flex-start;
}

.footer-hours-badge {
    margin: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    min-height: 1.95rem;
    padding: 0.32rem 0.62rem 0.32rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #1e4a62;
    background: #162f42;
    color: var(--surface);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.footer-hours-badge__icon {
    width: 1.28rem;
    height: 1.28rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-hours-badge__icon .icon-symbol {
    width: 100%;
    height: 100%;
}

.footer-links a,
.footer-bottom__link {
    color: var(--ink-on-dark);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-links a:hover,
.footer-bottom__link:hover {
    color: #8fd3ed;
}

.footer-links,
.footer-stack {
    display: grid;
    gap: 0.62rem;
    align-content: start;
    grid-auto-rows: minmax(54px, max-content);
}

.footer-links a,
.footer-item,
.footer-meta,
.footer-social {
    min-height: 54px;
    height: 100%;
    border-radius: 14px;
    border: 1px solid #1a3548;
    background: #132a3b;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0.72rem 0.82rem;
    font-weight: 700;
}

.footer-item,
.footer-meta {
    display: grid;
    align-content: center;
    gap: 0.18rem;
    padding: 0.72rem 0.82rem;
}

.footer-item {
    color: var(--ink-on-dark);
}

.footer-item--phone {
    background: #172f43;
    border-color: #1d4a60;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-item--phone:hover {
    transform: translateY(-1px);
    border-color: #2a6480;
    background: #1c3850;
    color: var(--surface);
}

.footer-item__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-on-dark-soft);
}



.footer-note {
    color: var(--ink-on-dark-soft);
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
}

.footer-note--strong {
    color: var(--surface);
    font-weight: 700;
}

.footer-stack--meta {
    gap: 0.5rem;
    grid-auto-rows: auto;
}

.footer-stack--meta .footer-meta {
    min-height: 0;
    height: auto;
    align-content: start;
    gap: 0.22rem;
    padding: 0.08rem 0 0.6rem;
    border: 0;
    border-bottom: 1px solid #1c3749;
    border-radius: 0;
    background: transparent;
}

.footer-stack--meta .footer-meta:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.footer-social {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    width: 100%;
    padding: 0.72rem 0.82rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-social:hover {
    transform: translateY(-1px);
    border-color: #26607a;
    background: #162f42;
    color: var(--surface);
}

.footer-social__icon {
    width: 1.95rem;
    height: 1.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-social__icon .icon-symbol {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    padding: 1.05rem 0 1.45rem;
    border-top: 1px solid #1e3a4f;
    display: grid;
    gap: 0.6rem 1rem;
    grid-template-columns: minmax(0, 1fr);
    color: var(--ink-on-dark-soft);
    font-size: 0.88rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom__link {
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.thanks-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top, rgba(255, 154, 93, 0.16), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(22, 124, 155, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fcfe 0%, #edf5f8 100%);
}

.thanks-card {
    width: min(760px, 100%);
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 250, 0.9));
    border: 1px solid rgba(23, 54, 74, 0.08);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.thanks-card h1 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 2.8vw + 1rem, 3rem);
}

.thanks-card p {
    margin-top: 0.9rem;
    color: var(--ink-soft);
}

.thanks-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.error-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top, rgba(22, 124, 155, 0.1), transparent 26%),
        linear-gradient(180deg, #f8fcfe 0%, #edf5f8 100%);
}

.error-page__inner {
    width: min(480px, 100%);
    text-align: center;
}

.error-page__code {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.error-page__inner h1 {
    margin-top: 0.5rem;
    font-size: clamp(1.4rem, 2vw + 1rem, 1.8rem);
}

.error-page__inner p {
    margin-top: 0.75rem;
    color: var(--ink-soft);
}

.error-page__inner .btn {
    margin-top: 1.4rem;
}

.legal-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 154, 93, 0.1), transparent 20%),
        linear-gradient(180deg, #f8fcfe 0%, #edf5f8 100%);
}

.legal-hero {
    padding: clamp(3.8rem, 8vw, 5.6rem) 0 1rem;
}

.legal-hero__inner {
    max-width: 860px;
    padding: clamp(1.5rem, 2vw, 2.1rem);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 250, 0.9));
    border: 1px solid rgba(23, 54, 74, 0.08);
    box-shadow: var(--shadow-lg);
}

.legal-hero__inner h1 {
    margin-top: 0.9rem;
    font-size: clamp(2rem, 3vw + 1rem, 3.8rem);
}

.legal-hero__inner p {
    margin-top: 0.9rem;
    color: var(--ink-soft);
}

.legal-updated {
    font-weight: 700;
    color: var(--accent-strong) !important;
}

.legal-layout {
    display: grid;
    gap: 1rem;
    grid-auto-rows: 1fr;
}

.legal-card {
    height: 100%;
    padding: 1.3rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 250, 0.9));
    border: 1px solid rgba(23, 54, 74, 0.08);
    box-shadow: var(--shadow-sm);
}

.legal-card h2 {
    font-size: 1.3rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
    margin-top: 0.75rem;
}

.legal-list {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible,
.reveal--hero {
    opacity: 1;
    transform: translateY(0);
}

.reveal--hero {
    animation: hero-fade 0.5s ease;
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.contact-dock__action:focus-visible,
.footer-brand:focus-visible,
.footer-links a:focus-visible,
.footer-item:focus-visible,
.footer-social:focus-visible,
.footer-bottom__link:focus-visible,
.document-thumbs a:focus-visible,
.faq-question:focus-visible,
.lead-form input:focus-visible,
.lead-form textarea:focus-visible,
.lead-form select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

@keyframes hero-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 760px) {
    .legal-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-card {
        flex: 1 1 300px;
        max-width: 336px;
    }

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

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

    .process-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .site-header .container {
        width: min(1360px, calc(100% - 1.25rem));
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 0 0.8rem;
        align-items: center;
        padding: 1.1rem 0;
    }

    .brand {
        justify-self: start;
        max-width: none;
        align-self: center;
        grid-row: 1;
    }

    .brand__mark {
        width: 44px;
        height: 44px;
    }

    .brand__name {
        font-size: 1.14rem;
        white-space: nowrap;
    }

    .brand__tag {
        max-width: 22ch;
        font-size: 0.76rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        transform: none;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        display: flex;
        flex-wrap: nowrap;
        grid-column: 2;
        justify-self: center;
        justify-content: center;
        align-items: center;
        gap: 0.15rem;
        width: auto;
        margin: 0;
        border-radius: 0;
    }

    .contact-dock {
        position: fixed;
        right: clamp(0.85rem, 1.8vw, 1.6rem);
        bottom: clamp(0.85rem, 1.8vw, 1.6rem);
        left: auto;
        z-index: 130;
        display: grid;
        gap: clamp(0.45rem, 0.85vw, 0.72rem);
        justify-items: end;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: none;
        box-shadow: none;
        --dock-action-size: clamp(50px, 3.7vw, 60px);
        --dock-action-radius: clamp(16px, 1.15vw, 20px);
    }

    .contact-dock__action--call {
        display: none;
    }

    .site-nav a {
        min-height: 38px;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
        border-radius: 999px;
    }

    .nav-contacts {
        display: none;
    }

    .header-contacts {
        display: inline-flex;
        flex-direction: column;
        grid-column: 3;
        justify-self: end;
        align-self: center;
        align-items: center;
        gap: 0;
        white-space: nowrap;
        position: relative;
    }

    .header-contacts .header-hours-text {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0.15rem;
    }

    .header-phone {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .hero-shell {
        gap: 1.4rem;
        align-items: stretch;
    }

    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .section-head {
        margin-bottom: 2rem;
    }

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

    .documents-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .document-group--contract .document-thumbs,
    .document-group--accreditation .document-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 26px;
        right: -0.75rem;
        width: 0.95rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(22, 124, 155, 0.36), rgba(255, 154, 93, 0.28));
    }

    .footer-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .footer-bottom__link {
        justify-self: end;
        text-align: right;
    }

    .footer-card {
        max-width: none;
    }

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

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

@media (min-width: 980px) and (max-width: 1199px) {
    .site-header .container {
        width: min(1360px, calc(100% - 0.75rem));
    }

    .header-inner {
        grid-template-columns: minmax(210px, 1fr) auto;
        gap: 0.75rem;
    }

    .brand__mark {
        width: 54px;
        height: 54px;
    }

    .brand__tag {
        display: none;
    }

    .site-nav {
        gap: 0.12rem;
    }

    .site-nav a {
        padding: 0.56rem 0.58rem;
        font-size: 0.82rem;
    }

    .header-contacts {
        gap: 0.35rem;
    }

    .header-phone {
        padding: 0 0.82rem;
        font-size: 0.84rem;
    }
}

@media (min-width: 980px) and (max-width: 1059px) {
    .site-header .container {
        width: calc(100% - 0.75rem);
    }

    .header-inner {
        grid-template-columns: minmax(180px, 1fr) auto;
        gap: 0.55rem;
    }

    .brand__name {
        font-size: 1.02rem;
    }

    .site-nav a {
        padding: 0.52rem 0.48rem;
        font-size: 0.8rem;
    }

    .header-phone {
        padding: 0 0.72rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 979px) {
    .header-phone {
        display: none;
    }


}

@media (max-width: 759px) {
    .service-card__icon {
        height: 1.35rem;
        min-width: 2.15rem;
    }

    .body-flow {
        padding-bottom: 5rem;
    }

    .body-flow .section {
        padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    }

    /* Decorative shapes subtler on mobile */
    .section::after {
        opacity: 0.2;
        transform: scale(0.5);
    }

    .section::before {
        opacity: 0.15;
        transform: scale(0.5);
    }

    #services::before { transform: scale(0.5) rotate(-15deg); }
    #process::before { transform: scale(0.5) rotate(20deg); }
    #reviews::before { transform: scale(0.5) rotate(10deg); }
    #about::before { transform: scale(0.5) rotate(-25deg); }
    #documents::before { transform: scale(0.5) rotate(35deg); }
    #faq::before { transform: scale(0.5) rotate(-10deg); }
    #apply::before { transform: scale(0.5) rotate(15deg); }

    .hero {
        padding-top: 3rem;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(232,241,247,0.8) 0%, rgba(232,241,247,0.55) 40%, rgba(232,241,247,0.55) 65%, rgba(245,248,250,0.8) 100%);
    }

    .hero-shell {
        padding: 1.15rem;
        border-radius: 16px;
        min-height: auto;
        overflow: visible;
    }

    .hero-copy {
        padding: clamp(1.2rem, 2.5vw, 2rem);
        border-radius: 20px;
        background: rgba(232, 241, 247, 0.65);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        backdrop-filter: blur(16px) saturate(1.2);
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 8px 32px rgba(12, 39, 54, 0.06);
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-text {
        color: var(--ink);
    }

    .section {
        scroll-margin-top: calc(var(--header-offset, 86px) + 16px);
    }

    .hero-topline {
        align-items: flex-start;
    }

    .hero-actions .btn,
    .thanks-actions .btn {
        width: 100%;
    }

    .brand__mark {
        width: 54px;
        height: 54px;
    }

    .brand__tag {
        max-width: 24ch;
    }

    .footer-brand {
        gap: 1rem;
    }

    .footer-brand__logo {
        width: 88px;
        height: 88px;
    }

    .footer-logo {
        font-size: 1.55rem;
    }

    .document-thumbs {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.4rem;
    }

    .document-thumbs a {
        flex: 0 0 100px;
        scroll-snap-align: start;
        aspect-ratio: 3 / 4;
    }

    .document-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        aspect-ratio: auto;
    }

    .doc-lightbox__viewport {
        width: calc(100vw - 20px);
        height: 100dvh;
        margin-top: 0;
        padding: 0;
        align-items: center;
    }

    .doc-lightbox__viewport img {
        max-height: calc(100dvh - 80px);
        width: auto;
        object-fit: contain;
    }

    .doc-lightbox__nav {
        width: 36px;
        height: 36px;
    }

    .doc-lightbox__nav svg {
        width: 16px;
        height: 16px;
    }

    .doc-lightbox__nav--prev {
        left: 4px;
    }

    .doc-lightbox__nav--next {
        right: 4px;
    }

    .doc-lightbox__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .doc-lightbox__counter {
        top: 18px;
    }
}

@media (max-width: 479px) {
    .container {
        width: min(var(--container), calc(100% - 1.5rem));
    }

    .footer-hours-badge {
        margin-left: 0;
    }

    .header-inner {
        gap: 0.6rem;
    }

    .brand {
        gap: 0.65rem;
    }

    .brand__mark {
        width: 48px;
        height: 48px;
    }

    .brand__name {
        font-size: 1rem;
    }

    .brand__tag {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal--hero,
    .service-card,
    .btn,
    .hero .btn--primary,
    .site-nav,
    .faq-question span,
    .document-thumbs a,
    .scroll-progress {
        transition: none !important;
        animation: none !important;
    }

    .service-card:hover,
    .btn:hover,
    .document-thumbs a:hover {
        transform: none;
    }
}

/* ============================================================
   Trust Bar
   ============================================================ */

.trust-bar {
    position: relative;
    background: linear-gradient(135deg, #17364a 0%, #1a4d6b 100%);
    padding: 1.1rem 0;
}


.trust-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2rem;
    align-items: center;
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    color: rgba(255, 255, 255, 0.75);
}

.trust-bar__item strong {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.trust-bar__item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

@media (max-width: 759px) {
    .trust-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .trust-bar__item {
        padding: 0.6rem 0.4rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .trust-bar__item strong {
        font-size: 0.95rem;
    }
}

@media (max-width: 479px) {
    .trust-bar__inner {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Inline CTA
   ============================================================ */

.inline-cta {
    position: relative;
    background: linear-gradient(135deg, #0a4a5f 0%, var(--brand-strong) 50%, #0d6a8a 100%);
    padding: clamp(1.5rem, 3vw, 2.2rem) 0;
    box-shadow: 0 4px 20px rgba(10,31,43,0.15);
}


.inline-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.inline-cta__text {
    font-size: clamp(1rem, 1.4vw + 0.7rem, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    max-width: 52ch;
    margin: 0;
}

.inline-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    flex-shrink: 0;
}

.inline-cta__actions .btn--primary {
    background: #ffffff;
    color: var(--brand-strong);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.inline-cta__actions .btn--primary:hover {
    background: #f0f8fc;
}

.inline-cta__actions .btn--ghost {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.inline-cta__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 759px) {
    .inline-cta__inner {
        justify-content: flex-start;
    }

    .inline-cta__actions {
        width: 100%;
    }

    .inline-cta__actions .btn {
        flex: 1 1 auto;
    }
}

/* ============================================================
   Reviews
   ============================================================ */

.reviews-grid {
    display: grid;
    gap: 1rem;
    grid-auto-rows: 1fr;
}

.avito-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(23, 54, 74, 0.12);
    box-shadow: 0 2px 8px rgba(12, 39, 54, 0.06);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.avito-badge:hover {
    box-shadow: 0 4px 16px rgba(12, 39, 54, 0.1);
    border-color: rgba(22, 124, 155, 0.2);
}

.avito-badge__logo {
    background: #00aaff;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.avito-badge__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
    color: var(--ink-strong);
}

.avito-badge__star {
    width: 1rem;
    height: 1rem;
    fill: #ffc107;
}

.avito-badge__count {
    color: var(--ink-soft);
    font-weight: 500;
}

.review-card {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1.3rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(23, 54, 74, 0.09);
    box-shadow: 0 2px 10px rgba(12, 39, 54, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 39, 54, 0.09);
    border-color: rgba(22, 124, 155, 0.14);
}

.review-stars {
    display: flex;
    gap: 0.18rem;
    color: #f59e0b;
}

.review-stars svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.review-card__text {
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
}

.review-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(23, 54, 74, 0.07);
    margin-top: auto;
}

.review-card__footer strong {
    font-size: 0.92rem;
    color: var(--ink-strong);
}

.review-card__footer time {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

@media (min-width: 760px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ============================================================
   Guarantee block (inside About section)
   ============================================================ */

.about-guarantee {
    margin-top: 1.4rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border-left: 3px solid var(--brand);
    background: #eef6fb;
    border: 1px solid rgba(22, 124, 155, 0.16);
    border-left-width: 3px;
}

.about-guarantee h3 {
    font-size: 1rem;
    color: var(--brand-strong);
    margin-bottom: 0.45rem;
}

.about-guarantee p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.96rem;
}

/* ============================================================
   Form extra details toggle
   ============================================================ */


.form-or-phone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0;
}

.form-or-phone__line {
    flex: 1;
    height: 1px;
    background: rgba(23, 54, 74, 0.1);
}

.form-or-phone__text {
    font-size: 0.82rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.form-phone-alt {
    display: block;
    text-align: center;
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--brand-strong);
    padding: 0.5rem;
}

.form-phone-alt:hover {
    color: var(--brand);
}
