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

:root {
    --olive: #717f64;
    --olive-dark: #536148;
    --ink: #0a0a0a;
    --muted: #454545;
    --gray: #f6f7f9;
    --line: #e6e6e6;
    --footer: #121212;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 118px;
}

body {
    margin: 0;
    font-family: Poppins, Arial, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
    background: #fff;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
    outline: 3px solid var(--olive);
    outline-offset: 3px;
}

::selection {
    background: var(--olive);
    color: #fff;
}

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

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: #fff;
    padding: 10px 14px;
}

.top {
    background: var(--footer);
    color: #fff;
    font-size: 14px;
}

.top .wrap,
.top-contact,
.top-social {
    display: flex;
    align-items: center;
}

.top .wrap { justify-content: space-between; min-height: 48px; gap: 16px; }

.top-contact li + li {
    border-left: 1px solid rgba(255, 255, 255, .22);
    margin-left: 16px;
    padding-left: 16px;
}

.top a { color: #fff; text-decoration: none; font-weight: 500; }
.top a:hover { color: #d5dccb; }

.top-social { gap: 18px; }
.top-social a { font-size: 13px; letter-spacing: .04em; }

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 20px;
    position: relative;
}

nav .logo { display: block; line-height: 0; }

nav img { width: 200px; height: auto; display: block; }

nav .links {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav .links > a:not(.btn) {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

nav .links > a:not(.btn):hover { color: var(--olive); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
}

.menu-bars,
.menu-bars:before,
.menu-bars:after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    position: relative;
    content: "";
}

.menu-bars:before { position: absolute; top: -5px; }
.menu-bars:after { position: absolute; top: 5px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    background: var(--olive);
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color .3s ease;
}

.btn:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 280px;
    height: 180px;
    background: #222;
    border-radius: 50%;
    transform: translate(-40px, -80px) scale(.1);
    opacity: 0;
    z-index: -1;
    transition: transform .45s ease, opacity .45s ease;
}

.btn:hover:after {
    opacity: .35;
    transform: scale(1) translate(-10px, -70px);
}

.btn.line {
    background: transparent;
    color: #fff !important;
    box-shadow: inset 0 0 0 2px #fff;
}

.btn.line:hover { background: #fff; color: var(--ink) !important; }
.btn.line:hover:after { opacity: 0; }

.hero {
    position: relative;
    background:
        linear-gradient(100deg, rgba(18, 18, 18, .88) 0%, rgba(18, 18, 18, .72) 46%, rgba(18, 18, 18, .28) 100%),
        url('../assets/images/slider/h4-sl1.jpg') center / cover no-repeat;
    color: #fff;
    padding: 78px 0 72px;
    overflow: hidden;
}

.hero:before {
    content: "RG";
    position: absolute;
    right: 4%;
    bottom: -28px;
    font-size: 220px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    max-width: 860px;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--olive-dark);
}

.hero .eyebrow { color: #d7dece; }

.hero h1 {
    position: relative;
    font-size: clamp(24px, 7.2vw, 56px);
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 20px;
    padding-top: 22px;
    max-width: none;
}

.hero h1:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 5px;
    background: var(--olive);
}

.hero h1 .line {
    display: block;
    white-space: nowrap;
}

.hero p {
    max-width: 620px;
    font-size: 18px;
    color: #ececec;
    margin: 0 0 28px;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .small {
    margin: 22px 0 0;
    font-size: 13px;
    color: #d5d5d5;
}

section { padding: 88px 0; }

h2 {
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

h3 {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 12px;
}

p { margin: 0 0 16px; }

.muted { color: var(--muted); }

.rule {
    display: block;
    position: relative;
    width: 65px;
    height: 4px;
    margin: 18px 0 22px 20px;
    background: var(--olive);
    border-radius: 2px;
}

.rule:before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    width: 12px;
    height: 4px;
    background: var(--olive);
    border-radius: 2px;
}

.intro { max-width: 760px; margin-bottom: 36px; }
.intro h2 { margin-bottom: 0; }

.services { background: var(--gray); }

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.service {
    position: relative;
    background: #fff;
    padding: 42px 32px 30px;
    box-shadow: 0 16px 40px rgba(18, 18, 18, .06);
    overflow: hidden;
}

.service:after {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 0;
    width: 48px;
    height: 4px;
    background: var(--olive);
    transition: width .3s ease;
}

.service:hover:after,
.service.is-focus:after { width: 110px; }

.service.is-focus { box-shadow: 0 0 0 2px var(--olive), 0 16px 40px rgba(18, 18, 18, .06); }

.serial {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 0, 0, .045);
    pointer-events: none;
}

.service-kicker {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--olive-dark);
}

