/* 代开发票 — 系统字体 + 全站 UI */
:root {
  --ink: #15282c;
  --ink-soft: #3f5256;
  --paper: #f5f7f6;
  --paper-2: #e9efec;
  --surface: #ffffff;
  --brand: #0d5c63;
  --brand-deep: #08474d;
  --brand-soft: #e2f0f1;
  --accent: #b86d22;
  --accent-soft: #f7ecdf;
  --line: rgba(21, 40, 44, 0.1);
  --shadow: 0 10px 28px rgba(8, 71, 77, 0.08);
  --radius: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --header-h: 64px;
  --topbar-h: 36px;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, #f8fafa 0%, var(--paper) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

/* Topbar */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar__tagline {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__links {
  display: flex;
  gap: 1.1rem;
  flex-shrink: 0;
}

.topbar__links a {
  color: rgba(255, 255, 255, 0.88);
}

.topbar__links a:hover {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(8, 71, 77, 0.07);
  background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 92, 99, 0.22);
  flex-shrink: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 92, 99, 0.12);
}

.brand--footer .brand__logo {
  width: 44px;
  height: 44px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.12rem;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.primary-nav__link {
  display: block;
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  position: relative;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
  color: var(--brand);
}

.primary-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  box-shadow: 0 4px 12px rgba(8, 71, 77, 0.12);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero banner */
.hero {
  position: relative;
  min-height: min(72vh, 580px);
  height: min(72vh, 580px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6.5s ease;
}

.hero__slide.is-active img {
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(4, 28, 32, 0.92) 0%, rgba(4, 28, 32, 0.78) 38%, rgba(4, 28, 32, 0.45) 68%, rgba(4, 28, 32, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 28, 32, 0.55) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  max-width: 580px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}


.hero h1.hero__brand,
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 1.7rem;
  max-width: 28em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.7s ease 0.18s both;
}

.hero__actions {
  animation: fadeUp 0.7s ease 0.28s both;
}

.hero__actions .btn--primary {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero__actions .btn--primary:hover {
  background: #f3f7f6;
  color: var(--brand-deep);
  border-color: #f3f7f6;
}

.hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.95);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-color: #ffffff;
}

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.hero__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hero__dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

.hero__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(4, 28, 32, 0.5);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__arrow:hover {
  background: rgba(4, 28, 32, 0.75);
  border-color: #fff;
}

.hero__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.hero__arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.hero__arrow--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero */
.page-hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(8, 55, 60, 0.93), rgba(13, 92, 99, 0.78)),
    var(--page-hero-bg, url("../img/page-bg.jpg")) center/cover no-repeat;
  color: #fff;
  padding: 2.75rem 0 2.35rem;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -4%;
  top: -30%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.page-hero__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40em;
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.3rem;
  color: var(--ink-soft);
  opacity: 0.55;
}

.breadcrumb a {
  color: var(--ink-soft);
}

/* Layout */
.section {
  padding: 3.75rem 0;
}

.section--tight {
  padding: 2.75rem 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.section__head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin: 0;
}

.section__head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section__more {
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0 3.5rem;
  align-items: start;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}

.content-panel h2 {
  font-size: 1.25rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.content-panel .article-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 1.15rem;
}

.prose p {
  color: #2f4246;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose img,
.prose video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.prose iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 240px;
  border: 0;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.prose figure {
  margin: 1.25rem 0;
}

.prose figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.prose th {
  background: rgba(13, 92, 99, 0.06);
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin: 0.25rem 0;
  color: #2f4246;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink-soft);
}

.article-body__content img,
.article-body__content video,
.article-body__content iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.article-body__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 0;
}

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: center;
}

.about-strip__media {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius);
}

.about-strip__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.about-strip__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(8, 71, 77, 0.3));
  pointer-events: none;
}

.about-strip__body h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.about-strip__body p {
  color: var(--ink-soft);
}

.pillars {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 1.5rem;
}

.pillar {
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.pillar span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Types grid */
.types-stage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.type-tile {
  position: relative;
  display: block;
  color: #fff;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
}

.type-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.type-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 40, 44, 0.88) 100%);
}

.type-tile:hover img {
  transform: scale(1.04);
}

