/* ==========================================================================
   Crypto Trading School – landing page
   Built from Figma: "Crypto Trading School new" (desktop frame 1920px)
   ========================================================================== */

/* ---------- Fonts (self-hosted Manrope variable) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2-variations"),
       url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin.woff2") format("woff2-variations"),
       url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ink: #141614;          /* headings */
  --ink-2: #0f172a;        /* FAQ / small headings */
  --ink-3: #1f2937;        /* CTA heading */
  --text: #525853;         /* body copy */
  --text-hero: #676f7e;
  --text-muted: #5b6470;

  --blue: #086bfc;         /* accent headline blue */
  --blue-btn: #016bfc;     /* header button */
  --blue-2: #1268f3;       /* form button / numbers / icons */
  --blue-badge: #0066eb;
  --blue-icon: #0666e4;

  --bg-light: #f0f4fa;
  --bg-card: #f6f8fc;
  --bg-badge: #e8f1ff;
  --bg-icon: #e9f0fc;
  --bg-soft-blue: #eaf2ff;

  --border: #e5e8e5;
  --border-2: #e1e6ef;
  --border-input: #d1d5db;
  --placeholder: #9ca3af;
  --green: #18ab09;

  --container: 1120px;
  --gutter: 24px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text-blue { color: var(--blue); }
.d-block { display: block; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1 {
  font-size: 72px;
  line-height: 74px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 .text-blue { display: block; }

h2 {
  font-size: 32px;
  line-height: 45px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-badge);
  color: var(--blue-badge);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  vertical-align: top;
}
.badge-sm,
.badge-white,
.badge-hero { padding: 4px 10px; }
.badge-white { background: #fff; }
.badge-hero { background: rgba(207, 230, 254, 0.92); }

.badge + h2 { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.btn-primary {
  background: var(--blue-btn);
  color: #fff;
  border: 1px solid #0158d4;
  border-radius: 6px;
}
.btn-primary:hover { background: #005ee0; }

.btn-gradient {
  width: 282px;
  height: 72px;
  border: 2px solid #e9dcff;
  border-radius: 6px;
  background: linear-gradient(90deg, #b028d1 0%, #8b20e6 50%, #6416fb 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(160, 140, 255, 0.35), 0 0 22px 2px rgba(86, 104, 255, 0.55);
}
.btn-gradient:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gradient svg { margin-left: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 79px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(160deg, #2b84ff 0%, #0666e4 100%);
}
.brand-icon img { width: 17px; height: auto; }
.brand-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 33px;
}
.site-nav a:not(.btn) {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--blue); }
.btn-nav {
  width: 160px;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 560px;
  padding: 73px 0 80px;
  background-color: #eef3f8;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.75) 40%, rgba(255,255,255,0) 61.5%),
    url("images/hero.jpg");
  background-size: cover, cover;
  background-position: center, center 10%;
  background-repeat: no-repeat;
}
.hero-content { max-width: 560px; }
.hero h1 { margin-top: 12px; }
.hero-text {
  max-width: 510px;
  margin-top: 23px;
  font-size: 18px;
  line-height: 29px;
  letter-spacing: 0.01em;
  color: var(--text-hero);
}
.hero .btn-gradient { margin-top: 34px; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 40px 0; }
.section-light { background: var(--bg-light); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 40px;
  align-items: center;
}
.split-text h2 + p { margin-top: 16px; }
.split-text p + p { margin-top: 24px; }
.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- A modern way --- */
.modern { padding: 43px 0; }
.modern .split { grid-template-columns: minmax(0, 560px) 480px; justify-content: start; align-items: start; }
.modern .split-text p { max-width: 545px; }
.modern h2 { max-width: 460px; }
.modern-img { aspect-ratio: 480 / 310; }

/* --- Key advantages --- */
.advantages { padding: 20px 0 40px; }
.advantages-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.advantages-head > div:first-child { padding: 0 0 17px; }

.market-widget {
  width: 462px;
  padding: 10px 16px 6px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}
.mw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 6px 6px;
  border-bottom: 1px solid #ececef;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}
.mw-title { display: inline-flex; align-items: center; gap: 6px; }
.mw-live { display: inline-flex; align-items: center; gap: 8px; color: #000; }
.mw-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28bc0e;
}
.mw-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mw-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 6px 2px;
}
.mw-list li + li { border-left: 1px solid #e8e8ea; padding-left: 12px; }
.mw-list li > img { width: 28px; height: 28px; flex: none; }
.mw-list li div { display: flex; flex-direction: column; }
.mw-sym { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.mw-chg { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--green); }
.mw-spark { width: 50px; height: auto; margin-top: 2px; }

/* --- Cards --- */
.cards {
  display: grid;
  gap: 24px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 31px 20px 31px 31px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.card-soft { background: var(--bg-card); }
.card-white { background: #fff; border-color: #eaecee; }
.card h3 { margin-top: 0; }
.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text);
}

.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--bg-icon);
  color: var(--blue-icon);
}
.icon-box img { height: auto; }
.icon-box-blue { background: #dceaff; }

/* --- Fundamentals --- */
.fundamentals { padding: 41px 0 40px; }
.fundamentals h2 + .prose { margin-top: 16px; }
.prose { max-width: 912px; }
.prose p + p { margin-top: 24px; }

/* --- How it works --- */
.how .split { grid-template-columns: minmax(0, 1fr) 480px; align-items: start; }
.how-img { aspect-ratio: 1 / 1; }
.how .badge + h2 { margin-top: 8px; }
.steps { margin-top: 37px; }
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 80px;
  min-height: 80px;
}
.step + .step { margin-top: 40px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 40px;
  top: 80px;
  width: 1px;
  height: 40px;
  background: #c9ddff;
}
.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-soft-blue);
  border: 1px solid #c9ddff;
  color: var(--blue-2);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.step h3 { margin-top: 0; }
.step p {
  max-width: 400px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
}

/* --- Structured way --- */
.structured .split { grid-template-columns: minmax(0, 1fr) 520px; }
.structured .split-text { max-width: 560px; }
.structured { padding: 41px 0 40px; }

.method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  padding: 35px 25px;
  border-radius: 12px;
  background: #011a45 url("images/method-bg.jpg") center / cover no-repeat;
  color: #fff;
}
.method-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 130px;
  min-height: 230px;
  padding: 25px 6px 20px;
  text-align: center;
  border: 1px solid rgba(48, 102, 214, 0.55);
  border-radius: 12px;
  background: rgba(6, 30, 76, 0.35);
}
.method-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(205, 220, 240, 0.55);
}
.method-icon img { height: auto; max-width: none; }
.method-step h3 {
  margin-top: 14px;
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  color: #fff;
}
.method-step p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.78);
}
.method-arrow { color: #7d92b8; flex: none; }

/* --- Who is this for --- */
.section-lead { max-width: 545px; margin-top: 6px; }
.audience .cards { margin-top: 40px; }
.audience .card { padding-right: 34px; padding-bottom: 26px; }
.audience .card p { margin-top: 7px; }
.audience .badge + h2 { margin-top: 8px; }
.audience .card h3 { line-height: 27px; }

/* --- A clearer way --- */
.clearer { padding: 40px 0; }
.split-clearer { grid-template-columns: minmax(0, 1fr) 525px; gap: 0; align-items: start; }
.split-clearer .split-text { padding-right: 8px; }
.split-clearer .split-media { margin: 88px -27px 0 27px; }
.clearer-img { width: 100%; height: auto; }

/* --- FAQ --- */
.faq { padding: 25px 0 75px; }
.faq h2 { margin-top: 12px; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 570px) 520px;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
  align-items: start;
}
.faq-list { display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: #c9ddff; box-shadow: 0 4px 14px rgba(18, 104, 243, 0.06); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 11px 22px 11px 20px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--blue-2);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 22px 20px 20px; }
.faq-answer p { font-size: 14px; line-height: 22px; color: var(--text); }

.pace-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 30px 26px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft-blue);
}
.pace-text { position: relative; z-index: 1; max-width: 240px; }
.pace-card h3 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.pace-card p {
  max-width: 205px;
  margin-top: 13px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-muted);
}
.pace-phone {
  position: absolute;
  right: 36px;
  bottom: 0;
  width: 200px;
  height: auto;
}

