:root {
    --navy: #0f1f3d;
    --navy-soft: #172a52;
    --navy-deep: #0a1530;
    --red: #c8102e;
    --red-dark: #a80f28;
    --white: #ffffff;
    --off-white: #f7f8fc;
    --gray-50: #fafbfe;
    --gray-100: #f1f4f8;
    --gray-200: #e3e8f0;
    --gray-400: #8d99ae;
    --gray-500: #6b778c;
    --gray-700: #25324a;
    --gray-900: #10182b;
    --font-sans: "Inter", sans-serif;
    --font-heading: "Montserrat", Arial, Helvetica, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 8px 30px rgba(15, 31, 61, 0.08);
    --shadow-md: 0 18px 50px rgba(15, 31, 61, 0.12);
    --shadow-lg: 0 28px 80px rgba(15, 31, 61, 0.16);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.service-landing {
    overflow-x: hidden;
}

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

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

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

.container,
.container-wide {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.container {
    max-width: 1200px;
}

.container-wide {
    max-width: 1400px;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(15, 31, 61, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.header-logo-block {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
    margin-right: 24px;
}

.rg-header-logo-img {
    height: 42px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.header-nav a,
.header-favs,
.header-contact {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.74);
    letter-spacing: 0.2px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.is-active,
.header-favs:hover,
.header-favs.is-active,
.header-contact:hover,
.header-contact.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.header-favs,
.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-favs svg,
.header-contact svg {
    width: 18px;
    height: 18px;
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    opacity: 0.7;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 214px;
    padding: 6px;
    border-radius: 10px;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(15, 31, 61, 0.18);
}

.dropdown a {
    display: block;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.header-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header-burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(10, 18, 40, 0.98);
    color: var(--white);
    padding: 20px 20px 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mobile-nav-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-close svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-nav-body > a,
.mobile-nav-group-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0 84px;
    background-color: var(--navy);
    color: var(--white);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(115deg, rgba(10, 18, 40, 0.9), rgba(15, 31, 61, 0.74) 55%, rgba(15, 31, 61, 0.4)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 68px 68px;
    opacity: 0.3;
    pointer-events: none;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 450px);
    gap: 56px;
    align-items: stretch;
}

.hero-copy {
    padding-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #f29aa8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: var(--red);
}

.hero-title {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--white);
}

.hero-title strong {
    font-weight: 700;
}

.hero-lead {
    margin: 0 0 26px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.06rem;
    line-height: 1.75;
}

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

.hero-points li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.14);
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.hero-proof {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.hero-proof strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--white);
}

.hero-proof span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.5;
}

.hero-contact-row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-contact-row .hero-territory,
.hero-contact-row .hero-phone,
.hero-contact-row .hero-extra-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
}

.hero-contact-row .hero-phone {
    margin-left: auto;
}

.hero-contact-row .hero-extra-link {
    color: #f6c5cd;
}

.form-card {
    align-self: start;
    position: sticky;
    top: 92px;
    padding: 32px;
    border-top: 4px solid var(--red);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.form-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--gray-900);
}

.form-card .form-subtitle {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: var(--gray-500);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-900);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: 0;
    border-radius: 8px;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.28);
}

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

.btn-secondary:hover {
    background: var(--navy-soft);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid rgba(15, 31, 61, 0.18);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.form-mini-note {
    margin: 10px 0 0;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.78rem;
}

.section {
    position: relative;
    padding: 88px 0;
    background: var(--white);
}

.section.section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, calc(100% - 48px));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 31, 61, 0.12), transparent);
    transform: translateX(-50%);
}

.section.bg-alt {
    background: var(--off-white);
}

.section.bg-soft {
    background: var(--gray-50);
}

.section-header {
    max-width: 840px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-kicker {
    margin-bottom: 14px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    line-height: 1.24;
    font-weight: 400;
    color: var(--navy);
}

.section-title strong {
    font-weight: 700;
}

.section-text {
    margin: 0 auto;
    max-width: 760px;
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.75;
}

.section-grid-2,
.cards-2,
.cards-3,
.cards-4,
.team-grid,
.link-grid,
.tool-grid,
.contract-grid,
.dynamic-grid,
.faq-grid {
    display: grid;
    gap: 24px;
}

.dynamic-grid {
    grid-auto-rows: 1fr;
}

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

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

.references-carousel-shell {
    position: relative;
}

.references-carousel-viewport {
    overflow: hidden;
}

.references-carousel-shell.is-carousel .dynamic-grid.dynamic-grid--references-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: stretch;
    overflow: visible;
    padding: 2px 0 12px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.references-carousel-shell.is-carousel .dynamic-grid.dynamic-grid--references-carousel > .reference-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
}

