:root {
    --ink: #101820;
    --muted: #5f6c76;
    --paper: #ffffff;
    --soft: #f2f5f6;
    --dark: #080d12;
    --dark-soft: #111a21;
    --line: #d9e0e4;
    --cyan: #0aa6a6;
    --coral: #ef6a5b;
    --yellow: #e7b64a;
}

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

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

body {
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

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

button {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 18, 0.96);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.brand img {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    padding: 10px 11px;
    color: #c7d1d7;
    font-size: 13px;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #ffffff;
    outline: none;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    display: none;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: min(680px, calc(100vh - 72px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background-image: url("assets/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay,
.reviews-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 14, 0.72);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 82px 0 96px;
}

.eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 900px;
    margin: 14px 0 28px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: 0;
}

.primary-action {
    min-height: 50px;
    margin-top: 30px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    background: var(--coral);
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease;
}

.primary-action:hover {
    transform: translateY(-3px);
    background: #d9574a;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

.section-heading > p:last-child {
    color: var(--muted);
}

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

.service-card {
    min-height: 400px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--cyan);
    font-size: 16px;
    font-weight: 900;
}

.service-icon-coral {
    background: var(--coral);
}

.service-icon-ink {
    background: var(--ink);
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.3;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

.service-card p + p {
    margin-top: 12px;
}

.service-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 10px 30px;
    color: var(--muted);
    font-size: 13px;
}

.service-links span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--yellow);
}

.feature-band {
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
    background: var(--dark-soft);
    color: #ffffff;
}

.feature-image {
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

.feature-image-team {
    background-image: url("assets/team.jpg");
}

.feature-content {
    padding: 84px clamp(36px, 6vw, 92px);
    align-self: center;
}

.feature-content h2 {
    max-width: 620px;
    margin: 10px 0 22px;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.1;
}

.feature-content h3 {
    margin: 24px 0 8px;
    color: #ffffff;
    font-size: 20px;
}

.feature-content > p:not(.eyebrow) {
    max-width: 720px;
    color: #b9c6cd;
}

.stats {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #2b3740;
    border-left: 1px solid #2b3740;
}

.stats div {
    min-height: 110px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #2b3740;
    border-bottom: 1px solid #2b3740;
}

.stats strong {
    color: var(--coral);
    font-size: 28px;
}

.stats span {
    color: #aab7bf;
    font-size: 12px;
}

.process {
    background: var(--soft);
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 72px;
}

.process-intro h2 {
    margin: 9px 0 18px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

.process-intro > p:not(.eyebrow) {
    color: var(--muted);
}

.process-intro img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 32px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.process-steps {
    list-style: none;
    counter-reset: steps;
}

.process-steps li {
    min-height: 112px;
    padding: 23px 0;
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.process-steps li:first-child {
    border-top: 1px solid var(--line);
}

.process-steps li > span {
    color: var(--coral);
    font-size: 22px;
    font-weight: 900;
}

.process-steps h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.process-steps p {
    color: var(--muted);
    font-size: 14px;
}

.faq-block {
    padding-top: 96px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    padding: 22px 44px 22px 0;
    position: relative;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
}

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

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    color: var(--cyan);
    font-size: 26px;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 900px;
    padding: 0 52px 24px 0;
    color: var(--muted);
}

.cases {
    background: var(--paper);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.case-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dark-soft);
}

.case-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 350ms ease;
}

.case-card::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: rgba(5, 9, 12, 0.72);
}

.case-card span {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 1;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.case-card:hover img {
    transform: scale(1.045);
}

.reviews {
    position: relative;
    color: #ffffff;
    background-image: url("assets/reviews.jpg");
    background-size: cover;
    background-position: center;
}

.reviews-overlay {
    background: rgba(5, 10, 14, 0.82);
}

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

.section-heading.light h2 {
    color: #ffffff;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.review-card {
    min-height: 300px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(10, 17, 22, 0.72);
}

.review-card::before {
    content: "“";
    color: var(--coral);
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 0.8;
}

.review-card p {
    margin-top: 14px;
    color: #d5dfe4;
    font-size: 14px;
}

.review-card footer {
    margin-top: auto;
    padding-top: 22px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 70;
    min-height: 48px;
    padding: 7px 14px 7px 7px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 24px;
    color: #ffffff;
    background: var(--cyan);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.floating-contact span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
}

.floating-contact strong {
    font-size: 13px;
}

.site-footer {
    color: #aab7bf;
    background: var(--dark);
}

.footer-main {
    min-height: 160px;
    padding: 38px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid #25313a;
}

.footer-main > div:first-child > p {
    margin-top: 11px;
    font-size: 13px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-contact span {
    color: #768791;
    font-size: 11px;
}

.footer-contact a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.footer-keywords {
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    border-bottom: 1px solid #25313a;
    font-size: 12px;
}

.footer-keywords a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 22px 0 30px;
    font-size: 11px;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .main-nav a {
        padding-inline: 7px;
        font-size: 12px;
    }

    .feature-band {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 500px;
    }

    .process-layout {
        gap: 44px;
    }

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

    .review-card {
        min-height: 250px;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: grid;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        display: grid;
        gap: 0;
        background: var(--dark);
        transition: max-height 250ms ease;
    }

    .main-nav.open {
        max-height: 520px;
        border-bottom: 1px solid #25313a;
    }

    .main-nav a {
        margin: 0;
        padding: 14px 20px;
        border-radius: 0;
        border-top: 1px solid #202b33;
        color: #d5dfe4;
        background: transparent;
    }

    .service-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .process-layout {
        grid-template-columns: 1fr;
    }

    .case-card {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 580px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

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

    .brand img {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        top: 64px;
    }

    .hero {
        min-height: 680px;
        align-items: flex-end;
        background-position: 44% center;
    }

    .hero-content {
        padding: 90px 0 70px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .section {
        padding: 72px 0;
    }

    .section-heading h2,
    .process-intro h2,
    .feature-content h2 {
        font-size: 36px;
    }

    .service-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-image {
        min-height: 340px;
    }

    .feature-content {
        padding: 62px 22px;
    }

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

    .stats strong {
        font-size: 22px;
    }

    .faq-block {
        padding-top: 72px;
    }

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

    .review-card {
        min-height: 230px;
    }

    .floating-contact {
        right: 12px;
        bottom: 14px;
        padding-right: 8px;
    }

    .floating-contact strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

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

    .footer-contact {
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
