/* ============================================================
   APPLE CONTENT STYLE  |  v1.0
   ============================================================
   Логіка оформлення контенту в стилі Apple Support.
   Використовує Open Sans (300 / 400 / 700) — локальний шрифт.

   ВИКОРИСТАННЯ:
   1. Підключіть цей файл до сайту (link або @import).
   2. Оберніть весь контент статті / сторінки в:
      <div class="asc-content"> ... </div>
   3. Для підзаголовків другого рівня — стандартні h2, h3, h4.
   4. Для блоків «Примітка» / «Порада» — клас .asc-note
   5. Для таблиць — обгортка .asc-table-wrap навколо <table>

   ШРИФТ: Open Sans — підключається з теми (300 Light,
   400 Regular, 700 Bold). Заголовки — 400 (не жирний),
   тільки розмір і трекінг формують ієрархію.
   ============================================================ */

/* ── Змінні ── */
:root {
  --asc-ink:        #1d1d1f !important;   /* основний текст (жорстко чорний) */
  --asc-ink-muted:  #6e6e73 !important;   /* другорядний текст */
  --asc-ink-faint:  #86868b !important;   /* підписи, мета-інфо */
  --asc-surface:    #f5f5f7 !important;   /* фон нотаток */
  --asc-surface-2:  #fafafc !important;   /* thead, зебра */
  --asc-border:     #d2d2d7 !important;   /* розділювачі */
  --asc-link:       #0066cc !important;   /* посилання */
  --asc-link-act:   #004499 !important;   /* hover посилань */
  --asc-r-sm:       8px;
  --asc-r-md:       12px;
  --asc-r-lg:       16px;
  --asc-font:       "Open Sans", system-ui, -apple-system,
                    "Segoe UI", Arial, sans-serif;
  --asc-max:        800px;     /* максимальна ширина контенту */
}

/* ════════════════════════════════════════════════
   КОНТЕЙНЕР
   ════════════════════════════════════════════════ */

.asc-content {
  font-family: var(--asc-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  color: var(--asc-ink);
  letter-spacing: -0.011em;
  max-width: var(--asc-max);
  margin-inline: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Широка версія: юридичні / довгі сторінки */
.asc-content.asc-content--wide {
  max-width: 1060px;
}

/* Повна ширина: заповнює батьківський контейнер */
.asc-content.asc-content--full {
  max-width: none;
}

/* ════════════════════════════════════════════════
   ЗАГОЛОВКИ — лише вага 400 (не жирні),
   ієрархія через розмір і трекінг
   ════════════════════════════════════════════════ */

.asc-content h1,
.asc-content h2,
.asc-content h3,
.asc-content h4,
.asc-content h5,
.asc-content h6 {
  font-family: var(--asc-font);
  font-weight: 400;          /* ← не bold, як у Apple Display */
  color: var(--asc-ink);
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.08;
}

/* H1 — головний заголовок сторінки */
.asc-content h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);   /* 32–44px  */
  letter-spacing: -0.032em;
  margin-bottom: 0.75em;
}

/* H2 — розділ */
.asc-content h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem); /* 23–30px  */
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

/* H3 — підрозділ */
.asc-content h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); /* 18–22px  */
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

/* H4 — підпункт */
.asc-content h4 {
  font-size: 1.0625rem;                      /* 17px     */
  letter-spacing: -0.008em;
  line-height: 1.3;
  margin-top: 1.75em;
  margin-bottom: 0.4em;
}

/* H5, H6 — рідко, як лейбли */
.asc-content h5,
.asc-content h6 {
  font-size: 0.9375rem;                      /* 15px     */
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--asc-ink-muted);
  margin-top: 1.5em;
}

/* ════════════════════════════════════════════════
   ТЕКСТ
   ════════════════════════════════════════════════ */

.asc-content p {
  margin: 0 0 1.2em;
}

/* Лід-абзац: перший абзац після H1 */
.asc-content .asc-lead {
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.45;
  color: var(--asc-ink-muted);
  letter-spacing: -0.015em;
  margin-bottom: 1.75em;
}

.asc-content strong,
.asc-content b {
  font-weight: 700;
  color: var(--asc-ink);
}

.asc-content em,
.asc-content i {
  font-style: italic;
}

.asc-content i.fa,
.asc-content i[class*="fa-"],
.asc-content i[class*="glyphicon"] {
  font-style: normal;
}

