/* 22.11.2026 (Роман): блок «לא מצאתם את התקלה?» в подвале — вместо мелкой плашки нормальная карточка CTA.
   Только токены, оба темы, адаптив. HTML не меняется: правим только вид. */
.pcf .fpromo{
  display:flex !important;flex-wrap:wrap !important;gap:18px !important;
  align-items:center !important;justify-content:space-between !important;
  padding:22px 24px !important;margin:0 0 26px !important;border-radius:20px !important;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 62%) !important;
  border:1px solid color-mix(in srgb, var(--accent) 38%, transparent) !important;
  box-shadow:0 10px 30px color-mix(in srgb, var(--accent) 12%, transparent) !important;
}
.pcf .fpromo-t{min-width:0 !important}
.pcf .fpromo-t b{font-size:18px !important;font-weight:800 !important;line-height:1.35 !important;color:var(--text) !important;letter-spacing:-.01em}
.pcf .fpromo-b{
  display:inline-flex !important;align-items:center !important;gap:10px !important;
  background:var(--wa,#25d366) !important;color:#062a14 !important;font-weight:800 !important;font-size:15px !important;
  border-radius:999px !important;padding:13px 22px !important;flex:none !important;text-decoration:none !important;
  box-shadow:0 8px 20px color-mix(in srgb, var(--accent) 38%, transparent) !important;
  transition:transform .18s ease, box-shadow .18s ease !important;
}
.pcf .fpromo-b:hover{transform:translateY(-1px) !important;box-shadow:0 12px 26px color-mix(in srgb, var(--accent) 48%, transparent) !important}
.pcf .fpromo-b:focus-visible{outline:2px solid var(--accent) !important;outline-offset:3px !important}
@media (max-width:640px){
  .pcf .fpromo{flex-direction:column !important;align-items:stretch !important;flex-wrap:wrap !important;
    gap:14px !important;padding:18px 16px !important;border-radius:16px !important;text-align:start !important}
  .pcf .fpromo-t b{font-size:16px !important;line-height:1.4 !important}
  .pcf .fpromo-b{justify-content:center !important;font-size:15px !important;padding:14px 18px !important;width:100% !important}
}
@media (prefers-reduced-motion:reduce){.pcf .fpromo-b{transition:none !important}}

/* 22.11.2026 (Роман): огромные фото уменьшены минимум на 20%.
   Касается только крупных фото в статьях/карточках: пропорции сохраняются (contain). */
@media (max-width:640px){
  main article img, .pz-article img, .pz-body img,
  .lps-card img, .h7-lab-ba img, .h7-cmp-m img{
    max-height:360px !important; height:auto !important; object-fit:contain !important;
  }
}
@media (min-width:641px){
  main article img, .pz-article img{
    max-height:420px !important; height:auto !important; object-fit:contain !important;
  }
}

/* 22.11.2026 (Роман): фото внутри figure в pz-hero/pz-sec — тоже уменьшаем (те самые 636 и 477 px). */
@media (max-width:640px){
  .pz-sec figure img, .pz-hero figure img, .pz-article figure img{
    max-height:360px !important; height:auto !important; object-fit:contain !important;
  }
}
@media (min-width:641px){
  .pz-sec figure img, .pz-hero figure img, .pz-article figure img{
    max-height:420px !important; height:auto !important; object-fit:contain !important;
  }
}

/* 22.11.2026: аккордеоны на lps-страницах (laptops и соседние) — тот же единый маркер.
   Раньше правило висело только на .pz, и на .lps значки «+»/«×» стояли в потоке и разъезжались. */
.lps details > summary,
.lps-faq details > summary,
.lps-w details > summary{
  position:relative !important;
  padding-inline-end:64px !important;
  list-style:none !important;
  cursor:pointer;
}
.lps details > summary::-webkit-details-marker,
.lps-faq details > summary::-webkit-details-marker{display:none !important}
.lps details > summary::marker,
.lps-faq details > summary::marker{content:"" !important}
.lps details > summary::after,
.lps-faq details > summary::after,
.lps-w details > summary::after{
  content:"+" !important;
  position:absolute !important;
  inset-inline-end:18px !important;
  inset-inline-start:auto !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:28px !important; height:28px !important; border-radius:50% !important;
  display:grid !important; place-items:center !important;
  background:var(--v8-ac-soft, rgba(167,139,250,.16)) !important;
  color:var(--v8-ac, #a78bfa) !important;
  font-size:1.2rem !important; line-height:1 !important;
  transition:transform .2s !important;
}
.lps details[open] > summary::after,
.lps-faq details[open] > summary::after{transform:translateY(-50%) rotate(45deg) !important}
@media (prefers-reduced-motion:reduce){.lps details>summary::after,.lps-faq details>summary::after{transition:none !important}}

/* 22.11.2026: повышенная специфичность для FAQ на lps (перебиваем page-CSS с !important) */
html body main .lps details.lps-faq-i > summary,
html body main .lps .lps-w details > summary,
html body main .lps-faq details > summary{
  position:relative !important;
  padding-inline-end:64px !important;
  list-style:none !important;
  cursor:pointer;
}
html body main .lps details.lps-faq-i > summary::-webkit-details-marker,
html body main .lps .lps-w details > summary::-webkit-details-marker{display:none !important}
html body main .lps details.lps-faq-i > summary::marker,
html body main .lps .lps-w details > summary::marker{content:"" !important}
html body main .lps details.lps-faq-i > summary::after,
html body main .lps .lps-w details > summary::after,
html body main .lps-faq details > summary::after{
  content:"+" !important;
  position:absolute !important;
  inset-inline-end:18px !important;
  inset-inline-start:auto !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:28px !important; height:28px !important; border-radius:50% !important;
  display:grid !important; place-items:center !important;
  background:var(--v8-ac-soft, rgba(167,139,250,.16)) !important;
  color:var(--v8-ac, #a78bfa) !important;
  font-size:1.2rem !important; line-height:1 !important;
}
html body main .lps details[open].lps-faq-i > summary::after,
html body main .lps .lps-w details[open] > summary::after{transform:translateY(-50%) rotate(45deg) !important}

/* 22.11.2026 (Роман: «блок на блок наезжает»): контент уходил под липкую шапку + прыжковое меню.
   Лечим на всём сайте: отступ прокрутки для якорей и целей переходов. */
html{scroll-padding-top:118px}
:target,section[id],article[id],div[id],h1[id],h2[id],h3[id]{scroll-margin-top:118px}
@media (max-width:900px){ html{scroll-padding-top:118px} }

/* 22.11.2026: контраст по замеру аудита (WCAG AA).
   Бейдж «ייחודי» в шапке: белый на #a78bfa давал 2,72 — переводим на тёмный текст (≈8).
   Кнопка CTA в подвале: белый на акценте давал 3,42 — тоже тёмный текст. */
/* 22.11.2026 (перепроверено замером): правила ниже были безусловными и портили светлую тему.
   Плашка «ייחודי» в светлой теме — тёмно-фиолетовая (#6d28d9), тёмный текст на ней давал 2,52.
   Кнопка CTA в светлой теме — зелёная #0f7a43, тёмный текст давал 3,42. Правильные цвета — по темам. */
html:not(.dk) .nav-feat em{color:#ffffff !important}
html.dk .nav-feat em{color:#1b1035 !important}
html:not(.dk) .pcf .fpromo-b{color:#062a14 !important}
html.dk .pcf .fpromo-b{color:#062a14 !important}
.pcf .fpromo-b *{color:inherit !important}

/* 22.11.2026 (Роман: «фотографии слишком огромные на мобильной») — единый размер фото в статьях.
   Было: 700×1244 внутри 358×360 с полями по бокам. Стало: 4:3, заливка кадра, высота 268 (было 360, −26 %).
   Правило общее для всех figure внутри main (страницы EN/FR держат фото вне article), герой-фото не режем. */
@media (max-width:640px){
  main figure img{
    width:100% !important; height:auto !important;
    aspect-ratio:4 / 3 !important;
    max-height:268px !important;
    object-fit:cover !important; object-position:center 42% !important;
    border-radius:14px !important;
  }
  main .pz-hero figure img{
    aspect-ratio:auto !important; max-height:230px !important;
    object-fit:contain !important; object-position:center !important;
  }
  main article figcaption, .pz-article figcaption{font-size:0.85rem !important}
}
@media (min-width:641px){
  main figure img{
    aspect-ratio:16 / 10 !important;
    max-height:320px !important;
    object-fit:cover !important; object-position:center 42% !important;
    border-radius:14px !important;
  }
  main .pz-hero figure img{
    aspect-ratio:auto !important; max-height:330px !important;
    object-fit:contain !important;
  }
}

/* 22.11.2026 — фото по всему сайту: единый потолок высоты (Роман: «огромные некрасиво смотрятся»).
   Скан 163 страниц: 16 страниц с фото >340 px. Закрываем найденные шаблоны. */
@media (max-width:640px){
  /* фото-карточки и вставки в тексте */
  main img.ph{
    width:100% !important; height:auto !important;
    aspect-ratio:4 / 3 !important;
    max-height:268px !important;
    object-fit:cover !important; object-position:center 42% !important;
    border-radius:14px !important;
  }
  /* карточки «похожие статьи» */
  main li.pz-wide img, main li.pz-wide a img{
    width:100% !important; height:auto !important;
    aspect-ratio:16 / 9 !important; max-height:200px !important;
    object-fit:cover !important; border-radius:12px !important;
  }
  /* герой модели и фото в галереях: показываем целиком, но не выше 300 */
  main .mdl-gallery img, main .xbn-m img, main b > img, main p > img{
    max-height:300px !important; height:auto !important;
    width:auto !important; max-width:100% !important;
    object-fit:contain !important; border-radius:12px !important;
  }
}
@media (min-width:641px){
  main img.ph{
    aspect-ratio:16 / 10 !important; max-height:320px !important;
    object-fit:cover !important; object-position:center 42% !important;
    border-radius:14px !important;
  }
  main li.pz-wide img, main li.pz-wide a img{max-height:220px !important; object-fit:cover !important}
  main .mdl-gallery img, main .xbn-m img, main b > img, main p > img{max-height:360px !important; width:auto !important; max-width:100% !important; object-fit:contain !important}
}

/* 22.11.2026 — фото модели, обёрнутое в ссылку: cap высоты (осталось 2 страницы из 163 после v=9) */
@media (max-width:640px){
  main .pz-sec > div > a > img, main section.pz-sec div > a > img{
    max-height:300px !important; height:auto !important;
    width:auto !important; max-width:100% !important;
    object-fit:contain !important; border-radius:12px !important;
  }
}
@media (min-width:641px){
  main .pz-sec > div > a > img{max-height:380px !important; width:auto !important; max-width:100% !important; object-fit:contain !important}
}

/* 22.11.2026 — тёмная тема на Apple-лендингах (/apple.html + 4 языка).
   Симптом: текст остаётся #111 на тёмном фоне — контраст 1,10–1,24 (не видно вообще).
   Причина: в этих страницах цвет берётся из переменной --text, которая в тёмной теме не переопределена.
   Лечим через существующий токен --ink (в тёмной теме #eef2f8). */
html.dk body{color:var(--ink)}
html.dk footer .pcf-g ul li a,
html.dk footer .pcf-g h4,
html.dk footer .pcf-brand p,
html.dk .p7c-hours bdi{color:var(--ink)}
html.dk section#more .v5-chips a,
html.dk .v5-sym b,
html.dk .v5-adev b,
html.dk .v5-pbox li,
html.dk .v5-asteps b,
html.dk .v5-achips span,
html.dk .v5-ap-tabs label{color:var(--ink)}
html.dk table.prt-t td,
html.dk table.prt-t td bdi{color:var(--ink)}

/* таблица цен в Apple-панелях: у таблицы нет своего класса, поэтому цепляемся за контейнер */
html.dk .v5-ap-p table td,
html.dk .v5-ap-p table th,
html.dk .v5-ap-p table td bdi,
html.dk .v5-ap table td{color:var(--ink)}

/* Apple-лендинги, тёмная тема: хлебные крошки и чипы (остатки после v=12) */
html.dk .v5-hero, html.dk .v5-ahero, html.dk .v5-hero .v5-wrap{color:var(--ink)}
html.dk .v5-hero a, html.dk .v5-ahero a{color:var(--muted)}
/* 25.11.2026: правило красило и кнопку «назад» (.aps-back) с тёмным фоном —
   текст на ней становился невидимым. Исключаем её явно. */
html.dk .aps-chip:not(.aps-back){color:var(--ink)}
html.dk .aps-chip *{color:inherit}
html:not(.dk) .aps-chip:not(.aps-back){color:#160a33}
html:not(.dk) .aps-back{color:var(--ap-card,#fff)}

/* Apple-лендинги, тёмная тема: корневая причина — переменная --text оставалась #111 в тёмной теме.
   Проверено замером: на apple.html нечитаемых узлов 31 → 1, на остальных страницах без изменений. */
html.dk{--text:#eef2f8}

/* Apple-лендинги, тёмная тема: ссылки брали светлую переменную --link (#0a58ca) — 2,67 на тёмном.
   В тёмной теме переводим на светлый акцент. */
html.dk{--link:#8fb6ff}

/* 22.11.2026 — контраст по замеру аудита (светлая тема):
   подвал на тёмном фоне, ссылки были #5d6470 → 3,06; оранжевые цены .v5-pr на белом → 2,59. */
html:not(.dk) footer .fcols a,
html:not(.dk) footer .fnote a,
html:not(.dk) footer .feco a{color:#b9c4d6}
html:not(.dk) footer .fcols h3{color:#dbe3ef}
html:not(.dk) .v5-pr, html:not(.dk) .v5-pr span.v5-num, html:not(.dk) .v5-pr bdi{color:#a83c00}

/* Apple-лендинг: кнопка «назад» (.aps-back) в тёмной теме имеет СВЕТЛУЮ плашку — текст должен быть тёмным */
html.dk .aps-back, html.dk .aps-back *{color:#160a33 !important}

/* подвал в светлой теме: заголовки колонок были тёмно-оранжевыми (#b8400a) на тёмном — 3,28.
   Осветляем до #ff9a5c (~7) — брендовый оттенок сохранён. */
html:not(.dk) footer .fcols h3, html:not(.dk) footer .fcol h3{color:#ff9a5c !important}

/* 2026-11-23: баннеры «что дальше» — картинка должна заполнять карточку (16/9), а не висеть 266×200.
   Правила выше (max-height + object-fit:contain) относятся к фото в галереях и тексте, не к баннерам. */
main .xbn-m img{max-height:none!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
/* 2026-11-23: блок .xbn («что дальше») был шире контентной колонки (1425 вместо 1180) */
main .xbn .wrap{max-width:1180px!important;margin-inline:auto!important;padding-inline:16px!important;box-sizing:border-box!important}
/* 2026-11-23: крестик закрытия баннера выглядел как «пустой круглый артефакт» — делаем читаемым */
main .xbn-x{color:var(--text,#eef1f7)!important;background:rgba(10,11,14,.55)!important;border:1px solid rgba(255,255,255,.22)!important;font-weight:700!important;opacity:1!important}
main .xbn-x:hover{background:rgba(10,11,14,.8)!important}

/* 23.11.2026: кнопка WhatsApp в подвале всегда зелёная, независимо от темы */
footer .fpromo-b,footer a[href*="wa.me"]{background:var(--wa,#25d366) !important;color:#062a14 !important;border-color:transparent !important}
footer .fpromo-b:hover,footer a[href*="wa.me"]:hover{filter:brightness(.94)}

/* 24.11.2026 (замер интерактивной проверки): «Violet» в палитре отделки давал 2,33:1 в светлой теме.
   Причина: нажатая кнопка берёт --accent-hi — светлый оттенок акцента, он рассчитан на тёмный фон.
   В светлой теме --accent сам бывает светлым (оранжевый #ff7a3d), поэтому берём --ink: 15:1 во всех палитрах.
   Цвет плитки показывает кружок-образец, подпись остаётся нейтральной. */
html.lt .lk-pal button[aria-pressed="true"], html.lt .lk-pal button[aria-pressed="true"] span{color:var(--ink,#121826) !important}
/* 24.11.2026: у зелёной кнопки WhatsApp в подвале ховер не должен уводить в оранжевую тень */
footer .fpromo-b:hover, footer a[href*="wa.me"]:hover{filter:brightness(.94) !important}

/* 24.11.2026 (третья находка проверки, «Repair» 2,59 при 1280): активный пункт меню в шапке —
   белый текст на акценте. В светлой теме акцент бывает светлым (оранжевый #ff7a3d), белый текст
   на нём даёт 2,59. Затемняем плашку акцентом с ink (60/40) — белый текст 5,5–18 по всем палитрам,
   оттенок бренда сохранён. В тёмной теме правило не нужно: там --accent-ink тёмный (6,5). */
html:not(.dk) .nav button[aria-expanded="true"]{
  background:color-mix(in srgb, var(--accent) 60%, #121826) !important;
  color:#ffffff !important;
}

/* 24.11.2026: у вопросов страницы ноутбуков своя стрелка (.lps-i), плашка «+» её дублировала */
html body main .lps details.lps-faq-i > summary::after,
html body main .lps details.lps-faq-i > summary::before{
  content:none !important; display:none !important;
}
html body main .lps details.lps-faq-i > summary{padding-inline-end:18px !important}

/* 24.11.2026: в подвале Apple-страниц ссылки стояли сплошной строкой (display:inline-flex без обёртки li) */
html body footer .fcol > a{
  display:block !important; margin:0 0 7px !important; line-height:1.35 !important;
}
html body footer .fcol > a[href*="wa.me"]{
  display:inline-flex !important; align-items:center; gap:6px;
  margin:2px 0 9px !important; padding:6px 12px !important; border-radius:999px !important;
}
html body footer .fcol > h4{margin:0 0 10px !important}

/* 27.11.2026: условие сужено до html.lt:not(.dk) — на страницах, где включены и dk, и lt,
   светлая палитра давала тёмный текст на тёмном подвале (контраст 1.17). */
/* 25.11.2026: в светлой теме подвал оставался тёмным по цвету текста — контраст 1.6:1,
   телефон, часы работы и ссылки колонок не читались. Даём подвалу светлую палитру. */
html.lt:not(.dk) body footer{
  --ft-fg:#0F172A; --ft-mut:#41506B; --ft-line:rgba(15,23,42,.12);
}
html.lt:not(.dk) body footer,
html.lt:not(.dk) body footer span,
html.lt:not(.dk) body footer p,
html.lt:not(.dk) body footer li,
html.lt:not(.dk) body footer small,
html.lt:not(.dk) body footer div:not([class*="badge"]){
  color:var(--ft-fg);
}
html.lt:not(.dk) body footer a{color:var(--ft-fg)}
html.lt:not(.dk) body footer a:hover{color:#B45309}
html.lt:not(.dk) body footer h4{color:#B45309}
html.lt:not(.dk) body footer a[href*="wa.me"],
html.lt:not(.dk) body footer a[href*="wa.me"] span{color:#fff !important}
html.lt:not(.dk) body footer .mut,
html.lt:not(.dk) body footer small{color:var(--ft-mut)}

/* 27.11.2026 (2): на СВЕТЛОМ подвале (rgb 244,245,247) ссылки колонок оставались #b9c4d6 —
   контраст 1.61, не читались. В светлой теме отдаём тёмный текст и приглушённый серый. */
html.lt:not(.dk) body footer .fcols a,
html.lt:not(.dk) body footer .fnote a,
html.lt:not(.dk) body footer .feco a,
html.lt:not(.dk) body footer .fcols .fcol a,
html.lt:not(.dk) body footer .fbot a{color:#0F172A !important}
html.lt:not(.dk) body footer .fcols a:hover,
html.lt:not(.dk) body footer .fcol a:hover{color:#B45309 !important}
html.lt:not(.dk) body footer .fbot p,
html.lt:not(.dk) body footer .fbot span{color:#41506B !important}

/* 27.11.2026 (3): кнопка WhatsApp в подвале — белый текст на ярком зелёном давал 1.98.
   Один вид на всех страницах: фон #25D366, текст #062A14 (контраст 7.85). */
html body footer .fpromo-b,
html body footer a[href*="wa.me"],
html body footer a[href*="wa.me"] span{background:#25D366 !important;color:#062A14 !important;border-color:transparent !important}

/* 28.11.2026: в светлой теме ссылка WhatsApp в подвале была белой на зелёном — 1.98.
   Тёмный текст через токен --wa-fg (7.85). Правило ниже по файлу, специфичность та же. */
:root{--wa-fg:#062A14}
html.dk{--wa-fg:#062A14}
html.lt:not(.dk) body footer a[href*="wa.me"],
html.lt:not(.dk) body footer a[href*="wa.me"] span,
html.lt:not(.dk) body footer .fpromo-b,
html.lt:not(.dk) body footer .fpromo-b *{color:var(--wa-fg) !important}
