@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Ubuntu Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/ubuntu-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* токены из макета Figma 110:1422 (DS Bankiros) */
  --txt: #404040;            /* #/Text/On Surface */
  --txt-black: #333e50;      /* Text / Black */
  --txt-muted: #7e7d7f;
  --blue: #007cff;
  --blue-dark: #0068d6;
  --green: #00be30;
  --green-dark: #00a82a;
  --outline: #dadee2;
  --outline-soft: #ebeef1;
  --surface: #ffffff;
  --surface-dim: #f5f6f7;
  --page: #f1f1f1;
  --mint: #c2f8db;
  --tag-green: #c2f8db;
  --tag-blue: #e6f2ff;
  --ink: #1c2430;
  --line-strong: #c3cad2;
  --wash: #f7f8f9;
  --r-6: 6px;
  --r-12: 12px;
  --r-16: 16px;

  /* калькулятор наследует те же токены */
  --bi-primary: var(--green);
  --bi-primary-hover: var(--green-dark);
  --bi-primary-pressed: #009424;
  --bi-primary-container: var(--tag-green);
  --bi-secondary: var(--blue);
  --bi-secondary-hover: var(--blue-dark);
  --bi-secondary-container: var(--tag-blue);
  --bi-surface: #ffffff;
  --bi-surface-dim: var(--surface-dim);
  --bi-text: var(--txt);
  --bi-text-variant: var(--txt-muted);
  --bi-text-disabled: #b3b3b4;
  --bi-outline: var(--outline);
  --bi-outline-variant: var(--outline-soft);
  --bi-success: var(--green);
  --bi-error: #f0444e;
  --bi-error-container: #fff0f1;
  --bi-radius-8: 12px;
  --bi-radius-12: 12px;
  --bi-radius-16: 16px;
  --bi-shadow-sm: 0 2px 8px rgba(51, 62, 80, .06);
}

* { box-sizing: border-box; }

html { background: var(--page); scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--txt);
  font-family: "Ubuntu Sans", Ubuntu, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums lining-nums;
}

button, input { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
b, strong { font-weight: 800; }

/* ---------- каркас ---------- */

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- режим встраивания в статью (iframe) ---------- */

html.is-embed, html.is-embed body { background: var(--surface); }
html.is-embed body > *:not(#calc) { display: none; }
html.is-embed #calc { padding: 0; background: none; }
html.is-embed .hero-blue { display: none; }
html.is-embed .wrap { max-width: none; padding: 0; }
html.is-embed .v2-calc {
  max-width: none;
  margin: 0;
  padding: 22px 24px;      /* внутренний отступ: рамку рисует статья, контент к ней не прилипает */
  border-radius: 0;
  box-shadow: none;
  background: none;
}
@media (max-width: 700px) {
  html.is-embed .v2-calc { padding: 16px; }
}

/* ---------- полосы во всю ширину экрана ---------- */

.card { padding: 0; border: 0; border-radius: 0; background: none; }
.band { padding: 64px 0; }
.band.band--light { background: var(--surface); }
.band.band--tint { background: #eef1f5; }
.band.band--dark { background: var(--ink); }

/* тёмная полоса: перекрашиваем содержимое */
.band--dark .h2, .band--dark .h3, .band--dark b, .band--dark strong { color: #fff; }
.band--dark .acc { color: #7ab8ff; }
.band--dark .lead, .band--dark .p, .band--dark p, .band--dark li { color: rgba(255, 255, 255, .78); }
.band--dark .box { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.band--dark .box--dim { background: rgba(255, 255, 255, .05); border-color: transparent; }
.band--dark .note { color: rgba(255, 255, 255, .58); }
.band--dark .tag { border-color: rgba(255, 255, 255, .28); color: #fff; background: none; }
/* разделители на тёмном: светлый токен здесь светится и рвёт текст */
.band--dark .list li,
.band--dark .fact,
.band--dark .src-list li,
.band--dark .faq-item,
.band--dark .tbl th,
.band--dark .tbl td { border-color: rgba(255, 255, 255, .09); }

.h1 { margin: 0; font-size: 44px; line-height: 50px; font-weight: 800; color: var(--txt); }
.h2 { margin: 0 0 8px; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--txt); }
.h3 { margin: 0 0 10px; font-size: 18px; line-height: 24px; font-weight: 800; color: var(--txt); }
.acc { color: var(--blue); }
.lead { margin: 0; max-width: 900px; color: var(--txt); font-size: 16px; line-height: 24px; }
.p { margin: 0 0 12px; max-width: 900px; }
.p:last-child { margin-bottom: 0; }
.muted { color: var(--txt-muted); }
.tbl td.muted { color: var(--txt); }
.s3 { font-size: 12px; line-height: 16px; }
.s2 { font-size: 14px; line-height: 18px; }
.sec-top { margin-bottom: 24px; }

/* тег-пилюля из макета */
.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: var(--r-6);
  background: var(--tag-blue);
  color: var(--txt-black);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.tag--blue { background: var(--tag-blue); }

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 8px 20px;
  border: 0;
  border-radius: var(--r-12);
  background: var(--green);
  color: #fff;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .15s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: var(--surface); border: 1px solid var(--outline); color: var(--txt); font-weight: 500; }
.btn--ghost:hover { background: var(--surface-dim); color: var(--txt); }
.btn--white { background: #fff; color: var(--txt); }
.btn--white:hover { background: #f2f2f2; color: var(--txt); }

/* ---------- шапка с логотипом ---------- */

.hdr {
  position: sticky;
  /* контейнер для выпадающего меню на мобильном */
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.hdr.is-stuck {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(51, 62, 80, .10);
  box-shadow: 0 4px 18px rgba(51, 62, 80, .06);
}
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.hdr-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hdr-logo svg { display: block; width: 178px; height: auto; }
.hdr-logo:hover { opacity: .85; }
.hdr-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav::-webkit-scrollbar { display: none; }
.hdr-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 8px 14px;
  border-radius: var(--r-12);
  color: var(--txt);
  white-space: nowrap;
  font-size: 15px;
  line-height: 18px;
  transition: background-color .15s, color .15s;
}
.hdr-nav a:hover { background: var(--page); color: var(--blue); }
.hdr-burger { display: none; }

@media (max-width: 700px) {
  /* пять якорей не помещаются в строку и обрезаются на полуслове — прячем в меню */
  .hdr-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--r-12);
    background: none;
    cursor: pointer;
  }
  .hdr-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--txt-black);
    transition: transform .2s, opacity .2s;
  }
  .hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hdr-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    padding: 6px 16px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    box-shadow: 0 12px 24px rgba(51, 62, 80, .10);
  }
  .hdr-nav.is-open { display: flex; }
  .hdr-nav a { justify-content: flex-start; height: 46px; padding: 0 12px; border-radius: var(--r-12); font-size: 16px; }
}

/* чтобы якорь не уезжал под шапку */
section[id], footer[id], .rdet[id] { scroll-margin-top: 84px; }

/* ---------- герой: цветной баннер + калькулятор внахлёст ---------- */

.v2-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 28px;
  align-items: center;
  padding: 48px 0 0;
  color: #fff;
}
.v2-band h1 { margin: 0 0 10px; max-width: 620px; font-size: 44px; line-height: 50px; font-weight: 800; }
.v2-band p { max-width: 620px; margin: 0 0 24px; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 23px; }
.lead-more { display: none; }
.v2-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-12);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
}
.v2-pill b { font-size: 18px; font-weight: 800; }
.v2-calc {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: -150px auto 0;
  padding: 32px 36px;
  border-radius: var(--r-16);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(12, 46, 105, .18);
}