/* ════════════════════════════════════════════════
   ПОСИЛАННЯ
   ════════════════════════════════════════════════ */

.asc-content a {
  color: var(--asc-link);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.asc-content a:hover,
.asc-content a:focus-visible {
  text-decoration: underline;
  color: var(--asc-link-act);
}

.asc-content a:focus-visible {
  outline: 3px solid var(--asc-link);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════
   СПИСКИ
   ════════════════════════════════════════════════ */

.asc-content ul,
.asc-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.2em;
}

.asc-content li {
  margin-bottom: 0.45em;
  line-height: 1.5;
}

.asc-content ul ul,
.asc-content ol ol,
.asc-content ul ol,
.asc-content ol ul {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

/* ════════════════════════════════════════════════
   ЗОБРАЖЕННЯ
   ════════════════════════════════════════════════ */

.asc-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--asc-r-md);   /* фірмове скруглення Apple */
  margin: 1.5em 0;
}

/* Figure + підпис */
.asc-content figure {
  margin: 1.75em 0;
}

.asc-content figure img {
  margin: 0;
}

.asc-content figcaption {
  margin-top: 0.625rem;
  color: var(--asc-ink-faint);
  font-size: 0.8125rem;      /* 13px */
  line-height: 1.5;
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════
   ТАБЛИЦІ
   ════════════════════════════════════════════════ */

/* Обгортка — обов'язкова, для горизонтального скролу */
.asc-content .asc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

.asc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.5;
  min-width: 400px;         /* не ламається на дуже вузькому */
}

.asc-content thead th {
  font-weight: 400;
  color: var(--asc-ink-faint);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--asc-border);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--asc-surface-2);
}

.asc-content tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--asc-border);
  vertical-align: top;
  color: var(--asc-ink);
}

.asc-content tbody tr:last-child td {
  border-bottom: none;
}

/* Зебра для щільних таблиць */
.asc-content table.asc-zebra tbody tr:nth-child(even) td {
  background-color: var(--asc-surface-2);
}

/* ════════════════════════════════════════════════
   БЛОКИ НОТАТОК / ПОРАД
   ════════════════════════════════════════════════ */

.asc-content .asc-note,
.asc-content .asc-tip,
.asc-content .asc-warn {
  border-radius: var(--asc-r-md);
  padding: 16px 20px;
  margin: 1.75em 0;
  font-size: 17px;           /* Жорстко 17px */
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.asc-content .asc-note {
  background-color: var(--asc-surface);
  color: var(--asc-ink);
}

.asc-content .asc-tip {
  background-color: #f0f9ff;
  color: var(--asc-ink);
}

.asc-content .asc-warn {
  background-color: #fffbf0;
  color: var(--asc-ink);
}

/* ════════════════════════════════════════════════
   СІТКА КАРТОЧОК (APPLE GRID)
   Використовується для вибору варіантів (Доставка тощо)
   ════════════════════════════════════════════════ */

.asc-content .asc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  margin: 40px 0;
}

.asc-content .asc-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.asc-content .asc-grid-icon {
  font-size: 40px;
  color: var(--asc-ink);
  margin-bottom: 20px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asc-content .asc-grid-item h3 {
  font-size: 21px;           /* Жорстко 21px */
  font-weight: 600;
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
  line-height: 1.2;
}

.asc-content .asc-grid-item p {
  margin-bottom: 8px;
  color: var(--asc-ink-muted);
  line-height: 1.5;
}

.asc-content .asc-more-link {
  margin-top: 12px;
  color: var(--asc-link);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  font-size: 17px;
}

.asc-content .asc-more-link:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════
   КНОПКИ
   Відповідають стилю сайту bb-battery.com.ua.
   Використовувати в парі з Font Awesome (fa fa-*).
   ════════════════════════════════════════════════ */

.asc-content .asc-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.asc-content .asc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0369a1;
  border: 1px solid #0284c7;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 17px;           /* Жорстко 17px */
  font-weight: 400;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--asc-font);
}

.asc-content .asc-btn-primary:hover,
.asc-content .asc-btn-primary:focus {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
  text-decoration: none;
}

.asc-content .asc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  border: 1px solid #d1d5db;
  color: #1f2937;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 17px;           /* Жорстко 17px */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--asc-font);
}

.asc-content .asc-btn-outline:hover,
.asc-content .asc-btn-outline:focus {
  border-color: #0369a1;
  background-color: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 2px 4px rgba(3, 105, 161, 0.05);
  text-decoration: none;
}