.references-carousel-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(100%, calc(100% + 132px));
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
}

.references-carousel-nav {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(15, 31, 61, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    box-shadow: 0 12px 24px rgba(15, 31, 61, 0.08);
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
}

.references-carousel-nav:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 16px 28px rgba(15, 31, 61, 0.1);
}

.references-carousel-nav:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: 0 8px 18px rgba(15, 31, 61, 0.04);
}

.references-carousel-nav svg {
    width: 22px;
    height: 22px;
}

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

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

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

.card,
.service-card,
.guarantee-card,
.contract-card,
.tool-card,
.profile-card,
.link-card,
.portfolio-card,
.reference-card {
    height: 100%;
    padding: 28px;
    border: 1px solid rgba(15, 31, 61, 0.08);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.card h3,
.service-card h3,
.guarantee-card h3,
.contract-card h3,
.tool-card h3,
.profile-card h3,
.link-card h3,
.portfolio-card h3,
.reference-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.35;
    color: var(--navy);
}

.card p,
.service-card p,
.guarantee-card p,
.contract-card p,
.tool-card p,
.profile-card p,
.link-card p,
.portfolio-card p,
.reference-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.metric-card {
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(15, 31, 61, 0.08);
    box-shadow: var(--shadow-sm);
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.55rem;
}

.metric-card span {
    display: block;
    color: var(--gray-500);
    font-size: 0.96rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 24px;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), rgba(200, 16, 46, 0.12));
}

.service-card .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(15, 31, 61, 0.06);
}

.service-card .service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.service-card h3 {
    min-height: 3.1em;
}

.service-card p {
    flex: 1 1 auto;
}

.card-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.card-list li {
    position: relative;
    padding-left: 18px;
    color: var(--gray-500);
    font-size: 0.94rem;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--red);
}

.dark-panel {
    padding: 88px 0;
    background: linear-gradient(135deg, #121f3c 0%, #0a1530 100%);
    color: var(--white);
}

.dark-panel .section-title,
.dark-panel h3,
.dark-panel strong {
    color: var(--white);
}

.dark-panel .section-text,
.dark-panel p,
.dark-panel li,
.dark-panel span {
    color: rgba(255, 255, 255, 0.74);
}

.dark-panel .service-card,
.dark-panel .guarantee-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.guarantee-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.guarantee-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.guarantee-icon img {
    max-width: 28px;
    max-height: 28px;
}

.split-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: stretch;
}

.split-content .panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(15, 31, 61, 0.08);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.split-content .panel h3 {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--navy);
}

.split-content .panel p + p {
    margin-top: 12px;
}

.contract-card {
    position: relative;
    padding-top: 24px;
}

.contract-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.8);
}

.contract-card .contract-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.tool-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 46px;
    border-radius: 0;
    background: transparent;
    color: var(--red);
    font-weight: 700;
    font-family: var(--font-heading);
}

.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dynamic-grid {
    align-items: stretch;
}

.portfolio-card,
.reference-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.portfolio-thumb,
.reference-thumb {
    aspect-ratio: 1.35 / 1;
    background: var(--gray-100);
}

.portfolio-thumb img,
.reference-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-body,
.reference-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.portfolio-body h3,
.reference-body h3 {
    min-height: 3.2em;
}

.investissement-landing .portfolio-body h3 {
    min-height: 4.25em;
}

.investissement-landing .service-card h3 {
    min-height: 3.45em;
}

.portfolio-body > p {
    min-height: 5.4em;
}

.investissement-landing .why-section .card p {
    text-align: left;
    text-justify: auto;
}

.reference-client {
    min-height: 2.8em;
}

.reference-body > p {
    min-height: 3.5em;
}

.portfolio-kicker,
.reference-kicker {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portfolio-meta,
.reference-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.portfolio-meta span,
.reference-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 600;
}

.portfolio-contact {
    min-height: 74px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.portfolio-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portfolio-contact-photo {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    margin-left: auto;
    border-radius: 999px;
    overflow: hidden;
    background: #f5f5f2;
    box-shadow: 0 10px 22px rgba(15, 31, 61, 0.08);
}

.portfolio-contact-photo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.portfolio-contact-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.portfolio-contact-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.portfolio-contact--empty {
    visibility: hidden;
}

.portfolio-contact strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 0.96rem;
}

