/* MIBUK CONSTRUCTIONS – layout matched to design mockup */
:root {
    --color-dark: #0a1118;
    --color-dark-deep: #060b10;
    --color-dark-about: #0d1520;
    --color-about-bg: #0b1018;
    --color-orange: #f2983e;
    --color-orange-hover: #f5ad62;
    --color-orange-rgb: 242, 152, 62;
    --color-white: #ffffff;
    --color-light: #f4f5f7;
    --color-text: #1a1f26;
    --color-text-muted: #5c6570;
    --color-border: #dde2e8;
    --font: "Montserrat", system-ui, sans-serif;
    --container: min(1200px, calc(100% - 48px));
    --header-h: 88px;
    --radius-btn: 4px;
    --radius-card: 6px;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.28);
    --transition: 0.25s ease;
    --font-size-min: 13px;
}

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

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: var(--color-about-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-about-bg);
    -webkit-font-smoothing: antialiased;
}

body > main {
    flex: 1 0 auto;
}

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

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

.container {
    width: var(--container);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: var(--font-size-min);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-orange-hover);
    border-color: var(--color-orange-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 17, 24, 0.85) 0%, rgba(10, 17, 24, 0) 100%);
    transition: background var(--transition), box-shadow var(--transition);
}

.page-home .site-header {
    background: rgba(10, 17, 24, 0.98);
    box-shadow: none;
}

