:root {
    --color-primary: #17b3bb;
    --color-primary-dark: #1098a0;
    --color-secondary: #757574;
    --color-secondary-dark: #4d4d4d;
    --color-text: #1e2528;
    --color-muted: #69777d;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f8f8;
    --color-border: rgba(17, 179, 187, 0.14);
    --color-shadow: rgba(25, 42, 46, 0.18);
    --shadow-soft: 0 28px 70px -48px rgba(25, 42, 46, 0.36);
    --shadow-strong: 0 34px 86px -54px rgba(25, 42, 46, 0.46);
    --gradient-soft: linear-gradient(135deg, rgba(23, 179, 187, 0.12), rgba(117, 117, 116, 0.08));
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: #fbfdfd;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at -8% -12%, rgba(23, 179, 187, 0.16), transparent 34rem),
        radial-gradient(circle at 108% 22%, rgba(117, 117, 116, 0.08), transparent 32rem),
        linear-gradient(135deg, rgba(231, 248, 249, 0.42), rgba(255, 255, 255, 0.72) 38%, rgba(246, 250, 250, 0.92)),
        #fbfdfd;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

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

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

main {
    overflow: hidden;
}

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

.section,
.page-intro {
    padding: 4.5rem 0;
}

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

.section-heading h2,
.page-intro h1,
.hero-copy h1,
.cta-box h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.section-heading p:last-child,
.hero-text,
.page-intro p,
.legal-copy p {
    color: var(--color-muted);
    line-height: 1.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 253, 253, 0.96);
    border-bottom: 1px solid rgba(17, 179, 187, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    min-width: 0;
    flex-shrink: 1;
}

.brand img {
    width: 240px;
    max-width: 100%;
    height: auto;
    background: transparent;
}

.nav-toggle {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    min-height: 46px;
    padding: 0.66rem 0.9rem;
    border: 1px solid rgba(17, 179, 187, 0.16);
    border-radius: 999px;
    color: var(--color-secondary-dark);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 42px -32px rgba(25, 42, 46, 0.44);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    color: var(--color-primary-dark);
    border-color: rgba(23, 179, 187, 0.34);
    box-shadow: 0 20px 48px -30px rgba(23, 179, 187, 0.58);
}

.nav-toggle i,
.nav-toggle .svg-inline--fa {
    width: 1rem;
    height: 1rem;
}

.header-spacer {
    min-height: 1px;
}

.site-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    background:
        radial-gradient(circle at 50% 48%, rgba(17, 26, 28, 0.72), rgba(10, 12, 13, 0.84) 58%, rgba(5, 6, 7, 0.9)),
        rgba(5, 6, 7, 0.74);
    backdrop-filter: blur(10px);
}

body.nav-is-open {
    overflow: hidden;
}