/* ==========================================================================
   CTA + form
   ========================================================================== */
.cta {
  padding: 59px 0 60px;
  text-align: center;
  background: #e8f1fd url("images/cta-bg.jpg") center / cover no-repeat;
}
.cta-title {
  display: inline-block;
  vertical-align: top;
  text-align: left;
  font-size: 60px;
  line-height: 63px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-3);
}
.cta-text {
  margin-top: 9px;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: -0.0125em;
  color: var(--text-muted);
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 587px;
  margin: 28px auto 0;
  padding: 32px 26px 26px;
  background: #fff;
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: 0 10px 40px rgba(33, 92, 180, 0.08);
}
.field {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 18px;
  color: var(--ink-3);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder,
.phone-field input::placeholder { color: var(--placeholder); opacity: 1; }
.field:focus,
.phone-field:focus-within {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(18, 104, 243, 0.12);
}
.field.is-invalid,
.phone-field.is-invalid { border-color: #e5484d; }

.phone-field {
  display: flex;
  align-items: stretch;
  padding: 0;
}
.country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 120px;
  padding: 0 14px;
  border-right: 1px solid var(--border-input);
  cursor: pointer;
}
.country-flag { width: 34px; height: 20px; object-fit: cover; flex: none; }
.country-flag[hidden] { display: none; }
.country select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23374151' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 6px no-repeat;
  font-size: 18px;
  color: #374151;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.phone-field input {
  flex: 1;
  min-width: 0;
  padding: 0 13px;
  border: 0;
  background: transparent;
  font-size: 18px;
  outline: none;
}

