/* Шрифты (OFL, assets/fonts/OFL.txt) */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest/onest-onest-normal-400_800-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest/onest-onest-normal-400_800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest/onest-onest-normal-400_800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest/onest-onest-normal-400_800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Тема fresh — «фишки»: светлая, плотный гротеск Onest, оценка — казино-фишка с кольцом заполнения
 * (templates/fresh/partials/rating.php). Акцент сайта задаётся palette.accent, всё остальное спокойное.
 */

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f2effd;
  --text: #16132b;
  --muted: #625d7d;
  --border: #e7e3f6;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --cta: #ff4f64;
  --cta-ink: #ffffff;
  --star: #ffb21e;
  --good: #10a37f;
  --bad: #e5484d;
  --radius: 18px;
  --radius-btn: 999px;
  --shadow: 0 1px 2px rgba(22, 19, 43, .04), 0 8px 24px -12px rgba(22, 19, 43, .14);
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hero-bg: var(--surface-2);
  --wrap: 1160px;
  --prose: 700px;
}

.theme-fresh { font-size: 17px; }
.theme-fresh h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 20ch; }
.theme-fresh h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.025em; }
.theme-fresh h3 { font-weight: 700; letter-spacing: -.01em; }
.theme-fresh :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Шапка: белая, липкая, пункты меню — пилюли */
.theme-fresh .topnote { background: var(--text); color: #cfcae6; }
.theme-fresh .site-header { position: sticky; top: 0; z-index: 25; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); }
.theme-fresh .site-logo { font-weight: 800; letter-spacing: -.02em; }
.theme-fresh .site-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 2px var(--accent); }
.theme-fresh .site-nav { gap: 4px; }
.theme-fresh .site-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.theme-fresh .site-nav a:hover { background: var(--surface-2); color: var(--accent); }

/* Первый экран: спокойная плашка, справа — силуэт фишки из пунктирного кольца */
.theme-fresh .hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.theme-fresh .hero::after {
  content: ""; position: absolute; right: -70px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%) rotate(8deg);
  border-radius: 50%; pointer-events: none; opacity: .16;
  /* Фишка: цветной обод с белыми вставками и внутреннее кольцо */
  background:
    radial-gradient(circle, transparent 0 46%, var(--accent) 46.5% 48%, transparent 48.5% 100%),
    repeating-conic-gradient(#fff 0 9deg, var(--accent) 9deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 46.5% 48%, transparent 48.5% 56%, #000 56.5% 70%, transparent 70.5%);
  mask: radial-gradient(circle, transparent 0 46%, #000 46.5% 48%, transparent 48.5% 56%, #000 56.5% 70%, transparent 70.5%);
}
.theme-fresh .hero .wrap { position: relative; z-index: 1; }
.theme-fresh .hero .lead { max-width: 62ch; color: var(--muted); }
.theme-fresh .topic-hero { padding: 32px 0 8px; }
@media (max-width: 760px) { .theme-fresh .hero::after { width: 240px; height: 240px; right: -120px; opacity: .1; } }

/* Оценка-фишка */
.chip-rating { display: inline-flex; align-items: center; gap: 8px; }
.chip-rating .chip {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) var(--pct), var(--border) 0);
}
.chip-rating .chip::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px var(--border); }
.chip-rating .chip b { position: relative; font-size: .95rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip-rating small { color: var(--muted); font-size: .78rem; line-height: 1.2; }
.chip-rating.rating-lg .chip { width: 64px; height: 64px; }
.chip-rating.rating-lg .chip b { font-size: 1.25rem; }

/* Рейтинг: карточки без рамок, место — маленькая фишка */
.theme-fresh .cards { gap: 14px; }
.theme-fresh .card { border: 0; padding: 20px 22px; grid-template-columns: 40px auto minmax(0, 1fr) minmax(0, 1.25fr) 200px; }
.theme-fresh .card:first-child { box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -20px color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-fresh .card-pos { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 1rem; font-weight: 800; }
.theme-fresh .card:first-child .card-pos { background: var(--accent); color: var(--accent-ink); }
.theme-fresh .card-main h3 { font-size: 1.2rem; margin-bottom: 6px; }
.theme-fresh .card-bonus strong { font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.theme-fresh .facts li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.theme-fresh .btn { font-weight: 700; }
.theme-fresh .btn-play { padding: .85em 1.5em; }
.theme-fresh .btn-play:hover { filter: none; background: color-mix(in srgb, var(--cta) 88%, #000); }
.theme-fresh .badge { padding: 4px 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); text-transform: none; letter-spacing: 0; font-size: .74rem; }
.theme-fresh .logo { border-radius: 14px; }
.theme-fresh .chip-btn { border-color: transparent; font-weight: 600; }
.theme-fresh .chip-btn:not(.on) { background: var(--surface-2); }

/* Таблицы и блоки */
.theme-fresh .table-scroll { border: 0; box-shadow: var(--shadow); }
.theme-fresh .data thead th { background: var(--surface); color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .8rem; border-bottom: 2px solid var(--border); }
.theme-fresh .data tbody tr:hover { background: #faf9ff; }
.theme-fresh .tool-box { border: 0; }
.theme-fresh .tool-out > div { background: var(--surface-2); }
.theme-fresh .tool-out .tool-main { background: var(--text); color: #fff; }
.theme-fresh .tf input, .theme-fresh .tf select, .theme-fresh .sort-by select, .theme-fresh .faq-search { border-radius: 12px; background: var(--bg); }
.theme-fresh .faq details { border: 0; box-shadow: var(--shadow); }
.theme-fresh .faq summary::after { color: var(--accent); }
.theme-fresh .steps li { border: 0; box-shadow: var(--shadow); }
.theme-fresh .label { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.theme-fresh .verdict { border-left: 0; box-shadow: inset 4px 0 0 var(--accent); }

/* Подвал */
.theme-fresh .site-footer { background: var(--text); color: #e7e3f6; border-top: 0; }
.theme-fresh .site-footer .footer-tagline, .theme-fresh .site-footer .footer-bottom { color: #a9a3c6; }
.theme-fresh .site-footer .footer-bottom { border-top-color: #322c52; }
.theme-fresh .site-footer .site-mark { box-shadow: inset 0 0 0 3px var(--text), 0 0 0 2px var(--accent); }

@media (max-width: 900px) {
  .theme-fresh .card { grid-template-columns: 34px auto minmax(0, 1fr); padding: 16px; }
  .theme-fresh .card-pos { width: 34px; height: 34px; }
}
