/* ==========================================================================
   Hello Payments
   ========================================================================== */

:root {
  --brand: #4053ff;
  --brand-dark: #3345e0;
  --page-bg: #f7f8ff;
  --ink: #010230;
  --ink-60: rgba(1, 2, 48, 0.6);
  --heading: #575757;
  --muted: #605f5f;
  --card-muted: #6b6b6b;
  --line: rgba(1, 2, 48, 0.08);
  --dark-grad: linear-gradient(169deg, #3e4c8a 0%, #111833 75%);
  --map-panel: #e9ecff;
  --map-country: #a9bdf4;
  --map-country-on: #809feb;
  --font-h: "Manrope", "Inter", sans-serif;
  --font-b: "Inter", sans-serif;
  --font-ui: "Inter", sans-serif;
  --fs-h1: clamp(34px, 3.9vw, 56px);
  --fs-h2: clamp(30px, 3.1vw, 46px);
  --fs-h3: 19px;
  --fs-lead: 17px;
  --fs-body: 15px;
  --fs-small: 13px;
  --gap-head: 64px;
  --sp-section: 96px;
  --sp-grid: 24px;
  --sp-card: 32px;
  --sp-panel: 40px;
  --r-panel: 40px;
  --r-card: 24px;
  --r-btn: 12px;
  --shell: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  font-family: var(--font-b);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-h); font-weight: 600; text-wrap: balance; }
p { margin: 0; }

/* Typography: balanced headings, no widows in body text, words never split. */
p, li, label, .faq-q span { text-wrap: pretty; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-wrap: balance;
}

.section-head .lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-family: var(--font-h);
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head .lead { color: rgba(255, 255, 255, 0.78); }

/* Eyebrow pill ------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-60);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.on-dark .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-btn);
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-white {
  background: #fff;
  color: #251f19;
  padding-left: 6px;
}

.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }

.btn-white .dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-white .dot svg { width: 14px; height: 14px; stroke: #fff; }

.btn-glass {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0 15px 0 20px;
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.3); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  height: 40px;
  font-size: 14px;
}

.btn-outline:hover { background: #f0f2ff; }

.btn-brand {
  background: var(--brand);
  color: #fff;
  justify-content: center;
}

.btn-brand:hover { background: var(--brand-dark); }

.ico-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

/* Focus and hover ---------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero :focus-visible,
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.region-tab:hover { color: var(--ink); border-color: rgba(64, 83, 255, 0.35); }
.faq-q:hover { background: rgba(64, 83, 255, 0.03); }
.nav-toggle:hover { background: #f0f2ff; }
.consent { cursor: pointer; }
.consent a:hover { color: var(--brand-dark); }
.consent input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand); }

/* Header ------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(247, 248, 255, 0.82);
  backdrop-filter: blur(14px);
}

.site-header .shell {
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo img { width: auto; height: 32px; }
.site-footer .logo img { height: 36px; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--brand); }

.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding: 80px 12px 12px;
  height: 100vh;
  max-height: 1080px;
  min-height: 700px;
  display: flex;
}

.hero-panel {
  position: relative;
  flex: 1;
  border-radius: var(--r-panel);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 52% 128%, rgba(120, 133, 255, 0.85) 0%, rgba(64, 83, 255, 0) 100%),
    linear-gradient(180deg, #4a5bff 0%, #4053ff 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: 47%;
  left: 50px;
  transform: translateY(-50%);
  width: 46%;
  max-width: 560px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

.hero-eyebrow {
  font-family: var(--font-b);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-eyebrow strong { font-weight: 600; }

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 534px;
}

.hero-lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  max-width: 420px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Globe --------------------------------------------------------------------- */

.globe-wrap {
  position: absolute;
  width: clamp(880px, 74%, 1560px);
  top: -94px;
  bottom: -156px;
  right: -218px;
  z-index: 2;
}

.globe-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.globe-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.globe-marker {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.25s ease;
}

.globe-marker .pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.globe-marker .pin img { width: 100%; height: 100%; object-fit: cover; }

