:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #202624;
  --muted: #5e6a66;
  --line: #dfe6e2;
  --teal: #0f6b6b;
  --teal-dark: #0a4a4a;
  --amber: #b7791f;
  --moss: #4f6f52;
  --rose: #8a4b4b;
  --shadow: 0 18px 45px rgba(32, 38, 36, 0.12);
  --radius: 8px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e8f1ef;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: min(720px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.82) 43%, rgba(251, 250, 247, 0.18) 74%),
    url("../images/tekno-guide-hero.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 9rem) 0 clamp(3rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  max-width: 750px;
  font-size: clamp(2.45rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 700px;
  margin-top: 1.1rem;
  color: #3d4744;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.05rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

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

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

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section.compact {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin-bottom: 1.7rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem;
  box-shadow: 0 1px 0 rgba(32, 38, 36, 0.03);
}

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

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

.card.moss {
  border-top-color: var(--moss);
}

.card.rose {
  border-top-color: var(--rose);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p,
.article-meta,
.meta {
  color: var(--muted);
}

.article-card {
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
}

.article-card a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h2,
.article-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}

.article-card a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #edf4f2;
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 700;
}

.feature-band {
  background: #eef3ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice {
  border-left: 5px solid var(--amber);
  padding: 1rem 1.1rem;
  background: #fff8ec;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-title {
  background: #eef3ef;
  border-bottom: 1px solid var(--line);
}

.page-title .section {
  padding-top: clamp(2.8rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.8rem, 7vw, 5.5rem);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
}

.prose p,
.prose li {
  color: #35403c;
}

.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose .callout {
  margin: 1.4rem 0;
}

.side-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.side-panel .card {
  padding: 1rem;
}

.side-panel h2,
.side-panel h3 {
  font-size: 1rem;
}

.side-panel ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
}

.side-panel li + li {
  margin-top: 0.4rem;
}

.contact-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-item {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.site-footer {
  background: #202624;
  color: #f6f4ef;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.site-footer h2,
.site-footer h3 {
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: #cbd5d0;
}

.site-footer ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  color: #f6f4ef;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 1rem 0 1.2rem;
  color: #cbd5d0;
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  width: min(430px, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.cookie-actions button {
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: #eef3ef;
}

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

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: flex-start;
  }

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

  .side-panel {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.9) 52%, rgba(251, 250, 247, 0.5) 100%),
      url("../images/tekno-guide-hero.jpg") center / cover no-repeat;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-content {
    width: min(100% - 1rem, 1120px);
  }

  h1 {
    font-size: 2.35rem;
  }

  .card,
  .contact-item,
  .cookie-banner {
    padding: 0.95rem;
  }

  .button {
    width: 100%;
  }
}
