@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600.woff2") format("woff2");
}

:root {
  --ink: #2a2a2a;
  --muted: #3e4a55;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #d5dee8;
  --line-strong: #c3ceda;
  --accent: #136fb1;
  --accent-dark: #0e568c;
  --accent-soft: #e7f2fa;
  --danger: #6e2424;
  --danger-bg: #f8ecec;
  --pine: #2a2a2a;
  --pine-text: #e4eef6;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.25rem;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(34, 30, 26, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  scroll-padding-bottom: 6rem;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 5.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.9rem, 7vw, 4.15rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

h3 {
  margin: 0;
  font-size: 1.28rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.16em;
}

p a,
li a,
.field-help a,
.prose a {
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid #f6f3ec;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent);
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header);
  padding: 0.7rem 1rem;
  background: rgba(244, 247, 251, 0.96);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  backdrop-filter: blur(12px);
}

.logo-jema {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
}

.badge-expert {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  margin-left: auto;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.logo-text {
  font-size: 0.98rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-panel {
  display: none;
}

.nav-panel.is-open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 1rem 0.8rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-panel a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid var(--line);
}

.nav-panel a:last-child {
  border-bottom: 0;
}

.header-phone {
  display: none;
  margin-left: auto;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header:not(:has(.nav-panel)) .header-phone {
  display: inline-flex;
}

.hero {
  padding: 2rem 0 2.75rem;
}

.since {
  margin: 0.4rem 0 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 0.9rem;
}

.hero-contact {
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.hero-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.hero-card-note {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.offers {
  display: grid;
  gap: 0.8rem;
}

.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
}

.offer h3 {
  margin: 0.75rem 0 0.4rem;
}

.offer p,
.reasons p,
.steps p {
  color: var(--muted);
}

.icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  display: block;
}

.free-check {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.free-check p {
  color: var(--ink);
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.reasons li {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 1.15rem 1.1rem 1.25rem;
}

.reasons h3 {
  margin-bottom: 0.45rem;
}

.steps-section {
  background: var(--pine);
  color: var(--paper);
}

.steps-section .kicker {
  color: #d6e8f7;
}

.steps-section h2,
.steps-section h3 {
  color: var(--paper);
}

.steps-section p {
  color: var(--pine-text);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.step-index {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: #d6e8f7;
  letter-spacing: -0.03em;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq h3 {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.faq details p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.contact-list li {
  padding: 0.35rem 0;
}

.contact-list a {
  font-weight: 600;
}

.form-card,
.form-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.form-intro {
  margin-bottom: 1rem;
  color: var(--muted);
}

.form-grid,
.form-row {
  display: grid;
  gap: 0.95rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.req {
  color: var(--accent-dark);
}

.opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field-help {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
}

.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

form.is-submitted input:invalid,
form.is-submitted textarea:invalid {
  border-color: var(--danger);
}

form.is-submitted .choice:has(input:invalid) {
  border-color: var(--danger);
}

.form-errors {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
}

.form-errors ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.form-status {
  min-height: 1.2em;
  font-weight: 600;
}

.form-actions {
  display: grid;
  gap: 0.75rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--ink);
  color: #e4eef6;
  padding: 2.5rem 0 1.5rem;
}

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

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #f6f3ec;
}

.footer-title {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: #f6f3ec;
}

.footer-end {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(228, 238, 246, 0.2);
  font-size: 0.95rem;
}

.footer-badge {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.footer-badge img {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  border: 0;
}

.offer-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.callbar {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.callbar .btn {
  flex: 1;
}

.callbar.is-hidden {
  display: none;
}

.page {
  padding: 2rem 0 3.5rem;
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  margin-bottom: 1rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}

.prose p,
.prose li {
  margin-bottom: 0.75rem;
}

.prose ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.todo {
  margin-top: 0.4rem;
  padding: 1rem 1.05rem;
  border: 1.5px dashed #3f2e0c;
  border-radius: 12px;
  background: #fff6df;
  color: #3f2e0c;
}

.todo strong {
  letter-spacing: 0.04em;
}

::selection {
  background: #d6e8f7;
  color: var(--ink);
}

@media (max-width: 380px) {
  .logo-jema {
    height: 44px;
  }

  .badge-expert {
    height: 40px;
  }

  .nav-toggle {
    padding: 0 0.55rem;
  }
}

@media (min-width: 640px) {
  .logo-jema {
    height: 70px;
  }

  .badge-expert,
  .footer-badge img {
    height: 65px;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .form-row,
  .choices {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-actions {
    justify-items: start;
  }

  .form-actions .btn {
    min-width: 16rem;
  }
}

@media (min-width: 800px) {
  .offers,
  .reasons,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .free-check {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 880px) {
  html {
    scroll-padding-bottom: 1.5rem;
  }

  body {
    padding-bottom: 0;
  }

  .wrap {
    width: min(1120px, calc(100% - 4rem));
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel,
  .nav-panel.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1rem;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-panel a,
  .nav-panel.is-open a {
    border: 0;
    padding: 0.25rem 0;
  }

  .logo-jema {
    height: 86px;
  }

  .badge-expert,
  .footer-badge img {
    height: 80px;
  }

  .badge-expert {
    margin-left: 1.25rem;
  }

  .header-phone {
    display: inline-flex;
    margin-left: 0.5rem;
  }

  .site-header:not(:has(.nav-panel)) .header-phone {
    margin-left: auto;
  }

  .hero {
    padding: 3.5rem 0 4.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
    gap: 3rem;
    align-items: end;
  }

  .section {
    padding: 5.25rem 0;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }

  .callbar {
    display: none;
  }
}

@media (max-width: 879px) {
  body:has(input:focus, textarea:focus, select:focus) .callbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .offer,
  .hero-card,
  .form-card {
    border: 1px solid ButtonText;
  }
}

@media print {
  .callbar,
  .nav-toggle,
  .site-header {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
  }

  .steps-section {
    background: #fff;
    color: #000;
  }

  .steps-section h2,
  .steps-section h3,
  .steps-section p,
  .step-index {
    color: #000;
  }

  a[href^="tel"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
