:root {
  --paper: #f5f6f3;
  --white: #ffffff;
  --ink: #17181a;
  --graphite: #5b5d57;
  --signal: #ff4e1f;
  --dark: #202124;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.page {
  width: min(100%, 1540px);
  height: 100svh;
  min-height: 610px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 42px) clamp(24px, 5vw, 76px) 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  position: relative;
  z-index: 3;
  min-height: 68px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo { display: block; width: 92px; height: auto; }

.header p {
  margin: 0;
  justify-self: center;
  color: var(--graphite);
  font-size: 14px;
}

.header button {
  padding: 7px 0 6px;
  border: 0;
  border-bottom: 3px solid var(--signal);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(18px, 4vh, 42px);
}

.offer {
  position: relative;
  z-index: 2;
  max-width: 1060px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
}

h1 {
  max-width: 1060px;
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .98;
}

h1 span {
  position: relative;
  display: inline-block;
}

h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 1%;
  right: -2%;
  bottom: -.08em;
  height: .1em;
  border-radius: 999px;
  background: var(--signal);
  transform: rotate(-1deg);
}

.lead {
  max-width: 900px;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.42;
}

.note {
  margin: 8px 0 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.45;
}

.action-zone {
  position: relative;
  align-self: stretch;
  min-height: 0;
  overflow: visible;
}

.machine {
  position: absolute;
  top: 51%;
  left: 50%;
  width: clamp(650px, 80vw, 1040px);
  aspect-ratio: 3 / 2;
  transform: translate(-51.5%, -50%);
}

.machine-image {
  position: absolute;
  inset: 0;
  background: url("assets/ai-agents-build-form.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 78% 83% at 51% 49%, #000 59%, transparent 99%);
  mask-image: radial-gradient(ellipse 78% 83% at 51% 49%, #000 59%, transparent 99%);
  pointer-events: none;
}

.lead-form {
  position: absolute;
  z-index: 1;
  top: 15.2%;
  left: 23.7%;
  width: 55.8%;
  height: 47.4%;
  padding: clamp(12px, 1.45vw, 22px) clamp(16px, 1.7vw, 26px);
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.lead-form::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid var(--signal);
  border-radius: 8px;
  opacity: 0;
  transform: scale(.98);
  pointer-events: none;
}

.lead-form.is-called::after {
  animation: call-form 850ms cubic-bezier(.2,.8,.2,1);
}

.form-heading { margin-bottom: clamp(3px, .55vw, 8px); }
.form-heading p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.form-heading span {
  display: block;
  margin-top: 4px;
  color: var(--graphite);
  font-size: clamp(12px, .95vw, 14px);
  line-height: 1.3;
}

.fields {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(3, minmax(25px, 1fr));
}

.lead-form label {
  display: grid;
  grid-template-columns: clamp(60px, 5vw, 72px) 1fr;
  align-items: center;
  min-height: clamp(25px, 3.2vw, 40px);
  border-bottom: 1px solid rgba(22,23,26,.18);
}

.lead-form label span {
  color: var(--graphite);
  font-size: clamp(8px, .65vw, 10px);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lead-form input {
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(11px, .95vw, 14px);
}

.lead-form label:focus-within { border-bottom-color: var(--signal); }
.lead-form input::placeholder { color: rgba(22,23,26,.42); }

.lead-form .consent {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 0;
  margin-top: 5px;
  border: 0;
  cursor: pointer;
}

.lead-form .consent input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.lead-form .consent span {
  color: var(--graphite);
  font-size: clamp(7px, .55vw, 9px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.lead-form .consent a,
footer a,
.cookie-banner a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.submit {
  flex: 0 0 auto;
  width: 100%;
  min-height: clamp(32px, 3.8vw, 48px);
  margin-top: clamp(5px, .8vw, 12px);
  padding: 4px 5px 4px clamp(10px, 1.2vw, 18px);
  border: 0;
  border-radius: 9px;
  background: var(--signal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1);
}

.submit i {
  width: clamp(25px, 2.8vw, 36px);
  height: clamp(25px, 2.8vw, 36px);
  border-radius: 50%;
  background: rgba(22,23,26,.1);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: clamp(13px, 1.4vw, 18px);
  transition: transform 350ms cubic-bezier(.2,.8,.2,1);
}

.submit:hover { transform: translateY(-2px); }
.submit:hover i { transform: translateX(3px); }
.submit:active { transform: scale(.985); }
.submit:focus-visible, .header button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.form-status {
  flex: 0 0 auto;
  display: block;
  margin-top: 3px;
  color: rgba(22,23,26,.5);
  font-size: clamp(7px, .55vw, 9px);
  line-height: 1.2;
}

@keyframes call-form {
  0% { opacity: 0; transform: scale(.98); }
  28% { opacity: 1; transform: scale(1); }
  72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.025); }
}

footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(22,23,26,.12);
  color: var(--graphite);
  font-size: 10px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 16px;
}

footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

[hidden] { display: none !important; }

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  left: 22px;
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.cookie-banner strong { font-family: "Onest", sans-serif; font-size: 17px; }
.cookie-banner p { margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button,
.cookie-save {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-secondary { background: transparent; color: var(--white); }
.cookie-primary,
.cookie-save { border-color: var(--signal); background: var(--signal); color: var(--white); }

.cookie-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.cookie-dialog::backdrop { background: rgba(18,19,20,.56); }
.cookie-dialog form { position: relative; padding: 28px; }
.cookie-dialog h2 { margin: 0; font-family: "Onest", sans-serif; font-size: 28px; letter-spacing: -.03em; }
.cookie-dialog > form > p { margin: 8px 0 20px; color: var(--graphite); font-size: 14px; }
.cookie-dialog label { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(22,23,26,.12); }
.cookie-dialog label span { display: grid; gap: 4px; }
.cookie-dialog label small { color: var(--graphite); line-height: 1.35; }
.cookie-dialog input { width: 18px; height: 18px; accent-color: var(--signal); }
.cookie-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--graphite); font-size: 28px; cursor: pointer; }
.cookie-save { width: 100%; margin-top: 8px; }

@media (max-width: 920px) {
  .page { padding-inline: 28px; }
  .hero { grid-template-rows: auto minmax(0, 1fr); padding-top: 20px; }
  h1 { max-width: 760px; font-size: clamp(43px, 6.1vw, 56px); }
  .lead { max-width: 760px; }
  .machine { width: min(730px, 92vw); transform: translate(-51.5%, -50%); }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .page { height: auto; min-height: 100svh; padding: 16px; }
  .header { grid-template-columns: 90px 1fr; min-height: 54px; }
  .header p { display: none; }
  .header button { justify-self: end; font-size: 13px; }
  .logo { width: 78px; }
  .hero { display: block; padding: 34px 0 24px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  .lead { margin-top: 20px; font-size: 17px; }
  .note { font-size: 13px; }
  .action-zone { height: 390px; margin-top: 12px; }
  .machine { width: 610px; }
  footer { flex-direction: column; }
  footer nav { justify-content: flex-start; }
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: auto; grid-template-columns: 1fr; gap: 14px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .page { padding-top: 10px; padding-bottom: 8px; }
  .header { min-height: 50px; }
  .logo { width: 78px; }
  .hero { padding-top: 9px; }
  .eyebrow { margin-bottom: 7px; font-size: 9px; }
  h1 { max-width: 780px; font-size: clamp(40px, 4.6vw, 58px); }
  .lead { max-width: 800px; margin-top: 9px; font-size: 16px; line-height: 1.36; }
  .note { margin-top: 5px; font-size: 13px; }
  .machine { width: min(730px, 90vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