.portfolio-contact-name {
    color: inherit;
    text-decoration: none;
}

.portfolio-contact-name:hover strong {
    color: var(--red);
}

.portfolio-contact .portfolio-contact-info,
.portfolio-contact .portfolio-contact-info p,
.portfolio-contact .portfolio-contact-info a {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.portfolio-contact .portfolio-contact-info p + p {
    margin-top: 4px;
}

.reference-card .reference-client {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.98rem;
}

.portfolio-action,
.reference-action {
    margin-top: 2px;
}

.profile-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.profile-photo {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    background: var(--gray-100) center/cover no-repeat;
}

.profile-card .profile-role {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.faq-section .section-header {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid rgba(15, 31, 61, 0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(15, 31, 61, 0.08);
}

.faq-question {
    position: relative;
    width: 100%;
    padding: 22px 52px 22px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    line-height: 1.35;
    color: var(--navy);
}

.faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15, 31, 61, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.35rem;
    transition: transform var(--transition);
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

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

.faq-answer-content {
    padding: 0 0 22px;
    color: var(--gray-500);
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
}

.investissement-landing .cards-3,
.gestion-landing .cards-3 {
    align-items: stretch;
}

.gestion-landing .service-card .service-icon {
    width: auto;
    height: auto;
    margin-bottom: 20px;
    border-radius: 0;
    background: transparent;
    justify-content: flex-start;
}

.gestion-landing .service-card .service-icon img {
    width: 52px;
    height: 52px;
}

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

.gestion-landing .profile-card {
    height: 100%;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
}

.gestion-landing .profile-photo {
    width: 132px;
    height: 164px;
    border-radius: 24px;
    background-position: center top;
}

.gestion-project-section .section-header {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.gestion-landing .hero-section {
    padding: 154px 0 92px;
}

.gestion-landing .hero-section::before {
    background-image:
        linear-gradient(115deg, rgba(124, 97, 61, 0.64), rgba(148, 114, 68, 0.54) 55%, rgba(110, 83, 50, 0.46)),
        var(--hero-image);
    filter: sepia(0.38) saturate(0.88) brightness(0.84);
}

.gestion-landing .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.gestion-landing .hero-copy {
    max-width: 860px;
    margin: 0;
    padding-top: 0;
    text-align: left;
}

.gestion-landing .eyebrow {
    justify-content: flex-start;
}

.gestion-landing .hero-title {
    max-width: 760px;
    margin: 0 0 18px;
}

.gestion-hero-scope {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.gestion-hero-scope li {
    position: relative;
    padding-left: 16px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(20, 12, 6, 0.28);
}

.gestion-hero-scope li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(242, 154, 168, 0.96);
}

.gestion-landing .hero-lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 14px rgba(20, 12, 6, 0.34);
}

.gestion-hero-link-row {
    margin-top: 28px;
}

.gestion-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 211, 166, 0.4);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.96), rgba(165, 13, 38, 0.96));
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(20, 12, 6, 0.32);
    box-shadow: 0 14px 30px rgba(20, 12, 6, 0.24);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gestion-hero-link::after {
    content: ">";
    font-size: 1rem;
    line-height: 1;
}

.gestion-hero-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(215, 24, 57, 0.98), rgba(179, 16, 46, 0.98));
    border-color: rgba(255, 214, 176, 0.85);
    transform: translateY(-1px);
}

