:root {
    --teal: #0f9f99;
    --teal-dark: #0c5f61;
    --red: #cf2f2f;
    --ink: #17242a;
    --muted: #63727b;
    --line: #dce5e8;
    --paper: #ffffff;
    --soft: #f4f7f8;
    --amber: #c58a27;
    --shadow: 0 10px 30px rgba(18, 36, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

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

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.skip-link:focus {
    left: 10px;
}

.topbar {
    background: #102329;
    color: #dceff1;
    font-size: 13px;
}

.topbar-inner,
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-inner {
    min-height: 38px;
    justify-content: flex-end;
}

.language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.language-switcher a {
    padding: 4px 7px;
    border-radius: 6px;
    color: #dceff1;
    font-weight: 800;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: #102329;
    background: #dceff1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img,
.admin-brand img {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand img {
    height: 54px;
    max-width: min(360px, 54vw);
}

.admin-brand img {
    height: auto;
    max-width: 180px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--red));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a,
.admin-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active,
.admin-nav a:hover,
.admin-nav a.active {
    color: var(--ink);
    background: var(--soft);
}

.site-nav .nav-cta {
    color: #fff;
    background: var(--red);
}

.site-nav .nav-cta:hover {
    color: #fff;
    background: #b92929;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    padding: 9px;
}

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

.home-hero {
    min-height: 560px;
    display: grid;
    align-items: center;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(13, 36, 42, 0.94) 0%, rgba(13, 72, 76, 0.74) 52%, rgba(13, 36, 42, 0.18) 100%),
        url("../images/hero-manufacturing.png");
    background-size: cover;
    background-position: center;
}

.hero-content {
    width: min(680px, 100%);
    padding: 86px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: #bfe8e5;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.03;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
}

.home-hero .lead {
    color: #eaf7f7;
    max-width: 620px;
}

.hero-actions,
.form-actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    color: #fff;
    background: var(--red);
    font-weight: 800;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: #b92929;
}

.button.secondary {
    color: var(--teal-dark);
    background: #fff;
}

.button.secondary:hover {
    background: #ecf8f7;
}

.button.ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.button.ghost:hover {
    background: var(--soft);
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 46px 0;
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}

.section-head p {
    max-width: 540px;
    color: var(--muted);
}

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

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

.card,
.form-panel,
.contact-panel,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(18, 36, 42, 0.06);
}

.card {
    padding: 22px;
    border-top: 4px solid var(--teal);
}

.card:nth-child(even) {
    border-top-color: var(--amber);
}

.card:nth-child(3n) {
    border-top-color: var(--red);
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 40px;
    align-items: center;
}

.about-image {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--soft);
    box-shadow: 0 18px 40px rgba(18, 36, 42, 0.12);
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.stat {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.stat strong {
    display: block;
    color: var(--red);
    font-size: 32px;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-weight: 700;
}

.page-hero {
    padding: 64px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--teal-dark), #17313a);
}

.page-hero p {
    max-width: 720px;
    color: #e4f4f5;
}

.form-panel,
.contact-panel {
    padding: 26px;
}

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

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

label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 800;
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.5;
}

.check-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cbd8dc;
    border-radius: 6px;
    background: #fff;
    font-weight: 700;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

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

textarea {
    min-height: 132px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 159, 153, 0.2);
    border-color: var(--teal);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert.success {
    color: #0d5a39;
    background: #e7f7ee;
    border: 1px solid #bfe9d0;
}

.alert.error {
    color: #8f1f1f;
    background: #ffeded;
    border: 1px solid #f3c1c1;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 24px;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.contact-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-item strong {
    display: block;
    margin-top: 2px;
}

.site-footer {
    padding: 40px 0;
    color: #dbe7ea;
    background: #101c21;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(220px, 0.8fr);
    align-items: center;
    gap: 32px;
}

.footer-brand {
    display: grid;
    gap: 14px;
    max-width: 430px;
}

.footer-brand img {
    display: block;
    width: min(280px, 100%);
    height: auto;
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff;
}

.footer-block {
    min-width: 0;
}

.site-footer p {
    margin-bottom: 0;
    color: #aebdc2;
    line-height: 1.7;
}

.site-footer span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 800;
}

.admin-body {
    background: var(--soft);
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
    color: #e8f3f4;
    background: #102329;
}

.admin-brand {
    color: #fff;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav a {
    color: #bdd0d5;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-actions {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.admin-sidebar-actions a {
    color: #bdd0d5;
}

.admin-main {
    padding: 28px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-top span {
    color: var(--muted);
    font-weight: 800;
}

.admin-top h1 {
    margin: 0;
    color: var(--ink);
    font-size: 32px;
}

.admin-grid,
.stat-grid {
    display: grid;
    gap: 18px;
}

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

.admin-card {
    padding: 20px;
}

.admin-card h2,
.admin-card h3 {
    margin-bottom: 12px;
}

.admin-card .number {
    display: block;
    color: var(--red);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

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

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

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    background: #f9fbfb;
}

tr:last-child td {
    border-bottom: 0;
}

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

.inline-form select {
    min-width: 160px;
}

.file-list {
    display: grid;
    gap: 6px;
    min-width: 150px;
}

.file-link {
    display: block;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--teal-dark);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.file-link:hover {
    background: var(--soft);
}

.danger {
    background: #7d2020;
}

.danger:hover {
    background: #631818;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(16, 35, 41, 0.92), rgba(15, 95, 97, 0.82)),
        url("../images/hero-manufacturing.png") center / cover;
}

.login-box {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-logo {
    display: block;
    width: min(260px, 100%);
    height: auto;
    margin-bottom: 18px;
}

.login-box h1 {
    margin-bottom: 8px;
    font-size: 30px;
}

.login-box p {
    color: var(--muted);
}

@media (max-width: 920px) {
    .grid,
    .grid.three,
    .stat-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 720px) {
    .topbar-inner {
        justify-content: flex-end;
        padding: 8px 0;
    }

    .header-inner {
        min-height: 64px;
        flex-wrap: wrap;
    }

    .brand img {
        height: 44px;
        max-width: 64vw;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 14px;
    }

    .site-nav.is-open {
        display: flex;
    }

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

    .home-hero {
        min-height: 520px;
        background-position: 58% center;
    }

    .hero-content {
        padding: 64px 0;
    }

    .section,
    .page-hero {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .grid,
    .grid.three,
    .stats,
    .form-grid,
    .footer-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        align-items: start;
        gap: 22px;
    }

    .footer-brand img {
        width: min(240px, 100%);
    }

    .form-panel,
    .contact-panel,
    .admin-card,
    .login-box {
        padding: 20px;
    }

    .admin-main {
        padding: 20px;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