/* Services ------------------------------------------------------------------ */

.services { padding: var(--sp-section) 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.card-grid.duo {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.card-grid.duo .art { height: 220px; }
.card-grid.duo .art img { max-height: 220px; }

.service-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(1, 2, 48, 0.4);
}

.service-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

.service-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--card-muted);
  max-width: 340px;
}

.service-card .art {
  margin: 28px 0 20px;
  height: 200px;
  display: grid;
  place-items: center;
}

.service-card .art img { max-height: 200px; width: auto; }

.service-card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
  padding: 12px 15px 12px 20px;
  border-radius: var(--r-btn);
  transition: color 0.15s ease, background 0.15s ease;
}

.service-card .more:hover { color: var(--brand); background: rgba(64, 83, 255, 0.06); }

/* Dark band (how it works + advantages) -------------------------------------- */

.band-dark {
  background: var(--dark-grad);
  color: #fff;
  padding: var(--sp-section) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.how-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: var(--sp-card);
}

.how-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.how-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

.how-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.adv-block { margin-top: 150px; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
  align-items: start;
}

.adv-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-card);
  padding: var(--sp-card) var(--sp-card) 0;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 1101px) {
  .adv-grid { margin-top: calc(var(--gap-head) + 48px); }
  .adv-grid .adv-card:nth-child(2) { margin-top: -48px; }
}

.adv-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 600;
}

.adv-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.adv-card .art {
  margin-top: 28px;
  height: 220px;
  display: grid;
  place-items: center;
}

.adv-card .art img { max-height: 220px; width: auto; }

/* Geography ------------------------------------------------------------------ */

.geo { padding: var(--sp-section) 0; }

.region-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--gap-head);
  flex-wrap: wrap;
}

.region-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-60);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.region-tab.active {
  color: var(--ink);
  border-color: rgba(64, 83, 255, 0.35);
  box-shadow: 0 8px 20px -14px rgba(64, 83, 255, 0.8);
}

.map-panel {
  margin-top: 40px;
  border-radius: var(--r-panel);
  background: var(--map-panel);
  padding: 10px;
  overflow: hidden;
}

.map-panel .world-map { width: 100%; height: auto; display: block; }

.world-map .c { fill: var(--map-country); transition: fill 0.35s ease; }
.world-map .c.on { fill: var(--map-country-on); }

/* Comparison ------------------------------------------------------------------ */

.compare { padding: var(--sp-section) 0; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.compare-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-card);
}

.compare-card.accent {
  background: var(--dark-grad);
  color: #fff;
}

.compare-card h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink);
}

.compare-card.accent h3 { color: #fff; }

.compare-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-60);
}

.compare-card.accent li {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.compare-card li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(64, 83, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234053ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.compare-card.accent li::before {
  background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* Connection steps ------------------------------------------------------------- */

.steps { padding: var(--sp-section) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.step-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-card);
  position: relative;
}

.step-card .num {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 40px;
  display: block;
}

.step-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-60);
}

/* Capabilities ------------------------------------------------------------------ */

.caps { padding: var(--sp-section) 0; }

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.cap-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-card);
}

.cap-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(64, 83, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.cap-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cap-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-60);
}

/* Developer tools ---------------------------------------------------------------- */

.devtools { padding: var(--sp-section) 0; }

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-grid);
  margin-top: var(--gap-head);
}

.dev-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: var(--sp-card);
}

.dev-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: #fff;
}

.dev-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

.dev-card p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* Contact ------------------------------------------------------------------------ */

.contact { padding: var(--sp-section) 0; }

.contact-card {
  background: #fff;
  border-radius: var(--r-panel);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 47px;
  padding: 13px 16px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: var(--page-bg);
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}


.field input,
.field select { height: 47px; }

.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23010230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.55'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

.field textarea { min-height: 110px; height: auto; resize: vertical; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-60);
}

.consent a { color: var(--brand); text-decoration: underline; }