.service ul { margin: 8px 0 22px; }

.service li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: #333;
}

.service li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: var(--olive);
}

.note {
    font-size: 14px;
    border-left: 3px solid var(--olive);
    padding-left: 14px;
    margin: 22px 0 0;
    color: #5c6358;
}

.note-wide {
    max-width: 760px;
    margin-top: 28px;
    background: #fff;
    padding: 16px 16px 16px 18px;
}

.process { background: #fff; }

.with-mark { position: relative; display: inline-block; max-width: 100%; }

.mark {
    position: absolute;
    left: 0;
    top: -72px;
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    color: rgba(113, 127, 100, .16);
    pointer-events: none;
    z-index: -1;
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 56px;
    align-items: center;
    margin-top: 8px;
}

.steps { display: grid; }

.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px 18px;
    align-items: start;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.step b {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--olive);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.step h3 { font-size: 20px; margin-bottom: 6px; }

.step p { margin: 0; color: var(--muted); font-size: 15px; }

.portrait {
    position: relative;
    margin: 18px 0 0 18px;
}

.portrait:before {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    right: 18px;
    bottom: 42px;
    border: 4px solid var(--olive);
}

.portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: grayscale(1);
    background: #ddd;
}

.portrait figcaption {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--olive-dark);
}

.questions { background: var(--gray); }

.faq {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.accordion details {
    background: #fff;
    border: 1px solid #ececec;
    margin-bottom: 12px;
    padding: 0 22px;
}

.accordion summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.45;
    padding: 18px 36px 18px 0;
    position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 14px;
    color: var(--olive);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.accordion details[open] summary:after { content: "–"; }

.accordion details p {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 18px;
}

.contact { background: #fff; }

.contact .two {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.place { margin-top: 8px; }

.contact-box {
    background: var(--gray);
    padding: 32px 28px;
    border-top: 4px solid var(--olive);
}

.contact-box .btn { width: 100%; }

.contact-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e1e1e1;
    text-decoration: none;
    font-weight: 600;
}

.contact-line span {
    font-weight: 500;
    color: var(--muted);
}

.contact-line:hover { color: var(--olive); }

.fine {
    font-size: 13px;
    color: #666;
    margin: 18px 0 0;
}

footer { background: var(--footer); color: #d7d7d7; }

.foot {
    display: grid;
    grid-template-columns: 1.3fr .8fr .9fr;
    gap: 40px;
    padding: 64px 0 130px;
}

footer img { width: 190px; margin-bottom: 16px; }

footer h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

footer h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background: var(--olive);
}

footer li { margin-bottom: 10px; }

footer a { color: #d7d7d7; text-decoration: none; }
footer a:hover { color: #fff; }

.float {
    position: fixed;
    right: 22px;
    bottom: 18px;
    z-index: 40;
    line-height: 0;
}

.float img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
}

@media (max-width: 980px) {
    .two,
    .process-grid,
    .faq,
    .contact .two,
    .foot { grid-template-columns: 1fr; }

    .portrait { order: -1; margin-bottom: 12px; }

    .portrait img { aspect-ratio: 16 / 11; max-height: 420px; }

    .menu-toggle { display: inline-flex; }

    nav .links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 6% 18px;
        box-shadow: 0 16px 28px rgba(0, 0, 0, .08);
    }

    nav .links.is-open { display: flex; }

    nav .links > a:not(.btn) {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    nav .links .btn { margin-top: 14px; }

    .mark { font-size: 64px; top: -48px; }
}

@media (max-width: 760px) {
    .wrap { width: min(1140px, calc(100% - 32px)); }

    .top-social,
    .top-contact li:first-child { display: none; }

    .top-contact { gap: 16px; }

    .top-contact li + li { border: 0; margin: 0; padding: 0; }

    .top .wrap { justify-content: center; }

    nav { min-height: 78px; }
    nav img { width: 164px; }

    .hero { padding: 48px 0; }
    .hero p { font-size: 16px; }
    .hero:before { font-size: 120px; }

    .actions .btn,
    .service .btn { width: 100%; }

    section { padding: 56px 0; }

    .service { padding: 32px 22px 26px; }
    .serial { font-size: 64px; }

    .step { grid-template-columns: 48px 1fr; }
    .step b { width: 44px; height: 44px; font-size: 14px; }

    .contact-line { flex-direction: column; gap: 2px; }

    .foot { gap: 28px; padding-top: 48px; }

    .float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
