@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600&display=swap');

:root {
    --black: #102746;
    --dark: #102746;
    --dark-soft: #17365d;

    --white: #ffffff;
    --white-soft: #d5dbe3;

    --gold: #c9a24d;
    --gold-light: #c9a24d;

    --border: rgba(255, 255, 255, 0.12);

    --navy: #102746;
    --navy2: #17365d;
    --gold-brand: #c9a24d;
    --ink: #14243d;
    --muted: #667085;
    --line: #e7e9ed;
    --cream: #f7f5ef;

    --container: 1240px;
}

.contact-form .personal-data-notice {
    margin: 20px 0 0;
    color: rgba(225, 233, 243, .68);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: 0;
    text-transform: none;
}

.contact-form .personal-data-notice a { color: var(--gold); text-decoration: none; }
.contact-form .personal-data-notice a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer .footer-legal-links {
    min-width: 0;
    max-width: 330px;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .footer .footer-legal-links {
        width: 100%;
        max-width: none;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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


/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 150px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-size: 13px;
    letter-spacing: 2px;
}

.logo-text small {
    margin-top: 5px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 4px;
}

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

.nav a {
    color: var(--white-soft);
    font-size: 13px;
    transition: color .3s ease;
}

.nav a:hover {
    color: var(--gold);
}

.header-contact {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-contact span {
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-contact a {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 600;
}

.menu-button {
    display: none;
    background: none;
    border: 0;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 850px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(201,162,77,0.12),
            transparent 32%
        ),
        var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(
            90deg,
            rgba(11,11,12,1) 0%,
            rgba(11,11,12,.92) 42%,
            rgba(11,11,12,.45) 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            rgba(255,255,255,.025) 120px
        );
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 80px;
    padding-top: 100px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow span {
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    max-width: 760px;
    margin-top: 28px;
    font-size: clamp(52px, 6vw, 86px);
    line-height: .98;
    letter-spacing: -4px;
    font-weight: 700;
}

.hero h1 span,
.section-heading h2 span,
.about-content h2 span,
.contacts h2 span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.hero-description {
    max-width: 570px;
    margin-top: 32px;
    color: #aaa8a2;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.button {
    min-height: 56px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .3s ease;
}

.button-primary {
    background: var(--gold);
    color: #111;
}

.button-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: rgba(255,255,255,.2);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: #777;
    font-size: 11px;
}

.note-icon {
    color: var(--gold);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    min-height: 560px;
}

.hero-card {
    position: absolute;
    width: 380px;
    height: 500px;
    right: 70px;
    top: 30px;
    padding: 32px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.015)
        );
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 40px 100px rgba(0,0,0,.45);
    backdrop-filter: blur(15px);
    transform: rotate(5deg);
}

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.card-line {
    width: 55px;
    height: 1px;
    margin-top: 32px;
    background: var(--gold);
}

.hero-card h3 {
    margin-top: 150px;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 500;
}