.contact-card .btn-brand { grid-column: 1 / -1; height: 48px; }
.contact-card .btn-brand:disabled { opacity: 0.6; cursor: progress; }

.field .is-invalid { border-color: #e5484d; background: #fff6f6; }
.consent.is-invalid { color: #c9383c; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin-top: -6px;
  font-size: 14px;
  color: var(--ink-60);
  text-align: center;
}

.form-status:empty { display: none; }
.form-status.is-success { color: #1a7f4b; }
.form-status.is-error { color: #c9383c; }

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

.faq { padding: var(--sp-section) 0; }

.faq-list {
  max-width: 900px;
  margin: var(--gap-head) auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
}

.faq-q .sign {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--page-bg);
}

.faq-q .sign::before,
.faq-q .sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--brand);
  border-radius: 2px;
}

.faq-q .sign::before { width: 11px; height: 2px; }
.faq-q .sign::after { width: 2px; height: 11px; transition: opacity 0.2s ease; }

.faq-item.open .faq-q .sign::after { opacity: 0; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }

.faq-a p {
  max-width: 68ch;
  padding: 0 28px 24px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-60);
}

/* Footer --------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark-grad);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 0;
}


.footer-brand .logo { color: #fff; }

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.footer-col li { margin-bottom: 18px; }

.footer-col a {
  display: inline-block;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }


.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-b);
  font-size: 13px;
  cursor: pointer;
}

.to-top:hover { color: #fff; }

/* Document pages --------------------------------------------------------------------- */

.doc-main { padding: 140px 0 100px; }

.doc-head { max-width: 900px; margin: 0 auto 40px; }

.doc-head h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc-head .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-60);
  margin-bottom: 24px;
}

.doc-head .back:hover { color: var(--brand); }

.doc-body {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-panel);
}

.doc-body h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 14px;
}

.doc-body h2:first-child { margin-top: 0; }

.doc-body p,
.doc-body li {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
  margin-bottom: 12px;
}

.doc-index {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.doc-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--r-card);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.doc-index a:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -32px rgba(1, 2, 48, 0.45);
}

.doc-index .ico-doc {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.doc-index a:hover .ico-doc { opacity: 1; }

.doc-index-desc {
  display: block;
  margin-top: 6px;
  font-family: var(--font-b);
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-60);
}


/* Line icon system ---------------------------------------------------------- */

.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-card .ico { color: #fff; }
.cap-card .ico { color: var(--brand); }
.region-tab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--brand);
}

/* Hero trust strip ----------------------------------------------------------- */

.hero-trust {
  position: absolute;
  bottom: 52px;
  left: 50px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.16s ease;
}

.hero-trust:hover { opacity: 0.75; }


.hero-trust svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-trust b { font-weight: 600; color: #fff; }

/* Country chips under the map ------------------------------------------------ */

.country-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 32px;
  max-width: 1100px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.country-chip img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
}

.country-chip.dim { opacity: 0.32; }

.country-list.collapsed {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}

.country-toggle {
  display: none;
  margin: 16px auto 0;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-b);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.country-toggle:hover { border-color: rgba(64, 83, 255, 0.4); background: #f0f2ff; }

/* Contacts ------------------------------------------------------------------- */









/* Contacts ------------------------------------------------------------------- */

.contact-layout { margin-top: var(--gap-head); }

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sp-panel);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 12px auto 0;
  padding: var(--sp-card) var(--sp-panel);
  background: #fff;
  border-radius: var(--r-panel);
}

.contact-item { display: flex; flex-direction: column; gap: 8px; }

.contact-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.contact-value {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
}

a.contact-value {
  white-space: nowrap;
  color: var(--brand);
  border-bottom: 1px solid rgba(64, 83, 255, 0.3);
  align-self: flex-start;
}

a.contact-value:hover { border-bottom-color: var(--brand); }

.contact-value-sm {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-60);
}

/* Footer contacts ------------------------------------------------------------- */





.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 0.8fr 0.8fr 2.1fr;
  gap: 48px 36px;
  padding-bottom: 48px;
}

