:root {
    --ink: #172026;
    --muted: #5d6872;
    --line: #dce5ea;
    --paper: #f7fafb;
    --brand: #0f7c80;
    --accent: #e8572a;
    --gold: #f4b942;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 6px clamp(18px, 5vw, 72px);
    background: rgba(247, 250, 251, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo img {
    display: block;
    width: clamp(82px, 10vw, 118px);
    max-height: 74px;
    height: auto;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.site-header nav a:hover {
    color: var(--brand);
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.subnav a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--muted);
    font-weight: 700;
}

.subnav a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(15, 124, 128, .94), rgba(23, 32, 38, .84)),
        url("https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: white;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: .95;
    letter-spacing: 0;
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    line-height: 1.7;
}

.printer-panel {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255, 255, 255, .11);
}

.hero-stack {
    display: grid;
    gap: 18px;
}

.video-panel {
    padding: 18px;
}

.video-panel h2 {
    margin: 0 0 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: rgba(0, 0, 0, .32);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--brand);
    color: white;
    font-weight: 700;
}

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

.btn.outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.section {
    padding: clamp(40px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.page-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: end;
    padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 72px);
    color: white;
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .92), rgba(15, 124, 128, .78)),
        url("https://images.unsplash.com/photo-1607860108855-64acf2078ed9?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.65;
}

.services-hero {
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .9), rgba(15, 124, 128, .76)),
        url("https://images.unsplash.com/photo-1581093450021-4a7360e9a7d7?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.portfolio-hero {
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .9), rgba(232, 87, 42, .68)),
        url("https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.quote-hero,
.order-hero {
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .9), rgba(15, 124, 128, .72)),
        url("https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact-hero {
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .9), rgba(15, 124, 128, .76)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.blog-hero {
    background:
        linear-gradient(120deg, rgba(23, 32, 38, .92), rgba(232, 87, 42, .65)),
        url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 44px);
}

.lead {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

.section-kicker {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: white;
}

.card h3 {
    margin: 0 0 10px;
}

.card p, .card li {
    color: var(--muted);
    line-height: 1.6;
}

.service-section {
    background: linear-gradient(180deg, #f7fafb 0%, #ffffff 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-color: #d6e7e8;
    box-shadow: 0 14px 34px rgba(23, 32, 38, .06);
}

.service-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #e9f7f4;
    color: var(--brand);
    font-weight: 900;
}

.service-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(232, 87, 42, .12);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 12px 28px rgba(23, 32, 38, .06);
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef4f5;
}

.gallery-card div {
    padding: 16px;
}

.gallery-card h3 {
    margin: 0 0 8px;
}

.gallery-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.portfolio-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.portfolio-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.portfolio-card:hover,
.service-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(23, 32, 38, .1);
}

.blog-card {
    min-height: 230px;
    display: grid;
    align-content: start;
    gap: 12px;
    border-color: #d6e7e8;
}

.blog-card span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 6px;
    background: #e9f7f4;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-band {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(247, 250, 251, 1)),
        radial-gradient(circle at top right, rgba(244, 185, 66, .18), transparent 36%);
}

.elevated-form {
    box-shadow: 0 20px 50px rgba(23, 32, 38, .08);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.choice-card {
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 12px;
    box-shadow: 0 14px 34px rgba(23, 32, 38, .06);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 16px;
}

.contact-cards .card {
    box-shadow: 0 14px 34px rgba(23, 32, 38, .06);
}

.article-shell {
    max-width: 860px;
}

.admin-thumb {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    background: #eef4f5;
}

.band {
    background: #ffffff;
    border-block: 1px solid var(--line);
}

.form-shell {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: clamp(20px, 4vw, 34px);
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 650;
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    background: white;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-form select,
.inline-form input {
    min-width: 150px;
}

.checkbox-line {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.checkbox-line input {
    width: auto;
    min-height: auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions form {
    margin: 0;
}

textarea {
    min-height: 120px;
}

.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 6px;
    background: #e9f7f4;
    border: 1px solid #bde4da;
}

.content-body {
    color: var(--ink);
    line-height: 1.8;
    font-size: 17px;
}

.map-embed {
    margin-top: 22px;
}

.map-embed iframe {
    width: 100%;
    min-height: 340px;
    border: 0;
    border-radius: 8px;
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.invoice-sheet {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.invoice-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.invoice-bill {
    margin: 24px 0;
}

.invoice-table {
    min-width: 0;
}

.invoice-table span,
.invoice-note {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.timeline-item {
    border-left: 4px solid var(--brand);
    padding: 10px 14px;
    background: #f7fafb;
    border-radius: 0 6px 6px 0;
}

.timeline-item p {
    margin: 6px 0;
    color: var(--muted);
}

.timeline-item small {
    color: var(--muted);
}

.production-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: start;
}

.production-column {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 14px;
}

.production-column h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.production-card {
    border-left: 4px solid var(--brand);
    border-radius: 6px;
    background: #f7fafb;
    padding: 12px;
    margin-bottom: 10px;
}

.production-card a {
    font-weight: 800;
    color: var(--ink);
}

.production-card p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 14px;
}

.priority-urgent {
    border-left-color: #d92d20;
}

.priority-high {
    border-left-color: var(--accent);
}

.priority-low {
    border-left-color: var(--gold);
}

.messages {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
}

.message-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 14px;
}

.message-item.internal {
    background: #fff8e1;
}

.message-item p {
    color: var(--muted);
    line-height: 1.6;
}

.message-item small {
    color: var(--muted);
}

.message-form {
    display: grid;
    gap: 12px;
}

@media print {
    .site-header,
    .site-footer,
    .invoice-actions {
        display: none;
    }

    body {
        background: white;
    }

    .section {
        padding: 0;
    }

    .invoice-sheet {
        max-width: none;
        border: 0;
        padding: 0;
    }
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th, td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: #eef4f5;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.developer-credit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
}

.developer-credit img {
    width: 42px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero {
        min-height: auto;
    }

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

    .developer-credit {
        justify-content: flex-start;
    }
}
