/*
Theme Name: Root Child
Theme URI: http://wpshop.biz/themes/root
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: root
Version: 1.4.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */


/* -------------------------------------------------------------------------- */



blockquote.bell, .entry-content blockquote.is-style-bell, .taxonomy-description blockquote.bell, .taxonomy-description blockquote.is-style-bell {
	background: #def9e5;  padding: 20px 30px 20px 70px; }

blockquote.bell:before, .entry-content blockquote.is-style-bell:before, .taxonomy-description blockquote.bell:before, .taxonomy-description blockquote.is-style-bell:before {
    content: "\f0a2";
    color: white;
}

/* Financial calculator articles and calculator hub */
.eoc-tool-copy,
.eoc-calculators {
    --eoc-accent: #1769aa;
    --eoc-accent-dark: #0f4f85;
    --eoc-ink: #172033;
    --eoc-muted: #5f6b7a;
    --eoc-line: #dce5ee;
    --eoc-soft: #f4f8fc;
    color: var(--eoc-ink);
}

.eoc-tool-copy *,
.eoc-calculators * {
    box-sizing: border-box;
}

.eoc-tool-copy > p:first-of-type {
    font-size: 1.08rem;
    line-height: 1.65;
}

.eoc-fin-calc {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--eoc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 63, 94, 0.08);
}

.eoc-fin-calc__intro {
    margin-top: 0;
    color: var(--eoc-muted);
}

.eoc-fin-calc__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.eoc-fin-calc label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
}

.eoc-fin-calc input,
.eoc-fin-calc select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #aebdcb;
    border-radius: 8px;
    background: #fff;
    color: var(--eoc-ink);
    font: inherit;
}

.eoc-fin-calc input:focus,
.eoc-fin-calc select:focus {
    outline: 3px solid rgba(23, 105, 170, 0.2);
    border-color: var(--eoc-accent);
}

.eoc-fin-calc__hint {
    color: var(--eoc-muted);
    font-size: 0.86rem;
    font-weight: 400;
}

.eoc-fin-calc__button {
    min-height: 46px;
    margin-top: 18px;
    padding: 11px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--eoc-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.eoc-fin-calc__button:hover,
.eoc-fin-calc__button:focus {
    background: var(--eoc-accent-dark);
}

.eoc-fin-calc__error,
.eoc-fin-calc__warning {
    display: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
}

.eoc-fin-calc__error {
    background: #fff1f0;
    color: #9f1d18;
}

.eoc-fin-calc__warning {
    background: #fff8e6;
    color: #704d00;
}

.eoc-fin-calc__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.eoc-fin-calc__metric {
    padding: 15px;
    border-radius: 10px;
    background: var(--eoc-soft);
}

.eoc-fin-calc__metric span {
    display: block;
    margin-bottom: 5px;
    color: var(--eoc-muted);
    font-size: 0.9rem;
}

.eoc-fin-calc__metric strong {
    display: block;
    font-size: 1.2rem;
}

.eoc-fin-calc__scenario {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--eoc-line);
    border-radius: 12px;
}

.eoc-fin-calc__scenario h3 {
    margin-top: 0;
}

.eoc-fin-calc__verdict {
    margin-top: 18px;
    padding: 16px;
    border-left: 4px solid #2d8a48;
    border-radius: 0 8px 8px 0;
    background: #eef9f1;
}

.eoc-fin-calc__verdict.is-loss {
    border-left-color: #bd2c23;
    background: #fff1f0;
}

.eoc-fin-calc__note {
    margin: 16px 0 0;
    color: var(--eoc-muted);
    font-size: 0.9rem;
}

.eoc-calc-details {
    margin-top: 20px;
}

.eoc-calc-details summary {
    color: var(--eoc-accent-dark);
    font-weight: 800;
    cursor: pointer;
}

.eoc-calc-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.eoc-calc-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.eoc-calc-table th,
.eoc-calc-table td {
    padding: 9px 10px;
    border: 1px solid var(--eoc-line);
    text-align: right;
}

.eoc-calc-table th:first-child,
.eoc-calc-table td:first-child {
    text-align: center;
}

.eoc-calc-table th {
    background: var(--eoc-soft);
}

.eoc-calc-quote {
    margin: 24px 0;
    padding: 17px 19px;
    border-left: 4px solid var(--eoc-accent);
    background: var(--eoc-soft);
    font-size: 1.04rem;
}

.eoc-key-table {
    width: 100%;
    margin: 18px 0 28px;
    border-collapse: collapse;
}