.btn-submit {
  height: 52px;
  margin-top: 1px;
  border-radius: var(--radius-sm);
  background: var(--blue-2);
  border-color: var(--blue-2);
  font-size: 19px;
  font-weight: 600;
  gap: 16px;
}
.btn-submit:hover { background: #0b5ad8; }
.form-message {
  min-height: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--text-muted);
}
.form-message:empty { display: none; }
.form-message.is-error { color: #d13438; }
.form-message.is-success { color: var(--green); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text);
}
.footer-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.footer-col p { margin: 0 0 12px; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-heading--risk { color: #b45309; }
.footer-col a {
  color: var(--blue);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-copyright { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--blue); }
.contact-box {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 8px;
}
.contact-box h3 {
  margin-top: 0;
  color: var(--blue-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .split,
  .modern .split,
  .how .split,
  .structured .split,
  .split-clearer { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; }
  .split-clearer .split-media { margin-right: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .advantages-head { flex-wrap: wrap; }
  .method-card { padding: 30px 18px; }
  .method-step { flex-basis: 30%; }
  .card,
  .audience .card { padding: 26px; gap: 16px; }
}

@media (max-width: 991px) {
  h1 { font-size: 58px; line-height: 62px; }
  .cta-title { font-size: 48px; line-height: 54px; }

  .hero { min-height: 0; padding: 64px 0 72px; }
  .hero { background-image:
      linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.15) 100%),
      url("images/hero.jpg");
    background-position: center, 70% 10%; }

  .split,
  .modern .split,
  .how .split,
  .structured .split,
  .split-clearer { grid-template-columns: 1fr; gap: 32px; }
  .split-media { max-width: 600px; }
  .split-clearer .split-media { margin: 0; }
  .how-img { aspect-ratio: 4 / 3; }

  .advantages { padding-top: 40px; }
  .advantages-head { flex-direction: column; align-items: flex-start; }
  .advantages-head > div:first-child { padding: 0; }
  .market-widget { width: 100%; max-width: 520px; }

  .cards-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { max-width: 640px; }

  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .pace-card { max-width: 600px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  .header-inner { height: 68px; }
  .nav-toggle { display: block; margin-right: -10px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 12px 0; font-size: 16px; }
  .btn-nav { width: 100%; margin-top: 8px; }

  h1 { font-size: 44px; line-height: 48px; }
  h2 { font-size: 28px; line-height: 36px; }
  h3 { font-size: 18px; line-height: 24px; }
  .cta-title { display: block; text-align: center; font-size: 36px; line-height: 42px; }

  .hero { padding: 48px 0 56px; }
  .hero { background-image:
      linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.78) 100%),
      url("images/hero.jpg");
    background-position: center, 72% center; }
  .hero-text { font-size: 17px; line-height: 27px; }
  .btn-gradient { width: 100%; max-width: 320px; height: 64px; font-size: 22px; }

  .section,
  .modern,
  .advantages,
  .fundamentals,
  .structured,
  .clearer { padding: 48px 0; }
  .faq { padding: 8px 0 56px; }

  .market-widget { padding: 12px 10px 8px; }
  .mw-list { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .mw-list li:nth-child(3) { border-left: 0; padding-left: 6px; }

  .steps { margin-top: 28px; }
  .step { gap: 20px; min-height: 64px; }
  .step + .step { margin-top: 28px; }
  .step-num { width: 64px; height: 64px; font-size: 22px; }
  .step:not(:last-child)::after { left: 32px; top: 64px; height: 28px; }

  .method-card { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .method-step { flex-basis: auto; width: 100%; max-width: 280px; min-height: 0; padding: 22px 16px; }
  .method-arrow { transform: rotate(90deg); }

  .card { padding: 22px; }

  .pace-card { padding: 24px 22px 0; min-height: 0; }
  .pace-text { max-width: none; }
  .pace-card p { max-width: none; }
  .pace-phone { position: static; width: 200px; margin: 20px auto 0; }

  .cta { padding: 56px 0; }
  .cta-text { font-size: 16px; line-height: 24px; }
  .br-desktop { display: none; }
  .signup-form { padding: 22px 18px 18px; }
  .country { flex-basis: 108px; gap: 10px; padding: 0 10px; }

  .footer-legal { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 400px) {
  h1 { font-size: 38px; line-height: 42px; }
  .cta-title { font-size: 31px; line-height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Lead form runtime + modals
   ========================================================================== */
.form-group { width: 100%; }
.form-error {
  color: #d13438;
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  min-height: 0;
}
.form-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  cursor: pointer;
}
.form-agree-label input { margin-top: 2px; flex: none; }
.form-legal {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--text-muted);
}
.form-legal a {
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: underline;
}
.phone-container .iti {
  display: block !important;
  width: 100% !important;
}
.phone-container .iti input.field,
.phone-container .iti input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 18px;
  color: var(--ink-3);
  outline: none;
}
.phone-container .iti input:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(18, 104, 243, 0.12);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.modal-open {
  opacity: 1;
  display: block;
}
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  color: #374151;
}
.modal.modal-open .modal-content {
  animation: ctsModalFadeIn 0.3s ease forwards;
}
@keyframes ctsModalFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}
.modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
.modal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.modal-body p,
.modal-body ul {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 16px;
  right: 16px;
  z-index: 50;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 16px 40px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner-actions button {
  border: none;
  background: none;
  color: var(--blue-2);
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
}
