:root {
    --ink: #121826;
    --muted: #647084;
    --line: #dfe5ee;
    --panel: #ffffff;
    --soft: #f5f7fb;
    --brand: #0f766e;
    --brand-dark: #164e63;
    --accent: #f59e0b;
    --shadow: 0 20px 50px rgba(18, 24, 38, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 229, 238, 0.9);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
.footer-brand span {
    display: block;
    font-size: 1.1rem;
    color: var(--brand-dark);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.nav-links {
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: #334155;
    font-weight: 600;
    font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-dark);
    background: #e7f5f2;
}

.nav-cta,
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
    cursor: pointer;
}

.button.secondary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid var(--line);
    box-shadow: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(12, 30, 44, 0.9), rgba(12, 30, 44, 0.58) 52%, rgba(12, 30, 44, 0.2)),
        url("../images/header.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.hero-inner,
.section-inner,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 96px 0 130px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #d8fbf6;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p,
.page-hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #e6eef6;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: -84px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card,
.product-card,
.service-card,
.contact-card,
.gallery-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 24px;
}

.stat-card strong {
    display: block;
    color: var(--brand-dark);
    font-size: 2rem;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.section {
    padding: 88px 0;
}

.section.soft {
    background: var(--soft);
}

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

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.split-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
}

.section-heading p,
.split-copy p,
.product-card p,
.service-card p,
.contact-card p {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.product-card,
.service-card,
.gallery-card {
    overflow: hidden;
}

.product-card img,
.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--soft);
}

.product-card div,
.gallery-card div,
.service-card,
.contact-card {
    padding: 24px;
}

.product-card h3,
.service-card h3,
.contact-card h3,
.gallery-card h3 {
    margin: 0 0 10px;
    font-size: 1.26rem;
}

.tag-list,
.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li,
.check-list li {
    border-radius: 999px;
    padding: 8px 12px;
    background: #e7f5f2;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.88rem;
}

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 44px;
    align-items: center;
}

.split-media {
    position: relative;
}

.split-media img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-panel {
    margin-top: 24px;
    padding: 24px;
    border-left: 4px solid var(--accent);
    background: #fff8eb;
    border-radius: 6px;
}

.page-hero {
    background: linear-gradient(120deg, #123044, #0f766e);
    color: #fff;
    padding: 104px 0 76px;
}

.page-hero .eyebrow {
    color: #fef3c7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    align-items: start;
}

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

.form-panel {
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.form-field {
    display: grid;
    gap: 7px;
}

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

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

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

.site-footer {
    background: #101924;
    color: #d9e4ef;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.9fr 0.9fr;
    gap: 34px;
    padding: 64px 0;
}

.footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-brand span,
.site-footer h3 {
    color: #fff;
}

.site-footer h3 {
    margin: 0 0 16px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d9e4ef;
}

.site-footer p {
    margin: 12px 0 0;
    color: #aab8c7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aab8c7;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 15;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 0.2s ease;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: grid;
    }

    .nav-links a {
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .grid.three,
    .grid.two,
    .split,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .brand small {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        padding-top: 70px;
    }

    .section {
        padding: 64px 0;
    }

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

    .footer-bottom {
        display: grid;
    }
}
