:root {
  --ink: #152426;
  --muted: #5f6f72;
  --line: #dfe7e8;
  --paper: #ffffff;
  --soft: #f4f8f8;
  --brand: #006c72;
  --brand-dark: #004d52;
  --accent: #d8a03d;
  --shadow: 0 18px 55px rgba(12, 35, 38, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 108, 114, 0.16);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.brand-link img { width: 43px; height: auto; }
.brand-mark span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
}
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a,
.dropdown-toggle {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary-nav a:hover,
.dropdown:hover .dropdown-toggle,
.dropdown-toggle:focus-visible { background: var(--soft); color: var(--brand-dark); }
.dropdown { position: relative; }
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  display: none;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: grid; }
.dropdown-menu a { display: block; min-height: auto; padding: 8px 10px; font-weight: 650; }

.hero {
  min-height: clamp(620px, 86vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 45, 49, 0.88), rgba(0, 88, 94, 0.58), rgba(0, 0, 0, 0.16)),
    url("../gfx/bgimg-1.jpg") center / cover no-repeat;
}
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 64px;
}
.hero img {
  width: min(260px, 58vw);
  margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 18px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.hero-actions,
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.button:hover { transform: translateY(-1px); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--soft); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section-header { max-width: 780px; margin-bottom: 34px; }
.section-header.center { margin-right: auto; margin-left: auto; text-align: center; }
.section-header h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1.12; }
.section-header p { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(15, 35, 38, 0.05);
}
.service-card,
.person-card,
.product-card,
.contact-panel { padding: 22px; }
.service-card h3,
.person-card h3,
.product-card h3 { margin: 0 0 10px; line-height: 1.2; }
.service-card p,
.person-card p,
.product-card p { margin: 0; color: var(--muted); }
.person-card { display: flex; flex-direction: column; gap: 16px; }
.person-card .avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 900;
}
.fact-list { display: grid; gap: 10px; margin: 0; }
.fact-list div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-weight: 800; }
.fact-list dd { margin: 0; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.image-band {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 72px 16px;
  color: #fff;
  text-align: center;
  background-position: center;
  background-size: cover;
}
.image-band h2 {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(0, 45, 49, 0.72);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.08;
}
.band-products { background-image: linear-gradient(rgba(0, 45, 49, 0.45), rgba(0, 45, 49, 0.45)), url("../images/P10.jpg"); }
.band-contact { background-image: linear-gradient(rgba(0, 45, 49, 0.44), rgba(0, 45, 49, 0.44)), url("../images/p7.jpg"); }
.product-card img { width: 86px; margin-bottom: 18px; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.contact-panel p { margin: 0 0 10px; }
.contact-map {
  display: block;
  width: 100%;
  min-height: 280px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dfe7e8;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field.full { grid-column: 1 / -1; }
.spam-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
label { display: block; margin-bottom: 5px; font-weight: 800; }
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { min-height: 132px; resize: vertical; }
input:focus,
textarea:focus { border-color: var(--brand); outline: 3px solid rgba(0, 108, 114, 0.14); }
.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff7e7;
  color: #6e4d11;
  font-weight: 700;
}
.notice.success { background: #e9f8ef; color: #175f32; }
.smtp-debug {
  margin: 12px 0 18px;
  border: 1px solid #d7e2e3;
  border-radius: 8px;
  background: #f8fbfb;
}
.smtp-debug summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
}
.smtp-debug pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid #d7e2e3;
  color: #233133;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.site-footer { padding: 38px 0; color: rgba(255, 255, 255, 0.86); background: #122426; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer a { color: #fff; }
.site-footer .button {
  border-color: rgba(255, 255, 255, 0.32);
  background: #fff;
  color: var(--ink);
}
.site-footer .button:hover {
  color: var(--ink);
}
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.fine-print { max-width: 820px; color: rgba(255, 255, 255, 0.66); font-size: 0.9rem; }

dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(6, 22, 24, 0.62); }
.dialog-body { padding: 26px; }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { margin: 0; font-size: 1.35rem; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.to-top.visible { display: grid; place-items: center; }
#topBtn.to-top.visible { display: grid; place-items: center; }

.page-hero {
  padding: 150px 0 84px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 45, 49, 0.88), rgba(0, 88, 94, 0.36)),
    url("../images/knusing_og_asfalt.jpg") center / cover no-repeat;
}
.news-hero {
  background:
    linear-gradient(90deg, rgba(0, 45, 49, 0.9), rgba(0, 88, 94, 0.46)),
    url("../images/p3.jpg") center / cover no-repeat;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.news-card {
  overflow: hidden;
}
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.news-content {
  padding: clamp(24px, 4vw, 42px);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
}
.news-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.12;
}
.news-lead {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 650;
}
.news-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.news-mini-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  align-items: start;
}
.news-mini-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}
.news-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.22;
}
.news-mini-card p {
  margin: 0;
  color: var(--muted);
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}
.news-read-more::after {
  content: "→";
  margin-left: 8px;
}
.news-body {
  color: var(--ink);
}
.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.news-body table {
  width: 100%;
  border-collapse: collapse;
}
.news-body td,
.news-body th {
  padding: 10px;
  border: 1px solid var(--line);
}
.news-detail .news-content {
  max-width: 860px;
}
.news-empty {
  padding: 26px;
}
.news-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.news-sidebar .card {
  padding: 20px;
}
.news-sidebar h3 {
  margin: 0 0 10px;
}
.news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.news-list a:hover {
  color: var(--brand);
}
.news-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.news-category-list a.active {
  color: var(--brand-dark);
}
.news-category-list a.active span {
  background: var(--brand);
  color: #fff;
}
.news-category-list span {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
}
.industry-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) 1fr;
  gap: 34px;
  padding: clamp(46px, 7vw, 82px) 0;
  border-bottom: 1px solid var(--line);
}
.industry-media { min-height: 260px; border-radius: var(--radius); background-position: center; background-size: cover; }
.industry-copy h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 2.6vw, 2.45rem); }
.industry-copy p:first-of-type { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; cursor: pointer; }
.table-wrap { overflow-x: auto; }
table.modern-table { width: 100%; border-collapse: collapse; background: #fff; }
.modern-table th,
.modern-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.modern-table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; }
.suppliers-section { display: grid; gap: 18px; }
.supplier-search {
  width: min(520px, 100%);
  margin-bottom: 4px;
}
.suppliers-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 35, 38, 0.05);
}
.suppliers-table tr:hover td { background: var(--soft); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: grid; }
  .primary-nav a,
  .dropdown-toggle { width: 100%; justify-content: flex-start; text-align: left; }
  .dropdown::after { display: none; }
  .dropdown-menu { position: static; display: grid; min-width: 0; margin: 0 0 8px; box-shadow: none; }
  .grid.three,
  .grid.four,
  .contact-layout,
  .news-layout,
  .industry-section { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-shell,
  .container,
  .hero-inner { width: min(100% - 24px, 1180px); }
  .hero { min-height: 650px; }
  .grid.two,
  .form-grid { grid-template-columns: 1fr; }
  .news-mini-card { grid-template-columns: 1fr; }
  .fact-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-actions { justify-content: flex-start; }
  .brand-mark span { display: none; }
}
