/* ── Шрифты ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Cinzel';
  src: url('/static/fonts/Cinzel-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/Roboto-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DMMono';
  src: url('/static/fonts/DMMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Токены — дисциплинированная палитра ───────────────────── */
:root {
  --ink:      #0c0b09;
  --surface:  #161210;
  --surface2: #1e1a15;
  --violet:   #7B5FCC; /* ТОЛЬКО заливка формульной шкалы */
  --brass:    #C8A842;
  --brass-lo: #7a6428;
  --bone:     #E5DDD0;
  --bone-lo:  #a8a098;
  --muted:    #6A6358;
  --border:   #2a2520;
  --border2:  #3a3328;

  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-heavy:   'Roboto', 'Arial Black', sans-serif;
  --f-num:     'Cinzel', 'Times New Roman', serif;
  --f-mono:    'DMMono', 'Courier New', monospace;
  --f-text:    -apple-system, 'Segoe UI', Arial, sans-serif;

  --col-w: 760px;
  --gap: 1.75rem;
}

/* ── Сброс ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
ul, ol { list-style: none; }
a { color: var(--bone-lo); text-decoration: none; }
a:hover { color: var(--bone); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

/* ── Film grain ──────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
  mix-blend-mode: overlay;
}
main {
  flex: 1;
  background-image: linear-gradient(rgba(12,11,9,0.93), rgba(12,11,9,0.93)), url('/static/background.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* ── Шапка ──────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gap);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.site-logo {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.site-logo:hover { color: var(--bone); }
.site-nav a {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.site-nav a:hover { color: var(--bone); }

/* ── Контейнер ──────────────────────────────────────────────── */
.hero-content,
.methodology-preview,
.ranking,
.search-section,
.projects-section,
.methodology-page,
.studio-card,
.neighbors-section {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 2.5rem var(--gap);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-content { padding-top: 4rem; padding-bottom: 3.5rem; }

/* Canvas-фон hero */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.hero-marks, .hero-content { position: relative; z-index: 1; }

/* Регистрационные метки — латунь */
.hero-marks {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.reg-mark {
  position: absolute;
  width: 28px;
  height: 28px;
}
.hero-marks .reg-mark:nth-child(1) { top: 1.5rem; left: 1.75rem; }
.hero-marks .reg-mark:nth-child(2) { top: 1.5rem; right: 1.75rem; transform: rotate(90deg); }
.hero-marks .reg-mark:nth-child(3) { bottom: 1.5rem; left: 1.75rem; transform: rotate(-90deg); }
.hero-marks .reg-mark:nth-child(4) { bottom: 1.5rem; right: 1.75rem; transform: rotate(180deg); }

.rm-c {
  stroke-dashoffset: 56.5;
  animation: rm-draw 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.1s;
}
.rm-h {
  stroke-dashoffset: 32;
  animation: rm-draw 0.3s ease-out forwards 0.6s;
}
.rm-v {
  stroke-dashoffset: 32;
  animation: rm-draw 0.3s ease-out forwards 0.82s;
}
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rm-c, .rm-h, .rm-v { animation: none; stroke-dashoffset: 0; }
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--f-heavy);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--bone);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta__num {
  font-size: 1rem;
  color: var(--brass);
}
.hero-meta__dot { color: var(--border2); }

/* Полоса весов */
.weight-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.weight-bar--method { margin-bottom: 1.25rem; }

.weight-seg {
  min-width: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: seg-rise 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--seg-delay, 0ms);
}
.weight-seg__inner {
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.weight-seg__pct {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--brass);
}
.weight-seg__label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.3;
  padding: 0 2px;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 480px) {
  .weight-seg__label { display: none; }
  .weight-seg__inner { height: 28px; }
  .weight-seg__pct { font-size: 0.75rem; }
}
@keyframes seg-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .weight-seg { opacity: 1; animation: none; }
}

/* ── Методология (краткая) ──────────────────────────────────── */
.methodology-preview { border-bottom: 1px solid var(--border); }

.method-intro {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.method-excluded { margin: 1.25rem 0 1rem; }
.method-excluded__label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.method-excluded__list { display: flex; flex-direction: column; gap: 0.3rem; }
.method-excluded__list li {
  font-size: 0.8rem;
  color: var(--bone-lo);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.45;
}
.method-excluded__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── Section label ──────────────────────────────────────────── */
.section-label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Ссылки действий ─────────────────────────────────────────── */
.link-action {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--brass-lo);
  letter-spacing: 0.03em;
}
.link-action:hover { color: var(--brass); }

/* ── Рейтинг ────────────────────────────────────────────────── */
.ranking { padding-top: 0; }
.rank-list { display: flex; flex-direction: column; }

.rank-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  animation: row-appear 0.4s ease forwards;
  animation-delay: var(--row-delay, 0ms);
}
@keyframes row-appear { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rank-row { opacity: 1; transform: none; animation: none; }
}

.rank-num-col {
  display: flex;
  align-items: flex-start;
  padding-top: 0.2rem;
  padding-right: 0.75rem;
}
.rank-num {
  font-family: var(--f-num);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brass-lo);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.rank-row:hover .rank-num { color: var(--brass); }