.page-home .site-header.is-scrolled {
    background: rgba(10, 17, 24, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled {
    background: rgba(10, 17, 24, 0.96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.page-projects .site-header,
.page-legal .site-header {
    background: rgba(10, 17, 24, 0.98);
}

.header-inner {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(1320px, calc(100% - 40px));
}

.logo img {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.nav-link {
    font-size: var(--font-size-min);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-min);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-link {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.lang-link:hover,
.lang-link.is-active {
    color: var(--color-orange);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--font-size-min);
}

.btn-header {
    padding: 12px 22px;
    font-size: var(--font-size-min);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

.about-logo-mobile {
    display: none;
}

html.menu-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    touch-action: none;
    overscroll-behavior: none;
}

/* Hero */
.hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: clamp(480px, 62vh, 620px);
    height: clamp(480px, 62vh, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../images/hero-image.webp") center center / cover no-repeat;
    filter: grayscale(35%) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 12, 0.92) 0%,
        rgba(8, 10, 12, 0.72) 38%,
        rgba(8, 10, 12, 0.25) 68%,
        rgba(8, 10, 12, 0.15) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 560px;
    padding-block: 36px 44px;
}

.hero-title {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title__line {
    display: block;
    font-size: clamp(2.75rem, 6.2vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-white);
}

.hero-tagline {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
}

.hero-tagline__word {
    display: inline-block;
    margin-right: 0.35em;
    transition: color 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
    color: var(--color-white);
    transform: translateY(0);
}

.hero-tagline__word:last-child {
    margin-right: 0;
}

.hero-tagline__word.is-active {
    color: var(--color-orange);
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 0 28px rgba(var(--color-orange-rgb), 0.45);
}

.hero-tagline__word.is-exit {
    opacity: 1;
}

.hero-tagline__dot {
    color: inherit;
}

.hero-tagline-line {
    display: block;
    width: 72px;
    height: 3px;
    background: var(--color-orange);
    margin: 0 0 22px;
}

.hero-text {
    margin: 0 0 28px;
    max-width: 500px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero-buttons .btn {
    min-width: 180px;
}

.hero-buttons .btn-outline {
    border-width: 1.5px;
    padding: 13px 26px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-tagline__word {
        transition: color 0.2s ease;
        color: var(--color-white);
    }
}

/* Services */
.services {
    background: #f3f4f6;
    padding: 64px 0 72px;
}

.services-container {
    width: min(1320px, calc(100% - 40px));
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a2332;
}

.section-title-line {
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 auto;
    background: var(--color-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid #e4e7ec;
    border-radius: 4px;
    box-shadow: 0 2px 14px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    text-align: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card--static {
    cursor: default;
}

.service-card--static:hover {
    transform: none;
    border-color: #e4e7ec;
    box-shadow: 0 2px 14px rgba(16, 24, 40, 0.06);
}

.service-card--static:hover .service-card__image img {
    transform: none;
    filter: saturate(0.95);
}

.service-card--static:hover .service-card__icon {
    transform: none;
    box-shadow: 0 4px 14px rgba(var(--color-orange-rgb), 0.35);
}

.service-card--static:hover h3 {
    color: #1a2332;
}

.service-card__image {
    overflow: hidden;
    aspect-ratio: 1.15 / 1;
    flex-shrink: 0;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__icon {
    width: 54px;
    height: 54px;
    margin: -27px auto 12px;
    display: grid;
    place-items: center;
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(var(--color-orange-rgb), 0.35);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
}

.service-card__body {
    padding: 0 14px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: var(--font-size-min);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #1a2332;
}

.service-card p {
    margin: 0;
    font-size: var(--font-size-min);
    line-height: 1.65;
    color: #5c6570;
}

/* About */
.about {
    position: relative;
    background: var(--color-about-bg);
    padding: 25px 0;
    overflow: hidden;
}

.about-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 120% at 15% 50%, rgba(35, 48, 68, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 100% at 85% 40%, rgba(25, 32, 45, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        #0b1018;
    opacity: 1;
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(180px, 240px) minmax(300px, 1.15fr);
    gap: 32px 52px;
    align-items: center;
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
}

.about-col--text h2 {
    margin: 0 0 22px;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--color-orange);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-col--text p {
    margin: 0 0 14px;
    font-size: var(--font-size-min);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.about-col--text p:last-child {
    margin-bottom: 0;
}

.about-col--logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.about-col--logo img {
    display: block;
    width: auto;
    max-width: 240px;
    max-height: 240px;
    height: auto;
    object-fit: contain;
}

.about-col--stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 28px;
    align-items: start;
    justify-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0;
    width: 100%;
    max-width: 140px;
}

.stat-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    color: var(--color-white);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.6;
}

.stat-value {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.stat-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: var(--font-size-min);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
    max-width: 11rem;
}

.stat-label__line {
    display: block;
}

/* Contact */
.contact-section {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(8, 10, 14, 0.25) 0%, rgba(8, 10, 14, 0.1) 50%, rgba(8, 10, 14, 0.3) 100%),
        url("../images/contact-bg-left.webp"),
        url("../images/contact-bg-right.webp");
    background-size: auto, 50% 100%, 50% 100%;
    background-position: center, -23% center, 125% center;
    background-repeat: no-repeat;
}

.contact-card {
    position: relative;
    z-index: 1;
    width: 50%;
    min-width: min(100%, 520px);
    margin-inline: auto;
    background: var(--color-white);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    padding: 44px 31px 42px 6%;
    box-sizing: border-box;
    container-type: inline-size;
    overflow: visible;
}

.contact-card__inner {
    width: 100%;
    min-width: 0;
}

.contact-card__header {
    text-align: left;
    margin-bottom: 28px;
}

.contact-card__header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.2;
}

.contact-card__line {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--color-orange);
    margin-bottom: 12px;
}

.contact-card__header p {
    margin: 0;
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.55;
    color: var(--color-text-muted);
}

.contact-card__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    align-items: start;
    min-width: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-top: 12px;
    min-width: 0;
}

.contact-info__item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-width: 0;
    font-size: clamp(14px, 1.55vw, 17px);
    line-height: 1.4;
}

.contact-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 1.4em;
    color: var(--color-orange);
}

.contact-info__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-orange);
    color: var(--color-orange);
}

.contact-info__item a,
.contact-info__item span {
    min-width: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.contact-info__item a:hover {
    color: var(--color-orange);
}

/* Honeypot — hidden from users, visible to many bots */
.contact-form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: clamp(13px, 1.2vw, 14px);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text);
    background: #f0f2f5;
    border: 1px solid #dce1e8;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7a8490;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #c5ccd6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(var(--color-orange-rgb), 0.14);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-submit {
    align-self: flex-end;
    margin-top: 8px;
    min-width: 210px;
    padding: 14px 26px;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(var(--color-orange-rgb), 0.28);
}

@container (max-width: 560px) {
    .contact-card__body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form .btn-submit {
        width: 100%;
        align-self: stretch;
    }
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--color-about-bg);
    padding: 0;
}

.footer-inner {
    position: relative;
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
    min-height: 88px;
    padding: 26px 0 28px;
}

.footer-main {
    text-align: center;
}