.hero-card p {
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

.card-bottom {
    position: absolute;
    bottom: 30px;
    left: 32px;
    right: 32px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    background: rgba(25,25,26,.9);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
}

.floating-card-top {
    top: 60px;
    left: 5px;
}

.floating-card-bottom {
    right: 0;
    bottom: 60px;
}

.floating-icon {
    color: var(--gold);
    font-size: 22px;
}

.floating-card strong {
    display: block;
    font-size: 12px;
}

.floating-card small,
.floating-card-bottom span {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 9px;
}

.floating-card-bottom strong {
    color: var(--gold);
    font-size: 30px;
}


/* =========================
   SCROLL
========================= */

.hero-scroll {
    position: absolute;
    z-index: 3;
    bottom: 35px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-scroll span {
    color: #555;
    font-size: 8px;
    letter-spacing: 3px;
}

.hero-scroll i {
    width: 1px;
    height: 35px;
    background: linear-gradient(
        to bottom,
        var(--gold),
        transparent
    );
}


/* =========================
   TRUST
========================= */

.trust {
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    min-height: 120px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid var(--border);
}

.trust-item:first-child {
    border-left: 1px solid var(--border);
}

.trust-item strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 500;
}

.trust-item span {
    color: #888;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 150px 0;
    background: var(--white);
    color: var(--black);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 65px;
}

.section-heading h2 {
    margin-top: 20px;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading > p {
    max-width: 350px;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 310px;

    border-top: 1px solid #d7d4ce;
    border-left: 1px solid #d7d4ce;

    position: relative;
}

.services-grid > .mobile-legal-docs,
.services-grid > .mobile-document {
    position: absolute !important;
    display: none;
}

.service-card {
    position: relative;
    min-width: 0;
    min-height: 310px;
    padding: 35px;

    border-right: 1px solid #d7d4ce;
    border-bottom: 1px solid #d7d4ce;

    transition: background .3s ease;
    box-sizing: border-box;
}

.service-card:hover {
    background: #ebe8e1;
}

.service-large {
    min-height: 310px;
}

.service-number {
    position: absolute;
    top: 28px;
    right: 30px;
    color: #aaa;
    font-size: 10px;
}

.service-icon {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 38px;
}

.service-card h3 {
    margin-top: 70px;
    font-size: 22px;
}

.service-large h3 {
    font-size: 34px;
}

.service-card p {
    max-width: 350px;
    margin-top: 15px;
    color: #777;
    font-size: 12px;
    line-height: 1.8;
}

.service-card a {
    position: absolute;
    bottom: 30px;
    color: #222;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 160px 0;
    background: var(--navy);
}

.about-grid {
    display: grid;
    grid-template-columns: .5fr 1.5fr;
    gap: 80px;
}

.about-label {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
}

.about-line {
    width: 50px;
    height: 1px;
    margin-top: 25px;
    background: var(--gold);
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-size: clamp(45px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
}

.about-content p {
    max-width: 650px;
    margin-top: 30px;
    color: #999;
    font-size: 15px;
    line-height: 1.9;
}

.text-link {
    display: inline-block;
    margin-top: 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================
   PROCESS
========================= */

.process {
    padding: 150px 0;
    background: var(--white);
    color: var(--black);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #d7d4ce;
}

.process-item {
    min-height: 280px;
    padding: 30px;
    border-right: 1px solid #d7d4ce;
}

.process-item:first-child {
    border-left: 1px solid #d7d4ce;
}

.process-item > span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 26px;
}

.process-item h3 {
    margin-top: 90px;
    font-size: 20px;
}

.process-item p {
    margin-top: 12px;
    color: #777;
    font-size: 12px;
    line-height: 1.8;
}


/* =========================
   CONTACTS
========================= */

.contacts {
    padding: 150px 0;
background: var(--navy2);}

.contacts-inner {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contacts h2 {
    margin-top: 25px;
    font-size: clamp(45px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -3px;
}

.contacts-content > p {
    max-width: 500px;
    margin-top: 30px;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
}

.contact-details a {
    color: var(--gold);
    font-size: 16px;
}

.contact-form {
    padding: 40px;
background: #17365d;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 10px;
    padding: 15px 0;
    color: white;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #3b3b3d;
    outline: none;
    resize: vertical;
}

.contact-form textarea {
    min-height: 130px;
}

.contact-form label + label,
.contact-form textarea {
    margin-top: 30px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
}

.contact-form input.is-invalid,
.contact-form input.is-invalid:focus {
    border-color: rgba(235, 105, 105, .92) !important;
    box-shadow: 0 0 0 3px rgba(235, 105, 105, .12);
}

.contact-form .phone-validation-error {
    margin-top: 7px;
    color: #f0a1a1;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.contact-form .phone-validation-error[hidden] {
    display: none;
}

.footer-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-links { display: grid; gap: 7px; max-width: 310px; font-size: 11px; line-height: 1.45; }

.contact-form .button {
    margin-top: 35px;
}

.contact-form small {
    display: block;
    margin-top: 20px;
    color: #555;
    font-size: 9px;
    line-height: 1.5;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 15px 0;
background: #0c1d34;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer p,
.footer > .container > a:last-child {
    color: #555;
    font-size: 10px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    .nav,
    .header-contact {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .menu-button span {
        display: block;
        width: 28px;
        height: 1px;
        background: white;
    }

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

    .hero-visual {
        display: none;
    }

    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-large {
        grid-row: auto;
        min-height: 350px;
    }

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

    .contacts-inner {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .container {
        width: min(calc(100% - 40px), var(--container));
    }

    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-inner,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-left: 1px solid var(--border);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

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

    .services,
    .about,
    .process,
    .contacts {
        padding: 100px 0;
    }
}

/* =========================================================
   DESIGN UPGRADE — CORPORATION OF LAW
   ========================================================= */


/* =========================
   HEADER UPGRADE
========================= */

.header {
    background: rgba(16, 39, 70, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .3s ease, border-color .3s ease;
}

.header-inner {
    min-height: 88px;
}

.logo {
    transition: transform .3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    width: 118px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}


/* =========================
   NAVIGATION
========================= */

.nav {
    align-items: center;
}

.nav a {
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right .3s ease;
}

.nav a:hover::after {
    right: 0;
}


/* =========================
   HERO POLISH
========================= */

.hero {
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -180px;
    top: 100px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(201,162,77, 0.10),
        transparent 68%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    text-wrap: balance;
}

.hero-description {
    color: rgba(255,255,255,.68);
}

.hero-card {
    border-color: rgba(201,162,77,.28);
    background:
        linear-gradient(
            145deg,
            rgba(23,54,93,.92),
            rgba(16,39,70,.72)
        );
    box-shadow:
        0 40px 100px rgba(0,0,0,.32),
        inset 0 0 0 1px rgba(255,255,255,.035);
    transition: transform .5s ease, box-shadow .5s ease;
}

.hero-card:hover {
    transform: rotate(3deg) translateY(-8px);
    box-shadow:
        0 50px 120px rgba(0,0,0,.4),
        0 0 40px rgba(201,162,77,.08);
}

.floating-card {
    border-color: rgba(201,162,77,.18);
    background: rgba(16,39,70,.92);
    transition: transform .3s ease, border-color .3s ease;
}

.floating-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,162,77,.45);
}


/* =========================
   TRUST STRIP
========================= */

.trust-item {
    transition: background .3s ease;
}

.trust-item:hover {
    background: rgba(201,162,77,.045);
}

.trust-item strong {
    transition: transform .3s ease;
}

.trust-item:hover strong {
    transform: translateY(-3px);
}


/* =========================
   SERVICE CARDS
========================= */

.service-card {
    overflow: hidden;
    transition:
        background .35s ease,
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.service-card:hover {
    background: #f2efe8;
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(20,36,61,.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    transition: transform .35s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
}

.service-card a {
    transition: color .3s ease;
}

.service-card:hover a {
    color: var(--gold);
}

.service-number {
    transition: color .3s ease;
}

.service-card:hover .service-number {
    color: var(--gold);
}


/* =========================
   ABOUT SECTION
========================= */

.about-content {
    position: relative;
}

.about-content::before {
    content: "КП";
    position: absolute;
    right: 0;
    top: -70px;
    color: rgba(201,162,77,.045);
    font-family: 'Playfair Display', serif;
    font-size: 180px;
    line-height: 1;
    pointer-events: none;
}

.about-content p {
    position: relative;
    z-index: 1;
}

.text-link {
    transition:
        color .3s ease,
        border-color .3s ease,
        padding-left .3s ease;
}

.text-link:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
    padding-left: 8px;
}


/* =========================
   PROCESS CARDS
========================= */

.process-item {
    position: relative;
    overflow: hidden;
    transition:
        background .3s ease,
        transform .3s ease;
}

.process-item::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 45px;
    height: 2px;
    background: var(--gold);
    transition: width .35s ease;
}

.process-item:hover {
    background: #f2efe8;
    transform: translateY(-3px);
}

.process-item:hover::after {
    width: calc(100% - 60px);
}

.process-item > span {
    transition: transform .3s ease;
}

.process-item:hover > span {
    display: inline-block;
    transform: translateX(5px);
}


/* =========================
   CONTACT SECTION
========================= */

.contacts {
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    left: -300px;
    bottom: -400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(201,162,77,.09),
        transparent 68%
    );
    pointer-events: none;
}

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

.contact-form {
    background:
        linear-gradient(
            145deg,
            rgba(23,54,93,.58),
            rgba(16,39,70,.72)
        );
    border-color: rgba(201,162,77,.22);
    box-shadow: 0 25px 70px rgba(0,0,0,.16);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.contact-form:hover {
    border-color: rgba(201,162,77,.38);
    box-shadow: 0 30px 85px rgba(0,0,0,.22);
}

.contact-form label {
    color: rgba(255,255,255,.65);
}

.contact-form input,
.contact-form textarea {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.18);
    transition: border-color .3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,.38);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--gold);
}

.contact-form small {
    color: rgba(255,255,255,.38);
}

.contact-details a {
    transition: color .3s ease, transform .3s ease;
}

.contact-details a:hover {
    color: var(--gold-light);
    transform: translateX(5px);
}


/* =========================
   BUTTONS
========================= */

.button {
    position: relative;
    overflow: hidden;
}

.button-primary {
    box-shadow: 0 8px 25px rgba(201,162,77,.15);
}

.button-primary:hover {
    box-shadow: 0 12px 35px rgba(201,162,77,.24);
}

.button-secondary {
    border-color: rgba(255,255,255,.28);
}

.button-secondary:hover {
    background: rgba(201,162,77,.06);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #0c1d34;
}

.footer .logo img {
    width: 105px;
    height: 48px;
}

.footer a:last-child {
    transition: color .3s ease;
}

.footer a:last-child:hover {
    color: var(--gold);
}


/* =========================
   MOBILE POLISH
========================= */

@media (max-width: 1000px) {

    .header-inner {
        min-height: 76px;
    }

    .logo img {
        width: 105px;
        height: 48px;
    }

    .hero::after {
        display: none;
    }

    .about-content::before {
        font-size: 120px;
        top: -30px;
    }
}


@media (max-width: 650px) {

    .logo img {
        width: 92px;
        height: 44px;
    }

    .hero h1 {
        text-wrap: unset;
    }

    .service-card,
    .service-large {
        min-height: 300px;
    }

    .process-item {
        min-height: 240px;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .about-content::before {
        font-size: 90px;
        top: -15px;
    }
}

/* =========================================================
   CODEX FLIPBOOK
   ========================================================= */

.codex-section {
    position: relative;
    min-height: 900px;
    padding: 140px 0;
    overflow: hidden;

    display: grid;
    grid-template-columns: .75fr 1.25fr;
    align-items: center;
    gap: 80px;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(201,162,77,.10),
            transparent 35%
        ),
        var(--navy);

    color: #fff;
}


/* INTRO */

.codex-intro {
    width: min(100% - 80px, 430px);
    margin-left: auto;
}

.codex-intro h2 {
    margin-top: 22px;
    font-size: clamp(46px, 5vw, 70px);
    line-height: .98;
    letter-spacing: -3px;
}

.codex-intro h2 span {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.codex-intro p {
    max-width: 380px;
    margin-top: 30px;
    color: rgba(255,255,255,.58);
    font-size: 14px;
    line-height: 1.8;
}


/* BOOK */

.codex-book {
    position: relative;
    width: 560px;
    height: 640px;

    perspective: 1800px;
}


/* PAGE */

.codex-page {
    position: absolute;

    width: 410px;
    height: 570px;

    top: 35px;
    left: 75px;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #faf8f0,
            #eee9dc
        );

    color: #14243d;

    border: 1px solid rgba(20,36,61,.15);

    box-shadow:
        0 35px 70px rgba(0,0,0,.28);

    transform-origin: left center;

    border-radius: 2px;

    transition:
        transform .9s cubic-bezier(.22,.61,.36,1),
        box-shadow .5s ease;
}


/* PAGE INNER */

.page-content {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 38px 34px;

    border: 1px solid rgba(20,36,61,.10);
}


.page-content::before {
    content: "";

    position: absolute;

    inset: 14px;

    border: 1px solid rgba(201,162,77,.20);

    pointer-events: none;
}


.page-top {
    display: flex;
    justify-content: space-between;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 2px;
}


.page-content small {
    display: block;

    margin-top: 35px;

    color: #667085;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;
}


.page-content h3 {
    margin-top: 90px;

    font-family: 'Playfair Display', serif;

    font-size: 38px;

    font-weight: 500;

    color: #14243d;
}


.page-content p {
    max-width: 270px;

    margin-top: 18px;

    color: #39485c;

    font-size: 14px;

    line-height: 1.8;
}


.page-divider {
    width: 55px;
    height: 1px;

    margin-top: 40px;

    background: var(--gold);
}


.page-note {
    font-family: 'Playfair Display', serif;

    font-size: 16px !important;

    line-height: 1.6 !important;

    color: #14243d !important;
}


.page-number {
    position: absolute;

    right: 28px;
    bottom: 24px;

    color: #667085;

    font-family: 'Playfair Display', serif;

    font-size: 14px;
}


/* STACK */

.codex-page-back {
    transform:
        translate(35px, 10px)
        rotate(7deg);

    opacity: .55;
}

.codex-page-middle {
    transform:
        translate(18px, 4px)
        rotate(3deg);

    opacity: .82;
}

.codex-page-front {
    z-index: 3;

    transform:
        rotate(-2deg);

    box-shadow:
        0 40px 90px rgba(0,0,0,.35);
}


/* SCROLL ANIMATION STATES */




/* SHADOW */

.codex-page-front::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    right: -20px;

    width: 30px;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,.15),
            transparent
        );

    opacity: .5;
}


/* HINT */

.codex-scroll-hint {
    position: absolute;

    bottom: 55px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 12px;

    color: rgba(255,255,255,.35);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 3px;
}

.codex-scroll-hint i {
    width: 1px;
    height: 45px;

    background:
        linear-gradient(
            to bottom,
            var(--gold),
            transparent
        );
}


/* MOBILE */

@media (max-width: 1000px) {

    .codex-section {
        grid-template-columns: 1fr;

        padding: 110px 0;

        gap: 50px;
    }

    .codex-intro {
        width: min(100% - 80px, 700px);

        margin: 0 auto;
    }

    .codex-book {
        margin: 0 auto;
    }
}


@media (max-width: 650px) {

    .codex-section {
        min-height: 760px;

        padding: 90px 20px;
    }

    .codex-intro {
        width: 100%;
    }

    .codex-book {
        width: 340px;
        height: 500px;

        transform: scale(.72);

        transform-origin: top center;
    }

    .codex-scroll-hint {
        display: none;
    }
}

/* =========================================================
   FLOATING LEGAL DOCUMENTS
   ========================================================= */

.floating-legal-documents {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}


/* =========================
   DOCUMENT
========================= */

.legal-document {
    position: absolute;

    width: 230px;
    height: 320px;

    padding: 10px;

    background:
        linear-gradient(
            145deg,
            #faf8f0,
            #eee9dc
        );

    color: #14243d;

    border: 1px solid rgba(20,36,61,.14);

    box-shadow:
        0 20px 60px rgba(0,0,0,.16);

    opacity: .18;

    transition:
        transform .7s cubic-bezier(.22,.61,.36,1),
        opacity .5s ease;
}


/* =========================
   LEFT
========================= */

.legal-document-left {
    left: -135px;
    top: 27%;

    transform:
        rotate(-9deg)
        translateY(0);
}


/* =========================
   RIGHT
========================= */

.legal-document-right {
    right: -135px;
    top: 55%;

    transform:
        rotate(9deg)
        translateY(0);
}


/* =========================
   INNER PAGE
========================= */

.document-inner {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 22px;

    border: 1px solid rgba(20,36,61,.10);

    overflow: hidden;
}


.document-inner::before {
    content: "";

    position: absolute;

    inset: 9px;

    border: 1px solid rgba(201,162,77,.20);

    pointer-events: none;
}


/* =========================
   HEADER
========================= */

.document-header {
    display: flex;
    justify-content: space-between;

    color: #667085;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: 1.3px;
}


/* =========================
   TITLE
========================= */

.document-title {
    margin-top: 55px;

    color: #14243d;

    font-family:
        'Playfair Display',
        serif;

    font-size: 21px;

    line-height: 1.05;
}


/* =========================
   GOLD LINE
========================= */

.document-line {
    height: 1px;

    margin-top: 18px;

    background: var(--gold);
}

.document-line.short {
    width: 35px;
}


/* =========================
   TEXT
========================= */

.document-text {
    margin-top: 18px;

    color: #39485c;

    font-family:
        'Playfair Display',
        serif;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================
   FAKE TEXT LINES
========================= */

.document-lines {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-top: 18px;
}

.document-lines i {
    display: block;

    width: 100%;

    height: 1px;

    background: rgba(20,36,61,.15);
}

.document-lines i:nth-child(2) {
    width: 88%;
}

.document-lines i:nth-child(3) {
    width: 94%;
}

.document-lines i:nth-child(4) {
    width: 76%;
}

.document-lines i:nth-child(5) {
    width: 84%;
}


/* =========================
   STAMP
========================= */

.document-stamp {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 2px solid
        rgba(139,51,51,.28);

    border-radius: 50%;

    color:
        rgba(139,51,51,.38);

    font-size: 9px;

    font-weight: 800;

    transform: rotate(-12deg);
}


/* =========================
   SIGNATURE
========================= */

.document-signature {
    position: absolute;

    right: 22px;
    bottom: 25px;

    color: #667085;

    font-family:
        'Playfair Display',
        serif;

    font-size: 11px;

    font-style: italic;
}


/* =========================
   SCROLL STATES
========================= */

.legal-document-left {
    animation:
        legalDocumentLeft 8s
        ease-in-out
        infinite alternate;
}

.legal-document-right {
    animation:
        legalDocumentRight 9s
        ease-in-out
        infinite alternate;
}


@keyframes legalDocumentLeft {

    from {
        transform:
            rotate(-9deg)
            translateY(-12px);
    }

    to {
        transform:
            rotate(-6deg)
            translateY(18px);
    }
}


@keyframes legalDocumentRight {

    from {
        transform:
            rotate(9deg)
            translateY(15px);
    }

    to {
        transform:
            rotate(6deg)
            translateY(-18px);
    }
}


/* =========================================================
   DOCUMENTS ONLY FOR LARGE SCREENS
   ========================================================= */



/* =========================================================
   SCROLL MOVEMENT FOR LEGAL DOCUMENTS
   ========================================================= */

.legal-document-left,
.legal-document-right {
    animation: none !important;
    will-change: transform, opacity;
}

.legal-document-left {
    opacity: .15;
}

.legal-document-right {
    opacity: .15;
}

/* =========================================================
   LEGAL DOCUMENTS — ADAPTIVE COLORS
   ========================================================= */

.legal-document {
    transition:
        transform .7s cubic-bezier(.22,.61,.36,1),
        opacity .5s ease,
        background .8s ease,
        color .8s ease,
        border-color .8s ease,
        box-shadow .8s ease;
}


/* Документ на светлом фоне */

.legal-document.on-light {
    background:
        linear-gradient(
            145deg,
            #142b49,
            #0d1f36
        );

    color: #f7f5f0;

    border-color:
        rgba(20,43,73,.22);

    box-shadow:
        0 25px 70px rgba(10,25,45,.22);
}


/* Внутренняя рамка */

.legal-document.on-light .document-inner {
    border-color:
        rgba(255,255,255,.12);
}


/* Внутренняя золотая рамка */

.legal-document.on-light
.document-inner::before {
    border-color:
        rgba(201,162,77,.30);
}


/* Верхняя строка */

.legal-document.on-light
.document-header {
    color:
        rgba(255,255,255,.55);
}


/* Заголовок */

.legal-document.on-light
.document-title {
    color: #f7f5f0;
}


/* Текст */

.legal-document.on-light
.document-text {
    color:
        rgba(255,255,255,.68);
}


/* Линии текста */

.legal-document.on-light
.document-lines i {
    background:
        rgba(255,255,255,.16);
}


/* Золотая линия */

.legal-document.on-light
.document-line {
    background: var(--gold);
}


/* Печать */

.legal-document.on-light
.document-stamp {
    color:
        rgba(201,162,77,.65);

    border-color:
        rgba(201,162,77,.50);
}


/* Подпись */

.legal-document.on-light
.document-signature {
    color:
        rgba(255,255,255,.55);
}

/* =========================================================
   THEMIS — SERVICES WATERMARK
   ========================================================= */

.services {
    position: relative;
    overflow: hidden;
}

.themis-watermark {
    position: absolute;
    right: 3%;
    top: 50%;
    
    width: min(280px, 22vw);
    
    transform: translateY(-50%);
    
    pointer-events: none;
    z-index: 0;
    
    opacity: 0.065;
    
    color: var(--navy);
    
    transition:
        opacity 0.8s ease,
        transform 1s ease;
}


.themis-watermark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* Карточки и заголовки остаются поверх Фемиды */
.services > .container {
    position: relative;
    z-index: 1;
}

/* Лёгкое появление при наведении на секцию */
.services:hover .themis-watermark {
    opacity: 0.09;
    transform:
        translateY(-50%)
        translateX(-8px);
}

/* На небольших экранах пока убираем */
@media (max-width: 1200px) {

    .themis-watermark {
        display: none;
    }
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЮРИДИЧЕСКИЙ ДЕКОР
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       ФЕМИДА
       ----------------------------------------------------- */

    .themis-watermark {
        position: absolute;
        top: 50%;
        right: -35px;

        width: 150px;
        max-width: 42vw;

        transform: translateY(-50%);

        opacity: 0.08;

        pointer-events: none;
        z-index: 0;

        transition:
            opacity 0.8s ease,
            transform 1s ease;
    }

    .themis-watermark img {
        display: block;

        width: 100%;
        height: auto;

        object-fit: contain;
    }

    /* Фемида не должна перекрывать содержимое */
    .services > .container,
    .about > .container,
    .process > .container,
    .contacts > .container {
        position: relative;
        z-index: 2;
    }


    /* -----------------------------------------------------
       ДОКУМЕНТЫ ПО КРАЯМ ЭКРАНА
       ----------------------------------------------------- */

    .legal-document {
        opacity: 0.07 !important;
        pointer-events: none !important;

        transform: scale(0.65);
    }

    .legal-document.left {
        left: -85px !important;
    }

    .legal-document.right {
        right: -85px !important;
    }


    /* -----------------------------------------------------
       НЕ ДАЁМ ДЕКОРУ ЛЕЗТЬ НА ТЕКСТ
       ----------------------------------------------------- */

    .services,
    .process,
    .about,
    .contacts {
        position: relative;
        overflow: hidden;
    }


    /* -----------------------------------------------------
       ЛЁГКОЕ ПОЯВЛЕНИЕ ФЕМИДЫ
       ----------------------------------------------------- */

    .themis-watermark {
        animation: mobileThemisFloat 8s ease-in-out infinite;
    }

    @keyframes mobileThemisFloat {

        0% {
            transform: translateY(-50%) translateX(0);
        }

        50% {
            transform: translateY(calc(-50% - 8px)) translateX(-4px);
        }

        100% {
            transform: translateY(-50%) translateX(0);
        }
    }


    /* -----------------------------------------------------
       ПЛАНШЕТЫ / БОЛЬШИЕ ТЕЛЕФОНЫ
       ----------------------------------------------------- */

    @media (min-width: 500px) and (max-width: 768px) {

        .themis-watermark {
            width: 180px;
            right: -40px;
            opacity: 0.09;
        }

        .legal-document.left {
            left: -70px !important;
        }

        .legal-document.right {
            right: -70px !important;
        }
    }


    /* -----------------------------------------------------
       ОБЫЧНЫЕ ТЕЛЕФОНЫ
       ----------------------------------------------------- */

    @media (max-width: 499px) {

        .themis-watermark {
            width: 125px;
            right: -35px;
            opacity: 0.065;
        }

        .legal-document {
            opacity: 0.055 !important;
            transform: scale(0.55);
        }

        .legal-document.left {
            left: -95px !important;
        }

        .legal-document.right {
            right: -95px !important;
        }
    }


    /* -----------------------------------------------------
       ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
       ----------------------------------------------------- */

    @media (max-width: 380px) {

        .themis-watermark {
            width: 105px;
            right: -30px;
            opacity: 0.05;
        }

        .legal-document {
            opacity: 0.04 !important;
        }
    }
}

/* =========================================================
   MOBILE — FINAL POLISH
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       1. Убираем неработающие декоративные стрелки/полосы
       ----------------------------------------------------- */

    /* Если справа есть старая плавающая кнопка */
    .mobile-arrow,
    .side-arrow,
    .floating-arrow {
        display: none !important;
    }


    /* -----------------------------------------------------
       2. Шапка
       ----------------------------------------------------- */

    .header {
        position: relative;
        z-index: 100;
    }

    .header-inner {
        min-height: 88px;
    }

    .menu-button {
        width: 48px;
        height: 48px;
        border: 1px solid rgba(201,162,77, .7);
        border-radius: 50%;
        background: rgba(201,162,77, .08);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
    }

    .menu-button span {
        display: block;
        width: 18px;
        height: 1px;
        background: var(--gold);
        transition: transform .25s ease;
    }


    /* -----------------------------------------------------
       3. HERO — нормальная мобильная композиция
       ----------------------------------------------------- */

    .hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 55px;
        overflow: hidden;
    }

    .hero h1 {
        font-size: clamp(48px, 13vw, 72px);
        line-height: .94;
        letter-spacing: -0.045em;
    }

    .hero p {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.65;
        margin-top: 28px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 34px;
    }

    .hero-actions a {
        width: 100%;
        min-height: 62px;
    }

    .hero-scroll {
        display: none;
    }


    /* -----------------------------------------------------
       4. ФЕМИДА
       ----------------------------------------------------- */

    .services {
        position: relative;
        overflow: hidden;
    }

    .themis-watermark {
        display: block !important;
        position: absolute !important;
        right: -42px !important;
        top: 120px !important;
        width: 210px !important;
        height: 390px !important;
        z-index: 0 !important;
        pointer-events: none !important;
        opacity: .13 !important;
        transform: none !important;
    }

    .themis-watermark img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }


    /* -----------------------------------------------------
       5. БОКОВЫЕ ЮРИДИЧЕСКИЕ ЛИСТЫ
       ----------------------------------------------------- */

    .legal-document {
        display: block !important;
        position: absolute !important;
        pointer-events: none !important;
        z-index: 0 !important;
        opacity: .10 !important;
    }

    .legal-document-left {
        left: -105px !important;
        right: auto !important;
        transform: rotate(-9deg) !important;
    }

    .legal-document-right {
        right: -105px !important;
        left: auto !important;
        transform: rotate(9deg) !important;
    }


    /* -----------------------------------------------------
       6. SERVICES — нормальная мобильная сетка
       ----------------------------------------------------- */

    .services .container {
        position: relative;
        z-index: 2;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: clamp(46px, 12vw, 64px);
        line-height: .98;
        letter-spacing: -.045em;
    }

    .section-heading > p {
        margin-top: 28px;
        font-size: 17px;
        line-height: 1.6;
        max-width: 100%;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 42px;
    }

    .service-card,
    .service-card.service-large {
        min-height: 390px;
        padding: 38px 28px 34px;
        position: relative;
        overflow: hidden;
    }

    .service-card h3 {
        font-size: 34px;
        line-height: 1.05;
        max-width: 100%;
    }

    .service-card p {
        font-size: 17px;
        line-height: 1.6;
        max-width: 100%;
    }

    .service-card a {
        margin-top: 28px;
        display: inline-block;
    }


    /* -----------------------------------------------------
       7. НАШ ПОДХОД — больше никаких километров пустоты
       ----------------------------------------------------- */

    .process {
        padding-top: 75px;
        padding-bottom: 75px;
        overflow: hidden;
    }

    .process-heading {
        margin-bottom: 35px;
    }

    .process-heading h2 {
        font-size: clamp(46px, 12vw, 64px);
        line-height: .98;
    }

    .process-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border: 1px solid rgba(18, 45, 78, .18);
    }

    .process-item {
        min-height: 190px !important;
        padding: 28px 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border: 0 !important;
        border-right: 1px solid rgba(18, 45, 78, .18) !important;
        border-bottom: 1px solid rgba(18, 45, 78, .18) !important;
    }

    .process-item:nth-child(even) {
        border-right: 0 !important;
    }

    .process-item:nth-last-child(-n + 2) {
        border-bottom: 0 !important;
    }

    .process-item span {
        font-size: 17px;
        line-height: 1.35;
    }


    /* -----------------------------------------------------
       8. TRUST — компактнее
       ----------------------------------------------------- */

    .trust {
        padding: 0;
    }

    .trust-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        min-height: 145px;
        padding: 24px 18px;
    }

    .trust-item span {
        font-size: 15px;
        line-height: 1.35;
    }


    /* -----------------------------------------------------
       9. CONTACTS
       ----------------------------------------------------- */

    .contacts {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .contacts-inner {
        display: block;
    }

    .contacts-content h2 {
        font-size: clamp(46px, 12vw, 64px);
        line-height: .98;
    }

    .contacts-content p {
        font-size: 17px;
        line-height: 1.6;
    }


    /* -----------------------------------------------------
       10. FOOTER — убираем огромный пустой низ
       ----------------------------------------------------- */

    footer {
        padding-top: 42px !important;
        padding-bottom: 32px !important;
        min-height: auto !important;
    }

    .footer-inner {
        min-height: auto !important;
    }

    .footer-bottom {
        margin-top: 35px !important;
        padding-bottom: 0 !important;
    }


    /* -----------------------------------------------------
       11. Никаких декоративных элементов поверх текста
       ----------------------------------------------------- */

    .themis-watermark,
    .legal-document {
        user-select: none;
    }

}

