:root {
  --bg: #fafafa;
  --card: #ffffff;
  --line: rgba(31,41,55,.10);
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #28215f;
  --accent2: #16b7a5;
  --shadow: 0 18px 50px rgba(15,23,42,.08);
  --radius: 26px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.5;

  background-color: #FBFAFF;
  background-image:
    radial-gradient(900px 500px at 8% 8%, rgba(109, 94, 252, 0.16), transparent 55%),
    radial-gradient(800px 500px at 95% 5%, rgba(22, 183, 165, 0.13), transparent 55%),
    radial-gradient(700px 400px at 50% 100%, rgba(109, 94, 252, 0.08), transparent 60%),
    radial-gradient(rgba(109, 94, 252, 0.09) 1px, transparent 1px);
  background-size: auto, auto, auto, 22px 22px;
  background-attachment: fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1280px, calc(100% - 24px)); margin: 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 8px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
}
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8f7cff 54%, var(--accent2));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(109,94,252,.18);
  font-weight: 900; font-size: 18px;
}

.hero { padding: 10px 0 0; }
.hero-title { text-align: center; padding: 10px 0 16px; }
h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1; letter-spacing: -.03em;
}
.lead { margin: 0 auto; max-width: 500px; font-size: 16px; color: var(--muted); }

.editor {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.editor-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-items: stretch;
}
.pane {
  display: flex; flex-direction: column; min-width: 0;
  position: relative;
}
.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 8px; padding: 0 2px;
}
.pane-head h2 {
  margin: 0; font-size: 13px; font-weight: 900;
  color: #8b93a7; text-transform: uppercase; letter-spacing: .08em;
   text-align: center; width: 100%;
}
.copy-btn {
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6d5efc, #5b45e0);
  border: none; border-radius: 10px;
  padding: 7px 16px; cursor: pointer; display: none; transition: all .2s;
  box-shadow: 0 4px 12px rgba(109,94,252,.25);
}
.copy-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

