:root {
    --red: #e30514;
    --red-dark: #b9000d;
    --dark: #212138;
    --ink: #171720;
    --muted: #686a74;
    --line: #e7e8ec;
    --surface: #f6f7f9;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(20, 20, 32, 0.10);
    --shadow-soft: 0 14px 40px rgba(20, 20, 32, 0.07);
    --radius: 8px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

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

button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 999;
    transform: translateY(-150%);
    background: var(--white);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-container {
    width: calc(100% - 2rem);
    max-width: 1180px;
    margin-inline: auto;
}

.narrow {
    width: calc(100% - 2rem);
    max-width: 820px;
}

.section {
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-muted {
    background: var(--surface);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
}

.section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 900;
}

.split-layout h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 900;
}

.section-head p,
.copy-block p,
.hero p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.section-head p {
    max-width: 650px;
    margin: 1.25rem auto 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    background: var(--red);
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover svg {
    transform: translateX(2px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(227, 5, 20, 0.22);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-secondary {
    border-color: var(--line);
    background: var(--white);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--ink);
}

.btn-on-dark {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.btn-on-dark:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.btn-small {
    min-height: 2.75rem;
    padding: 0.75rem 1.05rem;
    font-size: 0.7rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(231, 232, 236, 0.9);
    box-shadow: 0 10px 35px rgba(20, 20, 32, 0.08);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(100% - 2rem, 1240px);
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.45rem 0.6rem;
    box-shadow: 0 10px 30px rgba(20, 20, 32, 0.08);
    transition: background-color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
}

.brand img {
    height: 2.35rem;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-links a,
.mobile-nav a:not(.btn),
.nav-phone {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header:not(.is-scrolled):not(.is-open) .nav-links a,
.site-header:not(.is-scrolled):not(.is-open) .nav-phone {
    color: var(--white);
}

.nav-links a {
    position: relative;
    color: var(--ink);
    transition: color 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--red);
    transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--red);
}

.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
}

.nav-phone svg,
.mobile-phone-btn svg,
.nav-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mobile-phone-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(227, 5, 20, 0.22);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
}

.mobile-nav {
    width: min(100% - 2rem, 1240px);
    margin: 0 auto 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.mobile-nav a {
    display: flex;
    padding: 0.9rem 0.25rem;
    color: var(--ink);
}

.mobile-nav .btn {
    margin-top: 0.5rem;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(33, 33, 56, 0.92), rgba(33, 33, 56, 0.66) 48%, rgba(33, 33, 56, 0.28)),
        linear-gradient(0deg, rgba(33, 33, 56, 0.78), rgba(33, 33, 56, 0.06) 45%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin-inline: auto;
    text-align: left;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.hero-kicker span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--white);
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: 0;
    font-weight: 900;
}

.hero p {
    max-width: 690px;
    margin: 1.6rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.6rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-note svg {
    width: 1rem;
    height: 1rem;
    color: var(--red);
}

.trust-strip {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-inline: 1px solid var(--line);
}

.trust-item,
.trust-message {
    background: var(--white);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.trust-item strong {
    display: block;
    color: var(--dark);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    font-weight: 900;
}

.trust-item span,
.trust-message span {
    display: block;
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
    font-weight: 700;
}

.trust-message {
    display: flex;
    align-items: center;
}

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

.service-card,
.value-card,
.process-card,
.project-card,
.faq-item,
.contact-card,
.contact-form,
.quote-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2rem);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::after,
.value-card::after,
.process-card::after,
.project-card::after,
.contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.72) 38%, transparent 58%);
    transform: translateX(-130%);
    transition: transform 650ms ease;
}

.service-card:hover,
.service-card:focus {
    outline: none;
    transform: translateY(-6px);
    border-color: rgba(227, 5, 20, 0.28);
    box-shadow: var(--shadow-soft);
}

.service-card:hover::after,
.value-card:hover::after,
.process-card:hover::after,
.project-card:hover::after,
.contact-card:hover::after {
    transform: translateX(130%);
}

.service-card:hover .card-icon,
.value-card:hover svg {
    transform: translateY(-2px) scale(1.04);
}

.card-icon,
.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background: rgba(227, 5, 20, 0.08);
    color: var(--red);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.card-icon svg,
