/* Insight Technologies - one-page site */

:root {
  --red: #b3262b;
  --red2: #e0484d;
  --navy: #14213d;
  --navy2: #1f3260;
  --ink: #1c2333;
  --text: #3d4557;
  --mut: #4a5263;
  --bg: #f6f7f9;
  --line: #e3e6eb;
  --blue: #e9eef5;
  --blue2: #dde5ef;
  --head: "Space Grotesk", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.7 "DM Sans", system-ui, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); }
a { color: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
section { padding: 80px 0; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.w { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.kick { color: var(--red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.lead { color: var(--text); font-size: 18px; max-width: 640px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.btn {
  display: inline-flex; gap: 8px; align-items: center; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 500;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px #b3262b99; transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn.o { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.ic {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 10px 20px -10px #b3262baa;
}

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 9; background: #ffffffeb; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .w { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo img { display: block; width: 190px; max-width: 48vw; height: auto; }
.actions { display: flex; gap: 8px; }
nav.d a { padding: 8px 12px; border-radius: 999px; color: var(--mut); font-weight: 500; text-decoration: none; }
nav.d a:hover { color: var(--ink); }
nav.d a.on { color: var(--red); background: #b3262b14; }
.burger { display: none; width: 46px; height: 46px; padding: 0; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
nav.m {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
  max-height: calc(100vh - 73px); overflow-y: auto; padding: 8px 20px 16px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px #14213d55;
}
nav.m.open { display: flex; }
nav.m a { padding: 12px 0; font: 700 20px var(--head); text-decoration: none; border-bottom: 1px solid var(--line); }
nav.m a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip; padding: 72px 0 96px;
  background: radial-gradient(circle at 78% 40%, #b3262b26, transparent 38%), linear-gradient(180deg, #eef2f7, var(--blue));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#14213d0d 1px, transparent 1px), linear-gradient(90deg, #14213d0d 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero .w { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(34px, 4.6vw, 54px); text-wrap: balance; }
.hero h1 span { display: block; color: var(--red); }
.hero p { font-size: 18px; color: var(--text); }
.tag {
  display: inline-flex; gap: 8px; align-items: center; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--mut); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pic { position: relative; }
.pic img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -25px #14213d66; }
.float {
  position: absolute; left: -18px; bottom: -22px; display: flex; gap: 12px; align-items: center; padding: 12px 18px;
  background: #fff; border-radius: 18px; box-shadow: 0 16px 40px -14px #14213d55;
}
.float .ic { margin: 0; }
.float small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.float a { font: 700 18px var(--head); color: var(--red); text-decoration: none; }
.float a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole badge is clickable */

/* ---------- Services ---------- */
#services { background: var(--blue2); }
#services::before, #credentials::before { content: ""; display: block; width: 64px; height: 4px; margin: -80px auto 76px; border-radius: 4px; background: var(--red); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); margin-top: 36px; }
.card {
  display: flex; flex-direction: column; height: 100%; padding: 28px; background: #fff; border: 1px solid #d4dbe6; border-radius: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px #14213d55; border-color: #b3262b66; }
.card h3 { font-size: 20px; }
.card p { margin: 10px 0 0; color: var(--text); }

/* ---------- About ---------- */
.aboutx { position: relative; overflow: hidden; overflow: clip; color: #e4e8f0; background: linear-gradient(160deg, var(--navy), #0f1a33); }
.aboutx::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px; border: 2px solid #b3262b55; border-radius: 50%; pointer-events: none; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.aboutx h2 { color: #fff; }
.aboutx .lead { margin-top: 16px; color: #d3d9e4; }
.aboutx .kick, .contact .kick { color: #ff8a8e; }
.hl { padding: 0 4px; background: linear-gradient(transparent 62%, #b3262b88 62%); }
.apic { position: relative; }
.apic img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: 0 30px 60px -25px #14213d66; }
.stamp {
  position: absolute; right: -10px; bottom: 28px; display: flex; gap: 12px; align-items: center; padding: 14px 18px;
  color: #fff; background: var(--red); border-radius: 20px; box-shadow: 0 16px 36px -14px #14213d99; transform: rotate(-3deg);
}
.stamp b { font: 700 30px var(--head); }
.stamp span { font-size: 13px; line-height: 1.3; }
.benefits { list-style: none; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: #ffffff0d; border: 1px solid #ffffff1f; border-left: 3px solid var(--red2); border-radius: 16px; }
.benefits .ic { flex: none; width: 44px; height: 44px; margin: 0; }
.benefits .ic svg { width: 20px; height: 20px; }
.benefits h3 { font-size: 18px; color: #fff; }
.benefits p { margin: 4px 0 0; color: #cfd6e2; }

/* ---------- FAQ ---------- */
.faq { background: var(--blue); }
.faq .w { max-width: 820px; }
.faq details { margin-top: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: #b3262b66; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font: 700 18px var(--head); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; border-radius: 16px; }
.chev { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--red); background: #b3262b14; transition: transform .25s, background .25s, color .25s; }
.chev svg { width: 18px; height: 18px; }
.faq details[open] .chev { transform: rotate(180deg); color: #fff; background: var(--red); }
.faq .ans { padding: 0 22px 20px; color: var(--text); font-size: 16px; }
.faq .ans p { margin: 0; }
.faq .ans a { color: var(--red); font-weight: 500; }

/* ---------- Credentials (currently commented out in index.html) ---------- */
#credentials { background: #f4f3f1; text-align: center; }
.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; }
.badges img { height: 70px; width: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; filter: grayscale(.3); transition: filter .2s; }
.badges img:hover { filter: none; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; overflow: clip; color: #fff; background: radial-gradient(circle at 0% 100%, #b3262b2e, transparent 45%), linear-gradient(135deg, #101b33, var(--navy2)); }
.contact::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: #b3262b33; }
.contact .w { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact .w > * { min-width: 0; }
.contact .lead { color: #d6dbe5; }
.ci { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; color: #e6e9ef; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.ci .ic { flex: none; width: 44px; height: 44px; margin: 0; }
.ci .ic svg { width: 20px; height: 20px; }
.ci b { display: block; color: #fff; font-size: 15px; letter-spacing: .02em; }
.contact .ci:focus-visible { outline-color: #ff8a8e; }

.panel { align-self: start; padding: 28px; color: var(--ink); background: #fff; border-top: 4px solid var(--red); border-radius: 24px; box-shadow: 0 30px 60px -30px #000a; }
.panel h3 { margin-bottom: 6px; font-size: 24px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-top: 14px; font-size: 15px; font-weight: 500; }
label .req { color: var(--red); }
label .opt { color: var(--mut); font-weight: 400; }
input, textarea {
  width: 100%; min-height: 48px; margin-top: 6px; padding: 12px 14px; font: inherit; color: inherit;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  background: var(--bg); border: 1px solid #c9d0db; border-radius: 12px;
}
textarea { display: block; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--red); background: #fff; }
[aria-invalid=true] { border-color: var(--red); background: #fdf3f3; }
.err { display: block; margin-top: 4px; color: #a31f24; font-size: 14px; }
.err:empty { display: none; }
.note { margin: 0; color: var(--mut); font-size: 14px; }
.panel .row { margin-top: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.status.bad { color: #8f1c20; background: #fdecec; }
.status.info { color: var(--ink); background: var(--blue); }

.done { padding: 24px 0; text-align: center; }
.done:focus { outline: none; }
.done .tick { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; color: #1d5e33; background: #e8f5ec; }
.done .tick svg { width: 36px; height: 36px; }
.done p { margin: 10px auto 24px; max-width: 400px; color: var(--text); }

/* ---------- Footer ---------- */
footer { padding: 20px 0; color: #c9cfda; background: var(--navy); border-top: 1px solid #ffffff22; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  #services::before, #credentials::before { margin: -64px auto 56px; }
  .hero { padding: 48px 0 80px; }
  .hero .w, .about, .contact .w { grid-template-columns: minmax(0, 1fr); }
  .hero h1 span { display: inline; }
  .float { left: 12px; }
  nav.d, .hb { display: none; }
  .burger { display: grid; place-items: center; }
}
@media (min-width: 901px) { nav.m.open { display: none; } }
@media (max-width: 600px) { .stamp { right: 8px; } }
@media (max-width: 520px) {
  .f2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