.site-nav {
    --nav-radius: 128px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 39;
    width: min(82vw, 390px);
    height: min(82vw, 390px);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.site-nav a,
.nav-close {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    color: #121719;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 28px 54px -34px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(0.38);
    transition:
        opacity 220ms ease,
        transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 180ms ease,
        color 180ms ease;
}

.site-nav i,
.site-nav .svg-inline--fa {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 1.45rem;
}

.site-nav a span {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.55rem);
    max-width: 10rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px 999px 999px 0.25rem;
    color: #111719;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.78);
    opacity: 0;
    transform: translate(0, -50%) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover span,
.site-nav a:focus-visible span,
.site-nav a.is-active span {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.nav-close {
    width: 54px;
    height: 54px;
    border: 0;
    color: #252b2d;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
}

.site-nav.is-open a,
.site-nav.is-open .nav-close {
    opacity: 1;
}

.site-nav.is-open .nav-home {
    transform: translate(-50%, -50%) rotate(-90deg) translate(var(--nav-radius)) rotate(90deg);
}

.site-nav.is-open .nav-services {
    transform: translate(-50%, -50%) rotate(-18deg) translate(var(--nav-radius)) rotate(18deg);
}

.site-nav.is-open .nav-projects {
    transform: translate(-50%, -50%) rotate(54deg) translate(var(--nav-radius)) rotate(-54deg);
}

.site-nav.is-open .nav-contact {
    transform: translate(-50%, -50%) rotate(126deg) translate(var(--nav-radius)) rotate(-126deg);
}

.site-nav.is-open .nav-login {
    transform: translate(-50%, -50%) rotate(198deg) translate(var(--nav-radius)) rotate(-198deg);
}

.site-nav.is-open .nav-close {
    transform: translate(-50%, -50%) scale(1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, var(--color-primary), #0b9ca5);
}

.site-nav a:focus-visible,
.nav-close:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid rgba(23, 179, 187, 0.28);
    outline-offset: 4px;
}

.hero-copy h1 {
    font-size: clamp(3.15rem, 4.8vw, 3.95rem);
    margin-bottom: 1.2rem;
}

.hero-actions,
.centered-action {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.centered-action {
    justify-content: center;
    margin-top: 2.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: #fff;
    border-color: rgba(10, 155, 164, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, var(--color-primary), #0fc4ce);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 16px 34px -24px rgba(23, 179, 187, 0.9);
}

.button-primary:hover {
    border-color: rgba(10, 155, 164, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 20px 38px -26px rgba(23, 179, 187, 0.95);
}

.button-primary:focus-visible {
    outline: 3px solid rgba(23, 179, 187, 0.22);
    outline-offset: 3px;
}

.button-secondary {
    color: var(--color-secondary-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(117, 117, 116, 0.18);
}

.button-warning {
    color: #fff;
    border-color: rgba(218, 128, 32, 0.52);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #f2a33a, #df7228);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 16px 34px -24px rgba(223, 114, 40, 0.9);
}

.button-warning:hover {
    border-color: rgba(218, 128, 32, 0.66);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 20px 38px -26px rgba(223, 114, 40, 0.95);
}

.hero {
    padding: 1.6rem 0 1.1rem;
}

.hero + .section {
    padding-top: 1.9rem;
}

.hero-stage {
    position: relative;
    min-height: 520px;
    padding: 1.65rem;
    border-radius: 32px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1d292c;
    box-shadow: 0 34px 92px -52px rgba(15, 29, 32, 0.66);
}

.hero-stage::before,
.hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-stage::before {
    background:
        radial-gradient(circle at 26% 50%, rgba(23, 179, 187, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(10, 20, 23, 0.9), rgba(18, 29, 32, 0.64) 43%, rgba(18, 29, 32, 0.16)),
        linear-gradient(0deg, rgba(18, 29, 32, 0.58), transparent 50%);
}

.hero-stage::after {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(23, 179, 187, 0.14);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1200ms ease;
}

.hero-bg.is-active {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.96) contrast(1.12) brightness(0.9);
}

.hero-stage .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.hero-stage .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.hero-stage .hero-copy h1 {
    max-width: 720px;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-stage .hero-text {
    max-width: 670px;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hero-stage .button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.hero-proof {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    width: min(360px, 34vw);
    display: grid;
    gap: 0.7rem;
}

.hero-proof-chip {
    display: grid;
    gap: 0.18rem;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    background: linear-gradient(135deg, rgba(18, 29, 32, 0.74), rgba(18, 29, 32, 0.46));
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 58px -34px rgba(0, 0, 0, 0.86);
}

.hero-proof-chip small {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.64);
}

.hero-proof-rating {
    grid-template-columns: 1fr auto;
    align-items: end;
    border-color: rgba(23, 179, 187, 0.42);
    background:
        linear-gradient(135deg, rgba(23, 179, 187, 0.34), rgba(18, 29, 32, 0.44)),
        rgba(18, 29, 32, 0.45);
}

.hero-proof-rating small {
    grid-column: 1 / -1;
}

.hero-proof-rating strong {
    font-size: 1.6rem;
    line-height: 1;
}

.hero-proof-rating em {
    align-self: center;
    font-style: normal;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: #f0b94b;
}

.services-grid.compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.service-card,
.project-card,
.testimonial-card,
.contact-card,
.service-detail-card,
.cta-box {
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card {
    position: relative;
    padding: 1.85rem;
    border-radius: 24px;
    min-height: 300px;
    overflow: hidden;
}

.service-card:hover,
.testimonial-card:hover,
.service-detail-card:hover {
    transform: translateY(-3px);
    border-color: rgba(23, 179, 187, 0.24);
    box-shadow: var(--shadow-strong);
}

.service-index {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.16), rgba(117, 117, 116, 0.08));
    color: var(--color-primary-dark);
}

.service-card-visual {
    position: relative;
    margin-bottom: 1.15rem;
    border-radius: 19px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.1), rgba(117, 117, 116, 0.08));
}

.service-card-visual img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    display: block;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 220ms ease;
}

.service-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(18, 29, 32, 0.16));
    pointer-events: none;
}

.service-card-visual .service-index {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px -24px rgba(25, 42, 46, 0.36);
    backdrop-filter: blur(14px);
}

.service-card:hover .service-card-visual img {
    transform: scale(1.12);
}

.service-index svg,
.service-index i,
.service-detail-icon svg,
.service-detail-icon i {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
}

.service-index i,
.service-detail-icon i {
    display: grid;
    place-items: center;
    font-size: 24px;
}

.service-card h3,
.project-card h3,
.testimonial-name,
.service-detail-content h2,
.contact-card h2,
.legal-copy h2 {
    margin: 0 0 0.75rem;
}

.service-card p,
.project-card p,
.testimonial-card blockquote,
.service-detail-content p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.accent-section {
    background: linear-gradient(180deg, rgba(23, 179, 187, 0.05), rgba(23, 179, 187, 0.01));
}

.references-slider {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    padding: 0.15rem 0 0.35rem;
}

.reference-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(23, 179, 187, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-secondary-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 40px -30px rgba(15, 29, 32, 0.38);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.reference-arrow:hover {
    transform: scale(1.04);
    color: var(--color-primary-dark);
    background: #fff;
}

.references-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}

.reference-slide {
    position: relative;
    width: min(25vw, 318px);
    min-width: 240px;
    aspect-ratio: 1 / 1.08;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(23, 179, 187, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 58px -44px rgba(25, 42, 46, 0.42);
}

.reference-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.96) contrast(1.03);
    transition: transform 240ms ease, filter 240ms ease;
}

.reference-slide:hover img {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.06);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 0 3.4rem;
}

.testimonials-controls {
    position: absolute;
    inset: 50% 0 auto 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonials-track {
    display: flex;
    gap: 1.4rem;
    transition: transform 320ms ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 calc((100% - 2.8rem) / 3);
    min-width: 0;
}

.testimonial-card {
    padding: 1.85rem;
    border-radius: 24px;
    height: 100%;
}

.testimonial-avatar {
    width: 74px;
    height: 74px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-secondary-dark);
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.2), rgba(117, 117, 116, 0.12));
}

.testimonial-stars {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: #f0b94b;
}

.testimonial-card blockquote {
    min-height: 168px;
    font-style: normal;
}

.testimonial-name {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-secondary-dark);
}

.testimonial-source {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: var(--color-primary-dark);
}

.cta-section {
    padding-top: 0;
}

.notice-section {
    padding-top: 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.9rem;
    border-radius: 28px;
}

.page-intro {
    padding-bottom: 2rem;
}

.page-intro + .section {
    padding-top: 1.25rem;
}

.services-grid.detailed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.4rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 28px;
    overflow: hidden;
}

.service-detail-card img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    object-fit: cover;
    border-radius: 20px;
}

.service-detail-content {
    padding: 0.6rem 0.2rem;
}

.service-detail-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.16), rgba(117, 117, 116, 0.08));
}

