/* ==========================================================================
   Custom blocks: hero trust bar, calculator, comparison, guarantees, authors.
   Spacing follows an 8px scale; radii: 12px (controls), 16px (cards).
   ========================================================================== */

:root {
  --primary-red: #f10000;
  --text-main: #18191b;
  --text-muted: #6f767e;
  --accent-green: #007a4d;
  --accent-green-bg: #eafaf1;
  --surface-light: #f7f7f7;
  --surface-white: #ffffff;
  --border-light: rgba(0, 0, 0, 0.1);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --radius-control: 12px;
  --radius-card: 16px;
  --control-height: 48px;
  --font-heading: Montserrat, sans-serif;
  --font-body: Inter, sans-serif;
}

/* ---------- Site header: logo + login only ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: 960px;
  min-height: 64px;
  margin: 0 auto;
  padding: var(--space-1) var(--space-2);
}

.site-header-logo {
  display: inline-flex;
  align-items: center;
}

.site-header-logo img {
  display: block;
  height: 23px;
  width: auto;
}

.site-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-control);
  background: var(--surface-light);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.site-header-login:hover {
  background: #ebebeb;
}

@media (min-width: 1024px) {
  .site-header-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Shared ---------- */

.comparison-section,
.authors-showcase-section {
  padding: var(--space-6) 0;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-lead {
  max-width: 720px;
  margin: var(--space-1) auto 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 0, 0, 0.2);
  background: rgba(241, 0, 0, 0.08);
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-badge--green {
  border-color: rgba(0, 122, 77, 0.3);
  background: rgba(0, 170, 108, 0.1);
  color: var(--accent-green);
}

.live-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00aa6c;
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control-height);
  padding: 12px var(--space-3);
  border-radius: var(--radius-control);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

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

/* ---------- Hero trust bar ---------- */

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: var(--space-2);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.trust-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  background: rgba(241, 0, 0, 0.06);
}

.trust-item-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.trust-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trust-item-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-main);
}

.trust-item-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
  }
}
/* ---------- Comparison ---------- */

.comparison-section {
  background: var(--surface-white);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.comparison-col {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.comparison-col.highlight {
  border: 2px solid var(--primary-red);
  background: #fffafa;
}

.comparison-col .col-tag {
  align-self: flex-start;
  margin-bottom: var(--space-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.comparison-col.highlight .col-tag {
  background: var(--primary-red);
  color: #fff;
}

.comparison-col.neutral .col-tag {
  background: #eee;
  color: #555;
}

.comparison-col.warning .col-tag {
  background: #ffebee;
  color: #c62828;
}

.comparison-col .col-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-main);
}

.comparison-col.highlight .col-title {
  color: var(--primary-red);
}

.comparison-features {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 20px;
}

.comparison-features li:last-child {
  border-bottom: none;
}

.comparison-col .btn-block {
  margin-top: var(--space-3);
}

.feature-icon-yes,
.feature-icon-no,
.feature-icon-warn {
  flex-shrink: 0;
  width: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.feature-icon-yes { color: var(--accent-green); }
.feature-icon-no { color: var(--primary-red); }
.feature-icon-warn { color: #b45309; }

/* ---------- Authors ---------- */

.authors-showcase-section {
  background: var(--surface-light);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.author-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.author-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.author-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f0f0;
  object-fit: cover;
}

.author-online-indicator {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #00aa6c;
}


.author-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-main);
}

.author-degree {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.author-rating-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff8e1;
  color: #8a5a00;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.author-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--surface-light);
}

.author-stat-item {
  text-align: center;
}

.author-stat-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-main);
}

.author-stat-lbl {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.author-specialty-tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin-bottom: var(--space-2);
}

.spec-tag {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f0f2f5;
  color: #4b5563;
  font-size: 12px;
  line-height: 16px;
}

.author-cta-btn {
  width: 100%;
  min-height: var(--control-height);
  padding: 12px var(--space-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-control);
  background: var(--surface-light);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}

.author-cta-btn:hover {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #fff;
}

/* ---------- Guarantees ---------- */

.guarantees-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.guarantee-card-modern {
  padding: var(--space-3);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.guarantee-icon-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-control);
  background: rgba(241, 0, 0, 0.06);
}

.guarantee-icon-modern img {
  width: 24px;
  height: 24px;
}

.guarantee-title-modern {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-main);
}

.guarantee-desc-modern {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
}