.type-tile:hover {
  color: #fff;
}

.type-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem 1.2rem;
}

.type-tile__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.type-tile__body span {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Services */
.services-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem 1.75rem;
}

.service-item {
  padding-top: 1.1rem;
  border-top: 2px solid var(--brand-soft);
}

a.service-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.service-item:hover {
  border-top-color: var(--brand);
  text-decoration: none;
}
a.service-item:hover h3 {
  color: var(--brand);
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.service-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.service-item__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.65rem;
  color: var(--brand);
}

/* News list */
.news-list li + li {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.9rem 0;
  color: var(--ink);
}

.news-list a:hover {
  color: var(--brand);
}

.news-list__date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.news-list__cat {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff;
  padding: 2.75rem 0;
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}

.sidebar-block__title {
  font-size: 0.98rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-soft);
}

.sidebar-list li + li {
  margin-top: 0.55rem;
}

.sidebar-list a {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sidebar-list a:hover {
  color: var(--brand);
}

.sidebar-list__date {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.3rem;
}

.sidebar-channels {
  display: grid;
  gap: 0.4rem;
}

.sidebar-channels a {
  display: block;
  padding: 0.5rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 4px;
}

.sidebar-channels a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.sidebar-contact li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.45rem;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  color: var(--ink-soft);
}

.sidebar-contact span {
  color: var(--brand);
  font-weight: 600;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 0.95rem;
  max-width: 620px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
}

.alert--error {
  border-color: #b42318;
  background: #fef3f2;
  color: #b42318;
}

.alert--ok {
  border-color: var(--brand);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.captcha-row input {
  max-width: 110px;
}

/* Message list */
.message-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.message-list__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.message-list__reply {
  margin-top: 0.45rem;
  padding: 0.6rem 0.7rem;
  background: var(--paper);
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 4px;
}

/* Type detail */
.type-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.type-detail__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.checklist {
  margin: 1.1rem 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
}

.callout {
  margin-top: 1.35rem;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Jobs */
.job-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.job-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.job-list__meta {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.contact-media {
  min-height: 300px;
  background: #ddd center/cover;
  border-radius: var(--radius);
}

.contact-facts li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.contact-facts span {
  font-weight: 600;
  color: var(--brand);
}

/* Footer */
.site-footer {
  background: #0a2f33;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr;
  gap: 2.25rem;
  padding: 3rem 0 2.25rem;
}

.site-footer__brand p {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.brand--footer .brand__text strong {
  color: #fff;
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__heading {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.site-footer__links,
.site-footer__contact {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
}

.site-footer__bottom p {
  margin: 0.2rem 0;
}

.site-footer__disclaimer {
  opacity: 0.9;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Links strip */
.friends {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.friends h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.friends ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  font-size: 0.875rem;
}

.friends a {
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 980px) {
  .types-stage {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-rail {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip,
  .type-detail,
  .contact-grid,
  .layout-with-sidebar,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .layout-with-sidebar {
    gap: 1.25rem;
  }

  .sidebar {
    order: 2;
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-block--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar__tagline {
    display: none;
  }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(8, 71, 77, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 480px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 0.75rem 0.85rem;
  }

  .primary-nav__link {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .primary-nav ul li:last-child .primary-nav__link {
    border-bottom: 0;
  }

  .primary-nav__link.is-active {
    background: var(--brand-soft);
  }

  .primary-nav__link.is-active::after {
    display: none;
  }

  .site-header__inner {
    position: relative;
  }

  .hero {
    min-height: 64vh;
    height: 64vh;
    align-items: flex-end;
  }

  .hero__content {
    margin-left: auto;
    padding: 2.5rem 0 4.25rem;
  }

  .hero__controls {
    bottom: 0.85rem;
  }

  .hero__arrow {
    display: none;
  }

  .types-stage,
  .services-rail,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .news-list a {
    grid-template-columns: 4.5rem 1fr;
  }

  .news-list__cat {
    display: none;
  }

  .section {
    padding: 2.75rem 0;
  }

  .content-panel {
    padding: 1.25rem 1.15rem 1.4rem;
  }

  .type-detail__media img {
    height: 220px;
  }
}
