/* Shared type for the website and the Telegram storefront. Both font families are self-hosted. */
@font-face {
  font-family:"BimmerBit Fresa"; font-style:normal; font-weight:650; font-display:swap;
  src:url("fonts/bimmerbit-fresa.woff") format("woff");
  unicode-range:U+0020,U+002B,U+002D-003A,U+0041-005A,U+0061-007A,U+0401,U+0410-044F,U+0451,U+2013-2014;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-sans-3-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-052F,U+2116;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2190-2199,U+2212;
}
:root {
  --bb-editorial: "BimmerBit Fresa", "Source Sans 3", sans-serif;
  --bb-interface: "Source Sans 3", "Segoe UI", sans-serif;
  --display: var(--bb-editorial);
}
body, body.app-page, button, input, select, textarea,
.site-nav a, .top-actions a, .mobile-dock a, .site-header .brand, .site-footer .brand,
.app-page .brand, .shop-partners main>header, .payment-brand,
.app-page :is(.primary,.cta,.primary-action,#catalog-payment,.demo-shortcuts button),
.app-page .account-dock :is(a,button) { font-family:var(--bb-interface); }
body, body.app-page { font-size:17px; line-height:1.45; }
.site-header .brand,.site-footer .brand,.app-page .brand,.shop-partners main>header,.payment-brand {
  font-size:25px; font-weight:650; letter-spacing:-.035em;
}
.studio-hero h1,.app-page h1,.catalog-heading h1,.document h1,.emulator h1 {
  font-family:var(--bb-editorial); font-weight:650; letter-spacing:normal; font-kerning:normal; text-transform:uppercase;
  font-synthesis:none; line-height:1.04; text-wrap:balance;
}
.studio-hero h1 { font-size:clamp(62px,5.8vw,86px); }
.studio-hero h1 em { font:inherit; color:inherit; }
.section-head h2,.footer-contact h2,.welcome-layout h2,.welcome-group h2,.document h2,
.branch h3,.partners-head h3,.specialist-strip h3,.shipping h3,.price-layout h3 {
  font-family:var(--bb-editorial); font-weight:650; line-height:1.13; letter-spacing:normal; font-kerning:normal; text-transform:uppercase;
}
.app-page h2,.app-page h3,.shop-choice .choice-title,.feature-choice strong,.buy-routes strong {
  font-family:var(--bb-interface); font-weight:600; letter-spacing:-.014em;
}
.app-page .entry-heading .lead,.studio-intro>p { font-size:clamp(17px,1.35vw,21px); line-height:1.43; }
.app-page .buy-routes small { font-size:16px; line-height:1.35; }
.app-page .buy-routes strong { font-size:22px; }
.price-list dd,.license-count,.open-payment #amount { font-variant-numeric:tabular-nums; }
@media (max-width:760px) {
  .studio-hero h1 { font-size:clamp(32px,10.2vw,58px); }
  .app-page h1 { font-size:clamp(31px,8.7vw,46px); }
  .studio-intro>p,.app-page .entry-heading .lead { font-size:17px; }
  .site-nav a,.top-actions a,.mobile-dock a,.app-page .account-dock :is(a,button) { font-size:15px; }
  .features .section-head h2 { font-size:clamp(23px,6.5vw,33px); }
  .feature-choice,.feature-choice[aria-current=true] { font-size:clamp(14px,3.6vw,17px); }
}


/* Keep operational copy and long legal headings in mixed case. */
.document h2,.shop-choice .choice-title,.app-page .content h2 {
  font-family:var(--bb-interface); font-weight:600; text-transform:none; letter-spacing:-.01em;
}
.studio-hero h1 em { font-style:normal; color:#dddcd6; }
.app-page h1 { max-width:100%; }

/* Paint independent letters over the browser-shaped title without changing its flow. */
.has-heading-letters { position:relative; }
.has-heading-letters .heading-letter-source { opacity:0; }
.heading-letter-art { position:absolute; inset:0; pointer-events:none; user-select:none; }
.heading-letter {
  position:absolute;
  white-space:pre;
  text-align:left;
  letter-spacing:normal;
  transform-origin:center;
}
.heading-letter::before { content:attr(data-glyph); }
@media print, (prefers-reduced-motion: reduce) {
  .has-heading-letters .heading-letter-source { opacity:1; }
  .heading-letter-art { display:none; }
}
/* The relief face has its own optical metrics. Screen-specific heading layouts
   (including the entry screen and the admin workspace) must use those metrics. */
:root body.app-page h1,
:root .section-head h2,:root .catalog-heading h1,:root .document h1,
:root .emulator h1,:root .studio-hero h1 {
  letter-spacing:normal;
  font-kerning:normal;
}
.shop-account #owner :is(#journal-title,#partners-title,#invoice-qr-title),
.shop-partners #manage #unlinked-panel h2 {
  font-family:var(--bb-editorial); font-weight:650; text-transform:uppercase;
  font-synthesis:none; letter-spacing:normal; font-kerning:normal; line-height:1.15; overflow-wrap:anywhere;
  font-size:clamp(24px,4.4vw,34px);
}
.shop-account .journal-info,.shop-account .order-list,.shop-partners .rows,#review-fields {
  font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
:is(.partner-directory,#public-profiles) .partner-country {
  font:650 clamp(25px,3.1vw,33px)/1.16 var(--bb-editorial); text-transform:uppercase;
  letter-spacing:normal; font-kerning:normal; overflow-wrap:anywhere;
}
:is(.partner-directory,#public-profiles) .partner-city {
  font:600 20px/1.3 var(--bb-interface); color:var(--ink); overflow-wrap:anywhere;
}
:is(.partner-directory,#public-profiles) .partner-name {
  font:400 16px/1.35 var(--bb-interface); color:var(--muted); overflow-wrap:anywhere;
}
@media(max-width:760px) {
  .document h1,.catalog-heading h1,.emulator h1 { font-size:clamp(27px,7.25vw,43px); overflow-wrap:break-word; }
  .section-head h2,.footer-contact h2,.welcome-layout h2,.welcome-group h2,.specialist-strip h3,.partners-head h3 {
    font-size:clamp(22px,6.2vw,34px); overflow-wrap:break-word;
  }
}