/* ---------- Sticky mobile CTA ---------- */

.sticky-cta-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px var(--space-2);
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
}

.sticky-cta-bar .btn-block {
  width: auto;
  flex-shrink: 0;
  padding: 10px var(--space-2);
  font-size: 14px;
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
}

.sticky-cta-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-main);
}

.sticky-cta-sub {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--accent-green);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .comparison-section,
  .authors-showcase-section {
    padding: var(--space-5) 0;
  }
.comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sticky-cta-bar {
    display: flex;
  }
}

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

/* ---------- How it works: single column steps ---------- */

.how-section {
  padding: var(--space-6) 0;
  background: var(--surface-light);
}

.steps {
  max-width: 720px;
  margin: 0 auto var(--space-4);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 19px;
  width: 2px;
  background: var(--border-light);
}

.step:last-child::before {
  display: none;
}

.step-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.step-body {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.step-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--text-main);
}

.step-text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-muted);
}

.how-cta {
  max-width: 360px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--space-5) 0 var(--space-4);
  background: var(--surface-light);
  border-top: 1px solid var(--border-light);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-footer-logo img {
  display: block;
  height: 23px;
  width: auto;
}

.site-footer-contacts,
.site-footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-main);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-red);
}

.site-footer-docs a {
  color: var(--text-muted);
}

.site-footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.site-footer-pay img {
  display: block;
  height: 24px;
  width: auto;
}

.site-footer-note {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .how-section {
    padding: var(--space-5) 0;
  }
}

/* ---------- Lead form ---------- */

html {
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.lead-card {
  overflow: hidden;
  background: var(--surface-white);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(241, 0, 0, 0.14);
}

.lead-head {
  padding: var(--space-3);
  background: var(--primary-red);
  color: #fff;
}

.lead-online {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lead-online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.lead-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
}

.lead-sub {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

.lead-body {
  padding: var(--space-3);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-2);
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.lead-field--full {
  grid-column: 1 / -1;
}

.lead-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-main);
}

.lead-optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.lead-input {
  width: 100%;
  height: var(--control-height);
  padding: 0 var(--space-2);
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-control);
  background: var(--surface-white);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lead-input::placeholder {
  color: #98a2b3;
}

.lead-input:hover {
  border-color: #98a2b3;
}

.lead-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(241, 0, 0, 0.15);
}

.lead-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f767e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.lead-field.is-invalid .lead-input {
  border-color: #c62828;
  background-color: #fff8f8;
}

.lead-field.is-invalid .lead-input:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.lead-error {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #c62828;
}

.lead-field.is-invalid .lead-error {
  display: block;
}

.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.lead-chip {
  position: relative;
}

.lead-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-2);
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: var(--surface-white);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.lead-chip:hover span {
  border-color: #98a2b3;
}

.lead-chip input:checked + span {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #fff;
}

.lead-chip input:focus-visible + span {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.lead-author {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px var(--space-2);
  border-radius: var(--radius-control);
  background: var(--accent-green-bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 20px;
}

.lead-author.is-visible {
  display: flex;
}

.lead-author button {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lead-author button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  min-height: 56px;
  margin-top: var(--space-3);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--primary-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.lead-submit:hover {
  background: #d60000;
}

.lead-submit:disabled {
  background: #ffa6a6;
  cursor: progress;
}

.lead-submit.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lead-spin 0.7s linear infinite;
}

@keyframes lead-spin {
  to { transform: rotate(360deg); }
}

.lead-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.lead-perks li::before {
  content: "✓ ";
  color: var(--accent-green);
  font-weight: 700;
}

.lead-legal {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.lead-legal a {
  color: var(--text-muted);
  text-decoration: underline;
}

.lead-success {
  display: none;
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

.lead-card.is-sent .lead-body {
  display: none;
}

.lead-card.is-sent .lead-success {
  display: block;
}

.lead-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-size: 28px;
  font-weight: 700;
}

.lead-success-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--text-main);
}

.lead-success-title:focus {
  outline: none;
}

.lead-success-text {
  max-width: 480px;
  margin: 0 auto var(--space-3);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}

.lead-next {
  display: inline-block;
  margin: 0;
  padding: 0 0 0 var(--space-3);
  text-align: left;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .lead-head,
  .lead-body {
    padding: var(--space-2);
  }

  .lead-title {
    font-size: 20px;
    line-height: 28px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}
/* ---------- Lead form: isolation from legacy `.service-for-students form` rules ---------- */

.lead-card {
  width: 100%;
  max-width: 100%;
  margin: var(--space-3) 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-main);
}

.lead-card .lead-form {
  display: block;
  grid-template-columns: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 16px;
}

.lead-card span {
  margin-top: 0;
}

.lead-card .lead-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 20px;
}

