.bc-scope {
  --bg: #f4f8fc;
  --bg-deep: #e7eef6;
  --paper: rgba(255, 255, 255, 0.82);
  --ink: #102033;
  --muted: #52657c;
  --line: rgba(16, 48, 84, 0.12);
  --accent: #0b87a8;
  --accent-2: #5b4cdb;
  --accent-ink: #086883;
  --gold: #0b87a8;
  --result: #f7fbff;
  --result-ink: #102033;
  --result-dim: #52657c;
  --shadow: 0 18px 40px rgba(28, 64, 110, 0.08);
  --serif: Syne, Outfit, "Segoe UI", sans-serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(14, 180, 214, 0.2), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(110, 96, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 420px, #f4f8fc 100%);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

.bc-scope::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 70, 120, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 70, 120, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

.bc-scope *,
.bc-scope *::before,
.bc-scope *::after {
  box-sizing: border-box;
}

.bc-scope h1,
.bc-scope h2,
.bc-scope h3,
.bc-scope p {
  margin: 0;
}

.bc-scope h1,
.bc-scope h2 {
  text-wrap: balance;
}

.bc-scope a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.bc-scope button,
.bc-scope input,
.bc-scope select,
.bc-scope textarea {
  font: inherit;
  color: inherit;
}

.bc-scope :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.bc-scope ::selection {
  background: rgba(11, 135, 168, 0.22);
}

.bc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bc-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 8px;
}

.bc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.bc-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(22, 104, 196, 0.28));
  transition: transform 0.18s ease;
}

.bc-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bc-logo:hover .bc-mark {
  transform: translateY(-1px) scale(1.04);
}

.bc-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.bc-brand strong {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: -0.03em;
  color: #102033;
}

.bc-brand strong em {
  font-style: normal;
  font-weight: 700;
  color: #0b87a8;
}

.bc-brand .bc-brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5c7290;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0.01em;
  text-transform: none;
}

.bc-brand-sub i {
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #14a4e6;
  flex: 0 0 auto;
}

.bc-brand span,
.bc-status,
.bc-eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bc-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.bc-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 14px;
  scrollbar-width: none;
}

.bc-nav::-webkit-scrollbar {
  display: none;
}

.bc-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
}

.bc-nav a[aria-current="page"],
.bc-nav a:hover {
  background: rgba(11, 135, 168, 0.1);
  border-color: rgba(11, 135, 168, 0.4);
  color: var(--accent-ink);
}

.bc-hero {
  padding: 28px 0 8px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: end;
}

.bc-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
}

.bc-hero h1,
.bc-calc-head h1,
.bc-map-hero h1,
.bc-section h2,
.bc-prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.bc-hero h1 {
  font-size: clamp(46px, 6.4vw, 78px);
  max-width: 12ch;
}

.bc-lede {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
}

.bc-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-points li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.bc-points strong {
  display: block;
  font-size: 14px;
}

.bc-points span {
  color: var(--muted);
  font-size: 13.5px;
}

.bc-search {
  display: block;
  margin: 26px 0 8px;
}

.bc-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 17px;
  box-shadow: 0 0 0 1px rgba(11, 135, 168, 0.04), var(--shadow);
}

.bc-search input:focus {
  border-color: rgba(11, 135, 168, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 135, 168, 0.12);
}

.bc-ad {
  margin: 18px 0 4px;
}

.bc-ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-ad-code {
  overflow: auto;
}

.bc-ad-code img,
.bc-ad-code iframe,
.bc-ad-code ins {
  max-width: 100%;
}

.bc-section {
  padding: 26px 0 6px;
}

