* {
  box-sizing: border-box;
}

:root {
  --brand: #EC6917;
  --brand-dark: #C95510;
  --brand-soft: #FFF1E8;
  --ink: #17191F;
  --text: #303540;
  --muted: #687386;
  --subtle: #98A2B3;
  --bg: #F4F6FA;
  --panel: #FFFFFF;
  --panel-soft: #F9FAFC;
  --line: #E4E9F1;
  --line-strong: #D6DEEA;
  --shadow: 0 16px 38px rgba(22, 29, 43, 0.08);
  --shadow-soft: 0 8px 22px rgba(22, 29, 43, 0.06);
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

::selection {
  color: #FFFFFF;
  background: var(--brand);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(236, 105, 23, 0.24);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 233, 241, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

main {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.library-hero {
  margin-bottom: 18px;
}

.hero-copy,
.manual-group,
.support-panel,
.faq-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.group-heading p,
.section-heading p,
.support-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 17px;
}

.hero-links,
.category-tabs a,
.manual-docs a,
.support-actions a,
.footer-links a,
.faq-content a {
  text-decoration: none;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hero-links a:last-child {
  color: #FFFFFF;
  background: var(--brand);
  border-color: var(--brand);
}

.hero-links a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.hero-links a:last-child:hover {
  color: #FFFFFF;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 26px;
  padding: 7px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.category-tabs a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.manual-group,
.support-panel,
.faq-section {
  padding: 26px;
}

.manual-group + .manual-group,
.support-panel,
.faq-section {
  margin-top: 28px;
}

.group-heading,
.section-heading {
  max-width: 700px;
  margin-bottom: 18px;
}

.group-heading h2,
.section-heading h2,
.support-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.group-heading p,
.section-heading p {
  margin: 10px 0 0;
  font-size: 15px;
}

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

.manual-row {
  display: grid;
  grid-template-columns: 92px minmax(190px, 0.72fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.manual-row:hover {
  background: #FFFFFF;
  border-color: rgba(236, 105, 23, 0.26);
  box-shadow: var(--shadow-soft);
}

.manual-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  overflow: hidden;
  background: #F1F4F8;
  border-radius: 14px;
}

.manual-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(22, 29, 43, 0.12));
}

.manual-info {
  min-width: 0;
}

.product-type {
  display: block;
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-info h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0;
}

.manual-docs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.manual-docs a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--ink);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.manual-docs a:hover {
  color: var(--brand);
  border-color: rgba(236, 105, 23, 0.36);
  background: #FFF9F5;
  transform: translateY(-1px);
}

.manual-docs span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-docs small {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(236, 105, 23, 0.08), rgba(255, 255, 255, 0) 42%),
    #FFFFFF;
}

.support-panel p {
  max-width: 650px;
  margin: 12px 0 0;
}

.support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  color: #FFFFFF;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(236, 105, 23, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: #FFFFFF;
  border-color: var(--line-strong);
}

.button.secondary:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

details[open] {
  background: #FFFFFF;
  border-color: rgba(236, 105, 23, 0.26);
}

summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 18px 58px 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 20px;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "-";
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-content p {
  margin: 0 0 14px;
}

.faq-content ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.faq-content li + li {
  margin-top: 8px;
}

.faq-content a,
.footer-links a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.faq-content a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.floating-service {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(236, 105, 23, 0.32);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.floating-service span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-service::before {
  content: "?";
  font-size: 22px;
  font-weight: 900;
}

.floating-service:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 30px;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page {
  padding: 44px 0 72px;
}

.hero,
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 38px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card {
  padding: 24px;
}

.card.single {
  max-width: 720px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #EEF1F5;
}

@media (max-width: 1040px) {
  .library-hero,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .manual-row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .manual-thumb {
    width: 108px;
  }

  .manual-docs {
    grid-column: 1 / -1;
  }

  .support-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

  .brand img {
    height: 30px;
  }

  nav {
    width: 100%;
    gap: 4px;
  }

  nav a {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  main {
    width: min(100% - 28px, var(--container));
    padding: 28px 0 54px;
  }

  .hero-copy,
  .manual-group,
  .support-panel,
  .faq-section {
    border-radius: 18px;
  }

  .hero-copy,
  .manual-group,
  .support-panel,
  .faq-section {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-links a,
  .button {
    width: 100%;
  }

  .category-tabs {
    border-radius: 18px;
  }

  .category-tabs a {
    flex: 1 1 100%;
  }

  .manual-group + .manual-group,
  .support-panel,
  .faq-section {
    margin-top: 22px;
  }

  .group-heading,
  .section-heading {
    margin-bottom: 16px;
  }

  .group-heading h2,
  .section-heading h2,
  .support-panel h2 {
    font-size: 26px;
  }

  .manual-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .manual-thumb {
    width: 82px;
    padding: 9px;
    border-radius: 14px;
  }

  .manual-info {
    padding-top: 0;
  }

  .manual-info h3 {
    font-size: 23px;
  }

  .manual-docs {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }

  .manual-docs a {
    min-height: 42px;
  }

  .support-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  summary {
    padding: 18px 54px 18px 18px;
  }

  .faq-content {
    padding: 0 18px 18px;
  }

  .footer-inner {
    width: min(100% - 28px, var(--container));
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .floating-service {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
