.agency-contact,
.agency-cta,
.agency-footer {
  --agency-ink: #f7f8fc;
  --agency-muted: #a7afc0;
  --agency-line: rgba(255, 255, 255, 0.11);
  --agency-violet: #7557ff;
  --agency-violet-bright: #967cff;
  color: var(--agency-ink);
}

.agency-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 116px) 0;
  background:
    radial-gradient(circle at 6% 20%, rgba(117, 87, 255, 0.18), transparent 28%),
    radial-gradient(circle at 94% 80%, rgba(63, 111, 220, 0.13), transparent 26%),
    #080a10;
}

.agency-contact::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.agency-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.agency-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #bcaeff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.agency-kicker::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.agency-contact__intro h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.agency-contact__intro > p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--agency-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.agency-contact__points {
  display: grid;
  gap: 0;
  margin: 38px 0 30px;
  border-block: 1px solid var(--agency-line);
}

.agency-contact__points > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 17px 0;
  color: #b8bfce;
  border-bottom: 1px solid var(--agency-line);
}

.agency-contact__points > div:last-child { border-bottom: 0; }
.agency-contact__points svg { color: var(--agency-violet-bright); }
.agency-contact__points b { color: #fff; font-weight: 700; }

.agency-contact__mail,
.agency-footer__email {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.agency-contact__mail:hover,
.agency-footer__email:hover { color: #c5b9ff; }

.agency-contact__form-card {
  padding: clamp(26px, 4vw, 46px);
  background: rgba(18, 21, 31, .9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .42), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}

.agency-contact__form-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 18px;
  color: #7f8798;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--agency-line);
}

.agency-contact__form-head i { color: #9c87ff; font-style: normal; }
.agency-form { position: relative; display: grid; gap: 18px; }
.agency-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.agency-field { display: grid; gap: 8px; margin: 0; }
.agency-field > span:first-child { color: #dce0e8; font-size: 13px; font-weight: 700; }
.agency-field b { color: #a991ff; }
.agency-field em { color: #747d90; font-size: 11px; font-style: normal; font-weight: 500; }

.agency-field input,
.agency-field textarea,
.agency-field select {
  width: 100%;
  margin: 0;
  padding: 13px 15px;
  color: #f6f7fb;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  background: #0c0f17;
  border: 1px solid #292e3b;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.agency-field textarea { min-height: 126px; resize: vertical; }
.agency-field input::placeholder,
.agency-field textarea::placeholder { color: #646d7f; }
.agency-field input:focus,
.agency-field textarea:focus,
.agency-field select:focus { background: #10131d; border-color: #8066f4; box-shadow: 0 0 0 3px rgba(117,87,255,.14); }
.agency-field [aria-invalid="true"] { border-color: #dc7183; }
.agency-field small { color: #ef8fa0; font-size: 11px; }

.agency-select { position: relative; display: block; }
.agency-select select { appearance: none; padding-right: 42px; }
.agency-select option { color: #141722; background: #fff; }
.agency-select svg { position: absolute; top: 50%; right: 15px; color: #8d96a8; pointer-events: none; transform: translateY(-50%) rotate(90deg) !important; }

.agency-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.agency-form__error { margin: -3px 0 0; padding: 11px 13px; color: #ffabb8; font-size: 13px; line-height: 1.5; background: rgba(180,47,70,.12); border: 1px solid rgba(235,99,121,.25); border-radius: 9px; }

.agency-btn {
  display: inline-flex;
  min-height: 48px;
  padding: 0 21px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform .2s, background .2s, border-color .2s, opacity .2s;
}

.agency-btn:hover { transform: translateY(-2px); }
.agency-btn:disabled { cursor: wait; opacity: .58; transform: none; }
.agency-btn--light { color: #10121a; background: #fff; }
.agency-btn--light:hover { background: #eeeafd; }
.agency-btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.24); }
.agency-btn--whatsapp { color: #fff; background: rgba(17, 27, 31, .5); border-color: rgba(135,255,190,.42); }
.agency-btn--whatsapp:hover { background: rgba(28, 55, 43, .62); }
.agency-form__submit { justify-self: start; min-width: 180px; margin-top: 2px; }
.agency-form__privacy { margin: -7px 0 0; color: #687184; font-size: 11px; line-height: 1.5; }

.agency-form-success { display: flex; min-height: 460px; flex-direction: column; align-items: flex-start; justify-content: center; }
.agency-form-success__icon { display: grid; width: 58px; height: 58px; margin-bottom: 26px; place-items: center; color: #fff; background: linear-gradient(145deg, #7659ff, #4d37bb); border-radius: 16px; box-shadow: 0 16px 34px rgba(89,60,210,.35); }
.agency-form-success h3 { margin: 0 0 13px; color: #fff; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; }
.agency-form-success p { max-width: 430px; margin: 0 0 27px; color: var(--agency-muted); line-height: 1.7; }

.agency-cta { padding: clamp(54px, 7vw, 92px) 0; background: #080a10; }
.agency-cta__panel { position: relative; min-height: 510px; overflow: hidden; padding: clamp(48px, 7vw, 92px); background: linear-gradient(125deg, #392178 0%, #6038c7 52%, #7655ea 100%); border: 1px solid rgba(255,255,255,.18); border-radius: 32px; box-shadow: 0 38px 100px rgba(29, 13, 70, .45); }
.agency-cta__panel::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 38%), radial-gradient(circle at 80% 20%, rgba(255,255,255,.16), transparent 30%); }
.agency-cta__copy { position: relative; z-index: 3; max-width: 680px; }
.agency-kicker--violet { color: #ddd5ff; }
.agency-cta h2 { margin: 0; color: #fff; font-size: clamp(40px, 5.5vw, 72px); line-height: .99; letter-spacing: -.05em; }
.agency-cta__copy > p { max-width: 590px; margin: 26px 0 0; color: rgba(255,255,255,.73); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.agency-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.agency-cta__art { position: absolute; z-index: 2; right: -25px; bottom: -60px; width: 43%; height: 88%; transform: rotate(-7deg); }
.agency-cta__orb { position: absolute; right: 4%; bottom: 0; width: 330px; height: 330px; background: rgba(20,9,52,.3); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.agency-abstract-card { position: absolute; z-index: 2; background: rgba(18,13,39,.72); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; box-shadow: 0 28px 70px rgba(20,8,55,.34); backdrop-filter: blur(12px); }
.agency-abstract-card--main { right: 11%; bottom: 20%; display: grid; width: 260px; height: 180px; padding: 28px; gap: 16px; align-content: center; }
.agency-abstract-card--main span { display: block; height: 13px; background: linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.1)); border-radius: 9px; }
.agency-abstract-card--main span:nth-child(2) { width: 72%; }
.agency-abstract-card--main span:nth-child(3) { width: 44%; }
.agency-abstract-card--metric { top: 7%; right: 1%; display: flex; padding: 18px 22px; gap: 9px; align-items: center; color: #fff; font-size: 22px; font-weight: 850; }
.agency-abstract-card--metric i { width: 10px; height: 10px; background: #74f5b1; border-radius: 50%; box-shadow: 0 0 0 6px rgba(116,245,177,.12); }
.agency-abstract-card--flow { left: 3%; bottom: 10%; display: flex; padding: 18px; gap: 11px; }
.agency-abstract-card--flow b { width: 32px; height: 32px; background: #8d72ff; border: 5px solid rgba(255,255,255,.14); border-radius: 10px; }
.agency-abstract-card--flow b:nth-child(2) { background: #ef8dc2; }
.agency-abstract-card--flow b:nth-child(3) { background: #78d7ef; }

.agency-footer { padding: 72px 0 28px; background: #06070b; border-top: 1px solid rgba(255,255,255,.08); }
.agency-footer__top { display: grid; grid-template-columns: .9fr 1.6fr; gap: clamp(50px, 8vw, 130px); padding-bottom: 58px; }
.agency-footer__brand > a:first-child { display: inline-flex; }
.agency-footer__brand p { max-width: 360px; margin: 25px 0 22px; color: #8e96a8; font-size: 14px; line-height: 1.7; }
.agency-footer__email { color: #dce0e9; font-size: 14px; }
.agency-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.agency-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.agency-footer__column h3 { margin: 0 0 8px; color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.agency-footer__column a { color: #8e96a8; font-size: 14px; text-decoration: none; transition: color .2s; }
.agency-footer__column a:hover { color: #fff; }
.agency-footer__bottom { display: flex; padding-top: 25px; align-items: center; justify-content: space-between; color: #656d7d; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.agency-footer__bottom div { display: flex; gap: 22px; }
.agency-footer__bottom a { color: #7f8797; text-decoration: none; }
.agency-footer__bottom a:hover { color: #fff; }

@media (max-width: 1040px) {
  .agency-contact__grid { grid-template-columns: 1fr; }
  .agency-contact__intro { max-width: 780px; }
  .agency-cta__copy { max-width: 610px; }
  .agency-cta__art { right: -130px; opacity: .62; }
}

@media (max-width: 760px) {
  .agency-contact { padding: 78px 0; }
  .agency-contact__grid { gap: 42px; }
  .agency-contact__intro h2 { font-size: clamp(37px, 11vw, 52px); }
  .agency-contact__form-card { padding: 24px 18px; border-radius: 20px; }
  .agency-form__row { grid-template-columns: 1fr; }
  .agency-form__submit { width: 100%; }
  .agency-cta { padding: 42px 0; }
  .agency-cta__panel { min-height: 570px; padding: 42px 25px; border-radius: 24px; }
  .agency-cta h2 { font-size: clamp(38px, 12vw, 56px); }
  .agency-cta__art { right: -85px; bottom: -100px; width: 92%; height: 56%; opacity: .52; }
  .agency-cta__actions { align-items: stretch; flex-direction: column; }
  .agency-footer__top { grid-template-columns: 1fr; }
  .agency-footer__nav { grid-template-columns: 1fr 1fr; row-gap: 42px; }
  .agency-footer__bottom { gap: 15px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .agency-contact__points > div { align-items: start; }
  .agency-footer__nav { grid-template-columns: 1fr; }
  .agency-footer__bottom div { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .agency-btn { transition: none; }
  .agency-btn:hover { transform: none; }
}
