:root {
  --ink: #18201f;
  --muted: #5b6661;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #dce2dc;
  --teal: #087568;
  --teal-dark: #064f49;
  --red: #ad343e;
  --gold: #d19a2a;
  --steel: #566b73;
  --shadow: 0 24px 70px rgba(24, 32, 31, 0.14);
  --header-h: 76px;
  --hero-bg: url("assets/novopol-forma-1-full.jpg");
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  font-size: 1rem;
}

input[type="file"] {
  cursor: pointer;
}

.sr-only,
.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #ffffff;
  background: rgba(14, 21, 20, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 248, 244, 0.94);
  box-shadow: 0 10px 30px rgba(24, 32, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: currentColor;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 76px) clamp(20px, 5vw, 64px) 38px;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 18, 17, 0.92) 0%, rgba(12, 18, 17, 0.74) 42%, rgba(12, 18, 17, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 18, 17, 0.75), rgba(12, 18, 17, 0.05) 45%),
    var(--hero-bg) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  background: linear-gradient(0deg, rgba(12, 18, 17, 0.7), transparent);
}

.hero-content {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(280px, 360px);
  gap: clamp(30px, 7vw, 92px);
  align-items: end;
}

.hero-inner {
  width: 100%;
  max-width: 840px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7be0d3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 6.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 4.2rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-copy {
  width: min(100%, 690px);
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(8, 117, 104, 0.26);
}

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

.button-ghost {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.process-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(17, 24, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.process-panel::before {
  content: "";
  position: absolute;
  inset: 34px auto 34px 37px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #7be0d3 18%, var(--gold) 72%, transparent);
}

.process-panel::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 34px;
  width: 14px;
  height: 14px;
  background: #7be0d3;
  box-shadow: 0 0 22px rgba(123, 224, 211, 0.95);
  animation: tracePulse 4.8s ease-in-out infinite;
}

.process-node {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 14px 0 14px 6px;
}

.process-node span {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 20px;
  background: var(--ink);
  border: 1px solid rgba(123, 224, 211, 0.8);
  color: #7be0d3;
  font-size: 0.62rem;
  font-weight: 800;
}

.process-node strong {
  align-self: end;
  font-size: 0.98rem;
  line-height: 1.2;
}

.process-node small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  line-height: 1.35;
}

@keyframes tracePulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(245px);
  }
}

.hero-proof {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.hero-proof div {
  min-height: 104px;
  padding: 22px;
  background: rgba(17, 24, 23, 0.58);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  margin-bottom: 4px;
  font-size: 1.55rem;
  line-height: 1;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.35;
}

.intro-band {
  padding: 28px 0;
  background: var(--ink);
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.section {
  padding: clamp(76px, 10vw, 136px) 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.capability-card {
  min-height: 270px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--red);
  font-weight: 850;
}

.capability-card p {
  color: var(--muted);
}

.work-section {
  background: #ecf2ef;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-item {
  padding: 0 0 24px 28px;
  border-left: 3px solid var(--gold);
}

.work-item:not(:last-child) {
  border-bottom: 1px solid rgba(86, 107, 115, 0.18);
}

.work-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.visual-stack {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.visual-stack figure {
  margin: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-stack figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.approach-section {
  background: var(--surface);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 94px);
}

.approach-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(46px, 8vw, 90px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.testimonial-card {
  padding: clamp(22px, 3vw, 32px);
  background: #f7f8f4;
  border-left: 3px solid var(--teal);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.35;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  margin-top: 28px;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(8, 117, 104, 0.1), transparent 38%),
    var(--ink);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.contact-copy .eyebrow {
  color: #7be0d3;
}

.contact-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contact-methods a,
.contact-methods span {
  width: fit-content;
  color: rgba(255, 255, 255, 0.9);
}

.contact-methods a {
  text-decoration-color: rgba(123, 224, 211, 0.45);
  text-underline-offset: 5px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
}

.contact-form input[type="file"] {
  padding: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(8, 117, 104, 0.18);
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
  border: 0;
}

.site-footer {
  padding: 28px 0;
  background: #101615;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-underline-offset: 5px;
}

.thanks-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(12, 18, 17, 0.92), rgba(12, 18, 17, 0.54)),
    url("assets/novopol-forma-1-full.jpg") center / cover no-repeat;
  color: #ffffff;
}

.thanks {
  min-height: 100svh;
  display: grid;
  align-items: center;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0;
}

.thanks p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.thanks a:not(.button) {
  color: #7be0d3;
  text-underline-offset: 5px;
}

@media (max-width: 1180px) and (min-width: 921px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 46px);
    padding-bottom: 30px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 40px;
  }

  h1 {
    font-size: 4.9rem;
  }

  h2 {
    font-size: 3.45rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  .process-panel {
    padding: 16px;
  }

  .process-node {
    padding-block: 8px;
  }

  .hero-proof {
    width: min(760px, 100%);
    margin-top: 24px;
  }

  .hero-proof div {
    min-height: 86px;
    padding: 16px;
  }

  .capability-card {
    min-height: 250px;
  }
}

@media (max-width: 920px) {
  .site-header {
    min-height: 70px;
    color: var(--ink);
    background: rgba(247, 248, 244, 0.96);
  }

  .nav-toggle {
    display: block;
    min-width: 48px;
    min-height: 48px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 10px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 52px) clamp(22px, 5vw, 40px) 32px;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(12, 18, 17, 0.9), rgba(12, 18, 17, 0.54)),
      linear-gradient(0deg, rgba(12, 18, 17, 0.78), transparent 55%),
      var(--hero-bg) center / cover no-repeat;
  }

  .hero-proof,
  .hero-content,
  .intro-grid,
  .section-head,
  .work-layout,
  .approach-grid,
  .testimonials,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.45rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-copy {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: 1.08rem;
  }

  .hero-content {
    gap: 26px;
  }

  .process-panel {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
  }

  .process-panel::before,
  .process-panel::after {
    display: none;
  }

  .process-node {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
  }

  .process-node span {
    width: 24px;
    height: 24px;
    margin-left: 0;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
  }

  .hero-proof div {
    min-height: 88px;
    padding: 16px;
  }

  .hero-proof span {
    overflow-wrap: anywhere;
  }

  .tag-list {
    justify-content: flex-start;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    gap: 22px;
    margin-bottom: 36px;
  }

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

  .visual-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 42px) 16px 28px;
  }

  h1 {
    font-size: 3.15rem;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero .eyebrow {
    max-width: 28ch;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }

  .process-panel {
    margin-top: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .process-node {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
    background: rgba(17, 24, 23, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .process-node strong {
    font-size: 0.88rem;
  }

  .process-node small {
    font-size: 0.72rem;
  }

  .hero-proof div {
    min-height: auto;
    padding: 11px 9px;
  }

  .hero-proof strong {
    font-size: 1.05rem;
  }

  .hero-proof span {
    font-size: 0.7rem;
  }

  .button {
    width: 100%;
  }

  .capability-grid,
  .visual-stack,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: auto;
    padding: 22px;
  }

  .card-index {
    margin-bottom: 26px;
  }

  .work-item {
    padding-left: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .intro-band {
    padding: 22px 0;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list li {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .testimonial-card p {
    font-size: 1.02rem;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 46px;
  }

  .contact-form textarea {
    min-height: 150px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.05rem;
  }
}

@media (max-width: 920px) and (orientation: landscape) and (max-height: 560px) {
  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .process-panel,
  .hero-proof {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .process-panel::after {
    animation: none;
  }
}
