* { box-sizing: border-box; }
:root {
  --black: #05070a;
  --dark: #0a0f16;
  --dark2: #101620;
  --red: #ee2b21;
  --red-dark: #c91f18;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --light: #f4f4f5;
  --white: #ffffff;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,7,10,.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.topbar__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}
.brand img { width: 54px; height: auto; }
.brand span { font-size: 18px; color: var(--red); }
.mainnav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  font-weight: 700;
}
.mainnav a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}
.btn--small { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(238,43,33,.18); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.02); }
.btn--ghost { color: var(--red); border-color: var(--red); background: #fff; }
.btn--full { width: 100%; }

.accent-line { width: 56px; height: 4px; background: var(--red); margin-bottom: 28px; }
.accent-line--red { margin-bottom: 18px; }

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/74px 74px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/74px 74px,
    radial-gradient(circle at 84% 20%, rgba(238,43,33,.14), transparent 28%),
    linear-gradient(135deg,#05070a,#0b1018 62%,#130a0b);
  padding: 70px 0 30px;
}
.hero__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 42px;
  align-items: center;
}
.hero__copy h1 {
  margin: 0;
  max-width: 610px;
  color: #fff;
  font-size: clamp(58px, 7vw, 90px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero__copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.83);
  font-size: 21px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
}
.hero__art::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 22px;
  width: 4px;
  height: 690px;
  background: var(--red);
  transform: skewX(-25deg);
}
.hero__art img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: contrast(1.05);
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.feature-row div {
  min-height: 58px;
  padding: 4px 20px 4px 0;
  color: rgba(255,255,255,.82);
  border-right: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.feature-row div:last-child { border-right: 0; }

.solutions {
  background: linear-gradient(180deg, #fff, #f6f6f7);
  padding: 48px 0 58px;
}
.section-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head h2,
.approach h2,
.calc-promo h2,
.contact h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-head p {
  max-width: 520px;
  margin: 0;
  color: #5f6878;
  font-size: 18px;
}
.solution-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.solution-card {
  min-height: 284px;
  padding: 30px 26px;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16,24,40,.05);
}
.card-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  color: var(--red);
  border: 2px solid rgba(238,43,33,.35);
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
}
.solution-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.15;
}
.solution-card p {
  margin: 0;
  color: #525b69;
  font-size: 16px;
}

