:root {
  /* Align with KOMAN logo blue (medium slate/steel blue) */
  --brand: #3a7a96;
  --brand-deep: #2f6680;
  --brand-soft: #e8f1f5;
  --topbar: #2a5f78;
  --nav: #5a7d8c;
  --text: #243038;
  --muted: #6a7c86;
  --line: #dde5e9;
  --panel: #f3f7f9;
  --bg: #ffffff;
  --max: 1180px;
  --header-max: 1400px;
  --font: "Montserrat", Arial, sans-serif;
  --font-display: "Archivo Black", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Top bar / header —— */
.topbar {
  background: var(--topbar);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
}

.topbar a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px 28px;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 14px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.site-nav > a,
.nav-more-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav);
  padding: 8px 0;
  white-space: nowrap;
  line-height: 1.3;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-more-btn:hover,
.nav-more.has-active .nav-more-btn {
  color: var(--brand-deep);
}

.site-nav > a.active,
.nav-more.has-active .nav-more-btn {
  box-shadow: inset 0 -3px 0 var(--brand);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more[hidden] {
  display: none !important;
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(47, 102, 128, 0.12);
  padding: 8px 0;
  z-index: 60;
}

.nav-more.open .nav-more-menu {
  display: block;
}

.nav-more-menu a {
  display: block;
  padding: 12px 20px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--nav);
  white-space: nowrap;
}

.nav-more-menu a:hover,
.nav-more-menu a.active {
  background: var(--panel);
  color: var(--brand-deep);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  background: #000;
  display: flex;
  justify-content: center;
}

.hero img {
  width: min(1280px, 100%);
  margin: 0 auto;
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 36px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  color: var(--brand);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 40px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand);
}

.product-page .section-title {
  margin-top: 56px;
}

.product-page .section-title:first-child {
  margin-top: 0;
}

/* —— Product units: open & spacious —— */
.product-unit {
  border: 0;
  background: transparent;
  margin: 0 0 56px;
  padding: 0 0 48px;
  border-bottom: 1px solid var(--line);
}

.product-unit:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.unit-head {
  background: transparent;
  border: 0;
  padding: 0 0 20px;
}

.model-title {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-unit .subhead,
.product-page > .subhead {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin: 28px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 78ch;
}

.feature-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.feature-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid #eef2f4;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--brand);
}

/* —— Media frames —— */
.product-block {
  margin: 8px 0 28px;
}

.product-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-media.single {
  grid-template-columns: 1fr;
}

.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--panel);
  min-height: 380px;
  height: 420px;
  padding: 36px;
}

.product-media.single .media-frame {
  height: 480px;
  min-height: 400px;
  padding: 48px;
}

.media-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.15fr);
  gap: 40px;
  margin: 12px 0 28px;
  border: 0;
  background: transparent;
  align-items: center;
}

.split-media {
  background: #fff;
  border: 1px solid var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 360px;
  padding: 28px;
}

.split-media .media-frame {
  border: 0;
  background: transparent;
  height: 320px;
  min-height: 260px;
  padding: 0;
  width: 100%;
}

.split-media .media-frame + .media-frame {
  height: 240px;
  min-height: 200px;
}

.split-body {
  padding: 8px 0;
  min-width: 0;
}

.split-body .feature-list {
  max-width: none;
}

.split-body .table-wrap {
  margin-top: 0;
}

.split-body .prose,
.split-body .feature-list,
.split-body .table-wrap,
.split-body .subhead {
  margin-left: 0;
  margin-right: 0;
}

.split-body .subhead {
  margin-top: 0;
}

/* —— Tables —— */
.table-wrap {
  margin: 16px 0 28px;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #fff;
  border: 0;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.spec-table th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
  font-size: 16px;
  font-weight: 500;
}

.spec-table tbody tr:nth-child(even) td {
  background: #f7fafb;
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--brand-deep);
  width: 32%;
  background: var(--brand-soft);
}

.spec-table tbody tr:nth-child(even) td:first-child {
  background: #ddebf1;
}

/* —— Home contents grid —— */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 0;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(47, 102, 128, 0.12);
}

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--panel);
  padding: 10px;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}

.card-label {
  display: block;
  padding: 18px 12px 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1.4;
  min-height: 56px;
}

/* —— Contact / footer —— */
.contact {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-family: var(--font-display);
  color: var(--brand);
  text-align: left;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--brand);
}

.contact-sub {
  text-align: left;
  color: var(--muted);
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact h3 {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.contact p {
  margin: 0 0 12px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.contact a {
  color: var(--brand-deep);
  font-weight: 600;
}

.contact-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.contact-toggle:hover,
.contact-toggle[aria-expanded="true"] {
  color: var(--brand-deep);
  box-shadow: inset 0 -2px 0 var(--brand-deep);
}

.map-embed {
  width: 100%;
  min-height: 300px;
  border: 0;
  background: #e9eef1;
}

.contact-form-wrap {
  margin-top: 28px;
  width: 100%;
  max-width: none;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-form-wrap[hidden] {
  display: none !important;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-row {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.subscribe-form input:focus {
  outline: 2px solid rgba(58, 122, 150, 0.35);
  outline-offset: 1px;
  border-color: var(--brand);
}

.contact-form button[type="submit"] {
  justify-self: start;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 28px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: var(--brand-deep);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}

.form-status.ok {
  background: #e8f5ee;
  color: #1f6b45;
  border: 1px solid #b9dfc8;
}

.form-status.err {
  background: #fdeeee;
  color: #8a2b2b;
  border: 1px solid #efc0c0;
}

.site-footer {
  background: var(--brand);
  border-top: 0;
  padding: 48px 32px 56px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.site-footer .subscribe {
  max-width: 520px;
  margin: 0 auto 32px;
}

.site-footer h3 {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-form button {
  border: 0;
  background: #fff;
  color: var(--brand);
  padding: 12px 20px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: var(--brand-soft);
}

/* —— Download page —— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 12px 0 40px;
}

.video-card {
  border: 0;
  background: var(--panel);
  padding-bottom: 16px;
}

.video-card h4 {
  margin: 16px 20px 6px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  font-weight: 700;
}

.video-card p {
  margin: 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #111;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.pdf-download {
  text-align: left;
  margin: 12px 0 32px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 14px;
}

.btn:hover {
  background: var(--brand-deep);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .contents-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-media {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 14px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-header.nav-open .site-nav > a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    white-space: normal;
  }

  .site-header.nav-open .nav-more {
    display: none !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 22px;
  }
}

@media (max-width: 640px) {
  .contents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .model-title {
    font-size: 20px;
  }

  .media-frame,
  .product-media.single .media-frame {
    height: 300px;
    min-height: 260px;
    padding: 24px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
}