.lead-card .lead-optional {
  display: inline;
  margin: 0;
}

.lead-card .lead-sub,
.lead-card .lead-title,
.lead-card .lead-online {
  font-family: var(--font-heading);
}

.lead-card .lead-sub {
  font-family: var(--font-body);
}

.lead-card .lead-online {
  display: flex;
}

.lead-card .lead-input {
  display: block;
  width: 100%;
  height: var(--control-height);
  margin: 0;
  padding: 0 var(--space-2);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

.lead-card .lead-select {
  padding-right: 40px;
  color: var(--text-main);
  text-overflow: ellipsis;
}

.lead-card .lead-select:invalid {
  color: #98a2b3;
}

.lead-card .lead-select option {
  padding: 8px;
  color: var(--text-main);
}

.lead-card .lead-chip {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
}

.lead-card .lead-chip span {
  display: inline-flex;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.lead-card .lead-chip input {
  width: 1px;
  height: 1px;
  padding: 0;
}

.lead-card .lead-error {
  font-family: var(--font-body);
}

.lead-card .lead-submit {
  margin-top: var(--space-3);
  font-family: var(--font-heading);
}

.lead-card .lead-perks,
.lead-card .lead-legal,
.lead-card .lead-author,
.lead-card .lead-success {
  font-family: var(--font-body);
}

.lead-card .lead-perks li,
.lead-card .lead-next li {
  margin: 0;
}

.lead-card .lead-success-text strong,
.lead-card .lead-author strong {
  display: inline;
  margin: 0;
}

.lead-card .lead-author span {
  display: inline;
}

@media (max-width: 640px) {
  .lead-card .lead-chip span {
    min-height: 40px;
  }
}

/* ---------- Fixes: empty author row, sticky bar fonts, mobile bottom offset ---------- */

.lead-card .lead-field--author {
  display: none;
}

.lead-card .lead-field--author.is-visible {
  display: flex;
}

.sticky-cta-bar,
.sticky-cta-bar span {
  font-family: var(--font-body);
}

.sticky-cta-bar .sticky-cta-title {
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
}

.lead-card .lead-select,
.lead-card .lead-select:focus,
.lead-card .lead-select.valid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------- Hero points ---------- */

.service-for-students .heading .hero-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 635px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 36px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  color: var(--text-main);
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23007a4d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 14px 14px no-repeat;
}

@media (max-width: 640px) {
  .hero-points li {
    font-size: 16px;
  }
}

/* ---------- Lead form: softer palette ---------- */

.lead-card {
  --lead-accent: #e5484d;
  --lead-accent-hover: #d93d42;
  --lead-accent-soft: #fdf1f1;
  --lead-accent-border: #f3c9cb;
  --lead-accent-text: #b4232a;
}

.lead-card {
  border: 1px solid var(--lead-accent-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.lead-card .lead-head {
  background: var(--lead-accent-soft);
  border-bottom: 1px solid var(--lead-accent-border);
  color: var(--text-main);
}

.lead-card .lead-online {
  color: var(--lead-accent-text);
}

.lead-card .lead-online::before {
  background: #22c55e;
}

.lead-card .lead-title {
  color: var(--text-main);
}

.lead-card .lead-sub {
  color: var(--text-muted);
}

.lead-card .lead-input:focus {
  border-color: var(--lead-accent);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
}

.lead-card .lead-chip input:checked + span {
  border-color: var(--lead-accent);
  background: var(--lead-accent-soft);
  color: var(--lead-accent-text);
}

.lead-card .lead-chip input:focus-visible + span {
  outline-color: var(--lead-accent);
}

.lead-card .lead-submit {
  background: var(--lead-accent);
}

.lead-card .lead-submit:hover {
  background: var(--lead-accent-hover);
}

.lead-card .lead-submit:disabled {
  background: #f3b4b6;
}

.lead-card .lead-field.is-invalid .lead-input {
  border-color: var(--lead-accent);
  background-color: var(--lead-accent-soft);
}

.lead-card .lead-error {
  color: var(--lead-accent-text);
}

/* ---------- Lead form: neutral palette, red only for CTA and real errors ---------- */

.lead-card {
  border: 1px solid #e4e7ec;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.lead-card .lead-head {
  background: var(--surface-light);
  border-bottom: 1px solid #e4e7ec;
}

.lead-card .lead-online {
  color: var(--accent-green);
}

.lead-card .lead-chip input:checked + span {
  border-color: var(--text-main);
  background: var(--text-main);
  color: #fff;
}

.lead-card .lead-chip input:focus-visible + span {
  outline-color: var(--text-main);
}

.lead-card .lead-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(24, 25, 27, 0.12);
}

.lead-card .lead-field.is-invalid .lead-input {
  border-color: #c62828;
  background-color: #fff8f8;
}

.lead-card .lead-field.is-invalid .lead-input:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.lead-card .lead-error {
  color: #c62828;
}

/* ---------- Guarantees: redesigned cards ---------- */

.guarantees-grid-modern {
  grid-template-columns: repeat(3, 1fr);
}

.guarantee-card-modern {
  --tone: #2563eb;
  --tone-bg: #eff6ff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.guarantee-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--tone);
}

.guarantee-card-modern:hover {
  border-color: var(--tone);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.tone-blue   { --tone: #2563eb; --tone-bg: #eff6ff; }
.tone-green  { --tone: #007a4d; --tone-bg: #ecfdf3; }
.tone-amber  { --tone: #b45309; --tone-bg: #fffbeb; }
.tone-violet { --tone: #7c3aed; --tone-bg: #f5f3ff; }
.tone-slate  { --tone: #334155; --tone-bg: #f1f5f9; }
.tone-rose   { --tone: #e11d48; --tone-bg: #fff1f2; }

.guarantee-num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--tone);
  opacity: 0.18;
}

.guarantee-card-modern .guarantee-icon-modern {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--tone-bg);
}

.guarantee-card-modern .guarantee-icon-modern img {
  display: block;
  width: 28px;
  height: 28px;
}

.guarantee-card-modern .guarantee-title-modern {
  margin: 0 0 var(--space-1);
}

.guarantee-card-modern .guarantee-desc-modern {
  flex: 1;
  margin: 0 0 var(--space-3);
}

.guarantee-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

@media (max-width: 900px) {
  .guarantees-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .guarantees-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* ---------- Authors: 24 cards ---------- */

.authors-grid {
  grid-template-columns: repeat(3, 1fr);
}

.author-card {
  padding: var(--space-2);
}

.author-header {
  align-items: flex-start;
}

.author-name {
  font-size: 15px;
  line-height: 20px;
}

.author-degree {
  font-size: 13px;
  line-height: 18px;
}

.author-cta-btn {
  min-height: 44px;
  padding: 10px var(--space-2);
  font-size: 13px;
}

@media (max-width: 800px) {
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .authors-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fixes: body font in cards, compact vertical author header ---------- */

.guarantee-desc-modern,
.guarantee-chip,
.author-degree,
.author-stat-lbl,
.spec-tag,
.author-rating-badge {
  font-family: var(--font-body);
}

.guarantee-chip,
.author-rating-badge {
  font-family: var(--font-heading);
}

.author-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.author-header > div:last-child {
  width: 100%;
}

.author-name {
  font-size: 16px;
  line-height: 22px;
}

.author-degree {
  min-height: 36px;
  margin-top: 2px;
}

.author-rating-badge {
  margin-top: 8px;
  white-space: nowrap;
}

.author-stats-row {
  align-items: start;
}

.author-cta-btn {
  white-space: nowrap;
}

/* ---------- Lead form: stable input text (no jump on focus/typing) ---------- */

.lead-card .lead-input,
.lead-card .lead-input:hover,
.lead-card .lead-input:focus,
.lead-card .lead-input:active,
.lead-card .lead-input:-webkit-autofill {
  box-sizing: border-box;
  height: var(--control-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--space-2) !important;
  padding-right: var(--space-2) !important;
  line-height: 24px;
  background-image: none;
  vertical-align: top;
}

.lead-card .lead-select,
.lead-card .lead-select:hover,
.lead-card .lead-select:focus {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f767e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.lead-card .lead-field.is-invalid .lead-input,
.lead-card .lead-field.is-invalid .lead-input:focus {
  padding-top: 0 !important;
}

/* ---------- Lead form: light green gradient header ---------- */

.lead-card .lead-head {
  background: linear-gradient(135deg, #dcfce7 0%, #ecfccb 100%);
  border-bottom: 1px solid #d9f99d;
}

/* ---------- Footer: black, as in the original (no navigation) ---------- */

.site-footer {
  background: #090909;
  border-top: 0;
  color: #fff;
}

.site-footer-inner {
  max-width: 1160px;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #ff6b6b;
}

.site-footer-docs a {
  color: #9aa0a6;
}

.site-footer-docs a:hover {
  color: #fff;
}

.site-footer-docs {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer-pay {
  gap: 8px;
}

.site-footer-pay img {
  box-sizing: border-box;
  width: 54px;
  height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.site-footer-note {
  color: #6f767e;
}

/* ---------- Hero banner: rotating guarantees ---------- */

.service-for-students .section-banner-noai .text.noai-rotator {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: 0 var(--space-2);
}

.noai-item {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: noai-cycle 8s ease-in-out infinite;
  will-change: opacity, transform;
}

.noai-item:nth-child(2) {
  animation-delay: 4s;
}


@keyframes noai-cycle {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  6% { opacity: 1; transform: translateY(0) scale(1.04); }
  9% { transform: translateY(0) scale(1); }
  44% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 0; transform: translateY(-16px) scale(0.96); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.96); }
}


@media (max-width: 900px) {
  .service-for-students .section-banner-noai .text.noai-rotator {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-for-students .section-banner-noai .text.noai-rotator {
    grid-auto-flow: row;
    gap: 4px;
  }

  .noai-item {
    grid-area: auto;
    opacity: 1;
    transform: none;
    animation: none;
  }

}

/* ---------- Hero banner: mobile layout (no robot, girl on the left) ---------- */

@media (max-width: 959px) {
  .service-for-students .section-banner-noai {
    box-sizing: border-box;
    justify-content: flex-start;
    height: auto;
    min-height: 88px;
    margin: 16px 0;
    padding: 12px 16px 12px 144px;
    border-radius: 20px;
    background: url(../images/noai-left.png) left bottom / auto 80px no-repeat, #f7f7f7;
  }

  .service-for-students .section-banner-noai .image-left,
  .service-for-students .section-banner-noai .image-right {
    display: none;
  }

  .service-for-students .section-banner-noai .text.noai-rotator {
    min-height: 48px;
    padding: 0;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    justify-items: start;
  }

  .noai-item {
    align-items: flex-start;
    gap: 8px;
  }

}

@media (max-width: 380px) {
  .service-for-students .section-banner-noai {
    padding-left: 128px;
    background-size: auto 70px;
  }

  .service-for-students .section-banner-noai .text.noai-rotator {
    font-size: 14px;
    line-height: 18px;
  }
}

/* ---------- Sticky mobile CTA: appears after the form, compact layout ---------- */

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .sticky-cta-bar {
    box-sizing: border-box;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .sticky-cta-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }

  .sticky-cta-info {
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
  }

  .sticky-cta-bar .sticky-cta-title {
    overflow: hidden;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sticky-cta-bar .sticky-cta-sub {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  .sticky-cta-bar .sticky-cta-sub::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    transform: translateY(-50%);
  }

  .sticky-cta-bar a.btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .sticky-cta-bar a.btn-block {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ---------- Lead form: green gradient border (same hues as the header) ---------- */

.lead-card {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface-white), var(--surface-white)) padding-box,
    linear-gradient(135deg, #86efac 0%, #bef264 100%) border-box;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.14);
}

/* ---------- Lead form: submit button in the site-wide red ---------- */

.lead-card .lead-submit {
  background: var(--primary-red);
}

.lead-card .lead-submit:hover {
  background: #d60000;
}

.lead-card .lead-submit:disabled {
  background: #ffa6a6;
}

/* ---------- Comparison: explicit fonts (was falling back to Times New Roman) ---------- */

.comparison-features li {
  font-family: var(--font-body);
}

.comparison-features li strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.feature-icon-yes,
.feature-icon-no,
.feature-icon-warn {
  font-family: var(--font-heading);
}

/* ---------- Steps and footer: explicit fonts (was falling back to Times New Roman) ---------- */

.step-text,
.site-footer,
.site-footer a,
.site-footer-note {
  font-family: var(--font-body);
}
