/* ================= Переменные ================= */
:root {
  --color-base: #333;
  --color-base-light: #6c6c6c;
  --color-bg: #f8f8f8;
  --color-white: #ffffff;
  --color-purple-500: #6a80ef;
  --color-red-100: #ffcdce;
  --color-base-light2: #999;
  --color-black-900: #111827;

  --primary: #2563EB;
  --text: var(--color-base);
  --bg: var(--color-bg);
  --gray: #E5E7EB;
  --card-bg: var(--color-white);
  --font-family-primary: "Inter", sans-serif;
  --font-open-sans: "Open Sans", sans-serif;
  --lt-color-text-default: var(--text);
  --lt-color-text-dark: var(--color-black-900);
  --lt-color-background-light: #f5f7fa;
  --lt-color-background-default: var(--card-bg);
  --lt-color-border-default: #e5e7eb;
  --lt-color-B100: #2563EB;
  --lt-shadowDefault: 0 4px 12px rgba(0, 0, 0, 0.05);
  --font-size-default: 16px;
  --font-line-height-default: 24px;
  --font-weight-default: 400;
  -webkit-text-size-adjust: 100%;
}

/* ================ Базовые стили ================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-default);
  line-height: var(--font-line-height-default);
  font-weight: var(--font-weight-default);
  color: var(--text);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-black-900);
}

a {
  transition: background-color 0.2s cubic-bezier(.37, 0, .63, 1);
}

/* ============== Вспомогательные классы ============== */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================== Компоненты ================== */
/* Шапка сайта */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-bg);
  height: 72px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem; /* mb-6 */
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--primary);
}

/* Кнопки целей */
.goal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 20px;
  border: 1px solid var(--gray);
  border-radius: 12px;
  background: var(--card-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.goal-btn:hover {
  background-color: var(--gray);
}

/* Калькулятор */
.calculator-container {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: var(--gray);
  height: 6px;
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: -5px;
  cursor: pointer;
}
input[type="range"]:focus {
  outline: none;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  height: 48px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

/* Блок рейтингов одобрения */
.approval-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 3rem;
}

.approval-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.approval-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.badge.top {
  background-color: #5534EE;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 10px;
}
.badge.week-leader {
  background-color: #dbeafe;
  color: #1e3a8a;
}

section:has(#approval-grid) {
  background-color: #5534EE;
}
section:has(#approval-grid) h2 {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}


/* ================ Страница статьи ================ */
.article-container {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .article-container {
    flex-direction: row;
    gap: 2rem;
  }
  .article-main {
    width: 100%;
  }
  .article-sidebar {
    width: 40%;
  }
}

#toc ul {
  list-style: none;
  padding-left: 0;
}
#toc a {
  color: var(--primary);
  text-decoration: none;
}
#toc a:hover {
  text-decoration: underline;
}

.article-card {
  padding: 24px 40px;
  background: var(--color-white);
  border-radius: 20px;
  max-width: 825px;
}
@media (max-width: 767px) {
  .article-card {
    padding: 20px 16px;
    border-radius: 0;
    max-width: none;
  }
  .article-main h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .article-main h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .article-main p {
    font-size: 18px;
    line-height: 28px;
  }
  .article-cover {
    height: auto;
  }
}

.article-meta {
  font-size: 14px;
  color: var(--color-base-light);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-main h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--color-base);
  margin-bottom: 16px;
}
.article-main h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--color-base);
  margin-top: 24px;
  margin-bottom: 16px;
}
.article-main p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-base);
  margin-bottom: 24px;
}

.article-cover {
  width: 100%;
  height: 445px;
  object-fit: cover;
  margin-bottom: 24px;
}

.article img,
.blog-post img,
.content img,
.rich-text img {
  max-width: 100%;
  height: auto;
}

.accent-block {
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 12px;
}
.accent-block.red {
  background: var(--color-red-100);
  color: #ff0508;
}
.accent-block.gray {
  background: #f8f8f8;
  color: var(--color-base);
}

.toc-list li {
  margin-bottom: 8px;
}

/* Универсальные таблицы для статей */
.article table,
.blog-post table,
.content table,
.rich-text table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  font-family: "Inter", sans-serif;
  margin: 24px 0;
  background-color: #fff;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.article th,
.blog-post th,
.content th,
.rich-text th {
  background-color: #f8f8f8;
  color: #2c3e50;
  text-align: center;
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}
.article td,
.blog-post td,
.content td,
.rich-text td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
  color: #333;
  word-break: break-word;
}
.article tr:nth-child(even) td,
.blog-post tr:nth-child(even) td,
.content tr:nth-child(even) td,
.rich-text tr:nth-child(even) td {
  background-color: #f9fafb;
}