.invoice-notice {
    margin-top: 2rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(23, 179, 187, 0.32);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.18), rgba(23, 179, 187, 0.08));
    box-shadow: 0 28px 62px -38px rgba(23, 179, 187, 0.46);
}

.invoice-notice p {
    margin: 0;
    line-height: 1.7;
    color: #31555b;
}

.invoice-notice .eyebrow {
    margin-bottom: 0.55rem;
    color: #0e8c93;
}

.contact-invoice-notice {
    max-width: 540px;
    margin-top: 0;
    padding: 1.05rem 1.1rem;
    border-color: rgba(23, 179, 187, 0.26);
    background:
        linear-gradient(135deg, rgba(23, 179, 187, 0.13), rgba(238, 250, 251, 0.86)),
        rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 22px 52px -38px rgba(23, 179, 187, 0.5);
}

.contact-invoice-notice p:not(.eyebrow) {
    max-width: 38rem;
    font-size: 0.98rem;
    line-height: 1.62;
}

.contact-hero {
    padding: 1.45rem 0 0.25rem;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
    gap: 1rem;
    align-items: center;
    padding: 1.35rem;
    border: 1px solid rgba(23, 179, 187, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(23, 179, 187, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 250, 0.84));
    box-shadow: var(--shadow-soft);
}

.contact-hero-copy {
    max-width: 780px;
}

.contact-hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.15rem, 3.4vw, 2.95rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.contact-hero-copy p:last-child {
    max-width: 760px;
    color: var(--color-muted);
    line-height: 1.56;
}

.contact-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.contact-steps article,
.contact-info-card,
.contact-service-area {
    border: 1px solid var(--color-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.contact-steps article {
    padding: 0.85rem;
    border-radius: 18px;
}

.contact-steps span {
    display: inline-flex;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.contact-steps strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.contact-steps p,
.contact-form-intro,
.contact-service-area p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.58;
}

.contact-section {
    padding-top: 1.15rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.6rem;
    align-items: start;
}

.contact-card {
    padding: 1.9rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
        #fff;
}

.contact-card h2,
.contact-info-card h2 {
    margin-bottom: 0.65rem;
}

.contact-form {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.3rem;
}

.contact-form .button {
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.contact-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-form legend {
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(117, 117, 116, 0.18);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px -30px rgba(25, 42, 46, 0.42);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(23, 179, 187, 0.22);
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 5px rgba(23, 179, 187, 0.08), 0 20px 44px -34px rgba(23, 179, 187, 0.55);
}

.contact-form select {
    min-height: 54px;
    padding-right: 3.15rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background:
        rgba(255, 255, 255, 0.92)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231098a0' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")
        no-repeat calc(100% - 1.12rem) 50% / 1.08rem 1.08rem;
}

.contact-form select:hover,
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(23, 179, 187, 0.34);
}

.contact-form select:has(option[value=""]:checked) {
    color: rgba(30, 37, 40, 0.68);
}

.contact-form select option {
    color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(105, 119, 125, 0.58);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-full {
    grid-column: 1 / -1;
}

.service-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.service-choice-field .service-choice {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(117, 117, 116, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px -30px rgba(25, 42, 46, 0.42);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-choice-field .service-choice:hover,
.service-choice-field .service-choice:has(input:focus-visible) {
    border-color: rgba(23, 179, 187, 0.34);
    box-shadow: 0 0 0 5px rgba(23, 179, 187, 0.08), 0 20px 44px -34px rgba(23, 179, 187, 0.45);
}

.service-choice input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--color-primary);
    box-shadow: none;
    flex: 0 0 auto;
}

.service-choice span {
    line-height: 1.3;
}

.contact-sidebar {
    display: grid;
    gap: 1rem;
}

.contact-info-card,
.contact-service-area {
    padding: 1.25rem;
    border-radius: 24px;
}

.contact-link-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.contact-link-list a,
.contact-link-list p {
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(117, 117, 116, 0.14);
    color: var(--color-secondary-dark);
    line-height: 1.55;
}

.contact-link-list span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.contact-link-list a {
    transition: color 180ms ease;
}

.contact-link-list a:hover {
    color: var(--color-primary-dark);
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    line-height: 1.55;
}

.form-message.success {
    color: #0f6a5d;
    background: rgba(12, 180, 138, 0.12);
}

.form-message.error {
    color: #9f3d3d;
    background: rgba(214, 63, 63, 0.11);
}

.form-message.portal-hint {
    color: #245d62;
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.15), rgba(23, 179, 187, 0.07));
    border: 1px solid rgba(23, 179, 187, 0.18);
}

.portal-auth,
.portal-shell {
    padding: 2.5rem 0 4.5rem;
}

.crm-app,
.crm-login-screen {
    font-size: 0.94rem;
}

.crm-login-screen {
    padding: 2rem 0 4rem;
}

.crm-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    align-items: stretch;
    max-width: 1160px;
}

.crm-login-panel {
    min-height: 520px;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.55fr);
    gap: 1rem;
    align-items: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(23, 179, 187, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 248, 0.86));
    box-shadow: var(--shadow-strong);
}

.crm-login-brand {
    padding: 2rem;
}

.crm-login-brand h1 {
    margin: 0 0 1rem;
    max-width: 620px;
    font-size: clamp(2.2rem, 4.4vw, 4rem);
    line-height: 1.02;
    text-wrap: balance;
}

.crm-login-brand p:last-child {
    color: var(--color-muted);
    line-height: 1.6;
}

.crm-login-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.crm-login-head span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.crm-app {
    padding: 1.4rem 0 4rem;
}

.crm-app-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.crm-app-bar h1 {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.04;
}

.crm-tabs {
    position: sticky;
    top: 82px;
    z-index: 15;
    display: flex;
    gap: 0.45rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.45rem;
    border: 1px solid rgba(23, 179, 187, 0.16);
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(251, 253, 253, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 48px -40px rgba(25, 42, 46, 0.42);
}

.crm-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    font-weight: 800;
    color: var(--color-secondary-dark);
}