.footer-copy,
.footer-credit {
    margin: 0;
    font-size: var(--font-size-min);
    color: #b8bec8;
}

.footer-copy {
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 12px;
}

.footer-legal a {
    font-size: var(--font-size-min);
    color: #b8bec8;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-orange);
    text-decoration-color: var(--color-orange);
}

.footer-credit {
    position: absolute;
    right: 0;
    bottom: 12px;
}

.footer-credit a {
    color: #f5ad62;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-credit a:hover {
    color: var(--color-orange-hover);
    text-decoration-color: var(--color-orange-hover);
}

.footer-credit a:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Legal pages */
.legal-page {
    padding: calc(var(--header-h) + 48px) 0 80px;
    background: var(--color-dark-about);
}

.legal-page__inner {
    max-width: 720px;
}

.legal-page__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-page h1 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
}

.legal-page__updated {
    margin: 0;
    font-size: var(--font-size-min);
    color: rgba(255, 255, 255, 0.45);
}

.legal-page__content > *:first-child {
    margin-top: 0;
}

.legal-page h2 {
    margin: 32px 0 14px;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-white);
}

.legal-page h3 {
    margin: 22px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-orange);
}

.legal-page h4 {
    margin: 18px 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.legal-page p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.legal-page a {
    color: var(--color-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--color-orange-hover);
}

.legal-page ul {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.legal-page ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
}

.legal-dl {
    margin: 0 0 20px;
}

.legal-dl dt {
    margin: 14px 0 4px;
    font-weight: 700;
    color: var(--color-white);
    font-size: 15px;
}

.legal-dl dd {
    margin: 0 0 0 0;
    padding-left: 0;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.legal-detail-card {
    margin: 16px 0 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--color-orange);
    border-radius: 4px;
}

.legal-detail-card h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--color-white);
}

.legal-detail-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-detail-card li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.legal-detail-card li strong {
    color: rgba(255, 255, 255, 0.9);
}

.legal-links {
    list-style: none;
    padding-left: 0;
}

.legal-links li {
    margin-bottom: 12px;
}

.legal-links a {
    word-break: break-all;
}

.legal-page__contact-email {
    font-size: 15px;
}

.legal-page__back {
    margin-top: 32px;
}

.legal-page__back a {
    color: var(--color-orange);
    font-weight: 600;
    font-size: var(--font-size-min);
}

.legal-page__back a:hover {
    color: var(--color-orange-hover);
}

/* Projects page */
.page-projects main {
    padding-top: var(--header-h);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--color-orange-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 100%, rgba(var(--color-orange-rgb), 0.04) 0%, transparent 55%),
        var(--color-about-bg);
    min-height: 100vh;
}

.projects-page {
    padding: 0;
}

.projects-section {
    margin: 64px 0;
    position: relative;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.projects-section:first-child {
    margin-top: 64px;
}

.projects-section:last-child {
    margin-bottom: 64px;
}

.projects-section__header {
    margin-bottom: 36px;
}

.projects-section h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.projects-section h2 .highlight {
    color: var(--color-orange);
}

.projects-section .title-line {
    display: block;
    width: 64px;
    height: 3px;
    background: var(--color-orange);
    margin: 0 auto;
    box-shadow: 0 0 18px rgba(var(--color-orange-rgb), 0.6);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

.project-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    overflow: hidden;
    outline: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        border-color 0.4s ease;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    filter: saturate(0.92) brightness(0.92);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.project-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0) 50%, rgba(8, 12, 18, 0.55) 100%),
        radial-gradient(circle at 50% 50%, rgba(var(--color-orange-rgb), 0) 40%, rgba(var(--color-orange-rgb), 0.18) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(var(--color-orange-rgb), 0.5);
    transform: scale(0.85);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-item__icon svg {
    width: 22px;
    height: 22px;
}

.project-item:hover,
.project-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(var(--color-orange-rgb), 0.45);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--color-orange-rgb), 0.25);
}

.project-item:focus-visible {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(var(--color-orange-rgb), 0.55);
}

.project-item:hover img,
.project-item:focus-visible img {
    transform: scale(1.08);
    filter: saturate(1.05) brightness(1);
}

.project-item:hover .project-item__overlay,
.project-item:focus-visible .project-item__overlay {
    opacity: 1;
}