/* Списки в тексте статей */
.article ul,
.blog-post ul,
.content ul,
.rich-text ul,
.article ol,
.blog-post ol,
.content ol,
.rich-text ol {
  margin: 16px 0;
  padding-left: 24px;
}
.article ul,
.blog-post ul,
.content ul,
.rich-text ul {
  list-style: disc;
}
.article ol,
.blog-post ol,
.content ol,
.rich-text ol {
  list-style: decimal;
}
.article ul li,
.blog-post ul li,
.content ul li,
.rich-text ul li,
.article ol li,
.blog-post ol li,
.content ol li,
.rich-text ol li {
  color: var(--color-base);
  font-size: var(--font-size-default);
  line-height: var(--font-line-height-default);
  font-weight: 400;
}
.article ul li::marker,
.blog-post ul li::marker,
.content ul li::marker,
.rich-text ul li::marker {
  color: var(--color-purple-500);
  font-size: 8px;
}
.article ol li::marker,
.blog-post ol li::marker,
.content ol li::marker,
.rich-text ol li::marker {
  color: var(--color-base-light);
}
.article li > strong,
.blog-post li > strong,
.content li > strong,
.rich-text li > strong {
  font-weight: 600;
  color: #2c3e50;
}
.article li ul,
.blog-post li ul,
.content li ul,
.rich-text li ul,
.article li ol,
.blog-post li ol,
.content li ol,
.rich-text li ol {
  margin-top: 12px;
  margin-left: 20px;
  padding-left: 20px;
}
.article li ul li::marker,
.blog-post li ul li::marker,
.content li ul li::marker,
.rich-text li ul li::marker {
  color: var(--color-base-light2);
  font-size: 5px;
}
.article li ol li::marker,
.blog-post li ol li::marker,
.content li ol li::marker,
.rich-text li ol li::marker {
  color: var(--color-base-light2);
  font-size: 0.8em;
}

/* Блок карточек МФО в статье */
.article-approval-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 1024px) {
  .article-approval-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
}
.article-mfo-sticky {
  position: sticky;
  top: 100px;
}

/* Grid article cards on the journal page */
.article-grid-card {
  display: block;
  overflow: hidden;
}
.article-grid-card img {
  transition: transform 1s;
}
.article-grid-card h2 {
  transition: color 1s;
}
.article-grid-card:hover img {
  transform: scale(1.05);
}
.article-grid-card:hover h2 {
  color: var(--primary);
}


/* ===== Loan Wizard ===== */
.step-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #D1D5DB;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.step {
  display: flex;
  align-items: center;
}

.step-active .step-circle {
  background-color: #2563EB;
  color: #fff;
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background-color: #D1D5DB;
}

.step-line-active {
  background-color: #2563EB;
}

.group-button,
.back-btn {
  border: 1px solid #D1D5DB;
  background-color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.group-button:hover,
.back-btn:hover {
  background-color: #F3F4F6;
}

.selected {
  border: 2px solid #2563EB;
  background-color: #EEF2FF;
  box-shadow: 0 0 6px rgba(85, 52, 238, 0.25);
}
.fade-enter {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}
.fade-enter-active {
  opacity: 1;
  transform: translateX(0);
}
.fade-exit {
  opacity: 1;
  transform: translateX(0);
}
.fade-exit-active {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

input[type="range"] {
    -webkit-appearance: none;  /* убираем стандартный стиль на WebKit-браузерах */
    width: 100%;
    height: 8px;              /* толщина дорожки */
    border-radius: 5px;
    background: #2563EB;
    outline: #2563EB;
}

/* «ползунок» в Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;            /* диаметр бегунка */
    height: 25px;
    border-radius: 50%;
    background: #5534EE;
    cursor: pointer;
}

/* «ползунок» в Firefox */
input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #5534EE;
    cursor: pointer;
}

/* ===== Reviews slider ===== */
.review-card {
    max-width: 350px;
    width: 100%;
    flex-shrink: 0;
}

.review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 4.5em;
    transition: max-height 0.3s ease;
}

.review-text.expanded {
    -webkit-line-clamp: unset;
    max-height: 100vh;
}

/* ====== Filter block ====== */
.filter-form input {
    border: 1px solid var(--gray);
    border-radius: 8px;
}

.filter-tags {
    max-height: 4.5rem;
    overflow: hidden;
}
.filter-tags.expanded {
    max-height: none;
}

.filter-tag {
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid var(--gray);
    border-radius: 9999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text);
}
.filter-tag-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.input-error {
    border-color: var(--color-red-100);
}

/* ====== Top MFO table block ====== */
.top-mfo-wrapper {
  font-family: var(--font-open-sans, var(--font-family-primary));
  color: var(--lt-color-text-default);
  background: var(--lt-color-background-light);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--lt-shadowDefault);
}

.mfo-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lt-color-background-default);
  font-size: 14px;
  line-height: 20px;
}
.mfo-table th {
  font-weight: 700;
  padding: 8px;
  border: 1px solid var(--lt-color-border-default);
  text-align: left;
}
.mfo-table td {
  padding: 8px;
  border: 1px solid var(--lt-color-border-default);
}
.mfo-table tr:nth-child(even) {
  background: var(--lt-color-background-light);
}
.mfo-table img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.seo-text h3 {
  color: var(--lt-color-text-dark);
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
}
.seo-text a {
  color: var(--lt-color-B100);
}
.seo-text ul,
.seo-text ol {
  margin: 16px 0;
  padding-left: 20px;
}
.seo-text table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.seo-text table td {
  border: 1px solid var(--lt-color-border-default);
  padding: 8px;
}
/* component style */
.vue-slider-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* rail style */
.vue-slider-rail {
  background-color: #ccc;
  border-radius: 15px;
}

/* process style */
.vue-slider-process {
  background-color: #2563EB;
  border-radius: 15px;
}

/* mark style */
.vue-slider-mark {
  z-index: 4;
}
.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {
  display: none;
}
.vue-slider-mark-step {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.16);
}
.vue-slider-mark-label {
  font-size: 14px;
  white-space: nowrap;
}
/* dot style */
.vue-slider-dot-handle {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #2563EB;
  box-sizing: border-box;
  box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);
}
.vue-slider-dot-handle-focus {
  box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);
}

.vue-slider-dot-handle-disabled {
  cursor: not-allowed;
  background-color: #ccc;
}

/*# sourceMappingURL=default.css.map */