/* ---------- плитки ставок ---------- */

.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rates + .h3 { margin-top: 32px; }
.rate {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 20px;
  border-radius: var(--r-12);
  color: #fff;
}
.rate--blue { background: linear-gradient(135deg, #3b8bff 0%, #0058e0 100%); }
.rate--green { background: linear-gradient(135deg, #24d05a 0%, #009c2b 100%); }
.rate--violet { background: linear-gradient(135deg, #8b6cf5 0%, #5b39d6 100%); }
.rate--slate { background: linear-gradient(135deg, #6d7789 0%, #414a5a 100%); }
.rate-num { font-size: 36px; line-height: 40px; font-weight: 800; }
.rate-name { margin-top: 6px; font-size: 15px; line-height: 20px; font-weight: 800; }
.rate-desc { margin-top: 4px; font-size: 13px; line-height: 18px; opacity: 1; }
a.rate, a.rate:link, a.rate:visited, a.rate:hover, a.rate:active, a.rate:focus { color: #fff; text-decoration: none; }
.rate { transition: transform .18s, box-shadow .18s; }
a.rate:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(51, 62, 80, .18); }
a.rate:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rate-go { margin-top: 10px; font-size: 13px; line-height: 18px; font-weight: 500; opacity: .92; }

/* ---------- разбор по ставкам ---------- */

.rdet-list { display: grid; gap: 16px; margin-top: 28px; }
.rdet {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 24px 26px;
  border: 1px solid var(--outline);
  border-radius: var(--r-12);
  background: var(--surface);
}
.rdet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--rc);
}
.rdet--blue { --rc: #007cff; }
.rdet--green { --rc: #00a82a; }
.rdet--violet { --rc: #6b47e0; }
.rdet--slate { --rc: #5b6577; }
.rdet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rdet-num { font-size: 24px; line-height: 30px; font-weight: 800; color: var(--rc); }
.rdet-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 800; color: var(--txt-black); }
.rdet-sub { margin: 6px 0 0; color: var(--txt-muted); font-size: 13px; line-height: 18px; }
.rdet-lead { margin: 14px 0 0; font-size: 15px; line-height: 22px; }

.facts { margin: 16px 0 0; }
.fact { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--outline-soft); }
.fact:last-child { padding-bottom: 0; }
.fact dt { color: var(--txt-muted); font-size: 13px; line-height: 18px; }
.fact dd { margin: 0; font-size: 15px; line-height: 21px; }

.callout {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-12);
  background: var(--surface-dim);
  font-size: 14px;
  line-height: 20px;
}
.callout::before {
  content: "i";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
}
.callout--warn { background: #fff8e6; }
.callout--warn::before { content: "!"; background: #e2a30a; font-style: normal; }
.callout b { font-weight: 800; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

/* ---------- якорное меню ---------- */

.anchors { position: sticky; top: 0; z-index: 20; background: var(--page); }
.anchors-in { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.anchors-in::-webkit-scrollbar { display: none; }
.anchors a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: var(--r-12);
  background: var(--surface);
  color: var(--txt);
  white-space: nowrap;
  font-size: 14px;
  line-height: 18px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.anchors a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- сетки ---------- */

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

.box { padding: 20px; border: 1px solid var(--outline); border-radius: var(--r-12); background: var(--surface); }
.box--dim { border-color: transparent; background: var(--surface-dim); }
.box .h3 { margin-bottom: 6px; }
.box p { margin: 0; color: var(--txt); font-size: 14px; line-height: 20px; }

/* списки */
.list { margin: 0; padding: 0; list-style: none; }
.list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-soft);
  font-size: 15px;
  line-height: 22px;
}
.list li:last-child { border-bottom: 0; }
.list svg { margin-top: 3px; }

/* ---------- формулы ---------- */

.fbox { margin-top: auto; padding: 16px 12px; border-radius: var(--r-12); background: var(--surface-dim); }
.fbox + .fbox { margin-top: 8px; }
.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--txt);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}
.eq b { font-weight: 800; }
.eq-op { color: var(--txt-muted); }
.frac { display: inline-grid; grid-template-rows: auto auto; justify-items: center; gap: 3px; }
.frac > span { padding: 0 6px; }
.frac > span:first-child { border-bottom: 1.5px solid var(--txt); padding-bottom: 3px; }
.formula { display: flex; flex-direction: column; }

/* ---------- примеры ---------- */

.ex-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px; }
.given { display: grid; gap: 8px; margin: 0; }
.given-row { padding: 10px 14px; border-radius: var(--r-12); background: var(--surface); }
.given-row dt { margin: 0 0 2px; color: var(--txt-muted); font-size: 12px; line-height: 16px; }
.given-row dd { margin: 0; font-size: 20px; line-height: 24px; font-weight: 800; }
.steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--r-12); background: var(--surface); }
.step::before {
  content: counter(st);
  counter-increment: st;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tag-blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.step-gen { color: var(--txt-muted); font-size: 12px; line-height: 16px; }
.step-val { font-size: 16px; line-height: 22px; font-weight: 800; overflow-wrap: anywhere; }
.total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-12);
  background: var(--mint);
  color: var(--txt-black);
}
.total .lbl { font-size: 12px; line-height: 14px; text-transform: uppercase; letter-spacing: .06em; }
.total b { font-size: 18px; font-weight: 800; }

/* ---------- таблицы ---------- */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--outline-soft); }
.tbl thead th { color: var(--txt-muted); font-size: 12px; line-height: 14px; font-weight: 400; white-space: nowrap; }
.tbl tbody td { font-size: 15px; line-height: 20px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl b { font-weight: 800; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-6);
  font-size: 14px;
  line-height: 16px;
  font-weight: 800;
  color: var(--txt-black);
  background: var(--surface-dim);
}
.pill--g { background: var(--tag-green); }
.pill--b { background: var(--tag-blue); }
.pill--y { background: #fff4d6; }
.note { margin: 12px 0 0; max-width: 900px; color: var(--txt); font-size: 13px; line-height: 18px; }

/* ---------- подвал ---------- */

.foot {
  padding: 56px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 19px;
}
.foot-top { --line-on-dark: rgba(255, 255, 255, .12); }
.foot-top { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
.foot-logo { display: block; }
.foot-logo svg { display: block; width: 168px; height: auto; }
.foot-logo:hover { opacity: .85; }

.byline { display: grid; gap: 7px; margin: 22px 0 0; }
.byline > div { display: grid; gap: 1px; }
.byline dt { color: rgba(255, 255, 255, .45); font-size: 11px; line-height: 15px; }
.byline dd { margin: 0; color: rgba(255, 255, 255, .9); font-size: 12px; line-height: 17px; font-weight: 400; }
.byline a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.byline a:hover { text-decoration-color: #fff; }

.foot-src h2 { margin: 0 0 14px; color: #fff; font-size: 16px; line-height: 21px; font-weight: 800; }
.src-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.src-list li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.src-list li:first-child { padding-top: 0; border-top: 0; }
.src-list a { display: inline-block; color: #fff; text-decoration: none; }
.src-list a:hover b { text-decoration: underline; }
.src-list a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-top: 1.5px solid rgba(255, 255, 255, .45);
  border-right: 1.5px solid rgba(255, 255, 255, .45);
  transform: translateY(-1px) rotate(45deg);
  transition: border-color .15s;
}
.src-list a:hover::after { border-color: #fff; }
.src-list b { display: inline; color: #fff; font-size: 14px; line-height: 19px; font-weight: 800; }
.src-list span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 18px; }
.src-note { margin: 16px 0 0; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 18px; }

.foot-rights {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  line-height: 17px;
}
.foot-rights p { margin: 0; max-width: 900px; }
.foot-rights p + p { margin-top: 4px; }
.foot-rights a { color: rgba(255, 255, 255, .72); text-decoration: underline; }
.foot-rights a:hover { color: #fff; }

@media (max-width: 860px) {

  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-logo svg { width: 150px; }
  .byline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; }
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  border-radius: 0;
  background:
    radial-gradient(90% 120% at 84% 26%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(70% 100% at 6% 96%, rgba(0, 82, 22, .30) 0%, rgba(0, 82, 22, 0) 60%),
    linear-gradient(135deg, #24d05a 0%, #009c2b 100%);
  color: #fff;
}
.cta > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 288px; align-items: center; gap: 36px; }
.cta-body { position: relative; z-index: 1; }
.cta p { margin: 0 0 24px; max-width: 700px; font-size: 16px; line-height: 23px; }
/* заголовок блока — обычный <p>, чтобы не засорять структуру H2 страницы,
   поэтому селектор с повышенной специфичностью: иначе его перебивает .cta p */
.cta .cta-h { margin: 0 0 14px; max-width: 720px; font-size: 36px; line-height: 42px; font-weight: 800; letter-spacing: -.01em; }

/* фирменный знак-подложка: ромбы из логотипа Bankiros */
.mark { position: absolute; z-index: 0; height: auto; pointer-events: none; }
.band-mark { right: -130px; bottom: -180px; width: 620px; }
.cta-mark { right: -90px; bottom: -170px; width: 520px; }

/* схемы: объясняют механику расчёта лучше, чем декоративная картинка */
.fig { display: block; margin: 0; }
.fig svg { display: block; width: 100%; height: auto; }
.mode-fig { width: 132px; margin: 0 0 18px; }
.s-line { stroke: var(--line-strong); }
.s-muted { fill: var(--txt-muted); }
.s-fill { fill: var(--wash); }
.s-blue { fill: var(--blue); }
.s-stroke { stroke: var(--outline); fill: none; }

/* ---------- иллюстрации ---------- */
/* PNG с прозрачным фоном: объект лежит прямо на цветной подложке блока,
   на белых карточках под него подкладываем мягкий блоб на CSS */

.ill { display: block; pointer-events: none; }
.ill img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ill.is-empty { display: none; }

/* герой: объекты парят по краям баннера */
.band.band--hero { padding: 0 0 64px; background: var(--surface); }
/* синий блок кончается на 150px ниже текста, карточка калькулятора ложится на его край */
.hero-blue {
  position: relative;
  overflow: hidden;
  padding: 0 0 150px;
  background: linear-gradient(135deg, #3b8bff 0%, #0058e0 100%);
  color: #fff;
}
.band-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-blue > .wrap { position: relative; z-index: 1; }
.band.band--hero + .band { padding-top: 64px; }
.v2-band > .v2-inner { position: relative; z-index: 1; }
.band-ill {
  justify-self: end;
  width: 344px;
  height: 270px;
  filter: drop-shadow(0 18px 34px rgba(0, 30, 80, .32));
}

/* плитки ставок: объект поверх цветной плитки */
.rate { position: relative; overflow: hidden; }
.rate-ill {
  position: absolute;
  top: 6px;
  right: 4px;
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .20));
}

/* белая карточка: объект на мягком блобе */
.box-ill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, #3b8bff 0%, #0058e0 100%);
}
.box-ill img { width: 84%; height: 84%; }
.box-ill--green { background: linear-gradient(135deg, #24d05a 0%, #009c2b 100%); }

/* CTA */
.cta-ill {
  position: relative;
  justify-self: center;
  width: 288px;
  height: 288px;
  margin: -14px 0 -16px;
}
.cta-ill::before {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(58% 46% at 52% 54%,
    rgba(255, 255, 255, .42) 0%,
    rgba(255, 255, 255, .16) 44%,
    rgba(255, 255, 255, 0) 74%);
}
.cta-ill img { position: relative; z-index: 1; filter: drop-shadow(0 16px 30px rgba(0, 66, 22, .38)); }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--outline-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-right: 2px solid var(--txt-muted);
  border-bottom: 2px solid var(--txt-muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-a { padding: 0 0 18px; font-size: 15px; line-height: 23px; }
.faq-a p { margin: 0; }

/* ---------- ссылки-строки ---------- */

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--outline-soft);
  color: var(--txt);
  font-size: 15px;
  line-height: 20px;
}
.row-link:hover { color: var(--blue); }
.row-link svg { flex: 0 0 auto; color: var(--txt-muted); }
.row-link:hover svg { color: var(--blue); }

/* ---------- кнопка «наверх» ---------- */

.up {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--outline);
  border-radius: var(--r-12);
  background: var(--surface);
  color: var(--txt);
  cursor: pointer;
}
.up.is-visible { display: inline-flex; }
.up:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- адаптив ---------- */

@media (max-width: 1000px) {
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .band-mark { right: -40px; bottom: 6px; width: 330px; }
  .cta-mark { right: -30px; top: -46px; bottom: auto; width: 340px; }
  .v2-band { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 0; }
  .v2-band h1 { max-width: none; }
  .v2-band p { max-width: none; }
  .band-ill { justify-self: center; width: 300px; height: 236px; }
  .v2-calc { padding: 24px; margin-top: -120px; }
  .hero-blue { padding-bottom: 120px; }
  .band.band--hero { padding: 0 0 48px; }
  .band.band--hero + .band { padding-top: 48px; }
  .v2-band h1 { font-size: 38px; line-height: 44px; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-body { grid-template-columns: 1fr; }
  .cta { padding: 48px 0; text-align: center; }
  .cta > .wrap { grid-template-columns: 1fr; gap: 8px; }
  .band { padding: 48px 0; }
  .cta-body { display: flex; flex-direction: column; align-items: center; }
  .cta .cta-h, .cta p { max-width: none; }
  .cta .cta-h { font-size: 30px; line-height: 36px; }
  .cta-ill { order: -1; justify-self: center; width: 236px; height: 236px; margin: -14px 0 -8px; }
}

@media (max-width: 700px) {
  /* на узком экране длинный лид отодвигает калькулятор за пределы первого экрана:
     сворачиваем до трёх строк, текст остаётся в HTML и раскрывается по кнопке */
  .v2-band .hero-lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .v2-band .hero-lead.is-open { display: block; -webkit-line-clamp: none; overflow: visible; }
  .lead-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
  }
  .lead-more::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.6px solid rgba(255, 255, 255, .7);
    border-bottom: 1.6px solid rgba(255, 255, 255, .7);
    transform: rotate(45deg);
    transition: transform .2s;
  }
  .lead-more[aria-expanded="true"]::after { margin-top: 2px; transform: rotate(225deg); }
  .rdet { padding: 18px 16px 20px 18px; }
  .band-mark { right: -46px; bottom: 2px; width: 280px; }
  .cta-mark { right: -34px; top: -34px; bottom: auto; width: 280px; }
  .rdet-title { font-size: 18px; line-height: 24px; }
  .rdet-num { font-size: 21px; line-height: 27px; }
  .wrap { padding: 0 16px; }
  .hdr-in { height: 58px; gap: 12px; }
  .hdr-logo svg { width: 132px; }
  .hdr-nav a { height: 34px; padding: 7px 11px; font-size: 14px; }
  section[id], footer[id], .rdet[id] { scroll-margin-top: 70px; }
  .stack { gap: 12px; padding: 12px 0 20px; }

  .h1 { font-size: 28px; line-height: 34px; }
  .h2 { font-size: 22px; line-height: 28px; }
  .h3 { font-size: 17px; line-height: 22px; }
  .hero-lead { font-size: 15px; line-height: 22px; }
  .mint-num { font-size: 32px; line-height: 36px; }
  .rates { grid-template-columns: 1fr; gap: 10px; }
  .rate { min-height: 0; }
  .rate-go { display: none; }
  .rate { min-height: 0; padding: 16px; }
  .rate-num { font-size: 30px; line-height: 34px; }
  .g, .g-3, .g-2, .rows { grid-template-columns: 1fr; gap: 12px; }
  .box { padding: 16px; }
  .cta { padding: 36px 0; }
  .band { padding: 36px 0; }
  .cta .cta-h { font-size: 25px; line-height: 31px; }
  .btn { width: 100%; }
  .v2-band { gap: 16px; padding: 28px 0 0; }
  .v2-band h1 { font-size: 28px; line-height: 34px; }
  .v2-band p { font-size: 14px; line-height: 21px; margin-bottom: 20px; }
  .v2-pill { padding: 8px 12px; font-size: 13px; }
  .v2-pill b { font-size: 16px; }
  .v2-calc { padding: 16px; margin-top: -96px; }
  .hero-blue { padding-bottom: 96px; }
  .band.band--hero { padding: 0 0 36px; }
  .band.band--hero + .band { padding-top: 36px; }
  .band-ill { width: 208px; height: 164px; }
  .rate-ill { width: 60px; height: 60px; top: 8px; right: 6px; }
  .box-ill { width: 68px; height: 68px; border-radius: 20px; }
  .cta-ill { width: 190px; height: 190px; margin: -10px 0 -6px; }
  .faq-item summary { font-size: 16px; line-height: 22px; }
  .tbl th, .tbl td { padding: 12px 12px; }
  .tbl tbody td { font-size: 14px; }
  .tbl thead th { white-space: normal; }
  .total { padding: 14px 16px; }
  .up { right: 12px; bottom: 12px; width: 44px; height: 44px; }
}

/* ---------- калькулятор: исходные стили ---------- */
.vat-calculator {
      width: 100%;
      max-width: 720px;
      margin: 0 auto;
      padding: 20px;
      background: var(--bi-surface);
      border: 1px solid var(--bi-outline-variant);
      border-radius: var(--bi-radius-16);
      box-shadow: none;
    }

    .vat-section { margin-top: 16px; }
    .vat-calculator > .vat-section:first-child { margin-top: 0; }
    .vat-label {
      display: block;
      margin-bottom: 7px;
      color: var(--bi-text);
      font-size: 13px;
      line-height: 16px;
      font-weight: 700;
    }

    .vat-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4px;
      padding: 4px;
      background: var(--bi-surface-dim);
      border-radius: var(--bi-radius-12);
    }

    .vat-option, .vat-rate { position: relative; }
    .vat-option input, .vat-rate input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .vat-option-text {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 7px 10px;
      border: 1px solid transparent;
      border-radius: var(--bi-radius-8);
      background: transparent;
      color: var(--bi-text-variant);
      text-align: center;
      font-size: 13px;
      line-height: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    }
    .vat-option-text:hover { color: var(--bi-text); }
    .vat-option input:checked + .vat-option-text {
      background: var(--bi-surface);
      border-color: var(--bi-outline-variant);
      color: var(--bi-text);
      font-weight: 700;
      box-shadow: var(--bi-shadow-sm);
    }

    .vat-option input:focus-visible + .vat-option-text,
    .vat-rate input:focus-visible + .vat-rate-text,
    .vat-button:focus-visible,
    .vat-copy-all:focus-visible,
    .vat-history-load:focus-visible,
    .vat-copy-number:focus-visible,
    .vat-formula-toggle:focus-visible,
    .vat-history-clear:focus-visible {
      outline: 2px solid var(--bi-secondary);
      outline-offset: 2px;
    }

    .vat-input-wrap { position: relative; }
    .vat-input {
      width: 100%;
      height: 44px;
      padding: 0 44px 0 13px;
      border: 1px solid var(--bi-outline);
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface);
      color: var(--bi-text);
      font-size: 16px;
      line-height: 20px;
      outline: none;
      transition: border-color .15s, box-shadow .15s;
    }
    .vat-input::placeholder { color: var(--bi-text-disabled); }
    .vat-input:hover { border-color: #aeb1b7; }
    .vat-input:focus {
      border-color: var(--bi-secondary);
      box-shadow: 0 0 0 3px rgba(49, 91, 243, .12);
    }
    .vat-input-suffix {
      position: absolute;
      top: 50%;
      right: 13px;
      color: var(--bi-text-variant);
      transform: translateY(-50%);
      pointer-events: none;
    }

    .vat-rates { display: flex; flex-wrap: wrap; gap: 8px; }
    .vat-rate-text {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 6px 12px;
      border: 1px solid var(--bi-outline);
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface);
      color: var(--bi-text);
      cursor: pointer;
      white-space: nowrap;
      font-size: 14px;
      line-height: 18px;
      font-weight: 500;
      transition: background-color .15s, border-color .15s, color .15s;
    }
    .vat-rate-text:hover { border-color: var(--bi-secondary); }
    .vat-rate input:checked + .vat-rate-text {
      border-color: var(--bi-secondary);
      background: var(--bi-secondary-container);
      color: var(--bi-secondary);
      font-weight: 700;
    }
    .vat-rate-mark {
      margin-left: 2px;
      color: var(--bi-secondary);
      font-weight: 800;
    }

    .vat-rate-hint {
      display: none;
      margin-top: 8px;
      padding: 8px 10px;
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface-dim);
      color: var(--bi-text-variant);
      font-size: 12px;
      line-height: 16px;
    }
    .vat-rate-hint.is-visible { display: block; }
    .vat-custom-rate { display: none; max-width: 220px; margin-top: 10px; }
    .vat-custom-rate.is-visible { display: block; }

    .vat-actions { display: flex; gap: 8px; margin-top: 18px; }
    .vat-button {
      min-height: 44px;
      padding: 10px 18px;
      border-radius: var(--bi-radius-8);
      cursor: pointer;
      font-size: 15px;
      line-height: 20px;
      font-weight: 500;
      transition: background-color .15s, border-color .15s, color .15s, transform .08s;
    }
    .vat-button:active { transform: translateY(1px); }
    .vat-button-primary {
      flex: 1;
      border: 1px solid var(--bi-primary);
      background: var(--bi-primary);
      color: #fff;
    }
    .vat-button-primary:hover {
      background: var(--bi-primary-hover);
      border-color: var(--bi-primary-hover);
    }
    .vat-button-primary:active {
      background: var(--bi-primary-pressed);
      border-color: var(--bi-primary-pressed);
    }
    .vat-button-secondary {
      border: 1px solid var(--bi-outline);
      background: var(--bi-surface);
      color: var(--bi-text);
    }
    .vat-button-secondary:hover { border-color: var(--bi-text); }

    .vat-error {
      display: none;
      margin-top: 10px;
      padding: 9px 10px;
      border-radius: var(--bi-radius-8);
      background: var(--bi-error-container);
      color: var(--bi-error);
      font-size: 13px;
      line-height: 18px;
    }
    .vat-error.is-visible { display: block; }

    .vat-result {
      display: none;
      margin-top: 18px;
      padding: 16px;
      border-radius: var(--bi-radius-12);
      background: var(--bi-surface-dim);
    }
    .vat-result.is-visible { display: block; }
    .vat-result-title {
      margin: 0 0 10px;
      font-size: 18px;
      line-height: 22px;
      font-weight: 800;
    }
    .vat-result-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .vat-result-item {
      position: relative;
      min-width: 0;
      padding: 12px 38px 12px 12px;
      border: 1px solid var(--bi-outline-variant);
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface);
    }
    .vat-result-item.is-main {
      border-color: #b9eabf;
      background: var(--bi-primary-container);
    }
    .vat-result-name {
      margin-bottom: 4px;
      color: var(--bi-text-variant);
      font-size: 12px;
      line-height: 16px;
      font-weight: 500;
    }
    .vat-result-value {
      color: var(--bi-text);
      font-size: 17px;
      line-height: 22px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .vat-copy-number {
      position: absolute;
      top: 8px;
      right: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      padding: 0;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--bi-text-variant);
      cursor: pointer;
      transition: color .15s, background-color .15s;
    }
    .vat-copy-number:hover {
      color: var(--bi-secondary);
      background: var(--bi-secondary-container);
    }
    .vat-copy-number.is-copied {
      color: var(--bi-success);
      background: var(--bi-primary-container);
    }
    .vat-copy-number svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.8;
    }

    .vat-result-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 12px;
    }
    .vat-copy-all {
      min-height: 36px;
      padding: 8px 12px;
      border: 0;
      border-radius: var(--bi-radius-8);
      background: var(--bi-secondary);
      color: #fff;
      cursor: pointer;
      font-size: 13px;
      line-height: 18px;
      font-weight: 500;
      transition: background-color .15s, transform .08s;
    }
    .vat-copy-all:hover { background: var(--bi-secondary-hover); }
    .vat-copy-all:active { transform: translateY(1px); }

    .vat-formula-toggle {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px 0;
      border: 0;
      background: none;
      color: var(--bi-secondary);
      cursor: pointer;
      font-size: 13px;
      line-height: 18px;
      font-weight: 500;
    }
    .vat-formula-toggle:hover { color: var(--bi-secondary-hover); }
    .vat-formula-arrow { transition: transform .2s; }
    .vat-formula-toggle[aria-expanded="true"] .vat-formula-arrow { transform: rotate(180deg); }
    .vat-formula {
      display: none;
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface);
      color: var(--bi-text-variant);
      font-size: 13px;
      line-height: 18px;
    }
    .vat-formula.is-visible { display: block; }
    .vat-formula-line + .vat-formula-line { margin-top: 6px; }
    .vat-copy-status {
      position: fixed;
      z-index: 1000;
      display: none;
      align-items: center;
      gap: 8px;
      width: max-content;
      max-width: calc(100vw - 24px);
      margin: 0;
      padding: 8px 10px;
      border: 1px solid #b9eabf;
      border-radius: var(--bi-radius-8);
      background: var(--bi-primary-container);
      color: #087d22;
      font-size: 13px;
      line-height: 18px;
      font-weight: 700;
      box-shadow: 0 6px 18px rgba(31, 35, 41, .14);
      pointer-events: none;
      transform: translate(-50%, calc(-100% - 10px));
    }
    .vat-copy-status::before {
      content: "✓";
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--bi-success);
      color: #fff;
      font-size: 12px;
      line-height: 1;
    }
    .vat-copy-status::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -6px;
      width: 10px;
      height: 10px;
      border-right: 1px solid #b9eabf;
      border-bottom: 1px solid #b9eabf;
      background: var(--bi-primary-container);
      transform: translateX(-50%) rotate(45deg);
    }
    .vat-copy-status.is-visible { display: inline-flex; }
    .vat-copy-status.is-error {
      border-color: #ffc7cb;
      background: var(--bi-error-container);
      color: var(--bi-error);
    }
    .vat-copy-status.is-error::before {
      content: "!";
      background: var(--bi-error);
    }
    .vat-copy-status.is-error::after {
      border-color: #ffc7cb;
      background: var(--bi-error-container);
    }

    .vat-history {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--bi-outline-variant);
    }
    .vat-history-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .vat-history-title {
      margin: 0;
      font-size: 16px;
      line-height: 20px;
      font-weight: 800;
    }
    .vat-history-clear {
      padding: 3px 0;
      border: 0;
      background: none;
      color: var(--bi-secondary);
      cursor: pointer;
      font-size: 12px;
      line-height: 16px;
      font-weight: 500;
    }
    .vat-history-clear:hover { color: var(--bi-secondary-hover); }
    .vat-history-empty {
      margin: 0;
      color: var(--bi-text-variant);
      font-size: 13px;
      line-height: 18px;
    }
    .vat-history-list { display: grid; gap: 6px; }
    .vat-history-item {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface-dim);
    }
    .vat-history-main {
      margin-bottom: 2px;
      font-size: 13px;
      line-height: 18px;
      font-weight: 700;
    }
    .vat-history-meta {
      color: var(--bi-text-variant);
      font-size: 12px;
      line-height: 16px;
    }
    .vat-history-load {
      min-height: 32px;
      padding: 7px 10px;
      border: 1px solid var(--bi-outline);
      border-radius: var(--bi-radius-8);
      background: var(--bi-surface);
      color: var(--bi-text);
      cursor: pointer;
      font-size: 12px;
      line-height: 16px;
      font-weight: 500;
      transition: border-color .15s, background-color .15s;
    }
    .vat-history-load:hover {
      border-color: var(--bi-text);
      background: var(--bi-surface-dim);
    }
    .vat-note {
      margin: 14px 0 0;
      color: var(--bi-text-variant);
      font-size: 11px;
      line-height: 16px;
    }

    @media (max-width: 600px) {
      .vat-calculator {
        padding: 16px;
        border-radius: var(--bi-radius-12);
      }
      .vat-section { margin-top: 13px; }
      .vat-label { margin-bottom: 6px; }
      .vat-options {
        display: flex;
        overflow-x: auto;
        padding: 3px;
        scrollbar-width: none;
      }
      .vat-options::-webkit-scrollbar,
      .vat-rates::-webkit-scrollbar { display: none; }
      .vat-option { flex: 0 0 auto; }
      .vat-option-text {
        min-height: 34px;
        padding: 6px 9px;
        white-space: nowrap;
        font-size: 12px;
      }
      .vat-rates {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
      }
      .vat-rate-text {
        min-height: 32px;
        padding: 5px 11px;
        font-size: 13px;
      }
      .vat-input { height: 42px; }
      .vat-actions { margin-top: 14px; }
      .vat-button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
      .vat-result { margin-top: 14px; padding: 12px; }
      .vat-result-title { margin-bottom: 8px; font-size: 16px; line-height: 20px; }
      .vat-result-grid { grid-template-columns: 1fr; gap: 6px; }
      .vat-result-item {
        display: grid;
        grid-template-columns: 1fr auto 28px;
        align-items: center;
        gap: 8px;
        min-height: 46px;
        padding: 8px;
      }
      .vat-result-name { margin: 0; }
      .vat-result-value { font-size: 16px; line-height: 20px; text-align: right; white-space: nowrap; }
      .vat-copy-number { position: static; }
      .vat-result-actions { flex-wrap: wrap; gap: 10px; margin-top: 10px; }
      .vat-history { margin-top: 14px; padding-top: 14px; }
      .vat-history-item { padding: 9px 10px; }
      .vat-history-meta { overflow-wrap: anywhere; }
      .vat-note { margin-top: 12px; }
    }

    @media (max-width: 380px) {
      .vat-calculator { padding: 14px; }
      .vat-actions { gap: 6px; }
      .vat-button { padding-inline: 12px; }
      .vat-result-item {
        grid-template-columns: 1fr 28px;
      }
      .vat-result-name { grid-column: 1; }
      .vat-result-value { grid-column: 1; text-align: left; }
      .vat-copy-number { grid-column: 2; grid-row: 1 / span 2; }
      .vat-history-item { grid-template-columns: 1fr; }
      .vat-history-load { justify-self: start; }
    }

