/* ============================================================
   портрет.рф — кастомные стили рейтинга
   Подключается после main.css
   ============================================================ */

/* ---------- Фон баннера ---------- */
.banner-area {
  background: url('../img/banner-bg1.jpg') no-repeat center center !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ============================================================
   ГЛАВНАЯ — карточки рейтинга
   ============================================================ */

.rating-intro {
  background: #fef9ec;
  border-left: 4px solid #f8b600;
  padding: 22px 26px;
  margin-bottom: 50px;
  font-size: 15px;
  color: #6b5a1e;
  line-height: 1.7;
}
.rating-intro strong { color: #222; }

.r-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: box-shadow .25s ease;
}
.r-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.07); }

/* Категория A — золото */
.r-card.cat-a { border: 2px solid #d4af37; }
.r-card.cat-a .r-rank {
  background: linear-gradient(135deg,#d4af37,#b8860b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184,134,11,.25);
}

/* Категория B — серебро */
.r-card.cat-b { border: 2px solid #c0c0c0; }
.r-card.cat-b .r-rank {
  background: linear-gradient(135deg,#c0c0c0,#8a8a8a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(138,138,138,.25);
}

/* Категория C — бронза */
.r-card.cat-c { border: 2px solid #cd8e5c; }
.r-card.cat-c .r-rank {
  background: linear-gradient(135deg,#cd8e5c,#a86a3d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(168,106,61,.25);
}

.r-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}
.r-rank {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #333;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r-photo {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #eee;
  background: #f7f7f7;
  display: block;
}

.r-name { flex: 1; padding-top: 4px; }
.r-name h3,
.r-name h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
  color: #222;
}
.r-name a { text-decoration: none; color: inherit; }
.r-name a:hover h3,
.r-name a:hover h4 { color: #f8b600; }
.r-name .r-role { color: #999; font-size: 13px; }

/* Бейдж категории в имени */
.r-cat {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}
.r-cat-a { background: linear-gradient(135deg,#d4af37,#b8860b); color: #fff; }
.r-cat-b { background: linear-gradient(135deg,#b8b8b8,#8a8a8a); color: #fff; }
.r-cat-c { background: linear-gradient(135deg,#cd8e5c,#a86a3d); color: #fff; }

/* ---------- Разделитель категорий: КОНТЕЙНЕР ---------- */
.cat-divider {
  text-align: center;
  margin: 40px 0 24px;
  padding: 16px 0;
  border-top: 2px solid #f0e0b8;
  border-bottom: 2px solid #f0e0b8;
  background: #fef9ec;
  border-radius: 8px;
}

/* ---------- Разделитель категорий: ТЕКСТ ---------- */
.cat-divider h2,
.cat-divider span {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #8a6d1a;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.cat-divider small {
  display: block;
  font-size: 13px;
  color: #999;
  margin-top: 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.r-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef9ec;
  color: #8a6d1a;
  border: 1px solid #f0e0b8;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}
.r-badge i { color: #f8b600; font-size: 13px; }

.r-bio { color: #555; margin-bottom: 10px; font-size: 15px; }

.r-price {
  display: inline-block;
  background: #fff8e1;
  color: #8a6d1a;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid #f0e0b8;
}
.r-price.req { background: #f7f7f7; color: #888; font-style: italic; border-color: #eee; }

.r-why {
  background: #f9f9f9;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  border-left: 3px solid #f8b600;
}
.r-why strong { color: #222; }

.r-tags { margin-top: 10px; }
.r-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a7a7a;
  background: #f7f7f7;
  padding: 4px 12px;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid #eee;
}
.r-tags span i { color: #f8b600; font-size: 11px; }

.r-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.r-score-label {
  font-size: 11.5px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  min-width: 110px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
}
.r-score .progress {
  flex: 1;
  height: 10px;
  background: #f0f0f0;
  border-radius: 100px;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}
.r-score .progress-bar {
  height: 100%;
  border-radius: 100px;
  background: #f8b600;
  transition: width .8s ease;
}
.r-score-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #f8b600;
  min-width: 52px;
  text-align: right;
  line-height: 1;
}

/* ============================================================
   Блок «Методология» на главной
   ============================================================ */

.method-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px;
  margin: 50px 0;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.method-item {
  padding: 16px 18px;
  background: #fafafa;
  border-left: 3px solid #f8b600;
  border-radius: 4px;
}
.method-item .m-weight {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #f8b600;
  line-height: 1;
  margin-bottom: 6px;
}
.method-item .m-name { font-weight: 600; font-size: 14px; color: #222; margin-bottom: 4px; }
.method-item .m-desc { font-size: 13px; color: #777; line-height: 1.5; }

/* ============================================================
   Блок-ссылка на народный рейтинг
   ============================================================ */

.people-link {
  background: #fef9ec;
  border: 1px solid #f0e0b8;
  border-left: 4px solid #f8b600;
  border-radius: 6px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.people-link p { margin: 0; color: #6b5a1e; font-size: 15px; max-width: 600px; }

/* ============================================================
   Блок «Сайты художников»
   ============================================================ */

.sites-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
}
.sites-lead { color: #777; font-size: 14.5px; margin-bottom: 24px; }
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 14px;
}
.site-row .site-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #f8b600;
  min-width: 22px;
}
.site-row .site-name { font-weight: 500; color: #333; }
.site-row .site-link {
  margin-left: auto;
  color: #f8b600;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}
.site-row .site-link:hover { text-decoration: underline; }

/* ============================================================
   НАРОДНЫЙ РЕЙТИНГ — голосование
   ============================================================ */

.vote-intro {
  background: #fef9ec;
  border-left: 4px solid #f8b600;
  padding: 22px 26px;
  margin-bottom: 40px;
  font-size: 15px;
  color: #6b5a1e;
  line-height: 1.7;
}
.vote-intro strong { color: #222; }

.vote-settings {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px 26px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.vote-settings .switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.vote-settings .switch-wrap p {
  margin: 0;
  font-size: 14px;
  color: #555;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
}
.vote-settings .primary-switch input:checked + label:before { background: #f8b600; }
.vote-settings .confirm-switch input:checked + label:before { background: #2e7d32; }

.vote-total {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Oswald', sans-serif;
  color: #777;
  font-size: 15px;
}
.vote-total strong {
  color: #f8b600;
  font-size: 22px;
  margin: 0 4px;
}

.vote-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.vote-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.vote-card.leader {
  border: 2px solid #f8b600;
  background: linear-gradient(180deg,#fefbf3 0%,#fff 60%);
}

.vote-card.moved-up { animation: moveUp 2s ease; }
.vote-card.moved-up::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #2e7d32;
}
@keyframes moveUp {
  0%   { background: #e8f5e9; border-color: #2e7d32; }
  60%  { background: #e8f5e9; border-color: #2e7d32; }
  100% { background: #fff; border-color: #eee; }
}
.vote-card.leader.moved-up { animation: moveUpLeader 2s ease; }
@keyframes moveUpLeader {
  0%   { background: #e8f5e9; border-color: #2e7d32; }
  60%  { background: #e8f5e9; border-color: #2e7d32; }
  100% { background: linear-gradient(180deg,#fefbf3 0%,#fff 60%); border-color: #f8b600; }
}

.vote-rank {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #333;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leader .vote-rank { background: #f8b600; color: #fff; }

.vote-info { flex: 1; min-width: 0; }
.vote-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #222;
  margin-bottom: 2px;
}
.vote-name a { color: inherit; text-decoration: none; }
.vote-name a:hover { color: #f8b600; }
.vote-city { color: #999; font-size: 13px; }

.vote-percent-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  max-width: 360px;
}
.vote-percent-wrap .progress {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 100px;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}
.vote-percent-wrap .progress-bar {
  height: 100%;
  border-radius: 100px;
  background: #f8b600;
  transition: width .4s ease;
}
.vote-percent-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #f8b600;
  min-width: 44px;
  text-align: right;
  line-height: 1;
}

.vote-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.vote-count { text-align: right; min-width: 70px; }
.vote-count .vote-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #f8b600;
  line-height: 1;
}
.vote-count .vote-lbl {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}
.vote-btn {
  background: #f8b600;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .1s;
}
.vote-btn:hover { background: #e0a400; }
.vote-btn:active { transform: scale(0.97); }
.vote-btn:disabled { background: #ddd; cursor: not-allowed; }

.vote-note {
  margin-top: 24px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  min-height: 22px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all .2s ease;
  opacity: 0;
}
.vote-note.show { opacity: 1; }
.vote-note.success { color: #2e7d32; background: #e8f5e9; border: 1px solid #c5e0cc; }
.vote-note.error   { color: #c62828; background: #ffebee; border: 1px solid #f5c6cb; }
.vote-note.warning { color: #8a6d1a; background: #fff8e1; border: 1px solid #f0e0b8; }

.vote-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 22px 18px 56px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  font-size: 15px;
  line-height: 1.5;
  transform: translateX(460px);
  opacity: 0;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), opacity .35s;
  pointer-events: none;
  border-left: 5px solid #f8b600;
}
.vote-toast.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.vote-toast.success { border-left-color: #2e7d32; }
.vote-toast.error   { border-left-color: #c62828; }
.vote-toast.warning { border-left-color: #f8b600; }

.vote-toast::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #2e7d32;
}
.vote-toast.error::before { content: '!'; background: #c62828; }
.vote-toast.warning::before { content: 'i'; background: #f8b600; }

.vote-toast .toast-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  margin-bottom: 4px;
}
.vote-toast .toast-text { color: #666; font-size: 14px; }

.vote-footer-link {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.vote-footer-link p { color: #777; font-size: 14px; margin-bottom: 16px; }

.hide-percent .vote-percent-wrap { display: none !important; }
.hide-city .vote-city { display: none !important; }

/* ============================================================
   МЕТОДОЛОГИЯ
   ============================================================ */

.method-lead {
  background: #fef9ec;
  border-left: 4px solid #f8b600;
  padding: 22px 26px;
  margin-bottom: 40px;
  font-size: 15px;
  color: #6b5a1e;
  line-height: 1.7;
}
.method-lead strong { color: #222; }

.single-defination .d-weight {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #f8b600;
  line-height: 1;
  margin-bottom: 8px;
}
.single-defination h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #242429;
}
.sources-note {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 22px 26px;
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
  border-left: 3px solid #f8b600;
}
.sources-note strong { color: #222; }


/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 720px) {
  .r-card { padding: 22px; }
  .r-head { gap: 14px; flex-wrap: wrap; }
  .r-rank { width: 44px; height: 44px; font-size: 18px; }
  .r-photo { width: 64px; height: 64px; }
  .r-name h3,
  .r-name h4 { font-size: 19px; }
  .r-score { flex-wrap: wrap; gap: 10px; }
  .r-score-label { min-width: auto; flex: 1; }
  .r-score-num { font-size: 17px; min-width: 44px; }
  .method-box, .sites-box { padding: 26px 22px; }
  .people-link { padding: 20px 22px; }
  .vote-card { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .vote-rank { width: 42px; height: 42px; font-size: 17px; }
  .vote-name { font-size: 17px; }
  .vote-side { width: 100%; justify-content: space-between; }
  .vote-btn { padding: 9px 18px; }
  .vote-percent-wrap { max-width: 100%; }
  .vote-settings { grid-template-columns: 1fr; padding: 16px 20px; gap: 14px; }
  .vote-toast { top: 70px; right: 12px; left: 12px; min-width: auto; }

  .footer-area { padding: 40px 0; }
  .footer-area .single-footer-widget h3,
  .footer-area .single-footer-widget h6 { font-size: 16px; margin-bottom: 16px; }

  .banner-area { height: 300px; }
}

/* ============================================================
   Категории в народном рейтинге (бейджи рядом с именем)
   ============================================================ */

.vote-cat {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.vote-cat-a { background: linear-gradient(135deg,#d4af37,#b8860b); color: #fff; }
.vote-cat-b { background: linear-gradient(135deg,#b8b8b8,#8a8a8a); color: #fff; }
.vote-cat-c { background: linear-gradient(135deg,#cd8e5c,#a86a3d); color: #fff; }

/* ============================================================
   Отступ сверху до меню — как в шаблоне
   ============================================================ */

.main-menu {
  padding-top: 19px;
}

/* ============================================================
   Фиксированная высота баннера — убирает скачок при загрузке шрифта
   ============================================================ */

.banner-area {
  height: 380px;
  overflow: hidden;
}

/* ============================================================
   Заголовки футера — золотые
   ============================================================ */

.footer-heading {
  color: #f8b600 !important;
  font-family: "Oswald", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 0 25px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: block !important;
}

@media (max-width: 720px) {
  .footer-heading {
    font-size: 16px !important;
    margin-bottom: 16px !important;
  }
}