/* eplio: стилі блоку опису Б/В iPhone (v5, 2026-10-05: компактні плашки, більші значки банків). Підключається з catalog/view/eplio_bu/<pid>_<lang>.html */
/* ===== Блок опису Б/В (усе в межах .epd) ===== */
  .epd { --navy:#0b1d3a; --blue:#0f4b82; --sky:#8dcbf9; --mint:#2fd4a3; --sun:#ffc24b; --coral:#ff6b6b; --violet:#7b61ff;
         --ink:#1c2230; --muted:#5c6577; --line:#e6ebf2; font-family: Montserrat, sans-serif; color: var(--ink); line-height: 1.55; }
  .epd * { box-sizing: border-box; }
  .epd h3 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }
  .epd .sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
  .epd section { margin: 0 0 44px; }

  /* Hero */
  .epd .hero { position: relative; overflow: hidden; border-radius: 26px; padding: 40px 40px 34px;
    background: radial-gradient(120% 140% at 85% 20%, #3aa0ff 0%, rgba(58,160,255,0) 45%),
                radial-gradient(90% 120% at 10% 110%, #7b61ff 0%, rgba(123,97,255,0) 55%),
                linear-gradient(135deg, #07152c 0%, #0f2f5c 55%, #12457d 100%);
    color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center; }
  .epd .hero:before { content:""; position:absolute; inset:auto -80px -120px auto; width:340px; height:340px; border-radius:50%;
    background: radial-gradient(circle, rgba(141,203,249,.55), rgba(141,203,249,0) 70%); }
  .epd .tag { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing:.3px; }
  .epd .tag i { width:8px; height:8px; border-radius:50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
  .epd .hero h3 { font-size: 40px; margin: 18px 0 12px; color:#fff; }
  .epd .hero h3 span { background: linear-gradient(90deg, #8dcbf9, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .epd .hero p { color: rgba(255,255,255,.82); font-size: 16px; margin: 0 0 22px; max-width: 460px; }
  .epd .pills { display:flex; flex-wrap:wrap; gap:10px; }
  .epd .pill { display:flex; align-items:center; gap:8px; background:#fff; color:var(--navy); border-radius:14px; padding:10px 14px; font-weight:700; font-size:14px; }
  .epd .pill svg { flex:none; }
  .epd .phone-stage { position:relative; display:flex; justify-content:center; align-items:center; min-height: 300px; padding: 10px 0; isolation:isolate; }
  .epd .phone-stage .halo { position:absolute; z-index:-1; width:min(260px, 80%); aspect-ratio:1; border-radius:50%; top:50%; left:50%; transform:translate(-50%,-50%);
    background: radial-gradient(circle, rgba(141,203,249,.55) 0%, rgba(141,203,249,.18) 50%, rgba(141,203,249,0) 72%); }
  .epd .phone-stage img { position:relative; width: 270px; max-width:100%; border-radius: 26px; border: 6px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: rotate(-3deg); }
  .epd .phone-stage .sticker { position:absolute; right:6%; top:6%; background: var(--sun); color: var(--navy); font-weight:900; font-size:14px;
    width:92px; height:92px; border-radius:50%; display:flex; align-items:center; justify-content:center; text-align:center; transform: rotate(12deg);
    box-shadow: 0 10px 25px rgba(0,0,0,.25); line-height:1.15; }

  /* Паспорт */
  .epd .passport { display:grid; grid-template-columns: 260px 1fr; gap: 20px; }
  .epd .battery-card { border-radius: 22px; padding: 24px; color:#fff; text-align:center;
    background: linear-gradient(160deg, #19c99a 0%, #0f9f8a 100%); box-shadow: 0 14px 30px rgba(25,201,154,.28); }
  .epd .battery-card .ring { position:relative; width:170px; height:170px; margin: 6px auto 8px; }
  .epd .battery-card .lbl { display:block; font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; opacity:.9; margin-bottom:10px; }
  .epd .battery-card .ring b { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:25px; font-weight:800; letter-spacing:-.5px; }
  .epd .battery-card .ring b small { font-size:12px; font-weight:600; opacity:.85; letter-spacing:.5px; }
  .epd .battery-card p { margin:0; font-size:13.5px; opacity:.92; }
  .epd .facts { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .epd .fact { border:1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; display:flex; gap:14px; align-items:flex-start; background:#fff; }
  .epd .fact .ico { flex:none; width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; }
  .epd .fact b { display:block; font-size:15px; }
  .epd .fact span { font-size:13.5px; color: var(--muted); }

  /* Шкала стану */
  .epd .grades { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .epd .grade { position:relative; border-radius: 22px; padding: 22px 20px 20px; border: 2px solid var(--line); background:#fff; }
  .epd .grade.on { border-color: transparent; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#3aa0ff,#7b61ff) border-box;
    box-shadow: 0 16px 34px rgba(58,120,255,.18); }
  .epd .grade .badge-on { position:absolute; top:-12px; right:18px; background: linear-gradient(90deg,#3aa0ff,#7b61ff); color:#fff; font-size:12px; font-weight:700; padding:5px 12px; border-radius:999px; }
  .epd .grade .meter { display:flex; gap:5px; margin: 6px 0 14px; }
  .epd .grade .meter i { height:8px; flex:1; border-radius:4px; background:#e9eef5; }
  .epd .grade h4 { margin: 12px 0 6px; font-size: 18px; }
  .epd .grade p { margin:0; font-size:13.5px; color: var(--muted); }
  .epd .grade-note { margin-top:14px; font-size:13px; color:var(--muted); display:flex; gap:8px; align-items:center; }

  /* Ідеальний стан */
  .epd .ideal { border-radius: 26px; padding: 30px; background: linear-gradient(135deg,#eef6ff 0%,#f3efff 60%,#eafbf5 100%); }
  .epd .ideal-head { display:flex; gap:18px; align-items:center; margin-bottom: 20px; }
  .epd .ideal-head .sub { margin:0; }
  .epd .ideal-badge { flex:none; filter: drop-shadow(0 10px 18px rgba(90,100,255,.35)); }
  .epd .zones { display:grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
  .epd .zone { background:#fff; border-radius: 20px; padding: 18px 16px; box-shadow: 0 8px 22px rgba(20,40,90,.07); }
  .epd .zone .z-ico { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom: 12px; }
  .epd .zone b { display:block; font-size:16px; margin-bottom:4px; }
  .epd .zone span { font-size:13.5px; color: var(--muted); }
  .epd .reject { margin-top: 16px; display:flex; flex-wrap:wrap; gap: 8px 10px; align-items:center; background:#fff; border-radius: 18px; padding: 14px 16px; }
  .epd .reject b { font-size:14px; margin-right: 6px; }
  .epd .reject span { font-size:13px; background:#fff0f0; color:#c43c3c; border-radius:999px; padding:6px 12px 6px 8px; font-weight:600; }
  .epd .reject i { font-style:normal; display:inline-flex; width:18px; height:18px; border-radius:50%; background:#ff6b6b; color:#fff; align-items:center; justify-content:center; font-size:11px; margin-right:6px; }
  @media (max-width: 760px) { .epd .zones { grid-template-columns: 1fr 1fr; } .epd .ideal { padding: 22px 18px; } .epd .ideal-head { align-items:flex-start; } }

  /* Перевірка */
  .epd .checks { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .epd .check { border-radius: 22px; padding: 20px 18px; color:#fff; position:relative; overflow:hidden; }
  .epd .check:after { content:""; position:absolute; width:140px; height:140px; border-radius:50%; right:-50px; top:-50px; background: rgba(255,255,255,.14); }
  .epd .check .num { font-size: 12px; font-weight:700; opacity:.85; letter-spacing:1px; text-transform: uppercase; }
  .epd .check h4 { margin: 8px 0 12px; font-size: 18px; line-height:1.25; }
  .epd .check ul { margin:0; padding:0; list-style:none; font-size:13px; }
  .epd .check li { padding: 5px 0 5px 22px; position:relative; border-top: 1px solid rgba(255,255,255,.18); }
  .epd .check li:before { content:"✓"; position:absolute; left:0; font-weight:800; }
  .epd .c1 { background: linear-gradient(160deg,#3aa0ff,#1f6fd1); }
  .epd .c2 { background: linear-gradient(160deg,#8b6bff,#5b3fd6); }
  .epd .c3 { background: linear-gradient(160deg,#19c99a,#0e9479); }
  .epd .c4 { background: linear-gradient(160deg,#ff9a3c,#f2603c); }

  /* Економія */
  .epd .save { border-radius: 26px; padding: 34px; display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items:center;
    background: linear-gradient(120deg, #fff4d6 0%, #ffe3ec 50%, #e3e8ff 100%); }
  .epd .save h3 { font-size: 32px; }
  .epd .bars { display:flex; flex-direction:column; gap: 14px; }
  .epd .bar { background:#fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(20,30,60,.06); }
  .epd .bar .ep-row { gap:10px; display:flex; justify-content:space-between; font-weight:700; font-size:14px; margin-bottom:8px; }
  .epd .bar .track { height: 14px; border-radius: 8px; background:#eef1f6; overflow:hidden; }
  .epd .bar .fill { height:100%; border-radius: 8px; }
  .epd .save-big { display:inline-block; margin-top:6px; font-size: 44px; font-weight: 900; letter-spacing:-1px;
    background: linear-gradient(90deg,#f2603c,#7b61ff); -webkit-background-clip:text; background-clip:text; color:transparent; }

  /* Модель */
  .epd .model { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items:start; }
  .epd .chips { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .epd .chip { border-radius: 18px; padding: 16px; background: #f5f8fc; border:1px solid var(--line); }
  .epd .chip b { display:block; font-size: 20px; font-weight: 800; color: var(--blue); }
  .epd .chip span { font-size: 13px; color: var(--muted); }
  .epd .model p { margin: 0 0 12px; font-size: 15px; }

  /* Переваги */
  .epd .perks { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .epd .perk-hot { border-color: #ffc2cf; background: linear-gradient(180deg,#fff5f7,#fff); }
  .epd .perk { text-align:center; padding: 18px 10px; border-radius: 18px; background:#fff; border:1px solid var(--line); }
  .epd .perk .ico { width:54px; height:54px; margin: 0 auto 10px; border-radius: 16px; display:flex; align-items:center; justify-content:center; }
  .epd .perk b { display:block; font-size:14px; }
  .epd .perk span { font-size: 12.5px; color: var(--muted); }

  /* FAQ */
  .epd details { border:1px solid var(--line); border-radius: 16px; padding: 0 18px; margin-bottom: 10px; background:#fff; }
  .epd summary { cursor:pointer; list-style:none; padding: 16px 30px 16px 0; font-weight: 700; position:relative; }
  .epd summary::-webkit-details-marker { display:none; }
  .epd summary:after { content:"+"; position:absolute; right:0; top:12px; width:26px; height:26px; border-radius:50%; background: #eaf5ff; color: var(--blue);
    display:flex; align-items:center; justify-content:center; font-size:18px; }
  .epd details[open] summary:after { content:"–"; }
  .epd details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

  @media (max-width: 760px) {
    .epd .phone-stage { min-height: 260px; margin-top: 8px; }
    .epd .phone-stage img { width: 220px; }
    .epd .hero, .epd .passport, .epd .save, .epd .model { grid-template-columns: 1fr; }
    .epd .hero { padding: 28px 22px; }
    .epd .hero h3 { font-size: 30px; }
    .epd .grades, .epd .facts { grid-template-columns: 1fr; }
    .epd .checks { grid-template-columns: 1fr 1fr; }
    .epd .perks { grid-template-columns: 1fr 1fr; }
    .epd h3 { font-size: 22px; }
    .epd .save h3 { font-size: 24px; }
  }
  @media (max-width: 460px) { .epd .checks { grid-template-columns: 1fr; } }

  /* ===== Мобільна версія: компактно ===== */
  @media (max-width: 760px) {
    .epd section { margin-bottom: 26px; }
    .epd h3 { font-size: 21px; }
    .epd .sub { font-size: 13.5px; margin-bottom: 14px; }
    .epd .hero { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 20px; }
    .epd .phone-stage { display: none; }
    .epd .hero h3 { font-size: 26px; margin: 12px 0 8px; }
    .epd .hero p { font-size: 14px; margin-bottom: 14px; }
    .epd .pills { gap: 6px; }
    .epd .pill { font-size: 12.5px; padding: 7px 10px; border-radius: 11px; gap: 6px; }
    .epd .pill svg { width: 16px; height: 16px; }
    .epd .passport { grid-template-columns: 1fr; gap: 10px; }
    .epd .battery-card { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px; }
    .epd .battery-card .ring { width: 96px; height: 96px; margin: 0; grid-row: span 2; }
    .epd .battery-card .ring svg { width: 96px; height: 96px; }
    .epd .battery-card .ring b { font-size: 15px; letter-spacing: -.3px; }
    .epd .battery-card .lbl { margin: 0 0 4px; align-self: end; }
    .epd .battery-card p { font-size: 12.5px; align-self: start; }
    .epd .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .epd .fact { flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; }
    .epd .fact .ico { width: 38px; height: 38px; border-radius: 12px; }
    .epd .fact b { font-size: 14px; }
    .epd .fact span { font-size: 12.5px; line-height: 1.45; }
    .epd .ideal { padding: 18px 14px; border-radius: 20px; }
    .epd .ideal-head { gap: 12px; margin-bottom: 14px; }
    .epd .ideal-badge svg { width: 44px; height: 44px; }
    .epd .zones { grid-template-columns: 1fr 1fr; gap: 10px; }
    .epd .zone { padding: 12px; border-radius: 16px; }
    .epd .zone .z-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
    .epd .zone b { font-size: 14px; }
    .epd .zone span { font-size: 12.5px; }
    .epd .reject { padding: 12px; gap: 6px; }
    .epd .reject span { font-size: 12px; }
    .epd .checks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
    .epd .check { flex: 0 0 78%; scroll-snap-align: start; padding: 16px; }
    .epd .save { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; border-radius: 20px; }
    .epd .save h3 { font-size: 21px; }
    .epd .save-big { font-size: 34px; }
    .epd .model { grid-template-columns: 1fr; gap: 14px; }
    .epd .model p { font-size: 14px; }
    .epd .chips { gap: 8px; }
    .epd .chip { padding: 12px; border-radius: 14px; }
    .epd .chip b { font-size: 16px; }
    .epd .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
    .epd .perk { padding: 12px 8px; border-radius: 16px; }
    .epd .perk .ico { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px; }
    .epd .perk .ico svg { width: 22px; height: 22px; }
    .epd .perk b { font-size: 13px; }
    .epd .perk span { font-size: 11.5px; }
    .epd summary { padding: 13px 30px 13px 0; font-size: 14px; }
    .epd .bar .ep-row { font-size: 12.5px; gap: 10px; }
    .epd .bar .ep-row span:last-child { white-space: nowrap; }

  }

/* Наліпка «від нового» */
.epd .phone-stage .sticker small { display:block; font-size:10px; font-weight:700; margin-top:2px; letter-spacing:.2px; }
/* Мобільна: компактне фото в правому верхньому куті шапки */
@media (max-width: 760px) {
  .epd .hero { position: relative; }
  .epd .phone-stage { display: block; position: absolute; top: 16px; right: 14px; width: 104px; min-height: 0; padding: 0; margin: 0; }
  .epd .phone-stage .halo { display: none; }
  .epd .phone-stage img { width: 104px; height: 104px; border-width: 3px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.35); transform: rotate(4deg); }
  .epd .phone-stage .sticker { width: 66px; height: 66px; font-size: 11px; top: auto; bottom: -26px; right: -6px; line-height: 1.05; }
  .epd .phone-stage .sticker small { font-size: 8px; margin-top: 1px; }
  .epd .hero .tag { max-width: calc(100% - 118px); }
  .epd .hero h3 { padding-right: 112px; min-height: 96px; }
}

/* v3: наліпка — рядки один під одним */
.epd .phone-stage .sticker { flex-direction: column; gap: 0; width: 100px; height: 100px; padding: 6px; }
@media (max-width: 760px) {
  .epd .phone-stage .sticker { width: 74px; height: 74px; font-size: 11.5px; bottom: -30px; right: -8px; padding: 4px; }
  .epd .phone-stage .sticker small { font-size: 8.5px; }
}

/* v4: плашка «Оплата частинами» зі значками банків */
.epd .pill .banks { display:inline-flex; gap:4px; margin-left:2px; }
.epd .pill .banks img { height:20px; width:20px; object-fit:contain; border-radius:6px; background:#fff; box-shadow: 0 0 0 1px #e6ebf2; padding:1px; }
.epd .pill-hot { background: linear-gradient(90deg,#fff 0%,#fff3f6 100%); }
@media (max-width: 760px) {
  .epd .pill .banks img { height:17px; width:17px; border-radius:5px; }
}

/* v5: більші значки банків, компактні плашки на телефоні */
.epd .pill .banks img { height:24px; width:24px; border-radius:7px; }
@media (max-width: 760px) {
  .epd .pills { gap: 6px; }
  .epd .pill { font-size: 11.5px; padding: 7px 9px; gap: 5px; border-radius: 10px; }
  .epd .pill svg { width: 15px; height: 15px; }
  .epd .pill .banks { gap: 3px; }
  .epd .pill .banks img { height: 22px; width: 22px; border-radius: 6px; }
}
