:root {
  --swg-gray: #76777a;
  --swg-white: #ffffff;
  --swg-yellow: #ffed00;
  --ink: #76777a;
  --muted: #76777a;
  --line: rgba(118, 119, 122, 0.22);
  --surface-strong: rgba(118, 119, 122, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--swg-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.service-container {
  max-width: 1180px;
}

.service-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 2.4rem;
}

.brand-text {
  color: var(--swg-gray);
}

.service-nav .nav-link {
  color: var(--swg-gray);
  font-weight: 700;
}

.nav-cta {
  color: var(--swg-gray);
  border: 1px solid var(--swg-yellow);
  border-radius: 999px;
  background: var(--swg-yellow);
}

.page-shell {
  min-height: calc(100vh - 128px);
}

.hero-section,
.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: radial-gradient(circle at top right, rgba(255, 237, 0, 0.42), transparent 30%), var(--swg-white);
}

.hero-section::after,
.calculator-hero::after {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  width: 34rem;
  height: 34rem;
  content: "";
  border-radius: 50%;
  background: rgba(255, 237, 0, 0.28);
}

.hero-grid,
.calculator-hero-grid,
.calculator-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--swg-gray);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  color: var(--swg-gray);
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

h2 {
  color: var(--swg-gray);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.lead-text {
  max-width: 680px;
  color: var(--swg-gray);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-primary-service,
.btn-secondary-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.btn-primary-service {
  color: var(--swg-gray);
  background: var(--swg-yellow);
  box-shadow: 0 18px 45px rgba(118, 119, 122, 0.18);
}

.btn-secondary-service {
  color: var(--swg-gray);
  border: 1px solid var(--line);
  background: var(--swg-white);
}

.hero-card,
.quick-facts,
.calculator-panel,
.result-panel,
.service-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--swg-white);
  box-shadow: 0 24px 70px rgba(118, 119, 122, 0.12);
}

.hero-card {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.card-kicker,
.quick-facts span,
.result-card span,
.package-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0.75rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hero-card a {
  color: var(--swg-gray);
  font-weight: 800;
  text-decoration: none;
}

.service-list {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.service-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 72px rgba(118, 119, 122, 0.16);
}

.service-tile span {
  color: var(--swg-gray);
  font-weight: 850;
}

.service-tile strong {
  color: var(--swg-gray);
  font-size: 1.35rem;
}

.service-tile small {
  color: var(--muted);
}

.quick-facts {
  display: grid;
  gap: 0.55rem;
  padding: 1.4rem;
}

.quick-facts strong {
  overflow-wrap: anywhere;
  color: var(--swg-gray);
}

.calculator-layout {
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.calculator-panel,
.result-panel {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.panel-heading {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.panel-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--swg-gray);
  background: var(--swg-yellow);
  border-radius: 50%;
  font-weight: 900;
}

.panel-heading h2 {
  margin-bottom: 0.15rem;
  font-size: 1.55rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field > span {
  color: var(--swg-gray);
  font-weight: 850;
}

.form-select,
.input-with-unit {
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--swg-white);
  box-shadow: none;
}

.form-select:focus,
.input-with-unit:focus-within {
  border-color: var(--swg-yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 237, 0, 0.45);
}

.input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.input-with-unit input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  outline: 0;
  font: inherit;
}

.input-with-unit span {
  padding: 0 0.9rem;
  color: var(--muted);
  font-weight: 800;
}

.hint-box {
  margin-top: 1.2rem;
  padding: 1rem;
  color: var(--swg-gray);
  border-radius: 18px;
  background: var(--surface-strong);
}

.result-stack {
  display: grid;
  gap: 1rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-card,
.package-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--swg-white);
}

.result-card.highlight {
  border-color: var(--swg-yellow);
  background: linear-gradient(135deg, rgba(255, 237, 0, 0.18) 0%, var(--swg-white) 72%);
}

.result-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--swg-gray);
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1;
}

.result-card small,
.package-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.package-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.package-line:last-child {
  border-bottom: 0;
}

.package-line strong {
  color: var(--swg-gray);
}

.article-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--swg-white);
}

.article-table-wrap h3 {
  margin: 0;
  padding: 1rem 1rem 0.2rem;
  color: var(--swg-gray);
  font-size: 1rem;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-table th,
.article-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-table th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.drawing-section .section-heading {
  max-width: 760px;
}

.drawing-section .section-heading p:last-child {
  color: var(--muted);
}

.drawing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--swg-white);
  box-shadow: 0 24px 70px rgba(118, 119, 122, 0.12);
}

.drawing-meta {
  padding: 1rem 1.2rem;
  color: var(--swg-gray);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.drawing-canvas {
  overflow-x: auto;
  padding: clamp(0.7rem, 2vw, 1.2rem);
}

.drawing-canvas svg {
  display: block;
  min-width: 620px;
  width: 100%;
  height: auto;
}

.drawing-plate {
  fill: rgba(255, 237, 0, 0.22);
}

.drawing-plate-outline {
  fill: none;
  stroke: var(--swg-gray);
  stroke-width: 3;
}

.drawing-support {
  stroke: var(--swg-gray);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0.46;
}

.drawing-screw line {
  stroke: #d10000;
  stroke-width: 5;
  stroke-linecap: round;
}

.drawing-label {
  fill: var(--swg-gray);
  font-size: 22px;
  font-weight: 800;
}

.service-footer {
  padding: 1.3rem 0;
  color: var(--swg-white);
  background: var(--swg-gray);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content a {
  color: var(--swg-white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .calculator-hero-grid,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero-section,
  .calculator-hero {
    padding: 2.5rem 0;
  }

  .field-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .drawing-canvas svg {
    min-width: 520px;
  }

  .hero-actions,
  .footer-content {
    flex-direction: column;
  }

  .btn-primary-service,
  .btn-secondary-service {
    width: 100%;
  }

  .article-table {
    font-size: 0.84rem;
  }

  .article-table th,
  .article-table td {
    padding: 0.7rem 0.55rem;
  }
}