.project-item:hover .project-item__icon,
.project-item:focus-visible .project-item__icon {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 11, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.lightbox__content {
    position: relative;
    width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.lightbox__image.is-loading {
    opacity: 0;
    transform: scale(0.98);
}

.lightbox__caption {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-min);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lightbox__title {
    font-weight: 700;
}

.lightbox__counter {
    color: var(--color-orange);
    font-weight: 600;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), border-color var(--transition),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__close svg,
.lightbox__nav svg {
    width: 22px;
    height: 22px;
}

.lightbox__close {
    top: 0;
    right: 0;
}

.lightbox__nav--prev {
    left: -64px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: -64px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.lightbox__nav--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox__nav--next:hover {
    transform: translateY(-50%) translateX(3px);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .lightbox {
        padding: 14px;
    }

    .lightbox__nav--prev,
    .lightbox__nav--next {
        position: absolute;
        top: auto;
        bottom: -68px;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .lightbox__nav--prev { left: calc(50% - 56px); }
    .lightbox__nav--next { right: calc(50% - 56px); }

    .lightbox__nav--prev:hover { transform: translateX(-2px); }
    .lightbox__nav--next:hover { transform: translateX(2px); }

    .lightbox__close {
        top: -56px;
        right: 0;
        width: 44px;
        height: 44px;
    }

    .lightbox__image {
        max-height: 64vh;
    }

    .lightbox__caption {
        margin-top: 12px;
        font-size: 11px;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .about-col--logo {
        grid-column: 1 / -1;
        order: -1;
    }

    .about-col--logo img {
        max-width: 220px;
        max-height: 220px;
    }

    .about-col--stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 20px;
    }

    .stat-item {
        max-width: none;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
    }

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

@media (max-width: 992px) {
    :root {
        --header-h: 76px;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        width: min(1320px, calc(100% - 28px));
    }

    .logo img {
        height: 48px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        flex-shrink: 0;
    }

    .mobile-menu.is-open {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        inset: var(--header-h) 0 0;
        z-index: 999;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background:
            linear-gradient(165deg, rgba(10, 17, 24, 0.98) 0%, rgba(6, 11, 16, 0.99) 55%, rgba(8, 12, 18, 1) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        padding: 36px 28px 20px;
    }

    .mobile-menu__link {
        display: block;
        padding: 20px 0 20px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.88);
        border-left: 3px solid transparent;
        transition: color var(--transition), border-color var(--transition), padding-left var(--transition);
    }

    .mobile-menu__link:hover,
    .mobile-menu__link.is-active {
        color: var(--color-white);
        border-left-color: var(--color-orange);
        padding-left: 20px;
    }

    .mobile-menu__footer {
        padding: 24px 28px 36px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.2);
    }

    .mobile-menu__cta {
        width: 100%;
        padding: 16px 24px;
        font-size: var(--font-size-min);
        box-shadow: 0 8px 24px rgba(var(--color-orange-rgb), 0.35);
    }

    .lang-switcher--mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .lang-switcher--mobile .lang-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 4px;
        font-size: var(--font-size-min);
        font-weight: 700;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.75);
        transition: background var(--transition), border-color var(--transition), color var(--transition);
    }

    .lang-switcher--mobile .lang-link:hover,
    .lang-switcher--mobile .lang-link.is-active {
        background: var(--color-orange);
        border-color: var(--color-orange);
        color: var(--color-white);
    }

    .hero-inner {
        width: min(1320px, calc(100% - 28px));
    }

    .hero-title__line {
        font-size: clamp(2rem, 5.8vw, 3.1rem);
    }

    .hero-title__line:last-child {
        font-size: clamp(1.55rem, 4.9vw, 2.35rem);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        width: min(1320px, calc(100% - 28px));
    }

    .about-logo-desktop {
        display: none;
    }

    .about-logo-mobile {
        display: flex;
        justify-content: center;
        margin: 20px 0 24px;
    }

    .about-logo-mobile img {
        width: auto;
        max-width: min(200px, 70vw);
        max-height: 200px;
        height: auto;
        object-fit: contain;
    }

    .about-col--text {
        text-align: left;
    }

    .about-col--text h2 {
        text-align: center;
    }

    .about-col--stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
        justify-items: stretch;
    }

    .stat-item {
        max-width: none;
        padding: 18px 12px;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
        color: var(--color-orange);
    }

    .stat-value {
        font-size: 1.35rem;
        color: var(--color-orange);
    }

    .stat-label {
        font-size: 11px;
        max-width: none;
    }

    .contact-section {
        padding: 56px 0;
    }

    .contact-bg {
        background:
            linear-gradient(180deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0.85) 100%),
            url("../images/contact-bg-left.webp") center center / cover no-repeat;
    }

    .contact-card {
        width: calc(100% - 28px);
        max-width: 520px;
        min-width: 0;
        margin-inline: auto;
        clip-path: none;
        border-radius: 8px;
        padding: 32px 22px 34px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .contact-card__header {
        margin-bottom: 24px;
        text-align: center;
    }

    .contact-card__line {
        margin-inline: auto;
    }

    .contact-card__body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info {
        gap: 24px;
        padding-top: 0;
        padding-bottom: 28px;
        margin-bottom: 28px;
        border-bottom: 1px solid var(--color-border);
    }

    .contact-form {
        gap: 12px;
    }

    .contact-form .btn-submit {
        width: 100%;
        align-self: stretch;
        margin-top: 4px;
    }

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

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero {
        min-height: clamp(420px, 78svh, 560px);
        height: auto;
    }

    .hero-inner {
        align-items: flex-end;
    }

    .hero-content {
        max-width: 100%;
        padding-block: 28px 36px;
    }

    .hero-title__line {
        font-size: clamp(1.9rem, 8.8vw, 2.65rem);
        line-height: 1.02;
        letter-spacing: 0.02em;
    }

    .hero-title__line:last-child {
        font-size: clamp(1.55rem, 7.4vw, 2.05rem);
        letter-spacing: 0.04em;
    }

    .hero-tagline {
        font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    }

    .hero-text {
        font-size: var(--font-size-min);
        font-weight: 600;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        min-width: 0;
        width: 100%;
    }

    .about-col--stats {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-items: stretch;
    }

    .stat-item {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        align-items: center;
        gap: 14px;
        max-width: none;
        margin-inline: 0;
        padding: 18px 22px 18px 18px;
        text-align: left;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid var(--color-orange);
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }

    .stat-item::before {
        content: "";
        position: absolute;
        top: -40%;
        right: -20%;
        width: 60%;
        height: 180%;
        background: radial-gradient(circle, rgba(var(--color-orange-rgb), 0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(var(--color-orange-rgb), 0.12);
        border: 1px solid rgba(var(--color-orange-rgb), 0.35);
        border-radius: 50%;
        color: var(--color-orange);
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-value {
        order: 3;
        justify-self: end;
        margin: 0;
        font-size: clamp(2rem, 8.4vw, 2.6rem);
        font-weight: 800;
        color: var(--color-orange);
        line-height: 1;
        letter-spacing: 0.01em;
        text-shadow: 0 0 24px rgba(var(--color-orange-rgb), 0.35);
        white-space: nowrap;
    }

    .stat-label {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0 6px;
        max-width: none;
        font-size: 12px;
        letter-spacing: 0.08em;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.88);
    }

    /* DE: dugi label + SCHNELL — vrijednost u drugi red samo na ovoj kartici */
    .stat-item--value-below {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 6px;
    }

    .stat-item--value-below .stat-icon {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: center;
    }

    .stat-item--value-below .stat-label {
        order: unset;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        max-width: 100%;
    }

    .stat-item--value-below .stat-value {
        order: unset;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: end;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .stat-label__line {
        display: inline;
    }

    .contact-section {
        padding: 40px 0 48px;
    }

    .contact-card {
        width: calc(100% - 24px);
        padding: 28px 18px 30px;
    }

    .contact-info__item {
        font-size: 15px;
    }

    .btn {
        width: 100%;
    }

    .footer-inner {
        padding-bottom: 21px;
    }

    .footer-credit {
        position: static;
        text-align: center;
        margin-top: 16px;
    }
}

/* ============================================================
   PREMIUM POLISH
   ============================================================ */

/* Subtle Ken Burns motion on hero background */
@keyframes heroSlowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-bg {
    will-change: transform;
    animation: heroSlowZoom 18s ease-in-out infinite alternate;
}

/* Smooth title glow on the hero */
.hero-title__line {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Buttons: lift + soft glow */
.btn {
    position: relative;
    transition: background var(--transition), color var(--transition), border-color var(--transition),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

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

.btn-primary {
    box-shadow: 0 8px 24px rgba(var(--color-orange-rgb), 0.28);
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(var(--color-orange-rgb), 0.45);
}

.btn-outline:hover {
    box-shadow: 0 10px 26px rgba(255, 255, 255, 0.08);
}

/* Header link underline animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

/* Service cards: premium hover */
.service-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease, border-color 0.35s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--color-orange-rgb), 0.35);
    box-shadow: 0 22px 50px rgba(16, 24, 40, 0.18),
        0 8px 24px rgba(var(--color-orange-rgb), 0.18);
}

.service-card__image img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
    filter: saturate(0.95);
}

.service-card:hover .service-card__image img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.service-card__icon {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.service-card:hover .service-card__icon {
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(var(--color-orange-rgb), 0.55);
}

.service-card h3 {
    transition: color var(--transition);
}

.service-card:hover h3 {
    color: var(--color-orange);
}

/* Section title underline pop */
.section-title-line,
.hero-tagline-line,
.contact-card__line {
    box-shadow: 0 0 18px rgba(var(--color-orange-rgb), 0.55);
}

/* About: animated subtle background pulse */
@keyframes aboutGlow {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.about-texture {
    animation: aboutGlow 14s ease-in-out infinite;
    will-change: opacity, transform;
}

/* About logo subtle float */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.about-col--logo img {
    animation: logoFloat 6s ease-in-out infinite;
    will-change: transform;
}

/* Stats: hover lift on desktop variants */
.stat-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-icon {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.08);
    color: var(--color-orange);
}

/* Contact card: subtle premium glow */
.contact-card {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45),
        0 4px 18px rgba(var(--color-orange-rgb), 0.08);
}

/* Contact form fields: smooth focus glow */
.contact-form input,
.contact-form textarea {
    transition: border-color var(--transition), box-shadow 0.35s ease,
        background var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 4px rgba(var(--color-orange-rgb), 0.15),
        0 6px 18px rgba(var(--color-orange-rgb), 0.12);
}

/* Contact icons: subtle scale on item hover */
.contact-info__item {
    transition: transform 0.3s ease;
}

.contact-info__item:hover {
    transform: translateX(3px);
}

.contact-info__icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info__item:hover .contact-info__icon {
    transform: scale(1.15);
}

/* Language switcher in header */
.lang-link {
    transition: color var(--transition), transform var(--transition);
}

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

/* Logo subtle hover in header */
.logo img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease;
}

.logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 14px rgba(var(--color-orange-rgb), 0.35));
}