.eoc-key-table th,
.eoc-key-table td {
    padding: 12px 13px;
    border: 1px solid var(--eoc-line);
    text-align: left;
    vertical-align: top;
}

.eoc-key-table th {
    background: var(--eoc-soft);
}

.eoc-tool-copy li,
.eoc-calculators li {
    margin-bottom: 8px;
}

.eoc-tool-copy .expert-opinion,
.eoc-calculators .expert-opinion {
    margin-top: 34px;
}

.eoc-calculators__lead {
    max-width: 850px;
    font-size: 1.12rem;
    line-height: 1.65;
}

.eoc-calculators__notice {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--eoc-accent);
    border-radius: 0 10px 10px 0;
    background: var(--eoc-soft);
}

.eoc-calculators__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 34px;
}

.eoc-calculator-card {
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 22px;
    border: 1px solid var(--eoc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 63, 94, 0.08);
}

.eoc-calculator-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e8f2fb;
    color: var(--eoc-accent-dark);
    font-weight: 800;
}

.eoc-calculator-card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.eoc-calculator-card p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--eoc-muted);
    line-height: 1.55;
}

.eoc-calculator-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--eoc-accent);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.eoc-calculator-card__link:hover,
.eoc-calculator-card__link:focus {
    background: var(--eoc-accent-dark);
}

.eoc-calculators table {
    width: 100%;
    margin: 18px 0 28px;
    border-collapse: collapse;
}

.eoc-calculators th,
.eoc-calculators td {
    padding: 13px 14px;
    border: 1px solid var(--eoc-line);
    text-align: left;
    vertical-align: top;
}

.eoc-calculators th {
    background: var(--eoc-soft);
}

@media (max-width: 940px) {
    .eoc-calculators__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .eoc-fin-calc__fields,
    .eoc-fin-calc__results {
        grid-template-columns: 1fr;
    }

    .eoc-fin-calc {
        padding: 18px;
    }
}

@media (max-width: 660px) {
    .eoc-calculators__grid {
        grid-template-columns: 1fr;
    }

    .eoc-calculator-card {
        min-height: 0;
    }

    .eoc-calculators table,
    .eoc-calculators thead,
    .eoc-calculators tbody,
    .eoc-calculators tr,
    .eoc-calculators th,
    .eoc-calculators td {
        display: block;
    }

    .eoc-calculators thead {
        position: absolute;
        left: -9999px;
    }

    .eoc-calculators tr {
        margin-bottom: 12px;
        border: 1px solid var(--eoc-line);
    }

    .eoc-calculators td {
        border: 0;
        border-bottom: 1px solid var(--eoc-line);
    }

    .eoc-calculators td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .eoc-key-table,
    .eoc-key-table thead,
    .eoc-key-table tbody,
    .eoc-key-table tr,
    .eoc-key-table th,
    .eoc-key-table td {
        display: block;
    }

    .eoc-key-table thead {
        position: absolute;
        left: -9999px;
    }

    .eoc-key-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--eoc-line);
    }

    .eoc-key-table td {
        border: 0;
        border-bottom: 1px solid var(--eoc-line);
    }

    .eoc-key-table td:last-child {
        border-bottom: 0;
    }
}

/* Homepage financial marketplace cards */
:root {
    --eoc-blue: #0f68c8;
    --eoc-ink: #102033;
    --eoc-muted: #667085;
    --eoc-line: #dbe5ef;
    --eoc-soft: #f4f8fc;
    --eoc-green: #12805c;
}

.eoc-market {
    font-family: inherit;
    color: var(--eoc-ink);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.eoc-market * {
    box-sizing: border-box;
}

.eoc-hero {
    padding: 28px;
    border: 1px solid var(--eoc-line);
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #f5fff9 100%);
    margin: 0 0 22px;
}

.eoc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--eoc-blue);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d7e8fb;
    margin-bottom: 14px;
}

.eoc-hero__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 700;
}

.eoc-hero p {
    margin: 0 0 18px;
    color: var(--eoc-muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 820px;
}

.eoc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eoc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--eoc-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    border: 1px solid var(--eoc-blue);
}

.eoc-btn--light {
    background: #fff;
    color: var(--eoc-blue) !important;
    border-color: #cfe2f7;
}

.eoc-section {
    margin: 28px 0;
}

.eoc-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.eoc-section > p {
    margin: 0 0 16px;
    color: var(--eoc-muted);
    line-height: 1.55;
}

.eoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.eoc-grid--products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eoc-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--eoc-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.06);
}

.eoc-card:hover {
    border-color: #b9d4f0;
    box-shadow: 0 12px 30px rgba(16, 32, 51, 0.10);
}

.eoc-card,
.entry-content .eoc-card,
.taxonomy-description .eoc-card {
    cursor: default;
}

.eoc-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.eoc-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.eoc-badge {
    display: inline-flex;
    white-space: normal;
    align-items: center;
    text-align: center;
    border-radius: 999px;
    background: var(--eoc-soft);
    color: var(--eoc-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
}

.eoc-card p {
    margin: 0 0 14px;
    color: var(--eoc-muted);
    line-height: 1.5;
}

.eoc-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.eoc-metric {
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.eoc-metric span {
    display: block;
    font-size: 12px;
    color: var(--eoc-muted);
    margin-bottom: 2px;
}

.eoc-metric strong {
    display: block;
    font-size: 15px;
    color: var(--eoc-ink);
    line-height: 1.25;
}

.eoc-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--eoc-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

.eoc-card__actions {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.entry-content .eoc-card .eoc-card__link,
.taxonomy-description .eoc-card .eoc-card__link {
    display: inline-flex !important;
    position: static !important;
    inset: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 42px;
    width: fit-content;
    max-width: 100%;
    /* Цвет кнопок задаётся в style.css. Здесь стояли background и color
       с !important — они были нужны, чтобы перебить CSS родительской темы,
       но родителя мы больше не подключаем, а !important мешал делать
       вторичные кнопки контурными. */
    line-height: 1.2;
    pointer-events: auto;
    cursor: pointer;
    z-index: auto;
}

.entry-content .eoc-card .eoc-card__link::before,
.entry-content .eoc-card .eoc-card__link::after,
.taxonomy-description .eoc-card .eoc-card__link::before,
.taxonomy-description .eoc-card .eoc-card__link::after {
    content: none !important;
    display: none !important;
}

.entry-content .eoc-card .eoc-card__link:hover,
.taxonomy-description .eoc-card .eoc-card__link:hover {
    background: #0b56a8;
    color: #fff !important;
}

.eoc-card__link--secondary {
    background: #eef6ff;
    color: var(--eoc-blue) !important;
}

.eoc-product {
    min-height: 152px;
}

.eoc-product p {
    font-size: 14px;
}

.eoc-note {
    padding: 16px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid #dcecfb;
    color: #314155;
    line-height: 1.55;
}

.eoc-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.eoc-list {
    margin: 0;
    padding-left: 19px;
    color: #314155;
    line-height: 1.6;
}

.eoc-pensioner-offers {
    margin: 20px 0 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.eoc-bank-card .eoc-card__top a {
    color: var(--eoc-ink);
    text-decoration: none;
}

.eoc-bank-card .eoc-card__top a:hover {
    color: var(--eoc-blue);
}

.eoc-bank-card .eoc-metric strong {
    font-size: 14px;
}

.eoc-expert-opinion {
    margin: 32px 0 0;
    padding: 20px;
    border-left: 4px solid var(--eoc-blue);
    border-radius: 8px;
    background: #f7fbff;
    color: #314155;
}

.eoc-expert-opinion h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.eoc-expert-opinion p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.eoc-expert-opinion p:last-child {
    margin-bottom: 0;
}

/* Контент на всю ширину, когда сайдбар отключён. Родительская тема держит
   .entry-content на max-width 760px даже без сайдбара — снимаем ограничение
   на всех страницах, а не только на главной. */
@media (min-width: 992px) {
    body.sidebar-none .content-area {
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

    body.sidebar-none .site-main {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    /* .post-box жёстко ограничен 700px в родительской теме — это и есть
       главный ограничитель, .entry-content лишь наследует его ширину. */
    body.sidebar-none .post-box,
    body.sidebar-none .entry-content,
    body.sidebar-none .entry-title,
    body.sidebar-none .entry-excerpt,
    body.sidebar-none .entry-meta,
    body.sidebar-none .breadcrumb,
    body.sidebar-none .entry-image {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .eoc-grid,
    .eoc-grid--products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eoc-hero__title {
        font-size: 25px;
    }
}

@media (max-width: 560px) {
    .eoc-hero {
        padding: 20px;
    }

    .eoc-grid,
    .eoc-grid--products,
    .eoc-pensioner-offers,
    .eoc-choice {
        grid-template-columns: 1fr;
    }

    .eoc-card__meta {
        grid-template-columns: 1fr;
    }

    .eoc-hero__title {
        font-size: 22px;
    }

    .eoc-actions .eoc-btn {
        width: 100%;
    }
}



.b-related {
display: none;
}

table {
    border: 1px solid #ccc;
    width: 100%;
    margin:0;
    padding:0;
    border-collapse: collapse;
    border-spacing: 0;
  }

  table tr {
    border: 1px solid #ddd;
    padding: 3px;
  }

  table th, table td {
    padding: 10px;
    text-align: left;
  }

  table th {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
  }

  @media screen and (max-width: 600px) {

   table {
      border: 0;
      width: 95%;
    }
    tbody {
      border: 0;
      width: 95%;
    }

    table thead {
      display: none;
      width: 95%;
    }

    table tr {
      margin-bottom: 10px;
      display: block;
      border-bottom: 2px solid #ddd;
    
    }

    table td {
      display: block;
      text-align: right;
      font-size: 16px;
      border-bottom: 1px dotted #ccc;
    }

    table td:last-child {
      border-bottom: 0;
    }

    table td:before {
      content: attr(data-label);
      float: left;
      text-transform: uppercase;
      font-weight: bold;
    }
	  .entry-content table, .taxonomy-description table {
   
 
	width: 95%;
  }  
}


@media (max-width: 767px){
.entry-content table, .taxonomy-description table {

    /* max-width: -webkit-max-content; */
    max-width: 100%;
    /* max-width: max-content; */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
}


/* ============================================================
   Кредитный калькулятор — адаптивная вёрстка (май 2026)
   ============================================================ */

.loan-calc {
    margin: 24px 0 32px;
}

.loan-calc__form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    margin-bottom: 28px;
    padding: 24px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.loan-calc__field {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.loan-calc__field label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.3;
}

.loan-calc__field input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    background: #fff;
    font-size: 16px; /* >=16px чтобы iOS не зумил при фокусе */
    line-height: 1.4;
    color: #1f2937;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.loan-calc__field input:focus {
    outline: none;
    border-color: #2c5fa8;
    box-shadow: 0 0 0 3px rgba(44, 95, 168, 0.15);
}

.loan-calc__field input:disabled {
    background: #eef1f6;
    color: #1f2937;
    font-weight: 600;
    cursor: not-allowed;
}

.loan-calc__field input::-webkit-outer-spin-button,
.loan-calc__field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.loan-calc__field input[type=number] {
    -moz-appearance: textfield;
}

.loan-calc__submit-row {
    grid-column: 1 / -1;
}

.loan-calc__btn,
.loan-calc .btn.loan-calc__btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 28px;
    background: #2c5fa8;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

.loan-calc__btn:hover,
.loan-calc__btn:focus {
    background: #1f4582;
    color: #fff;
    text-decoration: none;
    outline: none;
}

.loan-calc__btn:active {
    transform: translateY(1px);
}

.loan-calc__heading {
    margin: 24px 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.loan-calc__banks {
    margin: 24px 0;
    padding: 16px;
    background: #f3fbf5;
    border-left: 4px solid #1f9d55;
    border-radius: 6px;
}

.loan-calc__banks .loan-calc__heading {
    margin-top: 0;
    color: #1f9d55;
}

.loan-calc__bank-table,
.loan-calc__schedule-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.loan-calc__schedule-table {
    table-layout: fixed;
}

.loan-calc__schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.loan-calc__schedule-table th {
    background: #2c5fa8;
    color: #fff;
    padding: 8px 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    border: 0;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
}

.loan-calc__schedule-table th:first-child {
    width: 36px;
    text-align: center;
}

.loan-calc__schedule-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #eef1f6;
    font-size: 13px;
    color: #1f2937;
    word-wrap: break-word;
}

.loan-calc__schedule-table td:first-child {
    text-align: center;
}

.loan-calc__schedule-table tr:nth-child(even) td {
    background: #f8f9fb;
}

.loan-calc__bank-table th {
    background: #1f9d55;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 0;
}

.loan-calc__bank-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f6;
}

.loan-calc__bank-table a {
    display: inline-block;
    padding: 6px 14px;
    background: #1f9d55;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.loan-calc__bank-table a:hover {
    background: #167a3f;
    color: #fff;
}

/* === Мобильная адаптация (≤ 600px) === */
@media (max-width: 600px) {
    .loan-calc__form {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .loan-calc__btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    .loan-calc__heading {
        font-size: 17px;
    }

    /* Сбрасываем «обёртку» со скроллом — на мобильном используем карточный вид */
    .loan-calc__schedule-wrap {
        overflow: visible;
        border-radius: 0;
    }

    /* Превращаем таблицы в «карточный» список */
    .loan-calc__schedule-table thead,
    .loan-calc__bank-table thead {
        display: none;
    }

    .loan-calc__schedule-table,
    .loan-calc__schedule-table tbody,
    .loan-calc__bank-table,
    .loan-calc__bank-table tbody {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: 0;
    }

    .loan-calc__schedule-table tr,
    .loan-calc__bank-table tr {
        display: block;
        box-sizing: border-box;
        margin-bottom: 14px;
        padding: 10px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
    }

    .loan-calc__schedule-table tr:nth-child(even) td,
    .loan-calc__schedule-table tr:nth-child(odd) td {
        background: transparent;
    }

    /* Ячейки — flex-«строки» с лейблом слева и значением справа.
       Flex чище, чем float: гарантирует одну строку и убирает наложения. */
    .loan-calc__schedule-table td,
    .loan-calc__bank-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 0;
        border-bottom: 1px dashed #e5e7eb;
        text-align: right;
        font-size: 14px;
        color: #1f2937;
    }

    .loan-calc__schedule-table td:last-child,
    .loan-calc__bank-table td:last-child {
        border-bottom: 0;
    }

    .loan-calc__schedule-table td::before,
    .loan-calc__bank-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-weight: 600;
        color: #555;
        text-transform: none;
        text-align: left;
        letter-spacing: 0;
    }

    /* Ячейка с кнопкой «Оформить»: лейбл не нужен, кнопка занимает всю строку */
    .loan-calc__bank-table td.loan-calc__bank-action,
    .loan-calc__bank-table td:last-child {
        display: block;
        padding: 12px 0 0;
        text-align: center;
    }

    .loan-calc__bank-table td.loan-calc__bank-action::before,
    .loan-calc__bank-table td:last-child::before {
        content: none;
    }

    .loan-calc__bank-table a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Currency rates and converter */
.eoc-currency {
    --currency-blue: #0f68c8;
    --currency-ink: #102033;
    --currency-muted: #667085;
    --currency-line: #dbe5ef;
    --currency-soft: #f4f8fc;
    --currency-green: #12805c;
    margin: 24px 0 32px;
    padding: 22px;
    border: 1px solid var(--currency-line);
    border-radius: 16px;
    background: #fff;
    color: var(--currency-ink);
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.06);
}

.eoc-currency,
.eoc-currency * {
    box-sizing: border-box;
}

.eoc-currency--error {
    border-color: #f2c4c4;
    background: #fff8f8;
}

.eoc-currency--error p {
    margin: 0;
    color: #8a2b2b;
}

.eoc-currency__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.eoc-currency__head h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.eoc-currency__head p {
    margin: 0;
    max-width: 720px;
    color: var(--currency-muted);
    line-height: 1.55;
}

.eoc-currency__date {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d7e8fb;
    border-radius: 999px;
    background: #f7fbff;
    color: var(--currency-blue);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.eoc-currency__layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.eoc-currency__calc {
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e5edf6;
    border-radius: 12px;
    background: #f8fbff;
}

.eoc-currency__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eoc-currency__field--amount,
.eoc-currency__result {
    grid-column: 1 / -1;
}

.eoc-currency__field label {
    margin-bottom: 6px;
    color: #445166;
    font-size: 14px;
    font-weight: 600;
}

.eoc-currency__field input,
.eoc-currency__field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: var(--currency-ink);
    font-size: 16px;
    line-height: 1.35;
}

.eoc-currency__field select {
    cursor: pointer;
}

.eoc-currency__field input:focus,
.eoc-currency__field select:focus {
    outline: none;
    border-color: var(--currency-blue);
    box-shadow: 0 0 0 3px rgba(15, 104, 200, 0.14);
}

.eoc-currency__swap {
    align-self: end;
    width: 46px;
    height: 44px;
    margin-top: 24px;
    border: 1px solid #cfe2f7;
    border-radius: 8px;
    background: #fff;
    color: var(--currency-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.eoc-currency__swap:hover,
.eoc-currency__swap:focus {
    outline: none;
    border-color: var(--currency-blue);
    background: #eef6ff;
}

.eoc-currency__result {
    min-height: 72px;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5edf6;
}

.eoc-currency__result span {
    display: block;
    margin-bottom: 4px;
    color: var(--currency-muted);
    font-size: 13px;
}

.eoc-currency__result strong {
    display: block;
    color: var(--currency-green);
    font-size: 24px;
    line-height: 1.25;
    word-break: break-word;
}

.eoc-currency__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--currency-line);
    border-radius: 12px;
    background: #fff;
}

.eoc-currency__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.entry-content .eoc-currency__table,
.taxonomy-description .eoc-currency__table {
    width: 100%;
}

.eoc-currency__table th {
    padding: 11px 12px;
    border: 0;
    background: var(--currency-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
}

.eoc-currency__table td {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    color: var(--currency-ink);
    font-size: 14px;
    line-height: 1.35;
    vertical-align: middle;
}

.eoc-currency__table tr:last-child td {
    border-bottom: 0;
}

.eoc-currency__table td strong,
.eoc-currency__table td span {
    display: block;
}

.eoc-currency__table td span {
    margin-top: 2px;
    color: var(--currency-muted);
    font-size: 12px;
}

.eoc-currency__source {
    margin: 14px 0 0;
    color: var(--currency-muted);
    font-size: 13px;
}

.eoc-currency__source a {
    color: var(--currency-blue);
}

@media (max-width: 900px) {
    .eoc-currency__head,
    .eoc-currency__layout {
        display: block;
    }

    .eoc-currency__date {
        margin-top: 12px;
    }

    .eoc-currency__calc {
        margin-bottom: 18px;
    }
}

@media (max-width: 600px) {
    .eoc-currency {
        padding: 16px;
        border-radius: 12px;
    }

    .eoc-currency__head h2 {
        font-size: 21px;
    }

    .eoc-currency__calc {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .eoc-currency__swap {
        width: 100%;
        margin-top: 0;
    }

    .eoc-currency__result strong {
        font-size: 20px;
    }

    .eoc-currency__table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .eoc-currency__table,
    .eoc-currency__table tbody,
    .eoc-currency__table tr,
    .eoc-currency__table td {
        display: block;
        width: 100%;
    }

    .eoc-currency__table thead {
        display: none;
    }

    .eoc-currency__table tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid #e5edf6;
        border-radius: 10px;
        background: #fff;
    }

    .eoc-currency__table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px dashed #e5edf6;
        text-align: right;
    }

    .eoc-currency__table td:last-child {
        border-bottom: 0;
    }

    .eoc-currency__table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        float: none;
        color: var(--currency-muted);
        font-weight: 700;
        text-align: left;
        text-transform: none;
    }

    .eoc-currency__table td strong,
    .eoc-currency__table td span {
        text-align: right;
    }
}


/* ============================================================
   Таблицы сравнения условий — читаемость чисел (август 2026)
   Правила только для десктопа: на ширине до 767px родительская
   разметка превращает таблицу в карточки через data-label.
   ============================================================ */

@media (min-width: 768px) {
    .entry-content .table-wrapper,
    .taxonomy-description .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content .table-wrapper table,
    .taxonomy-description .table-wrapper table {
        width: 100%;
        table-layout: auto;
    }

    /* Числовые колонки не должны переноситься по разряду:
       «51 000–3 000 000 ₽» читается только одной строкой. */
    .entry-content .table-wrapper td[data-label="Сумма"],
    .entry-content .table-wrapper td[data-label="Срок"],
    .entry-content .table-wrapper td[data-label="ПСК"],
    .taxonomy-description .table-wrapper td[data-label="Сумма"],
    .taxonomy-description .table-wrapper td[data-label="Срок"],
    .taxonomy-description .table-wrapper td[data-label="ПСК"] {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    /* Ставка бывает с оговоркой («9,6–41,6% с услугой…»), поэтому
       переносить её можно — фиксируем только моноширинные цифры. */
    .entry-content .table-wrapper td[data-label="Ставка"],
    .taxonomy-description .table-wrapper td[data-label="Ставка"] {
        font-variant-numeric: tabular-nums;
    }

    /* Название банка — единственная колонка, которой перенос полезен. */
    .entry-content .table-wrapper td[data-label="Банк"],
    .taxonomy-description .table-wrapper td[data-label="Банк"] {
        white-space: normal;
        min-width: 130px;
    }

    .entry-content .table-wrapper td[data-label="Заявка"],
    .taxonomy-description .table-wrapper td[data-label="Заявка"] {
        white-space: nowrap;
        text-align: center;
    }
}