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

:root {
    --bg: #0f1014;
    --card: #f5f5f5;
    --card-dark: #1a1c22;
    --text: #0f1116;
    --text-soft: #5d626d;
    --white: #ffffff;
    --line: #dcdde1;
    --radius: 22px;
    --shadow-deep: 0 30px 55px rgba(0, 0, 0, 0.45);
    --shadow-mid: 0 16px 28px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 10px 0 rgba(0, 0, 0, 0.35), 0 22px 28px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% -10%, #262d3b 0%, transparent 35%),
        radial-gradient(circle at 90% 0%, #1e2330 0%, transparent 28%),
        var(--bg);
    color: var(--white);
    line-height: 1.45;
    min-height: 100vh;
}

body.cookie-banner-visible {
    padding-bottom: 160px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 18px 24px;
    background: rgba(15, 16, 20, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.logo-image {
    height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 8px;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: #d4d7de;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-primary {
    background: var(--white);
    color: var(--text) !important;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
}

.mobile-nav {
    display: none;
    max-width: 1320px;
    margin: 12px auto 0;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-nav a {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f3f3f5;
    font-size: 0.88rem;
}

.mobile-nav.active {
    display: flex;
}

.layout-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 24px 30px;
    perspective: 1200px;
}

.grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
}

.card {
    background: var(--card);
    color: var(--text);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--line);
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(0, 0, 0, 0.1) 100%);
    mix-blend-mode: soft-light;
}

.card::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -14px;
    height: 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(14px);
    z-index: -1;
    opacity: 0.8;
}

.card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-1.5deg);
    box-shadow: 0 16px 0 rgba(0, 0, 0, 0.35), var(--shadow-deep);
    border-color: #c3c8d1;
}

.card small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7a7f89;
    margin-bottom: 14px;
}

