:root {
  --blue: #0056a5;
  --blue-dark: #003f7a;
  --blue-tint: #e8f0f9;
  --ink: #231f20;
  --muted: #5b5f66;
  --line: #dfe3e8;
  --orange: #e2711d;
  --orange-dark: #c45e12;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  /* Sticky footer: body fills the viewport, main grows to push the footer down */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand img { width: 52px; height: 52px; flex: none; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .01em;
  line-height: 1.1;
}
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}
.topbar__phone svg { width: 20px; height: 20px; fill: currentColor; }
.topbar__phone:hover { color: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 40%, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 56px 0 120px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffc596;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
  max-width: 16ch;
}
.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 1.05rem;
}
.perks li {
  position: relative;
  padding-left: 28px;
}
.perks li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 16px; height: 16px;
  background: var(--orange);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero__logo {
  width: 260px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.25));
}

/* ---------- Software picker ---------- */
.picker { margin-top: -80px; }
.picker__card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 38, 66, .14);
  padding: 28px;
}
.picker__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.picker h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
}
.picker__head p { margin: 0; color: var(--muted); }

.search {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
}
.search svg {
  position: absolute; left: 14px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  fill: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  font: inherit;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 86, 165, .15);
}

.software-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.software-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s;
}
.software-list a::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .15s;
}
.software-list a:hover,
.software-list a:focus-visible {
  border-color: var(--blue);
  background: var(--blue-tint);
  box-shadow: 0 6px 16px rgba(0, 86, 165, .12);
  transform: translateY(-2px);
  outline: none;
}
.software-list a:hover::after,
.software-list a:focus-visible::after { transform: translateX(3px) rotate(45deg); }

.no-results {
  margin: 8px 0 0;
  padding: 18px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  text-align: center;
}

/* ---------- Help strip ---------- */
.help { padding: 56px 0; }
.help__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.help h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
}
.help p { margin: 0; color: var(--muted); }
.help__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border: 1.5px solid var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c9cbcf;
  font-size: .9rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 36px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
  .picker__card { padding: 20px; }
  .search { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand__name { font-size: 1.15rem; }
  .brand img { width: 40px; height: 40px; }
  .topbar__phone { font-size: 1.1rem; }
  .topbar__phone svg { display: none; }
  .software-list { grid-template-columns: 1fr; }
  .help__actions, .btn { width: 100%; }
}

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