.approach {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(135deg,#05070a,#0a1017 58%,#100909);
  padding: 0;
}
.approach__grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 0;
  align-items: stretch;
}
.approach__image {
  min-height: 310px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.approach__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.approach__copy {
  padding: 54px 0 48px 48px;
}
.approach__copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.steps div {
  min-height: 124px;
  padding: 18px 18px 0 0;
  border-right: 1px solid rgba(255,255,255,.13);
}
.steps div:last-child { border-right: 0; }
.steps strong {
  display: block;
  color: #fff;
  margin-bottom: 10px;
  font-size: 20px;
}
.steps span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.calc-promo {
  color: #fff;
  background:
    radial-gradient(circle at 88% 40%, rgba(238,43,33,.38), transparent 30%),
    linear-gradient(135deg,#070a0f,#101720 60%,#4a1111);
  padding: 0;
}
.calc-promo__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 0;
  align-items: stretch;
}
.calc-promo__copy {
  padding: 50px 34px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-promo__copy p {
  max-width: 500px;
  margin: 20px 0 28px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}
.calc-promo__visual {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.calc-promo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.contact {
  background: #f5f5f6;
  padding: 40px 0 42px;
}
.contact__grid {
  display: grid;
  grid-template-columns: .8fr 1fr .34fr;
  gap: 28px;
  align-items: end;
}
.contact__copy p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #667085;
  font-size: 17px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.contact-list li {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}
.contact-form {
  padding: 26px 24px;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16,24,40,.06);
}
.contact-form h3 {
  margin: 0 0 18px;
  font-size: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea,
.calc-page input,
.calc-page select,
.calc-page textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 14px;
  font: inherit;
}
.contact-form textarea {
  min-height: 126px;
  margin: 12px 0;
  resize: vertical;
}
.form-message {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--red);
  font-weight: 700;
}
.contact__mascot {
  display: flex;
  justify-content: flex-end;
}
.contact__mascot img {
  max-width: 174px;
  width: 100%;
}

.footer {
  color: #c5cad5;
  background: #05070a;
  padding: 30px 0 18px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr .9fr .75fr;
  gap: 28px;
  align-items: start;
}
.footer__brand img { width: 52px; }
.footer p {
  max-width: 270px;
  margin: 14px 0 0;
  color: #98a2b3;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 20px;
  color: #fff;
}
.footer__contacts {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8794;
  font-size: 13px;
}

/* About pages */
.page-hero {
  padding: 86px 0 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/74px 74px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/74px 74px,
    linear-gradient(135deg,#05070a,#0b1018 62%,#130a0b);
}
.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
  color: #fff;
}
.page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 19px;
}
.content-section { padding: 70px 0; background:#f6f6f7; }
.people-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.person-card, .profile-box, .calc-panel, .calc-result {
  background:#fff; border:1px solid #e6e8ec; border-radius:14px; padding:28px;
  box-shadow: 0 12px 26px rgba(16,24,40,.05);
}
.person-card h2 { margin:0; font-size:30px; }
.person-role { color:var(--red); font-weight:900; margin:10px 0 14px; }
.qr { width:128px; height:128px; border:1px solid var(--line); margin-top:18px; }
.person-hero { display:grid; grid-template-columns:1fr 320px; gap:42px; align-items:center; }
.qr-panel { border:1px solid rgba(255,255,255,.14); border-radius:18px; padding:28px; text-align:center; background:rgba(255,255,255,.05); }
.qr-panel .qr { width:220px; height:220px; margin:0 auto 16px; background:#fff; }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }

/* G-code calculator */
.calc-page { background:#f6f6f7; }
.calc-layout { display:grid; grid-template-columns:1.15fr .85fr; gap:26px; align-items:start; }
.calc-form { display:grid; gap:20px; }
.calc-panel h2, .calc-result h2 { margin:0 0 20px; }
.upload-zone {
  border:2px dashed #cdd3dd; border-radius:14px; background:#fafafa; padding:28px; text-align:center;
  transition:.2s ease;
}
.upload-zone.dragover { border-color:var(--red); background:#fff5f4; }
.upload-zone strong { display:block; font-size:22px; margin-bottom:6px; }
.upload-zone span { color:#667085; }
.upload-zone input { display:none; }
.calc-row { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.calc-page label { display:grid; gap:7px; font-weight:800; color:#344054; }
.calc-actions { display:flex; flex-wrap:wrap; gap:12px; }
.calc-result { position: sticky; top: 110px; }
.result-total { color:var(--red); font-size:46px; font-weight:900; line-height:1; }
.result-note { color:#667085; }
.result-table { display:grid; gap:0; margin-top:22px; }
.result-table div, .summary-row {
  display:flex; justify-content:space-between; gap:18px; padding:12px 0; border-bottom:1px solid #eceff3;
}
.result-table span, .summary-row span:first-child { color:#667085; }
.result-table strong, .summary-row strong { text-align:right; }
.file-info { color:#667085; margin-top:10px; font-size:14px; }

@media (max-width: 1100px) {
  .mainnav { gap: 20px; }
  .hero__copy h1 { font-size: clamp(48px, 7vw, 78px); }
}
@media (max-width: 960px) {
  .topbar__inner { flex-wrap:wrap; justify-content:flex-start; padding:14px 0; }
  .mainnav { order:3; width:100%; flex-wrap:wrap; gap:14px 20px; }
  .hero__grid, .section-head, .solution-cards, .approach__grid, .steps, .calc-promo__grid,
  .contact__grid, .footer__grid, .people-grid, .person-hero, .profile-grid, .calc-layout,
  .calc-row, .form-row, .feature-row { grid-template-columns:1fr; }
  .hero { padding:54px 0 30px; }
  .hero__art { min-height:auto; }
  .hero__art::after { display:none; }
  .approach__copy, .calc-promo__copy { padding:38px 0; }
  .footer__bottom { flex-direction:column; }
  .calc-result { position: static; }
}


/* v11 real homepage layout from approved render */
.home-layout {
  margin: 0;
  background: #05070a;
  color: #111827;
}

.home-container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.965);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.home-header__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 230px 1fr 178px;
  align-items: center;
  gap: 26px;
}

.home-logo img {
  width: 184px;
  height: auto;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
}

.home-nav a:hover {
  color: #fff;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  white-space: nowrap;
}

.home-btn--top {
  min-height: 48px;
  color: #fff;
  background: #ee2b21;
  box-shadow: 0 10px 24px rgba(238, 43, 33, 0.18);
}

.home-btn--red {
  color: #fff;
  background: #ee2b21;
  box-shadow: 0 10px 24px rgba(238, 43, 33, 0.18);
}

.home-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.02);
}

.home-btn--full {
  width: 100%;
}

.home-btn:hover {
  filter: brightness(0.95);
}

.home-redline {
  width: 58px;
  height: 4px;
  background: #ee2b21;
  margin-bottom: 28px;
}

.home-redline--small {
  margin-bottom: 18px;
}

.home-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/74px 74px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/74px 74px,
    radial-gradient(circle at 82% 22%, rgba(238,43,33,.12), transparent 28%),
    linear-gradient(135deg, #05070a, #0a1018 62%, #130a0b);
  padding: 72px 0 0;
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.home-hero__copy h1 {
  margin: 0;
  max-width: 610px;
  color: #fff;
  font-size: clamp(58px, 7vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-hero__copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.83);
  font-size: 21px;
}

.home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.home-hero__visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.home-hero__visual::after {
  content: "";
  position: absolute;
  top: -85px;
  right: 15px;
  width: 4px;
  height: 760px;
  background: #ee2b21;
  transform: skewX(-25deg);
}

.home-hero__visual img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: contrast(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 96%, transparent 100%);
}

.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.home-features div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.home-features div:last-child {
  border-right: 0;
}

.home-features img {
  width: 36px;
  height: 42px;
  object-fit: contain;
}

.home-features span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.4;
}

.home-solutions {
  background: linear-gradient(180deg, #fff, #f6f6f7);
  padding: 48px 0 58px;
}

.home-section-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.home-section-head h2,
.home-approach h2,
.home-calculator h2,
.home-contact h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-section-head p {
  max-width: 520px;
  margin: 0;
  color: #5f6878;
  font-size: 18px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.home-card {
  min-height: 284px;
  padding: 30px 26px;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16,24,40,.05);
}

.home-card > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 28px;
}

.home-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.15;
}

.home-card p {
  margin: 0;
  color: #525b69;
  font-size: 16px;
}

.home-approach {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(135deg,#05070a,#0a1017 58%,#100909);
}

.home-approach__grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 0;
  align-items: stretch;
}

.home-approach__image {
  min-height: 310px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.home-approach__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%);
}

.home-approach__copy {
  padding: 54px 0 48px 48px;
}

.home-approach__copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.home-steps div {
  min-height: 142px;
  padding: 0 18px 0 0;
  border-right: 1px solid rgba(255,255,255,.13);
}

.home-steps div:last-child {
  border-right: 0;
}

.home-steps img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}

.home-steps strong {
  display: block;
  color: #fff;
  margin-bottom: 10px;
  font-size: 20px;
}

.home-steps span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.home-calculator {
  color: #fff;
  background:
    radial-gradient(circle at 88% 40%, rgba(238,43,33,.38), transparent 30%),
    linear-gradient(135deg,#070a0f,#101720 60%,#4a1111);
}

.home-calculator__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 0;
  align-items: stretch;
}

.home-calculator__copy {
  padding: 50px 34px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-calculator__copy p {
  max-width: 500px;
  margin: 20px 0 28px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.home-calculator__visual {
  min-height: 310px;
  display: flex;
  align-items: stretch;
}

.home-calculator__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-contact {
  background: #f5f5f6;
  padding: 40px 0 42px;
}

.home-contact__grid {
  display: grid;
  grid-template-columns: .8fr 1fr .34fr;
  gap: 28px;
  align-items: end;
}

.home-contact__copy p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #667085;
  font-size: 17px;
}

.home-contact__copy ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.home-contact__copy li {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.home-form {
  padding: 26px 24px;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16,24,40,.06);
}

.home-form h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.home-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-form input,
.home-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 14px;
  font: inherit;
}

.home-form textarea {
  min-height: 126px;
  margin: 12px 0;
  resize: vertical;
}

.home-mascot {
  display: flex;
  justify-content: flex-end;
}

.home-mascot img {
  max-width: 174px;
  width: 100%;
}

.home-footer {
  color: #c5cad5;
  background: #05070a;
  padding: 30px 0 18px;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1fr .9fr .75fr;
  gap: 28px;
  align-items: start;
}

.home-logo--footer img {
  width: 178px;
}

.home-footer p {
  max-width: 270px;
  margin: 14px 0 0;
  color: #98a2b3;
}

.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 20px;
  color: #fff;
}

.home-footer__contacts {
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.home-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8794;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .home-header__inner {
    grid-template-columns: 190px 1fr 160px;
  }

  .home-logo img {
    width: 160px;
  }

  .home-nav {
    gap: 22px;
  }

  .home-hero__copy h1 {
    font-size: clamp(48px, 7vw, 78px);
  }
}

@media (max-width: 900px) {
  .home-header__inner {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .home-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 20px;
  }

  .home-hero__grid,
  .home-section-head,
  .home-cards,
  .home-approach__grid,
  .home-steps,
  .home-calculator__grid,
  .home-contact__grid,
  .home-footer__grid,
  .home-form__row,
  .home-features {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 54px;
  }

  .home-hero__visual {
    min-height: auto;
  }

  .home-hero__visual::after {
    display: none;
  }

  .home-approach__copy,
  .home-calculator__copy {
    padding: 38px 0;
  }

  .home-footer__bottom {
    flex-direction: column;
  }
}


/* v12 clean SVG icons: no cropped backgrounds, no artifacts */
.home-features img,
.home-card > img,
.home-steps img {
  display: block;
  object-fit: contain;
  background: transparent !important;
  filter: none !important;
}

.home-features img {
  width: 42px;
  height: 42px;
}

.home-card > img {
  width: 64px;
  height: 64px;
}

.home-steps img {
  width: 62px;
  height: 62px;
}


/* v13: fix only calculator visual scale and bottom mascot scale */
.home-calculator__visual {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-calculator__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;   /* was effectively too zoomed */
  object-position: center right;
  padding: 0;
}

.home-mascot {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.home-mascot img {
  max-width: 245px !important;      /* bigger, closer to approved render */
  width: 100%;
  height: auto;
}


/* v15: logo unblur only, no redesign */
.home-logo img,
.home-logo--footer img,
.brand img,
.footer__brand img {
  width: 184px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: none !important;
}

.brand span,
.footer__brand span {
  display: none !important;
}

@media (max-width: 1100px) {
  .home-logo img,
  .home-logo--footer img,
  .brand img,
  .footer__brand img {
    width: 164px;
  }
}


/* v16: graphic language updated from approved business card */
:root {
  --lp-red: #ee2b21;
  --lp-red-deep: #c91f18;
  --lp-card-black: #080b11;
  --lp-card-gray: #f6f6f7;
  --lp-card-line: #e4e7ec;
}

.home-header,
.topbar,
.home-footer,
.footer {
  background:
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(135deg, #05070a, #0a0f17 62%, #12090b);
}

.home-btn--top,
.home-btn--red,
.btn--red {
  border-radius: 6px;
  box-shadow:
    0 14px 30px rgba(238,43,33,.18),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

.home-btn--outline,
.btn--outline {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.home-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0/72px 72px;
  pointer-events: none;
  z-index: 0;
}

.home-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: -12%;
  right: 6%;
  width: 30%;
  height: 130%;
  background:
    linear-gradient(115deg, transparent 0 49%, rgba(238,43,33,.98) 49.4%, rgba(238,43,33,.98) 50.4%, transparent 50.8%),
    linear-gradient(180deg, rgba(238,43,33,.22), rgba(238,43,33,.06));
  opacity: .85;
  transform: skewX(-8deg);
  pointer-events: none;
  z-index: 0;
}

.home-hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .container {
  position: relative;
}

.page-hero .container::after {
  content: "";
  position: absolute;
  right: 0;
  top: -10px;
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  background: url('/assets/hero-spire-clean.png') right center / contain no-repeat;
  opacity: .17;
  filter: grayscale(1) brightness(1.4);
  pointer-events: none;
}

.home-solutions,
.content-section,
.contact,
.home-contact {
  background: linear-gradient(180deg, #fcfcfd, #f4f4f6);
}

.home-card,
.person-card,
.profile-box,
.calc-panel,
.calc-result,
.contact-form,
.home-form {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--lp-card-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(252,252,253,1));
  box-shadow:
    0 12px 28px rgba(16,24,40,.05),
    0 1px 0 rgba(255,255,255,.7) inset;
}

.home-card::after,
.person-card::after,
.profile-box::after,
.calc-panel::after,
.calc-result::after,
.contact-form::after,
.home-form::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background:
    linear-gradient(135deg, transparent 0 47%, var(--lp-red) 47.7%, var(--lp-red) 49.4%, transparent 49.8%),
    linear-gradient(135deg, var(--lp-card-black) 0 68%, transparent 68.4%);
  opacity: .96;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.home-card > * ,
.person-card > * ,
.profile-box > * ,
.calc-panel > * ,
.calc-result > * ,
.contact-form > * ,
.home-form > * {
  position: relative;
  z-index: 1;
}

.home-card,
.person-card {
  padding-top: 34px;
}

.home-card > img,
.person-card .qr {
  position: relative;
  z-index: 1;
}

.home-card > img {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #f0f2f5;
}

.home-section-head,
.section-head {
  align-items: center;
}

.home-section-head p,
.section-head p {
  max-width: 560px;
}

.home-approach,
.home-calculator {
  position: relative;
  overflow: hidden;
}

.home-approach::before,
.home-calculator::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0/72px 72px;
  pointer-events: none;
}

.home-approach::after,
.home-calculator::after {
  content: "";
  position: absolute;
  right: -3%;
  top: 0;
  width: 22%;
  height: 100%;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(238,43,33,.98) 48.5%, rgba(238,43,33,.98) 50.2%, transparent 50.6%),
    linear-gradient(180deg, rgba(238,43,33,.14), rgba(238,43,33,.32));
  opacity: .95;
  pointer-events: none;
}

.home-approach > *,
.home-calculator > * {
  position: relative;
  z-index: 1;
}

.home-footer__bottom,
.footer__bottom {
  border-top-color: rgba(255,255,255,.10);
}

.btn--ghost {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(238,43,33,.12);
}

.person-card .qr,
.qr-panel .qr {
  padding: 8px;
  background: #fff;
  border-radius: 10px;
}

.calc-panel h2,
.calc-result h2,
.home-form h3,
.contact-form h3,
.person-card h2,
.profile-box h2 {
  letter-spacing: -.02em;
}


/* v19: remove highlighted homepage CTA blocks */
.home-header__inner {
  grid-template-columns: 230px 1fr;
}
.home-nav {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .home-header__inner {
    grid-template-columns: 190px 1fr;
  }
}


/* v20: remove white/gray bleed above approach section on homepage */
.home-approach {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding-top: 18px;
  box-shadow: inset 0 22px 0 #05070a;
}

/* keep the approach section edge clean and black */
.home-approach::before {
  box-shadow: inset 0 22px 0 rgba(5,7,10,1);
}


/* v21: approved logo/hero and requested final homepage fixes */

/* Approved transparent logo: no hard black box around header/footer logo */
.home-logo img,
.home-logo--footer img,
.brand img,
.footer__brand img {
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

.home-header__inner {
  grid-template-columns: 300px 1fr !important;
}

.home-nav {
  justify-content: flex-end !important;
}

/* Approved hero image blends with dark page background */
.home-hero__visual {
  position: relative;
  isolation: isolate;
}

.home-hero__visual img {
  position: relative;
  z-index: 1;
  content: url("/assets/hero-spire-clean-blend.png");
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: contrast(1.04);
  background: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Red diagonal line must be over the hero image */
.home-hero__visual::after {
  z-index: 5 !important;
  pointer-events: none;
}

/* Remove white strip embedded at the top of the mechanical part visual */
.home-approach__image {
  background: #05070a !important;
}

.home-approach__image img {
  object-fit: cover;
  object-position: center center;
  background: transparent !important;
}

/* Contact block: mascot must fit fully, not be over-zoomed */
.home-contact__grid {
  grid-template-columns: .82fr 1.05fr .52fr !important;
  gap: 30px !important;
  align-items: stretch !important;
}

.home-mascot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.home-mascot img {
  width: 100% !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  background: transparent !important;
}

/* Footer: nav in one line, contact block to the right */
.home-footer__grid {
  grid-template-columns: .9fr 1.2fr .75fr !important;
  align-items: center !important;
}

.home-footer__links {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 28px !important;
  white-space: nowrap !important;
}

.home-footer__contacts {
  justify-self: end !important;
  text-align: left !important;
  min-width: 190px !important;
}

/* Footer logo background also blends into footer */
.home-footer .home-logo,
.home-footer .home-logo--footer {
  background: transparent !important;
}

/* Inner page logo consistency without changing page logic */
.topbar__inner .brand {
  min-width: 260px;
}


/* v22: correct scroll position for the "Решения" anchor under sticky header */
#solutions {
  scroll-margin-top: 112px;
}


/* v23 about page: approved mascots and write buttons */
.person-mascot {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 300px;
  object-fit: contain;
  margin: 22px auto 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.person-card .btn {
  cursor: pointer;
  font-family: inherit;
}

/* About/footer nav in one line, matching the main page behavior */
.footer__grid {
  grid-template-columns: .9fr 1.2fr .75fr;
  align-items: center;
}

.footer__nav {
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.footer__contacts {
  justify-self: end;
  text-align: left;
  min-width: 190px;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  z-index: 1000;
  min-width: 280px;
  max-width: calc(100vw - 40px);
  padding: 14px 18px;
  border-radius: 10px;
  background: #05070a;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
  font-weight: 800;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer__contacts {
    justify-self: start;
  }
}


/* v24: make approved mascots clearly visible on about page */
.people-grid {
  align-items: stretch;
}

.person-card {
  display: flex;
  flex-direction: column;
}

.person-card > p:last-child {
  margin-top: auto;
}

.person-mascot {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: 360px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  margin: 24px auto 22px !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}


/* v25: about page header/menu and card polish */
.topbar .mainnav a,
.footer__nav a {
  white-space: nowrap;
}

.person-mascot {
  background: #fff !important;
}

.person-card .copy-email {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: max-content;
  padding-left: 22px;
  padding-right: 22px;
  align-self: flex-start;
}

.person-card > p:last-child {
  display: flex;
  justify-content: flex-start;
}


/* v26: use explicitly approved commercial + technical mascots, fix write buttons, blend mascot area with page background */
.person-mascot {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: 360px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 24px auto 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px;
  background: #f6f6f7 !important;
}

.person-card > p:last-child {
  display: flex !important;
  justify-content: center !important;
  margin-top: auto !important;
}

.person-card .copy-email {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  align-self: center !important;
  padding: 0 18px !important;
  min-height: 42px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}


/* v27: remove double frame around "Написать" buttons */
.person-card > p:last-child {
  display: block !important;
  margin-top: auto !important;
}

.person-card .copy-email {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 0 18px !important;
  min-height: 42px !important;
  border: 1px solid var(--red) !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--red) !important;
  border-radius: 7px !important;
  line-height: 1 !important;
}

.person-card .copy-email:focus,
.person-card .copy-email:focus-visible,
.person-card .copy-email:hover {
  outline: 0 !important;
  box-shadow: none !important;
}


/* v28: narrow "Написать" buttons to the text width only */
.person-card .copy-email {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: fit-content !important;
  flex: 0 0 auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.person-card > p:last-child {
  width: auto !important;
  display: block !important;
}


/* v29: exact tight width for "Написать" buttons */
.person-card .copy-email {
  display: inline-flex !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
  box-sizing: content-box !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  white-space: nowrap !important;
}


/* v30: make all three "Написать" buttons the same narrow width, only around the label */
.person-card > p:last-child {
  display: block !important;
  text-align: center !important;
}

.person-card .copy-email {
  display: inline-block !important;
  width: auto !important;
  min-width: unset !important;
  max-width: none !important;
  flex: none !important;
  align-self: auto !important;
  padding: 8px 10px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  border: 1px solid var(--red) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  outline: none !important;
  background: #fff !important;
  color: var(--red) !important;
}