.modal-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.service-card h3,
.value-card h3,
.process-card h3,
.project-card h3 {
    margin: 1.25rem 0 0.65rem;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.15;
}

.service-card p,
.value-card p,
.process-card p,
.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.service-card ul {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 1.35rem 0;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--red);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-link svg {
    width: 0.9rem;
    height: 0.9rem;
}

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr);
    row-gap: 1rem;
    max-width: 1040px;
    margin-inline: auto;
    padding: 1.1rem 0;
}

.process-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.process-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.9rem 1rem;
    align-items: center;
    min-height: 128px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 14px 34px rgba(20, 20, 32, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    z-index: 1;
}

.process-card:nth-child(odd) {
    grid-column: 1;
    text-align: right;
    margin-right: 0.9rem;
}

.process-card:nth-child(even) {
    grid-column: 3;
    grid-template-columns: auto 1fr;
    text-align: left;
    margin-left: 0.9rem;
}

.process-card:nth-child(even) > svg {
    grid-column: 1;
    grid-row: 2 / span 2;
}

.process-card:nth-child(1) {
    grid-row: 1;
}

.process-card:nth-child(2) {
    grid-row: 2;
}

.process-card:nth-child(3) {
    grid-row: 3;
}

.process-card:nth-child(4) {
    grid-row: 4;
}

.process-card::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.82rem;
    height: 0.82rem;
    border: 3px solid var(--surface);
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 6px var(--white);
    transform: translateY(-50%);
}

.process-card:nth-child(odd)::before {
    right: -2.65rem;
}

.process-card:nth-child(even)::before {
    left: -2.65rem;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 5, 20, 0.28);
    box-shadow: var(--shadow);
}

.process-card span {
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 1.45rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(227, 5, 20, 0.2);
    font-size: 0.68rem;
    line-height: 1;
}

.process-card:nth-child(even) span {
    left: 1rem;
    right: auto;
}

.process-card span {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.process-card > svg {
    grid-column: 2;
    grid-row: 2 / span 2;
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0.78rem;
    border-radius: var(--radius);
    background: rgba(227, 5, 20, 0.08);
    color: var(--red);
    transition: transform 180ms ease, background-color 180ms ease;
}

.process-card:hover > svg {
    transform: rotate(-4deg) scale(1.05);
    background: rgba(227, 5, 20, 0.13);
}

.process-card h3 {
    grid-column: 1;
    margin-top: 0;
}

.process-card p {
    grid-column: 1;
}

.process-card:nth-child(even) h3,
.process-card:nth-child(even) p {
    grid-column: 2;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: clamp(2.25rem, 4vw, 4.5rem);
    align-items: stretch;
    max-width: 1180px;
}

.copy-block {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quote-box {
    margin-top: 2rem;
    padding: 1.4rem;
    background: var(--surface);
    border-left: 4px solid var(--red);
}

.quote-box p {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.6;
}

.quote-box span {
    display: block;
    margin-top: 1rem;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    align-self: end;
    justify-self: center;
    min-width: 0;
    width: min(100%, 580px);
}

.value-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.05rem, 1.8vw, 1.35rem);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    min-width: 0;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 5, 20, 0.26);
    box-shadow: var(--shadow-soft);
}

.value-card svg {
    width: 1.55rem;
    height: 1.55rem;
    color: var(--red);
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -1.5rem 0 2rem;
}

.filter-btn {
    min-width: 7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    padding: 0.8rem 1.15rem;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.project-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    background: #d8dae0;
    padding: 0;
    text-align: left;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 33, 56, 0.72);
    color: var(--white);
    opacity: 0;
    transition: opacity 180ms ease;
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
    opacity: 1;
}

.project-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: var(--red);
    padding: 0.8rem 1rem;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-content {
    padding: 1.2rem;
}

.project-content small,
.project-meta span {
    display: inline-flex;
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-content h3 {
    margin-top: 0.75rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-weight: 900;
}

.faq-question svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--red);
    transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.2rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.contact-section {
    background:
        linear-gradient(180deg, var(--white), #fafafa);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 1.25rem;
    align-items: start;
}

.contact-panel {
    display: grid;
    gap: 0.75rem;
}

.contact-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 5, 20, 0.26);
    box-shadow: var(--shadow-soft);
}

.whatsapp-card {
    border-color: var(--line);
    background: var(--white);
}

.whatsapp-card small {
    color: #128c4a;
}

