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

  .ld__page {
    font-family: 'Manrope', sans-serif;
    background: #f7f5f0;
    color: #1a1814;
    min-height: 100vh;
    padding: 0 0 80px;
  }

  /* ─── Hero ─────────────────────────────────────────── */
  .ld__hero {
    background: #1a1814;
    color: #f7f5f0;
    padding: 64px 24px 56px;
    text-align: center;
  }
  .ld__hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8a97a;
    margin-bottom: 16px;
  }
  .ld__hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .ld__hero-title em { font-style: normal; color: #b8a97a; }
  .ld__hero-sub {
    font-size: 16px;
    color: #a09880;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ─── Tool card ─────────────────────────────────────── */
  .ld__wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
  .ld__tool-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 40px rgba(26,24,20,0.10);
    padding: 36px;
    margin-top: -28px;
    position: relative;
  }

  /* textarea */
  .ld__textarea-wrap { position: relative; }
  .ld__textarea {
    width: 100%;
    min-height: 180px;
    border: 1.5px solid #e2ddd4;
    border-radius: 12px;
    padding: 18px 18px 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #1a1814;
    background: #faf9f6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
  }
  .ld__textarea:focus { border-color: #b8a97a; background: #fff; }
  .ld__textarea::placeholder { color: #c4bfb5; }
  .ld__char-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 12px;
    color: #b0a898;
    pointer-events: none;
    transition: color 0.2s;
  }
  .ld__char-counter.ld__over { color: #d84a30; }

  /* button row */
  .ld__btn-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
  .ld__btn-detect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1814;
    color: #f7f5f0;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
  }
  .ld__btn-detect:hover { background: #2e2b24; }
  .ld__btn-detect:active { transform: scale(0.97); }
  .ld__btn-detect:disabled { background: #c4bfb5; cursor: not-allowed; }
  .ld__btn-clear {
    background: none;
    border: 1.5px solid #e2ddd4;
    border-radius: 10px;
    padding: 12px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #7a7268;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
  }
  .ld__btn-clear:hover { border-color: #b8a97a; color: #1a1814; }

  /* spinner */
  .ld__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(247,245,240,0.3);
    border-top-color: #f7f5f0;
    border-radius: 50%;
    animation: ld__spin 0.7s linear infinite;
  }
  @keyframes ld__spin { to { transform: rotate(360deg); } }

  /* ─── Result block ──────────────────────────────────── */
  .ld__result {
    display: none;
    margin-top: 28px;
    border-top: 1px solid #ede9e1;
    padding-top: 24px;
    animation: ld__fadeup 0.35s ease;
  }
  @keyframes ld__fadeup {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .ld__result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 6px;
  }
  .ld__result-item { background: #f7f5f0; border-radius: 12px; padding: 16px 18px; }
  .ld__result-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9c9487;
    margin-bottom: 6px;
  }
  .ld__result-value { font-size: 22px; font-weight: 700; color: #1a1814; line-height: 1.2; }
  .ld__result-value.ld__muted { color: #c4bfb5; font-weight: 500; }
  .ld__result-value--pct { font-size: 26px; color: #b8a97a; }

  /* confidence bar */
  .ld__conf-bar-wrap { height: 4px; background: #e2ddd4; border-radius: 2px; margin-top: 8px; overflow: hidden; }
  .ld__conf-bar { height: 100%; background: #b8a97a; border-radius: 2px; transition: width 0.6s cubic-bezier(0.22,1,0.36,1); }

  /* error */
  .ld__error {
    display: none;
    background: #fff5f3;
    border: 1px solid #f0c8be;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #9b3a24;
    margin-top: 16px;
  }

  /* ─── CTA Button ────────────────────────────────────── */
  .ld__cta-wrap { margin-top: 36px; text-align: center; }
  .ld__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #b8a97a 0%, #d4c28e 50%, #b8a97a 100%);
    background-size: 200% auto;
    color: #1a1814;
    text-decoration: none;
    border-radius: 16px;
    padding: 20px 36px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    transition: background-position 0.4s ease, transform 0.12s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(184,169,122,0.35);
  }
  .ld__cta-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(184,169,122,0.45); }
  .ld__cta-btn:active { transform: translateY(0); }
  .ld__cta-icon {
    width: 44px; height: 44px;
    background: rgba(26,24,20,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .ld__cta-icon svg { width: 22px; height: 22px; }
  .ld__cta-text-block { text-align: left; }
  .ld__cta-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; margin-bottom: 2px; }

  /* ─── Share ────────────────────────────────────────── */
  .ld__share { margin-top: 24px; padding-top: 22px; border-top: 1px solid #ede9e1; }
  .ld__share-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9c9487; text-align: center; margin-bottom: 12px; }
  .ld__share-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .ld__share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    border-radius: 10px; padding: 10px 18px;
    font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none;
    transition: opacity 0.18s, transform 0.12s;
  }
  .ld__share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
  .ld__share-btn:active { transform: translateY(0); }
  .ld__share-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
  .ld__share-vk   { background: #0077FF; color: #fff; }
  .ld__share-tg   { background: #229ED9; color: #fff; }
  .ld__share-wa   { background: #25D366; color: #fff; }
  .ld__share-fb   { background: #1877F2; color: #fff; }
  .ld__share-copy { background: #1a1814; color: #b8a97a; }

  .ld__toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1814; color: #b8a97a;
    padding: 11px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    transition: transform 0.3s; pointer-events: none; z-index: 999; white-space: nowrap;
  }
  .ld__toast.ld__toast-show { transform: translateX(-50%) translateY(0); }

  /* ─── Info Sections ─────────────────────────────────── */
  .ld__sections {
    max-width: 820px; margin: 60px auto 0;
    padding: 0 20px; display: grid; gap: 40px;
  }
  .ld__section {
    background: #fff; border-radius: 20px; padding: 40px;
    box-shadow: 0 1px 20px rgba(26,24,20,0.06);
  }
  .ld__section-tag {
    display: inline-block; background: #1a1814; color: #b8a97a;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 600; padding: 5px 12px; border-radius: 6px; margin-bottom: 18px;
  }
  .ld__section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(22px, 3vw, 28px); font-weight: 700;
    color: #1a1814; line-height: 1.25; margin-bottom: 16px;
  }
  .ld__section-body { font-size: 15px; line-height: 1.75; color: #4a453d; }
  .ld__section-body p + p { margin-top: 12px; }
  .ld__section-body strong { color: #1a1814; font-weight: 600; }

  /* Steps */
  .ld__steps { display: grid; gap: 18px; margin-top: 24px; }
  .ld__step { display: flex; gap: 18px; align-items: flex-start; }
  .ld__step-num {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    background: #1a1814; color: #b8a97a; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .ld__step-body { padding-top: 6px; }
  .ld__step-title { font-size: 15px; font-weight: 700; color: #1a1814; margin-bottom: 4px; }
  .ld__step-desc { font-size: 14px; color: #6b6459; line-height: 1.6; }

  .ld__divider { width: 48px; height: 3px; background: #b8a97a; border-radius: 2px; margin: 20px 0 24px; }

  @media (max-width: 600px) {
    .ld__tool-card { padding: 24px 20px; }
    .ld__section { padding: 28px 22px; }
    .ld__hero { padding: 48px 20px 44px; }
    .ld__cta-btn { padding: 16px 24px; font-size: 15px; }
    .ld__share-btn { padding: 9px 14px; font-size: 12px; }
  }