/*
Theme Name: Desnudas
Description: Tema editorial de desnudas.co
Version: 1.0.0
Text Domain: desnudas
*/
/* desnudas.co — общие стили. Тёмная тема, контейнер 1800px, мобилка с 360px. */

:root {
  --bg: #0e0a10;
  --bg-2: #130d16;
  --surface: #1a1220;
  --surface-2: #231a2b;
  --line: #34273d;
  --line-soft: #271d2e;
  --text: #f6eef3;
  --muted: #b3a3ae;
  --faint: #8a7a86;
  --rose: #ff5c93;
  --rose-strong: #e11d63;
  --rose-ink: #1a0710;
  --violet: #8b5cf6;
  --gold: #f5b83d;
  --ok: #3dd68c;
  --bad: #ff7a7a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1800px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 68px;
  --measure: 72ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ff8db4; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rose); }
p { margin: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon.fill path { fill: currentColor; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 5vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 60ch; }
.prose { max-width: var(--measure); color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); }
.prose h2 { font-size: clamp(22px, 2.2vw, 30px); color: var(--text); line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(18px, 1.6vw, 22px); color: var(--text); line-height: 1.25; margin: 1.5em 0 .4em; }
.prose ul { margin: .6em 0; padding-left: 1.2em; display: grid; gap: .5em; }
.prose li { list-style: disc; }
.prose a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--text); }
.legal-updated { margin-top: 2.4em; color: var(--faint); font-size: 14px; }