.gestion-landing .section {
    background: linear-gradient(180deg, #fffdf9 0%, #fcf8f2 100%);
}

.gestion-landing .section.bg-soft {
    background: linear-gradient(180deg, #fdfaf4 0%, #fbf6ef 100%);
}

.gestion-landing .section.bg-alt,
.gestion-landing .faq-section.bg-alt {
    background: linear-gradient(180deg, #fdfaf5 0%, #faf4ec 100%);
}

.gestion-landing .gestion-project-section {
    background: linear-gradient(180deg, #fffdf9 0%, #fbf7f0 100%);
}

.gestion-landing .metric-card,
.gestion-landing .service-card,
.gestion-landing .contract-card,
.gestion-landing .tool-card,
.gestion-landing .split-content .panel,
.gestion-landing .profile-card {
    background: #fffdfa;
    border-color: rgba(110, 84, 48, 0.1);
    box-shadow: 0 14px 32px rgba(52, 36, 18, 0.06);
}

.gestion-landing .service-card .service-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    justify-content: flex-start;
}

.gestion-landing .section-divider::before {
    display: none;
}

.gestion-landing .dark-panel {
    background: linear-gradient(180deg, #fcf8f2 0%, #f7f0e6 100%);
    color: var(--navy);
}

.gestion-landing .dark-panel .section-title,
.gestion-landing .dark-panel h3,
.gestion-landing .dark-panel strong {
    color: var(--navy);
}

.gestion-landing .dark-panel .section-text,
.gestion-landing .dark-panel p,
.gestion-landing .dark-panel li,
.gestion-landing .dark-panel span {
    color: var(--gray-500);
}

.gestion-landing .dark-panel .guarantee-card {
    background: #fffdfa;
    border-color: rgba(110, 84, 48, 0.1);
    box-shadow: 0 14px 32px rgba(52, 36, 18, 0.06);
}

.gestion-landing .dark-panel .guarantee-icon {
    background: rgba(110, 84, 48, 0.06);
}

.gestion-landing .faq-question {
    padding: 18px 48px 18px 0;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.3;
}

.gestion-project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 40px;
    align-items: stretch;
}

.gestion-project-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    padding: 32px 38px 36px;
    border: 1px solid rgba(15, 31, 61, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 238, 0.96) 100%);
    box-shadow: 0 14px 34px rgba(15, 31, 61, 0.06);
}

.gestion-project-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

.gestion-project-lead {
    margin: 0;
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.75;
}

.gestion-project-points {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.gestion-project-points li {
    position: relative;
    padding-left: 28px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.gestion-project-points li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 14px;
    border: solid var(--red);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gestion-project-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: auto;
}

.gestion-project-proof-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 31, 61, 0.08);
}

.gestion-project-proof-item strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--navy);
}

.gestion-project-proof-item span {
    display: block;
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.6;
}

.gestion-project-form {
    position: relative;
    top: 0;
    align-self: stretch;
}

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

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 16, 46, 0.16);
    box-shadow: var(--shadow-md);
}

.link-card::after {
    content: ">";
    color: var(--red);
    font-weight: 700;
}

.brochure-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #111f3d 0%, #172c55 100%);
    color: var(--white);
}

.brochure-shell h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 400;
}

.brochure-shell h2 strong {
    font-weight: 700;
}

.brochure-shell p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.75);
}