/* Footer legal links underline */
.footer-legal a {
    position: relative;
}

.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--color-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-legal a:hover::after {
    transform: scaleX(1);
}

/* 404 page */
.error-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - var(--header-h));
    padding: calc(var(--header-h) + 48px) 0 80px;
    overflow: hidden;
    background: var(--color-about-bg);
    color: var(--color-white);
}

.error-page__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(8, 12, 18, 0.92) 0%, rgba(11, 16, 24, 0.88) 45%, rgba(11, 16, 24, 0.95) 100%),
        url("../images/hero-image.webp") center center / cover no-repeat;
    pointer-events: none;
}

.error-page__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(var(--color-orange-rgb), 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(var(--color-orange-rgb), 0.12) 0%, transparent 50%);
}

.error-page__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    text-align: center;
}

.error-page__code {
    margin: 0 0 12px;
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: transparent;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 55%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 60px rgba(var(--color-orange-rgb), 0.25);
}

.error-page__title {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.error-page__message {
    margin: 0 0 10px;
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.error-page__hint {
    margin: 0 0 32px;
    font-size: var(--font-size-min);
    color: rgba(255, 255, 255, 0.55);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.error-page__actions .btn {
    min-width: min(100%, 200px);
}

@media (max-width: 600px) {
    .error-page {
        padding: calc(var(--header-h) + 32px) 0 56px;
    }

    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page__actions .btn {
        width: 100%;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .about-texture,
    .about-col--logo img {
        animation: none !important;
    }

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

    .btn:hover,
    .service-card:hover,
    .stat-item:hover,
    .contact-info__item:hover {
        transform: none;
    }
}