.brand-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.whatsapp-icon {
    color: #25d366;
}

.instagram-icon {
    color: #e1306c;
}

.whatsapp-card .brand-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.whatsapp-card::after {
    display: none;
}

.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.58) !important;
}

.contact-card svg:not(.brand-icon),
.emergency-box svg {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--red);
}

.contact-card .brand-icon {
    flex: 0 0 auto;
}

.contact-card small,
.emergency-box small {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.whatsapp-card small {
    color: #128c4a;
}

.contact-card strong,
.emergency-box strong {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 900;
}

.emergency-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white);
}

.emergency-box small {
    color: rgba(255, 255, 255, 0.68);
}

.emergency-box strong {
    color: var(--white);
}

.contact-form {
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--shadow-soft);
}

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

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field span {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfbfc;
    color: var(--ink);
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(227, 5, 20, 0.55);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(227, 5, 20, 0.08);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 5, 20, 0.08);
}

.field-error {
    min-height: 1rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.form-success {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(19, 130, 80, 0.22);
    border-radius: var(--radius);
    background: #eefaf3;
    color: #145c3a;
}

.form-success svg {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
}

.form-success strong,
.form-success p {
    margin: 0;
}

.form-success p {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand img {
    width: 10rem;
    height: auto;
    padding: 0.55rem;
    border-radius: var(--radius);
    background: var(--white);
}

.footer-brand p,
.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
    max-width: 320px;
    margin-top: 1.25rem;
    line-height: 1.7;
}

.site-footer h3 {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.social-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.social-link .brand-icon {
    width: 1rem;
    height: 1rem;
}

.btn-footer {
    display: inline-flex !important;
    margin-top: 0.75rem;
    background: var(--red);
    color: var(--white) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
}

.footer-bottom span:last-child {
    display: flex;
    gap: 1rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 56, 0.82);
    backdrop-filter: blur(12px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-height: min(92svh, 860px);
    overflow: auto;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.modal-panel-wide {
    width: min(100%, 880px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 23, 32, 0.72);
    color: var(--white);
}

.modal-close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.modal-media,
.modal-image {
    width: 100%;
    height: 280px;
    background-position: center;
    background-size: cover;
    object-fit: cover;
}

.project-gallery {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.project-gallery .modal-image {
    height: clamp(260px, 44vw, 430px);
    transition: opacity 180ms ease, transform 260ms ease;
}

.project-gallery.is-changing .modal-image {
    opacity: 0.3;
    transform: scale(1.015);
}

.gallery-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(33, 33, 56, 0.64);
    color: var(--white);
    transform: translateY(-50%);
    transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-control:hover {
    background: var(--red);
    transform: translateY(-50%) scale(1.05);
}

.gallery-control svg {
    width: 1.2rem;
    height: 1.2rem;
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    border-radius: 999px;
    background: rgba(33, 33, 56, 0.72);
    color: var(--white);
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gallery-expand {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(33, 33, 56, 0.78);
    color: var(--white);
    padding: 0.65rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-expand:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.gallery-expand svg {
    width: 1rem;
    height: 1rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    flex: 0 0 78px;
    height: 58px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--surface);
    padding: 0;
    transition: border-color 180ms ease, transform 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: var(--red);
    transform: translateY(-2px);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: clamp(1.35rem, 4vw, 2rem);
}

.modal-body h2 {
    margin: 0 0 0.75rem;
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
    font-weight: 900;
}

.modal-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.modal-icon {
    margin-top: -3.5rem;
    margin-bottom: 1rem;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 16px 30px rgba(227, 5, 20, 0.22);
}

.modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.modal-list svg {
    width: 1rem;
    height: 1rem;
    color: var(--red);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.project-meta span {
    border-radius: 999px;
    background: rgba(227, 5, 20, 0.08);
    padding: 0.35rem 0.65rem;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(10px);
}

.image-lightbox img {
    position: relative;
    z-index: 1;
    max-width: min(100%, 1400px);
    max-height: 88svh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-lightbox-close,
.image-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background-color 180ms ease, transform 180ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
    background: var(--red);
    transform: scale(1.04);
}

.image-lightbox-close {
    top: 1rem;
    right: 1rem;
}

.image-lightbox-prev {
    left: 1rem;
    top: 50%;
}

.image-lightbox-next {
    right: 1rem;
    top: 50%;
}

.legal-page {
    min-height: 100svh;
    background: var(--surface);
    padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.legal-back {
    display: block;
    width: min(100%, 900px);
    margin: 0 auto 1rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-document {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.legal-logo {
    width: 11rem;
    height: auto;
    margin-bottom: 2rem;
}

.legal-document h1 {
    margin: 0 0 2rem;
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 900;
}

.legal-document section + section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.legal-document h2 {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
}

.legal-document p,
.legal-document li {
    color: var(--muted);
    line-height: 1.75;
}

.legal-document p {
    margin: 0.65rem 0 0;
}

.legal-document a {
    color: var(--red);
    font-weight: 800;
}

.legal-document ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card.reveal,
.process-card:nth-child(even).reveal,
.value-card:nth-child(even).reveal,
.contact-form.reveal {
    transform: translateX(34px);
}

.process-card:nth-child(odd).reveal,
.value-card:nth-child(odd).reveal,
.contact-panel.reveal,
.split-layout > .reveal {
    transform: translateX(-34px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-phone,
    .nav-actions .btn {
        display: none;
    }

    .mobile-phone-btn,
    .nav-toggle {
        display: inline-flex !important;
    }

    .trust-grid,
    .service-grid,
    .project-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout {
        grid-template-columns: 1fr;
        max-width: 820px;
        align-items: start;
        gap: 2rem;
    }

    .split-layout h2 {
        max-width: 680px;
    }

    .value-grid {
        align-self: auto;
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 720px;
        padding: 0.25rem 0 0.25rem 1.4rem;
    }

    .process-grid::before {
        left: 0;
    }

    .process-card,
    .process-card:nth-child(odd),
    .process-card:nth-child(even) {
        grid-column: 1;
        grid-template-columns: auto minmax(0, 1fr);
        grid-row: auto;
        margin: 0;
        text-align: left;
    }

    .process-card::before,
    .process-card:nth-child(odd)::before,
    .process-card:nth-child(even)::before {
        left: -1.8rem;
        right: auto;
    }

    .process-card > svg,
    .process-card:nth-child(even) > svg {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    .process-card h3,
    .process-card p,
    .process-card:nth-child(even) h3,
    .process-card:nth-child(even) p {
        grid-column: 2;
    }

    .process-card span,
    .process-card:nth-child(even) span {
        left: auto;
        right: 1rem;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 74px;
    }

    .site-container,
    .narrow,
    .nav,
    .mobile-nav {
        width: calc(100% - 1.25rem);
    }

    .section {
        padding: 4rem 0;
    }

    .brand img {
        height: 2rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 3rem) 0 4rem;
    }

    .hero-media::after {
        background:
            linear-gradient(90deg, rgba(33, 33, 56, 0.9), rgba(33, 33, 56, 0.62)),
            linear-gradient(0deg, rgba(33, 33, 56, 0.82), rgba(33, 33, 56, 0.1));
    }

    .hero-actions,
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .trust-grid,
    .service-grid,
    .project-grid,
    .value-grid,
    .contact-layout,
    .footer-grid,
    .form-grid,
    .modal-list {
        grid-template-columns: 1fr;
    }

    .trust-message {
        display: block;
    }

    .trust-strip {
        padding-top: 1rem;
    }

    .trust-grid {
        gap: 0.75rem;
        background: transparent;
        border-inline: 0;
    }

    .trust-item,
    .trust-message {
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    .process-grid {
        padding-left: 1.1rem;
    }

    .process-card::before,
    .process-card:nth-child(odd)::before,
    .process-card:nth-child(even)::before {
        left: -1.5rem;
    }

    .process-card {
        padding: 1.15rem;
    }

    .process-card > svg {
        width: 2.55rem;
        height: 2.55rem;
        padding: 0.68rem;
    }

    .split-layout h2 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .service-card.reveal,
    .process-card:nth-child(even).reveal,
    .process-card:nth-child(odd).reveal,
    .value-card:nth-child(even).reveal,
    .value-card:nth-child(odd).reveal,
    .contact-form.reveal,
    .contact-panel.reveal,
    .split-layout > .reveal {
        transform: translateY(22px);
    }

    .filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .gallery-expand {
        left: 0.75rem;
        right: 0.75rem;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
    }

}
