/* ============================================================
   CLIENT EDITS (theme 1.0.2)
   Loaded on every page after the page's own stylesheet, so each
   rule here wins over the same rule there. Hover = colour only.
   ============================================================ */

/* ---------- Main: "Problems" lists get red crosses ---------- */
.cols--bad li::before{
  width:21px;height:21px;border-radius:8px;
  background:#ffeceb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23ef4444' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 12px no-repeat}

/* ---------- Main: service cards are brighter and bluer ---------- */
.svc:nth-child(1){background:#151c36;border-color:#222c52}
.svc:nth-child(2){background:#1a2347;border-color:#27326a}
.svc:nth-child(3){background:#202b5a;border-color:#2c397c}
.svc__ico{background:#2f5bff3d;color:#a9baff}
.svc:nth-child(3) .svc__ico{background:#2f5bff52}
.svc__num{color:#8592c2}
.svc__text{color:#b7c0e0}

/* ---------- Services: "Why us" cards stand out from the dark panel ---------- */
.wc{background:#172043;border-color:#26336b}
.wc__ico{background:#26336b;color:#a9baff}
.wc p{color:#b7c0e0}
@media (hover:hover){
  .wc:not(.wc--img):hover{border-color:#3a4a8f}
}

/* ---------- Services: green ticks ---------- */
.srv__list svg{background:#12b76a}

/* ---------- "View Case Studies": a clear outlined button ---------- */
.btn--ghost{border-color:var(--blue);background:#f3f6ff}
@media (hover:hover){
  .btn--ghost:hover{border-color:var(--blue);background:#e4eaff}
}
.btn--ghost:active{background:#d7e1ff}

/* ============================================================
   LEAD FORM — one column, choices as drop-down lists
   (the blue card on Main / Contact / articles and the pop-up)
   ============================================================ */
.form .form__grid{grid-template-columns:minmax(0,1fr);gap:28px}
.form .form__area{margin-top:0}
.form .field textarea{height:72px}

.field select{
  display:block;width:100%;height:26px;margin:0;padding:0 28px 0 2px;
  border:0;border-radius:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") right 2px center / 12px no-repeat;
  -webkit-appearance:none;appearance:none;
  font:inherit;font-size:14px;line-height:26px;color:#fff;cursor:pointer}
.field select:focus{outline:none}
/* nothing chosen yet — reads like a placeholder */
.field select:has(option[value=""]:checked){color:#ffffffb8}
.field select option{color:#0b0f19;background:#fff}

/* a required field left empty after the first try */
.form .field:has(:user-invalid){border-color:#ffc9c9}

/* ============================================================
   ARTICLE — the blue contact card, as on Main and Contact
   ============================================================ */
.hrs-article .card{
  display:grid;
  grid-template-columns:minmax(0,400px) minmax(0,1fr);
  gap:56px;
  padding:60px;
  background:var(--blue);color:#fff;
  border-radius:44px;
  box-shadow:0 56px 92px -64px #2f5bfff2}
.hrs-article .card__info{display:flex;flex-direction:column}
.hrs-article .card__title{
  font-size:clamp(28px,calc(17vw / 5),42px);line-height:calc(32 / 25);
  font-weight:700;letter-spacing:calc(-1em / 25)}
.hrs-article .card__lead{margin-top:20px;color:var(--on-blue)}
.hrs-article .card__lead + .card__lead{margin-top:24px}
.hrs-article .contacts{margin-top:32px;border-top:1px solid var(--rule-card)}
.hrs-article .contact{
  display:flex;align-items:center;gap:16px;
  min-height:80px;padding:12px 0;
  border-bottom:1px solid var(--rule-card)}
.hrs-article .contact__ico{
  display:flex;align-items:center;justify-content:center;flex:none;
  width:40px;height:40px;border-radius:50%;
  background:#ffffff29}
.hrs-article .contact__ico svg{width:18px;height:18px}
.hrs-article .contact__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.hrs-article .contact__label{
  font-size:12px;line-height:calc(5 / 4);font-weight:700;
  letter-spacing:1px;text-transform:uppercase;
  color:#ffffffb2}
.hrs-article .contact__value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;text-decoration:none}
.hrs-article .worldwide{
  display:flex;align-items:center;gap:12px;
  margin-top:auto;padding-top:32px;
  font-weight:600;color:#ffffffe6}
.hrs-article .worldwide svg{width:16px;height:16px;flex:none}

.hrs-article .form{display:flex;flex-direction:column}
.hrs-article .form > * + *{margin-top:32px}
.hrs-article .form__grid{display:grid}
.hrs-article .field{display:block;padding-bottom:8px;border-bottom:1px solid var(--rule-field);transition:border-color 180ms ease}
.hrs-article .field input,.hrs-article .field textarea{
  display:block;width:100%;
  font-size:14px;line-height:calc(12 / 7);color:#fff}
.hrs-article .field textarea{resize:none}
.hrs-article .field ::placeholder{color:#ffffffb8;opacity:1}
.hrs-article .field:focus-within{border-color:#fff}
.hrs-article .form__actions{
  display:flex;align-items:center;flex-wrap:wrap;gap:24px 40px;
  margin-top:40px}
.hrs-article .card .form-error{margin-top:0}
@media (hover:hover){
  .hrs-article .field:hover{border-color:#ffffffbf}
  .hrs-article .contact__value:hover{opacity:75%}
}
@media (max-width:1199px){
  .hrs-article .card{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:48px;padding:48px}
}
@media (max-width:899px){
  .hrs-article .card{grid-template-columns:minmax(0,1fr);padding:32px 24px;gap:40px;border-radius:28px}
  .hrs-article .worldwide{margin-top:0}
}

/* ============================================================
   CASE PAGE — four creatives, one wide screenshot, budget growth
   ============================================================ */
.shots--4{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.shots--4 .shot-card{max-width:none}

/* a single screenshot runs the full width and is shown whole */
.proof__shots--one{grid-template-columns:minmax(0,1fr)}
.proof__shots--one .proof__shot{aspect-ratio:auto}
.proof__shots--one .proof__shot img{height:auto}

/* how the daily budget grew, and the CPA against its limit */
.growth{display:flex;flex-wrap:wrap;align-items:stretch;gap:14px 32px;margin-top:26px}
.growth__path{display:flex;align-items:center;gap:14px;flex:1 1 560px;min-width:0}
.growth__cpa{display:flex;align-items:stretch;gap:14px;flex:0 1 400px;min-width:0}
.growth__step{flex:1 1 0;min-width:0;margin:0;padding:20px 22px;background:#14161f;border:1px solid #1e2130;border-radius:20px}
.growth__step b{display:block;font-size:28px;line-height:36px;font-weight:700;letter-spacing:calc(-1em / 25)}
.growth__step span{display:block;margin-top:2px;font-size:14px;line-height:20px;color:var(--grey)}
.growth__step--peak{border-color:#2f5bff99}
.growth__step--accent{background:var(--blue);border-color:var(--blue)}
.growth__step--accent span{color:#ffffffd1}
.growth__arrow{display:flex;flex:none;color:var(--blue)}
.growth__arrow svg{width:24px;height:24px}

@media (max-width:1199px){
  .shots--4{gap:16px}
  .growth__path,.growth__cpa{flex-basis:100%}
}
@media (max-width:899px){
  .shots--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .shots--4 .shot-card figcaption{margin-top:12px;font-size:14px;line-height:20px}
  .growth__path{flex-direction:column;align-items:stretch;gap:8px}
  .growth__arrow{justify-content:center;transform:rotate(90deg)}
  .growth__step{padding:16px 18px}
  .growth__step b{font-size:24px;line-height:32px}
}

/* ---------- Case: the Challenge picture ends level with the last point ----------
   The text column sets the height of the row; the picture fills what is left
   under the heading, so its bottom always meets the bottom of the last point. */
@media (min-width:1200px){
  .challenge{align-items:stretch}
  .challenge__side{display:flex;flex-direction:column;contain:size;min-height:480px}
  .challenge__media{flex:1 1 0;min-height:0;margin-top:40px;aspect-ratio:auto}
  .challenge__body .bullets{margin-top:64px}
}

/* ---------- Case: three "What We Built" cards sit in one row ---------- */
@media (min-width:1200px){
  .built__grid:has(> .built:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:900px) and (max-width:1199px){
  .built__grid > .built:nth-child(3):last-child{grid-column:1 / -1}
}

/* ============================================================
   CLIENT EDITS (theme 1.0.6)
   ============================================================ */

/* ---------- Main: industries strip — niches black, advantages blue ---------- */
.tag{color:var(--ink);border-color:#e3e8f5}
.tag--fill{color:var(--blue)}

/* ---------- Case Studies hero: whiter text, no small dot on the left ---------- */
.hrs-cases .hero-card{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 452 452'%3E%3Ccircle cx='226' cy='226' r='225' fill='none' stroke='%238fa5ff47' stroke-width='2'/%3E%3C/svg%3E") right -57px top -54px / 226px 226px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 560'%3E%3Ccircle cx='280' cy='280' r='279' fill='none' stroke='%238fa5ff47' stroke-width='2'/%3E%3C/svg%3E") left -59px bottom -175px / 280px 280px no-repeat,
    radial-gradient(ellipse 13% 38% at 90% 70%, #2f5bff29, #2f5bff00),
    radial-gradient(ellipse 23% 56% at 50% 3%, #2f5bff57, #2f5bff00),
    var(--ink)}
.hrs-cases .hero-card__text{color:#ffffffe0}
.hrs-cases .tags li{color:#fff;border-color:#343a52}
@media (max-width:899px){
  .hrs-cases .hero-card{background:radial-gradient(ellipse 13% 38% at 90% 70%, #2f5bff29, #2f5bff00),radial-gradient(ellipse 23% 56% at 50% 3%, #2f5bff57, #2f5bff00),var(--ink)}
}

/* ---------- Contact card: title, then the contacts straight away ---------- */
.card .card__title + .contacts{margin-top:40px}
.card .contact{min-height:96px;gap:18px}
.card .contact__ico{width:44px;height:44px}
.card .contact__value{font-size:18px;line-height:26px}
.card .worldwide{padding-top:40px}
@media (max-width:899px){
  .card .card__title + .contacts{margin-top:24px}
  .card .contact{min-height:80px}
  .card .contact__value{font-size:16px;line-height:24px}
  .card .worldwide{padding-top:24px}
}

/* ---------- Footer: the e-mail first, the legal links under it ---------- */
.foot__meta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.foot__meta .foot__mail{margin-left:0}
.foot__legal{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}

/* ---------- Pills elsewhere: black text, grey outline ---------- */
.chips span{color:var(--ink)}
.pill:not(.pill--dark){color:var(--ink)}