textarea:not(.review-text):not(.review-text-input) { width: 100%; height: 380px; min-height: 380px; resize: none;
  border: 1px solid rgba(31,41,55,.12); border-radius: 22px;
  background: #fff; color: var(--text);
  padding: 18px; font: inherit; font-size: 15px; line-height: 1.7; outline: none;
  flex: 1;
}
textarea::placeholder { color: #9ca3af; }
textarea:focus { border-color: rgba(109,94,252,.35); box-shadow: 0 0 0 4px rgba(109,94,252,.10); }
textarea[readonly] { background: #fcfcfd; }

/* ===== RESULT PANE (главная) ===== */
.result-pane {
  width: 100%;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  border-radius: 22px;
  background: #fcfcfd;
  border: 1px solid rgba(31,41,55,.12);
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  position: relative;
}
.result-pane.empty {
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}
.result-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.result-stats {
  display: block;
  text-align: center;
  color: #261b7c;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.3s;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(109,94,252,0.12);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .result-stats {
    position: static;
    transform: none;
    margin-top: 12px;
    margin-bottom: 16px;
    text-align: center;
  }
}
/* ===== RESULT PANE (детектор) ===== */
.detect-pane {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 380px; gap: 16px; padding: 24px;
  border-radius: 22px; background: #fcfcfd;
  border: 1px solid rgba(31,41,55,.12);
}
.detect-pane.empty { color: #9ca3af; font-size: 15px; text-align: center; }
.result-score { font-size: 72px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.result-label { font-size: 16px; font-weight: 800; text-align: center; }
.result-desc { font-size: 14px; color: var(--muted); line-height: 1.6; text-align: center; max-width: 300px; }
.score-bar { width: 100%; height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 999px; transition: width .6s ease; }
.level-human   { color: #16a34a; }
.level-suspect { color: #d97706; }
.level-ai      { color: #dc2626; }
.fill-human    { background: linear-gradient(90deg, #16a34a, #22c55e); }
.fill-suspect  { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-ai       { background: linear-gradient(90deg, #ef4444, #dc2626); }
.humanize-after {
  display: inline-block; margin-top: 4px; padding: 14px 28px;
  border: 0; border-radius: 16px; font-size: 15px; font-weight: 900;
  color: #fff; background: linear-gradient(135deg, #6d5efc, #5b45e0);
  box-shadow: 0 12px 24px rgba(109,94,252,.22); cursor: pointer;
  transition: transform .18s, box-shadow .18s; text-decoration: none; text-align: center;
}
.humanize-after:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(109,94,252,.30); }

/* ===== INFO GRID (детектор) ===== */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px;
}
.info-card {
  padding: 18px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,#fcfcfd);
}
.info-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ===== ПРОГРЕСС ===== */
.loading-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; width: 100%; max-width: 300px;
}
.loading-title { font-size: 15px; font-weight: 800; color: var(--text); text-align: center; }
.loading-bar-track { width: 100%; height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.loading-bar-fill {
  height: 100%; border-radius: 999px; width: 0%;
  background: linear-gradient(90deg, #6d5efc, #8f7cff);
  transition: width 0.4s ease;
}
.loading-steps { font-size: 13px; color: #9ca3af; text-align: center; min-height: 20px; }
.loading-icon { font-size: 36px; }

.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 700;
}
.free-pill {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(22,183,165,.10); border: 1px solid rgba(22,183,165,.16);
  color: #0f766e; white-space: nowrap;
}

.cta-wrap { display: flex; justify-content: center; padding: 16px 0 4px; }
.action-btn {
  padding: 18px 36px; border: 0; border-radius: 18px;
  font-size: 18px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #6d5efc, #0c631b);
  box-shadow: 0 16px 30px rgba(109,94,252,.25);
  cursor: pointer; transition: transform .18s, box-shadow .18s;
  min-width: 240px;
}
.action-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(109,94,252,.30); }
.action-btn:active { transform: translateY(0); }
.action-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.section-card {
  margin-top: 30px; padding: 22px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.section-title { text-align: center; margin-bottom: 18px; }
.section-title h3 { margin: 0 0 8px; font-size: 28px; font-weight: 900; }
.section-title p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 100%; margin: 0 auto; }.card {
  padding: 18px; border-radius: 20px;
  border: 1px solid rgba(31,41,55,.08);
  background: linear-gradient(180deg, #fff, #fcfcfd);
  position: relative; display: flex; flex-direction: column;
}
.badge {
  display: inline-flex; padding: 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  background: rgba(109,94,252,.10); color: #5b4de7; margin-bottom: 14px;
  align-self: flex-start;
}
.price { font-size: 34px; font-weight: 900; letter-spacing: -.04em; margin: 8px 0 6px; }
.subprice { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.bullets { margin: 0 0 auto; padding-left: 18px; color: var(--muted); }
.bullets li { margin: 10px 0; }
.popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #5b45e0);
  color: #fff; font-size: 11px; font-weight: 900;
  box-shadow: var(--shadow); white-space: nowrap;
}
.card-cta {
  display: block; width: 100%; margin-top: 18px; padding: 12px;
  border-radius: 14px; font-size: 14px; font-weight: 800;
  text-align: center; cursor: pointer; border: none; transition: all .2s;
}
.card-cta-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.card-cta-outline:hover { border-color: var(--accent); color: var(--accent); }
.card-cta-primary { background: linear-gradient(135deg, var(--accent), #5b45e0); color: #fff; }
.card-cta-primary:hover { box-shadow: 0 8px 20px rgba(109,94,252,.25); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 0; margin-top: 30px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-links {
  justify-self: end;
}
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }

@media (max-width: 980px) {
  .editor-grid { grid-template-columns: 1fr; }
  textarea { min-height: 260px; height: 260px; }
  .result-pane { min-height: 260px; height: 260px; max-height: 260px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 26px; }
  .lead { font-size: 15px; }
  .editor, .section-card { padding: 14px; }
  .action-btn { width: 100%; min-width: 0; }
.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-links { justify-self: auto; }
.footer-social { position: static; transform: none; order: -1; }
  .meta-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mode-switcher { margin: 0 0 16px; width: 100%; }
}

/* ===== STATS COUNTER ===== */
.stats-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;

  margin: 14px auto 0;
  padding: 9px 20px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  font-size: 13px;
  color: #6b7280;
}

.stats-counter strong {
  color: #1f2937;
  font-weight: 700;
}

/* ===== RETRY BUTTON ===== */
.retry-btn {
  display: none; padding: 14px 28px;
  border: 1px solid var(--line); border-radius: 18px;
  font-size: 15px; font-weight: 800; color: var(--muted);
  background: var(--card); cursor: pointer; transition: all .2s;
  margin-left: 12px;
}
.retry-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== EXAMPLES ===== */
.examples { display: flex; flex-direction: column; gap: 18px; }
.example { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: linear-gradient(180deg, #fff, #fcfcfd); }
.example-label { font-size: 13px; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.example-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.example-before, .example-after { padding: 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; color: var(--text); }
.example-before { background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.12); }
.example-after { background: rgba(22,183,165,.05); border: 1px solid rgba(22,183,165,.12); }
.example-tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.tag-before { background: rgba(239,68,68,.10); color: #dc2626; }
.tag-after { background: rgba(22,183,165,.10); color: #0f766e; }
.example-before p, .example-after p { margin: 0; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color .2s; }
.faq-item:hover { border-color: rgba(109,94,252,.25); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-weight: 800; font-size: 15px; }
.faq-arrow { font-size: 12px; color: var(--muted); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 18px; }
.faq-item.open .faq-answer { max-height: 200px; padding: 0 18px 16px; }
.faq-answer p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ===== ABOUT ===== */
.about-content { color: var(--muted); font-size: 14px; line-height: 1.6; }
.about-content p { margin-bottom: 14px; }
.about-content p:last-child { margin-bottom: 0; }
.about-subtitle { font-size: 20px; font-weight: 900; color: var(--text); margin: 32px 0 14px; }
.about-list { padding-left: 20px; margin-bottom: 14px; }
.about-list li { margin: 12px 0; padding-left: 4px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 720px) {
  .example-cols { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .cta-wrap { flex-direction: column; align-items: stretch; }
  .retry-btn { margin-left: 0; margin-top: 8px; }
}

/* ===== DROPDOWN NAV ===== */
.topbar nav a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; transition: opacity .2s; }
.topbar nav a:hover { opacity: .7; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--accent);
  padding: 6px 10px; border-radius: 10px;
  transition: background .2s; font-family: inherit;
}
.nav-dropdown-btn:hover { background: rgba(109,94,252,.08); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0;
  padding-top: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  min-width: 200px; overflow: hidden; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; transition: background .15s; }
.nav-dropdown-menu a:hover { background: rgba(109,94,252,.06); color: var(--accent); }
.nav-dropdown-menu a + a { border-top: 1px solid var(--line); }

/* ===== BLOG ===== */
.blog-page { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.blog-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-page .blog-lead { color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(109,94,252,.12); transform: translateY(-2px); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 800; line-height: 1.4; margin-bottom: 0.5rem; color: var(--text); }
.blog-card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.blog-card-date { font-size: 0.8rem; color: #aaa; margin-top: 1rem; }

.article-page { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; line-height: 1.75; color: var(--text); }
.article-page h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 1.5rem; }
.article-page h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.article-page h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.article-page p { margin-bottom: 1rem; }
.article-page ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-page li { margin-bottom: 0.4rem; }
.article-page img { width: 100%; height: auto; border-radius: 14px; margin: 1.5rem 0; }
.article-page h2, .article-page h3 { text-align: left; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.article-page table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.article-page th, .article-page td { padding: 0.75rem 1rem; border: 1px solid var(--line); text-align: left; }
.article-page th { background: #f5f3ff; font-weight: 700; }
.article-page tr:hover { background: #fafafa; }

.cta-block { background: #f5f3ff; border: 1px solid #e0dbff; border-radius: 20px; padding: 1.5rem 2rem; margin: 2rem 0; text-align: center; }
.cta-block h3 { margin-top: 0; color: var(--accent); }
.cta-block .action-btn { display: inline-block; margin-top: 0.75rem; padding: 14px 32px; background: linear-gradient(135deg, var(--accent), #5b45e0); color: #fff; border-radius: 16px; text-decoration: none; font-weight: 800; font-size: 16px; box-shadow: 0 12px 24px rgba(109,94,252,.2); transition: transform .18s, box-shadow .18s; }
.cta-block .action-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(109,94,252,.28); }

@media (max-width: 600px) {
  .blog-page { padding: 1rem; }
  .blog-page h1 { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-page { padding: 1rem; }
  .article-page h1 { font-size: 1.5rem; }
  .article-page table { font-size: 0.8rem; }
  .article-page th, .article-page td { padding: 0.5rem; }
  .cta-block { padding: 1.25rem; }
}
@media (max-width: 720px) {
  .review-trigger { display: none !important; }
}

 /* Кнопка отзыва */
    .review-trigger {
      position: absolute;
      right: -48px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: var(--shadow);
      cursor: pointer;
      padding: 10px 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      transition: border-color .2s, box-shadow .2s;
      z-index: 10;
    }
    .review-trigger:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(109,94,252,.15); }
    .review-trigger svg { display: block; }
    .review-trigger span {
      font-size: 9px; font-weight: 800; color: var(--accent);
      writing-mode: vertical-rl; text-orientation: mixed;
      transform: rotate(180deg); letter-spacing: .05em; text-transform: uppercase;
    }
    .editor { position: relative; }

    /* Модальное окно отзыва */
    .review-modal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.45); z-index: 998; align-items: center; justify-content: center;
    }
    .review-modal.active { display: flex; }
    .review-box {
      background: #fff; border-radius: 24px; padding: 32px;
      max-width: 480px; width: 90%; box-shadow: 0 24px 60px rgba(0,0,0,.18);
      position: relative;
    }
    .review-box h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
    .review-box p { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
    .review-close {
      position: absolute; top: 16px; right: 16px;
      background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted);
    }
    .review-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .review-tag {
      display: flex; align-items: center; gap: 6px;
      padding: 7px 12px; border-radius: 999px;
      border: 1px solid var(--line); font-size: 13px; font-weight: 600;
      cursor: pointer; transition: all .15s; color: var(--muted);
      background: none; font-family: inherit;
    }
    .review-tag.selected { border-color: var(--accent); color: var(--accent); background: rgba(109,94,252,.07); }
    .review-tag input { display: none; }
    .review-name, .review-text {
      width: 100%; padding: 12px 14px; border: 1px solid rgba(31,41,55,.12);
      border-radius: 14px; font: inherit; font-size: 14px; outline: none;
      transition: border-color .2s; box-sizing: border-box; margin-bottom: 12px;
    }
    .review-name:focus, .review-text:focus { border-color: rgba(109,94,252,.4); }
    .review-text { min-height: 40px; resize: none; }
    .review-submit {
      width: 100%; padding: 14px; border: none; border-radius: 14px;
      background: linear-gradient(135deg, #6d5efc, #5b45e0); color: #fff;
      font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
      transition: opacity .2s;
    }
    .review-submit:hover { opacity: .9; }
    .review-success { text-align: center; padding: 20px 0 8px; }
    .review-success svg { margin-bottom: 12px; }
    .review-success h4 { margin: 0 0 6px; font-size: 18px; }
    .review-success p { margin: 0; font-size: 14px; color: var(--muted); }
    
    /* Ползунок */
    .slider-wrap {
      margin: 0 0 18px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 16px 20px;
    }
    .slider-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 12px;
    }
    .slider-label { font-size: 14px; font-weight: 700; color: var(--muted); }
    .slider-value {
      font-size: 18px; font-weight: 900; color: var(--accent);
    }
    .slider-track { position: relative; }
    input[type=range] {
      width: 100%; height: 6px;
      -webkit-appearance: none; appearance: none;
      background: linear-gradient(90deg, var(--accent) var(--val, 50%), #e5e7eb var(--val, 50%));
      border-radius: 999px; outline: none; cursor: pointer;
      min-height: unset; border: none; padding: 0;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--accent); cursor: pointer;
      box-shadow: 0 2px 8px rgba(109,94,252,.3);
    }
    input[type=range]::-moz-range-thumb {
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--accent); cursor: pointer; border: none;
      box-shadow: 0 2px 8px rgba(109,94,252,.3);
    }
    .slider-hints {
      display: flex; justify-content: space-between;
      font-size: 12px; color: #9ca3af; margin-top: 6px;
    }
    
     .reviews-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px;
      margin-top: 24px;
    }
    .review-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .review-header {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .review-avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), #8f7cff);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-weight: 900; font-size: 16px;
      flex-shrink: 0;
    }
    .review-author { font-weight: 800; font-size: 15px; }
    .review-date { font-size: 12px; color: var(--muted); }
    .review-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
    .review-text { font-size: 14px; line-height: 1.7; color: var(--text); }
    .review-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .review-tag-item {
      padding: 4px 10px; border-radius: 999px;
      background: rgba(109,94,252,.08);
      color: var(--accent); font-size: 12px; font-weight: 700;
    }
    .reviews-empty {
      text-align: center; padding: 60px 20px; color: var(--muted);
    }
    .reviews-empty svg { margin-bottom: 16px; opacity: .4; }
    .cta-review {
      text-align: center;
      margin-top: 40px;
      padding: 32px;
      background: linear-gradient(135deg, #f5f3ff, #ede9ff);
      border-radius: 24px;
      border: 1px solid #e0dbff;
    }
    .cta-review h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
    .cta-review p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
    .cta-review-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 14px 28px; border-radius: 16px;
      background: linear-gradient(135deg, #6d5efc, #5b45e0);
      color: #fff; font-size: 15px; font-weight: 800;
      text-decoration: none; cursor: pointer; border: none;
      font-family: inherit; transition: opacity .2s;
    }
    .cta-review-btn:hover { opacity: .9; }

    /* Модальное окно отзыва */
    .review-modal {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.45); z-index: 998; align-items: center; justify-content: center;
    }
    .review-modal.active { display: flex; }
    .review-box {
      background: #fff; border-radius: 24px; padding: 32px;
      max-width: 480px; width: 90%; box-shadow: 0 24px 60px rgba(0,0,0,.18);
      position: relative;
    }
    .review-box h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
    .review-box p { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
    .review-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
    .review-tags-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .review-tag-btn {
      padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
      font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
      color: var(--muted); background: none; font-family: inherit;
    }
    .review-tag-btn.selected { border-color: var(--accent); color: var(--accent); background: rgba(109,94,252,.07); }
    .review-name, .review-text-input {
      width: 100%; padding: 12px 14px; border: 1px solid rgba(31,41,55,.12);
      border-radius: 14px; font: inherit; font-size: 14px; outline: none;
      transition: border-color .2s; box-sizing: border-box; margin-bottom: 12px;
    }
    .review-name:focus, .review-text-input:focus { border-color: rgba(109,94,252,.4); }
    .review-text-input { min-height: 40px; resize: none; }
    .review-submit {
      width: 100%; padding: 14px; border: none; border-radius: 14px;
      background: linear-gradient(135deg, #6d5efc, #5b45e0); color: #fff;
      font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
    }
    .review-success { text-align: center; padding: 20px 0 8px; }
    .review-success h4 { margin: 0 0 6px; font-size: 18px; }
    .review-success p { margin: 0; font-size: 14px; color: var(--muted); }

    @media (max-width: 600px) {
      .reviews-grid { grid-template-columns: 1fr; }
    }
    
    /* ===== ПЕРЕКЛЮЧАТЕЛЬ РЕЖИМА ===== */
.mode-switcher {
  display: flex; gap: 6px;
  background: #f3f4f6; border-radius: 14px; padding: 4px;
  margin: 0 auto 16px; width: fit-content;
}
.mode-btn {
  padding: 8px 20px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .2s; background: none; color: var(--muted);
  font-family: inherit; white-space: nowrap;
}
.mode-btn.active {
  background: var(--card); color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mode-btn.active.advanced { color: var(--accent); }

.mode-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  transform: none;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: normal;
  width: 240px;
  max-width: 240px;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
  z-index: 1000;
}

.mode-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 28px;
  left: auto;
  transform: none;
  border: 5px solid transparent;
  border-top-color: #1f2937;
}

#modeAdvanced:hover .mode-tooltip {
  display: block;
}

#pricing {
  max-width: 750px; margin-left: auto; margin-right: auto;
}

/* ===== БУРГЕР И МОБИЛЬНОЕ МЕНЮ ===== */
.nav-desktop { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 10px; transition: background .2s; }
.burger:hover { background: rgba(109,94,252,.08); }
.burger span { display: block; width: 100%; height: 2px; background: var(--accent); border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }
.mobile-menu.open { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.mobile-menu-label { font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 12px 16px 4px; }
.mobile-menu a { padding: 13px 16px; font-size: 15px; font-weight: 700; color: var(--text); border-top: 1px solid var(--line); transition: background .15s, color .15s; }
.mobile-menu a:first-of-type { border-top: none; }
.mobile-menu a:hover { background: rgba(109,94,252,.06); color: var(--accent); }
.mobile-menu-divider { height: 6px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.pricing-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 4px;
}

.pricing-period {
  color: #6b7280;
  font-size: 14px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}


.pane-label {
  font-size: 13px;
  font-weight: 900;
  color: #8b93a7;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  width: 100%;
}

.pane-label-result {
  font-size: 13px;
  font-weight: 900;
  color: #8b93a7;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  flex: 1;
}

.pane-head h2, .pane-label, .pane-label-result {
  font-size: 13px; font-weight: 900;
  color: #8b93a7; text-transform: uppercase; letter-spacing: .08em;
  text-align: center; width: 100%; margin: 0 0 8px;
}
.pricing-cards { grid-template-columns: repeat(3, 1fr) !important; }
.pricing-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pricing-period { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 auto; }
.pricing-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pricing-item:last-child { border-bottom: none; }
@media (max-width: 720px) { .pricing-cards { grid-template-columns: 1fr !important; } }



.pane-head h2, .pane-label, .pane-label-result {
  font-size: 13px; font-weight: 900;
  color: #8b93a7; text-transform: uppercase; letter-spacing: .08em;
  text-align: center; width: 100%; margin: 0 0 8px;
}
.pricing-cards { grid-template-columns: repeat(3, 1fr); }
.pricing-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pricing-period { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 auto; }
.pricing-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pricing-item:last-child { border-bottom: none; }
@media (max-width: 980px) { .pricing-cards { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .nav-desktop { display: none; } .burger { display: flex; } }

.pricing-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .pricing-cards { grid-template-columns: 1fr; } }







.seo-flex {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.seo-text {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.seo-text h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.seo-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-text ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.seo-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.seo-image img {
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* адаптив */
@media (max-width: 720px) {
  .seo-flex {
    flex-direction: column;
    gap: 24px;
  }

  .seo-text h2 {
    font-size: 24px;
  }
}


.about-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-content {
  flex: 1.2;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


.about-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-text {
  flex: 1.2;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
}


.about-middle {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

.about-middle .about-text {
  flex: 1.2;
}

.about-middle .about-image {
  flex: 1;
}

.about-middle .about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
}


@media (max-width: 768px) {
  .about-middle {
    flex-direction: column;
  }

  .about-middle .about-image {
    order: -1; /* картинка будет ВЫШЕ текста */
    margin-bottom: 16px;
  }

  .about-middle .about-image img {
    max-width: 100%;
  }
}

.about-middle .about-image img {
  max-width: 520px; /* было 420 */
}

.about-image {
  margin-top: -10px;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(109,94,252,0.1);
  position: relative;
  flex-shrink: 0;
  margin-top: 3px;
}

.check::after {
  content: "✓";
  position: absolute;
  font-size: 12px;
  color: #6d5efc;
  left: 4px;
  top: 0px;
}


.check {
  background: rgba(109,94,252,0.15); /* было слабее */
}

.check::after {
  color: #5b4cf0; /* чуть насыщеннее */
  
  
  
}




@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 16px;
  }

  .about-image {
    margin: 12px 0;
  }

  .about-subtitle {
    margin-top: 20px;
  }
  
  .prompt-nav {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.prompt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.prompt-links a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(109,94,252,.1);
  color: #5b4de7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.prompt-links a:hover {
  background: rgba(109,94,252,.2);
}

.prompt-box {
  position: relative;
  margin: 16px 0;
}

.prompt-box pre {
  background: #111827;
  color: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.prompt-box .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6d5efc;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
  
}


h3 {
  text-align: center;
}


.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.rating-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 15px;
}



.rating-count {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}


.rating-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.rating-link:hover .rating-num {
  text-decoration: underline;
}


.limit-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
}

.limit-cta-icon {
  font-size: 36px;
}

.limit-cta-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.limit-cta-desc {
  font-size: 14px;
  color: #6b7280;
  max-width: 280px;
  line-height: 1.5;
}

.limit-cta-btn {
  background: linear-gradient(135deg, #6d5efc, #5b45e0);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 4px;
}

.limit-cta-btn:hover {
  opacity: 0.9;
}

.limit-cta-sub {
  font-size: 12px;
  color: #9ca3af;
}

.footer-social {
  display: flex;
  gap: 14px;

}
.footer-vk {
  color: #6b7280;
  transition: color .2s;
}
.footer-vk:hover {
  color: #0077ff;
}


.footer-tg {
  color: #6b7280;
  transition: color .2s;
}
.footer-tg:hover {
  color: #2aabee;
}


    .notfound {
      min-height: calc(100vh - 190px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 56px 0 72px;
    }

    .notfound-card {
      width: 100%;
      max-width: 760px;
      text-align: center;
      background: #fff;
      border: 1px solid rgba(31,41,55,.08);
      border-radius: 28px;
      padding: 56px 28px;
      box-shadow: 0 20px 60px rgba(31,41,55,.08);
      position: relative;
      overflow: hidden;
    }

    .notfound-card::before {
      content: "";
      position: absolute;
      inset: -120px auto auto 50%;
      width: 420px;
      height: 420px;
      transform: translateX(-50%);
      background: radial-gradient(circle, rgba(109,94,252,.18), rgba(109,94,252,0) 68%);
      pointer-events: none;
    }

    .notfound-code {
      position: relative;
      font-size: clamp(76px, 16vw, 150px);
      line-height: .85;
      font-weight: 950;
      letter-spacing: -.08em;
      color: #6d5efc;
      margin-bottom: 22px;
    }

    .notfound-card h1 {
      position: relative;
      margin: 0 0 14px;
      font-size: clamp(28px, 5vw, 46px);
      line-height: 1.05;
      letter-spacing: -.04em;
      color: #111827;
    }

    .notfound-card p {
      position: relative;
      max-width: 540px;
      margin: 0 auto 28px;
      color: #6b7280;
      font-size: 17px;
      line-height: 1.55;
    }

    .notfound-actions {
      position: relative;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 28px;
    }

    .notfound-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 22px;
      border-radius: 14px;
      text-decoration: none;
      font-weight: 850;
      font-size: 15px;
      transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

    .notfound-btn-primary {
      color: #fff;
      background: linear-gradient(135deg,#6d5efc,#5b45e0);
      box-shadow: 0 12px 28px rgba(109,94,252,.24);
    }

    .notfound-btn-secondary {
      color: #111827;
      background: #fff;
      border: 1px solid rgba(31,41,55,.12);
    }

    .notfound-btn:hover {
      transform: translateY(-1px);
    }

    .notfound-links {
      position: relative;
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      color: #6b7280;
      font-size: 14px;
    }

    .notfound-links a {
      color: #6d5efc;
      font-weight: 750;
      text-decoration: none;
    }

    .notfound-links a:hover {
      text-decoration: underline;
    }

    @media (max-width: 640px) {
      .notfound {
        padding: 34px 0 52px;
      }

      .notfound-card {
        padding: 42px 18px;
        border-radius: 22px;
      }

      .notfound-actions {
        flex-direction: column;
      }

      .notfound-btn {
        width: 100%;
      }
    }
  
  
  /* ===== СТИЛЬНАЯ ТАБЛИЦА СРАВНЕНИЯ ===== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  border: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
}

.compare-table thead th {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9ff 100%);
  color: var(--accent);
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid rgba(109,94,252,.15);
}

.compare-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31,41,55,.06);
  vertical-align: middle;
  color: var(--text);
}

.compare-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.compare-table tbody tr:hover {
  background: rgba(109,94,252,.04);
  transition: background .15s;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Выделенная строка (твой сервис) */
.compare-table tbody tr.featured {
  background: rgba(109,94,252,.07) !important;
  position: relative;
}
.compare-table tbody tr.featured td:first-child {
  border-left: 3px solid var(--accent);
  font-weight: 900;
}

/* Название сервиса */
.compare-table .service-name {
  font-weight: 800;
  color: var(--text);
  font-size: 15px;
}

/* Цена */
.compare-table .price-cell {
  font-weight: 700;
  color: var(--text);
}
.compare-table .price-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* Бейджи языка */
.lang-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lang-native {
  background: rgba(22,183,165,.12);
  color: #0f766e;
}
.lang-translated {
  background: rgba(107,114,128,.12);
  color: #6b7280;
}

/* Иконки да/нет */
.check-yes,
.check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 12px;
}
.check-yes {
  background: rgba(22,163,74,.12);
  color: #16a34a;
}
.check-no {
  background: rgba(239,68,68,.10);
  color: #dc2626;
}

@media (max-width: 720px) {
  .compare-table { font-size: 13px; }
  .compare-table thead th,
  .compare-table tbody td { padding: 10px 12px; }
}

/* ===== ОГЛАВЛЕНИЕ СТАТЬИ ===== */
.toc {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9ff 100%);
  border: 1px solid rgba(109,94,252,.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.toc-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title::before {
  content: "📑";
  font-size: 16px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.toc li {
  counter-increment: toc-counter;
  padding: 6px 0;
  border-bottom: 1px solid rgba(109,94,252,.08);
}
.toc li:last-child {
  border-bottom: none;
}
.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color .15s;
}
.toc a::before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(109,94,252,.12);
  color: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.toc a:hover {
  color: var(--accent);
}
.toc a:hover::before {
  background: var(--accent);
  color: #fff;
}
html { scroll-behavior: smooth; }

/* ===== СЕТКА БЛОГА НА ГЛАВНОЙ ===== */
#blog .blog-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
#blog .blog-grid-home a {
  margin-top: 0 !important;
}
@media (max-width: 720px) {
  #blog .blog-grid-home {
    grid-template-columns: 1fr;
  }
}


.quota-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22,183,165,.08);
  border: 1px solid rgba(22,183,165,.16);
  border-radius: 999px;
  padding: 6px 14px;
}
.quota-bar-track {
  width: 120px;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
}
.quota-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16b7a5, #6d5efc);
  transition: width 0.5s ease, background 0.5s ease;
}
.quota-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
}


@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 16px 30px rgba(109,94,252,.25); }
  50% { box-shadow: 0 16px 40px rgba(109,94,252,.5); transform: translateY(-2px); }
}
.action-btn.pulse {
  animation: pulse-btn 1.8s ease-in-out infinite;
}

@media (max-width: 640px) {
  .day-pass-card {
    display: block !important;
    padding: 18px 20px !important;
  }

  .day-pass-left {
    align-items: flex-start !important;
  }

  .day-pass-text {
    min-width: 0 !important;
  }

  .day-pass-text div:first-child {
    line-height: 1.25 !important;
  }

  .day-pass-text div:last-child {
    line-height: 1.45 !important;
  }

  .day-pass-buy {
    margin-top: 14px !important;
    justify-content: flex-start !important;
    padding-left: 34px !important;
  }
}

@media (max-width: 720px) {
  .meta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .meta-row > div:first-child {
    align-self: flex-start;
  }

  .quota-bar-wrap {
    width: 100%;
  }

  .mode-switcher {
    margin-top: 0;
  }
}

.contacts-page {
  padding: 48px 0 72px;
  display: flex;
  justify-content: center;
}

.contacts-card {
  width: 100%;
  max-width: 820px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contacts-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(109,94,252,.16), transparent 70%);
}

.contacts-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(109,94,252,.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.contacts-card h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}

.contacts-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.contact-box {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fcfcfd);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.contact-box:hover {
  transform: translateY(-2px);
  border-color: rgba(109,94,252,.28);
  box-shadow: 0 12px 28px rgba(109,94,252,.1);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(109,94,252,.1);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-box strong {
  font-size: 16px;
  color: var(--text);
}

.contact-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contacts-section,
.requisites {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contacts-section h3,
.requisites h3 {
  text-align: left;
  font-size: 20px;
  margin-bottom: 8px;
}

.contacts-section p,
.requisites p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.requisites {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .contacts-page {
    padding: 28px 0 48px;
  }

  .contacts-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

.reviews-grid {
  columns: 4 260px;
  column-gap: 16px;
  display: block;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 16px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 48px 0 72px;
  display: flex;
  justify-content: center;
}

.legal-card {
  width: 100%;
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(109,94,252,.16), transparent 70%);
  pointer-events: none;
}

.legal-badge {
  position: relative;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(109,94,252,.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-card h1 {
  position: relative;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  color: var(--text);
}

.legal-lead {
  position: relative;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-date {
  position: relative;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
}

.legal-section {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text);
}

.legal-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 18px;
}

.legal-plan {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.legal-plan-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
}

.legal-plan-price {
  font-size: 28px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.legal-plan p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.legal-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.legal-list li::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(109,94,252,.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

@media (max-width: 720px) {
  .legal-page {
    padding: 28px 0 48px;
  }

  .legal-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .legal-plans {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-lead {
    font-size: 15px;
  }
}

#payModal label {
  color: #6b7280 !important;
  font-weight: 400 !important;
  opacity: .9;
}

#payModal label a {
  color: #6b7280 !important;
  font-weight: 600 !important;
}

#payModal div a[onclick*="restoreAccess"] {
  color: #6d5efc !important;
  font-weight: 900 !important;
}

@media (max-width: 720px) {
  .result-wrapper {
    display: none;
  }

  .result-wrapper.is-visible {
    display: flex;
  }

  #sourceWrapper.is-hidden-mobile {
    display: none;
  }

  textarea:not(.review-text):not(.review-text-input),
  .result-pane {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

.result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.retry-top-btn {
  display: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: #fff;
  border: 1px solid rgba(109,94,252,.22);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all .2s;
}

.retry-top-btn:hover {
  border-color: var(--accent);
  background: rgba(109,94,252,.06);
}

@media (max-width: 720px) {
  .pane-head {
    gap: 8px;
  }

  .result-actions {
    gap: 6px;
  }

  .retry-top-btn,
  .copy-btn {
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  #retryBtn {
    display: none !important;
  }
}