    :root {
      --page: #f6efe5;
      --page-2: #efe2d0;
      --surface: #fffaf2;
      --surface-2: #fbf2e6;
      --surface-3: #f1dfc8;
      --text: #22170f;
      --text-soft: #6d5b49;
      --muted: #8e7a64;
      --line: #e7d6bf;
      --line-strong: #d5b991;
      --brand: #9a6332;
      --brand-2: #c88948;
      --brand-dark: #6f411d;
      --accent: #2f6f5f;
      --accent-soft: #dcefe8;
      --danger: #b65840;
      --footer: #21160e;
      --shadow: 0 16px 40px rgba(82, 51, 22, .09);
      --shadow-small: 0 8px 22px rgba(82, 51, 22, .08);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --radius-sm: 10px;
      --container: 1184px;
      --header-h: 72px;
      --font: Inter, "PT Root UI", "DIN Pro", "Segoe UI", Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background:
        radial-gradient(circle at 8% 0%, rgba(200, 137, 72, .15), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(47, 111, 95, .12), transparent 28%),
        linear-gradient(180deg, #fbf5ec 0%, var(--page) 36%, #f4ebde 100%);
      color: var(--text);
      font-family: var(--font);
      font-size: 16px;
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body.locked {
      overflow: hidden;
    }

    /**
 * Глобальные ссылки сайта.
 * Используется для меню, футера, карточек, кнопок и других UI-элементов.
 */
a {
  color: inherit;
  text-decoration: none;
}

    button,
    input,
    select {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    img,
    svg {
      display: block;
      max-width: 100%;
    }

    .container {
      width: min(var(--container), calc(100% - 32px));
      margin-inline: auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 60;
      height: var(--header-h);
      background: rgba(255, 250, 242, .88);
      border-bottom: 1px solid rgba(213, 185, 145, .55);
      backdrop-filter: blur(16px);
    }

    .header-inner {
      height: 100%;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 28px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: max-content;
      font-weight: 900;
      letter-spacing: -.04em;
      font-size: 23px;
    }

    .logo-mark {
      position: relative;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 50%, #fff8ee 0 34%, transparent 35%),
        conic-gradient(from 40deg, var(--brand) 0 37%, var(--accent) 37% 62%, var(--brand-2) 62% 100%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 8px 18px rgba(154, 99, 50, .24);
    }

    .logo-mark::after {
      content: "";
      position: absolute;
      width: 12px;
      height: 12px;
      right: 2px;
      top: 4px;
      border-radius: 50%;
      background: #fffaf2;
    }

    .logo-img {
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      display: block;
      object-fit: contain;
      border-radius: 50%;
      filter: drop-shadow(0 8px 18px rgba(154, 99, 50, .18));
    }

    .nav {
      height: 100%;
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 25px;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      color: var(--text-soft);
      font-weight: 700;
      white-space: nowrap;
      transition: color .2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--text);
    }

    .nav-link.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: linear-gradient(90deg, var(--brand), var(--brand-2));
    }

    .header-actions {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .login-btn,
    .menu-btn {
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff4e6;
      color: var(--brand-dark);
      font-weight: 800;
      padding: 0 18px;
      box-shadow: 0 6px 14px rgba(82, 51, 22, .05);
      transition: transform .18s ease, background .18s ease, border-color .18s ease;
    }

    .login-btn:hover,
    .menu-btn:hover {
      transform: translateY(-1px);
      background: #ffe9cd;
      border-color: var(--line-strong);
    }

    .menu-btn {
      display: none;
      width: 44px;
      padding: 0;
      font-size: 23px;
    }

    .hero {
      padding: 48px 0 26px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
      align-items: stretch;
      gap: 24px;
    }

    .hero-main {
      padding: 30px;
      border: 1px solid rgba(213, 185, 145, .6);
      border-radius: var(--radius-xl);
      background:
        linear-gradient(135deg, rgba(255, 250, 242, .98), rgba(245, 227, 202, .86)),
        radial-gradient(circle at 80% 5%, rgba(200, 137, 72, .22), transparent 30%);
      box-shadow: var(--shadow);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 30px;
      margin-bottom: 16px;
      padding: 4px 12px;
      border: 1px solid rgba(154, 99, 50, .18);
      border-radius: 999px;
      background: rgba(255, 244, 230, .9);
      color: var(--brand-dark);
      font-size: 13px;
      font-weight: 800;
    }

    .eyebrow::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(47, 111, 95, .12);
    }

    h1 {
      max-width: 1180px;
      margin: 0;
      font-size: clamp(34px, 4vw, 46px);
      line-height: .98;
      letter-spacing: -.06em;
    }

    .hero-text {
      max-width: 710px;
      margin: 18px 0 26px;
      color: var(--text-soft);
      font-size: clamp(16px, 1.5vw, 19px);
    }

    .search-card {
      display: grid;
      grid-template-columns: 1fr 1fr 220px;
      overflow: hidden;
      border: 1px solid var(--line-strong);
      border-radius: 18px;
      background: #fffaf2;
      box-shadow: 0 10px 22px rgba(82, 51, 22, .06);
    }

    .field {
      position: relative;
      min-height: 64px;
      display: flex;
      align-items: center;
      background: #fffaf2;
    }

    .field + .field {
      border-left: 1px solid var(--line);
    }

    .field label {
      position: absolute;
      top: 10px;
      left: 18px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .field input,
    .field select {
      width: 100%;
      height: 100%;
      padding: 25px 18px 8px;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--text);
      font-weight: 700;
      appearance: none;
    }

    .field select {
      padding-right: 44px;
    }

    .select-field::after {
      content: "⌄";
      position: absolute;
      right: 18px;
      top: 50%;
      color: var(--brand);
      font-size: 24px;
      transform: translateY(-58%);
      pointer-events: none;
    }

    .primary-btn {
      min-height: 64px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 26px;
      background: linear-gradient(135deg, var(--brand-dark), var(--brand-2));
      color: #fff;
      font-weight: 900;
      letter-spacing: -.01em;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }

    .primary-btn:hover {
      transform: translateY(-1px);
      filter: saturate(1.04);
      box-shadow: 0 14px 28px rgba(154, 99, 50, .23);
    }

    .hero-side {
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 14px;
    }

    .score-card,
    .note-card {
      border: 1px solid rgba(213, 185, 145, .65);
      border-radius: var(--radius-lg);
      background: rgba(255, 250, 242, .78);
      box-shadow: var(--shadow-small);
    }

    .score-card {
      padding: 22px;
    }

    .score-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 18px;
    }

    .score-top strong {
      display: block;
      font-size: 18px;
      letter-spacing: -.03em;
    }

    .score-top span {
      color: var(--text-soft);
      font-size: 13px;
    }

    .score-value {
      min-width: 74px;
      height: 74px;
      display: grid;
      place-items: center;
      border-radius: 24px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 24px;
      font-weight: 900;
    }

    .score-bars {
      display: grid;
      grid-template-columns: 1fr 1.4fr .8fr;
      gap: 8px;
      margin-bottom: 12px;
    }

    .score-bars span {
      height: 10px;
      border-radius: 999px;
      background: #d6b381;
    }

    .score-bars span:nth-child(2) {
      background: var(--brand-2);
    }

    .score-bars span:nth-child(3) {
      background: var(--accent);
    }

    .score-caption {
      color: var(--text-soft);
      font-size: 14px;
    }

    .note-card {
      display: grid;
      align-content: end;
      padding: 22px;
      min-height: 170px;
      background:
        linear-gradient(135deg, rgba(47, 111, 95, .11), rgba(255, 250, 242, .84)),
        url("data:image/svg+xml,%3Csvg width='180' height='130' viewBox='0 0 180 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c88948' stroke-opacity='.25' stroke-width='2'%3E%3Cpath d='M15 95c35-22 62-22 96 0 17 11 36 15 56 9'/%3E%3Cpath d='M24 77c25-17 58-17 90 0 15 8 29 10 43 6'/%3E%3Cpath d='M48 53c17-9 36-8 58 3 11 6 23 7 34 3'/%3E%3C/g%3E%3C/svg%3E") right bottom / 180px auto no-repeat;
    }

    .note-card strong {
      max-width: 280px;
      display: block;
      margin-bottom: 8px;
      font-size: 19px;
      line-height: 1.12;
      letter-spacing: -.03em;
    }

    .note-card p {
      max-width: 300px;
      margin: 0;
      color: var(--text-soft);
      font-size: 14px;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 18px;
      margin: 10px 0 18px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(23px, 2.2vw, 32px);
      line-height: 1.1;
      letter-spacing: -.04em;
    }

    .sort {
      position: relative;
      min-width: max-content;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-soft);
      font-weight: 700;
    }

    .sort button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 250, 242, .82);
      color: var(--brand-dark);
      font-weight: 900;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 54px;
    }

    .loan-card {
      min-height: 250px;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 13px;
      padding: 14px;
      border: 1px solid rgba(213, 185, 145, .55);
      border-radius: 18px;
      background: rgba(255, 250, 242, .9);
      box-shadow: var(--shadow-small);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

    .loan-card:hover,
    .loan-card.active {
      transform: translateY(-3px);
      border-color: var(--brand-2);
      box-shadow: 0 18px 36px rgba(82, 51, 22, .13);
    }

    .loan-head {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .loan-logo {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      border: 1px solid rgba(213, 185, 145, .65);
      background: linear-gradient(135deg, #fff, #f4dfc1);
      color: var(--brand-dark);
      font-weight: 900;
      overflow: hidden;
    }

    .loan-logo.green {
      background: linear-gradient(135deg, #eef7e5, #bfe4a5);
      color: #41762f;
    }

    .loan-logo.teal {
      background: linear-gradient(135deg, #e5f3ef, #b5ded3);
      color: var(--accent);
    }

    .loan-logo.red {
      background: linear-gradient(135deg, #fff0e8, #e7a587);
      color: var(--danger);
    }

    .loan-name {
      min-width: 0;
    }

    .loan-name h3 {
      overflow: hidden;
      margin: 0;
      font-size: 16px;
      line-height: 1.15;
      letter-spacing: -.02em;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .loan-name span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
    }

    .loan-info {
      display: grid;
      gap: 10px;
      align-content: center;
    }

    .info-row {
      display: grid;
      grid-template-columns: .75fr 1.25fr;
      gap: 8px;
      align-items: end;
    }

    .info-label {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.1;
    }

    .info-value {
      justify-self: end;
      color: var(--text);
      font-weight: 900;
      text-align: right;
      white-space: nowrap;
    }

    .card-actions {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 10px;
    }

    .ghost-btn,
    .money-btn {
      min-height: 42px;
      border-radius: 12px;
      font-weight: 900;
      transition: transform .18s ease, background .18s ease;
    }

    .ghost-btn {
      border: 1px solid var(--line);
      background: #fff4e6;
      color: var(--brand-dark);
      padding: 0;
    }

    .money-btn {
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      color: #fff;
      padding: 0 12px;
    }

    .ghost-btn:hover,
    .money-btn:hover {
      transform: translateY(-1px);
    }

    .content-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 24px;
      margin-bottom: 58px;
    }

    .compare-box,
    .article-box,
    .tags-box {
      border: 1px solid rgba(213, 185, 145, .65);
      border-radius: var(--radius-xl);
      background: rgba(255, 250, 242, .86);
      box-shadow: var(--shadow);
    }

    .compare-box {
      overflow: hidden;
      padding: 26px 26px 0;
    }

    .compare-box h2,
    .article-box h2,
    .tags-box h2 {
      margin: 0 0 20px;
      font-size: clamp(22px, 2vw, 30px);
      line-height: 1.12;
      letter-spacing: -.04em;
    }

    .table-wrap {
      overflow-x: auto;
      margin-inline: -26px;
    }

    table {
      width: 100%;
      min-width: 900px;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 14px 18px;
      text-align: left;
      vertical-align: middle;
    }

    th {
      background: #ead8bf;
      color: var(--text-soft);
      font-size: 13px;
      font-weight: 800;
    }

    tbody tr:nth-child(even) {
      background: rgba(239, 226, 208, .48);
    }

    tbody td {
      border-top: 1px solid rgba(213, 185, 145, .32);
      font-weight: 700;
    }

    .table-company {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: max-content;
    }

    .mini-logo {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff6ea;
      color: var(--brand-dark);
      font-weight: 900;
    }

    .aside-widget {
      position: sticky;
      top: calc(var(--header-h) + 16px);
      align-self: start;
      border: 1px solid rgba(213, 185, 145, .65);
      border-radius: var(--radius-xl);
      background: linear-gradient(180deg, #fffaf2, #f2dfc5);
      box-shadow: var(--shadow);
      padding: 22px;
    }

    .aside-widget h3 {
      margin: 0 0 8px;
      font-size: 22px;
      line-height: 1.1;
      letter-spacing: -.04em;
    }

    .aside-widget p {
      margin: 0 0 16px;
      color: var(--text-soft);
      font-size: 14px;
    }

    .steps {
      counter-reset: step;
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .steps li {
      counter-increment: step;
      display: grid;
      grid-template-columns: 32px 1fr;
      gap: 10px;
      align-items: start;
      color: var(--text-soft);
      font-size: 14px;
    }

    .steps li::before {
      content: counter(step);
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-weight: 900;
    }

    .article-box {
      padding: 28px;
      margin-bottom: 58px;
    }

    .article-box h3 {
      margin: 26px 0 12px;
      font-size: 22px;
      line-height: 1.15;
      letter-spacing: -.03em;
    }

    .article-box p {
      margin: 0 0 14px;
      color: var(--text-soft);
    }

    .article-box ul,
    .article-box ol {
      margin: 0 0 16px;
      padding-left: 22px;
      color: var(--text-soft);
    }

    .article-box li {
      margin-bottom: 8px;
    }

    .tags-box {
      padding: 26px;
      margin-bottom: 70px;
    }

    .tags-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
    }

    .tag-col strong {
      display: block;
      margin-bottom: 10px;
      font-size: 17px;
      letter-spacing: -.02em;
    }

    .tag-col a {
      display: block;
      margin: 8px 0;
      color: var(--text-soft);
      font-size: 14px;
      transition: color .18s ease;
    }

    .tag-col a:hover {
      color: var(--brand-dark);
    }

    .breadcrumbs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 34px;
      color: var(--brand-dark);
      font-size: 14px;
      font-weight: 700;
    }

    .footer {
      background:
        radial-gradient(circle at 10% 10%, rgba(200,137,72,.24), transparent 30%),
        var(--footer);
      color: #fff7ec;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 42px;
      padding: 42px 0;
      border-bottom: 1px solid rgba(255, 250, 242, .15);
    }

    .footer h3 {
      margin: 0 0 16px;
      color: #fff7ec;
      font-size: 17px;
    }

    .footer a {
      display: block;
      margin: 9px 0;
      color: rgba(255, 247, 236, .78);
      font-size: 14px;
    }

    .footer a:hover {
      color: #fff7ec;
    }

    .footer-bottom {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 26px;
      align-items: center;
      padding: 28px 0 38px;
    }

    .footer .logo {
      color: #fff7ec;
    }

    .socials {
      display: flex;
      gap: 10px;
      justify-content: center;
    }

    .socials a {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      margin: 0;
      border-radius: 50%;
      background: rgba(255, 247, 236, .12);
      color: #fff7ec;
      font-size: 12px;
      font-weight: 900;
    }

    .phone {
      justify-self: end;
      color: #ffd89d;
      text-align: right;
      font-size: 24px;
      font-weight: 900;
    }

    .phone small {
      display: block;
      color: rgba(255, 247, 236, .7);
      font-size: 12px;
      font-weight: 500;
    }

    .legal {
      grid-column: 1 / -1;
      max-width: 980px;
      margin: 2px auto 0;
      color: rgba(255, 247, 236, .55);
      text-align: center;
      font-size: 12px;
    }

    .drawer {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      grid-template-columns: 1fr minmax(420px, 610px);
      background: rgba(34, 23, 15, .36);
    }

    .drawer.open {
      display: grid;
    }

    .drawer-panel {
      min-height: 100dvh;
      display: grid;
      grid-template-rows: auto 1fr auto;
      padding: 42px;
      background: #fffaf2;
      box-shadow: -18px 0 46px rgba(34, 23, 15, .18);
      overflow-y: auto;
    }

    .drawer-close {
      position: absolute;
      top: 20px;
      right: 22px;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: #f1dfc8;
      color: var(--brand-dark);
      font-size: 26px;
    }

    .drawer-title {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
    }

    .drawer-title h2 {
      margin: 0;
      font-size: 25px;
      letter-spacing: -.04em;
    }

    .drawer-tabs {
      display: flex;
      gap: 18px;
      margin-bottom: 22px;
      border-bottom: 1px solid var(--line);
    }

    .tab {
      position: relative;
      padding: 0 0 12px;
      background: transparent;
      color: var(--text-soft);
      font-weight: 800;
    }

    .tab.active {
      color: var(--brand-dark);
    }

    .tab.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand-2);
    }

    .tab-panel {
      display: none;
    }

    .tab-panel.active {
      display: block;
    }

    .conditions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 18px;
    }

    .condition {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-2);
    }

    .condition span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .condition strong {
      display: block;
      margin-top: 4px;
      font-size: 17px;
    }

    .drawer-note {
      color: var(--text-soft);
      margin: 0;
    }

    .drawer-action {
      width: 100%;
      min-height: 58px;
      margin-top: 24px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--brand-dark), var(--brand-2));
      color: #fff;
      font-weight: 900;
    }

    .cookie {
      position: fixed;
      left: 18px;
      bottom: 18px;
      z-index: 90;
      width: min(430px, calc(100% - 36px));
      padding: 16px;
      border: 1px solid rgba(213, 185, 145, .75);
      border-radius: 18px;
      background: rgba(255, 250, 242, .96);
      box-shadow: var(--shadow);
      transition: transform .2s ease, opacity .2s ease;
    }

    .cookie.hidden {
      transform: translateY(16px);
      opacity: 0;
      pointer-events: none;
    }

    .cookie p {
      margin: 0 0 12px;
      color: var(--text-soft);
      font-size: 13px;
    }

    .cookie button {
      min-height: 40px;
      border-radius: 12px;
      background: var(--text);
      color: #fff;
      font-weight: 900;
      padding: 0 16px;
    }

    @media (max-width: 1120px) {
      .nav {
        gap: 16px;
      }

      .cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .search-card {
        grid-template-columns: 1fr 1fr 190px;
      }
    }

    @media (max-width: 980px) {
      .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
      }

      .menu-btn {
        display: inline-grid;
        place-items: center;
      }

      .nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-h);
        height: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
        background: rgba(255, 250, 242, .98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
      }

      .nav.open {
        display: flex;
      }

      .nav-link {
        min-height: 42px;
      }

      .nav-link.active::after {
        left: 0;
        right: auto;
        width: 48px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
      }

      .search-card {
        grid-template-columns: 1fr;
      }

      .field + .field {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .primary-btn {
        border-radius: 0;
      }

      .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .content-grid {
        grid-template-columns: 1fr;
      }

      .aside-widget {
        position: static;
      }

      .tags-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-top,
      .footer-bottom {
        grid-template-columns: 1fr;
      }

      .phone {
        justify-self: start;
        text-align: left;
      }

      .socials {
        justify-content: flex-start;
      }
    }

    @media (max-width: 720px) {
      .container {
        width: min(100% - 24px, var(--container));
      }

      .hero {
        padding-top: 28px;
      }

      .hero-main {
        padding: 22px;
        border-radius: 22px;
      }

      .section-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .loan-card {
        min-height: 222px;
        padding: 9px;
        border-radius: 15px;
      }

      .loan-head {
        grid-template-columns: 32px 1fr;
        gap: 8px;
      }

      .loan-logo {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
      }

      .loan-name h3 {
        font-size: 14px;
      }

      .loan-name span {
        display: none;
      }

      .info-row {
        grid-template-columns: .72fr 1.28fr;
        gap: 5px;
      }

      .info-label {
        font-size: 11px;
      }

      .info-value {
        font-size: 14px;
      }

      .card-actions {
        grid-template-columns: 34px 1fr;
        gap: 6px;
      }

      .ghost-btn,
      .money-btn {
        min-height: 34px;
        border-radius: 10px;
        font-size: 12px;
      }

      .compare-box,
      .article-box,
      .tags-box {
        border-radius: 20px;
      }

      .compare-box {
        padding: 20px 14px 0;
      }

      .table-wrap {
        margin-inline: -14px;
      }

      .article-box,
      .tags-box {
        padding: 20px;
      }

      .drawer {
        grid-template-columns: 1fr;
        align-items: end;
      }

      .drawer-panel {
        min-height: auto;
        max-height: 92dvh;
        padding: 28px 18px 18px;
        border-radius: 24px 24px 0 0;
      }

      .drawer-close {
        top: 12px;
        right: 12px;
      }

      .drawer-tabs {
        overflow-x: auto;
        white-space: nowrap;
      }
    }

    @media (max-width: 520px) {
      .logo {
        font-size: 20px;
      }

      .login-btn {
        display: none;
      }

      .hero-text {
        font-size: 15px;
      }

      .cards {
        grid-template-columns: 1fr;
      }

      .loan-card {
        min-height: auto;
        padding: 14px;
      }

      .loan-head {
        grid-template-columns: 42px 1fr;
      }

      .loan-logo {
        width: 42px;
        height: 42px;
      }

      .loan-name h3 {
        font-size: 16px;
      }

      .loan-name span {
        display: block;
      }

      .info-value {
        font-size: 16px;
      }

      .conditions,
      .tags-grid {
        grid-template-columns: 1fr;
      }
    }