.asc-content .asc-btn-outline i,
.asc-content .asc-btn-primary i {
  color: inherit;
  font-size: 17px;           /* Жорстко 17px */
}

@media (max-width: 768px) {
  .asc-content .asc-btn-group {
    flex-direction: column;
  }
  .asc-content .asc-btn-primary,
  .asc-content .asc-btn-outline {
    justify-content: center;
  }
}

/* ════════════════════════════════════════════════
   МОБІЛЬНИЙ БРЕЙКПОІНТ
   ════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .asc-content {
    font-size: 16px;
    letter-spacing: -0.008em;
  }

  .asc-content h2 { margin-top: 2em; }
  .asc-content h3 { margin-top: 1.75em; }

  .asc-content thead th,
  .asc-content tbody td {
    padding: 10px 12px;
  }

  .asc-content .asc-note,
  .asc-content .asc-tip,
  .asc-content .asc-warn {
    padding: 13px 16px;
    font-size: 17px;
  }

  .asc-content .asc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .asc-content .asc-grid-icon {
    font-size: 34px;
    margin-bottom: 16px;
  }
}
/* bb-hero-test.css — перший екран головної. Scoped під .bb-hero / .bb-scrubber.
   Підключається ЛИШЕ на головній (з moneymaker2_slideshow.tpl). Мінімалістична біла версія. */