.footer-about {
  margin-top: 18px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 300px;
}

.footer-contacts { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }

.footer-contact {
  font-size: var(--fs-body);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-contact:hover { border-bottom-color: #fff; }

.footer-address {
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 280px;
}

.footer-docs { columns: 2; column-gap: 28px; }
.footer-docs li { margin-bottom: 18px; }
.footer-docs li { break-inside: avoid; }

.footer-bottom {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  max-width: 760px;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

/* Document files ------------------------------------------------------------- */

.doc-revision {
  max-width: 900px;
  margin: -24px auto 28px;
  font-size: var(--fs-small);
  color: var(--ink-60);
}

.doc-files {
  display: grid;
  gap: 8px;
  margin: 16px 0 32px;
}

.doc-file {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--page-bg);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.doc-file:hover {
  border-color: rgba(64, 83, 255, 0.4);
  background: #fff;
}

.doc-file-kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 4px 0;
  border-radius: 6px;
  background: rgba(64, 83, 255, 0.1);
  color: var(--brand);
}

.doc-file-name {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
}

.doc-file-meta {
  font-size: var(--fs-small);
  color: var(--ink-60);
  white-space: nowrap;
}

.doc-inline-link {
  color: var(--brand);
  border-bottom: 1px solid rgba(64, 83, 255, 0.35);
}

.doc-inline-link:hover { border-bottom-color: var(--brand); }

.doc-body h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 32px 0 4px;
}

/* Responsive ------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .section-head h2 { font-size: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-copy { width: 54%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .caps-grid, .how-grid, .dev-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col-docs { grid-column: span 2; }
}

@media (max-width: 860px) {
  :root { --sp-section: 64px; --sp-card: 24px; --sp-panel: 28px; --gap-head: 40px; }

  .country-toggle { display: block; margin-top: 16px; }

  .region-tabs { margin-top: 32px; gap: 8px; }
  .region-tab { padding: 7px 14px 7px 7px; }
  .country-list { margin: 24px auto 0; gap: 6px; }
  .map-panel { margin-top: 32px; padding: 6px; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    flex-direction: column;
    gap: 0;
    background: var(--page-bg);
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }

  .main-nav > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-h);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .main-nav > a:hover { color: var(--brand); }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 32px;
  }

  .nav-extra a { font-size: 15px; color: var(--ink-60); }

  body.nav-lock { overflow: hidden; }
  body.nav-lock .site-header { background: var(--page-bg); backdrop-filter: none; }

  .nav-toggle { display: block; }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 68px 8px 12px;
  }

  .hero-panel {
    min-height: 780px;
    padding-bottom: 0;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 73px 24px 0;
  }

  .hero h1 { font-size: 36px; text-align: center; }
  .section-head h2, .doc-head h1 { font-size: 36px; }
  .hero-lead { font-size: 15px; text-align: center; }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-actions .btn {
    width: auto;
    justify-content: center;
  }

  .btn-white { padding-left: 6px; padding-right: 20px; }

  .btn-glass {
    background: none;
    padding: 0 12px;
  }

  .btn-glass:hover { background: none; }

  .globe-wrap {
    width: auto;
    height: 540px;
    top: auto;
    bottom: -230px;
    left: -110px;
    right: -110px;
  }

  .hero-trust {
    position: static;
    margin: 32px auto 0;
    padding: 0 28px;
    display: block;
    text-align: center;
    text-wrap: balance;
    max-width: 330px;
  }

  .hero-trust svg { display: none; }

  .globe-marker .pin { width: 18px; height: 18px; }

  .card-grid,
  .card-grid.duo,
  .steps-grid,
  .caps-grid,
  .how-grid,
  .dev-grid,
  .adv-grid,
  .compare-grid,
  .form-grid { grid-template-columns: 1fr; }

  .adv-block { margin-top: var(--sp-section); }

  .contact-card, .doc-body, .contact-info { padding: 28px; }
  .contact-info { grid-template-columns: 1fr; gap: 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-docs { columns: 1; }
  .footer-col-docs { grid-column: auto; }
  .footer-about, .footer-address { max-width: none; }

  .doc-file {
    grid-template-columns: 46px 1fr;
    row-gap: 4px;
  }

  .doc-file-meta { grid-column: 2; }
}

/* Design system page ------------------------------------------------------------------ */

.bb { padding-top: 68px; }

.bb-hero { padding: 88px 0 48px; }
.bb-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 760px;
}
.bb-lead {
  max-width: 560px;
  margin-top: 20px;
  font-family: var(--font-h);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}
