@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #f3f0e7;
  --bg-secondary: #e9e4d8;
  --bg-card: #faf8f2;
  --bg-card-hover: #fffdf8;
  --accent: #b64022;
  --accent-hover: #8f2e18;
  --accent-glow: rgba(182, 64, 34, 0.22);
  --accent-dim: rgba(182, 64, 34, 0.08);
  --text-primary: #17231f;
  --text-secondary: #46544f;
  --text-muted: #68736e;
  --border: #cbc4b7;
  --border-light: #9c968b;
  --paper: #f3f0e7;
  --paper-light: #faf8f2;
  --paper-dark: #e9e4d8;
  --ink: #17231f;
  --ink-soft: #46544f;
  --pine: #173f36;
  --pine-deep: #102e28;
  --signal: #b64022;
  --line: #cbc4b7;
  --line-strong: #837f76;
  --white: #fffdf8;
  --nav-height: 76px;
  --radius: 3px;
}

html {
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(23, 35, 31, 0.025) 1px) 0 0 / 24px 24px,
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

::selection {
  background: var(--signal);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  padding: 0;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background:
    linear-gradient(rgba(23, 35, 31, 0.045) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--paper-dark);
}

.section-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

.section-header .section-label {
  grid-row: 1 / span 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-subtitle {
  max-width: 670px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn {
  min-height: 48px;
  gap: 10px;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--signal);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

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

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: none;
}

.card-link {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav {
  height: var(--nav-height);
  background: rgba(243, 240, 231, 0.96);
  border-top: 4px solid var(--pine);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

nav.scrolled {
  box-shadow: 0 3px 0 rgba(23, 35, 31, 0.12);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 38px;
}

.nav-logo {
  gap: 12px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo::before {
  content: "ST";
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--pine);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--signal);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--paper-dark);
  color: var(--ink);
}

.nav-links a.active::after {
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 0;
  background: var(--signal);
}

.nav-cta {
  margin-left: 0;
}

.nav-hamburger {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: var(--ink);
}

.nav-mobile {
  top: var(--nav-height);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 0 rgba(23, 35, 31, 0.12);
}

.nav-mobile a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--paper-dark);
  color: var(--ink);
}

.hero {
  min-height: 760px;
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.hero-bg {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(23, 35, 31, 0.08) 50%, transparent 50.1%),
    linear-gradient(rgba(23, 35, 31, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 32px;
}

.hero-grid {
  left: calc(50% + 230px);
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(23, 35, 31, 0.05) 12px 13px);
  background-size: auto;
  opacity: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 96px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  padding: 108px 0 96px 32px;
  border-left: 4px solid var(--signal);
}

.hero-badge {
  gap: 9px;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "STATUS /";
  color: var(--ink-soft);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--signal);
  animation: none;
}