.brochure-shell .btn-outline {
    flex-shrink: 0;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.brochure-shell .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1180px) {
    .header-nav {
        gap: 0;
    }

    .header-nav a,
    .header-favs,
    .header-contact {
        padding: 8px 9px;
        font-size: 0.94rem;
    }

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

    .form-card {
        position: relative;
        top: 0;
    }

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

@media (min-width: 1025px) {
    .header-nav {
        display: flex !important;
    }

    .header-favs,
    .header-contact {
        display: inline-flex !important;
    }

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

@media (max-width: 1024px) {
    .header-nav,
    .header-favs,
    .header-contact {
        display: none !important;
    }

    .header-burger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        position: relative;
        z-index: 3;
        flex-shrink: 0;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
    }

    .header-burger span {
        margin: 0;
        background: var(--white) !important;
    }

    .header-logo-block {
        margin-right: auto;
    }

    .hero-section {
        padding: 122px 0 56px;
    }

    .section,
    .dark-panel {
        padding: 72px 0;
    }

    .cards-4,
    .cards-3,
    .contract-grid,
    .team-grid,
    .tool-grid,
    .dynamic-grid,
    .section-grid-2,
    .cards-2,
    .metric-strip,
    .link-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .container,
    .container-wide {
        padding: 0 20px;
    }

    .header-inner,
    .hero-grid,
    .hero-copy,
    .hero-section .container-wide,
    .hero-points,
    .hero-contact-row,
    .hero-proof-grid,
    .cards-3,
    .tool-grid,
    .dynamic-grid {
        min-width: 0;
        max-width: 100%;
    }

    .rg-header-logo-img {
        height: 38px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-contact-row .hero-phone {
        margin-left: 0;
    }

    .investissement-landing .hero-section,
    .gestion-landing .hero-section {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .investissement-landing .hero-proof-grid,
    .gestion-landing .hero-proof-grid {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        width: 100%;
        max-width: 100%;
        padding: 2px 0 12px;
        margin: 0 0 30px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .investissement-landing .hero-proof-grid::-webkit-scrollbar,
    .gestion-landing .hero-proof-grid::-webkit-scrollbar {
        display: none;
    }

    .investissement-landing .hero-proof-grid .hero-proof,
    .gestion-landing .hero-proof-grid .hero-proof {
        flex: 0 0 272px;
        min-width: 272px;
        max-width: 272px;
        scroll-snap-align: start;
    }

    .investissement-landing .hero-proof,
    .gestion-landing .hero-proof {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 116px;
        padding: 18px 18px;
    }

    .form-card {
        padding: 24px;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 96px;
        height: 96px;
    }

    .dynamic-grid,
    .gestion-landing .tool-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        padding: 2px 0 12px;
        margin: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }

    .dynamic-grid::-webkit-scrollbar,
    .gestion-landing .tool-grid::-webkit-scrollbar {
        display: none;
    }

    .dynamic-grid > *,
    .gestion-landing .tool-grid > * {
        flex: 0 0 264px;
        min-width: 264px;
        max-width: 264px;
        scroll-snap-align: start;
    }

    .references-carousel-controls {
        position: static;
        top: auto;
        left: auto;
        width: auto;
        transform: none;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 18px;
        pointer-events: auto;
    }

    .references-carousel-shell.is-carousel .dynamic-grid.dynamic-grid--references-carousel > .reference-card {
        flex-basis: 264px;
        min-width: 264px;
        width: 264px;
        max-width: 264px;
    }

    .gestion-landing .tool-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 16px;
        min-height: 220px;
    }

    .gestion-landing .tool-card > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .gestion-landing .tool-card p {
        text-align: center;
        margin: 0;
    }

    .gestion-landing .tool-card h3 {
        display: none;
    }

    .gestion-landing .tool-icon {
        width: 100%;
        height: 74px;
        justify-content: center;
        margin-bottom: 0;
    }

    .gestion-landing .tool-icon img {
        max-width: min(100%, 150px);
        max-height: 56px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .gestion-landing .split-content .panel:last-child .profile-card {
        grid-template-columns: 1fr !important;
        gap: 18px;
        align-items: flex-start;
    }

    .gestion-landing .split-content .panel:last-child .profile-photo {
        width: 156px;
        height: 198px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .gestion-landing .split-content .panel:last-child .profile-card > div:last-child {
        width: 100%;
    }

    .gestion-project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gestion-landing .hero-section {
        padding: 148px 0 82px;
    }

    .gestion-project-copy {
        padding: 26px 24px 28px;
    }

    .gestion-project-proof {
        grid-template-columns: 1fr;
    }

    .gestion-hero-scope {
        gap: 8px 14px;
        margin-bottom: 20px;
    }

    .gestion-hero-scope li {
        font-size: 0.92rem;
    }

    .investissement-landing .cards-3,
    .gestion-landing .cards-3 {
        display: flex;
        gap: 16px;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        padding: 2px 0 12px;
        margin: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }

    .investissement-landing .cards-3::-webkit-scrollbar,
    .gestion-landing .cards-3::-webkit-scrollbar {
        display: none;
    }

    .investissement-landing .cards-3 > .service-card,
    .gestion-landing .cards-3 > .service-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        min-height: 338px;
        height: 338px;
        scroll-snap-align: start;
    }

    .gestion-landing .cards-3 > .service-card {
        min-height: 352px;
        height: 352px;
    }

    .investissement-landing .service-card,
    .gestion-landing .service-card {
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .investissement-landing .service-card .service-icon,
    .gestion-landing .service-card .service-icon {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .investissement-landing .service-card h3,
    .gestion-landing .service-card h3 {
        min-height: 2.8em;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .investissement-landing .service-card p,
    .gestion-landing .service-card p {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .service-card,
    .card,
    .guarantee-card,
    .contract-card,
    .tool-card,
    .link-card,
    .profile-card,
    .portfolio-card,
    .reference-card {
        padding: 22px;
    }

    .portfolio-card,
    .reference-card {
        padding: 0;
    }

    .portfolio-body,
    .reference-body {
        padding: 22px;
    }

    .investissement-landing .dynamic-grid > *,
    .gestion-landing .dynamic-grid > * {
        flex-basis: 84vw;
        min-width: 84vw;
    }

    .references-carousel-shell.is-carousel .dynamic-grid.dynamic-grid--references-carousel > .reference-card {
        flex-basis: 84vw;
        min-width: 84vw;
        width: 84vw;
        max-width: 84vw;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-divider::before {
        width: calc(100% - 40px);
    }

    .scroll-top {
        right: 18px;
        bottom: 18px;
    }
}