.bb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bb-hero-btn { height: 48px; }
.bb-print-note { display: none; }
.bb-meta { font-weight: 400; opacity: 0.7; font-size: 0.875em; }

.bb-index { padding-bottom: 24px; }
.bb-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bb-index-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.bb-index-card:hover { border-color: rgba(64, 83, 255, 0.35); transform: translateY(-2px); }
.bb-index-visual {
  height: 120px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 44px;
}
.bb-iv-logo img { height: 64px; width: auto; }
.bb-iv-colors i { width: 34px; height: 34px; border-radius: 50%; }
.bb-index-title { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.bb-index-sub { margin-top: 4px; font-size: 14px; color: var(--ink-60); }

.bb-section { padding: 72px 0; scroll-margin-top: 68px; }
.bb-head { max-width: 680px; margin-bottom: 32px; }
.bb-head h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.bb-head p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-60); }
.bb-sub { margin: 32px 0 14px; font-size: 15px; font-weight: 600; color: var(--ink-60); letter-spacing: 0; }
.bb-head + .bb-sub { margin-top: 0; }

.bb-logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bb-logo-card {
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.bb-logo-preview {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.bb-logo-preview.is-light { background: #fff; border-bottom: 1px solid var(--line); }
.bb-logo-preview.is-dark { background: var(--dark-grad); }
.bb-logo-preview img { width: 100%; max-width: 340px; height: auto; }
.bb-logo-preview.is-mark img { width: auto; max-width: none; height: 112px; }
.bb-logo-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.bb-logo-info h3 { font-size: 16px; color: var(--ink); }
.bb-logo-info p { margin-top: 2px; font-size: 14px; color: var(--ink-60); }
.bb-dl { display: flex; gap: 8px; flex-shrink: 0; }
.bb-dl-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.bb-dl-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.bb-rules {
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bb-rules ul { display: grid; gap: 8px; }
.bb-rules li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
}
.bb-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.bb-rules .btn { flex-shrink: 0; }

.bb-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bb-color {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 12px 16px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.bb-color:hover { border-color: rgba(64, 83, 255, 0.35); }
.bb-swatch { width: 100%; height: 112px; border-radius: 14px; margin-bottom: 14px; }
.bb-swatch.is-outlined { box-shadow: inset 0 0 0 1px var(--line); }
.bb-color-name { padding: 0 4px; font-family: var(--font-h); font-weight: 600; font-size: 16px; color: var(--ink); }
.bb-color-val .nw { white-space: nowrap; }
.bb-color-val { padding: 0 4px; margin-top: 4px; font-size: 13px; color: var(--ink-60); font-variant-numeric: tabular-nums; }

.bb-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bb-font {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
}
.bb-font-specimen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--page-bg);
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  min-height: 180px;
}
.bb-font-body { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0; }
.bb-font-body h3 { font-size: 22px; color: var(--ink); }
.bb-font-role { margin-top: 4px; font-size: 14px; color: var(--ink-60); }
.bb-font-sample { margin-top: 16px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.bb-font-weights { margin-top: 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-60); }
.bb-font-body .btn { margin-top: auto; }

.bb-contact {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  padding: 24px 28px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.18s ease;
}
.bb-contact:hover { border-color: rgba(64, 83, 255, 0.35); }
.bb-contact-title { font-family: var(--font-h); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); }
.bb-contact-sub { margin-top: 6px; font-size: 14px; color: var(--ink-60); }
.bb-contact-mail { margin-top: 16px; font-weight: 600; color: var(--brand); }

.bb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.bb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .bb-index-grid, .bb-colors { grid-template-columns: repeat(2, 1fr); }
  .bb-fonts { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .logo img { height: 28px; }
  .site-footer .logo img { height: 32px; }
  .bb-hero { padding: 48px 0 32px; }
  .bb-hero h1, .bb-head h2 { font-size: 36px; }
  .bb-section { padding: 48px 0; }
  .bb-logo-grid { grid-template-columns: 1fr; }
  .bb-logo-preview { height: 180px; padding: 28px; }
  .bb-logo-preview.is-mark img { height: 88px; }
  .bb-rules { flex-direction: column; align-items: flex-start; padding: 20px; }
  .bb-font { grid-template-columns: 1fr; }
  .bb-font-specimen { min-height: 120px; font-size: 56px; }
}

@media (max-width: 560px) {
  .bb-index-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bb-index-card { padding: 12px; }
  .bb-index-visual { height: 84px; margin-bottom: 12px; font-size: 32px; }
  .bb-iv-logo img { height: 44px; }
  .bb-iv-colors { gap: 4px; }
  .bb-iv-colors i { width: 22px; height: 22px; }
  .bb-index-title { font-size: 16px; }
  .bb-index-sub { font-size: 13px; }
  .bb-colors { gap: 10px; }
  .bb-swatch { height: 80px; }
  .bb-logo-info { flex-wrap: wrap; }
}

/* Design system PDF export ------------------------------------------------------- */

@page brandbook { size: 1280px 905px; margin: 0; }

.bb-print-logo { display: none; }

@media print {
  html { scroll-behavior: auto; background: var(--page-bg); }
  body.bb-page {
    page: brandbook;
    background: var(--page-bg);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .bb-page .site-header,
  .bb-page .site-footer,
  .bb-page .bb-toast,
  .bb-page .bb-index,
  .bb-page .bb-hero-actions,
  .bb-page .bb-dl,
  .bb-page .bb-rules .btn,
  .bb-page .bb-font-body .btn,
  .bb-page .to-top { display: none !important; }
  .bb-page .bb { padding-top: 0; }

  .bb-page .bb-hero {
    height: 905px;
    padding: 0;
    display: flex;
    align-items: center;
    break-after: page;
  }
  .bb-page .bb-print-logo { display: block; width: 360px; height: auto; margin-bottom: 72px; }
  .bb-page .bb-hero h1 { font-size: 64px; }
  .bb-page .bb-print-note { display: block; margin-top: 24px; font-size: 15px; color: var(--ink-60); }

  .bb-page .bb-section { padding: 48px 0 24px; break-before: page; }
  .bb-page #logo { break-before: auto; }
  .bb-page .bb-head { margin-bottom: 24px; }
  .bb-page .bb-logo-preview { height: 170px; }
  .bb-page .bb-screen-only { display: none; }
  .bb-page #contacts { break-before: auto; padding-top: 32px; }
  .bb-page .bb-hero h1,
  .bb-page .bb-head h2 { font-size: 44px; }
  .bb-page .bb-hero h1 { font-size: 64px; }
  .bb-page .bb-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-page .bb-logo-preview { padding: 28px; }
  .bb-page .bb-logo-grid { gap: 12px; }
  .bb-page .bb-rules { margin-top: 12px; }
  .bb-page .bb-logo-preview.is-mark img { height: 92px; }
  .bb-page .bb-colors { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .bb-page .bb-swatch { height: 120px; }
  .bb-page .bb-fonts { grid-template-columns: repeat(2, 1fr); }
  .bb-page .bb-font { grid-template-columns: 160px 1fr; }
  .bb-page .bb-font-specimen { min-height: 180px; font-size: 72px; }
  .bb-page .bb-rules { flex-direction: row; padding: 20px 24px; }
  .bb-page .bb-logo-card,
  .bb-page .bb-color,
  .bb-page .bb-font,
  .bb-page .bb-rules,
  .bb-page .bb-contact { break-inside: avoid; }
}