.hero h1 {
  max-width: 730px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(3.2rem, 6.4vw, 6.15rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero h1 .highlight {
  color: var(--pine);
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.06em;
  left: 0;
  height: 0.1em;
  background: var(--signal);
  opacity: 0.9;
  z-index: -1;
}

.hero p {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  margin-bottom: 0;
}

.hero-docket {
  align-self: end;
  margin-bottom: 96px;
  border-top: 4px solid var(--pine);
  border-bottom: 1px solid var(--ink);
  background: rgba(250, 248, 242, 0.88);
}

.hero-docket__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-docket__header span:last-child {
  color: var(--signal);
}

.hero-docket dl {
  margin: 0;
}

.hero-docket__row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.hero-docket__row:last-child {
  border-bottom: 0;
}

.hero-docket dt {
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-docket dd {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  counter-reset: service;
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 38px 48px 38px 84px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  counter-increment: service;
}

.service-card:nth-child(even) {
  border-right: 0;
}

.service-card::before {
  content: "0" counter(service);
  position: absolute;
  top: 42px;
  left: 26px;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.service-card:hover {
  border-color: var(--line);
  background: var(--paper-light);
  box-shadow: inset 4px 0 0 var(--signal);
  transform: none;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--pine);
  color: var(--white);
}

.service-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card .card-link {
  border-bottom: 1px solid currentColor;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.why-card {
  min-height: 200px;
  padding: 32px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.why-card:last-child {
  border-right: 0;
}

.why-card:hover {
  border-color: var(--line-strong);
  background: rgba(250, 248, 242, 0.48);
}

.why-icon,
.contact-item-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--signal);
}

.why-card h3,
.why-card h4 {
  color: var(--ink);
  font-size: 1.02rem;
}

.why-card p {
  color: var(--ink-soft);
}

.cta-banner {
  padding: 62px 56px;
  border: 1px solid var(--ink);
  border-top: 7px solid var(--signal);
  border-radius: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
    var(--pine);
  color: var(--white);
  text-align: left;
}

.cta-banner::before {
  content: "NEXT ACTION";
  top: 22px;
  right: 24px;
  left: auto;
  width: auto;
  height: auto;
  transform: none;
  background: transparent;
  color: rgba(255, 253, 248, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.cta-banner h2 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cta-banner p {
  max-width: 650px;
  color: rgba(255, 253, 248, 0.76);
}

.cta-banner .btn-primary {
  box-shadow: 4px 4px 0 var(--white);
}

.cta-banner .btn-outline {
  border-color: rgba(255, 253, 248, 0.72);
  color: var(--white);
}

.cta-banner .btn-outline:hover {
  background: var(--white);
  color: var(--pine);
}

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

.page-hero {
  padding: calc(var(--nav-height) + 76px) 0 74px;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(23, 35, 31, 0.06) 50%, transparent 50.1%),
    linear-gradient(rgba(23, 35, 31, 0.05) 1px, transparent 1px),
    var(--paper-dark);
  background-size: 100% 100%, 100% 30px, auto;
}

.page-hero::before {
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: 28%;
  height: 100%;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(23, 35, 31, 0.05) 12px 13px);
}

.page-hero .container {
  padding-left: 32px;
  border-left: 4px solid var(--signal);
}

.page-hero .section-title {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.breadcrumb {
  margin-bottom: 30px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}

.tool-card {
  min-height: 340px;
  padding: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.tool-card:nth-child(even) {
  border-right: 0;
}

.tool-card:hover {
  border-color: var(--line);
  background: var(--paper-light);
  box-shadow: inset 4px 0 0 var(--signal);
  transform: none;
}

.tool-card.coming-soon {
  opacity: 0.55;
}

.tool-badge {
  top: 22px;
  right: 22px;
  padding: 4px 9px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: transparent;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-badge.soon {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text-muted);
}

.tool-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}

.tool-card p {
  color: var(--ink-soft);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: 80px;
}

.contact-info h2 {
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.contact-info p,
.contact-item p {
  color: var(--ink-soft);
}

.contact-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-item h3,
.contact-item h4 {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-services {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper-dark);
}

.contact-services__label {
  margin: 0 0 14px !important;
  color: var(--text-muted) !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-services ul {
  display: grid;
  gap: 8px;
}

.contact-services li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.contact-services svg {
  stroke: var(--signal);
}

.contact-form {
  padding: 40px;
  border: 1px solid var(--ink);
  border-top: 7px solid var(--pine);
  border-radius: 0;
  background: var(--paper-light);
}

.contact-form h3 {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.form-group label {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-group select {
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #777d79;
}

.form-note {
  color: var(--text-muted);
}

.form-success {
  border: 1px solid var(--pine);
  border-radius: 0;
  background: rgba(23, 63, 54, 0.09);
  color: var(--pine);
}

footer {
  padding: 68px 0 30px;
  border-top: 7px solid var(--signal);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--pine-deep);
  color: var(--white);
}

footer .nav-logo {
  color: var(--white);
}

footer .nav-logo::before {
  border-color: rgba(255, 253, 248, 0.55);
  background: transparent;
}

.footer-brand p,
.footer-col a,
.footer-contact p,
.footer-bottom p {
  color: rgba(255, 253, 248, 0.64);
}

.footer-col h4 {
  color: rgba(255, 253, 248, 0.86);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact a,
.footer-bottom a {
  color: #f18b68;
}

.footer-bottom {
  border-top-color: rgba(255, 253, 248, 0.18);
}

/* Services page */
.services-subnav {
  background: rgba(243, 240, 231, 0.97);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.services-subnav-inner {
  gap: 0;
}

.subnav-link {
  min-height: 52px;
  padding: 0 18px;
  color: var(--text-muted);
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subnav-link:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

.subnav-link.active {
  border-bottom-color: var(--signal);
  color: var(--signal);
}

.service-block {
  padding: 72px 0;
  border-bottom: 1px solid var(--ink);
}

.service-block-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 48px;
}

.service-tag {
  grid-row: 1 / span 4;
  align-self: start;
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.service-block-content h2 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.service-block-content > p {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.feature-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: transparent;
}

.feature-check svg {
  stroke: var(--signal);
}

/* File converter */
.converter-page {
  --bg-primary: var(--paper);
  --bg-secondary: var(--paper-dark);
  --bg-card: var(--paper-light);
  --bg-card-hover: var(--white);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: #68736e;
  --border: var(--line);
  --border-light: var(--line-strong);
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.converter-page #site-header {
  min-height: 72px;
  padding: 1rem max(1.25rem, calc((100% - 1180px) / 2));
  border-top: 4px solid var(--pine);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.converter-page #header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.converter-page #header-brand::before {
  content: "ST";
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--pine);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.converter-page #header-brand span,
.converter-page #back-link {
  color: var(--signal);
}

.converter-page #wrap {
  max-width: 760px;
  padding-top: 56px;
}

.converter-page #page-title {
  color: var(--ink);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.converter-page #page-sub {
  color: var(--ink-soft);
  font-size: 1rem;
}

.converter-page #drop-zone,
.converter-page #file-info,
.converter-page #options-card,
.converter-page #results-card,
.converter-page #conversions-card {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--paper-light);
}

.converter-page #conversions-card {
  border: 1px solid var(--ink);
}

.converter-page #conversions-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.converter-page #conversions-toggle:hover {
  background: var(--paper-dark);
}

.converter-page #conversions-body.open {
  border-top: 1px solid var(--line);
}

.converter-page #drop-zone {
  border-style: dashed;
}

.converter-page #drop-zone:hover,
.converter-page #drop-zone.drag-over {
  border-color: var(--signal);
  background: var(--white);
}

.converter-page #page-title,
.converter-page #dz-primary,
.converter-page #fi-name {
  color: var(--ink);
}