.crm-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.crm-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(23, 179, 187, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 250, 0.84)),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-filterbar {
    grid-template-columns: minmax(280px, 1fr) minmax(180px, 220px) minmax(200px, 260px) auto auto;
}

.crm-search-field {
    position: relative;
    display: block !important;
    width: 100%;
    font-weight: 800;
}

.crm-search-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    text-transform: uppercase;
}

.crm-search-icon {
    position: absolute;
    left: 1rem;
    bottom: 0.92rem;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(23, 179, 187, 0.52);
    border-radius: 50%;
    pointer-events: none;
}

.crm-search-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    border-radius: 999px;
    background: rgba(23, 179, 187, 0.52);
    transform: rotate(45deg);
}

.crm-searchbar input[type="search"] {
    width: 100%;
    min-height: 56px;
    padding-left: 3rem;
    border: 1px solid rgba(23, 179, 187, 0.18);
    border-radius: 999px;
    color: var(--color-secondary-dark);
    font: inherit;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.96);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 30px -28px rgba(25, 42, 46, 0.34);
}

.crm-searchbar input[type="search"]::-webkit-search-decoration,
.crm-searchbar input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.crm-searchbar input[type="search"]:hover,
.crm-filter-field select:hover {
    border-color: rgba(23, 179, 187, 0.34);
}

.crm-searchbar input[type="search"]:focus,
.crm-filter-field select:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    outline: 3px solid rgba(23, 179, 187, 0.14);
    outline-offset: 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 42px -32px rgba(23, 179, 187, 0.58);
}

.crm-filter-field {
    display: grid !important;
    gap: 0.4rem !important;
    font-weight: 800;
}

.crm-filter-field span {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
    text-transform: uppercase;
}

.crm-filter-field select {
    min-height: 56px;
    padding: 0 2.8rem 0 1rem;
    border: 1px solid rgba(23, 179, 187, 0.18);
    border-radius: 999px;
    color: var(--color-secondary-dark);
    font: inherit;
    font-weight: 800;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231098a0' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 250, 0.96));
    background-repeat: no-repeat, no-repeat;
    background-position: calc(100% - 1rem) 50%, 0 0;
    background-size: 1rem 1rem, auto;
    appearance: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 30px -26px rgba(25, 42, 46, 0.35);
}

.crm-search-submit,
.crm-search-reset {
    min-height: 56px;
    padding: 0 1.25rem;
    border: 1px solid rgba(23, 179, 187, 0.22);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 18px 40px -30px rgba(23, 179, 187, 0.9);
    cursor: pointer;
}

.crm-search-reset {
    color: var(--color-secondary-dark);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.crm-workspace {
    display: grid;
    gap: 1rem;
}

.crm-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-section-head h2 {
    margin: 0;
}

.crm-section-head > span {
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    font-weight: 800;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.crm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.crm-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.crm-table th,
.crm-table td {
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid rgba(25, 42, 46, 0.08);
    text-align: left;
    vertical-align: middle;
}

.crm-table th {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    text-transform: uppercase;
    background: rgba(244, 248, 248, 0.72);
}

.crm-table tbody tr:hover,
.crm-table tbody tr.is-active {
    background: rgba(23, 179, 187, 0.055);
}

.crm-empty-row {
    padding: 1.2rem !important;
    color: var(--color-muted);
    text-align: center !important;
}

.crm-row-link,
.crm-row-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(23, 179, 187, 0.22);
    border-radius: 999px;
    color: var(--color-primary-dark);
    font: inherit;
    font-weight: 800;
    background: rgba(23, 179, 187, 0.08);
    cursor: pointer;
}

.crm-muted {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-muted);
    line-height: 1.35;
}

.crm-address-cell {
    min-width: 220px;
}

.crm-address-cell input + input {
    margin-top: 0.35rem;
}

.crm-edit-table input,
.crm-edit-table select {
    min-height: 38px;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(25, 42, 46, 0.14);
    border-radius: 10px;
    width: 100%;
    font: inherit;
    background: rgba(255, 255, 255, 0.92);
}

.crm-two-column,
.crm-prices-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.crm-list,
.crm-panel,
.crm-price-card,
.crm-customer-card {
    min-width: 0;
}