/* =========================================================
   MOBILE SERVICE CARDS — ACTIVE STATE
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .service-card.is-active {
        background: #f4f0e8;
        border-color: rgba(18, 45, 78, .18);
        box-shadow: inset 0 -4px 0 var(--gold);
    }

    .service-card.is-active .service-icon {
        color: var(--gold);
    }

    .service-card.is-active h3 {
        color: #102d4e;
    }

    .service-card.is-active p {
        color: #777;
    }

    .service-card.is-active a {
        color: #102d4e;
    }
}

/* =========================================================
   MOBILE TOUCH — короткое нажатие вместо залипающего hover
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .service-card:hover {
        background: inherit !important;
        color: inherit !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .service-card:active {
        background: #f4f0e8 !important;
        transition: background-color 0.12s ease;
    }

    .process-item:hover {
        background: inherit !important;
        color: inherit !important;
        transform: none !important;
    }

    .process-item:active {
        background: #f4f0e8 !important;
        transition: background-color 0.12s ease;
    }

    /* Убираем задержку обработки касания */
    .service-card,
    .process-item,
    .service-card a,
    .process-item a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* =========================================================
   MOBILE VERSION — FINAL TUNING
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       1. HERO
       Поднимаем "Защищаем ваши права..." выше,
       уменьшаем пустоту сверху
       ----------------------------------------------------- */

    .hero {
        min-height: auto !important;
        height: auto !important;
        padding-top: 55px !important;
        padding-bottom: 35px !important;
    }

    .hero .container {
        padding-top: 0 !important;
    }

    .hero-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .hero h1 {
        margin-top: 15px !important;
        margin-bottom: 22px !important;
    }

    .hero p {
        margin-bottom: 28px !important;
    }

    .hero-scroll {
        display: none !important;
    }


    /* -----------------------------------------------------
       2. TRUST
       Было 4 огромных блока.
       Делаем компактную аккуратную сетку 2 × 2.
       ----------------------------------------------------- */

    .trust {
        padding: 0 !important;
        min-height: auto !important;
    }

    .trust-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .trust-item {
        min-height: 105px !important;
        height: 105px !important;
        padding: 22px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: left !important;
    }

    .trust-item span {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .trust-item strong {
        margin-right: 10px !important;
    }


    /* -----------------------------------------------------
       3. SERVICES
       Убираем огромную высоту карточек на телефоне.
       ----------------------------------------------------- */

    .services {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }

    .services .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .services .section-heading {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-bottom: 30px !important;
    }

    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .service-card,
    .service-card.service-large {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 32px 24px !important;
        margin: 0 !important;
    }

    .service-card .service-icon {
        margin-bottom: 28px !important;
        font-size: 38px !important;
    }

    .service-card h3 {
        font-size: 27px !important;
        line-height: 1.12 !important;
        margin-bottom: 16px !important;
    }

    .service-card p {
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    .service-card a {
        margin-top: 0 !important;
    }


    /* -----------------------------------------------------
       4. PROCESS
       Нормальная компактная сетка 2 × 2.
       ----------------------------------------------------- */

    .process {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }

    .process-heading {
        margin-bottom: 30px !important;
    }

    .process-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .process-item {
        min-height: 190px !important;
        height: 190px !important;
        padding: 28px 22px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .process-item h3 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .process-item p {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }


    /* -----------------------------------------------------
       5. CONTACTS
       Телефон и email поднимаем выше формы,
       чтобы они не залезали на блок заявки.
       ----------------------------------------------------- */

    .contacts {
        padding-top: 55px !important;
        padding-bottom: 40px !important;
    }

    .contacts-inner {
        display: block !important;
    }

    .contacts-content {
        margin-bottom: 28px !important;
    }

    .contacts-content > p {
        margin-bottom: 18px !important;
    }

    .contacts-info {
        margin-bottom: 28px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .contacts-info a,
    .contacts-info span {
        display: block !important;
        margin-bottom: 7px !important;
    }

    .contacts-form {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 0 !important;
    }


    /* -----------------------------------------------------
       6. Убираем лишнюю высоту контейнеров
       ----------------------------------------------------- */

    .container {
        max-width: 100% !important;
    }

    section {
        overflow: hidden !important;
    }


    /* -----------------------------------------------------
       7. Убираем залипающий hover на мобильных
       ----------------------------------------------------- */

    .service-card:hover,
    .process-item:hover,
    .trust-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .service-card,
    .process-item,
    .trust-item,
    .service-card a,
    .process-item a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* =========================================================
   MOBILE TRUST — НОВАЯ КОМПОЗИЦИЯ
   ========================================================= */

@media (max-width: 767px) {

    .trust {
        background: var(--black) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255,255,255,.08) !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    .trust-inner {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .trust-item {
        position: relative !important;

        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;

        padding: 24px 24px 24px 68px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;

        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;

        box-sizing: border-box !important;
    }

    .trust-item:last-child {
        border-bottom: 0 !important;
    }

    /* золотая линия слева */
    .trust-item::before {
        content: "";
        position: absolute;
        left: 24px;
        top: 50%;
        width: 24px;
        height: 1px;
        background: var(--gold);
        transform: translateY(-50%);
        opacity: .9;
    }

    /* номера */
    .trust-item::after {
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);

        font-family: "Manrope", sans-serif;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .08em;

        color: var(--gold);
    }

    .trust-item:nth-child(1)::after {
        content: "";
    }

    .trust-item:nth-child(2)::after {
        content: "";
    }

    .trust-item:nth-child(3)::after {
        content: "";
    }

    .trust-item:nth-child(4)::after {
        content: "";
    }

    .trust-item span {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        color: rgba(255,255,255,.78) !important;

        font-size: 14px !important;
        line-height: 1.35 !important;
        letter-spacing: .01em !important;
    }

    .trust-item strong {
        display: none !important;
    }

    /* убираем любые эффекты нажатия/залипания */
    .trust-item:hover,
    .trust-item:active,
    .trust-item:focus {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 767px) {

    .trust-item::before,
    .trust-item::after {
        display: none !important;
        content: none !important;
    }

    .trust-item {
        padding-left: 24px !important;
    }

}

@media (max-width: 767px) {
    .trust {
        display: none !important;
    }
}

/* =================================
   ПАНЕЛИ С ЛОГОТИПОМ КП — ВСЕ УСТРОЙСТВА
   ================================= */

.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.footer {
    background: #ffffff !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* =================================
   ТЕКСТ В БЕЛОЙ ШАПКЕ
   ================================= */

.header nav a,
.header .nav a,
.header .header-nav a,
.header .phone,
.header .header-phone,
.header .contact-phone {
    color: #10294a !important;
}

.header nav a:hover,
.header .nav a:hover,
.header .header-nav a:hover,
.header .phone:hover,
.header .header-phone:hover,
.header .contact-phone:hover {
    color: #c9a24d !important;
}

/* =================================
   БЕЛАЯ ШАПКА — ТЁМНЫЙ ТЕКСТ
   ================================= */

.header .nav a {
    color: #10294a !important;
}

.header .nav a:hover {
    color: #c9a24d !important;
}

.header .header-contact a {
    color: #10294a !important;
}

.header .header-contact a:hover {
    color: #c9a24d !important;
}

/* =================================
   КОРПОРАЦИЯ ПРАВА — ЛОГОТИП
   ================================= */

.logo-text {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 7px;
    width: max-content;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.logo-text span {
    display: inline !important;
    color: #10294a !important;
    font-family: "Manrope", sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.logo-text strong {
    display: inline !important;
    color: #c9a24d !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* =================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ================================= */

@media (max-width: 767px) {

    .logo-text {
        gap: 5px;
    }

    .logo-text span {
        font-size: 17px;
        letter-spacing: -0.5px;
    }

    .logo-text strong {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

}

.footer .logo-text {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    width: max-content !important;
    white-space: nowrap !important;
}

.footer .logo-text span,
.footer .logo-text strong {
    display: inline !important;
}

@media (max-width: 767px) {
    .footer {
        padding: 24px 0 !important;
        min-height: 0 !important;
    }
}

/* На мобильных полностью убираем кнопку меню */
@media (max-width: 767px) {
    .menu-button {
        display: none !important;
    }
}

/* Юридические документы — возвращаем на мобильную версию */
@media (max-width: 767px) {

    .floating-legal-documents {
        display: block !important;
    }

    .floating-legal-documents .document {
        display: block !important;
    }

}

@media (max-width: 767px) {

    .floating-legal-documents {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

    .floating-legal-documents .document {
        display: block !important;
        visibility: visible !important;
    }

}

/* Убираем листы только на мобильных */
@media (max-width: 767px) {
    .floating-legal-documents {
        display: none !important;
    }
}

/* =================================
   ДВА КОНТАКТНЫХ НОМЕРА
   ================================= */

.header-phones {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phones a {
    display: flex;
    flex-direction: column;
    color: #10294a !important;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.header-phones a:hover {
    color: #c9a24d !important;
}

.header-phones small {
    margin-bottom: 3px;
    color: #c9a24d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Мобильная версия */
@media (max-width: 767px) {

    .header-phones {
        display: none !important;
    }

}

/* =================================
   КОНТАКТЫ
   ================================= */

.contact-details {
    display: flex;
    align-items: flex-start;
    gap: 45px;
    flex-wrap: nowrap;
    margin-top: 28px;
}

.contact-details a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.contact-details a span {
    color: #c9a24d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 7px;
}

.contact-details a {
    color: #c9a24d;
}

/* Почта не переносится на отдельную строку */
.contact-details a[href^="mailto"] {
    flex-basis: auto;
}


@media (max-width: 767px) {

    .contact-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
        margin-top: 24px;
    }

    .contact-details a[href^="mailto"] {
        grid-column: 1 / -1;
    }

}

/* Мобильная версия */
@media (max-width: 767px) {
    .contact-details {
        flex-direction: column;
        gap: 16px;
    }

    .contact-details a[href^="mailto"] {
        flex-basis: auto;
    }
}

/* Форма заявки — смещаем вправо */
@media (min-width: 768px) {
    .contacts-form {
        transform: translateX(80px);
    }
}

/* Форма заявки — смещаем вправо на ПК и ноутбуке */
@media (min-width: 768px) {
    .contact-form {
        transform: translateX(680px);
    }
}

/* Форма заявки — вправо и немного выше */
@media (min-width: 768px) {
    .contact-form {
        transform: translate(680px, -450px);
    }
}

/* =================================
   CONTACTS — УБИРАЕМ ПУСТОЕ МЕСТО
   ================================= */

@media (min-width: 768px) {

    .contacts {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 70px !important;
        overflow: hidden;
    }

    .contacts-inner {
        min-height: 0 !important;
        height: auto !important;
    }

    .contact-form {
        margin-bottom: 0 !important;
    }
}

/* =================================
   CONTACTS — УБИРАЕМ ПУСТОЕ МЕСТО
   ================================= */

@media (min-width: 768px) {

    .contacts {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 70px !important;
        overflow: hidden;
    }

    .contacts-inner {
        min-height: 0 !important;
        height: auto !important;
    }

    .contact-form {
        margin-bottom: 0 !important;
    }
}

/* =================================
   CONTACTS — ФИКСИРУЕМ ВЫСОТУ
   Координаты формы НЕ ТРОГАЕМ
   ================================= */

@media (min-width: 768px) {

    .contacts {
        height: 700px !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

}
/* =========================================
   КАРТОЧКИ УСЛУГ — ПК И НОУТБУК
   Текст не залезает на "Подробнее"
   ========================================= */

@media (min-width: 768px) {

    .service-card {
        display: flex !important;
        flex-direction: column !important;
    }

    .service-card h3 {
        margin-bottom: 18px !important;
    }

    .service-card p {
        margin-bottom: 20px !important;
    }

    .service-card a {
        margin-top: auto !important;
        display: block !important;
    }

}

/* =========================================
   ФОРМА ЗАЯВКИ — РОВНОЕ ВЫРАВНИВАНИЕ
   Только ПК и ноутбук
   ========================================= */

@media (min-width: 768px) {

    .contact-form {
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-form .form-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        align-items: start !important;
    }

    .contact-form .form-row label {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .contact-form label {
        margin: 0 !important;
    }

    .contact-form label > input {
        width: 100% !important;
        height: 42px !important;
        margin-top: 14px !important;
        box-sizing: border-box !important;
    }

    .contact-form > label {
        width: 100% !important;
        margin-top: 28px !important;
    }

    .contact-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 14px !important;
        display: block !important;
    }

}

/* =========================================
   МОБИЛЬНЫЕ ДОКУМЕНТЫ НА ФОНЕ УСЛУГ
   Очень мягкая декоративная анимация
   ========================================= */

@media (max-width: 767px) {

    .services {
        position: relative !important;
        overflow: hidden !important;
    }

    .services-inner {
        position: relative !important;
        z-index: 2 !important;
    }

    .services-grid {
        position: relative !important;
        z-index: 2 !important;
    }

    /* Лист 1 */
    .services::before {
        content: "КОДЕКС\\A\\A СУДЕБНОЕ РЕШЕНИЕ\\A\\A ИМЕНЕМ РОССИЙСКОЙ ФЕДЕРАЦИИ\\A\\A § 12\\A\\A ____________\\A\\A ____________";
        white-space: pre;
        position: absolute;
        z-index: 0;
        width: 185px;
        height: 250px;
        left: -105px;
        top: 180px;

        padding: 28px 20px;
        box-sizing: border-box;

        border: 1px solid rgba(20,45,80,.09);
        background: rgba(255,255,255,.38);

        color: rgba(20,45,80,.075);
        font-family: Georgia, serif;
        font-size: 8px;
        line-height: 1.7;
        letter-spacing: .7px;

        transform: rotate(-12deg);
        box-shadow: 0 15px 40px rgba(20,45,80,.05);

        pointer-events: none;

        animation: legalPaperFloat1 13s ease-in-out infinite;
    }


    /* Лист 2 */
    .services::after {
        content: "СУДЕБНЫЙ\\A\\ПРИКАЗ\\A\\A № 184\\A\\A РЕШЕНИЕ\\A\\A Взыскать...\\A\\A ____________\\A\\A ____________";
        white-space: pre;
        position: absolute;
        z-index: 0;
        width: 175px;
        height: 235px;
        right: -105px;
        top: 470px;

        padding: 25px 18px;
        box-sizing: border-box;

        border: 1px solid rgba(20,45,80,.08);
        background: rgba(255,255,255,.32);

        color: rgba(20,45,80,.07);
        font-family: Georgia, serif;
        font-size: 8px;
        line-height: 1.8;
        letter-spacing: .6px;

        transform: rotate(10deg);
        box-shadow: 0 15px 40px rgba(20,45,80,.05);

        pointer-events: none;

        animation: legalPaperFloat2 16s ease-in-out infinite;
    }


    /* Ещё один документ между карточками */


    /* Маленький лист */


    /* =========================================
       ПЛАВНАЯ АНИМАЦИЯ
       ========================================= */

    @keyframes legalPaperFloat1 {
        0%, 100% {
            transform: translateY(0) rotate(-12deg);
        }

        50% {
            transform: translateY(-18px) rotate(-9deg);
        }
    }


    @keyframes legalPaperFloat2 {
        0%, 100% {
            transform: translateY(0) rotate(10deg);
        }

        50% {
            transform: translateY(22px) rotate(7deg);
        }
    }


    @keyframes legalPaperFloat3 {
        0%, 100% {
            transform: translateY(0) rotate(-7deg);
        }

        50% {
            transform: translateY(-14px) rotate(-4deg);
        }
    }


    @keyframes legalPaperFloat4 {
        0%, 100% {
            transform: translateY(0) rotate(8deg);
        }

        50% {
            transform: translateY(16px) rotate(11deg);
        }
    }

}



    /* Левый документ */
    .services::before {
        content: "СУДЕБНОЕ РЕШЕНИЕ\A\A ИМЕНЕМ РОССИЙСКОЙ\A ФЕДЕРАЦИИ\A\A № 184\A\A Рассмотрев материалы\A дела, суд постановил:\A\A __________________\A\A __________________";

        white-space: pre;

        position: absolute;
        z-index: 3;

        left: -92px;
        top: 520px;

        width: 190px;
        height: 265px;

        padding: 25px 20px;

        box-sizing: border-box;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.58),
                rgba(245,242,235,.42)
            );

        border: 1px solid rgba(201,162,77,.22);

        color: rgba(20,45,80,.18);

        font-family: Georgia, serif;
        font-size: 8px;
        line-height: 1.75;
        letter-spacing: .6px;

        box-shadow:
            0 15px 35px rgba(20,45,80,.08);

        transform: rotate(-10deg);

        pointer-events: none;

        animation: mobileDocumentLeft 14s ease-in-out infinite;
    }


    /* Правый документ */
    .services::after {
        content: "ПОСТАНОВЛЕНИЕ\A\A СУДЕБНЫЙ ПРИКАЗ\A\A № 12/08\A\A Взыскать денежные\A средства с ответчика\A\A __________________\A\A __________________";

        white-space: pre;

        position: absolute;
        z-index: 3;

        right: -90px;
        top: 1050px;

        width: 185px;
        height: 250px;

        padding: 24px 19px;

        box-sizing: border-box;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.55),
                rgba(245,242,235,.40)
            );

        border: 1px solid rgba(201,162,77,.20);

        color: rgba(20,45,80,.16);

        font-family: Georgia, serif;
        font-size: 8px;
        line-height: 1.8;
        letter-spacing: .55px;

        box-shadow:
            0 15px 35px rgba(20,45,80,.07);

        transform: rotate(9deg);

        pointer-events: none;

        animation: mobileDocumentRight 17s ease-in-out infinite;
    }


    /* Дополнительный документ */


    /* Маленький лист слева */


    /* =========================================
       АНИМАЦИЯ
       ========================================= */

    @keyframes mobileDocumentLeft {

        0%, 100% {
            transform: translateY(0) rotate(-10deg);
        }

        50% {
            transform: translateY(-18px) rotate(-7deg);
        }
    }


    @keyframes mobileDocumentRight {

        0%, 100% {
            transform: translateY(0) rotate(9deg);
        }

        50% {
            transform: translateY(20px) rotate(6deg);
        }
    }


    @keyframes mobileDocumentSmall {

        0%, 100% {
            transform: translateY(0) rotate(-7deg);
        }

        50% {
            transform: translateY(-15px) rotate(-4deg);
        }
    }


    @keyframes mobileDocumentSmall2 {

        0%, 100% {
            transform: translateY(0) rotate(8deg);
        }

        50% {
            transform: translateY(17px) rotate(11deg);
        }
    }

    /* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ПЛАВАЮЩИЕ ДОКУМЕНТЫ
   ========================================= */

@media (max-width: 767px) {

    .services {
        position: relative !important;
        overflow: visible !important;
    }

    .services-grid {
        position: relative !important;
        overflow: visible !important;
        z-index: 1 !important;
    }

    .service-card {
        position: relative !important;
        z-index: 5 !important;
    }


    /* ЛЕВЫЙ ЛИСТ */


    /* ПРАВЫЙ ЛИСТ */


    /* Еще один лист — через фон третьего уровня */

    .services-grid {
        background:
            linear-gradient(
                78deg,
                transparent 0%,
                transparent 100%
            );
    }


    @keyframes legalPaperLeft {

        0%, 100% {
            transform: translateY(0) rotate(-12deg);
        }

        50% {
            transform: translateY(-22px) rotate(-8deg);
        }

    }


    @keyframes legalPaperRight {

        0%, 100% {
            transform: translateY(0) rotate(10deg);
        }

        50% {
            transform: translateY(25px) rotate(6deg);
        }

    }

}

/* =========================================
   МОБИЛЬНЫЕ ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ
   ========================================= */

.mobile-legal-docs {
    display: none;
}

@media (max-width: 767px) {

    .services-grid {
        position: relative !important;
    }

    .mobile-legal-docs {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .service-card {
        position: relative;
        z-index: 5;
    }

    .mobile-doc {
        position: absolute;

        width: 135px;
        height: 190px;

        padding: 18px 14px;

        box-sizing: border-box;

        background: rgba(244, 240, 230, .94);

        border: 1px solid rgba(201,162,77, .38);

        box-shadow:
            0 12px 30px rgba(20, 45, 80, .14);

        color: rgba(20, 45, 80, .25);

        font-family: Georgia, serif;

        transform-origin: center;

        opacity: .9;
    }

    .mobile-doc span {
        display: block;

        font-size: 7px;
        font-weight: 600;

        letter-spacing: 1px;

        margin-bottom: 18px;
    }

    .mobile-doc i {
        display: block;

        height: 1px;

        margin-bottom: 14px;

        background: rgba(20, 45, 80, .12);
    }

    .mobile-doc b {
        display: block;

        margin-top: 16px;

        font-size: 14px;
        font-weight: 400;

        color: rgba(201,162,77, .42);
    }


    /* 1 — справа, начало блока */

    .mobile-doc-1 {
        right: -82px;
        top: 180px;

        transform: rotate(9deg);

        animation: legalDoc1 13s ease-in-out infinite;
    }


    /* 2 — слева */

    .mobile-doc-2 {
        left: -88px;
        top: 650px;

        transform: rotate(-11deg);

        animation: legalDoc2 16s ease-in-out infinite;
    }


    /* 3 — справа */

    .mobile-doc-3 {
        right: -80px;
        top: 1120px;

        transform: rotate(-8deg);

        animation: legalDoc3 15s ease-in-out infinite;
    }


    /* 4 — слева */

    .mobile-doc-4 {
        left: -86px;
        top: 1580px;

        transform: rotate(10deg);

        animation: legalDoc4 17s ease-in-out infinite;
    }


    /* 5 — справа */

    .mobile-doc-5 {
        right: -82px;
        top: 2040px;

        transform: rotate(-10deg);

        animation: legalDoc5 14s ease-in-out infinite;
    }


    /* 6 — слева ближе к концу */

    .mobile-doc-6 {
        left: -88px;
        top: 2500px;

        transform: rotate(8deg);

        animation: legalDoc6 18s ease-in-out infinite;
    }


    @keyframes legalDoc1 {
        0%, 100% {
            transform: translateY(0) rotate(9deg);
        }

        50% {
            transform: translateY(-18px) rotate(6deg);
        }
    }

    @keyframes legalDoc2 {
        0%, 100% {
            transform: translateY(0) rotate(-11deg);
        }

        50% {
            transform: translateY(20px) rotate(-8deg);
        }
    }

    @keyframes legalDoc3 {
        0%, 100% {
            transform: translateY(0) rotate(-8deg);
        }

        50% {
            transform: translateY(-20px) rotate(-5deg);
        }
    }

    @keyframes legalDoc4 {
        0%, 100% {
            transform: translateY(0) rotate(10deg);
        }

        50% {
            transform: translateY(18px) rotate(7deg);
        }
    }

    @keyframes legalDoc5 {
        0%, 100% {
            transform: translateY(0) rotate(-10deg);
        }

        50% {
            transform: translateY(-16px) rotate(-7deg);
        }
    }

    @keyframes legalDoc6 {
        0%, 100% {
            transform: translateY(0) rotate(8deg);
        }

        50% {
            transform: translateY(22px) rotate(11deg);
        }
    }

}



/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ФИНАЛЬНАЯ КОРРЕКТИРОВКА
   ========================================= */

@media (max-width: 767px) {

    /* Запрещаем странице уезжать вправо/влево */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* Все основные секции не могут быть шире экрана */
    main,
    section,
    .container,
    .services,
    .services-grid,
    .contacts,
    .contacts-inner,
    .contacts-content,
    .contact-form,
    .footer {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Немного увеличиваем высоту синего блока контактов,
       чтобы белый footer начинался ниже */
    .contacts {
        padding-bottom: 85px !important;
    }

    /* Сам контейнер контактов не должен вылезать за экран */
    .contacts-inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Форма заявки */
    .contact-form {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Декоративные листы могут выходить за границы,
       но не создают горизонтальный скролл */
    .floating-legal-documents,
    .services-grid {
        overflow: visible;
    }

    /* footer остаётся строго внутри ширины телефона */
    .footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* =========================================
   ФИНАЛ — МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 767px) {

    /* Страница строго по ширине телефона */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Блок услуг не расширяет страницу */
    .services {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .services-grid {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Карточки поверх документов */
    .service-card {
        position: relative !important;
        z-index: 5 !important;
    }

    /* Контейнер документов */
    .mobile-legal-docs {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Сами листы */
    .mobile-doc {
        z-index: 1 !important;
        opacity: .9 !important;
    }

    /* Правый лист 1 */
    .mobile-doc-1 {
        right: -82px !important;
    }

    /* Левый лист 2 */
    .mobile-doc-2 {
        left: -88px !important;
    }

    /* Правый лист 3 */
    .mobile-doc-3 {
        right: -80px !important;
    }

    /* Левый лист 4 */
    .mobile-doc-4 {
        left: -86px !important;
    }

    /* Правый лист 5 */
    .mobile-doc-5 {
        right: -82px !important;
    }

    /* Левый лист 6 */
    .mobile-doc-6 {
        left: -88px !important;
    }

    /* Правый лист 7 */
    .mobile-doc-7 {
        position: absolute !important;
        right: -82px !important;
        top: 2860px !important;
        width: 135px !important;
        height: 190px !important;
        transform: rotate(-7deg);
        animation: legalDoc7 16s ease-in-out infinite;
    }

    /* Контакты — чуть больше воздуха снизу */
    .contacts {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 85px !important;
        overflow: hidden !important;
    }

    .contacts-inner,
    .contacts-content,
    .contact-form {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Footer строго по ширине телефона */
    .footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@keyframes legalDoc7 {
    0%, 100% {
        transform: translateY(0) rotate(-7deg);
    }

    50% {
        transform: translateY(-18px) rotate(-4deg);
    }
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЗАПРЕТ ГОРИЗОНТАЛЬНОГО СКРОЛЛА
   ========================================= */

@media (max-width: 767px) {

    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    main,
    header,
    footer,
    section,
    .container,
    .services,
    .services-grid,
    .contacts {
        max-width: 100%;
    }
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЦЕНТРИРОВКА ЗАЯВКИ
   ========================================= */

@media (max-width: 767px) {

    .contacts {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .contacts-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .contacts-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .contacts-content .eyebrow {
        justify-content: center !important;
        text-align: center !important;
    }

    .contacts-content h2 {
        width: 100% !important;
        max-width: 390px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .contacts-content > p {
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .contact-details {
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-items: center !important;
        text-align: center !important;
    }

    .contact-details a {
        text-align: center !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 390px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .contact-form .form-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form label {
        text-align: left !important;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form button {
        display: flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .contact-form small {
        display: block !important;
        text-align: center !important;
    }
}

/* =========================================
   УСЛУГИ — НОРМАЛЬНАЯ СЕТКА ПК
   ========================================= */

@media (min-width: 768px) {

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: 360px !important;
        height: auto !important;
    }

    .services-grid > .service-card {
        height: 360px !important;
        min-height: 360px !important;
        max-height: none !important;
        padding: 35px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .services-grid > .service-card h3 {
        margin-top: 55px !important;
        margin-bottom: 18px !important;
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .services-grid > .service-card p {
        margin-top: 0 !important;
        max-width: 360px !important;
        font-size: 12px !important;
        line-height: 1.7 !important;
    }

    .services-grid > .service-card a {
        position: absolute !important;
        left: 35px !important;
        bottom: 28px !important;
        margin: 0 !important;
    }
}

/* =========================================
   КАРТОЧКИ УСЛУГ — ФИНАЛЬНАЯ ВЫСОТА ПК
   ========================================= */

@media (min-width: 768px) {

    .services-grid {
        grid-auto-rows: 310px !important;
    }

    .services-grid > .service-card {
        height: 310px !important;
        min-height: 310px !important;
        max-height: 310px !important;
        box-sizing: border-box !important;
    }

}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ВОЗВРАЩАЕМ ЛИСТОЧКИ
   ========================================= */

@media (max-width: 767px) {

    /* Показываем декоративные элементы */
    .services-grid > .mobile-legal-docs,
    .services-grid > .mobile-document {
        display: block !important;
    }

    /* Контейнер с листочками */
    .services-grid > .mobile-legal-docs {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;

        pointer-events: none !important;
        z-index: 1 !important;
    }

    /* Сами карточки поверх листочков */
    .services-grid > .service-card {
        position: relative !important;
        z-index: 5 !important;
    }

    /* Дополнительные декоративные документы */
    .services-grid > .mobile-document {
        position: absolute !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }

    /* Чтобы листочки были видны по краям,
       но не мешали тексту */
    .mobile-doc {
        opacity: 0.18 !important;
        pointer-events: none !important;
    }

    .mobile-document {
        opacity: 0.18 !important;
        pointer-events: none !important;
    }

}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЛИСТОЧКИ ВИДНЕЕ
   ========================================= */

@media (max-width: 767px) {

    .mobile-doc {
        opacity: 0.32 !important;
    }

    .mobile-document {
        opacity: 0.32 !important;
    }

}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЛИСТОЧКИ ПО ВСЕЙ СЕКЦИИ
   ========================================= */

@media (max-width: 767px) {

    /* Белая секция является областью размещения */
    .services {
        position: relative !important;
        overflow: hidden !important;
    }

    .services-grid {
        position: relative !important;
        overflow: hidden !important;
    }

    /* Карточки всегда поверх декоративных листов */
    .services-grid > .service-card {
        position: relative !important;
        z-index: 5 !important;
    }

    /* Контейнер декоративных листов */
    .services-grid > .mobile-legal-docs {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Общий вид листов */
    .services-grid .mobile-doc,
    .services-grid .mobile-document {
        opacity: 0.32 !important;
        pointer-events: none !important;
    }


    /* =========================================
       ЛЕВЫЕ ЛИСТЫ
       ========================================= */

    .services-grid .mobile-doc-2 {
        left: -75px !important;
        right: auto !important;
        top: 180px !important;
        opacity: 0.30 !important;
        transform: rotate(-7deg) !important;
    }

    .services-grid .mobile-doc-4 {
        left: -70px !important;
        right: auto !important;
        top: 760px !important;
        opacity: 0.32 !important;
        transform: rotate(6deg) !important;
    }

    .services-grid .mobile-doc-6 {
        left: -78px !important;
        right: auto !important;
        top: 1450px !important;
        opacity: 0.30 !important;
        transform: rotate(-8deg) !important;
    }


    /* =========================================
       ПРАВЫЕ ЛИСТЫ
       ========================================= */

    .services-grid .mobile-doc-1 {
        right: -72px !important;
        left: auto !important;
        top: 80px !important;
        opacity: 0.30 !important;
        transform: rotate(7deg) !important;
    }

    .services-grid .mobile-doc-3 {
        right: -68px !important;
        left: auto !important;
        top: 600px !important;
        opacity: 0.32 !important;
        transform: rotate(-6deg) !important;
    }

    .services-grid .mobile-doc-5 {
        right: -75px !important;
        left: auto !important;
        top: 1200px !important;
        opacity: 0.30 !important;
        transform: rotate(8deg) !important;
    }

    .services-grid .mobile-doc-7 {
        right: -70px !important;
        left: auto !important;
        top: 1850px !important;
        opacity: 0.30 !important;
        transform: rotate(-7deg) !important;
    }


    /* =========================================
       ДОПОЛНИТЕЛЬНЫЕ ЛИСТЫ
       ========================================= */

    .services-grid > .mobile-document-1 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 400px !important;
        opacity: 0.25 !important;
        transform: rotate(-5deg) !important;
    }

    .services-grid > .mobile-document-2 {
        display: block !important;
        right: -65px !important;
        left: auto !important;
        top: 950px !important;
        opacity: 0.25 !important;
        transform: rotate(6deg) !important;
    }

    .services-grid > .mobile-document-3 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 1350px !important;
        opacity: 0.25 !important;
        transform: rotate(-7deg) !important;
    }

    .services-grid > .mobile-document-4 {
        display: block !important;
        right: -65px !important;
        left: auto !important;
        top: 1700px !important;
        opacity: 0.25 !important;
        transform: rotate(5deg) !important;
    }

    .services-grid > .mobile-document-5 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 2050px !important;
        opacity: 0.25 !important;
        transform: rotate(-6deg) !important;
    }

}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ЛИСТОЧКИ ПО ВСЕЙ СЕКЦИИ
   ========================================= */

@media (max-width: 767px) {

    /* Белая секция является областью размещения */
    .services {
        position: relative !important;
        overflow: hidden !important;
    }

    .services-grid {
        position: relative !important;
        overflow: hidden !important;
    }

    /* Карточки всегда поверх декоративных листов */
    .services-grid > .service-card {
        position: relative !important;
        z-index: 5 !important;
    }

    /* Контейнер декоративных листов */
    .services-grid > .mobile-legal-docs {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Общий вид листов */
    .services-grid .mobile-doc,
    .services-grid .mobile-document {
        opacity: 0.32 !important;
        pointer-events: none !important;
    }


    /* =========================================
       ЛЕВЫЕ ЛИСТЫ
       ========================================= */

    .services-grid .mobile-doc-2 {
        left: -75px !important;
        right: auto !important;
        top: 180px !important;
        opacity: 0.30 !important;
        transform: rotate(-7deg) !important;
    }

    .services-grid .mobile-doc-4 {
        left: -70px !important;
        right: auto !important;
        top: 760px !important;
        opacity: 0.32 !important;
        transform: rotate(6deg) !important;
    }

    .services-grid .mobile-doc-6 {
        left: -78px !important;
        right: auto !important;
        top: 1450px !important;
        opacity: 0.30 !important;
        transform: rotate(-8deg) !important;
    }


    /* =========================================
       ПРАВЫЕ ЛИСТЫ
       ========================================= */

    .services-grid .mobile-doc-1 {
        right: -72px !important;
        left: auto !important;
        top: 80px !important;
        opacity: 0.30 !important;
        transform: rotate(7deg) !important;
    }

    .services-grid .mobile-doc-3 {
        right: -68px !important;
        left: auto !important;
        top: 600px !important;
        opacity: 0.32 !important;
        transform: rotate(-6deg) !important;
    }

    .services-grid .mobile-doc-5 {
        right: -75px !important;
        left: auto !important;
        top: 1200px !important;
        opacity: 0.30 !important;
        transform: rotate(8deg) !important;
    }

    .services-grid .mobile-doc-7 {
        right: -70px !important;
        left: auto !important;
        top: 1850px !important;
        opacity: 0.30 !important;
        transform: rotate(-7deg) !important;
    }


    /* =========================================
       ДОПОЛНИТЕЛЬНЫЕ ЛИСТЫ
       ========================================= */

    .services-grid > .mobile-document-1 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 400px !important;
        opacity: 0.25 !important;
        transform: rotate(-5deg) !important;
    }

    .services-grid > .mobile-document-2 {
        display: block !important;
        right: -65px !important;
        left: auto !important;
        top: 950px !important;
        opacity: 0.25 !important;
        transform: rotate(6deg) !important;
    }

    .services-grid > .mobile-document-3 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 1350px !important;
        opacity: 0.25 !important;
        transform: rotate(-7deg) !important;
    }

    .services-grid > .mobile-document-4 {
        display: block !important;
        right: -65px !important;
        left: auto !important;
        top: 1700px !important;
        opacity: 0.25 !important;
        transform: rotate(5deg) !important;
    }

    .services-grid > .mobile-document-5 {
        display: block !important;
        left: -65px !important;
        right: auto !important;
        top: 2050px !important;
        opacity: 0.25 !important;
        transform: rotate(-6deg) !important;
    }

}

/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   НОВЫЕ ДЕКОРАТИВНЫЕ ЮРИДИЧЕСКИЕ ЛИСТЫ
   ========================================================== */

@media (max-width: 767px) {

    /* Белый блок услуг */
    .services {
        position: relative !important;
        overflow: hidden !important;
    }

    .services-grid {
        position: relative !important;
        overflow: hidden !important;
    }

    /* ======================================================
       КОНТЕЙНЕР ЛИСТОВ
       ====================================================== */

    .services-grid > .mobile-legal-docs {
        display: block !important;

        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100% !important;

        z-index: 1 !important;

        pointer-events: none !important;

        overflow: hidden !important;
    }


    /* ======================================================
       ВСЕ КАРТОЧКИ ПОВЕРХ ЛИСТОВ
       ====================================================== */

    .services-grid > .service-card {
        position: relative !important;
        z-index: 10 !important;
    }


    /* ======================================================
       САМ ЛИСТ
       ====================================================== */

    .services-grid .mobile-doc {
        position: absolute !important;

        display: block !important;

        width: 145px !important;
        height: 205px !important;

        box-sizing: border-box !important;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,.98),
                rgba(249,247,241,.94)
            ) !important;

        border: 1px solid rgba(201,162,77,.42) !important;

        box-shadow:
            0 8px 25px rgba(20,35,55,.08) !important;

        opacity: .62 !important;

        z-index: 1 !important;

        pointer-events: none !important;

        overflow: hidden !important;
    }


    /* ======================================================
       ЛИНИИ НА ЛИСТЕ
       ====================================================== */

    .services-grid .mobile-doc i {
        display: block !important;

        width: 72% !important;
        height: 1px !important;

        margin-left: 14% !important;
        margin-top: 16px !important;

        background: rgba(35,55,80,.13) !important;
    }


    /* ======================================================
       ЗАГОЛОВОК ДОКУМЕНТА
       ====================================================== */

    .services-grid .mobile-doc span {
        display: block !important;

        padding: 22px 14px 0 !important;

        color: rgba(23,49,82,.30) !important;

        font-family: Arial, sans-serif !important;

        font-size: 9px !important;

        line-height: 1.4 !important;

        font-weight: 700 !important;

        text-align: center !important;

        letter-spacing: .7px !important;

        text-transform: uppercase !important;
    }


    /* ======================================================
       НОМЕР / ЗНАК ДОКУМЕНТА
       ====================================================== */

    .services-grid .mobile-doc b {
        position: absolute !important;

        left: 14px !important;
        bottom: 14px !important;

        color: rgba(201,162,77,.42) !important;

        font-family: Georgia, serif !important;

        font-size: 18px !important;

        font-weight: 400 !important;
    }


    /* ======================================================
       ЛЕВАЯ СТОРОНА — ЛИСТ №1
       ====================================================== */

    .services-grid .mobile-doc-2 {
        left: -92px !important;
        right: auto !important;
        top: 80px !important;

        transform: rotate(-8deg) !important;

        opacity: .60 !important;
    }


    /* ======================================================
       ПРАВАЯ СТОРОНА — ЛИСТ №1
       ====================================================== */

    .services-grid .mobile-doc-1 {
        right: -92px !important;
        left: auto !important;
        top: 360px !important;

        transform: rotate(8deg) !important;

        opacity: .60 !important;
    }


    /* ======================================================
       ЛЕВАЯ СТОРОНА — ЛИСТ №2
       ====================================================== */

    .services-grid .mobile-doc-4 {
        left: -88px !important;
        right: auto !important;
        top: 700px !important;

        transform: rotate(7deg) !important;

        opacity: .58 !important;
    }


    /* ======================================================
       ПРАВАЯ СТОРОНА — ЛИСТ №2
       ====================================================== */

    .services-grid .mobile-doc-3 {
        right: -90px !important;
        left: auto !important;
        top: 990px !important;

        transform: rotate(-7deg) !important;

        opacity: .58 !important;
    }


    /* ======================================================
       ЛЕВАЯ СТОРОНА — ЛИСТ №3
       ====================================================== */

    .services-grid .mobile-doc-6 {
        left: -92px !important;
        right: auto !important;
        top: 1330px !important;

        transform: rotate(-8deg) !important;

        opacity: .60 !important;
    }


    /* ======================================================
       ПРАВАЯ СТОРОНА — ЛИСТ №3
       ====================================================== */

    .services-grid .mobile-doc-5 {
        right: -88px !important;
        left: auto !important;
        top: 1630px !important;

        transform: rotate(7deg) !important;

        opacity: .58 !important;
    }


    /* ======================================================
       САМЫЙ НИЗ — ЕЩЁ ОДИН ЛИСТ СПРАВА
       ====================================================== */

    .services-grid .mobile-doc-7 {
        right: -90px !important;
        left: auto !important;
        top: 2150px !important;

        width: 145px !important;
        height: 205px !important;

        transform: rotate(-7deg) !important;

        opacity: .60 !important;

        animation: none !important;
    }


    /* ======================================================
       ДОПОЛНИТЕЛЬНЫЕ ЛИСТЫ
       Используем существующие mobile-document,
       но делаем их очень мягкими.
       ====================================================== */

    .services-grid > .mobile-document {
        z-index: 2 !important;

        pointer-events: none !important;

        opacity: .28 !important;
    }


    .services-grid > .mobile-document-1 {
        left: -80px !important;
        right: auto !important;
        top: 520px !important;

        transform: rotate(-6deg) !important;
    }


    .services-grid > .mobile-document-2 {
        right: -78px !important;
        left: auto !important;
        top: 1240px !important;

        transform: rotate(6deg) !important;
    }


    .services-grid > .mobile-document-3 {
        left: -78px !important;
        right: auto !important;
        top: 1850px !important;

        transform: rotate(-7deg) !important;
    }


    .services-grid > .mobile-document-4 {
        right: -78px !important;
        left: auto !important;
        top: 2400px !important;

        transform: rotate(7deg) !important;
    }


    .services-grid > .mobile-document-5 {
        left: -80px !important;
        right: auto !important;
        top: 2850px !important;

        transform: rotate(-6deg) !important;
    }

}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ — ПОЛНОСТЬЮ УБИРАЕМ ВСЕ ЛИСТЫ
   ========================================================= */

@media (max-width: 767px) {

    /* Все декоративные листы внутри блока услуг */
    .mobile-legal-docs,
    .mobile-legal-docs *,
    .mobile-document,
    [class*="mobile-document"],
    [class*="mobile-doc"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: none !important;
        box-shadow: none !important;
        content: none !important;
    }

}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ЮРИДИЧЕСКИЕ ЛИСТЫ ПО ВСЕЙ ВЫСОТЕ БЛОКА УСЛУГ
   ========================================================= */

@media (max-width: 767px) {

    /* Белый блок услуг */
    .services {
        position: relative !important;
        overflow: hidden !important;
    }

    .services-grid {
        position: relative !important;
        overflow: hidden !important;
    }


    /* =====================================================
       СТАРЫЕ ДОПОЛНИТЕЛЬНЫЕ ДОКУМЕНТЫ НЕ ИСПОЛЬЗУЕМ,
       ЧТОБЫ НЕ БЫЛО НАЛОЖЕНИЙ
       ===================================================== */

    .services-grid > .mobile-document,
    .services-grid > .mobile-document-1,
    .services-grid > .mobile-document-2,
    .services-grid > .mobile-document-3,
    .services-grid > .mobile-document-4,
    .services-grid > .mobile-document-5 {
        display: none !important;
    }


    /* =====================================================
       КОНТЕЙНЕР ОСНОВНЫХ ЛИСТОВ
       ===================================================== */

    .services-grid > .mobile-legal-docs {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100% !important;

        z-index: 1 !important;

        display: block !important;

        pointer-events: none !important;

        overflow: hidden !important;
    }


    /* =====================================================
       КАРТОЧКИ ВСЕГДА ПОВЕРХ ЛИСТОВ
       ===================================================== */

    .services-grid > .service-card {
        position: relative !important;
        z-index: 5 !important;
    }


    /* =====================================================
       ОБЩИЙ ВИД ЛИСТА
       ===================================================== */

    .services-grid .mobile-doc {
        display: block !important;

        position: absolute !important;

        width: 145px !important;
        height: 205px !important;

        box-sizing: border-box !important;

        background: rgba(255,255,255,.96) !important;

        border: 1px solid rgba(201,162,77,.38) !important;

        box-shadow:
            0 10px 28px rgba(20,40,65,.06) !important;

        opacity: .72 !important;

        overflow: hidden !important;

        pointer-events: none !important;
    }


    /* =====================================================
       ТЕКСТ НА ЛИСТЕ
       ===================================================== */

    .services-grid .mobile-doc span {
        display: block !important;

        padding: 22px 12px 0 !important;

        color: rgba(24,48,78,.30) !important;

        font-family: Arial, sans-serif !important;

        font-size: 8px !important;

        line-height: 1.4 !important;

        font-weight: 700 !important;

        letter-spacing: .6px !important;

        text-align: center !important;

        text-transform: uppercase !important;
    }


    /* =====================================================
       ЛИНИИ ТЕКСТА
       ===================================================== */

    .services-grid .mobile-doc i {
        display: block !important;

        width: 72% !important;
        height: 1px !important;

        margin-left: 14% !important;
        margin-top: 15px !important;

        background: rgba(30,50,75,.12) !important;
    }


    /* =====================================================
       ЗНАК / НОМЕР
       ===================================================== */

    .services-grid .mobile-doc b {
        position: absolute !important;

        left: 13px !important;
        bottom: 13px !important;

        color: rgba(201,162,77,.48) !important;

        font-family: Georgia, serif !important;

        font-size: 18px !important;

        font-weight: 400 !important;
    }


    /* =====================================================
       ЛЕВАЯ СТОРОНА
       ===================================================== */

    .services-grid .mobile-doc-2 {
        left: -93px !important;
        right: auto !important;
        top: 80px !important;

        transform: rotate(-7deg) !important;

        opacity: .68 !important;
    }


    .services-grid .mobile-doc-4 {
        left: -91px !important;
        right: auto !important;
        top: 760px !important;

        transform: rotate(6deg) !important;

        opacity: .68 !important;
    }


    .services-grid .mobile-doc-6 {
        left: -94px !important;
        right: auto !important;
        top: 1480px !important;

        transform: rotate(-7deg) !important;

        opacity: .68 !important;
    }


    /* =====================================================
       ПРАВАЯ СТОРОНА
       ===================================================== */

    .services-grid .mobile-doc-1 {
        right: -92px !important;
        left: auto !important;
        top: 410px !important;

        transform: rotate(7deg) !important;

        opacity: .68 !important;
    }


    .services-grid .mobile-doc-3 {
        right: -91px !important;
        left: auto !important;
        top: 1120px !important;

        transform: rotate(-6deg) !important;

        opacity: .68 !important;
    }


    .services-grid .mobile-doc-5 {
        right: -94px !important;
        left: auto !important;
        top: 1840px !important;

        transform: rotate(7deg) !important;

        opacity: .68 !important;
    }


    /* =====================================================
       ДОПОЛНИТЕЛЬНЫЙ ЛИСТ ВНИЗУ
       ===================================================== */

    .services-grid .mobile-doc-7 {
        right: -91px !important;
        left: auto !important;
        top: 2560px !important;

        width: 145px !important;
        height: 205px !important;

        transform: rotate(-7deg) !important;

        opacity: .68 !important;

        animation: none !important;
    }

}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — УБРАТЬ ВСЕ ЛИСТЫ
   ========================================= */

@media (max-width: 767px) {

    /* Все мобильные декоративные документы */
    .mobile-legal-docs,
    .mobile-legal-docs *,
    .mobile-document,
    .mobile-document-1,
    .mobile-document-2,
    .mobile-document-3,
    .mobile-document-4,
    .mobile-document-5,

    /* Другие возможные контейнеры декоративных документов */
    .floating-legal-documents,
    .legal-doc,
    .legal-document,
    .document-decoration,
    .document-bg,

    /* Изображения документов внутри услуг */
    .services .mobile-legal-docs img,
    .services .floating-legal-documents img {

        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background-image: none !important;
    }
}

/* =========================================
   УБИРАЕМ ДВА ДЕКОРАТИВНЫХ ЛИСТА НА МОБИЛЬНОМ
   ========================================= */

@media (max-width: 767px) {

    .services-grid::before,
    .services-grid::after {
        content: none !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        animation: none !important;
        pointer-events: none !important;
    }

}

/* =========================================
   ПОЛНОСТЬЮ УБИРАЕМ ДЕКОРАТИВНЫЕ ЛИСТЫ
   НА МОБИЛЬНОЙ ВЕРСИИ
   ========================================= */

@media (max-width: 767px) {

    /* Листы вокруг блока услуг */
    .services::before,
    .services::after,

    /* Листы самого грида услуг */
    .services-grid::before,
    .services-grid::after,

    /* Отдельные мобильные документы */
    .mobile-legal-docs,
    .mobile-doc,
    .mobile-doc-1,
    .mobile-doc-2,
    .mobile-doc-3,
    .mobile-doc-4,
    .mobile-doc-5,
    .mobile-doc-6,
    .mobile-doc-7 {
        display: none !important;
        content: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        animation: none !important;
    }

}

/* Убираем декоративный SCROLL в hero */
.hero-scroll,
.scroll-indicator,
.scroll-line {
    display: none !important;
}

/* =========================================================
   CONTACTS — FINAL LAYOUT AND FORM
   ========================================================= */

.contacts {
    min-height: 760px !important;
    height: auto !important;
    padding: 112px 0 !important;
    overflow: hidden !important;
    background: var(--navy2);
}

.contacts > .container,
.contacts-inner {
    position: relative;
    z-index: 2;
}

.contacts-inner {
    display: block !important;
    width: min(calc(100% - 80px), var(--container)) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
}

.contacts-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(56px, 7vw, 104px);
    align-items: start;
    width: 100%;
    max-width: none;
}

.contacts-content > .eyebrow,
.contacts-content > h2,
.contacts-content > p,
.contacts-content > .contact-details {
    grid-column: 1;
}

.contacts-content > .eyebrow {
    grid-row: 1;
}

.contacts-content > h2 {
    grid-row: 2;
    max-width: 560px;
    margin: 26px 0 0 !important;
}

.contacts-content > p {
    grid-row: 3;
    max-width: 470px;
    margin: 28px 0 0 !important;
    color: rgba(223, 230, 240, 0.67);
    font-size: 15px;
    line-height: 1.8;
}

.contact-details {
    grid-row: 4;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px !important;
    width: 100%;
    max-width: 500px;
    margin: 42px 0 0 !important;
    align-items: start !important;
}

.contact-details a {
    min-width: 0;
    padding: 15px 16px;
    color: #f4f7fb !important;
    background: rgba(8, 25, 48, 0.24);
    border: 1px solid rgba(201,162,77, 0.18);
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color .25s ease, background .25s ease;
}

.contact-details a:hover {
    color: #ffffff !important;
    background: rgba(8, 25, 48, 0.38);
    border-color: rgba(201,162,77, 0.48);
}

.contact-details a span {
    margin-bottom: 6px;
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: .12em;
}

.contact-details a[href^="mailto"] {
    grid-column: 1 / -1;
    width: fit-content;
    min-width: min(100%, 255px);
}

.contact-form {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 0 0 auto !important;
    padding: 44px !important;
    transform: none !important;
    box-sizing: border-box !important;
    background:
        linear-gradient(145deg, rgba(27, 60, 99, .98), rgba(13, 37, 68, .98)) !important;
    border: 1px solid rgba(201,162,77, .32) !important;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(4, 15, 31, .3);
}

.contact-form:hover {
    transform: none !important;
    border-color: rgba(201,162,77, .42) !important;
}

.contact-form .form-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.contact-form label,
.contact-form .form-row label,
.contact-form > label {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    color: rgba(235, 240, 247, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
}

.contact-form > label {
    margin-top: 25px !important;
}

.contact-form input,
.contact-form label > input,
.contact-form textarea {
    width: 100% !important;
    margin: 11px 0 0 !important;
    padding: 0 17px !important;
    color: #ffffff;
    background: rgba(5, 22, 45, .42) !important;
    border: 1px solid rgba(221, 229, 240, .17) !important;
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    box-sizing: border-box !important;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.contact-form input,
.contact-form label > input {
    height: 56px !important;
}

.contact-form textarea {
    min-height: 150px !important;
    height: 150px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(190, 203, 220, .55);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(5, 22, 45, .58) !important;
    border-color: rgba(201,162,77, .88) !important;
    box-shadow: 0 0 0 3px rgba(201,162,77, .11);
}

.contact-form .button {
    position: relative;
    width: 100%;
    min-height: 60px;
    margin: 28px 0 0 !important;
    padding: 0 58px;
    justify-content: center;
    color: #102746;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 15px 30px rgba(4, 15, 31, .2);
}

.contact-form .button span {
    position: absolute;
    right: 24px;
    font-size: 18px;
}

.contact-form .button:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(4, 15, 31, .25);
}

.contact-form .button:disabled {
    transform: none;
    cursor: wait;
    opacity: .75;
}

.contact-form small {
    display: block;
    max-width: 430px;
    margin: 17px auto 0 !important;
    color: rgba(190, 203, 220, .55);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1100px) and (min-width: 900px) {
    .contacts {
        min-height: 720px !important;
        padding: 92px 0 !important;
    }

    .contacts-content {
        grid-template-columns: minmax(0, .85fr) minmax(430px, 1fr);
        column-gap: 46px;
    }

    .contact-form {
        padding: 36px !important;
    }

    .contacts-content > h2 {
        font-size: clamp(44px, 5vw, 58px);
    }
}

@media (max-width: 899px) {
    .contacts {
        min-height: 0 !important;
        padding: 84px 24px !important;
    }

    .contacts-inner {
        width: min(100%, 680px) !important;
    }

    .contacts-content {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: none !important;
        text-align: left !important;
    }

    .contacts-content > .eyebrow {
        justify-content: flex-start !important;
    }

    .contacts-content > h2,
    .contacts-content > p {
        width: 100% !important;
        max-width: 560px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .contact-details {
        width: 100% !important;
        max-width: 520px !important;
        margin: 34px 0 0 !important;
        text-align: left !important;
    }

    .contact-details a {
        text-align: left !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 680px !important;
        margin: 50px 0 0 !important;
        padding: 40px !important;
        align-self: stretch;
    }
}

@media (max-width: 560px) {
    .contacts {
        padding: 72px 16px !important;
    }

    .contacts-content > h2 {
        font-size: clamp(40px, 12vw, 52px);
        letter-spacing: -2px;
    }

    .contacts-content > p {
        font-size: 14px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 12px !important;
    }

    .contact-details a,
    .contact-details a[href^="mailto"] {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-form {
        margin-top: 40px !important;
        padding: 28px 22px !important;
        border-radius: 15px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .contact-form > label {
        margin-top: 22px !important;
    }

    .contact-form textarea {
        min-height: 145px !important;
        height: 145px;
    }

    .contact-form .button {
        min-height: 58px;
        padding: 0 50px 0 20px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .contact-form .button span {
        right: 20px;
    }
}

/* =========================================================
   SERVICES — COMPACT PREMIUM GRID
   ========================================================= */

.services {
    padding: 112px 0 104px !important;
    background: var(--navy) !important;
    color: #ffffff !important;
}

.services > .container {
    width: min(calc(100% - 64px), 1380px) !important;
    max-width: 1380px !important;
}

.services .section-heading {
    display: block !important;
    max-width: 980px;
    margin: 0 auto 58px !important;
    text-align: center;
}

.services .section-heading > div {
    width: 100%;
}

.services .section-heading .eyebrow {
    justify-content: center;
    color: var(--gold-light);
}

.services .section-heading .eyebrow > span {
    display: block;
    width: 30px;
    height: 1px;
    margin: 0 13px;
    background: var(--gold);
}

.services .section-heading h2 {
    max-width: 920px;
    margin: 24px auto 0 !important;
    color: #ffffff;
    font-size: clamp(42px, 4.6vw, 66px);
    line-height: 1.04;
    letter-spacing: -2.6px;
}

.services .section-heading h2 > span {
    color: var(--gold-light);
}

.services .section-heading > p {
    max-width: 650px !important;
    margin: 25px auto 0 !important;
    color: rgba(226, 233, 242, .7) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(340px, auto) !important;
    gap: 0 !important;
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: auto !important;
    overflow: hidden;
    background: #d9dee5;
    border: 1px solid rgba(211, 218, 227, .9) !important;
    border-radius: 12px 12px 0 0;
}

.services .services-grid > .mobile-legal-docs,
.services .services-grid > .mobile-document {
    display: none !important;
}

.services .services-grid > .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto !important;
    min-height: 340px !important;
    max-height: none !important;
    padding: 30px 25px !important;
    overflow: visible;
    color: var(--navy);
    background: #fbfbfa;
    border: 0 !important;
    border-right: 1px solid #d9dee5 !important;
    border-bottom: 1px solid #d9dee5 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.services .services-grid > .service-card:nth-of-type(5n) {
    border-right: 0 !important;
}

.services .services-grid > .service-card:nth-of-type(n + 6) {
    border-bottom: 0 !important;
}

.services .service-card::before {
    height: 2px;
}

.services .service-card .service-number {
    display: none;
}

.services .service-card .service-icon {
    flex: 0 0 auto;
    min-height: 42px;
    color: var(--gold) !important;
    font-size: 36px !important;
    line-height: 1;
}

.services .services-grid > .service-card h3 {
    margin: 24px 0 0 !important;
    color: var(--navy) !important;
    font-size: clamp(17px, 1.35vw, 20px) !important;
    font-weight: 700;
    line-height: 1.24 !important;
    letter-spacing: -.25px;
    overflow-wrap: anywhere;
}

.services .services-grid > .service-card p {
    flex: 0 0 auto;
    max-width: none !important;
    margin: 13px 0 0 !important;
    color: #66758a !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

.services .service-card:hover {
    z-index: 1;
    background: #f4f1e9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(4, 15, 31, .08) !important;
}

.services .service-card:hover .service-icon {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.services .service-details-link {
    display: inline-flex;
    align-items: center;
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 18px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.services .service-details-link:hover,
.services .service-details-link:focus-visible {
    color: #f2d28f;
}

.services .services-cta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 132px;
    padding: 30px 38px;
    background: #0b213e;
    border: 1px solid rgba(201,162,77, .22);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
}

.services .services-cta-copy {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
}

.services .services-cta h3 {
    flex: 0 0 auto;
    margin: 0;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.25;
}

.services .services-cta p {
    max-width: 440px;
    margin: 0;
    color: rgba(222, 230, 240, .66);
    font-size: 13px;
    line-height: 1.6;
}

.services .services-cta .button {
    flex: 0 0 auto;
    min-width: 285px;
    min-height: 58px;
    justify-content: center;
}

@media (min-width: 1200px) and (max-width: 1350px) {
    .services .services-grid {
        grid-auto-rows: minmax(380px, auto) !important;
    }

    .services .services-grid > .service-card {
        min-height: 380px !important;
    }
}

@media (max-width: 1199px) {
    .services .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(310px, auto) !important;
    }

    .services .services-grid > .service-card {
        height: auto !important;
        min-height: 310px !important;
        max-height: none !important;
        border-right: 1px solid #d9dee5 !important;
        border-bottom: 1px solid #d9dee5 !important;
    }

    .services .services-grid > .service-card:nth-of-type(3n) {
        border-right: 0 !important;
    }

    .services .services-grid > .service-card:nth-of-type(10) {
        border-bottom: 0 !important;
    }

    .services .services-cta-copy {
        display: block;
    }

    .services .services-cta p {
        margin-top: 8px;
    }
}

@media (max-width: 899px) and (min-width: 768px) {
    .services > .container {
        width: min(calc(100% - 48px), 760px) !important;
    }

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

    .services .services-grid > .service-card:nth-of-type(3n) {
        border-right: 1px solid #d9dee5 !important;
    }

    .services .services-grid > .service-card:nth-of-type(2n) {
        border-right: 0 !important;
    }

    .services .services-grid > .service-card:nth-of-type(n + 9) {
        border-bottom: 0 !important;
    }

    .services .services-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .services {
        padding: 78px 0 72px !important;
    }

    .services > .container {
        width: calc(100% - 32px) !important;
    }

    .services .section-heading {
        margin-bottom: 38px !important;
    }

    .services .section-heading .eyebrow {
        font-size: 10px;
    }

    .services .section-heading h2 {
        margin-top: 19px !important;
        font-size: clamp(36px, 10.8vw, 49px) !important;
        line-height: 1.05 !important;
        letter-spacing: -1.8px !important;
    }

    .services .section-heading > p {
        margin-top: 20px !important;
        font-size: 13px !important;
    }

    .services .services-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        border-radius: 10px 10px 0 0;
    }

    .services .services-grid > .service-card {
        height: auto !important;
        min-height: 320px !important;
        max-height: none !important;
        padding: 27px 25px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #d9dee5 !important;
    }

    .services .services-grid > .service-card:last-of-type {
        border-bottom: 0 !important;
    }

    .services .services-grid > .service-card h3 {
        margin-top: 20px !important;
        font-size: 19px !important;
    }

    .services .services-grid > .service-card p {
        font-size: 14px !important;
    }

    .services .services-cta {
        min-height: 0;
        padding: 28px 24px;
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        border-radius: 0 0 10px 10px;
    }

    .services .services-cta-copy {
        display: block;
    }

    .services .services-cta h3 {
        font-size: 21px;
    }

    .services .services-cta p {
        margin-top: 9px;
    }

    .services .services-cta .button {
        width: 100%;
        min-width: 0;
        padding: 0 22px;
        text-align: center;
    }
}

@media (hover: none) {
    .services .service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   HERO — FINAL PREMIUM COMPOSITION
   ========================================================= */

.hero {
    min-height: 790px !important;
    height: auto !important;
    padding: 118px 0 64px !important;
    align-items: center !important;
    background:
        radial-gradient(circle at 76% 45%, rgba(23, 54, 93, .9), transparent 38%),
        linear-gradient(125deg, #0d213c 0%, var(--navy) 58%, #0b1e37 100%) !important;
}

.hero .hero-bg {
    opacity: .34;
    background-image:
        linear-gradient(90deg, rgba(8, 24, 45, .78), rgba(8, 24, 45, .12)),
        repeating-linear-gradient(90deg, transparent 0, transparent 159px, rgba(255, 255, 255, .025) 160px) !important;
}

.hero .hero-inner {
    width: min(calc(100% - 80px), 1380px) !important;
    max-width: 1380px !important;
    grid-template-columns: minmax(0, 1.06fr) minmax(440px, .94fr) !important;
    gap: clamp(52px, 7vw, 108px) !important;
    padding-top: 0 !important;
}

.hero .hero-content {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.hero .eyebrow {
    color: var(--gold) !important;
}

.hero .eyebrow span {
    background: var(--gold) !important;
}

.hero h1 {
    max-width: 690px !important;
    margin: 24px 0 0 !important;
    color: #ffffff !important;
    font-size: clamp(62px, 5.65vw, 82px) !important;
    font-weight: 700 !important;
    line-height: .94 !important;
    letter-spacing: -4.2px !important;
}

.hero h1 span {
    color: var(--gold) !important;
}

.hero .hero-description {
    max-width: 610px !important;
    margin: 30px 0 0 !important;
    color: rgba(224, 231, 240, .76) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.hero .hero-buttons {
    display: flex !important;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px !important;
    margin-top: 34px !important;
}

.hero .hero-buttons .button {
    min-height: 56px !important;
    padding: 0 26px !important;
    border-radius: 0;
}

.hero .hero-buttons .button-primary {
    color: #102746 !important;
    background: var(--gold) !important;
}

.hero .hero-buttons .button-primary:hover {
    background: var(--gold) !important;
    filter: brightness(1.06);
}

.hero .hero-buttons .button-secondary {
    color: #ffffff !important;
    background: rgba(8, 25, 48, .22) !important;
    border-color: var(--gold) !important;
}

.hero .hero-buttons .button-secondary:hover {
    color: var(--gold) !important;
    background: rgba(8, 25, 48, .48) !important;
}

.hero .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 700px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero .hero-benefit {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.hero .hero-benefit-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 7px;
    font-size: 15px;
    line-height: 1;
}

.hero .hero-benefit strong,
.hero .hero-benefit small {
    display: block;
}

.hero .hero-benefit strong {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
}

.hero .hero-benefit small {
    margin-top: 5px;
    color: rgba(211, 221, 233, .57);
    font-size: 9px;
    line-height: 1.45;
}

.hero .hero-visual {
    min-height: 565px !important;
}

.hero .hero-card {
    width: 390px !important;
    height: 510px !important;
    top: 24px !important;
    right: 54px !important;
    padding: 34px !important;
    background: linear-gradient(145deg, rgba(29, 65, 109, .92), rgba(12, 35, 65, .96)) !important;
    border: 1px solid rgba(201, 162, 77, .58) !important;
    box-shadow: 0 38px 90px rgba(2, 13, 29, .4), 0 0 32px rgba(201, 162, 77, .08) !important;
    transform: rotate(4deg) !important;
}

.hero .hero-card:hover {
    transform: rotate(3deg) translateY(-5px) !important;
}

.hero .hero-card h3 {
    margin-top: 145px !important;
    font-size: 37px !important;
}

.hero .hero-card p {
    color: rgba(221, 230, 241, .63) !important;
}

.hero .card-top,
.hero .card-bottom,
.hero .floating-icon,
.hero .floating-card-bottom strong {
    color: var(--gold) !important;
}

.hero .card-line {
    background: var(--gold) !important;
}

.hero .floating-card {
    background: rgba(10, 29, 53, .94) !important;
    border: 1px solid rgba(201, 162, 77, .42) !important;
    box-shadow: 0 18px 42px rgba(2, 13, 29, .34) !important;
}

.hero .floating-card-top {
    top: 58px !important;
    left: 0 !important;
}

.hero .floating-card-bottom {
    right: 0 !important;
    bottom: 62px !important;
}

.hero .floating-card strong {
    color: #ffffff;
}

.hero .floating-card small,
.hero .floating-card-bottom span {
    color: rgba(220, 229, 240, .62) !important;
}

.hero .floating-card-bottom strong {
    font-size: 32px !important;
}

@media (max-width: 1199px) and (min-width: 900px) {
    .hero {
        min-height: 740px !important;
        padding-top: 120px !important;
    }

    .hero .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr) !important;
        gap: 40px !important;
    }

    .hero h1 {
        font-size: clamp(57px, 6vw, 70px) !important;
    }

    .hero .hero-benefits {
        gap: 13px;
    }

    .hero .hero-benefit {
        display: block;
    }

    .hero .hero-benefit div {
        margin-top: 9px;
    }

    .hero .hero-card {
        width: 340px !important;
        height: 470px !important;
        right: 32px !important;
    }

    .hero .hero-card h3 {
        margin-top: 128px !important;
        font-size: 33px !important;
    }
}

@media (max-width: 899px) {
    .hero {
        min-height: 0 !important;
        padding: 138px 0 76px !important;
    }

    .hero .hero-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 58px !important;
        width: min(calc(100% - 48px), 680px) !important;
    }

    .hero h1 {
        max-width: 650px !important;
        font-size: clamp(54px, 9vw, 72px) !important;
    }

    .hero .hero-visual {
        display: block !important;
        width: 100%;
        max-width: 540px;
        min-height: 530px !important;
        margin: 0 auto;
    }

    .hero .hero-card {
        right: 50% !important;
        transform: translateX(50%) rotate(3deg) !important;
    }

    .hero .hero-card:hover {
        transform: translateX(50%) rotate(3deg) !important;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 122px 0 64px !important;
    }

    .hero .hero-inner {
        width: calc(100% - 32px) !important;
        gap: 44px !important;
    }

    .hero h1 {
        margin-top: 20px !important;
        font-size: clamp(45px, 13.2vw, 59px) !important;
        line-height: .98 !important;
        letter-spacing: -2.7px !important;
    }

    .hero .hero-description {
        margin-top: 24px !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .hero .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 11px !important;
        margin-top: 28px !important;
    }

    .hero .hero-buttons .button {
        width: 100% !important;
        min-height: 56px !important;
    }

    .hero .hero-benefits {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 31px;
        padding-top: 24px;
    }

    .hero .hero-benefit small {
        font-size: 10px;
    }

    .hero .hero-visual {
        min-height: 415px !important;
    }

    .hero .hero-card {
        width: min(300px, calc(100vw - 72px)) !important;
        height: 390px !important;
        top: 8px !important;
        padding: 25px !important;
    }

    .hero .hero-card h3 {
        margin-top: 95px !important;
        font-size: 29px !important;
    }

    .hero .hero-card p {
        margin-top: 16px !important;
        font-size: 10px !important;
    }

    .hero .card-bottom {
        right: 25px !important;
        bottom: 23px !important;
        left: 25px !important;
        font-size: 8px;
    }

    .hero .floating-card {
        padding: 12px 13px !important;
    }

    .hero .floating-card-top {
        top: 28px !important;
        left: -2px !important;
    }

    .hero .floating-card-bottom {
        right: -2px !important;
        bottom: 28px !important;
    }

    .hero .floating-card-bottom strong {
        font-size: 25px !important;
    }

    .hero .hero-scroll {
        display: none !important;
    }
}

@media (hover: none) {
    .hero .hero-card:hover,
    .hero .floating-card:hover {
        box-shadow: inherit;
    }
}

/* Unified brand gold for interface accents. */
.logo-text strong,
.header .nav a:hover,
.header .header-contact a:hover,
.eyebrow,
.section-heading h2 span,
.about-content h2 span,
.contacts h2 span,
.service-icon,
.process-number {
    color: var(--gold) !important;
}

/* =========================================================
   HERO — THEMIS POSITION AND LAYERS
   ========================================================= */

.hero > .themis-watermark {
    display: block !important;
    position: absolute !important;
    top: 128px !important;
    bottom: auto !important;
    right: auto !important;
    left: 51% !important;
    width: auto !important;
    height: 545px !important;
    max-width: none !important;
    opacity: .27 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.hero > .themis-watermark img {
    display: block !important;
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

.hero > .hero-bg {
    z-index: 0;
}

.hero > .hero-inner {
    z-index: 2;
}

.hero .hero-content {
    z-index: 5;
}

.hero .hero-card {
    z-index: 3;
}

.hero .floating-card {
    z-index: 4;
}

@media (max-width: 1199px) and (min-width: 900px) {
    .hero > .themis-watermark {
        top: 142px !important;
        left: 52% !important;
        height: 455px !important;
        opacity: .21 !important;
    }
}

@media (max-width: 899px) {
    .hero > .themis-watermark {
        display: none !important;
    }
}

/* =========================================================
   FLOATING LEGAL DOCUMENTS — UNIFIED DECORATIVE SYSTEM
   ========================================================= */

body {
    position: relative;
}

.floating-legal-documents {
    position: absolute !important;
    inset: 0 0 0 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 4 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.floating-legal-documents .legal-document {
    --document-rotate: 0deg;
    --document-opacity: .18;
    --document-duration: 11s;
    --document-delay: 0s;
    display: block !important;
    position: absolute !important;
    padding: 9px !important;
    color: #14243d !important;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 162, 77, .07), transparent 28%),
        linear-gradient(145deg, #f4f7fa 0%, #e8edf2 100%) !important;
    border: 1px solid rgba(20, 45, 80, .17) !important;
    border-radius: 2px;
    box-shadow: 0 20px 48px rgba(4, 18, 36, .14) !important;
    opacity: var(--document-opacity) !important;
    transform: rotate(var(--document-rotate)) translateY(0) !important;
    transform-origin: center;
    animation: legalDocumentFloat var(--document-duration) ease-in-out var(--document-delay) infinite !important;
    transition: opacity .4s ease !important;
    will-change: transform;
}

.floating-legal-documents .legal-document.on-light {
    color: #14243d !important;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 162, 77, .07), transparent 28%),
        linear-gradient(145deg, #f4f7fa 0%, #e8edf2 100%) !important;
    border-color: rgba(20, 45, 80, .17) !important;
    box-shadow: 0 20px 48px rgba(4, 18, 36, .14) !important;
}

.floating-legal-documents .document-inner,
.floating-legal-documents .legal-document.on-light .document-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 21px;
    overflow: hidden;
    border: 1px solid rgba(20, 45, 80, .11) !important;
}

.floating-legal-documents .document-inner::before,
.floating-legal-documents .legal-document.on-light .document-inner::before {
    inset: 8px;
    border-color: rgba(201, 162, 77, .25) !important;
}

.floating-legal-documents .document-header,
.floating-legal-documents .legal-document.on-light .document-header {
    position: relative;
    z-index: 2;
    gap: 12px;
    color: #65748a !important;
    font-size: 6px;
    line-height: 1.35;
    letter-spacing: 1px;
}

.floating-legal-documents .document-header span:last-child {
    flex: 0 0 auto;
    color: var(--brand-gold);
}

.floating-legal-documents .document-title,
.floating-legal-documents .legal-document.on-light .document-title {
    position: relative;
    z-index: 2;
    margin-top: 42px;
    color: #14243d !important;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -.2px;
}

.floating-legal-documents .document-meta {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    color: #58687d;
    font-family: 'Manrope', sans-serif;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.floating-legal-documents .legal-document--left .document-title,
.floating-legal-documents .legal-document--left .document-meta {
    text-align: right;
}

.floating-legal-documents .legal-document--left .document-line.short {
    margin-left: auto;
}

.floating-legal-documents .document-line,
.floating-legal-documents .legal-document.on-light .document-line {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    background: var(--brand-gold) !important;
}

.floating-legal-documents .document-lines {
    position: relative;
    z-index: 2;
    gap: 7px;
    margin-top: 17px;
}

.floating-legal-documents .document-lines i,
.floating-legal-documents .legal-document.on-light .document-lines i {
    height: 1px;
    background: rgba(20, 45, 80, .17) !important;
}

.floating-legal-documents .document-footer-mark {
    position: absolute;
    bottom: 21px;
    left: 21px;
    color: var(--brand-gold);
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.floating-legal-documents .document-signature,
.floating-legal-documents .legal-document.on-light .document-signature {
    right: 21px;
    bottom: 21px;
    color: #66758a !important;
    font-size: 9px;
}

.floating-legal-documents .document-signature--left {
    right: auto;
    left: 21px;
}

.floating-legal-documents .document-stamp,
.floating-legal-documents .legal-document.on-light .document-stamp {
    right: 18px;
    bottom: 17px;
    width: 54px;
    height: 54px;
    color: rgba(201, 162, 77, .16) !important;
    border: 2px solid rgba(201, 162, 77, .14) !important;
}

.floating-legal-documents .document-stamp::before {
    content: "КОРПОРАЦИЯ ПРАВА";
    position: absolute;
    inset: 5px;
    display: grid;
    place-items: start center;
    color: inherit;
    font-size: 4px;
    letter-spacing: .4px;
}

.floating-legal-documents .document-stamp span {
    position: relative;
    z-index: 2;
    font-size: 10px;
}

.floating-legal-documents .legal-document--far {
    --document-opacity: .11;
    z-index: 1;
}

.floating-legal-documents .legal-document--middle {
    --document-opacity: .2;
    z-index: 2;
}

.floating-legal-documents .legal-document--front {
    --document-opacity: .3;
    z-index: 3;
}

.floating-legal-documents .legal-document--decision {
    top: 850px !important;
    right: -168px !important;
    left: auto !important;
    width: 260px !important;
    height: 350px !important;
    --document-rotate: 7deg;
    --document-duration: 12s;
}

.floating-legal-documents .legal-document--code {
    top: 1100px !important;
    left: -110px !important;
    right: auto !important;
    width: 250px !important;
    height: 340px !important;
    --document-rotate: -7deg;
    --document-duration: 10s;
    --document-delay: -2s;
}

.floating-legal-documents .legal-document--order {
    top: 1320px !important;
    right: -160px !important;
    left: auto !important;
    width: 245px !important;
    height: 330px !important;
    --document-rotate: -5deg;
    --document-duration: 13s;
    --document-delay: -5s;
}

.floating-legal-documents .legal-document--claim {
    top: 1900px !important;
    left: -110px !important;
    right: auto !important;
    width: 250px !important;
    height: 335px !important;
    --document-rotate: 8deg;
    --document-duration: 11s;
    --document-delay: -3s;
}

.floating-legal-documents .legal-document--contract {
    top: 2160px !important;
    right: -150px !important;
    left: auto !important;
    width: 235px !important;
    height: 315px !important;
    --document-rotate: 5deg;
    --document-duration: 14s;
    --document-delay: -7s;
}

.floating-legal-documents .legal-document--enforcement {
    top: 2470px !important;
    left: -120px !important;
    right: auto !important;
    width: 260px !important;
    height: 350px !important;
    --document-rotate: -6deg;
    --document-duration: 12.5s;
    --document-delay: -4s;
}

.floating-legal-documents .legal-document--case {
    top: 2580px !important;
    right: -155px !important;
    left: auto !important;
    width: 245px !important;
    height: 325px !important;
    --document-rotate: 6deg;
    --document-duration: 10.5s;
    --document-delay: -6s;
}

.services > .container,
.contacts > .container {
    position: relative;
    z-index: 6;
}

@keyframes legalDocumentFloat {
    0%, 100% {
        transform: rotate(var(--document-rotate)) translateY(0);
    }
    50% {
        transform: rotate(var(--document-rotate)) translateY(-7px);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .floating-legal-documents .legal-document {
        --document-opacity: .1;
    }

    .floating-legal-documents .legal-document--front {
        --document-opacity: .17;
    }
}

@media (max-width: 767px) {
    .floating-legal-documents {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-legal-documents .legal-document {
        animation: none !important;
    }
}

/* Refined position of the existing Themis in hero. */
.hero > .themis-watermark {
    top: 90px !important;
    left: 49% !important;
}

@media (max-width: 1199px) and (min-width: 900px) {
    .hero > .themis-watermark {
        top: 108px !important;
        left: 50.5% !important;
        height: 440px !important;
    }
}

/* Themis closer to the hero headline after removing the trust strip. */
@media (min-width: 1400px) {
    .hero > .themis-watermark {
        top: 78px !important;
        left: 35% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero > .themis-watermark {
        top: 78px !important;
        left: 37% !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .hero > .themis-watermark {
        top: 96px !important;
        left: 41% !important;
    }
}