/* ArticleCards для credit-for.ru: финансовая витрина статей */
.credit-blog-preview {
  margin: 38px 0 48px;
}

.credit-blog-preview--related {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid rgba(125, 96, 61, .14);
}

.credit-blog-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.credit-blog-preview__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #a96522;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.credit-blog-preview__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d88932;
  box-shadow: 0 0 0 5px rgba(216, 137, 50, .12);
}

.credit-blog-preview__title {
  margin: 0;
  color: #1d2d28;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.03em;
}

.credit-blog-preview__text {
  max-width: 780px;
  margin: 12px 0 0;
  color: #665948;
  font-size: 17px;
  line-height: 1.65;
}

/* Корневой блок ArticleCards не должен быть grid */
.credit-article-cards {
  display: block;
  width: 100%;
  margin: 0;
}

/* Сетка карточек */
.credit-article-cards > .cms-article-cards__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

/* Убираем стандартные стили ссылок из article/content */
.content .credit-article-cards a,
.credit-article-cards a {
  color: inherit;
  text-decoration: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Карточка */
.credit-article-cards .cms-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(103, 78, 45, .14);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf2 0%, #fffdf8 100%);
  color: #1d2d28;
  box-shadow: 0 18px 42px rgba(73, 54, 29, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.credit-article-cards .cms-article-card::before {
  content: "Материал";
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(216, 137, 50, .24);
  border-radius: 999px;
  background: rgba(255, 250, 242, .88);
  color: #9a5c19;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.credit-article-cards .cms-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 137, 50, .34);
  box-shadow: 0 24px 54px rgba(73, 54, 29, .13);
}

/* Верхняя картинка / заглушка */
.credit-article-cards .cms-article-card__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 224, 171, .95), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(255, 250, 242, .9), transparent 34%),
    linear-gradient(135deg, #f2dfc3 0%, #f7efe3 55%, #fffaf2 100%);
}