.crm-list {
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.crm-list-head h2,
.crm-price-card h3,
.crm-customer-card h2 {
    margin: 0;
}

.crm-list-head span {
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.crm-list-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(17, 179, 187, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.crm-list-item + .crm-list-item {
    margin-top: 0.55rem;
}

.crm-list-item.is-active {
    border-color: rgba(23, 179, 187, 0.34);
    box-shadow: 0 20px 44px -36px rgba(23, 179, 187, 0.65);
}

.crm-list-item small,
.crm-price-card p,
.crm-customer-card p {
    color: var(--color-muted);
    line-height: 1.5;
}

.crm-action-row {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.crm-detail-toolbar,
.crm-pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(23, 179, 187, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-detail-toolbar span,
.crm-pagination span {
    color: var(--color-muted);
    font-weight: 800;
}

.crm-pagination > div {
    display: flex;
    gap: 0.5rem;
}

.crm-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(23, 179, 187, 0.22);
    border-radius: 999px;
    color: var(--color-primary-dark);
    font-weight: 800;
    background: rgba(23, 179, 187, 0.08);
}

.crm-pagination a.is-disabled {
    pointer-events: none;
    opacity: 0.42;
}

.offer-form {
    margin-top: 1rem;
}

.crm-form-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.crm-form-head h2 {
    margin: 0;
}

.crm-offer-send-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(23, 179, 187, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(23, 179, 187, 0.14), transparent 34%),
        rgba(244, 250, 250, 0.84);
}

.crm-offer-send-panel h3,
.crm-offer-send-panel p {
    margin: 0;
}

.crm-offer-send-panel h3 {
    font-size: 1.05rem;
}

.crm-offer-send-panel p {
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.crm-offer-send-panel label {
    margin: 0;
}

.crm-offer-items {
    display: grid;
    gap: 0.55rem;
}

.crm-offer-items-head,
.crm-offer-item-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) minmax(180px, 1.2fr) 90px 90px 110px auto;
    gap: 0.5rem;
    align-items: center;
}

.crm-offer-item-row.is-removed {
    display: none;
}

.crm-offer-items-head {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: var(--color-muted);
    text-transform: uppercase;
}

.crm-offer-item-row {
    padding: 0.55rem;
    border: 1px solid rgba(25, 42, 46, 0.08);
    border-radius: 16px;
    background: rgba(244, 248, 248, 0.58);
}

.crm-offer-item-row select,
.crm-offer-item-row input {
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
}

.crm-offer-note {
    grid-column: 2 / -1;
}

.crm-offer-remove,
.crm-add-position {
    min-height: 42px;
    border: 1px solid rgba(25, 42, 46, 0.12);
    border-radius: 999px;
    padding: 0 0.8rem;
    color: var(--color-secondary-dark);
    font: inherit;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.crm-legal-editor textarea {
    min-height: 520px;
    line-height: 1.55;
}

.print-offer-terms {
    display: grid;
    width: 100%;
    gap: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--color-muted);
}

.print-offer-terms-title {
    color: var(--color-secondary-dark);
    font-weight: 850;
}

.print-offer-terms-meta {
    max-width: 520px;
    width: 100%;
    max-width: none;
    padding: 0.42rem 0.58rem;
    border-left: 3px solid rgba(23, 179, 187, 0.32);
    border-radius: 0 10px 10px 0;
    background: rgba(23, 179, 187, 0.055);
}

.print-offer-terms-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.36rem 0.85rem;
}

.print-offer-term {
    padding-left: 0.42rem;
    border-left: 2px solid rgba(23, 179, 187, 0.28);
    break-inside: avoid;
    page-break-inside: avoid;
}

.print-offer-term h3 {
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
    margin: 0 0 0.14rem;
    color: var(--color-secondary-dark);
    font-size: 0.76rem;
    line-height: 1.2;
}

.print-offer-term h3 span {
    display: inline-grid;
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
    font-size: 0.62rem;
}

.print-offer-term p {
    margin: 0;
}

.crm-offer-remove {
    color: #7b5719;
    background: rgba(240, 185, 75, 0.14);
}

.crm-decline-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--color-muted);
    font-weight: 700;
}

.crm-decline-form input,
.crm-month-filter input {
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(25, 42, 46, 0.12);
    border-radius: 14px;
    font: inherit;
    background: rgba(255, 255, 255, 0.94);
}

.crm-time-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.crm-time-summary > div,
.crm-legal-note {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-time-summary > div {
    padding: 1rem;
}

.crm-time-summary span,
.crm-time-summary small {
    display: block;
    color: var(--color-muted);
}

.crm-time-summary strong,
.crm-time-summary b {
    display: block;
    margin-top: 0.2rem;
}

.crm-month-filter {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}

.crm-legal-note {
    margin-bottom: 1rem;
}

.crm-legal-note p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.ai-chat {
    position: fixed;
    right: clamp(1rem, 2vw, 1.5rem);
    bottom: clamp(1rem, 2vw, 1.5rem);
    z-index: 120;
    font-family: inherit;
}

.ai-chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.05rem;
    padding: 0 1.15rem;
    border: 1px solid rgba(23, 179, 187, 0.38);
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 24px 48px -28px rgba(23, 179, 187, 0.9);
    cursor: pointer;
}

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.8rem);
    display: grid;
    grid-template-rows: auto minmax(280px, 48vh) auto auto;
    width: min(430px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(23, 179, 187, 0.22), transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(117, 117, 116, 0.13), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(238, 250, 251, 0.22)),
        rgba(245, 253, 253, 0.2);
    backdrop-filter: blur(36px) saturate(1.55);
    -webkit-backdrop-filter: blur(36px) saturate(1.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -1px 0 rgba(255, 255, 255, 0.18),
        0 34px 100px -46px rgba(25, 42, 46, 0.72);
    font-size: 0.88rem;
}

.ai-chat-panel[hidden] {
    display: none !important;
}

.ai-chat-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.ai-chat-head strong,
.ai-chat-head span {
    display: block;
}