/* Карточка */
.rank-card {
  border: 1px solid var(--border);
  border-left: 2px solid var(--border2);
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, border-left-color 0.2s;
}
.rank-row:hover .rank-card {
  background: var(--surface2);
  border-color: var(--border2);
  border-left-color: var(--brass-lo);
}

.rank-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.studio-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.studio-name a { color: var(--bone); }
.studio-name a:hover { color: var(--brass); }

.rank-score {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--brass);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.studio-meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.5rem;
  margin-bottom: 0.45rem;
}

.studio-styles {
  font-size: 0.75rem;
  color: var(--bone-lo);
  margin-bottom: 0.5rem;
}

/* Мини-шкала в карточке */
.rank-bar {
  display: block;
  width: 100%;
  height: 12px;
  margin-bottom: 0.5rem;
}
.rank-bar-fill {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rank-bar-fill.is-visible {
  clip-path: inset(0 var(--clip-r) 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .rank-bar-fill { clip-path: inset(0 var(--clip-r) 0 0) !important; transition: none; }
}

.studio-fact {
  font-size: 0.75rem;
  color: var(--bone-lo);
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.rank-card__links {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.rank-link-internal {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.rank-link-internal:hover { color: var(--bone); }

.rank-link-external {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.rank-link-external:hover { color: var(--bone); }

/* ── Поиск ──────────────────────────────────────────────────── */
.search-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.search-hint {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.search-sug__label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.2rem;
}
.search-sug {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--bone-lo);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  letter-spacing: 0.02em;
}
.search-sug:hover {
  border-color: var(--brass-lo);
  color: var(--bone);
  background: var(--surface);
}

/* ── Google CSE ─────────────────────────────────────────────── */
.gsc-control-cse,
.gsc-control-cse .gsc-input-box,
.gsc-control-cse .gsc-search-box,
.gsc-control-cse .gsc-adBlock,
.gsc-control-cse .gsc-above-wrapper-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.gsc-control-wrapper-cse,
.gsc-search-box,
table.gsc-search-box {
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}
.gsc-orderby-container,
.gsc-tabsArea,
.gsc-branding,
.gsc-clear-button { display: none !important; }

.search-box-wrap {
  border: 1px solid var(--border2);
  border-top: 2px solid var(--brass-lo);
  transition: border-color 0.2s, border-top-color 0.2s;
}
.search-box-wrap:focus-within {
  border-color: var(--bone-lo);
  border-top-color: var(--brass);
}
.gsc-input-box {
  background: var(--surface) !important;
  border: none !important;
  border-radius: 0 !important;
  height: 54px !important;
  box-shadow: none !important;
}
input.gsc-input {
  background: transparent !important;
  color: var(--bone) !important;
  font-family: var(--f-mono) !important;
  font-size: 1rem !important;
  padding: 0 1.25rem !important;
  border: none !important;
  outline: none !important;
  letter-spacing: 0.02em !important;
}
input.gsc-input::placeholder { color: var(--muted) !important; font-style: italic !important; }

.gsc-search-button-v2 {
  background: var(--surface2) !important;
  border: 1px solid var(--border2) !important;
  border-top: 2px solid var(--brass-lo) !important;
  border-radius: 0 !important;
  padding: 0 1.4rem !important;
  height: 54px !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
}
.gsc-search-button-v2 svg { fill: var(--brass-lo) !important; width: 18px !important; height: 18px !important; }
.gsc-search-button-v2:hover { border-color: var(--brass-lo) !important; background: var(--surface) !important; }
.gsc-search-button-v2:hover svg { fill: var(--brass) !important; }


/* ── Проекты ────────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; gap: 0.6rem; }
.project-item { display: flex; align-items: baseline; gap: 0.7rem; }
.project-name {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--bone-lo);
  white-space: nowrap;
}
.project-name:hover { color: var(--bone); }
.project-desc { font-size: 0.78rem; color: var(--muted); }

/* ── Подвал ─────────────────────────────────────────────────── */
.site-footer {
  padding: 1.75rem var(--gap);
  border-top: 1px solid var(--border);
  max-width: var(--col-w);
  margin: 0 auto;
  width: 100%;
}
.affiliation {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-left: 2px solid var(--border2);
  line-height: 1.5;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
  opacity: 0.45;
}

/* ── Хлебные крошки ─────────────────────────────────────────── */
.breadcrumb {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 1.25rem var(--gap) 0;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--bone); }

/* ── Карточка студии ─────────────────────────────────────────── */
.studio-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.studio-card__rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-top: 0.15rem;
}
.studio-rank-num {
  font-family: var(--f-num);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
  letter-spacing: -0.04em;
}
.studio-rank-label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.studio-card__name {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.studio-legal { font-size: 0.76rem; color: var(--muted); margin-top: 0.3rem; }

/* Score ring — латунь */
.studio-card__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.score-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}
.score-ring { width: 80px; height: 80px; display: block; }
.score-ring-fill {
  stroke-dashoffset: 201.1;
  animation:
    score-ring-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s,
    ring-pulse 0.7s ease-out forwards 1.55s;
}
@keyframes score-ring-draw { to { stroke-dashoffset: var(--dot); } }
@keyframes ring-pulse {
  0%   { filter: drop-shadow(0 0 10px rgba(200, 168, 66, 0.8)); }
  100% { filter: drop-shadow(0 0 0px rgba(200, 168, 66, 0)); }
}
@media (prefers-reduced-motion: reduce) {
  .score-ring-fill { animation: none; stroke-dashoffset: var(--dot); }
}
.studio-total-score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 1.3rem;
  color: var(--brass);
}
.studio-total-label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
}

/* ── SVG формула ─────────────────────────────────────────────── */
.formula-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.formula-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.formula-hint { font-size: 0.75rem; color: var(--muted); margin-bottom: 1.25rem; }

.formula-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 88;
  margin-bottom: 1.5rem;
}