.credit-article-cards .cms-article-card__thumb::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 92, 25, .28), transparent);
}

.credit-article-cards .cms-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Заглушка без изображения */
.credit-article-cards .cms-article-card__thumb--placeholder {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 232, 190, .95), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(253, 246, 234, .9), transparent 34%),
    linear-gradient(135deg, #e9cfaa 0%, #f4e6d1 54%, #fff8ec 100%);
}

.credit-article-cards .cms-article-card__thumb--placeholder > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(154, 92, 25, .16);
  border-radius: 24px;
  background: rgba(255, 250, 242, .76);
  color: #a96522;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(103, 78, 45, .12);
  backdrop-filter: blur(8px);
}

/* Контент карточки */
.credit-article-cards .cms-article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 19px 20px 21px;
}

.credit-article-cards .cms-article-card__title {
  margin: 0;
  color: #1d2d28;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.015em;
}

.credit-article-cards .cms-article-card__desc {
  margin: 0;
  color: #675b4b;
  font-size: 15px;
  line-height: 1.58;
}

/* CTA */
.credit-article-cards .cms-article-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 999px;
  background: #1f332d;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(31, 51, 45, .18);
  transition: background .16s ease, transform .16s ease;
}

.credit-article-cards .cms-article-card__button::after {
  content: "→";
  margin-left: 8px;
  transform: translateY(-1px);
}

