    @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
      src: url(/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
      unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
    @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
      src: url(/fonts/inter-latin-wght-normal.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; }
    @font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.44%; descent-override: 22.52%;
      line-gap-override: 0%; size-adjust: 107.12%; }
    :root {
      --bg: #f4efe8;
      --bg-glow: rgba(15, 110, 98, 0.12);
      --surface: #fffdf9;
      --surface-2: #f6f1ea;
      --surface-3: #ece5da;
      --ink: #1d1814;
      --muted: #675c52;
      --line: rgba(68, 48, 32, 0.11);
      --line-strong: rgba(68, 48, 32, 0.2);
      --accent: #0f6e62;
      --accent-2: #12897a;
      --accent-soft: #e3f3ef;
      --gold-soft: #fff1d6;
      --gold-ink: #7a4c00;
      --warn-bg: #fff4e4;
      --warn-ink: #8a5a16;
      --good: #15803d;
      --good-soft: rgba(21, 128, 61, 0.12);
      --bad: #c2410c;
      --shadow-sm: 0 2px 8px rgba(60, 40, 20, 0.05);
      --shadow: 0 14px 38px -8px rgba(60, 40, 20, 0.12);
      --radius: 20px;
    }
    /* Тёмная тема: по системе, если посетитель не выбрал светлую; или выбранная кнопкой (data-theme). */
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --bg: #12100e;
        --bg-glow: rgba(47, 179, 159, 0.13);
        --surface: #1b1815;
        --surface-2: #24201c;
        --surface-3: #2e2924;
        --ink: #f2ece5;
        --muted: #b3a89c;
        --line: rgba(255, 240, 220, 0.1);
        --line-strong: rgba(255, 240, 220, 0.2);
        --accent: #2fb39f;
        --accent-2: #3cc7b2;
        --accent-soft: rgba(47, 179, 159, 0.14);
        --gold-soft: rgba(255, 196, 92, 0.16);
        --gold-ink: #ffcf7a;
        --warn-bg: rgba(255, 180, 80, 0.12);
        --warn-ink: #ffc777;
        --good: #4ade80;
        --good-soft: rgba(74, 222, 128, 0.13);
        --bad: #fb923c;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
        --shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
      }
    }
    :root[data-theme="dark"] {
      --bg: #12100e;
      --bg-glow: rgba(47, 179, 159, 0.13);
      --surface: #1b1815;
      --surface-2: #24201c;
      --surface-3: #2e2924;
      --ink: #f2ece5;
      --muted: #b3a89c;
      --line: rgba(255, 240, 220, 0.1);
      --line-strong: rgba(255, 240, 220, 0.2);
      --accent: #2fb39f;
      --accent-2: #3cc7b2;
      --accent-soft: rgba(47, 179, 159, 0.14);
      --gold-soft: rgba(255, 196, 92, 0.16);
      --gold-ink: #ffcf7a;
      --warn-bg: rgba(255, 180, 80, 0.12);
      --warn-ink: #ffc777;
      --good: #4ade80;
      --good-soft: rgba(74, 222, 128, 0.13);
      --bad: #fb923c;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
      --shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
      color-scheme: dark;
    }
    :root[data-theme="light"] { color-scheme: light; }
    * { box-sizing: border-box; }
    body {
      margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
      background-image: radial-gradient(1100px 460px at 50% -140px, var(--bg-glow), transparent 70%); background-repeat: no-repeat;
      font-family: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
      font-feature-settings: "cv11", "ss01"; line-height: 1.45;
      -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
    }
    a { color: var(--accent); }
    button, input, select { font: inherit; color: inherit; }
    button { cursor: pointer; }
    .wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0 56px; }
    .hidden { display: none !important; }
    .num, .price, .deal b, .stat b { font-variant-numeric: tabular-nums; }

    /* Шапка */
    .bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 8px 12px;
      background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
    .logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
    .logo i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; color: white;
      background: linear-gradient(150deg, var(--accent-2), var(--accent)); }
    .top-links { display: flex; flex: none; gap: 4px; align-items: center; font-size: 14px; color: var(--muted); }
    .top-links > a:not(.icon-btn) { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 999px; font-weight: 600; }
    .top-links > a:not(.icon-btn):hover { color: var(--ink); background: var(--surface-2); }
    .icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
      border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
    .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
    .icon-btn svg { width: 18px; height: 18px; display: block; }
    .ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
    .theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: block; }
    .theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
      :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
    }

    /* Первый экран и поиск */
    .hero { text-align: center; padding: 7vh 0 3vh; }
    .hero-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
      background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
    .hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
    .hero h1 { margin: 0 auto 10px; max-width: 820px; font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
    .hero h1 span { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text;
      color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
    .hero p { margin: 0 auto 24px; color: var(--muted); max-width: 620px; font-size: 16px; line-height: 1.5; }
    body.home.searched .hero { padding: 18px 0 6px; }
    body.home.searched .hero h1, body.home.searched .hero p, body.home.searched .hero-badge, body.searched .popular { display: none; }

    .search { position: relative; max-width: 760px; margin: 0 auto; }
    .search form { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 20px; background: var(--surface);
      border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s; }
    .search form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
    .search form > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
    .search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px; padding: 10px 4px; }
    .search input::placeholder { color: var(--muted); opacity: 0.8; }
    .search .go { flex: none; border: 0; border-radius: 14px; height: 46px; padding: 0 24px; font-weight: 800; color: white;
      background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
    .search .go:disabled { opacity: 0.6; cursor: default; }
    .suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line-strong);
      border-radius: 16px; box-shadow: var(--shadow); padding: 6px; text-align: left; }
    .suggest button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; text-align: left; }
    .suggest button.on, .suggest button:hover { background: var(--accent-soft); }
    .suggest small { color: var(--muted); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
    .suggest mark { background: none; color: var(--accent); font-weight: 800; }

    .popular { max-width: 880px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
      padding: 7px 8px 7px 13px; font-weight: 700; font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow-sm); }
    .chip:not(:has(small)) { padding-right: 13px; }
    .chip:hover { border-color: var(--accent); color: var(--accent); }
    .chip small { color: var(--accent); background: var(--accent-soft); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
    .chip.found { border-style: dashed; }

    /* Внутренние страницы: заголовок слева, сразу цифры и таблица */
    body.inner .hero { text-align: left; padding: 18px 0 4px; }
    body.inner .hero h1 { margin: 0 0 8px; max-width: none; font-size: clamp(25px, 3.6vw, 38px); letter-spacing: -0.035em; }
    body.inner .hero p { margin: 0 0 14px; max-width: 860px; font-size: 15px; }
    body.inner .search { max-width: 640px; margin: 0; }
    body.inner .search form { padding: 5px 5px 5px 14px; border-radius: 16px; box-shadow: var(--shadow-sm); }
    body.inner .search input { font-size: 16px; padding: 7px 4px; }
    body.inner .search .go { height: 38px; padding: 0 18px; border-radius: 11px; }
    body.inner .prefetch:empty { display: none; }
    .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
    .stat { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
    .stat small { display: block; color: var(--muted); font-size: 13px; }
    .stat b { display: block; font-size: 21px; letter-spacing: -0.03em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .stat.main b { color: var(--accent); font-size: 25px; }
    .stat.good b { color: var(--good); }

    .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin-top: 16px; }

    /* Статус обработки */
    .status-head { display: flex; align-items: center; gap: 18px; }
    /* Без регистрации свойство --p не анимируется: кольцо прыгало скачками. */
    @property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
    .ring { --p: 0; width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center;
      background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); transition: --p 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
    .ring.complete { animation: pulse 0.7s ease; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); transform: scale(1); } 40% { transform: scale(1.08); }
      100% { box-shadow: 0 0 0 18px transparent; transform: scale(1); } }
    .ring span { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
    .status-text { flex: 1; min-width: 0; }
    .status-text h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
    .status-text p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
    .found-count { text-align: right; }
    .found-count b { display: block; font-size: 28px; letter-spacing: -0.04em; }
    .found-count small { color: var(--muted); }
    .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
    .step { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; font-size: 13px; }
    .step b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
    .step b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
    .step.active { border-color: var(--accent); background: var(--accent-soft); }
    .step.active b::before { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
    .step.done b::before { background: var(--accent); border-color: var(--accent); }
    .step small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .markets { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
    .mk { flex: 1 1 220px; font-size: 13px; color: var(--muted); }
    .mk .line, .snap-progress .line { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
    .mk .line i, .snap-progress .line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
    .snap-progress { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }

    .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
    .tag { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
    .tag b { color: var(--ink); }

    .refine h3, .results h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.02em; }
    .refine .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .refine .chip { font-weight: 700; }
    .refine.main { border-color: var(--accent); }

    .banner { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }

    .best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
    .best-card { border-radius: 18px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .best-card .kind { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-ink); }
    .best-card .price { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
    .best-card .what { font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .best-card .who { font-size: 12.5px; color: var(--muted); }
    .best-card a { margin-top: auto; align-self: flex-start; }
    .best-card .risky { color: var(--bad); }

    .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
    .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); flex: none; }
    .seg button { border: 0; background: none; padding: 6px 12px; font-weight: 700; font-size: 13px; }
    .seg button.on { background: var(--ink); color: var(--surface); }
    .tools select, .tools input[type="search"] { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface); font-size: 13px; }
    .tools label { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
    .tools .spacer { flex: 1; }
    .ghost { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
    .ghost:hover { border-color: var(--accent); color: var(--accent); }

    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; min-width: 760px; }
    th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
    th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
    tbody tr:hover { background: var(--surface-2); }
    td.name { font-weight: 700; max-width: 340px; }
    td.name a { color: var(--ink); text-decoration: none; }
    td.name a:hover { color: var(--accent); }
    td.price { font-weight: 800; color: var(--accent); white-space: nowrap; font-size: 16px; }
    td.num { color: var(--muted); white-space: nowrap; }
    .opt { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; }
    .mkt { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
    .buy { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 800; white-space: nowrap; }
    .buy:hover { background: var(--accent-2); }
    tr.new { animation: flash 1.2s ease; }
    @keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
    /* Появление: карточки, строки таблицы, «Сейчас выгодно» — снизу вверх по очереди. */
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes pop { 0% { opacity: 0; transform: scale(0.92); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: none; } }
    .card:not(.hidden) { animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
    tr.rise { animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both, flash 1.4s ease; }
    .best-card { animation: pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .best-card:nth-child(2) { animation-delay: 0.08s; }
    .best-card:nth-child(3) { animation-delay: 0.16s; }
    .step.done b::before { animation: pop 0.4s ease; }
    .saving:not(.hidden) { animation: pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .saving b { display: inline-block; }
    .saving b.counting { animation: glow 1.6s ease; }
    @keyframes glow { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 18px rgba(31, 157, 85, 0.45); } }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
    .more { display: block; margin: 12px auto 0; }
    .empty { color: var(--muted); padding: 18px 4px; text-align: center; }

    .prefetch { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
    .prefetch b { color: var(--accent); }

    .history { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; }
    .history .text { flex: 1 1 260px; font-size: 14px; }
    .history .text b { font-size: 15px; }
    .history .down { color: var(--good); font-weight: 800; }
    .history .up { color: var(--bad); font-weight: 800; }
    .history svg { flex: none; }
    .history form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
    .history input { width: 110px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: var(--surface); font-size: 13px; }
    .tg-offer { flex-basis: 100%; font-size: 13.5px; }
    .tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
    .tg-btn svg { width: 16px; height: 16px; flex: none; color: #229ed9; }
    .watch-mine { flex-basis: 100%; text-align: left; border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
    .watch-mine:hover { text-decoration: underline; }

    td.reviews { white-space: nowrap; min-width: 96px; }
    td.reviews b { font-size: 15px; }
    td.reviews small { display: block; color: var(--muted); font-size: 12px; }
    .rv-good { color: var(--good); } .rv-mid { color: var(--ink); } .rv-bad { color: var(--bad); }
    .rv-bar { display: block; width: 72px; height: 4px; margin: 4px 0 3px; border-radius: 99px;
      background: linear-gradient(90deg, var(--good) var(--share), rgba(194, 65, 12, 0.55) var(--share)); }
    .muted-small { color: var(--muted); font-size: 12.5px; }
    .badge { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
    .badge.kind { background: var(--surface-2); color: var(--ink); }
    .badge.good { background: var(--good-soft); color: var(--good); }
    .badge.new { background: var(--gold-soft); color: var(--gold-ink); }
    .badge.warn { background: rgba(194, 65, 12, 0.14); color: var(--bad); }
    /* Длинные пометки в таблице переносятся: иначе колонка "Купить" уходит за правый край. */
    td .badge { white-space: normal; border-radius: 10px; }
    td.kind-cell, td.seller { max-width: 210px; }
    /* Кнопка остается видна и при горизонтальной прокрутке широкой таблицы. */
    td.cell-buy { position: sticky; right: 0; background: var(--surface); }
    tbody tr:hover td.cell-buy { background: var(--surface-2); }

    .watch-link { position: relative; }
    .watch-link button { display: inline-flex; align-items: center; gap: 5px; height: 36px; white-space: nowrap; border: 1px solid var(--line);
      background: var(--surface-2); border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
    .watch-link button svg { width: 16px; height: 16px; flex: none; }
    .watch-link button b { color: var(--ink); }
    .watch-link button.hit, .watch-link button.hit b { border-color: var(--good); color: var(--good); }
    .watch-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(380px, 90vw); background: var(--surface); border: 1px solid var(--line);
      border-radius: 16px; box-shadow: var(--shadow); padding: 10px; }
    .watch-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; font-size: 13px; color: var(--ink); }
    .watch-row.hit { background: var(--good-soft); }
    .watch-row span { flex: 1; min-width: 0; }
    .watch-row a { cursor: pointer; }
    .watch-row small { display: block; color: var(--muted); }
    .watch-row button { border: 0; background: none; color: var(--muted); padding: 2px 6px; }
    .watch-tg { margin-top: 6px; padding: 10px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; }

    /* Готовый HTML для поисковиков и первый экран */
    .muted { color: var(--muted); font-size: 14px; }
    .seo h2, .snapshot h2, .deals h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.03em; }
    .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
    .section-head small { color: var(--muted); font-size: 13px; }
    .deals { margin-top: 28px; }
    .deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
    .deal { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--ink); min-width: 0;
      background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
    .deal:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
    .deal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
    .deal-q { font-weight: 700; font-size: 14.5px; line-height: 1.3; min-width: 0; }
    .svc-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
      background: var(--surface-2); border: 1px solid var(--line); color: var(--brand, var(--ink)); }
    .svc-icon svg { width: 19px; height: 19px; }
    .svc-icon b { font-size: 15px; color: var(--ink); }
    .deals:not(.services) .svc-icon { width: 28px; height: 28px; border-radius: 9px; }
    .deals:not(.services) .svc-icon svg { width: 16px; height: 16px; }
    h2.hot { display: flex; align-items: center; gap: 8px; }
    h2.hot .ico { width: 22px; height: 22px; color: #f97316; }
    .deal b { font-size: 25px; letter-spacing: -0.04em; color: var(--accent); }
    .deal-off { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
      background: var(--good-soft); color: var(--good); font-size: 13px; font-weight: 800; }
    .deal small { color: var(--muted); font-size: 13px; }
    .services .deal b { font-size: 21px; }
    .services .deal-tiers { color: var(--muted); font-size: 13px; }
    .how ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
    .how li { counter-increment: step; padding: 14px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
    .how li::before { content: counter(step); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: white; background: var(--accent); }
    .how span, .why span { color: var(--muted); font-size: 14px; }
    .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .why-grid div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
    .pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
    .pop-grid h3 { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 16px;
      display: flex; align-items: center; gap: 10px; }
    .pop-grid h3 a { color: var(--ink); text-decoration: none; }
    .pop-grid h3 a:hover { color: var(--accent); }
    .cat-group { padding: 14px 16px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
    .cat-group .svc-icon { width: 30px; height: 30px; background: var(--surface); }
    .cat-group .svc-icon svg { width: 17px; height: 17px; }
    .cat-group .links a:hover { background: var(--surface); }
    .cat-group .links a.all { color: var(--accent); font-size: 13px; }
    .links { display: flex; flex-direction: column; gap: 2px; }
    .links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px;
      text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
    .links a:hover { background: var(--surface-2); color: var(--accent); }
    .links small { flex: none; color: var(--ink); font-weight: 700; font-size: 13px; padding: 2px 9px; border-radius: 8px; background: var(--surface-3);
      font-variant-numeric: tabular-nums; }
    .links a:hover small { background: var(--accent-soft); color: var(--accent); }
    .links.plain a { display: block; }
    .links.plain small { display: block; background: none; padding: 2px 0 0; font-weight: 500; }
    .faq details { border-top: 1px solid var(--line); padding: 12px 0; }
    .faq summary { cursor: pointer; font-weight: 700; }
    .faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
    .text p { margin: 0 0 12px; line-height: 1.6; }
    .snapshot td small { color: var(--muted); font-weight: 500; }
    body.searched #snapshot, body.home.searched #seo-top { display: none; }
    .tg-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .tg-card .tg-mark { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: white; background: #2aa3df; }
    .tg-card .tg-mark svg { width: 24px; height: 24px; }
    .tg-card div { flex: 1 1 260px; }
    .tg-card b { display: block; font-size: 16px; }
    .tg-card span { color: var(--muted); font-size: 14px; }
    .cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 520px; margin: 0 auto; display: flex; gap: 12px; align-items: center;
      padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; }
    .cookie span { flex: 1; }
    .saving { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px;
      background: linear-gradient(120deg, var(--good-soft), var(--accent-soft)); }
    .saving b { font-size: 30px; letter-spacing: -0.04em; color: var(--good); }
    .saving span { font-size: 14.5px; }

    .crumbs { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
    .crumbs a { color: var(--muted); }
    .crumbs span { color: var(--ink); }
    .text h2 { margin: 18px 0 8px; font-size: 18px; letter-spacing: -0.02em; }
    .text ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
    .article-prices { margin: 6px 0 14px; }

    footer { margin-top: 32px; padding: 22px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
    .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
    .foot-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
    .foot-grid a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
    .foot-grid a:hover { color: var(--accent); }
    footer p { margin: 0 0 8px; line-height: 1.5; }

    @media (max-width: 820px) {
      .how ol, .why-grid { grid-template-columns: 1fr; }
      .steps { grid-template-columns: 1fr 1fr; }
      .best { grid-template-columns: 1fr; }
      .status-head { flex-wrap: wrap; }
      .top-links .hide-sm { display: none; }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .foot-grid > div:first-child { grid-column: 1 / -1; }
    }
    /* Телефон: подсказки и фильтры - лентой, карточки - в две колонки, строки таблиц - компактными карточками. */
    @media (max-width: 640px) {
      .wrap { width: calc(100% - 24px); padding-top: 10px; }
      .bar-top { padding: 6px 6px 6px 8px; gap: 8px; }
      .watch-link .wl { display: none; }
      .watch-link button { padding: 0 10px; }
      /* Список слежений - во всю ширину шапки: от колокольчика он уходил за левый край экрана. */
      .bar-top { position: relative; }
      .watch-link { position: static; }
      .watch-panel { left: 0; right: 0; width: auto; }
      .logo i { width: 32px; height: 32px; }
      .logo { font-size: 18px; }
      .hero { padding: 26px 0 10px; }
      .hero h1 { font-size: 30px; }
      .hero p { font-size: 15px; margin-bottom: 18px; }
      .hero-badge { font-size: 12px; margin-bottom: 12px; }
      .search form { padding-left: 12px; border-radius: 18px; }
      .search form > svg { display: none; }
      .search input { font-size: 16px; }
      .search .go { padding: 0 16px; height: 44px; }
      .popular, .tools { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 0 12px 4px;
        scrollbar-width: none; scroll-snap-type: x proximity; }
      .popular::-webkit-scrollbar, .tools::-webkit-scrollbar { display: none; }
      .popular .chip { scroll-snap-align: start; flex: none; }
      .tools > * { flex: none; }
      .tools .spacer { display: none; }
      .card { padding: 16px; border-radius: 18px; margin-top: 12px; }
      .seo h2, .snapshot h2, .deals h2 { font-size: 19px; margin-bottom: 10px; }
      .deals { margin-top: 22px; }
      .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .deal { padding: 12px; border-radius: 16px; }
      .deal-q { font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
      .deal b { font-size: 21px; }
      .deal-off { font-size: 12px; }
      .deal small { font-size: 12px; }
      .deal-top { gap: 6px; }
      .how li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 12px; }
      .how li::before { grid-row: span 2; }
      .best { display: flex; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
      .best::-webkit-scrollbar { display: none; }
      .best-card { flex: 0 0 82%; scroll-snap-align: start; }
      .stat { padding: 10px 12px; border-radius: 14px; }
      .stat b { font-size: 18px; }
      .stat.main b { font-size: 21px; }
      .foot-grid { grid-template-columns: 1fr; }
      .cookie { font-size: 12.5px; padding: 8px 8px 8px 12px; }
      .status-head { gap: 12px; }
      .ring { width: 58px; height: 58px; }
      .ring span { width: 46px; height: 46px; font-size: 14px; }
      .found-count b { font-size: 22px; }
      .steps { display: none; }

      table.cards-sm { min-width: 0; }
      table.cards-sm thead { display: none; }
      table.cards-sm tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
      table.cards-sm tbody tr:hover { background: none; }
      table.cards-sm td { display: block; padding: 0; border: 0; max-width: none; min-width: 0; font-size: 13px; }
      table.cards-sm td.price { order: 1; flex: 1 1 auto; font-size: 20px; }
      table.cards-sm td.cell-buy { order: 2; flex: none; position: static; background: none; }
      table.cards-sm td.cell-buy .buy { padding: 7px 16px; }
      table.cards-sm td.name { order: 3; flex: 1 1 100%; font-size: 14px; line-height: 1.35; overflow: hidden;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
      table.cards-sm.hub-table td.name { display: block; }
      table.cards-sm td.opts { order: 4; flex: 1 1 100%; }
      table.cards-sm td.opts .opt { margin-bottom: 2px; }
      table.cards-sm td.kind-cell { order: 5; }
      table.cards-sm td.seller { order: 6; color: var(--muted); }
      table.cards-sm td.num { order: 7; }
      table.cards-sm td.reviews { order: 8; min-width: 0; }
      table.cards-sm td.reviews b, table.cards-sm td.reviews small { display: inline; font-size: 12.5px; }
      table.cards-sm td.reviews .rv-bar { display: none; }
      table.cards-sm td.num[data-label]::before { content: attr(data-label) " "; }
      table.cards-sm td .badge { margin-bottom: 0; }
      table.cards-sm td.seller br { display: none; }
      /* Таблица вариантов сервиса: название и цена в строку, мелкие цифры ниже. */
      table.cards-sm.hub-table td.name { order: 1; flex: 1 1 60%; }
      table.cards-sm.hub-table td.price { order: 2; flex: none; font-size: 16px; }
      table.cards-sm.hub-table td.num { order: 3; font-size: 12px; }
    }
    /* Пометки строк в готовой таблице: продавец с предупреждением или новый, подозрительно низкая цена */
    small.mark { display: inline-block; margin-top: 3px; color: var(--muted); font-size: 12px; }
    small.mark.warn { color: var(--bad); font-weight: 700; }

    /* Фильтры сохраненного снимка и короткая демонстрация. */
    .hero-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 12px 0 0; }
    .hero-actions span { font-size: 12px; color: var(--muted); }
    body.inner .hero-actions { justify-content: flex-start; }
    .result-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
    .result-heading > div { min-width: 0; flex: 1 1 260px; }
    .result-heading h2 { font-size: 21px; line-height: 1.3; margin: 0 0 6px; overflow-wrap: anywhere; }
    .result-heading p { font-size: 12.5px; line-height: 1.5; margin: 0; }
    .variant-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
    .variant-tools label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); flex: 1 1 140px; max-width: 280px; }
    .variant-tools select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--surface); min-width: 0; }
    .headline-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--accent); border-radius: 16px; padding: 16px; background: var(--accent-soft); margin-bottom: 14px; }
    .headline-offer > div { display: grid; gap: 4px; min-width: 0; }
    .headline-offer small { font-size: 12px; font-weight: 700; color: var(--accent); }
    .headline-offer b { font-size: 27px; line-height: 1.15; color: var(--accent); letter-spacing: -0.03em; }
    .headline-offer span { font-size: 12.5px; overflow-wrap: anywhere; }
    .headline-offer .buy { flex: none; }
    .access-title { font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
    .access-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); margin-bottom: 6px; }
    .access-tools button { border: 1px solid transparent; border-radius: 11px; padding: 9px 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
    .access-tools button:hover { color: var(--ink); }
    .access-tools button.on { background: var(--surface); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
    .access-tools span { font-size: 11px; opacity: .7; margin-left: 3px; }
    .access-tools small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .access-tools button.empty small { color: var(--muted); font-weight: 600; }
    .access-tools button.empty:not(.on) { opacity: .6; }
    .access-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 14px; }
    .result-count { font-size: 12px; color: var(--muted); margin: 8px 0; }
    .watch-status { flex-basis: 100%; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
    .watch-status:empty { display: none; }
    .stat.date b { font-size: 16px; white-space: normal; overflow: visible; line-height: 1.4; text-overflow: clip; }
    .compare-tour { position: fixed; z-index: 80; right: 24px; bottom: 24px; width: min(390px, calc(100vw - 32px)); padding: 16px; border-radius: 18px; border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
    .tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
    .tour-head b { font-size: 13px; }
    .compare-tour p { font-size: 14px; line-height: 1.5; margin: 12px 0; }
    .tour-progress { height: 3px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
    .tour-progress i { display: block; height: 100%; background: var(--accent); transition: width 400ms ease; }
    .tour-target { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 14px; animation: tour-focus 1.4s ease-in-out infinite; scroll-margin-top: 80px; }
    @keyframes tour-focus { 0%, 100% { outline-offset: 5px; } 50% { outline-offset: 9px; } }
    @media (max-width: 640px) {
      .result-heading h2 { font-size: 18px; }
      .result-heading > .ghost { width: 100%; }
      .access-tools button { font-size: 11.5px; padding: 10px 3px; }
      .access-tools span { display: block; margin: 3px 0 0; }
      .access-tools small { font-size: 11px; }
      .headline-offer { padding: 13px; gap: 10px; }
      .headline-offer b { font-size: 25px; }
      .headline-offer span { font-size: 12px; }
      .headline-offer .buy { padding: 9px 14px; }
      .stat.date b { font-size: 13px; line-height: 1.4; }
      .tools { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; }
      .tools select, .tools input[type="search"] { min-width: 0; max-width: 100%; flex: 1 1 140px; }
      .tools label { white-space: normal; }
      .tools #share { width: 100%; overflow-wrap: anywhere; }
      .history form { width: 100%; }
      .history form button { flex: 1; }
      .compare-tour { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 14px; }
      .hero-actions { flex-wrap: wrap; gap: 6px 10px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .tour-target { animation: none; outline-offset: 5px; }
      .tour-progress i { transition: none; }
    }

    .result-heading p.stale { border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--accent-soft); color: var(--ink); border-radius: 0 8px 8px 0; }

    .access-tools.has-unknown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    @media (max-width: 640px) { .access-tools.has-unknown { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

    .tools .share-link { flex: 1 0 100%; width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
    .secondary { margin: 10px 0 14px; }
    .secondary > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
    .filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
    #active-filters { font-size: 13px; overflow-wrap: anywhere; }
    .refine-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
    .refine-choice > a { font-size: 13px; padding: 2px 8px; }
    .refine-choice .chip { white-space: normal; text-align: left; }
    @media (max-width: 640px) {
      body.searched .hero { padding-top: 14px; }
      body.searched .hero > p, body.searched .hero .stats, body.searched .hero-badge, body.searched .hero-actions { display: none; }
      body.searched .hero h1 { font-size: 23px; margin-bottom: 12px; }
      body.searched .hero .popular { display: none; }
      .filter-summary .result-count { margin: 4px 0; }
      #active-filters { margin: 4px 0; }
      .cards-sm tr { position: relative; }
      .cards-sm td.price { padding-right: 110px; }
      .cards-sm td.cell-buy { position: absolute; top: 10px; right: 10px; padding: 0; border: 0; }
    }

/* Обращения */
.feedback-entry{text-align:center;padding:18px}.report-row{display:block;font-size:12px;margin:6px auto 0}
#feedback-dialog{width:min(560px,calc(100% - 32px));max-height:90dvh;border:1px solid var(--line-strong);border-radius:18px;padding:24px;color:var(--ink);background:var(--surface)}
#feedback-dialog::backdrop{background:#14273799}#feedback-dialog label{display:block;margin:16px 0;font-weight:600}
#feedback-dialog select,#feedback-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:10px;border:1px solid var(--line-strong);border-radius:8px;font:inherit;color:var(--ink);background:var(--surface)}
#feedback-context{overflow-wrap:anywhere}#feedback-status{min-height:1.5em}
#feedback-form>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;vertical-align:middle;font:inherit;font-size:14px;font-weight:700;border-radius:12px}
#feedback-form>button[type=submit]{border:1px solid transparent;background:var(--accent);color:var(--surface);cursor:pointer}
#feedback-form>button[type=submit]:hover:not(:disabled){background:var(--accent-2)}
#feedback-form>button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#feedback-form>button[type=submit]:disabled{opacity:.6;cursor:default}
#feedback-status:empty{display:none}


.mobile-menu{display:none;position:relative}.mobile-menu summary{cursor:pointer;padding:8px}.mobile-menu nav{position:absolute;right:0;top:100%;z-index:30;min-width:150px;background:var(--card,#fff);border:1px solid #94a3b8;border-radius:12px;padding:10px;box-shadow:0 8px 24px #0002}.mobile-menu nav a{display:block;padding:10px}
@media(max-width:640px){.mobile-menu{display:block}.top-links{gap:4px}}

/* Название товара: полное по нажатию */
td.name.expandable { cursor: pointer; }
td.name.expandable:hover, td.name.expandable:focus-visible { color: var(--accent); outline: none; }
td.name.expandable[aria-expanded="true"] { overflow: visible; -webkit-line-clamp: unset; display: block; }
td.price .price-note { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* Кнопка обращения у предложения и сравнение */
.report-row { display: inline-flex; align-items: center; gap: 4px; margin: 6px auto 0; padding: 3px 9px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.report-row svg { width: 12px; height: 12px; }
.report-row:hover, .report-row:focus-visible { border-style: solid; border-color: var(--accent); color: var(--accent); }
.cell-buy { text-align: center; }
.cell-buy .report-row, .cell-buy .cmp { display: flex; width: max-content; }
.cmp { align-items: center; gap: 5px; margin: 6px auto 0; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cmp input { margin: 0; accent-color: var(--accent); }
.cmp:has(input:checked) { color: var(--accent); }
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; }
.compare-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.compare-bar svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.compare-bar small { color: var(--muted); font-weight: 600; }
.compare-bar .buy { padding: 7px 14px; border: 0; cursor: pointer; }
#compare-dialog { width: min(980px, calc(100% - 24px)); max-height: 90dvh; border: 1px solid var(--line-strong); border-radius: 18px; padding: 20px; color: var(--ink); background: var(--surface); }
#compare-dialog::backdrop { background: #14273799; }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.compare-head h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.compare-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.compare-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.compare-card.lowest { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.compare-card .badge { align-self: flex-start; }
.compare-card dl { margin: 0; display: grid; gap: 2px; }
.compare-card dt { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.compare-card dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.compare-card dd:first-of-type { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.compare-card .buy { margin-top: auto; text-align: center; }

/* Главная цена: цена за месяц, номинал, действия */
.headline-offer { flex-wrap: wrap; }
.headline-extra { flex: 1 1 100%; display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.meter-head { margin: 0; font-size: 13.5px; }
.meter-head b { font-size: 18px; letter-spacing: -0.02em; color: var(--accent); }
.meter-head b.up { color: var(--warn-ink); }
.meter-head span { color: var(--muted); }
.meter-bars { display: grid; gap: 6px; margin-top: 8px; }
.meter-line { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; }
.meter-line > span { color: var(--muted); font-weight: 700; }
.meter-line > i { position: relative; height: 10px; border-radius: 999px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.meter-line > i > i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--line-strong); animation: grow .9s cubic-bezier(.22, 1, .36, 1) both; }
.meter-line.good > i > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter-line.bad > i > i { background: var(--bad); }
.meter-line > b { font-size: 13px; white-space: nowrap; }
.meter-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink); }
.meter-note a { font-weight: 700; }
.nominal-scale { display: flex; height: 12px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.nominal-scale i { width: var(--w); animation: grow .9s cubic-bezier(.22, 1, .36, 1) both; }
.nominal-scale .face { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.nominal-scale .over { background: repeating-linear-gradient(45deg, var(--warn-ink) 0 4px, var(--gold-soft) 4px 8px); }
.nominal-scale .under { background: var(--good); opacity: .5; }
@keyframes grow { from { width: 0; } }
.headline-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; font-weight: 600; }
.headline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.headline-actions .ghost { display: inline-flex; align-items: center; gap: 6px; }
.headline-actions svg { width: 15px; height: 15px; }
.fav-btn.on { border-color: var(--gold-ink); color: var(--gold-ink); background: var(--gold-soft); }
.fav-btn.on svg { fill: currentColor; }
.stat .stat-note { display: block; margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }

/* Слежение: условие и подписка на сервис */
.history select { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: var(--surface); color: var(--ink); font-size: 13px; }
.history input[readonly] { background: var(--surface-2); color: var(--muted); }
.service-watch { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; }
.service-sub-status { font-size: 13px; color: var(--muted); }
.service-sub-status:empty { display: none; }
.service-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--accent); background: var(--accent-soft); }
.service-sub h2 { margin: 0 0 4px; font-size: 18px; }
.service-sub p.muted { margin: 0; }
.service-sub .buy { border: 0; cursor: pointer; }
.service-sub .service-sub-status { flex-basis: 100%; margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 2px; font-size: 13px; }
.link-btn { border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 700; padding: 2px 4px; cursor: pointer; }
.fav-link button svg { color: var(--gold-ink); }

/* Подбор за 3 шага */
.pick-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; counter-reset: step; }
.pick-steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pick-steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); }
.pick-steps li.on { background: var(--accent-soft); color: var(--accent); }
.pick-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-steps li.done { color: var(--accent); }
.pick-steps li.done::before { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.deal.picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.pick-panel { margin-top: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); animation: rise .35s cubic-bezier(.22, 1, .36, 1) both; }
.pick-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.pick-panel h3 { margin: 0 0 10px; font-size: 15px; }
.pick-head a { font-size: 13px; font-weight: 700; }
.pick-groups .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pick-finals:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.pick-final { text-decoration: none; color: var(--ink); }

/* Свернутый список всех тарифов и сравнение тарифов */
details.fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold > summary::after { content: "Показать"; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
details.fold[open] > summary::after { content: "Свернуть"; }
details.fold > summary small { color: var(--muted); font-size: 13px; }
details.fold[open] > summary { margin-bottom: 14px; }
.tariff-table td small { display: block; color: var(--muted); font-size: 12px; white-space: normal; }
.tariff-table td.best-month a { font-weight: 800; color: var(--good); }
.tariff-table td.price a { color: inherit; }
.deal-check { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12.5px; font-weight: 700; }
.deal-check .ico { width: 13px; height: 13px; }

@media (max-width: 640px) {
  table.cards-sm td.num.sales::before { content: none; }
  .cards-sm td.cell-buy .report-row, .cards-sm td.cell-buy .cmp { margin: 6px 0 0 auto; }
  .compare-bar { bottom: 10px; gap: 8px; padding: 8px 8px 8px 12px; font-size: 12.5px; }
  .compare-bar small { display: none; }
  .compare-grid { grid-auto-columns: 82%; }
  #compare-dialog { padding: 14px; }
  .meter-line { grid-template-columns: 70px 1fr auto; }
  .service-sub .buy { width: 100%; text-align: center; }
  .tariff-table td[data-label="Что входит"] { order: 4; flex: 1 1 100%; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .meter-line > i > i, .nominal-scale i, .pick-panel { animation: none; }
}td.num.sales b { color: var(--ink); font-weight: 700; }
td.num.sales small { display: block; font-size: 11.5px; }
.compare-bar > span { white-space: nowrap; }
@media (max-width: 640px) { td.num.sales small { display: inline; } }
.meter-line { grid-template-columns: 82px 1fr 74px; }
.meter-line > b { text-align: right; }
@media (max-width: 640px) { .meter-line { grid-template-columns: 70px 1fr 66px; } }

@media (max-width: 640px) {
  table.cards-sm.tariff-table td.name { order: 1; flex: 1 1 auto; font-size: 16px; }
  table.cards-sm.tariff-table td.price { order: 2; flex: none; font-size: 18px; }
  table.cards-sm.tariff-table td.best-month { order: 5; flex: 1 1 100%; }
}
.tariff-table td.price a { text-decoration: none; }@media (max-width: 640px) { table.cards-sm.tariff-table td.price { padding-right: 0; } }

.history.watch-callout { display: block; padding: 20px 24px; margin: 18px 0; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--surface); }
.history.watch-callout h3 { margin: 0 0 8px; font-size: 20px; }
.history.watch-callout p { margin: 0; }
.history.watch-callout #watch-summary { margin-bottom: 14px; color: var(--muted); }
.history.watch-callout form { display: block; }
.history.watch-callout .tg-offer { flex-basis: auto; }
.watch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.history.watch-callout .watch-submit, .history.watch-callout .tg-offer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--surface); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.history.watch-callout button:disabled { opacity: .65; cursor: wait; }
.history.watch-callout .watch-text-button { border: 0; padding: 10px 0; min-height: 44px; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
.history.watch-callout .watch-status { margin-top: 10px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.history.watch-callout .watch-status:empty { display: none; }
.history.watch-callout details { margin-top: 12px; }
.history.watch-callout summary { width: fit-content; cursor: pointer; color: var(--accent); font-size: 14px; padding: 4px 0; }
.watch-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 0; }
.watch-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.history.watch-callout input, .history.watch-callout select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; box-sizing: border-box; }
.history.watch-callout input { width: 160px; }
.history.watch-callout input[readonly] { color: var(--muted); }
.history.watch-callout .service-watch { padding: 12px 0; border-top: 1px solid var(--line); }
.history.watch-callout .service-sub-status { display: block; margin-top: 8px; }
.watch-history .text { padding-top: 10px; font-size: 14px; }
.history.watch-callout .watch-history summary { color: var(--muted); }
@media (max-width: 640px) {
 .history.watch-callout { padding: 16px; }
 .watch-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
 .history.watch-callout input, .history.watch-callout select { width: 100%; min-width: 0; }
 .history.watch-callout .watch-submit, .history.watch-callout .tg-offer, .history.watch-callout .tg-offer a { width: 100%; }
}

/* Сравнение сервисов, минимум за период наблюдения */
.compare-grid.static { grid-auto-columns: minmax(240px, 1fr); }
.compare-grid.static h3 { margin: 0; font-size: 17px; }
.compare-grid.static dd:first-of-type { font-size: 13.5px; font-weight: 400; color: var(--ink); letter-spacing: 0; }
.compare-grid.static dd b { font-size: 20px; color: var(--accent); letter-spacing: -0.02em; }
.deal-low { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12px; font-weight: 700; }
.deal-low .ico { width: 13px; height: 13px; }
.headline-low { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.headline-low.on { align-self: flex-start; width: max-content; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); }.compare-grid.static { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); overflow: visible; scroll-snap-type: none; }
.compare-grid.static { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.compare-grid.static > * { min-width: 0; }

/* Способы купить и цены по регионам */
.methods-table td small, .region-table td small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; white-space: normal; }
.methods-table tr.lowest td.price, .region-table tr.lowest td.price { color: var(--good); }
.risk { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.risk.low { background: var(--good-soft); color: var(--good); }
.risk.mid { background: var(--gold-soft); color: var(--gold-ink); }
.risk.high { background: rgba(194, 65, 12, 0.14); color: var(--bad); }
@media (max-width: 640px) {
  table.cards-sm.methods-table td.name, table.cards-sm.region-table td.name { order: 1; flex: 1 1 60%; font-size: 15px; }
  table.cards-sm.methods-table td.price, table.cards-sm.region-table td.price { order: 2; flex: none; padding-right: 0; font-size: 17px; }
  table.cards-sm.methods-table td { flex: 1 1 100%; }
}@media (max-width: 640px) { table.cards-sm.methods-table td.price { flex: 1 1 100%; white-space: normal; } }

/* Уведомление о срабатывании слежения при открытом сайте */
.hit-toasts { position: fixed; right: 16px; top: 16px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); }
.hit-toast { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 8px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--good); box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.22, 1, .36, 1) both; }
.hit-toast b { grid-column: 1 / -1; color: var(--good); font-size: 14px; }
.hit-toast span { font-size: 13.5px; overflow-wrap: anywhere; }
.hit-toast .buy { padding: 6px 12px; border: 0; cursor: pointer; font-size: 13px; }
.watch-notify { display: block; margin: 6px 8px 0; text-align: left; }
@media (prefers-reduced-motion: reduce) { .hit-toast { animation: none; } }
.seller-table .badge { margin-left: 6px; }
@media (max-width: 640px) { table.cards-sm.seller-table td.name { order: 1; flex: 1 1 100%; font-size: 14px; } table.cards-sm.seller-table td { font-size: 12.5px; } }
