:root {
  --blue: #0a3eb1;
  --blue-dark: #062b82;
  --yellow: #f5b700;
  --yellow-soft: #fff9e8;
  --green: #2f9e44;
  --ink: #171b24;
  --muted: #5f6673;
  --line: #e7e9ee;
  --bg: #fffdf7;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(10, 62, 177, 0.07);
  --radius: 8px;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--blue); font-weight: 850; text-decoration: none; }
a:hover { color: var(--blue-dark); }

button, input, select, textarea { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(10, 62, 177, 0.06);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: auto;
  padding: 14px 24px;
}

.logo img {
  display: block;
  height: 66px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.nav a.is-active {
  color: var(--blue);
}

.nav a.is-active::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--yellow);
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 42px 24px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #fff 0%, #fff 55%, #f4f8ff 55%, #fff8df 100%);
}

.hero::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #ffe08a;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--yellow-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

h1, h2, h3 { line-height: 1.12; }

.hero h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 64px);
}

.lead {
  max-width: 740px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #082f91, #0f5ed7);
  color: #fff;
  box-shadow: 0 14px 24px rgba(10, 62, 177, 0.2);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-card,
.card,
.article,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-card-head {
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.hero-card-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.hero-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 760;
}

.field textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(10, 62, 177, 0.14);
  border-color: var(--blue);
}

.form-error {
  display: none;
  margin: 0;
  color: #d8212a;
  font-size: 13px;
  font-weight: 900;
}

.form-error.is-visible { display: block; }

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.proof li {
  border: 1px solid #ffe08a;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
}

.card h2,
.card h3 {
  margin-top: 10px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.article {
  padding: 34px;
}

.article h1 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.article h2 {
  margin-top: 34px;
  color: var(--blue);
}

.note {
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #eef6ff;
}

.side {
  position: sticky;
  top: 110px;
}

.side-card {
  padding: 18px;
}

.side-card + .side-card {
  margin-top: 16px;
}

.list a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--ink);
}

.footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer .wrap {
  padding-top: 26px;
  padding-bottom: 26px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .top-inner { flex-direction: column; }
  .nav { justify-content: center; }
  .hero-layout,
  .grid,
  .content,
  .field-row { grid-template-columns: 1fr; }
  .side { position: static; }
  .article { padding: 22px; }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  .logo img { height: 52px; }
  .wrap { padding: 30px 18px; }
  .actions .btn { width: 100%; }
}
