:root {
  --navy: #001e50;
  --navy-2: #062c6f;
  --steel: #a6abb4;
  --steel-2: #eef1f5;
  --orange: #ff8c00;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee7;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 30, 80, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

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

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

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

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 30, 80, 0.1);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand img {
  width: 154px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--orange);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

.nav-links a {
  display: inline-flex;
  padding: 10px 12px;
  color: #25324a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--steel-2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 23px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #181818;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.secondary {
  background: var(--navy);
  color: #fff;
}

.btn.danger {
  background: #ff4d4f;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 30, 80, 0.95), rgba(0, 30, 80, 0.42)), url("../images/mekanikon-banner-1.jpg") center/cover;
  overflow: hidden;
}

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

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--orange);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
}

.hero p {
  max-width: 660px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 18, 48, 0.58);
  box-shadow: var(--shadow);
  padding: 26px;
}

.metric {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.metric:last-child {
  border-bottom: 0;
}

.metric strong {
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
}

.quick-actions {
  position: relative;
  z-index: 2;
  margin-top: -74px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.action-card,
.service-card,
.info-card,
.post-card {
  border: 1px solid rgba(0, 30, 80, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.action-card {
  padding: 30px;
}

.action-card:nth-child(2) {
  background: var(--navy);
  color: #fff;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 7px;
  background: rgba(255, 140, 0, 0.14);
  color: var(--orange);
  font-size: 24px;
}

.action-card h3,
.service-card h3,
.info-card h3,
.post-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 22px;
}

.action-card p,
.service-card p,
.info-card p,
.post-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.action-card:nth-child(2) p {
  color: rgba(255, 255, 255, 0.76);
}

section {
  padding: 92px 0;
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
}

.section-head p {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--steel-2);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.media-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: #344054;
}

.check-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
}

.services {
  background: #f6f8fb;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 290px;
  padding: 30px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--orange);
}

.service-card .link {
  color: var(--navy);
  font-weight: 900;
}

.dark-band {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 30, 80, 0.95), rgba(0, 30, 80, 0.76)), url("../images/dsg-lab.jpg") center/cover fixed;
}

.dark-band .section-head h2,
.dark-band .section-head p {
  color: #fff;
}

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

.info-card {
  padding: 26px;
}

.info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 30px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compare div {
  min-height: 340px;
  padding: 32px;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.compare .before {
  background-image: linear-gradient(rgba(0, 30, 80, 0.46), rgba(0, 30, 80, 0.78)), url("../images/service-bay.jpg");
}

.compare .after {
  background-image: linear-gradient(rgba(255, 140, 0, 0.2), rgba(0, 30, 80, 0.7)), url("../images/hero-workshop.jpg");
}

.compare h3 {
  max-width: 310px;
  color: #fff;
  font-size: 30px;
}

.testimonials {
  background: #fff;
}

.quote-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote {
  padding: 28px;
  border-left: 4px solid var(--orange);
  background: #f8fafc;
  border-radius: 8px;
}

.quote p {
  margin: 0 0 18px;
}

.quote strong {
  color: var(--navy);
}

.contact-band {
  background: #f6f8fb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
}

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

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

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

.page-hero {
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 30, 80, 0.96), rgba(0, 30, 80, 0.62)), url("../images/service-bay.jpg") center/cover;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: start;
}

.content-panel,
.side-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-panel h2 {
  color: var(--navy);
  font-size: 34px;
}

.side-panel {
  position: sticky;
  top: 112px;
  background: #f8fafc;
}

.post-card {
  padding: 28px;
}

.post-card span {
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 30, 80, 0.95), rgba(255, 140, 0, 0.72));
}

.footer {
  color: rgba(255, 255, 255, 0.76);
  background: #06152d;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 62px 0;
}

.footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #fff;
  background: #20b15a;
  box-shadow: 0 14px 30px rgba(32, 177, 90, 0.34);
  font-weight: 900;
}

.admin-shell {
  min-height: 100vh;
  color: #dbe4f0;
  background: #07152c;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  padding: 28px;
  background: #031026;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .brand {
  color: #fff;
  margin-bottom: 34px;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #aebbd0;
  border-radius: 7px;
  font-weight: 800;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: #fff;
  background: rgba(255, 140, 0, 0.16);
}

.admin-main {
  padding: 32px;
}

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

.admin-top h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
}

.admin-top p,
.admin-note {
  color: #aebbd0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.admin-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0b1d3b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
}

.admin-section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.cms-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
}

.page-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.page-item {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #dbe4f0;
  background: #07152c;
  text-align: left;
  cursor: pointer;
}

.page-item.active,
.page-item:hover {
  border-color: rgba(255, 140, 0, 0.5);
  background: rgba(255, 140, 0, 0.12);
}

.page-item strong {
  display: block;
  color: #fff;
}

.page-item span {
  color: #8fa0ba;
  font-size: 13px;
}

.cms-editor textarea[name="body"] {
  min-height: 210px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-preview-grid.full,
.gallery-preview.full {
  grid-column: 1 / -1;
}

.image-preview-grid div {
  display: grid;
  gap: 8px;
  color: #c7d2e4;
  font-weight: 800;
}

.image-preview-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #07152c;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #c7d2e4;
  font-weight: 800;
}

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

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background: #07152c;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: #dbe4f0;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-table th {
  color: #8fa0ba;
  font-size: 13px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #042313;
  background: #62d394;
  font-size: 12px;
  font-weight: 900;
}

.admin-locked .admin-layout {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(255, 140, 0, 0.16), transparent 32%), rgba(3, 16, 38, 0.96);
}

.admin-locked .login-screen {
  display: grid;
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0b1d3b;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.login-card h1 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 22px;
  color: #aebbd0;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #c7d2e4;
  font-weight: 800;
}

.login-form input {
  color: #fff;
  background: #07152c;
  border-color: rgba(255, 255, 255, 0.12);
}

.login-error {
  min-height: 22px;
  color: #ffb4a8;
  font-weight: 800;
}

.admin-pro .admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-alert.success {
  color: #062b17;
  background: #62d394;
}

.admin-alert.error {
  color: #fff;
  background: #d64545;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stats div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0b1d3b;
}

.admin-stats strong {
  display: block;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.admin-stats span {
  display: block;
  margin-top: 8px;
  color: #aebbd0;
  font-weight: 800;
}

.admin-details {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #07152c;
  overflow: hidden;
}

.admin-details summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.admin-details summary small {
  color: #8fa0ba;
  font-weight: 700;
}

.admin-details .admin-form {
  padding: 18px;
}

.page-admin-list {
  display: grid;
  gap: 10px;
}

.admin-preview-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
}

.admin-preview-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.admin-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.admin-form input[type="file"] {
  padding: 10px;
  color: #c7d2e4;
}

@media (max-width: 1020px) {
  .topbar .container,
  .hero-grid,
  .split,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    display: grid;
  }

  .action-grid,
  .service-grid,
  .quote-grid,
  .blog-grid,
  .advantage-grid,
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding: 96px 0 145px;
  }

  .hero-panel,
  .side-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

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

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

  .nav-cta {
    display: none;
  }

  .section-head {
    display: block;
  }

  .action-grid,
  .service-grid,
  .quote-grid,
  .blog-grid,
  .advantage-grid,
  .footer-main,
  .compare,
  .media-strip,
  .contact-form {
    grid-template-columns: 1fr;
  }

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

  .image-preview-grid,
  .gallery-preview {
    grid-template-columns: 1fr;
  }

  section {
    padding: 68px 0;
  }

  .quick-actions {
    margin-top: -48px;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 13px 15px;
  }
}