.converter-page #dz-icon {
  color: var(--signal);
  font-size: 0;
}

.converter-page #dz-icon::before {
  content: "FILE / IN";
  display: inline-grid;
  min-width: 74px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.converter-page #page-sub,
.converter-page #dz-secondary,
.converter-page #options-title {
  color: var(--ink-soft);
}

.converter-page #browse-btn,
.converter-page #fi-clear {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.converter-page #browse-btn:hover,
.converter-page #fi-clear:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.converter-page .format-option span,
.converter-page #quality-select,
.converter-page #fi-clear {
  border-radius: var(--radius);
}

.converter-page .format-option input:checked + span,
.converter-page #convert-btn {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--white);
}

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-content {
    padding: 96px 0 64px 28px;
  }

  .hero-docket {
    margin: 0 0 72px 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 620px);
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 38px;
  }

  .section-header .section-label {
    grid-row: auto;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .nav-logo {
    font-size: 0.88rem;
  }

  .nav-logo::before {
    width: 34px;
    height: 34px;
  }

  .hero-grid {
    display: none;
  }

  .hero .container {
    width: min(100% - 32px, 620px);
  }

  .hero-content {
    padding: 74px 0 50px 20px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
    line-height: 0.94;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-docket {
    margin: 0 0 54px 24px;
  }

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

  .service-card,
  .tool-card,
  .service-card:nth-child(even),
  .tool-card:nth-child(even) {
    border-right: 0;
  }

  .service-card {
    min-height: 0;
    padding: 32px 28px 32px 66px;
  }

  .service-card::before {
    top: 36px;
    left: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .why-card:last-child {
    border-bottom: 0;
  }

  .cta-banner {
    padding: 56px 24px 34px;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: calc(var(--nav-height) + 54px) 0 54px;
  }

  .page-hero .container {
    padding-left: 20px;
  }

  .page-hero .section-title {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .contact-form {
    padding: 28px 20px;
  }

  .service-block-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-tag {
    grid-row: auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .nav-logo span {
    display: block;
    max-width: 70px;
    line-height: 1.05;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14.5vw, 3.9rem);
  }

  .hero-docket__row {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .btn-primary,
  .service-icon,
  .nav-logo::before {
    border: 1px solid ButtonText;
  }
}