.craft-card {
    min-height: 330px;
    display: grid;
    align-content: start;
    gap: 14px;
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.card-topline small {
    margin: 0;
}

.craft-intro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.craft-logo {
    height: 68px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #d4d9e1;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

.craft-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.craft-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1116;
    background: linear-gradient(180deg, #ffffff 0%, #edf0f4 100%);
    border: 1px solid #d7dce4;
    box-shadow: inset 0 1px 0 #fff, 0 7px 12px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.craft-action:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #fff, 0 10px 16px rgba(0, 0, 0, 0.2);
}

.craft-card h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
    margin: 6px 0 8px;
}

.craft-card p {
    max-width: 680px;
    color: var(--text-soft);
    margin-bottom: 26px;
}

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-chips span {
    background: linear-gradient(180deg, #f7f7f9 0%, #eceef2 100%);
    border: 1px solid #dbdde2;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 #ffffff, 0 8px 13px rgba(0, 0, 0, 0.16);
}

.vision-card {
    display: grid;
    gap: 14px;
}

.split-head {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.split-head small {
    margin: 0;
}

.split-head p,
.body-text {
    color: var(--text-soft);
}

.owner-photo {
    margin-top: 6px;
    width: 100%;
    min-height: 240px;
    max-height: 380px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #d7dbe2;
}

.image-card {
    min-height: 350px;
    background:
        linear-gradient(180deg, rgba(16, 18, 24, 0.05), rgba(16, 18, 24, 0.72)),
        url("IMG_3754.jpg")
            center/cover no-repeat;
    border: none;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    box-shadow: 0 14px 0 rgba(0, 0, 0, 0.38), var(--shadow-deep);
}

.overlay h2 {
    max-width: 540px;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.mission-card h3 {
    font-size: clamp(1.4rem, 2.8vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.projects-card ul {
    margin-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--text-soft);
}

.projects-head h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.gallery-card {
    grid-column: 1 / -1;
}

.project-carousel {
    margin-top: 12px;
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 12px;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.22, 0.88, 0.34, 1);
}

.carousel-slide {
    flex: 0 0 calc((100% - 28px) / 3);
    margin: 0;
    border-radius: 14px;
    background: #eef0f3;
    border: 1px solid #d7dbe1;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22), var(--shadow-mid);
    overflow: hidden;
    min-height: 360px;
}

.carousel-slide img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

.carousel-slide figcaption {
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #252a33;
    letter-spacing: 0.01em;
}

.carousel-arrow {
    height: 56px;
    width: 56px;
    border: none;
    border-radius: 50%;
    background: #171b24;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4), 0 16px 26px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
    transform: translateY(-3px);
    background: #11151d;
}

.carousel-arrow:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 10px 16px rgba(0, 0, 0, 0.32);
}

.contact-card {
    display: grid;
    gap: 10px;
}

.contact-card h3 {
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.contact-card p {
    color: var(--text-soft);
}

.contact-card > a {
    font-weight: 600;
    color: #20242e;
}

.contact-form {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-size: 0.78rem;
    color: #70757f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    font: inherit;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 11px 12px;
    border: 1px solid #d5d9e0;
    background: #fbfbfc;
}

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

.contact-form button {
    margin-top: 4px;
    border: none;
    padding: 12px 14px;
    background: #11131a;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(3, 5, 10, 0.5), 0 16px 22px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 rgba(3, 5, 10, 0.5), 0 18px 26px rgba(0, 0, 0, 0.45);
}

.contact-form button:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(3, 5, 10, 0.5), 0 10px 16px rgba(0, 0, 0, 0.35);
}

.site-footer {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px 34px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    color: #959ba8;
    font-size: 0.82rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal-links a,
.footer-link-button {
    color: #d9dde6;
    font: inherit;
}

.footer-link-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.footer-legal-links a:hover,
.footer-link-button:hover {
    color: #ffffff;
}

.legal-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 34px;
    display: grid;
    gap: 18px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border: 1px solid rgba(220, 221, 225, 0.95);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.legal-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.legal-card h4 {
    font-size: 1rem;
    margin: 18px 0 8px;
}

.legal-card p {
    color: #303542;
    margin-top: 8px;
}

.legal-card a {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.legal-header {
    position: static;
}

.legal-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legal-page {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 20px;
}

.legal-section--single {
    padding-top: 0;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: none;
    justify-content: center;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner__content {
    width: min(100%, 1080px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(180deg, rgba(212, 230, 249, 0.97) 0%, rgba(183, 211, 241, 0.96) 100%);
    border: 1px solid rgba(104, 146, 189, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(109, 150, 191, 0.18),
        0 22px 44px rgba(17, 45, 84, 0.18),
        0 8px 18px rgba(17, 45, 84, 0.1);
    backdrop-filter: blur(18px) saturate(1.15);
}

.cookie-banner__content p {
    max-width: 760px;
    color: #18324c;
    font-size: 0.96rem;
    line-height: 1.55;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-button {
    border: 1px solid rgba(66, 113, 164, 0.18);
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.cookie-button--accept {
    background: linear-gradient(180deg, #2f6297 0%, #234c7a 100%);
    color: #ffffff;
    border-color: rgba(29, 73, 117, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 20px rgba(25, 56, 98, 0.2);
}

.cookie-button--decline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(241, 247, 253, 0.72) 100%);
    color: #18324c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

    .carousel-slide {
        flex: 0 0 calc((100% - 14px) / 2);
        min-height: 320px;
    }

    .carousel-slide img {
        height: 250px;
    }
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

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

    .layout-shell {
        padding: 8px 14px 20px;
    }

    .site-header {
        padding: 14px;
    }

    .card {
        padding: 20px;
    }

    .split-head {
        grid-template-columns: 1fr;
    }

    .craft-logo {
        height: 52px;
    }

    .craft-action {
        padding: 10px 14px;
        font-size: 0.86rem;
    }

    .logo-image {
        height: 42px;
    }

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

    .project-carousel {
        grid-template-columns: 44px 1fr 44px;
        gap: 8px;
    }

    .carousel-slide {
        flex: 0 0 100%;
        min-height: 300px;
    }

    .carousel-slide img {
        height: 230px;
    }

    .carousel-arrow {
        height: 44px;
        width: 44px;
        font-size: 1.3rem;
    }

    body.cookie-banner-visible {
        padding-bottom: 220px;
    }

    .cookie-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .legal-section {
        padding: 0 14px 24px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-button {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}