.credit-article-cards .cms-article-card:hover .cms-article-card__button {
  background: #a96522;
}

/* Компактный вариант для похожих статей внутри статьи */
.credit-article-cards--related > .cms-article-cards__grid {
  gap: 16px;
}

.credit-article-cards--related .cms-article-card {
  border-radius: 20px;
}

.credit-article-cards--related .cms-article-card__body {
  padding: 17px 18px 19px;
}

.credit-article-cards--related .cms-article-card__title {
  font-size: 18px;
}

.credit-article-cards--related .cms-article-card__desc {
  font-size: 14px;
}

/* Пагинация */
.credit-article-cards > .cms-article-pagination {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 30px 0 0;
}

.credit-article-cards .cms-article-pagination__link,
.credit-article-cards .cms-article-pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(103, 78, 45, .16);
  border-radius: 999px;
  background: #fffaf2;
  color: #69523a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.credit-article-cards .cms-article-pagination__link:hover {
  border-color: rgba(216, 137, 50, .42);
  background: #f6ead8;
  color: #1d2d28;
}

.credit-article-cards .cms-article-pagination__link.is-active {
  border-color: #1f332d;
  background: #1f332d;
  color: #fff;
}

.credit-article-cards .cms-article-pagination__dots {
  border-color: transparent;
  background: transparent;
  color: #9a8b78;
}