/* Текстовые разделы главной занимают сетку, а не узкую центральную колонку. */
.home-editorial { display: grid; gap: clamp(44px, 5vw, 80px); }
.editorial-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.editorial-copy { min-width: 0; max-width: none; font-size: 18px; line-height: 1.8; }
.editorial-copy h2 { margin: 0 0 22px; font-size: clamp(28px, 2.5vw, 40px); }
.editorial-visual { margin: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 22px; background: var(--bg-2); }
.editorial-visual img { width: 100%; height: auto; }
.editorial-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.editorial-row:nth-child(even) .editorial-copy { order: 2; }
.editorial-row:nth-child(even) .editorial-visual { order: 1; }
.method-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: none; margin-top: 28px; }
.method-notes.prose p { margin: 0; }
.home-faq .faq { max-width: 1440px; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .editorial-row, .editorial-row:nth-child(even), .method-notes { grid-template-columns: minmax(0, 1fr); }
  .editorial-row .editorial-visual, .editorial-row:nth-child(even) .editorial-visual { order: 1; }
  .editorial-row .editorial-copy, .editorial-row:nth-child(even) .editorial-copy { order: 2; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose-strong); color: #fff; }
.btn-primary:hover { background: #f02a70; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--rose); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 10, 16, .82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform .32s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within, .menu-open .site-header { transform: none; }
.mobile-menu-toggle { display: none; }
.mobile-menu { inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 24px; border: 0; background: var(--bg-2); color: var(--text); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu::backdrop { background: rgba(5, 3, 8, .72); backdrop-filter: blur(6px); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.mobile-menu-head h2 { font-size: 25px; }
.mobile-menu-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.mobile-menu-group + .mobile-menu-group { margin-top: 26px; }
.mobile-menu-group h3 { margin: 0 0 12px; font: 500 12px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.mobile-menu-group a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.mobile-menu-group a .icon { color: var(--rose); }
.mobile-menu-group a:hover, .mobile-menu-group a[aria-current] { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] { animation: menu-enter .25s var(--ease); }
  .mobile-menu[open] .menu-step { animation: menu-item-enter .38s var(--ease) backwards; animation-delay: calc(80ms + var(--menu-order, 0) * 35ms); }
  .mobile-menu[open] .menu-step:focus { opacity: 1 !important; transform: none !important; }
  @keyframes menu-enter { from { transform: translateX(100%); } to { transform: none; } }
  @keyframes menu-item-enter { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nav-dd { position: relative; }
.nav-dd-summary { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 15px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav-dd-summary .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-dd.is-open .nav-dd-summary { color: var(--text); background: var(--surface); }
.nav-dd.is-open .nav-dd-summary .icon { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; right: 0; display: grid; gap: 2px; min-width: 190px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.nav-dd.is-open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-menu a:hover { background: rgba(225, 29, 99, .12); color: var(--text); }
.logo { display: inline-flex; align-items: baseline; gap: 2px; color: var(--text); text-decoration: none; font: italic 600 26px/1 var(--font-display); letter-spacing: -.02em; }
.logo span { color: var(--rose); font-style: normal; font: 600 15px/1 var(--font-body); letter-spacing: 0; }
.logo:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.badge-18 {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--rose); color: var(--rose); font: 700 13px/1 var(--font-body);
}

/* ---------- hero: широкая фотография на всю секцию ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: calc(100dvh - var(--header-h)); padding: clamp(20px, 3vw, 40px) 0; }
.hero::before {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,10,16,.86), rgba(21,12,28,.67) 36%, rgba(14,10,16,.08) 72%),
              linear-gradient(0deg, rgba(14,10,16,.84), transparent 30%);
}
.hero-bg, .page-hero-bg { position: absolute; z-index: -1; inset: 0; transform-origin: center top; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badge {
  position: absolute; right: var(--gutter); bottom: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: rgba(14, 10, 16, .6); backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.hero-badge .icon { color: var(--gold); }
.hero-grid { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: min(700px, 52%); }
.hero h1 { font-size: clamp(42px, 5.6vw, 88px); margin: 0 0 22px; max-width: 16ch; text-shadow: 0 2px 24px rgba(14, 10, 16, .6); }
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); color: #ded3dc; max-width: 56ch; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }

/* мини-топ в hero */
.top3 { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 18, 32, .7); max-width: 640px; }
.top3 li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; }
.top3 li + li { border-top: 1px solid var(--line-soft); }
.top3 .n { font: italic 600 22px/1 var(--font-display); color: var(--faint); font-variant-numeric: lining-nums tabular-nums; text-align: center; }
.top3 li:first-child .n { color: var(--gold); }
.top3 .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top3 .name small { display: block; color: var(--faint); font-weight: 400; font-size: 13px; }
.top3 .score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); display: inline-flex; gap: 6px; align-items: center; }
.top3 .btn { min-width: 132px; }

/* ---------- карточки рейтинга ---------- */
.rank-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.tool-card {
  display: grid; grid-template-columns: 56px minmax(0, 2.4fr) minmax(0, 2fr) minmax(210px, 1fr);
  gap: 28px; align-items: center; padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.tool-card:hover { border-color: var(--line); background: #1d1424; }
.tool-card.is-top { border-color: rgba(245, 184, 61, .45); background: linear-gradient(135deg, #22182a, #1a1220 60%); }
.tool-rank { display: grid; justify-items: center; align-self: center; }
.monogram {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--rose-strong), var(--violet)); color: #fff;
  font: 700 22px/1 var(--font-body);
}
.tool-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); padding: 7px; }
.tool-logo.sm { padding: 4px; }
.tool-logo.sm { width: 32px; height: 32px; border-radius: 9px; }
.tool-main h3 { font-family: var(--font-body); font-weight: 700; font-size: 22px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.tag-gold { background: rgba(245, 184, 61, .14); color: var(--gold); }
.tag-rose { background: rgba(255, 92, 147, .12); color: var(--rose); }
.tool-main p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rating .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 17px; height: 17px; }
.rating .stars .icon.dim { color: #4a3b44; }
.rating b { font-variant-numeric: tabular-nums; font-size: 18px; }
.rating span { color: var(--faint); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.chip .icon { width: 15px; height: 15px; color: var(--rose); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 15px; }
.proscons h4 { margin: 0 0 8px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.proscons li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.proscons .icon { width: 16px; height: 16px; margin-top: 4px; }
.pros .icon { color: var(--ok); }
.cons .icon { color: var(--bad); }
.tool-cta { display: grid; gap: 10px; justify-items: stretch; text-align: center; }
.tool-cta .price { font-size: 14px; color: var(--faint); }
.tool-cta .price b { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }
.tool-cta .note { font-size: 12.5px; color: var(--faint); }

/* ---------- таблица сравнения ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); }
table.compare { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.compare thead th { font: 600 12.5px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: rgba(35, 26, 43, .5); }
.compare td:first-child, .compare th:first-child { position: sticky; left: 0; background: var(--bg-2); font-weight: 600; z-index: 1; }
.compare thead th:first-child { background: var(--surface); }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--faint); }
.compare .icon { width: 18px; height: 18px; }
.compare .num { font-variant-numeric: tabular-nums; }
.compare .score { color: var(--gold); font-weight: 700; }
.table-note { margin-top: 12px; color: var(--faint); font-size: 14px; }

/* ---------- категории ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 250px; padding: 26px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cat::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 29, 99, .25), transparent); pointer-events: none;
}
.cat:hover { color: var(--text); border-color: var(--rose); transform: translateY(-2px); }
.cat .icon-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--rose); }
.cat .icon-box .icon { width: 24px; height: 24px; }
.cat h3 { font-size: 26px; }
.cat p { color: var(--muted); font-size: 15.5px; }
.cat .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--rose); font-weight: 600; font-size: 15px; }
.cat .vol { position: absolute; top: 26px; right: 26px; font-size: 12.5px; color: var(--faint); }

/* ---------- методика ---------- */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.method > div { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--bg-2); }
.method .icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 18px; }
.method h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.method p { color: var(--muted); font-size: 15.5px; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: italic 600 40px/1 var(--font-display); color: var(--rose); margin-bottom: 16px; }
.steps h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- политика ---------- */
.policy-box { padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255, 92, 147, .35); background: linear-gradient(135deg, rgba(225, 29, 99, .1), transparent 60%), var(--bg-2); }
.policy-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.policy-box li { display: flex; gap: 12px; align-items: flex-start; }
.policy-box .icon { width: 20px; height: 20px; color: var(--rose); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 1100px; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 20px 22px; font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details.is-closing summary .icon { transform: none; }
.faq .answer { padding: 0 22px 22px; color: var(--muted); max-width: var(--measure); overflow: hidden; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 88px); max-width: 18ch; margin-bottom: 22px; }
.page-hero .lead { color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); max-width: 64ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--faint); font-size: 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .icon { width: 16px; height: 16px; color: var(--rose); }
/* Пейзаж остаётся виден под текстом; градиент сохраняет контраст. */
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: calc(100dvh - var(--header-h)); }
.page-hero.has-photo::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,10,16,.86), rgba(21,12,28,.67) 36%, rgba(14,10,16,.08) 72%),
              linear-gradient(0deg, rgba(14,10,16,.84), transparent 30%);
}
.page-hero.has-photo .container { position: relative; z-index: 1; width: 100%; }
.page-hero.has-photo .page-hero-copy { max-width: min(620px, 52%); }
.page-hero.has-photo .lead { color: #d8ccd5; }
.page-hero.has-photo .meta-row { color: #bcaabb; }
.page-hero.has-photo h1 { text-shadow: 0 2px 28px rgba(14,10,16,.35); }
@media (min-width: 961px) {
  .hero-copy { max-width: min(980px, 64%); }
  .page-hero.has-photo .page-hero-copy { max-width: min(980px, 64%); }
  .hero h1, .page-hero.has-photo h1 { max-width: none; }
  .page-hero:not(.has-photo) h1 { max-width: 28ch; }
  .hero .lead, .page-hero.has-photo .lead { max-width: 76ch; }
  .section-head h2 { max-width: 32ch; }
}
.page-hero-bg { position: absolute; z-index: -1; inset: 0; }
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 75% top;
}
@media (max-width: 960px) {
  .hero, .page-hero.has-photo { align-items: flex-end; min-height: min(760px, calc(100svh - var(--header-h))); padding: clamp(164px, 28svh, 240px) 0 24px; }
  .hero::before, .page-hero.has-photo::after {
    background: linear-gradient(0deg, rgba(14,10,16,.98), rgba(14,10,16,.86) 36%, rgba(14,10,16,.2) 70%, rgba(14,10,16,.04));
  }
  .hero-copy, .page-hero.has-photo .page-hero-copy { max-width: 620px; }
  .hero-bg img { object-position: 85% center; }
  .page-hero-bg img { object-position: 85% top; }
  .hero h1, .page-hero h1 { max-width: none; margin-bottom: 14px; font-size: clamp(30px, 8.2vw, 42px); line-height: 1.08; }
  .hero h1 em { display: block; }
  .hero .lead, .page-hero .lead { max-width: 52ch; font-size: 15.5px; line-height: 1.55; }
  .hero-actions { gap: 8px; margin: 20px 0 0; }
  .hero-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .page-hero:not(.has-photo) { padding: 28px 0 26px; }
  .meta-row { gap: 6px 14px; margin-top: 16px; font-size: 12px; line-height: 1.5; }
  .meta-row .icon { width: 14px; height: 14px; }
  .notfound { min-height: calc(100svh - var(--header-h)); padding: 32px 0; }
  .notfound .code { font-size: clamp(88px, 22vw, 144px); }
  .notfound h1 { font-size: clamp(28px, 7.5vw, 38px); }
  .notfound p { font-size: 15.5px; line-height: 1.55; }
}
@media (max-width: 960px) and (max-height: 600px) {
  .hero, .page-hero.has-photo { padding-top: clamp(104px, 20svh, 138px); padding-bottom: 20px; }
  .hero h1, .page-hero h1 { font-size: clamp(28px, 7.6vw, 38px); }
}
@media (max-width: 360px) and (max-height: 600px) {
  .hero { padding-top: 96px; }
  .page-hero.has-photo { padding-top: 88px; }
}

/* ---------- статьи: текст слева, компактный топ справа ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px);
  max-width: 1800px; padding-top: 56px; padding-bottom: 40px; align-items: start;
}
.article-content { min-width: 0; }
.article-content .section { padding: 36px 0; }
.article-content .container { max-width: none; padding: 0; }
.article-content .section-head { margin-bottom: 22px; }
.article-content h2 { font-size: clamp(26px, 2.6vw, 40px); max-width: none; }
.article-content .prose { max-width: none; font-size: 18px; line-height: 1.8; }
.article-content .prose h2 { font-size: clamp(26px, 2.4vw, 36px); margin: 0 0 20px; }
.article-content .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .article-intro { padding-top: 0; }
.article-intro .feature-kicker { margin: 0 0 18px; }
.tool-review-copy .feature-kicker { margin: 0 0 12px; }
.article-content .article-intro .prose {
  padding: clamp(22px, 2.5vw, 36px); border: 1px solid var(--line-soft); border-radius: 24px;
  background: radial-gradient(ellipse at 100% 0, rgba(139,92,246,.14), transparent 60%), var(--bg-2);
  color: #d8cdd7;
}
.article-sidebar { min-width: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.article-sidebar-inner {
  display: grid; gap: 16px;
  max-height: calc(100svh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin;
}
.mini-ranking, .article-toc { padding: 20px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 22px; }
.mini-ranking h2, .article-toc h2 { font: 500 12px/1.5 monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-ranking-subtitle { font-size: 12px; color: var(--faint); margin-top: 7px; }
.mini-ranking-list { list-style: none; padding: 0; margin: 18px 0 0; }
.mini-tool { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mini-tool-number { font: 12px/1.5 monospace; color: var(--rose); }
.mini-tool-copy { min-width: 0; }
.mini-tool-copy h3 { font: 600 15px/1.3 var(--font-body); letter-spacing: -.01em; }
.mini-tool-copy p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.mini-tool-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--faint); font-size: 11px; line-height: 1.5; margin-top: 5px; }
.mini-tool-score { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-tool-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.mini-tool-link:hover { background: var(--surface-2); border-color: var(--rose); color: var(--text); }
.mini-tool-link .icon { width: 13px; height: 13px; }
.mini-tool-link, .tool-review .tool-review-link.btn-ghost { color: #fff; background: var(--rose-strong); border-color: var(--rose-strong); }
.mini-tool-link:hover, .tool-review .tool-review-link.btn-ghost:hover { color: #fff; background: #c91854; border-color: var(--rose); }
.mini-ranking-note { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px; color: var(--faint); font-size: 11px; line-height: 1.6; }
.article-toc ol { display: grid; gap: 8px; padding-left: 22px; margin: 16px 0 0; list-style-type: decimal-leading-zero; }
.article-toc li { padding-left: 3px; }
.article-toc li::marker { color: var(--faint); font: 12px monospace; }
.article-toc a { display: block; padding: 1px 10px; margin-left: -10px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; text-decoration: none; transition: color .2s, background-color .2s; }
.article-toc a:hover, .article-toc a[aria-current="location"] { color: var(--rose); background: var(--surface); }
.info-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.info-content .section:first-child { padding-top: 0; }
.info-content .prose > p, .info-content .prose > ul { max-width: 100ch; }
.info-content .prose h2:not(:first-child) { margin-top: 44px; }
.tool-sources { margin-top: 14px; color: var(--faint); font-size: 12px; line-height: 1.6; }
.tool-review { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; grid-template-areas: "media copy copy" "media description description" "media facts action" "media sources sources"; gap: 20px 28px; margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.tool-review::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; top: -150px; right: -70px; border-radius: 50%; background: rgba(139, 92, 246, .18); filter: blur(56px); pointer-events: none; }
.tool-review:nth-of-type(even)::before { top: auto; bottom: -160px; background: rgba(255, 92, 147, .12); }
.tool-review-media { grid-area: media; }
.tool-review-copy { grid-area: copy; min-width: 0; }
.tool-review-copy h3 { margin: 0 0 14px; }
.tool-review-heading { display: flex; align-items: center; gap: 14px; }
.tool-review-number { flex: none; color: var(--rose); font: 500 30px/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; opacity: .8; }
.tool-review-name { min-width: 0; }
.tool-review-facts { grid-area: facts; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.tool-review-facts dt { color: var(--faint); font: 11px/1.6 monospace; text-transform: uppercase; letter-spacing: .06em; }
.tool-review-facts dd { margin: 4px 0 0; color: var(--text); font-size: 15px; }
.tool-review-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 16px; }
.tool-review-media img.tool-review-image-portrait { object-position: center top; }
.tool-review > .tool-sources { grid-area: sources; margin: 0; }
.tool-review .tool-review-link { grid-area: action; justify-self: end; align-self: center; color: var(--text); text-decoration: none; }
.prompt-example { margin: 28px 0; }
.prompt-example h3 { margin: 0 0 10px; }
.prompt-example p { color: var(--muted); }
.content-checklist { padding-left: 1.2em; }
@media (max-width: 1280px) {
  .tool-review { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "copy" "description" "facts" "action" "sources"; }
  .tool-review-media { max-width: 460px; }
}
@media (max-width: 600px), (min-width: 961px) and (max-width: 1280px) {
  .tool-review-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .tool-review-link { min-height: 44px; }
}
@media (max-width: 600px) {
  .tool-review { gap: 20px; padding: 18px; }
  .tool-review-link { width: 100%; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .mini-ranking, .article-toc { padding: 20px; }
  .mini-tool { gap: 8px; }
}
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .article-content { display: contents; }
  .article-content .article-intro { padding-bottom: 28px; }
  .article-sidebar { position: static; grid-row: 2; margin-bottom: 28px; }
  .article-sidebar-inner { position: static; max-height: none; overflow: visible; }
  .article-toc { display: none; }
  .article-sidebar.navigation-only { display: none; }
  .info-sidebar { display: none; }
}
@media (max-width: 600px) {
  .article-content .cats { grid-template-columns: minmax(0, 1fr); }
  .article-content .prose { font-size: 17px; }
  .mini-ranking { padding: 20px; }
}

/* ---------- футер ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 56px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font: 600 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid li { color: var(--muted); font-size: 15px; }
.footer-grid .logo, .footer-grid .logo:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 46ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13.5px; }
.footer-bottom > span { display: inline-flex; align-items: center; gap: 8px; }


.access-notice { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.access-notice-card { width: min(600px, 100%); padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.access-brand { display: block; margin-bottom: 28px; font: italic 600 28px/1 var(--font-display); }
.access-notice .badge-18 { width: 64px; height: 64px; margin: 0 auto 20px; font-size: 20px; }
.access-notice h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 20px; }
.access-notice .lead { color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 28px; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-content: center; padding: 64px 0; }
.notfound .code { font: italic 600 clamp(96px, 16vw, 220px)/.9 var(--font-display); color: var(--rose); }
.notfound h1 { font-size: clamp(30px, 3.4vw, 48px); margin: 18px 0 14px; }
.notfound p { color: var(--muted); max-width: 52ch; }
.notfound .hero-actions { margin-bottom: 0; }

/* ---------- появление ---------- */
@media (prefers-reduced-motion: no-preference) {
  #main { animation: page-enter .6s var(--ease) backwards; }
  @keyframes page-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  .reveal.motion-ready, .reader-reveal.motion-ready { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .reveal.is-in, .reader-reveal.is-in { opacity: 1; transform: none; }
  .motion-skip, .motion-skip *, .motion-skip *::after { transition: none !important; animation: none !important; }
}

/* ---------- адаптив ---------- */
@media (min-width: 721px) and (max-width: 1280px) {
  .header-row { position: relative; gap: 16px; }
  .header-row > .logo { flex: none; }
  .nav { min-width: 0; overflow-x: auto; }
  .nav-dd { position: static; flex: none; }
  .nav-menu { right: var(--gutter); }
}
@media (max-width: 1280px) {
  .tool-card { grid-template-columns: 56px minmax(0, 1fr) minmax(200px, 240px); }
  .tool-card .proscons { grid-column: 2 / 4; }
  .cats, .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --header-h: 56px; }
  .header-row { height: calc(var(--header-h) - 1px); flex-wrap: nowrap; padding-top: 0; gap: 10px; }
  .header-row > .logo { margin-right: auto; font-size: 22px; }
  .header-row > .badge-18 { width: 32px; height: 32px; font-size: 11px; }
  .nav { display: none; }
  .mobile-menu-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
  .mobile-menu-toggle::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
  .mobile-menu-toggle:focus-visible { outline: none; }
  .mobile-menu-toggle:focus-visible::before { outline: 2px solid var(--rose); outline-offset: 3px; }
  .mobile-menu-toggle .icon { position: relative; width: 18px; height: 18px; }
  .hero-badge { top: 14px; bottom: auto; right: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo { font-size: 22px; }
  .badge-18 { width: 34px; height: 34px; font-size: 12px; }
  .nav a { padding: 0 12px; font-size: 14px; min-height: 36px; background: var(--surface); }
  .nav-dd { position: static; }
  .nav-menu { right: var(--gutter); }

  .tool-card { grid-template-columns: 44px minmax(0, 1fr); gap: 16px 14px; padding: 22px 18px; }
  .tool-card .proscons, .tool-card .tool-cta { grid-column: 1 / -1; }
  .tool-card .proscons { grid-template-columns: 1fr; }
  .tool-rank { justify-items: start; }
  .monogram { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
  .tool-logo { width: 44px; height: 44px; border-radius: 12px; }
  .tool-main { display: contents; }
  .tool-main h3 { grid-column: 2; align-self: center; font-size: 20px; }
  .tool-main .rating, .tool-main p, .tool-main .chips { grid-column: 1 / -1; margin-top: 0; }
  .cats, .method { grid-template-columns: 1fr; }
  .cat { min-height: 0; }
  .top3 li { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .top3 .btn { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; padding-top: 20px; }
}

/* ---------- карточки оценок на главной ---------- */
.score-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  max-width: 1340px; margin: 0 auto;
}
.score-card {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  aspect-ratio: 3 / 2; border-radius: 22px; background: var(--bg-2);
  box-shadow: 0 34px 80px -34px rgba(225, 29, 99, .42), 0 12px 34px -20px rgba(0, 0, 0, .72);
}
.score-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.score-card-blur { position: absolute; inset: 0; pointer-events: none; }
.score-card-blur-soft {
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 38%, #000 74%);
  mask-image: linear-gradient(to bottom, transparent 38%, #000 74%);
}
.score-card-blur-strong {
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 60%, #000 95%);
  mask-image: linear-gradient(to bottom, transparent 60%, #000 95%);
}
.score-card-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 10, 16, .28), transparent 38%, rgba(14, 10, 16, .54) 72%, rgba(14, 10, 16, .94));
}
.score-card-body { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 22px 24px 18px; color: #fff; }
.score-card-tag { font: 600 12px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.score-card h3 { margin-top: 5px; font: 700 clamp(27px, 2.5vw, 36px)/1.08 var(--font-display); text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }
.score-card h3 a { color: #fff; text-decoration: none; }
.score-card h3 a:hover { color: #fff; text-decoration: underline; }
.score-card-total {
  align-self: flex-end; margin-top: auto; text-align: right;
  font: 700 clamp(52px, 5vw, 72px)/.95 var(--font-display); font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .75);
}
.score-card-total small { font: 600 18px/1 var(--font-body); color: rgba(255, 255, 255, .75); }
.score-card-unrated { margin: 18px 0; max-width: 18ch; font: 600 clamp(24px, 3vw, 38px)/1.2 var(--font-body); }
.score-card-unrated-note { margin: 0; max-width: 30ch; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.score-card-rows { display: grid; list-style: none; margin: 12px 0 0; padding: 0; }
.score-card-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 42px; padding: 7px 0 11px;
}
.score-card-row::before, .score-card-row::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; border-radius: 2px; }
.score-card-row::before { width: 100%; background: rgba(255, 255, 255, .32); }
.score-card-row::after { width: calc(var(--value) * 100%); background: #fff; }
.score-card-row span { font: 500 13px/1.25 var(--font-body); color: rgba(255, 255, 255, .9); }
.score-card-row b { font: 700 15px/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-card-row b small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .72); }
.score-cards-note { max-width: 1340px; margin: 16px auto 0; color: var(--faint); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .score-card.motion-ready { opacity: 0; transform: translateX(calc(var(--direction) * 64px)); transition: opacity .8s var(--ease) var(--delay), transform .8s var(--ease) var(--delay); }
  .score-card.motion-ready.is-in { opacity: 1; transform: none; }
  .score-card.motion-ready .score-card-row::after { transform: scaleX(0); transform-origin: left; }
  .score-card.motion-ready .score-card-row span, .score-card.motion-ready .score-card-row b { opacity: 0; transform: translateY(6px); }
  .score-card.motion-ready.is-in .score-card-row::after { transform: scaleX(1); transition: transform .6s var(--ease) calc(.35s + var(--delay) + var(--row) * .1s); }
  .score-card.motion-ready.is-in .score-card-row span, .score-card.motion-ready.is-in .score-card-row b {
    opacity: 1; transform: none; transition: opacity .45s ease calc(.45s + var(--delay) + var(--row) * .1s), transform .45s ease calc(.45s + var(--delay) + var(--row) * .1s);
  }
}
@media (max-width: 960px) {
  .score-cards { grid-template-columns: minmax(0, 1fr); max-width: 700px; }
}
@media (max-width: 720px) {
  .score-cards { gap: 20px; }
  .score-card { aspect-ratio: auto; min-height: 420px; }
  .score-card-body { padding: 20px 18px 16px; }
  .score-card-total { font-size: clamp(50px, 12vw, 64px); }
  .score-card-row { min-height: 40px; }
}

/* ---------- большие секции рейтинга ---------- */
#comparativa .container { max-width: 1800px; }
#comparativa { scroll-margin-top: 40px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.tool-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 80px); padding: clamp(70px, 8vw, 128px) 0;
  border-top: 1px solid var(--line-soft); isolation: isolate;
}
.tool-feature::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none;
  background: radial-gradient(ellipse at 18% 45%, rgba(110, 60, 180, .17), transparent 48%),
              radial-gradient(ellipse at 85% 80%, rgba(225, 29, 99, .1), transparent 42%);
}
.feature-copy { position: relative; min-width: 0; }
.feature-heading { position: relative; isolation: isolate; margin: 20px 0 24px; padding-top: 36px; }
.feature-number { position: absolute; z-index: -1; top: calc(50% + 18px); left: -8px; transform: translateY(-50%); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); font: 700 clamp(96px, 10vw, 144px)/.9 var(--font-body); letter-spacing: -.07em; }
.feature-kicker { display: flex; align-items: center; gap: 12px; color: var(--rose); font: 500 11px/1.5 monospace; letter-spacing: .16em; text-transform: uppercase; }
.feature-kicker::before { content: ""; flex: 0 0 22px; width: 22px; height: 1px; background: currentColor; }
.feature-copy h3 { margin: 0; font: 700 clamp(40px, 4.8vw, 80px)/1.05 var(--font-body); letter-spacing: -.055em; overflow-wrap: anywhere; }
.feature-subtitle { font: 600 clamp(25px, 2.8vw, 44px)/1.2 var(--font-body); letter-spacing: -.04em; color: #b4adb9; }
.feature-description { margin-top: 30px; color: var(--muted); line-height: 1.8; max-width: 64ch; }
.feature-facts { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 20px; margin: 36px 0; }
.feature-facts dt { color: var(--faint); font: 10px/1.5 monospace; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.feature-facts dd { margin: 0; font-size: 14px; line-height: 1.5; }
.feature-cta { background: #f7f5fa; color: #111; border-radius: 999px; padding: 15px 24px; }
.feature-cta:hover { background: #e7d8ef; color: #111; }
.feature-note { color: var(--faint); font: 10px/1.6 monospace; letter-spacing: .1em; margin-top: 12px; }
.feature-visual { aspect-ratio: 4 / 3; border-radius: 28px; border: 1px solid rgba(255,255,255,.08); }
.feature-visual .score-card-image { object-fit: cover; object-position: 85% center; }
.feature-visual .score-card-body { position: absolute; inset: 0; padding: 24px; }
.feature-visual .score-card-scrim { background: linear-gradient(to bottom, rgba(10,8,12,.1) 15%, rgba(10,8,12,.3) 40%, rgba(10,8,12,.88) 100%); }
.feature-visual .score-card-total { align-self: flex-start; text-align: left; font: 750 clamp(70px, 7vw, 118px)/1 var(--font-body); letter-spacing: -.065em; }
.feature-visual .score-card-total small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.feature-visual .score-card-row { min-height: 38px; }
.feature-visual .score-card-row::before, .feature-visual .score-card-row::after { height: 1px; }
.feature-visual .score-card-row span, .feature-visual .score-card-row b { font-size: 12px; font-weight: 400; }
.feature-visual .score-card-row span small { color: #b3aab4; font-size: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .feature-copy.motion-ready { opacity: 0; transform: translateX(calc(-1 * min(64px, var(--gutter)))); transition: transform .9s var(--ease), opacity .9s var(--ease); }
  .feature-copy.motion-ready.is-in { opacity: 1; transform: none; }
  .feature-visual.motion-ready { transform: translateX(min(64px, var(--gutter))); }
}
.feature-visual { --direction: 1; --delay: .08s; }
@media (min-width: 961px) {
  .feature-copy .feature-kicker { position: relative; top: 12px; }
  /* Фото занимает всю колонку, высоту строки по-прежнему задаёт текст. */
  .feature-visual { contain: size; height: 100%; width: 100%; aspect-ratio: auto; justify-self: stretch; }
}
@media (max-width: 960px) {
  .tool-feature { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 90px 0 60px; max-width: 700px; margin: 0 auto; }
  .feature-number { font-size: 120px; }
  .feature-copy h3 { font-size: clamp(40px, 8vw, 64px); }
  .feature-visual .score-card-total { font-size: clamp(70px, 14vw, 110px); }
}
@media (max-width: 480px) {
  .feature-facts { grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
  .feature-facts > div:last-child { grid-column: 1 / -1; }
  .feature-visual { min-height: 0; border-radius: 20px; }
  .feature-visual .score-card-body { padding: 20px 18px; }
  .feature-description { margin-top: 24px; }
}
@media (max-width: 720px) {
  .tool-feature { gap: 56px; padding-top: 40px; }
  .feature-visual, #compare-dreemy-ai .feature-visual {
    grid-row: 1; height: clamp(320px, 85vw, 400px); min-height: 0; aspect-ratio: auto;
  }
  .feature-copy { grid-row: 2; }
  .feature-number { font-size: 96px; }
  .feature-visual .score-card-total { font-size: 64px; }
}


/* Bring the homepage selection and its actions into the first screen. */
.hero.hero-home { min-height: calc(100dvh - var(--header-h) - 120px); }
.hero-home h1 { font-size: clamp(38px, 4.8vw, 72px); }
.home-ranking { padding: 24px 0 40px; }
.tool-review-description { grid-area: description; margin: 0; }
.tool-review { scroll-margin-top: 0; }
@media (max-width: 960px) {
  .hero.hero-home {
    min-height: min(600px, calc(100svh - var(--header-h) - 248px));
    padding-top: clamp(48px, 8svh, 88px);
    padding-bottom: 20px;
  }
  .hero-home h1 { font-size: clamp(30px, 8.2vw, 42px); }
  .hero-home h1 span { display: block; }
  .hero-home .hero-actions .btn { padding: 0 14px; font-size: 13px; }
  .tool-card .tool-cta { grid-row: 3; }
  .home-ranking .tool-card .tool-cta { grid-row: 2; }
  .home-ranking .tool-cta .price { font-size: 20px; font-weight: 700; color: var(--text); }
  .home-ranking #ranking { scroll-margin-top: calc(-1 * var(--header-h)); }
  .tool-review {
    scroll-margin-top: calc(-1 * var(--header-h));
    grid-template-areas: "media" "copy" "action" "description" "facts" "sources";
  }
  .tool-feature { scroll-margin-top: calc(-1 * var(--header-h)); }
  .feature-copy { display: flex; flex-direction: column; }
  .feature-copy .feature-kicker { order: 0; }
  .feature-heading { order: 1; padding-top: 0; margin: 12px 0 16px; }
  .feature-copy .feature-cta { order: 2; align-self: flex-start; }
  .feature-note { order: 3; margin-top: 8px; }
  .feature-subtitle { order: 4; margin-top: 20px; }
  .feature-description { order: 5; }
  .feature-facts { order: 6; }
}
@media (max-width: 960px) and (max-height: 600px) {
  .hero-home h1 { font-size: clamp(28px, 7.6vw, 38px); }
}

.exchange-note { margin: 24px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* ---------- мобильная главная: композиция Top 10 Numerals ----------
   Экран 390×664, держится на 360–430. Десктоп и планшет не меняются: блоки .m-only скрыты,
   H1 один на все ширины. Вместо выдуманной динамики мест — цена, условия доступа и дата проверки. */
.hero-bg picture { display: contents; }
.m-only { display: none; }
@media (max-width: 600px) {
  .home {
    --m-bg: #121214; --m-surface: #1c1c21; --m-surface-2: #26262c; --m-line: rgba(255, 255, 255, .08);
    --m-text: #f4f4f5; --m-muted: #9b9ba4; --m-red: #ff2d55; --m-red-deep: #c4123a; --m-up: #3ddc84; --m-stroke: #4d4d56;
    --m-display: "Big Shoulders Display", Impact, sans-serif; --m-font: "Inter", system-ui, sans-serif;
    background: var(--m-bg);
  }
  .home .site-header { border: 0; background: rgba(18, 18, 20, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .home .site-header::before { display: none; }
  .home .header-row { height: 56px; gap: 6px; padding: 0 12px 0 16px; }
  .home .header-row > .logo { margin-right: auto; color: var(--m-text); font: 800 31px/1 var(--m-display); letter-spacing: .5px; text-transform: uppercase; }
  .home .header-row > .logo span { color: var(--m-red); font: inherit; letter-spacing: inherit; text-shadow: 0 0 14px rgba(255, 45, 85, .7); }
  .home .m-join, .home .m-join:hover {
    display: flex; align-items: center; flex: none; height: 38px; padding: 0 12px; border: 1.5px solid var(--m-red); border-radius: 10px;
    color: #fff; font: 700 14px/1 var(--m-font); text-decoration: none;
    box-shadow: 0 0 16px rgba(255, 45, 85, .25), inset 0 0 12px rgba(255, 45, 85, .15);
  }
  .home .m-join:active { background: rgba(255, 45, 85, .18); }
  .home .mobile-menu-toggle::before { border-color: var(--m-line); background: var(--m-surface); }
  .home .header-row > .badge-18 { border-color: var(--m-line); color: var(--m-muted); }

  .home .hero.hero-home {
    display: flex; gap: 14px; height: auto; min-height: 0; margin: 6px 12px 0; padding: 14px; border-radius: 22px;
    background: radial-gradient(70% 90% at 0% 0%, rgba(255, 45, 85, .28), transparent 60%), linear-gradient(160deg, #23161b, var(--m-surface) 55%);
    box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .25), 0 20px 40px rgba(0, 0, 0, .45);
  }
  .home .hero.hero-home::before { display: none; }
  .m-ghost { position: absolute; z-index: 0; right: -14px; bottom: -78px; display: block; color: transparent; font: 900 330px/1 var(--m-display); -webkit-text-stroke: 2px rgba(255, 45, 85, .22); pointer-events: none; }
  .home .hero .hero-bg { position: relative; z-index: 1; inset: auto; flex: none; width: 140px; height: auto; min-height: clamp(176px, calc(100svh - 470px), 210px); }
  .home .hero-bg img { position: absolute; inset: 0; object-fit: cover; object-position: 50% 14%; border-radius: 14px; box-shadow: 0 0 0 2px var(--m-red), 0 0 26px rgba(255, 45, 85, .55); }
  .m-crown {
    position: absolute; bottom: -9px; left: 50%; display: block; padding: 3px 12px; border-radius: 6px; background: var(--m-red); color: #fff;
    font: 800 16px/1 var(--m-display); letter-spacing: 1px; white-space: nowrap; text-transform: uppercase; transform: translateX(-50%);
    box-shadow: 0 4px 14px rgba(255, 45, 85, .6);
  }
  .home .hero-grid { display: flex; flex: 1; min-width: 0; max-width: none; padding: 0; }
  .home .hero-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; max-width: none; color: var(--m-text); font-family: var(--m-font); }
  .home .hero-copy .lead, .home .hero-copy .hero-actions { display: none; }
  .m-label { display: flex; align-items: center; gap: 8px; color: var(--m-muted); font-size: 12px; font-weight: 700; letter-spacing: .4px; line-height: 1.2; text-transform: uppercase; }
  .m-t3 { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 32px; border-radius: 4px; background: var(--m-red); color: #fff; font: 900 17px/.9 var(--m-display); }
  .m-t3 small { font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
  .home .hero h1 { max-width: none; margin: 8px 0 0; color: var(--m-text); font: 900 40px/.9 var(--m-display); letter-spacing: .5px; text-shadow: none; text-transform: uppercase; text-wrap: wrap; }
  .home .hero h1 span { display: block; margin-top: 4px; color: var(--m-muted); font-size: 18px; font-weight: 700; letter-spacing: .3px; line-height: 1; }
  .m-br { display: inline; }
  .m-say { display: block; margin-top: 6px; color: #e4e4e7; font-size: 13.5px; line-height: 1.35; }
  .m-cta, .m-cta:hover {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: auto; border-radius: 12px;
    background-color: var(--m-red); background-image: linear-gradient(180deg, #ff4a6d, var(--m-red) 55%, var(--m-red-deep));
    color: #fff; font-size: clamp(14px, 3.6vw, 15px); font-weight: 700; text-decoration: none; white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 24px rgba(255, 45, 85, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
  .m-cta:active { opacity: .85; }
  .m-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }
  .m-cta .icon { width: 16px; height: 16px; }
  .m-say + .lead + .hero-actions + .m-cta { margin-top: 8px; }

  .m-chart { display: block; padding: 22px 0 20px; color: var(--m-text); font-family: var(--m-font); }
  .m-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; }
  .m-chart-head h2 { color: var(--m-text); font: 900 32px/1 var(--m-display); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
  .m-chart-head em { color: var(--m-red); font-style: normal; font-weight: 900; }
  .m-period { padding: 6px 10px; border-radius: 10px; background: var(--m-surface); color: var(--m-muted); font-size: 12px; font-weight: 600; line-height: 1.3; text-align: right; text-wrap: balance; }
  /* overflow-x: auto сам включает скролл по вертикали, а цифры выше своей строки. Вертикаль закрыта, жест уходит странице. */
  .m-rank { display: flex; gap: 8px; margin: 0; padding: 16px 16px 0 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; list-style: none; scrollbar-width: none; }
  .m-rank::-webkit-scrollbar { display: none; }
  .m-item { display: flex; flex: none; align-items: flex-end; }
  .m-num { position: relative; z-index: 0; margin-right: -36px; color: var(--m-bg); font: 900 198px/.74 var(--m-display); letter-spacing: -6px; -webkit-text-stroke: 3px var(--m-stroke); }
  .m-item-1 .m-num { margin-right: -14px; filter: drop-shadow(0 0 10px rgba(255, 45, 85, .55)); -webkit-text-stroke-color: var(--m-red); }
  .m-poster { position: relative; z-index: 1; display: block; width: 110px; height: 158px; overflow: hidden; border-radius: 10px; box-shadow: -8px 0 18px rgba(0, 0, 0, .6); text-decoration: none; }
  .m-poster:active { opacity: .85; }
  .m-poster:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }
  .m-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
  .m-poster::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
  .m-poster b { position: absolute; z-index: 1; bottom: 7px; left: 9px; color: #fff; font: 800 17px/1 var(--m-display); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
  .m-mv {
    position: absolute; z-index: 1; top: 6px; right: 6px; display: flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 6px;
    background: rgba(0, 0, 0, .65); color: var(--m-muted); font: 700 11.5px/1 var(--m-font); font-style: normal;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .m-mv-up { color: var(--m-up); }
  .m-foot { display: flex; align-items: center; gap: 6px; margin: 14px 16px 0; padding-top: 12px; border-top: 1px solid var(--m-line); color: var(--m-muted); font-size: 13px; line-height: 1.3; }
  .m-foot > .icon { width: 16px; height: 16px; color: var(--m-red); }
  .m-foot a, .m-foot a:hover { display: flex; flex: none; align-items: center; height: 40px; margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
  .m-foot a .icon { width: 18px; height: 18px; color: var(--m-muted); }
}
@media (max-width: 374px) {
  .home .header-row > .logo { font-size: 26px; }
  .home .hero .hero-bg { width: 124px; }
  .home .hero h1 { font-size: 36px; }
  .m-cta .icon { display: none; }
  .m-label { gap: 6px; font-size: 11px; letter-spacing: .2px; }
  .m-chart-head h2 { font-size: 28px; }
  .m-foot { font-size: 12px; }
}
@media (max-width: 344px) {
  .home .m-join, .home .m-join:hover { display: none; }
}
