/* Hallmark v2.0.0 · redesign: full · theme: custom · idea: first application as the unmistakable starting point · shape: open hero and compact guide · axes: light/grotesk-heavy/warm · entry: bank application */
/* critique: below the application, the process is a line, the detailed answers are disclosures, and the supporting guides stay linked. */
/* Hallmark · dropped route selectors and the previous arrow logo by request. The application, guide routes, and existing calculator and document controls are retained. */
/* Hallmark · waive 59 · the next useful step remains visible below the hero · tighter spacing brings the registration process into reach. */
/* Hallmark · waive 77 · a working form and the cited tariff are present · the calculator is a guide rather than a landing page. */
/* Hallmark · waive 79 · the calculator controls and result follow the title within the fold · the calculator itself is the next useful content. */
@font-face { font-family: Onest; src: url('./onest-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+20BD; }
@font-face { font-family: Onest; src: url('./onest-cyr.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  color-scheme: light;
  --ink: #251b17;
  --soft: #584c46;
  --canvas: #fffaf5;
  --white: #fffdf9;
  --paper: #fff0e4;
  --image-ground: #ffe2cc;
  --stroke: #dfcfc4;
  --field-edge: #8c7567;
  --accent: #ff671e;
  --accent-hover: #f2540a;
  --accent-ink: #20130c;
  --link: #9c3011;
  --focus: #963312;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: Onest, -apple-system, BlinkMacSystemFont, sans-serif;
  --measure: 74rem;
  --side: clamp(1.05rem, 5vw, 4.5rem);
  --gap: clamp(1.5rem, 5vw, 4rem);
  --radius: 1.3rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; font: 1rem/1.6 var(--body); background: var(--canvas); color: var(--ink); }
::selection { color: var(--accent-ink); background: var(--accent); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:where(a, summary, input, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
.container { width: min(100% - var(--side) * 2, var(--measure)); margin-inline: auto; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 730; letter-spacing: -.05em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7.3vw, 7.05rem); line-height: .96; }
h2 { font-size: clamp(2.05rem, 4vw, 3.5rem); line-height: 1.07; }
h3 { font-weight: 650; font-size: 1.15rem; line-height: 1.28; }
.counter-fallback { position: absolute; inset-inline-start: -10000px; }
.skip { position: absolute; z-index: 3; inset-block-start: 1rem; inset-inline-start: 1rem; padding: .5rem 1rem; color: var(--white); background: var(--link); transform: translateY(-180%); }
.skip:focus-visible { transform: none; }
.site-head { background: var(--canvas); border-bottom: 1px solid var(--stroke); }
.head-inner { min-height: 4.75rem; display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); align-items: center; gap: var(--gap); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .55rem; font-size: 1.12rem; font-weight: 740; letter-spacing: -.025em; white-space: nowrap; text-decoration: none; }
.brand img { flex: 0 0 auto; border-radius: .45rem; }
.site-head nav { display: flex; flex-wrap: wrap; column-gap: clamp(.85rem, 2.8vw, 2.15rem); row-gap: 0; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; }
.site-head nav a:hover, .site-head nav a[aria-current] { text-decoration: underline; }
.button { display: inline-flex; width: fit-content; min-height: 51px; justify-content: center; align-items: center; padding: .72rem 1.4rem; border-radius: .7rem; color: var(--accent-ink); background: var(--accent); font-weight: 725; text-decoration: none; transition: background-color .18s ease; }
.button:hover, .button:active { background: var(--accent-hover); }
.button:focus-visible { outline-offset: 5px; }
.head-action { justify-self: end; min-height: 44px; padding: .55rem 1rem; font-size: .94rem; white-space: nowrap; }
.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: var(--gap); padding-block: clamp(2rem, 6vw, 5rem); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(3.3rem, 7.1vw, 6.85rem); }
.lead { color: var(--soft); max-width: 39ch; margin-top: 1.2rem; font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.55; }
.hero-button { margin-top: 1.7rem; }
.hero-photo { display: grid; place-items: center; min-width: 0; aspect-ratio: 1.19; background: var(--image-ground); border-radius: var(--radius); }
.hero-photo img { width: 78%; height: auto; filter: drop-shadow(0 1rem 1.25rem var(--stroke)); }
.process { padding-block: 0 clamp(3.1rem, 7vw, 6.5rem); }
.process h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 1.15rem; }
.process-list { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.process-list li { counter-increment: step; display: grid; align-content: start; gap: .25rem; padding-block: .9rem .2rem; border-top: 1px solid var(--stroke); }
.process-list li::before { content: counter(step, decimal-leading-zero); margin-bottom: .14rem; font-size: .91rem; font-variant-numeric: tabular-nums; color: var(--link); }
.process-list strong { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.22; }
.process-list span { color: var(--soft); }
.prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); gap: var(--gap); align-items: center; padding-bottom: clamp(3.1rem, 8vw, 7rem); }
.prep-photo { align-self: stretch; min-width: 0; min-height: 15rem; border-radius: var(--radius); background: var(--paper); overflow: clip; }
.prep-photo img { height: 100%; width: 100%; object-fit: cover; }
.prep-copy p { margin-top: .9rem; max-width: 45ch; color: var(--soft); }
.guide-links { display: grid; margin-top: .85rem; }
.guide-links a { min-height: 46px; display: flex; align-items: center; color: var(--link); width: fit-content; }
.faq { display: grid; grid-template-columns: minmax(0, .52fr) minmax(0, 1.48fr); gap: var(--gap); padding-block: clamp(1rem, 3vw, 2rem) clamp(3.25rem, 7vw, 6.4rem); }
.faq details, .prose details { border-top: 1px solid var(--stroke); }
.faq details:last-child, .prose details:last-of-type { border-bottom: 1px solid var(--stroke); }
.faq summary, .prose summary { cursor: pointer; min-height: 52px; padding: .8rem .1rem; font-weight: 660; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--link); font-size: 1.4rem; font-weight: 450; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--link); }
.faq details p, .prose details p { padding: 0 .1rem 1rem; color: var(--soft); max-width: 64ch; }
.faq details p a, .prose p a { color: var(--link); }
.faq details p a { display: inline-block; }
.closing { padding: clamp(1.35rem, 4.5vw, 4rem); background: var(--paper); border-radius: var(--radius); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.closing h2 { font-size: clamp(1.95rem, 4vw, 3.2rem); margin-bottom: .6rem; }
.closing a:not(.button) { color: var(--link); }
.home-sources { margin-block: 2.2rem 3rem; }
.sources { margin-top: 2rem; border-top: 1px solid var(--stroke); padding-top: .85rem; color: var(--soft); font-size: .92rem; }
.sources ul { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; list-style: none; margin: .32rem 0 0; padding: 0; }
.site-foot { border-top: 1px solid var(--stroke); background: var(--paper); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; justify-content: space-between; align-items: start; padding-block: 1.65rem; }
.foot-inner p { margin-top: .4rem; color: var(--soft); font-size: .91rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; font-size: .94rem; }
.foot-legal { border-top: 1px solid var(--stroke); padding-block: .85rem 1.1rem; }
.foot-ad { color: var(--soft); font-size: .81rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--soft); margin-block: 1.3rem 1rem; align-items: center; font-size: .93rem; }
.breadcrumb span { border-inline-start: 1px solid var(--stroke); padding-inline-start: .8rem; }
.article-head { margin: clamp(2rem, 6vw, 4.15rem) 0 2rem; }
.article-head h1 { max-width: 19ch; font-size: clamp(2.7rem, 6.2vw, 5.3rem); }
.article-head .lead { max-width: 45ch; }
.prose { max-width: 49rem; padding-bottom: clamp(3.4rem, 7vw, 6rem); }
.prose h2 { font-size: clamp(1.65rem, 3.8vw, 2.4rem); margin-block: 2.15rem .8rem; }
.prose p + p { margin-top: .85rem; }
.prose :is(ul, ol) { margin-block: .75rem 1.3rem; padding-inline-start: 1.4rem; }
.prose li { margin-block: .5rem; }
.prose .sources ul { margin-block: .3rem 0; padding: 0; }
.prose .sources li { margin: 0; }
.comparison { margin: 1.15rem 0 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.comparison div { border: 1px solid var(--stroke); padding: 1.15rem; border-radius: var(--radius); }
.comparison dt { font-weight: 650; font-size: 1.16rem; }
.comparison dd { margin: .75rem 0 0; }
.related { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1.4rem; }
.inline-action { margin-top: 2rem; padding: 1.5rem; background: var(--paper); border-radius: var(--radius); }
.inline-action h2 { margin-top: 0; }
.checklist fieldset { margin: 0; border: 0; padding: 0; }
.checklist legend { font-weight: 650; font-size: 1.2rem; margin-bottom: .5rem; }
.checklist label { display: grid; align-items: start; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .9rem; cursor: pointer; border-top: 1px solid var(--stroke); padding: .82rem 0; }
.checklist label:last-child { border-bottom: 1px solid var(--stroke); }
.checklist input { accent-color: var(--link); width: 1.08rem; height: 1.08rem; margin: .2rem 0 0; }
.checklist strong { display: block; margin-bottom: .12rem; }
.calculator { padding: clamp(1.15rem, 3.5vw, 2rem); background: var(--paper); border-radius: var(--radius); }
.calculator h2 { margin-top: 0; }
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.calc-inputs label { font-weight: 630; }
.calc-inputs input { display: block; width: 100%; min-height: 48px; margin-top: .3rem; border: 1px solid var(--field-edge); border-radius: .5rem; background: var(--white); color: var(--ink); padding: .65rem .8rem; font: inherit; }
.calc-result { border-block: 1px solid var(--stroke); padding: .85rem 0; }
.calc-result output { display: block; margin-block: .3rem; color: var(--link); font: 720 clamp(2rem, 5.3vw, 3.7rem)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calculator .fine { margin-top: .75rem; color: var(--soft); font-size: .9rem; }
@media (max-width: 925px) {
  .head-inner { grid-template-columns: minmax(0, 1fr) max-content; column-gap: 1rem; row-gap: 0; padding-top: .5rem; }
  .site-head nav { grid-row: 2; grid-column: 1 / -1; }
  .head-action { grid-row: 1; grid-column: 2; }
}
@media (max-width: 650px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 2.05rem 2.5rem; }
  .hero-photo { aspect-ratio: 1.58; }
  .hero-photo img { width: 60%; }
  .site-head nav { column-gap: .9rem; }
  .site-head nav a { font-size: .8rem; }
  .head-action { font-size: .85rem; padding-inline: .75rem; }
  .process-list, .comparison, .prep, .faq { grid-template-columns: minmax(0, 1fr); }
  .process-list { gap: .5rem; }
  .process-list li { grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; padding-block: .68rem; }
  .process-list li::before { grid-row: 1 / 3; }
  .process-list span { grid-column: 2; }
  .prep-copy { grid-row: 1; }
  .prep-photo { min-height: 0; }
  .faq { gap: 1rem; }
}
@media (max-width: 390px) {
  .site-head nav { column-gap: .7rem; }
  .site-head nav a { font-size: .76rem; }
  .head-action { padding-inline: .6rem; }
  .brand { font-size: 1rem; }
  .calc-inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