/* Адаптив */
@media (max-width: 1024px) {
  .credit-article-cards > .cms-article-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .credit-blog-preview {
    margin: 28px 0 38px;
  }

  .credit-blog-preview--related {
    margin-top: 42px;
    padding-top: 28px;
  }

  .credit-blog-preview__head {
    display: block;
    margin-bottom: 18px;
  }

  .credit-blog-preview__title {
    font-size: 28px;
  }

  .credit-blog-preview__text {
    font-size: 16px;
  }

  .credit-article-cards > .cms-article-cards__grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .credit-article-cards .cms-article-card {
    border-radius: 18px;
  }

  .credit-article-cards .cms-article-card__body {
    padding: 17px;
  }

  .credit-article-cards .cms-article-card__title {
    font-size: 18px;
  }
}
/**
 * Ссылки внутри текстовой контентной части статьи/страницы.
 * Не влияет на меню, футер, карточки, drawer и похожие статьи.
 */
.page-content a {
  color: #8a4b1f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

/**
 * Состояние наведения для ссылок внутри контента.
 */
.page-content a:hover {
  color: #5f3214;
  text-decoration-color: currentColor;
}

/**
 * Состояние фокуса для доступности с клавиатуры.
 */
.page-content a:focus-visible {
  outline: 3px solid rgba(138, 75, 31, 0.25);
  outline-offset: 3px;
  border-radius: 4px;
}

/**
 * Посещённые ссылки внутри контента.
 * Цвет близкий к основному, чтобы не выпадал из палитры сайта.
 */
.page-content a:visited {
  color: #7a4524;
}

.article-box a {
  color: #8a4b1f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-box a:hover {
  color: #5f3214;
}