.ai-chat-head span,
.ai-chat-panel small {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.ai-chat-head button {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(23, 179, 187, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
}

.ai-chat-head button:hover {
    color: #fff;
    border-color: rgba(23, 179, 187, 0.36);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
    padding: 1rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(23, 179, 187, 0.16), transparent 36%),
        radial-gradient(circle at 100% 72%, rgba(255, 255, 255, 0.22), transparent 34%),
        rgba(255, 255, 255, 0.08);
}

.ai-chat-message {
    max-width: 86%;
    padding: 0.72rem 0.82rem;
    border-radius: 18px;
    color: var(--color-secondary-dark);
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 14px 34px -30px rgba(25, 42, 46, 0.42);
}

.ai-chat-message.is-user {
    align-self: flex-end;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.ai-chat-message.is-bot {
    align-self: flex-start;
}

.ai-chat-message p {
    margin: 0;
}

.ai-chat-message.is-thinking p::after {
    content: none;
}

.ai-chat-message.is-thinking span {
    display: inline-block;
    opacity: 0.35;
    animation: chatDotPulse 1s infinite ease-in-out;
}

.ai-chat-message.is-thinking span:nth-child(2) {
    animation-delay: 0.14s;
}

.ai-chat-message.is-thinking span:nth-child(3) {
    animation-delay: 0.28s;
}

.ai-chat-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.ai-chat-form input {
    min-height: 44px;
    padding: 0 3.2rem 0 0.9rem;
    border: 1px solid rgba(23, 179, 187, 0.24);
    border-radius: 999px;
    font: inherit;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    outline: none;
}

.ai-chat-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(23, 179, 187, 0.13);
}

.ai-chat-form button {
    position: absolute;
    right: 1.35rem;
    bottom: 1.08rem;
    display: grid;
    width: 2.25rem;
    min-height: 44px;
    height: 2.25rem;
    min-height: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(23, 179, 187, 0.38);
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    cursor: pointer;
}

@keyframes chatDotPulse {
    0%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 560px) {
    .ai-chat {
        right: 0.8rem;
        bottom: 0.8rem;
    }

    .ai-chat-panel {
        width: calc(100vw - 1.6rem);
        grid-template-rows: auto minmax(300px, 58vh) auto auto;
        border-radius: 24px;
    }

    .ai-chat-button {
        min-height: 2.85rem;
        padding: 0 1rem;
    }
}

.crm-time-table {
    min-width: 1180px;
}

.crm-add-position {
    width: fit-content;
    margin-top: 0.45rem;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.crm-checkbox {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem !important;
}

.crm-checkbox input {
    width: auto;
}

.crm-price-list,
.crm-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.crm-price-card {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.crm-price-card span {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.crm-profile-wrap {
    max-width: 880px;
}

.request-success {
    display: grid;
    gap: 1rem;
    min-height: 420px;
    align-content: center;
}

.offer-summary-lines {
    display: grid;
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.offer-summary-lines div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(25, 42, 46, 0.08);
}

.print-offer-body {
    background: #f7fafa;
}

.print-offer {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.print-offer-head,
.print-offer-grid,
.print-offer-total {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.print-offer-head {
    align-items: start;
    padding-bottom: 1.4rem;
    border-bottom: 2px solid rgba(23, 179, 187, 0.18);
}

.print-offer-head h1 {
    margin: 0.2rem 0 0.4rem;
}

.print-offer-grid,
.print-offer-section,
.print-offer-total {
    margin-top: 1.4rem;
}

.print-offer-terms-section {
    margin-top: 1rem;
}

.print-offer-terms-section h2 {
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
}

.print-offer-grid > div {
    flex: 1;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(244, 248, 248, 0.76);
}

.print-offer-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.print-offer-table th,
.print-offer-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(25, 42, 46, 0.12);
    text-align: left;
}

.print-offer-total {
    justify-content: flex-end;
    align-items: end;
    flex-wrap: wrap;
}

.print-offer-total div {
    min-width: 150px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(23, 179, 187, 0.08);
}

.print-offer-total span,
.print-offer-total strong {
    display: block;
}

.print-invoice-payment {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(23, 179, 187, 0.06);
}

.print-invoice-terms-section {
    padding-top: 0.6rem;
    border-top: 1px solid rgba(25, 42, 46, 0.1);
}

.print-invoice-terms {
    gap: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.24;
}

.print-invoice-terms-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem 0.75rem;
}

.print-invoice-term h3 {
    font-size: 0.72rem;
}

.print-invoice-term p {
    font-size: 0.7rem;
}

@media print {
    .site-shell,
    .print-button {
        display: none !important;
    }

    .print-offer-body {
        background: #fff;
    }

    .print-offer {
        margin: 0;
        padding: 0;
        max-width: none;
        box-shadow: none;
    }

    .print-offer-terms-section {
        margin-top: 0.7rem;
    }

    .print-offer-terms-section h2 {
        margin: 0 0 0.45rem;
        font-size: 1rem;
    }

    .print-offer-terms {
        gap: 0.38rem;
        font-size: 7.6pt;
        line-height: 1.15;
    }

    .print-offer-terms-meta {
        max-width: none;
        padding: 0.28rem 0.45rem;
    }

    .print-offer-terms-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.22rem 0.58rem;
    }

    .print-offer-term h3 {
        margin-bottom: 0.08rem;
        font-size: 7.6pt;
    }

    .print-offer-term h3 span {
        flex-basis: 0.95rem;
        width: 0.95rem;
        height: 0.95rem;
        font-size: 7pt;
    }

    .print-invoice-payment {
        padding: 0.18rem 0;
        background: transparent;
    }

    .print-invoice-terms {
        gap: 0.2rem;
        font-size: 7.2pt;
        line-height: 1.12;
    }

    .print-invoice-terms-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.16rem 0.5rem;
    }

    .print-invoice-term h3,
    .print-invoice-term p {
        font-size: 7.2pt;
    }
}

.request-success h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.portal-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.65fr);
    gap: 1.5rem;
    align-items: center;
}

.portal-auth-copy h1,
.portal-head h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.55rem, 5vw, 4.2rem);
    line-height: 1.04;
    text-wrap: balance;
}

.portal-auth-copy p:last-child,
.portal-head p,
.portal-empty,
.portal-smallprint {
    color: var(--color-muted);
    line-height: 1.65;
}

.portal-card,
.portal-list,
.portal-project-link {
    border: 1px solid var(--color-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
        #fff;
    box-shadow: var(--shadow-soft);
}

.portal-card,
.portal-list {
    border-radius: 28px;
}

.portal-login-card,
.portal-card {
    padding: 1.6rem;
}

.portal-login-card h2,
.portal-list h2,
.project-file h2 {
    margin: 0 0 0.8rem;
}

.login-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(23, 179, 187, 0.08);
}

.login-switch label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--color-secondary-dark);
}

.login-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-switch label:has(input:checked) {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #0fc4ce);
    box-shadow: 0 18px 36px -26px rgba(23, 179, 187, 0.8);
}

.portal-smallprint {
    margin: 1rem 0 0;
    font-size: 0.86rem;
}

.portal-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 1.4rem;
}

.portal-head > div {
    max-width: 780px;
}

.portal-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1.3rem;
    align-items: start;
}

.portal-list {
    padding: 1rem;
    position: sticky;
    top: 92px;
}

.portal-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.portal-list-head span {
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: rgba(23, 179, 187, 0.1);
}

