:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #606773;
  --line: rgba(23, 25, 31, 0.14);
  --paper: #f6f4ee;
  --paper-strong: #fffdf8;
  --charcoal: #20242c;
  --steel: #536d84;
  --green: #496f5d;
  --amber: #b37a28;
  --wine: #8b4052;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 25, 31, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 25, 31, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf6 0, var(--paper) 46%, #eceff1 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

a {
  color: inherit;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(32, 36, 44, 0.08);
  color: #323842;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  min-height: 74svh;
  padding: 24px 32px 70px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.contact-link,
.launch-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
}

.contact-link {
  min-height: 38px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero__content {
  width: min(1180px, 100%);
  margin: auto auto 0;
  padding-top: 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 1080px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  font-weight: 400;
  line-height: 0.95;
}

.hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #3f4650;
  font-size: 22px;
  line-height: 1.45;
}

.portfolio {
  padding: 30px 32px 84px;
}

.section-heading {
  width: min(1400px, 100%);
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.products-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 620px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 300px 1fr;
  gap: 18px;
  border: 1px solid rgba(23, 25, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 28px 80px rgba(32, 36, 44, 0.12);
  animation: card-rise 520ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:nth-child(2) {
  animation-delay: 70ms;
}

.product-card:nth-child(3) {
  animation-delay: 140ms;
}

.product-card:nth-child(4) {
  animation-delay: 210ms;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 90px rgba(32, 36, 44, 0.18);
}

.product-card__header {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.product-card__category {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.launch-link {
  min-height: 40px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.launch-link:hover {
  transform: translate(2px, -2px);
  background: #0e1116;
}

.preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  isolation: isolate;
}

.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}

.preview::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px;
  height: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transform-origin: left;
  animation: progress-line 2600ms ease-in-out infinite;
}

.preview--request {
  background: linear-gradient(140deg, #2b3441, var(--steel) 55%, #d1d8dc);
}

.preview--nomenclature {
  background: linear-gradient(140deg, #26342e, var(--green) 56%, #d9dfcf);
}

.preview--drawing {
  background: linear-gradient(140deg, #243040, #476f93 55%, #dbe5e8);
}

.preview--docs {
  background: linear-gradient(140deg, #3a2630, var(--wine) 55%, #e5d9dc);
}

.preview__message,
.preview__workcard,
.preview__result,
.preview__matches,
.preview__answer,
.preview__doc-list,
.preview__question,
.preview__search,
.preview__sources {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(15, 18, 23, 0.38);
  box-shadow: 0 18px 44px rgba(15, 18, 23, 0.22);
  backdrop-filter: blur(10px);
}

.preview__message,
.preview__workcard,
.preview__matches,
.preview__answer,
.preview__doc-list {
  display: grid;
  gap: 8px;
}

.preview__message {
  top: 30px;
  left: 22px;
  width: 58%;
  padding: 14px;
  font-size: 13px;
}

.preview__route {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 138px;
  height: 2px;
  background: rgba(255, 255, 255, 0.64);
}

.preview__route::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.78);
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  transform: rotate(45deg);
}

.preview__workcard {
  right: 22px;
  bottom: 48px;
  width: 66%;
  padding: 16px;
  font-size: 13px;
}

.preview__search {
  top: 24px;
  left: 22px;
  right: 22px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
}

.preview__result {
  left: 22px;
  right: 42px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.preview__result--primary {
  top: 92px;
}

.preview__result:not(.preview__result--primary) {
  top: 150px;
}

.preview__sources {
  left: 22px;
  right: 22px;
  bottom: 52px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview__sources span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.preview__blueprint {
  position: absolute;
  top: 28px;
  left: 24px;
  width: 52%;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}

.preview__blueprint span {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.74);
}

.preview__blueprint span:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 32px;
  top: 34px;
  border-radius: 50%;
}

.preview__blueprint span:nth-child(2) {
  width: 92px;
  height: 38px;
  right: 22px;
  top: 92px;
}

.preview__blueprint span:nth-child(3) {
  width: 120px;
  left: 44px;
  bottom: 32px;
}

.preview__matches {
  right: 18px;
  bottom: 46px;
  width: 62%;
  padding: 15px;
  font-size: 12px;
}

.preview__question {
  top: 24px;
  left: 22px;
  right: 54px;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 800;
}

.preview__answer {
  top: 94px;
  left: 42px;
  right: 22px;
  padding: 15px;
  font-size: 13px;
}

.preview__doc-list {
  left: 22px;
  right: 22px;
  bottom: 48px;
  padding: 14px;
  font-size: 12px;
}

.product-card__body {
  display: grid;
  align-content: end;
  gap: 16px;
}

.product-card__body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.product-card__value {
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 36, 44, 0.07);
  color: #3e4550;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.acceptance-note {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto 80px;
  padding: 30px 0 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.acceptance-note h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.acceptance-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progress-line {
  0%,
  100% {
    transform: scaleX(0.28);
    opacity: 0.55;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.92;
  }
}

@media (max-width: 1240px) {
  h1 {
    font-size: 74px;
  }

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

  .product-card {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 18px 16px 46px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__content {
    padding-top: 58px;
  }

  h1 {
    font-size: 48px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .portfolio {
    padding: 12px 16px 56px;
  }

  .section-heading,
  .acceptance-note {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .product-card {
    min-height: 0;
    grid-template-rows: auto 270px auto;
  }

  .product-card__body h3 {
    font-size: 30px;
  }

  .acceptance-note {
    width: calc(100% - 32px);
    margin-bottom: 52px;
  }
}