.bc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.bc-section h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.bc-section-head a {
  font-size: 14px;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.bc-card[hidden],
.bc-section[hidden],
.bc-empty[hidden] {
  display: none !important;
}

.bc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(28, 64, 110, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bc-card:hover {
  border-color: var(--cat, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(28, 64, 110, 0.1), 0 0 0 1px var(--cat, var(--accent));
}

.bc-card[data-cat="finansy"] { --cat: #0c8f72; }
.bc-card[data-cat="matematika"] { --cat: #3a63e8; }
.bc-card[data-cat="zdorove"] { --cat: #d43a68; }
.bc-card[data-cat="konvertory"] { --cat: #b47a08; }
.bc-card[data-cat="avto"] { --cat: #2c8a38; }
.bc-card[data-cat="stroika"] { --cat: #b56a2e; }
.bc-card[data-cat="vremya"] { --cat: #4a5ed4; }
.bc-card[data-cat="byt"] { --cat: #7a45c4; }

.bc-card-kicker {
  color: var(--cat, var(--accent));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-card strong {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bc-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.bc-empty {
  padding: 28px 0 40px;
  color: var(--muted);
}

.bc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  padding-top: 8px;
}

.bc-crumbs a {
  color: inherit;
  text-decoration: none;
}

.bc-crumbs a:hover {
  color: var(--accent);
}

.bc-calc-head {
  padding: 18px 0 18px;
  max-width: 760px;
}

.bc-calc-head h1,
.bc-map-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  max-width: 16ch;
}

.bc-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.bc-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bc-form {
  display: grid;
  gap: 14px;
}

.bc-field label,
.bc-segment-title {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.bc-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0 12px;
}

.bc-control:focus-within {
  border-color: rgba(11, 135, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 135, 168, 0.12);
}

.bc-control input,
.bc-field select,
.bc-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
}

.bc-field select,
.bc-field textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 12px;
}

.bc-field textarea {
  min-height: 140px;
  resize: vertical;
}

.bc-unit {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.bc-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.bc-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bc-segmented label {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.bc-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bc-segmented span {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.bc-segmented input:checked + span {
  background: linear-gradient(90deg, #3ee0ff, #7c6bff);
  color: #041018;
  border-color: transparent;
}

.bc-segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bc-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.bc-check input {
  margin-top: 4px;
  accent-color: #0b87a8;
}

.bc-submit,
.bc-copy,
.bc-again,
.bc-keys button {
  border: 0;
  cursor: pointer;
}

.bc-submit,
.bc-again {
  background: linear-gradient(90deg, #3ee0ff, #5b8cff);
  color: #041018;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(62, 224, 255, 0.18);
}

.bc-submit:hover,
.bc-again:hover {
  filter: brightness(1.06);
}

.bc-missing-actions {
  margin: 16px 0 18px;
}

.bc-missing-actions a {
  display: inline-block;
  text-decoration: none;
}

.bc-copy {
  margin-top: 14px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(11, 135, 168, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.bc-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  max-width: 100%;
}

.bc-share-label {
  width: 100%;
  color: var(--result-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-share button {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(11, 135, 168, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.bc-share button:hover {
  background: rgba(11, 135, 168, 0.08);
}

.bc-result {
  position: sticky;
  top: 14px;
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(20, 196, 224, 0.16), transparent 55%),
    linear-gradient(180deg, #ffffff, #f3f9ff);
  color: var(--result-ink);
  border: 1px solid rgba(11, 135, 168, 0.22);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 220px;
  box-shadow: 0 0 36px rgba(20, 180, 210, 0.1), var(--shadow);
}

.bc-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bc-result-value {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  margin: 12px 0 6px;
  overflow-wrap: break-word;
  color: #0a3a52;
}

.bc-result-value .bc-num {
  white-space: nowrap;
}

.bc-result-value .bc-unit-inline {
  font-size: 0.62em;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.bc-result-value.is-long {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: 0;
}

.bc-result-label {
  color: var(--result-ink);
  font-weight: 650;
}

.bc-result-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.bc-result-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 48, 84, 0.1);
}

.bc-result-list dt {
  color: var(--result-dim);
}

.bc-result-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bc-result-list small,
.bc-notes {
  display: block;
  color: var(--result-dim);
  font-weight: 500;
  font-size: 13px;
}

.bc-notes {
  margin-top: 12px;
}

.bc-error {
  color: #c4234a;
  font-weight: 700;
}

.bc-table-wrap {
  margin-top: 14px;
}

.bc-table-wrap summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

.bc-table-scroll {
  overflow-x: auto;
  margin-top: 8px;
}

.bc-scope table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.bc-scope th,
.bc-scope td {
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(16, 48, 84, 0.1);
  white-space: nowrap;
}

.bc-scope th:first-child,
.bc-scope td:first-child {
  text-align: left;
}

.bc-prose {
  padding: 28px 0 10px;
  max-width: 760px;
}

.bc-prose h2 {
  font-size: 32px;
  margin: 22px 0 8px;
}

.bc-prose p,
.bc-prose li {
  color: var(--ink);
  font-size: 17px;
}

.bc-prose p + p,
.bc-prose ul {
  margin-top: 8px;
}

.bc-prose a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.bc-prose ul {
  padding-left: 1.15em;
}

.bc-inputs,
.bc-picks {
  display: grid;
  gap: 6px;
}

.bc-guide {
  padding-bottom: 12px;
}

.bc-formula {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  background: rgba(11, 135, 168, 0.08);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 14px 14px 0;
  margin-top: 10px;
}

.bc-example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 16px;
}

.bc-faq {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.bc-faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
}

.bc-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.bc-faq p {
  margin-top: 8px;
  color: var(--muted);
}

.bc-related {
  padding-bottom: 28px;
}

.bc-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

.bc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.bc-footer a {
  color: inherit;
  text-decoration: none;
}

.bc-footer a:hover {
  color: var(--accent);
}

.bc-keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bc-display {
  grid-column: 1 / -1;
  min-height: 78px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(11, 135, 168, 0.28);
  color: #0a3a52;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 24px rgba(20, 180, 210, 0.06);
}

.bc-keys button {
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 650;
}

.bc-keys .is-op {
  background: rgba(11, 135, 168, 0.08);
  color: var(--accent);
}

.bc-keys .is-eq {
  background: linear-gradient(90deg, #3ee0ff, #5b8cff);
  color: #041018;
  border-color: transparent;
}

.bc-dock {
  display: none;
}

.bc-stopwatch {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}

.bc-sw-bar {
  display: flex;
  gap: 8px;
}

.bc-sw-bar button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  touch-action: manipulation;
}

.bc-sw-bar button:disabled {
  opacity: 0.45;
}

.bc-sw-time {
  margin: 18px 0 6px;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(56px, 18vw, 88px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: #0a3a52;
  line-height: 1;
}

.bc-sw-status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.bc-sw-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin: 20px 0 8px;
}

.bc-sw-actions button {
  min-height: 76px;
  border: 0;
  border-radius: 999px;
  font: 700 20px/1 var(--sans);
  touch-action: manipulation;
}

.bc-stopwatch .bc-sw-side {
  background: #e7eef6;
  color: #102033;
}

.bc-sw-side:disabled {
  opacity: 0.4;
}

.bc-stopwatch .bc-sw-main {
  background: linear-gradient(100deg, #3ee0ff, #5b8cff);
  color: #041018;
}

.bc-stopwatch .bc-sw-main.is-live {
  background: #102033;
  color: #fff;
}

.bc-sw-laps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bc-sw-lap {
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.bc-sw-lap strong {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
}

.bc-sw-lap small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.bc-sw-num {
  font-size: 18px;
  font-weight: 700;
  color: #5c7290;
}

.bc-sw-lap.is-best {
  border-color: rgba(12, 143, 114, 0.45);
}

.bc-sw-lap.is-best .bc-sw-num,
.bc-sw-lap.is-best small {
  color: #0c8f72;
}

.bc-sw-lap.is-slow small {
  color: #b56a2e;
}

.bc-sw-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.bc-sw-empty[hidden] {
  display: none !important;
}

.bc-stopwatch.is-full {
  position: fixed;
  inset: 0;
  z-index: 80;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(700px 320px at 10% -10%, rgba(14, 180, 214, 0.2), transparent 55%),
    #f4f8fc;
  overflow: hidden;
}

.bc-stopwatch.is-full .bc-sw-time {
  font-size: clamp(64px, 20vw, 120px);
  margin-top: 8vh;
}

.bc-stopwatch.is-full .bc-sw-laps {
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

html.bc-sw-lock,
html.bc-sw-lock body {
  overflow: hidden;
}

@media (max-width: 860px) {
  .bc-hero,
  .bc-calc-layout,
  .bc-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .bc-header {
    display: flex;
  }

  .bc-status {
    display: none;
  }

  .bc-result {
    position: static;
  }

  .bc-wrap {
    width: min(1120px, calc(100% - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-scope * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.bc-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 2px;
  max-width: min(640px, 100%);
  margin-left: auto;
}

.bc-langs a,
.bc-lang-away {
  color: #3d5370;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.bc-langs a[aria-current="page"] {
  color: #086883;
  background: rgba(11, 135, 168, 0.12);
  border-color: rgba(11, 135, 168, 0.24);
}

.bc-lang-away {
  color: #086883;
  white-space: nowrap;
}

.bc-header {
  flex-wrap: wrap;
}

html[lang="zh-Hans"] .bc-scope {
  --sans: Outfit, "Noto Sans SC", "Segoe UI", sans-serif;
  --serif: Syne, Outfit, "Noto Sans SC", sans-serif;
}

html[lang="ja"] .bc-scope {
  --sans: Outfit, "Noto Sans JP", "Segoe UI", sans-serif;
  --serif: Syne, Outfit, "Noto Sans JP", sans-serif;
}

html[lang="ar"] .bc-scope {
  --sans: Outfit, "Noto Sans Arabic", "Segoe UI", sans-serif;
  --serif: Syne, Outfit, "Noto Sans Arabic", sans-serif;
}

html[lang="hi"] .bc-scope {
  --sans: Outfit, "Noto Sans Devanagari", "Segoe UI", sans-serif;
  --serif: Syne, Outfit, "Noto Sans Devanagari", sans-serif;
}

html[lang="zh-Hans"] .bc-scope h1,
html[lang="zh-Hans"] .bc-scope h2,
html[lang="ja"] .bc-scope h1,
html[lang="ja"] .bc-scope h2,
html[lang="ar"] .bc-scope h1,
html[lang="ar"] .bc-scope h2,
html[lang="hi"] .bc-scope h1,
html[lang="hi"] .bc-scope h2 {
  letter-spacing: 0;
  line-height: 1.28;
  font-weight: 700;
}

.bc-map-hero {
  padding: 18px 0 8px;
  max-width: 760px;
}

.bc-map-stats {
  margin-top: 12px;
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 15px;
}

.bc-map-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.bc-map-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px 7px 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(28, 64, 110, 0.05);
}

.bc-map-jump a span {
  min-width: 1.5em;
  text-align: center;
  border-radius: 999px;
  background: rgba(11, 135, 168, 0.12);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
}

.bc-map-jump a[data-cat="finansy"] span { background: rgba(12, 143, 114, 0.14); color: #0c8f72; }
.bc-map-jump a[data-cat="matematika"] span { background: rgba(58, 99, 232, 0.14); color: #3a63e8; }
.bc-map-jump a[data-cat="zdorove"] span { background: rgba(212, 58, 104, 0.14); color: #d43a68; }
.bc-map-jump a[data-cat="konvertory"] span { background: rgba(180, 122, 8, 0.16); color: #8a5e06; }
.bc-map-jump a[data-cat="avto"] span { background: rgba(44, 138, 56, 0.14); color: #2c8a38; }
.bc-map-jump a[data-cat="stroika"] span { background: rgba(181, 106, 46, 0.16); color: #9a5720; }
.bc-map-jump a[data-cat="vremya"] span { background: rgba(74, 94, 212, 0.14); color: #4a5ed4; }
.bc-map-jump a[data-cat="byt"] span { background: rgba(122, 69, 196, 0.14); color: #7a45c4; }

.bc-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.bc-map-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cat, var(--accent));
  border-radius: 22px;
  padding: 18px 18px 10px 18px;
  box-shadow: var(--shadow);
}

.bc-map-col[data-cat="finansy"] { --cat: #0c8f72; }
.bc-map-col[data-cat="matematika"] { --cat: #3a63e8; }
.bc-map-col[data-cat="zdorove"] { --cat: #d43a68; }
.bc-map-col[data-cat="konvertory"] { --cat: #b47a08; }
.bc-map-col[data-cat="avto"] { --cat: #2c8a38; }
.bc-map-col[data-cat="stroika"] { --cat: #b56a2e; }
.bc-map-col[data-cat="vremya"] { --cat: #4a5ed4; }
.bc-map-col[data-cat="byt"] { --cat: #7a45c4; }

.bc-map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.bc-map-col h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  border: 0;
}

.bc-map-col h2 a {
  color: inherit;
  text-decoration: none;
}

.bc-map-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bc-map-intro {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-map-col ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 22px;
}

.bc-map-col li {
  break-inside: avoid;
  border-top: 1px solid var(--line);
}

.bc-map-col li a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

.bc-map-col li a:hover {
  color: var(--accent-ink);
}

.bc-map-xml {
  margin: 22px 0 8px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .bc-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bc-map-col ul {
    columns: 1;
  }
}

html[dir="rtl"] .bc-map-col {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--cat, var(--accent));
}

html[dir="rtl"] .bc-field input,
html[dir="rtl"] .bc-field textarea,
html[dir="rtl"] .bc-search input {
  text-align: right;
}

html[dir="rtl"] .bc-result-value,
html[dir="rtl"] .bc-sw-time,
html[dir="rtl"] .bc-sw-num,
html[dir="rtl"] .bc-num {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .bc-langs {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 860px) {
  .bc-langs {
    justify-content: flex-start;
    max-width: none;
    order: 3;
  }
}

@media print {
  .bc-header,
  .bc-langs,
  .bc-lang-away,
  .bc-nav,
  .bc-search,
  .bc-submit,
  .bc-copy,
  .bc-share,
  .bc-dock,
  .bc-footer,
  .bc-status,
  .bc-ad {
    display: none !important;
  }

  .bc-scope {
    background: white;
    color: black;
  }

  .bc-scope::before {
    display: none;
  }

  .bc-result {
    position: static;
    background: white;
    color: black;
    border-color: #ccc;
  }

  .bc-result-value,
  .bc-kicker,
  .bc-copy,
  .bc-display {
    color: black;
    background: none;
    -webkit-text-fill-color: black;
  }
}

.bc-embed {
  min-height: 0;
  border-radius: 24px;
  padding: 8px;
  background: transparent;
}