.portal-project-link {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-project-link:hover,
.portal-project-link.is-active {
    transform: translateY(-2px);
    border-color: rgba(23, 179, 187, 0.28);
    box-shadow: var(--shadow-strong);
}

.portal-project-link small {
    color: var(--color-muted);
    line-height: 1.45;
}

.status-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-anfrage {
    color: #0c767d;
    background: rgba(23, 179, 187, 0.14);
}

.status-angenommen {
    color: #0f6a5d;
    background: rgba(34, 168, 132, 0.16);
}

.status-angebot {
    color: #7b5719;
    background: rgba(240, 185, 75, 0.2);
}

.status-versendet {
    color: #0f5f68;
    background: rgba(23, 179, 187, 0.18);
}

.status-angebot_akzeptiert {
    color: #0f6a5d;
    background: rgba(34, 168, 132, 0.18);
}

.status-projekt {
    color: #8b6420;
    background: rgba(240, 185, 75, 0.18);
}

.status-geschlossen {
    color: #4d4d4d;
    background: rgba(117, 117, 116, 0.16);
}

.status-abgelehnt {
    color: #8b3f34;
    background: rgba(194, 87, 72, 0.14);
}

.status-geloescht {
    color: #5f6264;
    background: rgba(117, 117, 116, 0.16);
}

.status-entwurf {
    color: #5f6264;
    background: rgba(117, 117, 116, 0.16);
}

.status-offen {
    color: #0c767d;
    background: rgba(23, 179, 187, 0.14);
}

.status-teilbezahlt {
    color: #7b5719;
    background: rgba(240, 185, 75, 0.2);
}

.status-bezahlt {
    color: #0f6a5d;
    background: rgba(34, 168, 132, 0.16);
}

.status-storniert {
    color: #8b3f34;
    background: rgba(194, 87, 72, 0.14);
}

.project-file {
    display: grid;
    gap: 1.3rem;
}

.project-file-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.project-file-head p,
.project-date {
    margin: 0;
    color: var(--color-muted);
}

.project-date {
    text-align: right;
    line-height: 1.55;
}

.project-date strong {
    color: var(--color-secondary-dark);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.project-meta-grid div,
.project-message,
.project-timeline,
.portal-status-form {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(244, 248, 248, 0.74);
    border: 1px solid rgba(17, 179, 187, 0.1);
}

.project-meta-grid span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.project-meta-grid strong {
    overflow-wrap: anywhere;
}

.project-message p:last-child {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.portal-status-form {
    margin-top: 0;
}

.project-timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(23, 179, 187, 0.24);
}

.timeline-item span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.84rem;
    color: var(--color-muted);
}

.timeline-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-item p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.legal-page {
    padding-top: 4rem;
}

.legal-copy {
    max-width: 860px;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(17, 179, 187, 0.08);
}

.footer-grid,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-grid {
    margin-bottom: 1rem;
}

.footer-column h3,
.footer-label {
    margin: 0 0 0.6rem;
}

.footer-column h3 {
    font-size: 1.05rem;
}

.footer-label {
    font-weight: 700;
    color: var(--color-secondary-dark);
}

.footer-grid p,
.footer-bottom p,
.footer-links a {
    color: var(--color-muted);
}

.footer-column p {
    margin: 0;
    line-height: 1.65;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

.footer-link:hover {
    color: var(--color-primary-dark);
}

.footer-link-strong {
    font-weight: 700;
    color: var(--color-secondary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(23, 179, 187, 0.4);
    text-underline-offset: 0.18em;
}

@media (max-width: 1080px) {
    .contact-hero-grid,
    .contact-layout,
    .crm-time-summary,
    .portal-auth-grid,
    .portal-layout,
    .crm-login-layout,
    .crm-login-panel,
    .crm-two-column,
    .crm-prices-grid,
    .services-grid.detailed,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-invoice-notice {
        display: grid;
        grid-template-columns: minmax(12rem, 0.32fr) minmax(0, 1fr);
        gap: 0.9rem 1.25rem;
        align-items: center;
        grid-column: 1 / -1;
        max-width: none;
    }

    .contact-invoice-notice .eyebrow {
        margin-bottom: 0;
    }

    .portal-list {
        position: static;
    }

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

    .crm-price-list,
    .crm-customer-grid {
        grid-template-columns: 1fr;
    }

    .crm-login-panel {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .header-inner {
        gap: 1rem;
        padding: 0.8rem 0;
    }

    .brand img {
        width: min(44vw, 190px);
    }

    .contact-hero-grid,
    .contact-layout,
    .services-grid.detailed,
    .services-grid.compact,
    .footer-grid,
    .footer-bottom,
    .cta-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid,
    .footer-bottom {
        gap: 1rem;
    }

    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    .contact-invoice-notice {
        display: block;
    }

    .contact-invoice-notice .eyebrow {
        margin-bottom: 0.55rem;
    }

    .portal-head,
    .project-file-head {
        flex-direction: column;
        align-items: stretch;
    }

    .project-date {
        text-align: left;
    }

    .hero-copy {
        padding: 1.5rem;
    }

    .hero-stage {
        min-height: 560px;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
    }

    .hero-stage::before {
        background:
            linear-gradient(0deg, rgba(18, 29, 32, 0.88), rgba(18, 29, 32, 0.34) 68%, rgba(18, 29, 32, 0.12)),
            linear-gradient(90deg, rgba(18, 29, 32, 0.58), rgba(18, 29, 32, 0.12));
    }

    .hero-stage .hero-copy {
        padding: 0;
    }

    .hero-stage .hero-copy h1 {
        font-size: 3.2rem;
    }

    .hero-proof {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1.2rem;
    }

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

    .testimonials-slider {
        padding: 0 2.8rem;
    }

    .testimonial-slide {
        flex: 0 0 calc((100% - 1.4rem) / 2);
    }
}

@media (max-width: 560px) {
    .section,
    .page-intro,
    .hero {
        padding: 2.5rem 0;
    }

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

    .section-heading {
        margin-bottom: 1.6rem;
    }

    .section-heading p:last-child,
    .page-intro p,
    .legal-copy p {
        line-height: 1.6;
    }

    .hero-copy h1,
    .contact-hero-copy h1,
    .page-intro h1,
    .section-heading h2,
    .cta-box h2 {
        font-size: 2.35rem;
    }

    .contact-hero {
        padding: 1.15rem 0 0.35rem;
    }

    .contact-hero-grid {
        padding: 1rem;
        border-radius: 22px;
    }

    .contact-section {
        padding-top: 1rem;
    }

    .contact-steps {
        grid-template-columns: 1fr;
    }

    .contact-steps article,
    .contact-info-card,
    .contact-service-area {
        padding: 1rem;
        border-radius: 20px;
    }

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

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

    .portal-auth,
    .portal-shell {
        padding: 1.6rem 0 3rem;
    }

    .portal-card,
    .portal-list,
    .portal-login-card {
        border-radius: 22px;
        padding: 1rem;
    }

    .portal-auth-copy h1,
    .portal-head h1 {
        font-size: 2.35rem;
    }

    .crm-app,
    .crm-login-screen {
        font-size: 0.9rem;
    }

    .crm-app-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-app-bar .button {
        width: fit-content;
        min-width: 160px;
    }

    .crm-login-brand {
        padding: 1rem;
    }

    .crm-login-brand h1,
    .crm-app-bar h1 {
        font-size: 2.2rem;
    }

    .crm-tabs {
        top: 70px;
        border-radius: 20px;
    }

    .crm-searchbar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .crm-filterbar {
        grid-template-columns: 1fr;
    }

    .crm-search-submit,
    .crm-search-reset {
        width: 100%;
    }

    .crm-detail-toolbar,
    .crm-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .crm-pagination > div,
    .crm-pagination a {
        width: 100%;
    }

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

    .crm-offer-send-panel {
        grid-template-columns: 1fr;
    }

    .crm-offer-send-panel .button {
        width: 100%;
    }

    .crm-offer-items-head {
        display: none;
    }

    .crm-offer-item-row {
        grid-template-columns: 1fr 1fr;
    }

    .crm-offer-item-row select,
    .crm-offer-item-row input[name$="[name]"],
    .crm-offer-note,
    .crm-offer-remove {
        grid-column: 1 / -1;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .hero-copy {
        padding: 1.5rem 1.15rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .brand img {
        width: min(52vw, 176px);
    }

    .nav-toggle {
        min-height: 42px;
        padding: 0.58rem 0.72rem;
    }

    .nav-toggle span {
        display: none;
    }

    .site-nav {
        --nav-radius: 104px;
        width: min(92vw, 330px);
        height: min(92vw, 330px);
    }

    .site-nav a {
        width: 66px;
        height: 66px;
    }

    .site-nav a span {
        top: calc(100% + 0.45rem);
        left: 50%;
        border-radius: 999px;
        font-size: 0.7rem;
        transform: translate(-50%, 0) scale(0.96);
    }

    .site-nav a:hover span,
    .site-nav a:focus-visible span,
    .site-nav a.is-active span {
        transform: translate(-50%, 0) scale(1);
    }

    .hero-actions,
    .centered-action {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-stage {
        min-height: 620px;
        padding: 1.15rem;
        border-radius: 24px;
    }

    .hero-stage .hero-copy {
        padding: 0;
    }

    .hero-stage .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-stage .hero-text {
        font-size: 1rem;
    }

    .hero-proof-chip {
        padding: 0.62rem 0.75rem;
        font-size: 0.86rem;
    }

    .hero-proof-rating strong {
        font-size: 1.35rem;
    }

    .service-card,
    .testimonial-card,
    .contact-card,
    .cta-box {
        padding: 1.25rem;
        border-radius: 22px;
    }

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

    .service-card-visual {
        margin-bottom: 0.9rem;
        border-radius: 17px;
    }

    .service-card-visual img {
        aspect-ratio: 1.65 / 1;
        transform: scale(1.1);
    }

    .service-index {
        width: 46px;
        height: 46px;
        margin-bottom: 0.9rem;
        border-radius: 15px;
    }

    .service-index svg,
    .service-index i,
    .service-detail-icon svg,
    .service-detail-icon i {
        width: 24px;
        height: 24px;
    }

    .service-index i,
    .service-detail-icon i {
        font-size: 21px;
    }

    .service-detail-card {
        gap: 1rem;
        padding: 0.85rem;
        border-radius: 22px;
    }

    .service-detail-card img {
        min-height: 180px;
        border-radius: 18px;
    }

    .service-detail-content {
        padding: 0.1rem;
    }

    .service-detail-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 0.8rem;
        border-radius: 15px;
    }

    .references-slider {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: auto;
        padding: 0;
        padding-bottom: 0.35rem;
    }

    .references-track {
        gap: 0.85rem;
        width: max-content;
    }

    .reference-slide {
        width: 68vw;
        min-width: 68vw;
        aspect-ratio: 1 / 1.02;
        border-radius: 20px;
    }

    .testimonials-slider {
        padding: 0 2.4rem;
    }

    .testimonials-controls {
        inset: auto 0 -0.35rem 0;
        transform: none;
    }

    .testimonial-slide {
        flex: 0 0 100%;
    }

    .reference-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.75rem;
    }

    .testimonial-card blockquote {
        min-height: 0;
    }

    .invoice-notice {
        margin-top: 1.4rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .site-footer {
        padding: 0.6rem 0 1.4rem;
    }

    .footer-grid {
        margin-bottom: 0.4rem;
        gap: 0.9rem;
    }

    .footer-bottom {
        gap: 0.75rem;
    }

    .footer-column p,
    .footer-bottom p,
    .footer-links a {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .site-nav a,
    .nav-close {
        transition: none;
    }
}