.bb-hero{
  --bb-blue:#0369a1;        /* primary UI — наявний синій сайту */
  --bb-blue-d:#025986;
  --bb-red:#CE2A21;         /* BB-печатка; точний червоний з logo.png */
  --bb-ink:#101828;
  --bb-ink-2:#475467;
  --bb-muted:#667085;
  --bb-track:rgba(16,24,40,.14);
  position:relative;box-sizing:border-box;width:100%;background:#fff;overflow:hidden;
  font-family:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  display:flex;align-items:center;min-height:90vh;min-height:90svh;
  padding:48px 16px 64px;
}
.bb-hero *,.bb-hero *::before,.bb-hero *::after{box-sizing:border-box;}
.bb-hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    radial-gradient(circle at center, rgba(15,40,80,.075) 0 1.8px, transparent 2px),
    radial-gradient(circle at center, rgba(15,40,80,.045) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at center, rgba(15,40,80,.030) 0 .8px, transparent 1px);
  background-size:64px 64px,64px 64px,64px 64px;
  background-position:0 0,32px 32px,16px 48px;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 45%, #000 34%, rgba(0,0,0,.65) 58%, transparent 100%);
  mask-image:radial-gradient(ellipse 80% 70% at 50% 45%, #000 34%, rgba(0,0,0,.65) 58%, transparent 100%);
}
.bb-hero__inner{
  position:relative;z-index:1;width:100%;max-width:1280px;margin:0 auto;display:flex;gap:56px;align-items:center;
}
.bb-hero__content{flex:0 1 46%;min-width:0;}
.bb-hero__visual{
  position:relative;flex:1 1 54%;min-width:0;
}
.bb-hero__visual::before{
  content:"";position:absolute;inset:8% -6% 4% -2%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 46%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 42%, rgba(15,40,80,.04) 72%, transparent 100%);
}
.bb-hero__title{
  margin:0 0 14px;font-family:"Open Sans",sans-serif;
  font-size:clamp(28px,3.2vw,36px);line-height:1.2;
  font-weight:300;letter-spacing:0;color:var(--bb-ink);
}
.bb-hero__subtitle{
  margin:0 0 18px;font-size:clamp(17px,1.25vw,19px);line-height:1.55;
  color:var(--bb-ink-2);max-width:40em;
}
.bb-hero__chips{
  display:grid;gap:8px;margin:0 0 28px;padding:0;list-style:none;
}
.bb-hero__chip{
  position:relative;display:block;padding-left:22px;
  color:var(--bb-ink-2);font-size:16px;line-height:1.45;
}
.bb-hero__chip::before{
  content:"";position:absolute;left:1px;top:.68em;width:7px;height:7px;
  border-radius:50%;background:var(--bb-blue);box-shadow:0 0 0 4px rgba(3,105,161,.10);
}
.bb-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:0;}
.bb-hero__note{
  margin:14px 0 0;font-size:14px;line-height:1.45;color:var(--bb-muted);letter-spacing:.01em;
}
.bb-hero__btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:600;text-decoration:none;line-height:1;
  transition:background-color .15s,color .15s;
}
.bb-hero__btn--primary{
  padding:14px 26px;border-radius:8px;background:var(--bb-blue);color:#fff;
}
.bb-hero__btn--primary:hover,.bb-hero__btn--primary:focus{background:var(--bb-blue-d);color:#fff;}
.bb-hero__btn--secondary{
  padding:6px 2px;background:none;color:var(--bb-blue);
}
.bb-hero__btn--secondary::after{content:" \2192";}
.bb-hero__btn--secondary:hover,.bb-hero__btn--secondary:focus{color:var(--bb-blue-d);text-decoration:underline;}
.bb-hero__btn:focus-visible{outline:3px solid rgba(3,105,161,.4);outline-offset:2px;}
/* ---- Scrubber на білому: без рамок/тіні, лише сцена + повзунок ---- */
.bb-scrubber{position:relative;display:flex;flex-direction:column;gap:12px;}
.bb-scrubber__stage{
  position:relative;width:100%;aspect-ratio:16/10;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.bb-scrubber__stage video,.bb-scrubber__stage img{
  width:100%;height:100%;object-fit:contain;display:block;
}
.bb-scrubber__placeholder{
  color:var(--bb-muted);font-size:14px;letter-spacing:.02em;text-align:center;padding:16px;
}
.bb-scrubber__caption{
  margin:0;text-align:center;color:var(--bb-ink-2);
  font-family:"Open Sans",system-ui,-apple-system,sans-serif;
  font-weight:300;font-size:clamp(16px,1.5vw,20px);letter-spacing:.01em;
}
.bb-scrubber__caption strong{font-weight:600;color:var(--bb-red);}
.bb-scrubber__control{display:flex;align-items:center;gap:12px;}
.bb-scrubber__control span{color:var(--bb-muted);font-size:12px;font-weight:400;white-space:nowrap;}
.bb-scrubber input[type="range"]{
  -webkit-appearance:none;appearance:none;flex:1;height:44px;margin:0;
  background:transparent;outline:none;cursor:pointer;touch-action:none;
}
.bb-scrubber input[type="range"]:disabled{cursor:not-allowed;opacity:.6;}
/* тонкий видимий трек у межах великої зони захвату */
.bb-scrubber input[type="range"]::-webkit-slider-runnable-track{
  height:8px;border-radius:999px;background:var(--bb-track);
}
.bb-scrubber input[type="range"]::-moz-range-track{
  height:8px;border-radius:999px;background:var(--bb-track);
}
/* збільшений кружок для легкого попадання */
.bb-scrubber input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:30px;height:30px;border-radius:50%;
  border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.3);margin-top:-11px;
  background:var(--bb-blue) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat;
}
.bb-scrubber input[type="range"]::-moz-range-thumb{
  width:30px;height:30px;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.3);
  background:var(--bb-blue) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat;
}
.bb-scrubber input[type="range"]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(3,105,161,.45);}
.bb-scrubber input[type="range"]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px rgba(3,105,161,.45);}
.bb-scrubber__result{
  margin:2px 0 0;color:var(--bb-ink-2);font-size:14px;font-weight:600;text-align:center;
}
.bb-scrubber__result strong{color:var(--bb-red);}
.bb-scrubber__timeline{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
  margin:0;padding:0 58px;list-style:none;color:var(--bb-muted);
  font-size:11px;line-height:1.25;text-align:center;
}
.bb-scrubber__timeline li{
  position:relative;padding-top:10px;min-width:0;overflow-wrap:anywhere;
}
.bb-scrubber__timeline li::before{
  content:"";position:absolute;top:0;left:50%;width:5px;height:5px;
  border-radius:50%;background:rgba(3,105,161,.55);transform:translateX(-50%);
}
/* ---- Адаптив ---- */
@media (max-width:991px){
  .bb-hero{padding:28px 16px 40px;min-height:auto;display:block;}
  .bb-hero__inner{flex-direction:column;align-items:stretch;gap:24px;}
  .bb-hero__content{flex:none;}
  .bb-hero__visual{flex:none;order:2;}
  .bb-scrubber__timeline{font-size:10px;gap:4px;padding:0 42px;}
}
@media (prefers-reduced-motion:reduce){
  .bb-hero__btn{transition:none;}
}
