:root {
  --abook-yellow: #f2b900;
  --abook-ink: #111719;
  --abook-dark: #071014;
  --abook-muted: #5e686b;
  --abook-line: #c9cecf;
  --abook-paper: #f2f2ef;
}

.service-card-seo-link {
  color: #181818;
  text-decoration: none;
}

.service-card-seo-link:hover,
.service-card-seo-link:focus-visible {
  color: #b88600;
}

.quote-form .upload-zone {
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 28px 24px;
  text-align: center;
}

.quote-form .upload-zone > .upload-mark,
.quote-form .upload-zone > strong,
.quote-form .upload-zone > small,
.quote-form .upload-zone > button {
  margin-inline: auto;
}

.cad-info {
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.cad-info__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--abook-yellow);
}

.cad-info__text {
  min-width: 0;
}

.cad-info__sentence {
  display: block;
  color: #181818;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.cad-info__formats {
  display: block;
  margin-top: 5px;
  color: #747c80;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

body.service-landing {
  background: var(--abook-paper);
  color: var(--abook-ink);
}

.service-landing .site-header {
  background: rgba(5, 13, 17, 0.98);
}

.service-page-main {
  overflow: clip;
}

.service-page-hero {
  position: relative;
  min-height: 720px;
  padding: 172px 0 86px;
  display: flex;
  align-items: flex-end;
  background: var(--abook-dark);
  color: #fff;
}

.service-page-hero picture,
.service-page-hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-page-hero picture img {
  object-fit: cover;
}

.service-page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 14, 0.96) 0%, rgba(2, 10, 14, 0.82) 45%, rgba(2, 10, 14, 0.28) 78%, rgba(2, 10, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 10, 14, 0.62), transparent 45%);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 42px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--abook-yellow);
}

.service-page-label {
  margin: 0 0 18px;
  color: var(--abook-yellow);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.8rem, 7.6vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.service-page-hero__lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.service-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.service-page-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 48px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.service-page-hero__facts div {
  padding: 20px 24px 0 0;
}

.service-page-hero__facts strong {
  display: block;
  color: var(--abook-yellow);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.service-page-hero__facts span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.45;
}

.service-content-section {
  padding: 112px 0;
}

.service-content-section--compact {
  padding-top: 0;
}

.service-content-section--dark {
  background: var(--abook-dark);
  color: #fff;
}

.service-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 80px;
  align-items: start;
  margin-bottom: 54px;
}

.service-section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.service-section-heading p:not(.service-page-label) {
  margin: 0;
  color: var(--abook-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-content-section--dark .service-section-heading p:not(.service-page-label) {
  color: rgba(255, 255, 255, 0.72);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--abook-line);
  border-left: 1px solid var(--abook-line);
}

.service-feature-grid article {
  min-height: 250px;
  padding: 34px;
  border-right: 1px solid var(--abook-line);
  border-bottom: 1px solid var(--abook-line);
  background: rgba(255, 255, 255, 0.55);
}

.service-feature-grid span,
.workflow-grid span {
  color: #b48400;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-feature-grid h3 {
  margin: 54px 0 12px;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.service-feature-grid p,
.workflow-grid p,
.integration-grid p {
  margin: 0;
  color: var(--abook-muted);
  line-height: 1.7;
}

.material-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.material-row div {
  padding: 28px;
  border: 1px solid var(--abook-line);
  background: #fff;
}

.material-row strong {
  display: block;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.material-row span {
  display: block;
  margin-top: 8px;
  color: var(--abook-muted);
  font-size: 0.88rem;
}

.machine-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.machine-service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.machine-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-service-copy h2 {
  margin: 12px 0 20px;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.machine-service-copy > p:not(.service-page-label) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.machine-service-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.machine-service-specs div {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.machine-service-specs dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.machine-service-specs dd {
  margin: 7px 0 0;
  color: #fff;
  font-weight: 700;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--abook-line);
}

.workflow-grid article {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--abook-line);
}

.workflow-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--abook-line);
}

.workflow-grid h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.integration-grid article {
  padding: 28px;
  background: #fff;
  border-top: 3px solid var(--abook-yellow);
}

.integration-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.service-quote-band {
  padding: 80px 0;
  background: var(--abook-yellow);
  color: #101719;
}

.service-quote-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.service-quote-band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.service-quote-band p {
  max-width: 720px;
  margin: 18px 0 0;
  line-height: 1.65;
}

.service-quote-band .button {
  border-color: #101719;
  background: #101719;
  color: #fff;
}

@media (max-width: 900px) {
  .service-section-heading,
  .machine-service-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-feature-grid,
  .material-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .service-quote-band__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .quote-form .upload-zone {
    min-height: 300px;
    padding: 24px 12px;
  }

  .cad-info {
    width: min(100%, 310px);
    max-width: calc(100% - 24px);
    flex-direction: column;
    gap: 9px;
    margin-top: 26px;
    text-align: center;
  }

  .cad-info__icon {
    width: 30px;
    height: 30px;
  }

  .cad-info__sentence {
    font-size: 0.88rem;
  }

  .cad-info__formats {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .service-page-hero {
    min-height: 650px;
    padding: 132px 0 54px;
  }

  .service-page-hero__overlay {
    background: linear-gradient(90deg, rgba(2, 10, 14, 0.94), rgba(2, 10, 14, 0.5)), linear-gradient(0deg, rgba(2, 10, 14, 0.75), transparent 55%);
  }

  .breadcrumb {
    margin-bottom: 30px;
    font-size: 0.62rem;
  }

  .service-page-label {
    font-size: 0.66rem;
  }

  .service-page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: 0.96;
  }

  .service-page-hero__lead {
    margin-top: 20px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .service-page-hero__actions {
    margin-top: 24px;
  }

  .service-page-hero__actions .button {
    width: 100%;
    min-height: 56px;
  }

  .service-page-hero__facts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .service-page-hero__facts div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding-top: 12px;
  }

  .service-page-hero__facts strong,
  .service-page-hero__facts span {
    margin: 0;
    font-size: 0.76rem;
  }

  .service-content-section {
    padding: 72px 0;
  }

  .service-content-section--compact {
    padding-top: 0;
  }

  .service-section-heading {
    margin-bottom: 34px;
  }

  .service-section-heading h2 {
    font-size: 2.5rem;
  }

  .service-section-heading p:not(.service-page-label) {
    font-size: 0.96rem;
  }

  .service-feature-grid,
  .material-row,
  .workflow-grid,
  .integration-grid,
  .machine-service-specs {
    grid-template-columns: 1fr;
  }

  .service-feature-grid article {
    min-height: 0;
    padding: 26px;
  }

  .service-feature-grid h3 {
    margin-top: 28px;
  }

  .workflow-grid article,
  .workflow-grid article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .machine-service-layout {
    gap: 30px;
  }

  .machine-service-copy h2 {
    font-size: 3rem;
  }

  .service-quote-band {
    padding: 58px 0;
  }

  .service-quote-band h2 {
    font-size: 2.8rem;
  }

  .service-quote-band .button {
    width: 100%;
    min-height: 56px;
  }
}
