/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-700italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* =========================================================
   SCOPE
   ========================================================= */
.or-page {
  /* design tokens */
  --bg: #f6f2ed;
  --bg-card: #fdfbf7;
  --bg-tint: #faf4ee;
  --ink: #1a1613;
  --ink-2: #3a342e;
  --ink-3: #6b6259;
  --ink-4: #9a9187;
  --ink-5: #c7beb2;
  --rule: #e4ddd1;
  --rule-strong: #d6ccbd;
  --accent: oklch(0.58 0.11 25);
  --accent-2: oklch(0.52 0.12 25);
  --accent-tint: oklch(0.97 0.012 30);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --shadow-soft: 0 10px 28px -12px rgba(60, 40, 18, 0.30), 0 4px 10px -6px rgba(60, 40, 18, 0.18);
  --shadow-card: 0 22px 48px -18px rgba(60, 40, 18, 0.40), 0 8px 18px -8px rgba(60, 40, 18, 0.24);
  --t: 0.24s cubic-bezier(.2,.7,.2,1);

  /* page layout */
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 28px 80px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  background: transparent;
  -webkit-font-smoothing: antialiased;

  /* resets scoped to this block */
  & *, & *::before, & *::after { box-sizing: border-box; margin: 0; padding: 0; }
  & a { color: inherit; text-decoration: none; }
  & em { font-style: italic; }
  & img, & svg { display: block; max-width: 100%; }
  & button { cursor: pointer; font-family: inherit; color: inherit; background: none; border: none; }

  /* shared atoms */
  & .r-h-top {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--ink-4);
    text-transform: uppercase;
    flex-wrap: wrap;
    margin-bottom: 18px;

    & .cat { color: var(--accent-2); }
    & .cat::before { content: '•'; color: var(--ink-5); margin-right: 14px; }
    & .cat:first-child::before { display: none; }
  }
  & .r-h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
    & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
  }
  & .r-lead {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 2vw, 24px);
    color: var(--ink-2);
    line-height: 1.4;
    letter-spacing: -0.005em;
  }

  /* section header */
  & .sec-head {
    display: flex; align-items: baseline; gap: 18px;
    margin-bottom: 22px;

    & .num {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 400;
      font-size: 44px;
      line-height: 1;
      color: var(--accent-2);
      letter-spacing: -0.02em;
    }
    & .copy { display: flex; flex-direction: column; gap: 6px; }
    & .lbl {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.18em;
      color: var(--ink-4);
      text-transform: uppercase;
      display: flex; align-items: center; gap: 10px;
      &::before { content: ''; width: 18px; height: 1px; background: var(--ink-5); }
    }
    & h2 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(28px, 2.8vw, 38px);
      line-height: 1.05;
      letter-spacing: -0.012em;
      color: var(--ink);
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
  }

  /* remove grid */
  & .remove-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);

    & .remove-item:nth-child(3n) { border-right: none; }
    & .remove-item:nth-last-child(-n+3) { border-bottom: none; }
  }
  & .remove-item {
    padding: 22px 22px 22px 24px;
    border-right: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
    display: flex; flex-direction: column; gap: 10px;

    & .ri-mark {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--rule-strong);
      background: var(--bg-card);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-2);
      & svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
    }
    & .lbl {
      font-family: var(--mono);
      font-size: 9.5px;
      letter-spacing: 0.18em;
      color: var(--ink-4);
      text-transform: uppercase;
    }
    & .txt {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 19px;
      color: var(--ink);
      letter-spacing: -0.005em;
      line-height: 1.2;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
  }

  /* warning list */
  & .harms {
    background: var(--accent-tint);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    box-shadow: var(--shadow-soft);
    padding: 24px 26px;

    & h4 {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--accent-2);
      text-transform: uppercase;
      margin-bottom: 18px;
      display: flex; align-items: center; gap: 10px;
      &::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
    }
    & ul {
      list-style: none;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 24px;
    }
    & ul li {
      position: relative;
      padding: 10px 0 10px 26px;
      border-bottom: 1px dashed var(--rule);
      font-family: var(--serif);
      font-style: italic;
      font-size: 16px;
      color: var(--ink-2);
      line-height: 1.45;
      &::before {
        content: '×';
        position: absolute;
        left: 0; top: 9px;
        font-family: var(--mono);
        font-style: normal;
        color: var(--accent);
        font-size: 16px;
        font-weight: 500;
      }
      & strong { color: var(--ink); font-weight: 600; font-style: normal; }
    }
  }

  /* clean tabs */
  & .clean-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--rule);
    &::-webkit-scrollbar { display: none; }
  }
  & .clean-tab {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    text-transform: uppercase;
    padding: 10px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: var(--bg-card);
    transition: all var(--t);
    white-space: nowrap;
    &:hover { color: var(--accent); border-color: var(--accent); }
    &.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
  }
  & .clean-panel { display: none; }
  & .clean-panel.is-active { display: block; }

  & .mohs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    text-transform: uppercase;
    padding: 9px 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--bg-tint);
    margin-bottom: 20px;
    & .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
    & strong { color: var(--ink); font-weight: 500; }
  }

  & .clean-steps {
    list-style: none;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--rule);

    & li {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 18px;
      padding: 18px 0;
      border-bottom: 1px dashed var(--rule);
      align-items: baseline;
      &:last-child { border-bottom: 1px solid var(--rule); }
      & .n {
        font-family: var(--serif);
        font-style: italic;
        font-weight: 400;
        font-size: 28px;
        line-height: 1;
        color: var(--accent-2);
        letter-spacing: -0.02em;
      }
      & p {
        font-family: var(--serif);
        font-size: 17px;
        color: var(--ink-2);
        line-height: 1.45;
        & strong { color: var(--ink); font-weight: 600; }
        & .note { font-style: italic; font-size: 14px; color: var(--ink-4); display: block; margin-top: 6px; }
      }
    }
  }

  & .clean-note {
    background: var(--accent-tint);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 16px 20px;
    margin: 6px 0 20px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.45;
    & strong { color: var(--ink); font-weight: 600; font-style: normal; }
  }
  & ol + .clean-note { margin-top: 14px; }

  & .gems-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  & .gem-card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow-soft);

    & .nm {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 18px;
      color: var(--ink);
      letter-spacing: -0.005em;
      line-height: 1.1;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
    & .nt {
      font-family: var(--mono);
      font-size: 9.5px;
      letter-spacing: 0.14em;
      color: var(--ink-4);
      text-transform: uppercase;
    }
  }

  /* storage grid */
  & .storage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #e9ede3;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    & .storage-item:last-child { border-right: none; }
  }
  & .storage-item {
    padding: 24px 22px;
    border-right: 1px dashed var(--rule);
    display: flex; flex-direction: column; gap: 12px;

    & .mark {
      width: 38px; height: 38px;
      border-radius: 50%;
      border: 1px solid var(--rule-strong);
      background: var(--bg-tint);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-2);
      & svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
    }
    & .ttl {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 22px;
      color: var(--ink);
      letter-spacing: -0.008em;
      line-height: 1.1;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
    & .txt {
      font-family: var(--serif);
      font-style: italic;
      font-size: 15.5px;
      color: var(--ink-3);
      line-height: 1.4;
    }
  }

  & .storage-warn {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 20px 22px;
    margin-top: 22px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;

    & .ico {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--rule-strong);
      background: var(--accent-tint);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-2);
      & svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
    }
    & p {
      font-family: var(--serif);
      font-size: 16px;
      color: var(--ink-2);
      line-height: 1.5;
      & strong { color: var(--ink); font-weight: 600; font-style: normal; }
      & em { color: var(--accent-2); font-style: italic; }
    }
  }

  /* pro card */
  & .pro-card {
    background: #eef1f3;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;

    &::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }
    & .lbl {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--accent-2);
      text-transform: uppercase;
      margin-bottom: 14px;
      display: flex; align-items: center; gap: 10px;
      &::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
    }
    & h3 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(28px, 2.8vw, 38px);
      line-height: 1.05;
      letter-spacing: -0.012em;
      color: var(--ink);
      margin-bottom: 12px;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
    & .desc {
      font-family: var(--serif);
      font-style: italic;
      font-size: 17px;
      color: var(--ink-3);
      line-height: 1.5;
    }
    & .points {
      list-style: none;
      display: flex; flex-direction: column;
      border-top: 1px solid var(--rule);

      & li {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 18px;
        padding: 14px 0;
        border-bottom: 1px dashed var(--rule);
        align-items: baseline;
        &:last-child { border-bottom: 1px solid var(--rule); }
        & .n {
          font-family: var(--mono);
          font-size: 11px;
          letter-spacing: 0.18em;
          color: var(--accent-2);
          text-transform: uppercase;
        }
        & p {
          font-family: var(--serif);
          font-size: 17px;
          color: var(--ink);
          line-height: 1.3;
          letter-spacing: -0.005em;
          & em { font-style: italic; color: var(--accent-2); }
        }
      }
    }
  }

  /* footer note */
  & .foot-note {
    margin-top: 48px;
    padding: 36px 32px;
    background: oklch(0.97 0.02 55);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    text-align: center;

    & .glyph {
      font-family: var(--serif);
      font-style: italic;
      font-size: 26px;
      color: var(--accent-2);
      line-height: 1;
      margin-bottom: 16px;
    }
    & .txt {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: clamp(20px, 2vw, 24px);
      color: var(--ink-2);
      line-height: 1.35;
      letter-spacing: -0.005em;
      text-wrap: balance;
      max-width: 680px;
      margin: 0 auto;
      & em { color: var(--accent-2); }
    }
  }

  & .cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--ink); color: #fff;
    padding: 16px 30px; border-radius: 999px;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    transition: background var(--t), transform var(--t);
    white-space: nowrap;
    &:hover { background: var(--accent-2); transform: translateY(-1px); }
    & .arr { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1; }
  }

  & .cta-strip {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;

    & .lead {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: clamp(20px, 2vw, 24px);
      color: var(--ink);
      line-height: 1.25;
      letter-spacing: -0.005em;
      & em { color: var(--accent-2); }
    }
  }

  /* variant A */
  & .va {
    background: transparent;
    padding: 48px 32px 56px;
    border-radius: var(--r-md);
  }
  & .va_inner { max-width: 880px; margin: 0 auto; }
  & .va_top {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 48px;
    & .r-h-top { justify-content: center; margin-bottom: 18px; }
    & .r-h1 { margin-bottom: 14px; }
    & .r-lead { max-width: 640px; margin: 0 auto; }
  }
  & .va_sec {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px dashed var(--rule);
    &:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
    &.no-div { border-bottom: none; }
  }

  /* responsive */
  @media (max-width: 1080px) {
    & .storage-grid { grid-template-columns: repeat(2, 1fr); }
    & .storage-grid .storage-item:nth-child(2n) { border-right: none; }
    & .storage-grid .storage-item:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); }
    & .gems-grid { grid-template-columns: repeat(3, 1fr); }
    & .pro-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  }

  @media (max-width: 820px) {
    padding: 20px 24px 56px;
    & .remove-grid { grid-template-columns: 1fr; }
    & .remove-grid .remove-item { border-right: none; border-bottom: 1px dashed var(--rule); }
    & .remove-grid .remove-item:last-child { border-bottom: none; }
    & .storage-grid { grid-template-columns: 1fr; }
    & .storage-grid .storage-item { border-right: none; border-bottom: 1px dashed var(--rule); }
    & .storage-grid .storage-item:last-child { border-bottom: none; }
    & .harms ul { grid-template-columns: 1fr; gap: 0; }
    & .gems-grid { grid-template-columns: 1fr 1fr; }
    & .sec-head { flex-direction: column; gap: 8px; align-items: flex-start; }
    & .sec-head .num { font-size: 36px; }
    & .clean-tabs { flex-wrap: wrap; overflow-x: visible; padding-bottom: 4px; }
    & .clean-steps li { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; }
    & .clean-steps li .n { font-size: 22px; }
    & .clean-steps li p { font-size: 16px; }
    & .pro-card .points li { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
    & .va { padding: 32px 0 40px; }
    & .foot-note { padding: 28px 22px; }
    & .cta-strip { grid-template-columns: 1fr; padding: 24px 22px; }
  }

  @media (max-width: 480px) {
    & .r-h1 { font-size: 34px; }
  }
}