/* калькулятор в стилистике макета */
.vat-calculator { padding: 0; border: 0; border-radius: 0; }
.v2-calc .vat-calculator { max-width: none; }
/* размеры внутри калькулятора — на ступень крупнее исходных */
.vat-label { font-size: 14px; line-height: 18px; font-weight: 400; color: var(--txt); }
.vat-option-text { font-size: 14px; line-height: 18px; min-height: 42px; }
.vat-rate-text { font-size: 15px; line-height: 19px; min-height: 38px; padding: 7px 14px; }
.vat-input { font-size: 17px; line-height: 22px; height: 48px; }
.vat-input-suffix { color: var(--txt); font-size: 16px; }
.vat-button { font-size: 16px; line-height: 20px; min-height: 48px; }
.vat-rate-hint { color: var(--txt); font-size: 13px; line-height: 18px; }
.vat-result-title { font-size: 20px; line-height: 26px; }
.vat-result-name { color: var(--txt); font-size: 13px; line-height: 17px; }
.vat-result-value { font-size: 19px; line-height: 24px; }
.vat-copy-all { font-size: 14px; line-height: 19px; min-height: 40px; }
.vat-formula-toggle { font-size: 14px; line-height: 19px; }
.vat-formula { color: var(--txt); font-size: 14px; line-height: 20px; }
.vat-history-clear { font-size: 13px; line-height: 17px; }
.vat-history-empty { color: var(--txt); font-size: 14px; line-height: 20px; }
.vat-history-main { font-size: 14px; line-height: 19px; }
.vat-history-meta { color: var(--txt); font-size: 13px; line-height: 17px; }
.vat-history-load { font-size: 13px; line-height: 17px; min-height: 36px; }
.vat-note { color: var(--txt); font-size: 13px; line-height: 18px; }

