:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --primary: #c1121f;
  --primary-dark: #a20f1a;
  --graphite: #0f172a;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
  line-height: 1.5;
}

.dealer-ribbon {
  text-align: center;
  background: var(--graphite);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.logo {
  text-decoration: none;
  color: var(--graphite);
  font-weight: 700;
  font-size: 1.2rem;
}

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--graphite);
}

.header-cta,
.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--graphite);
}

.btn-outline:hover {
  border-color: var(--graphite);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
}

.section {
  background: var(--surface);
  margin: 1rem 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--graphite);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero {
  background: radial-gradient(circle at 80% 20%, rgba(193, 18, 31, 0.09), transparent 45%),
    linear-gradient(180deg, #fff, #f9fafb);
}

.hero-text,
.hero-note {
  max-width: 950px;
}

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

.kpi-grid,
.cards-4,
.cards-3,
.calc-grid,
.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.kpi-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.kpi-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

.kpi-grid strong {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.media-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 0 1rem;
}

.media-grid-schemes {
  grid-column: 1 / -1;
}

.media-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  background: #eef2f7;
}

.media-card-photo img {
  max-height: 620px;
  object-fit: contain;
}

.media-card-lead img {
  max-height: 760px;
}

.media-card-scheme {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.media-card-scheme img {
  background: transparent;
  padding: 0;
  max-height: 520px;
  object-fit: contain;
}

.media-card-scheme figcaption {
  padding: 0.45rem 0 0.2rem;
}

.media-card figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.media-card-lead {
  margin: 0 0 1rem;
}

.equipment-gallery {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.6rem;
}

.media-card-equipment img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

.media-caption {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.5fr 1fr;
}

.scheme-box {
  background: #f9fafb;
  border: 1px dashed #9ca3af;
  border-radius: 12px;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  vertical-align: top;
}

th {
  background: #f3f4f6;
  text-align: left;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.calc-grid {
  grid-template-columns: 1.2fr 1fr;
}

.form-card label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(193, 18, 31, 0.25);
  border-color: var(--primary);
}

.result-card p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.45rem;
}

.result-card strong {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.6rem;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.advanced-fields {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  background: #f9fafb;
}

.disclaimer,
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.4rem 1rem 2rem;
  text-align: center;
  color: #e5e7eb;
  background: var(--graphite);
}

@media (max-width: 980px) {
  .site-header {
    top: 34px;
  }

  .two-col,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .media-card img {
    max-height: 460px;
  }

  .media-card-lead img {
    max-height: 560px;
  }

  .media-card-scheme img {
    max-height: 420px;
  }
}

@media (max-width: 740px) {
  .dealer-ribbon {
    font-size: 0.75rem;
    position: static;
  }

  .site-header {
    position: static;
    top: auto;
  }

  .header-cta .btn,
  .hero-cta .btn {
    width: 100%;
  }

  .section {
    padding: 1rem;
  }
}
