/* Светлая тема «современный банк»: серый фон, белые скруглённые карточки, жёлтый акцент, один шрифт Manrope. */
:root {
  --yellow: #ffd43b; --yellow-2: #ffe680; --ink: #14171f; --muted: #6b7280; --bg: #f3f4f6; --white: #fff;
  --navy: #0b1d3a; --line: #e5e7eb;
  --r-lg: 32px; --r: 24px; --r-sm: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 20px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.section { padding: 72px 0 0; }
.wrap.section { padding: 48px 20px 0; }
.section__title { margin-bottom: 28px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.more { font-weight: 800; white-space: nowrap; }
.more:hover, .offer__more:hover { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.title-xl { margin-bottom: 28px; }

/* шапка */
.header { background: var(--white); position: sticky; top: 0; z-index: 30; }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; white-space: nowrap; }
.logo__mark { display: block; width: 40px; height: 40px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a.is-active { background: var(--bg); }
.nav__search { display: none; }
.header__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-left: auto; }
.header__icon + .btn { white-space: nowrap; }
.header__icon:hover { background: var(--bg); }
.header__phone { font-weight: 800; white-space: nowrap; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span, .burger span::before, .burger span::after { display: block; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; right: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); padding: 16px 26px;
  font: 800 16px/1.2 var(--font); cursor: pointer; text-align: center; background: var(--yellow); color: var(--ink); transition: background .15s; }
.btn:hover { background: var(--yellow-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b303b; }
.btn.btn--small { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; margin-top: 14px; }

/* первый экран */
.hero { padding-top: 28px; }
.hero__box { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.hero__text { padding: 64px 56px; }
.chip { display: inline-block; background: var(--bg); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.hero__lead { font-size: 18px; color: var(--muted); margin: 22px 0 32px; max-width: 540px; }
.pills { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; padding: 0; margin: 36px 0 0; }
.pills li { background: var(--bg); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; color: var(--muted); }
.pills b { display: block; font-size: 20px; color: var(--ink); }
.hero__media { display: flex; align-items: center; padding: 40px; background: var(--photo) center / cover no-repeat var(--navy); }
.calc { width: 100%; background: var(--white); border-radius: var(--r); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.calc label { display: block; margin-bottom: 14px; font-weight: 600; }
.calc label span { display: flex; justify-content: space-between; }
.calc output { font-weight: 800; }
.calc input[type=range] { width: 100%; accent-color: var(--ink); }
.calc__result { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; background: var(--bg); border-radius: var(--r-sm); padding: 14px 16px; }
.calc__result span { color: var(--muted); }
.calc__result strong { font-size: 28px; white-space: nowrap; }
.calc__note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* плитки услуг */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 22px; background: var(--white); border-radius: var(--r); padding: 24px; min-height: 150px; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.tile__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--bg); font-size: 28px; line-height: 1; }
.tile__title { margin-top: auto; font-weight: 800; font-size: 18px; line-height: 1.3; }
.tile__text { color: var(--muted); font-size: 14px; margin-top: -14px; }

/* предложения: первая и шестая карточки широкие */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.offer { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s; }
.offer:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.offer__media { display: block; height: 200px; background: var(--navy); overflow: hidden; }
.offer__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.offer__media img.is-poster { object-position: top; }
.offer:hover .offer__media img { transform: scale(1.04); }
.offer__plain { display: grid; place-items: center; height: 100%; font-size: 64px; }
.offer__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.offer h3 { font-size: 22px; line-height: 1.2; }
.offer p { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.offer__more { margin-top: auto; font-weight: 800; }
.offers .offer:nth-child(6n+1), .offers .offer:nth-child(6n) { grid-column: span 2; flex-direction: row; }
.offers .offer:nth-child(6n+1) .offer__media, .offers .offer:nth-child(6n) .offer__media { width: 55%; height: auto; min-height: 300px; flex: none; }
.offers .offer:nth-child(6n+1) h3, .offers .offer:nth-child(6n) h3 { font-size: 30px; }
.badge { display: inline-block; align-self: flex-start; background: var(--yellow); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: 12px; margin-bottom: 12px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--navy); color: #fff; border-radius: var(--r); padding: 28px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; margin-bottom: 40px; }
.steps p { color: #b8c2d6; margin: 8px 0 0; font-size: 15px; }

/* новости */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card__img { display: block; width: 100%; height: 200px; object-fit: cover; }
.card__img--empty { display: grid; place-items: center; background: var(--yellow); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.card__body { display: block; padding: 20px 22px 26px; }
.card__meta { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.card__title { font-size: 19px; line-height: 1.3; }
.card__text { display: block; color: var(--muted); margin-top: 8px; font-size: 15px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* призыв */
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--yellow); border-radius: var(--r-lg); padding: 56px; }
.cta-box h2 { max-width: 680px; }
.cta-box p { margin: 10px 0 0; font-size: 18px; }
.cta-box__contacts { font-weight: 800; }

/* шапка внутренних страниц */
.pagehead { padding-top: 28px; }
.pagehead__box { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); border-radius: var(--r-lg); overflow: hidden; padding: 48px 56px; }
.pagehead__box--photo { grid-template-columns: 1.2fr 1fr; padding: 0; }
.pagehead__box--photo .pagehead__text { padding: 48px 56px; }
.pagehead__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.pagehead h1 { font-size: clamp(30px, 3.6vw, 48px); }
.pagehead__lead { font-size: 18px; color: var(--muted); margin: 16px 0 26px; max-width: 720px; }
.pagehead .badge { margin-bottom: 14px; }

/* колонки, боковые блоки */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.layout > article, .narrow > article { background: var(--white); border-radius: var(--r); padding: 40px; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 100px; }
.box { background: var(--white); border-radius: var(--r); padding: 28px; }
.box__title { font-size: 26px; margin-bottom: 8px; }
.box--dark { background: var(--navy); color: #fff; }
.box--dark p { color: #b8c2d6; margin: 8px 0 0; }
.box__phone { display: block; margin-top: 18px; font-size: 22px; font-weight: 800; color: var(--yellow); }
.box__mail { display: block; margin-top: 4px; }
.poster { display: block; border-radius: var(--r); overflow: hidden; }
.poster img { display: block; width: 100%; }
.list { list-style: none; padding: 0; margin: 0 0 18px; }
.list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list a { font-weight: 700; }
.list a:hover { color: var(--muted); }
.list--big li { padding: 14px 0; font-size: 18px; }
.poll { height: 100%; }
.poll__label { display: inline-block; background: var(--yellow); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.poll h3 { font-size: 24px; margin-bottom: 8px; }
.poll__option { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin: 8px 0; border-radius: 12px; background: var(--bg); cursor: pointer; }
.poll__option input { accent-color: var(--ink); }
.poll .btn { background: var(--ink); color: #fff; }
.poll__row { margin: 12px 0; }
.poll__text { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.poll__bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.poll__bar i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }

/* тексты */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.article__cover { border-radius: var(--r-sm); margin: 16px 0; width: 100%; }
.article__poll { margin: 28px 0; max-width: 520px; }
.prose { font-size: 17px; }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding: 6px 0 6px 34px; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); font-size: 12px; font-weight: 800; }
.prose ol { padding-left: 22px; }
.prose ol li { padding: 4px 0; }
.prose img { border-radius: var(--r-sm); }
.prose blockquote { border-left: 4px solid var(--yellow); margin: 16px 0; padding: 4px 18px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--yellow); border-radius: var(--r); padding: 22px 24px; margin-top: 36px; }
.cta .btn { background: var(--ink); color: #fff; }
.subpages { margin-top: 32px; background: var(--bg); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chips .chip { margin: 0; background: var(--white); }
.chips .chip--active { background: var(--ink); color: #fff; }
.pager { display: flex; justify-content: center; gap: 20px; margin-top: 36px; font-weight: 700; }
.searchbar { display: flex; gap: 10px; margin-bottom: 24px; }
.searchbar input { flex: 1; }
.searchbar .btn { background: var(--ink); color: #fff; }

/* формы */
.form__row { margin-bottom: 16px; }
.form__row label { display: block; font-weight: 600; margin-bottom: 5px; }
.form__row--check { display: flex; gap: 10px; align-items: flex-start; }
.form__row--check label { font-weight: 400; font-size: 14px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
.form__row--error input, .form__row--error select { border-color: #d14343; }
.form__error { color: #d14343; font-size: 14px; }
.flash { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--r-sm); background: var(--yellow-2); }
.flash--success { background: #dcf5e3; } .flash--error { background: #fde2e2; }

/* подвал */
.footer { background: var(--white); margin-top: 72px; padding: 56px 0 24px; color: var(--muted); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid a, .footer__grid span { display: block; margin: 6px 0; }
.footer__grid a:hover { color: var(--ink); }
.footer h4 { color: var(--ink); margin: 0 0 12px; font-size: 16px; }
.footer .logo { color: var(--ink); margin: 0 0 12px; }
.footer__brand p { margin: 0 0 14px; }
.footer .footer__phone { font-size: 20px; font-weight: 800; color: var(--ink); }
.footer__legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 13px; }
.footer__legal p { margin: 0 0 4px; }

/* планшет */
@media (max-width: 1100px) {
  .burger { display: block; }
  .header__row { min-height: 68px; gap: 12px; }
  .header__icon { display: none; }
  .header .btn--small { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 20px; box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .nav a { padding: 12px 14px; }
  .menu-open .nav { display: flex; }
  .nav__search { display: block; margin-top: 8px; }
  .hero__box, .pagehead__box--photo { grid-template-columns: minmax(0, 1fr); }
  .hero__media { padding: 28px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers .offer:nth-child(6n+1) .offer__media, .offers .offer:nth-child(6n) .offer__media { width: 50%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* телефон */
@media (max-width: 700px) {
  .header .btn--small { padding: 10px 14px; font-size: 14px; }
  .logo { font-size: 17px; }
  .logo__mark { width: 34px; height: 34px; }
  .hero { padding-top: 12px; }
  .hero__box, .pagehead__box { border-radius: var(--r); }
  .hero__text { padding: 32px 22px; }
  .hero__media { padding: 16px; }
  .calc { padding: 22px; }
  .pagehead { padding-top: 12px; }
  .pagehead__box, .pagehead__box--photo .pagehead__text { padding: 28px 22px; }
  .pagehead__box--photo { padding: 0; }
  .pagehead__img { min-height: 200px; max-height: 240px; order: -1; }
  .section { padding-top: 52px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 120px; padding: 18px; }
  .tile__title { font-size: 16px; }
  .offers, .steps, .grid--2, .grid--3, .duo, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .offers .offer:nth-child(n) { grid-column: auto; flex-direction: column; }
  .offers .offer:nth-child(n) .offer__media { width: 100%; height: 200px; min-height: 0; }
  .offers .offer:nth-child(n) h3 { font-size: 22px; }
  .steps li::before { margin-bottom: 20px; }
  .section__head { flex-direction: column; gap: 0; margin-bottom: 4px; }
  .section__head .more { margin-bottom: 20px; }
  .cta-box { padding: 32px 24px; border-radius: var(--r); }
  .layout > article, .narrow > article { padding: 24px 20px; }
  .box { padding: 22px; }
}

/* Предложения внутри страницы раздела (ИП, юрлица, физлица) */
.section-offers { margin-top: 36px; }
.section-offers .title-md { font-size: 24px; margin-bottom: 18px; }
.section-offers .offers { grid-template-columns: minmax(0, 1fr); }
.section-offers .offer { flex-direction: row; }
.section-offers .offer:nth-child(n) { grid-column: auto; }
.section-offers .offer__media { width: 42%; height: auto; min-height: 180px; flex: none; }
.section-offers .offer h3 { font-size: 22px; }
@media (max-width: 700px) {
  .section-offers .offer { flex-direction: column; }
  .section-offers .offer__media { width: 100%; height: 200px; min-height: 0; }
}

/* логотип в шапке на жёлтой плашке, как кнопка «Оставить заявку» */
.header .logo { background: var(--yellow); color: var(--ink); padding: 5px 18px 5px 10px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.header .logo:hover { background: var(--yellow-2); }
@media (max-width: 560px) { .header .logo { padding: 4px 14px 4px 8px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); } }
.logo span { text-transform: uppercase; letter-spacing: .03em; }
/* тонкая чёрная рамка вокруг плашки логотипа */
.header .logo { position: relative; isolation: isolate; background: var(--ink); }
.header .logo::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--yellow);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.header .logo:hover { background: var(--ink); }
.header .logo:hover::before { background: var(--yellow-2); }
@media (max-width: 560px) { .header .logo::before {
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); } }
/* поля ручного ввода в калькуляторе */
.calc label span { align-items: center; gap: 10px; white-space: nowrap; }
.calc input.calc__num[type="text"] { flex: 0 0 auto; width: 150px; margin: 0; padding: 6px 10px; border: 2px solid var(--bg); border-radius: 10px; background: var(--bg);
  font: 800 16px/1.2 var(--font); color: var(--ink); text-align: right; }
.calc input.calc__num[type="text"]:focus { outline: none; border-color: var(--yellow); background: var(--white); }
.calc input.calc__num--short[type="text"] { width: 70px; }