@media (max-width: 700px) {
  .vat-option-text { font-size: 13px; line-height: 17px; min-height: 38px; }
  .vat-rate-text { font-size: 14px; line-height: 18px; min-height: 36px; padding: 6px 12px; }
  .vat-input { font-size: 16px; height: 46px; }
  .vat-button { font-size: 15px; min-height: 44px; }
  .vat-result-title { font-size: 18px; line-height: 23px; }
  .vat-result-value { font-size: 17px; line-height: 22px; }
}
.vat-option-text, .vat-rate-text { font-weight: 400; }
.vat-option input:checked + .vat-option-text { font-weight: 800; }
.vat-rate input:checked + .vat-rate-text { font-weight: 800; }
.vat-button-primary { font-weight: 800; }
.vat-result-title { font-weight: 800; }
.vat-note { font-size: 12px; line-height: 16px; }

/* порядок действий: «Показать расчёт» слева, кнопка копирования — у правого края */
.vat-result-actions { gap: 16px; }
.vat-formula-toggle { order: 0; }
.vat-copy-all { order: 1; margin-left: auto; }

/* «Показать расчёт»: вместо символа ⌄ рисуем шеврон — глиф не выравнивается по строке */
.vat-formula-toggle { gap: 8px; align-items: center; }
.vat-formula-arrow {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  border-radius: 1px;
  font-size: 0;
  line-height: 0;
  color: inherit;
  transform: rotate(45deg);
}
.vat-formula-toggle[aria-expanded="true"] .vat-formula-arrow { margin-top: 3px; transform: rotate(225deg); }
@media (max-width: 700px) {
  .vat-result-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .vat-formula-toggle { align-self: flex-start; }
  .vat-copy-all { width: 100%; margin-left: 0; }
}

/* результат: подпись на главной плитке не должна быть бледнее самой плитки */
.vat-result-item.is-main .vat-result-name { color: var(--txt-black); }

/* история расчётов: не акцентируем — прячем, пока расчётов нет, и снимаем «жир» с заголовка */
.vat-history { display: none; }
.vat-history.has-items { display: block; }
.vat-history-title { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--txt-muted); }
@media (max-width: 700px) { .vat-history-title { font-size: 14px; line-height: 18px; } }