.formula-fill-rect {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.formula-fill-rect.is-visible {
  clip-path: inset(0 var(--clip-r) 0 0);
  filter: drop-shadow(0 0 7px rgba(123, 95, 204, 0.55));
}
@media (prefers-reduced-motion: reduce) {
  .formula-fill-rect { clip-path: inset(0 var(--clip-r) 0 0) !important; transition: none; }
}

.formula-breakdown {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.breakdown-row { display: contents; }
.breakdown-name { color: var(--bone); padding: 0.16rem 0; }
.breakdown-calc { color: var(--muted); text-align: right; white-space: nowrap; }
.breakdown-contrib { color: var(--brass); text-align: right; }

.breakdown-total .breakdown-name,
.breakdown-total .breakdown-calc,
.breakdown-total .breakdown-contrib {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
.breakdown-total .breakdown-name { color: var(--bone); }
.breakdown-total .breakdown-contrib { font-size: 0.95rem; }

/* ── Инфо-секция студии ─────────────────────────────────────── */
.studio-info { margin-bottom: 2rem; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.9rem;
}
.info-item dt {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.info-item dd { font-size: 0.88rem; color: var(--bone); }

/* ── Теги и списки ───────────────────────────────────────────── */
.subsection-label {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.studio-styles-section, .studio-services-section,
.studio-equipment-section, .studio-certs-section,
.studio-awards-section { margin-bottom: 1.5rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--bone-lo);
  background: var(--surface);
}

.plain-list { display: flex; flex-direction: column; gap: 0.35rem; }
.plain-list li {
  font-size: 0.84rem;
  color: var(--bone);
  padding-left: 0.85rem;
  position: relative;
}
.plain-list li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }

/* ── Подвал карточки ─────────────────────────────────────────── */
.studio-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}
.studio-url-link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--brass-lo);
}
.studio-url-link:hover { color: var(--brass); }
.verified-date {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  color: var(--muted);
}

.sources-list { display: flex; flex-direction: column; gap: 0.3rem; }
.sources-list a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
}
.sources-list a:hover { color: var(--bone); }

/* ── Соседние студии ─────────────────────────────────────────── */
.neighbors-section { padding-top: 0; }
.neighbors-list { margin-bottom: 1.25rem; }
.neighbor-item {
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.neighbor-pos {
  font-family: var(--f-num);
  font-size: 0.85rem;
  color: var(--brass-lo);
}
.neighbor-name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.neighbor-name:hover { color: var(--brass); }
.neighbor-score {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--brass);
}

/* ── Страница методологии ───────────────────────────────────── */
.methodology-header { margin-bottom: 2rem; }
.methodology-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.methodology-date { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); }

.methodology-intro p { font-size: 0.9rem; color: var(--bone); opacity: 0.8; margin-bottom: 0.75rem; line-height: 1.7; }

.formula-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border2);
  padding: 0.7rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  color: var(--bone);
  margin: 1rem 0 2rem;
}

.criteria-full { margin-bottom: 2.5rem; }
.criteria-table { display: flex; flex-direction: column; }
.criteria-row { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.criteria-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.criteria-row__label {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.criteria-row__weight { font-family: var(--f-mono); font-size: 0.95rem; color: var(--brass); }
.criteria-row__desc { font-size: 0.84rem; color: var(--bone); opacity: 0.7; margin-bottom: 0.25rem; line-height: 1.55; }
.criteria-row__scale { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); }

.methodology-excluded, .methodology-sources-policy { margin-bottom: 2rem; }
.methodology-excluded .plain-list li,
.methodology-sources-policy p { font-size: 0.84rem; color: var(--bone); opacity: 0.7; line-height: 1.6; }
.methodology-back { margin-top: 3rem; }

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --gap: 1rem; }
  .hero-content { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .rank-row { grid-template-columns: 3rem 1fr; }
  .rank-num { font-size: 1.7rem; }
  .studio-card__header { grid-template-columns: auto 1fr; gap: 1rem; }
  .studio-card__total {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
}
@media (max-width: 360px) {
  .hero-title { font-size: 2.2rem; }
  .rank-num { font-size: 1.4rem; }
}
