/* === PHONEFIX COMPONENTS === */

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,.08);
  height: 48px; display: flex; align-items: center;
  transition: box-shadow .3s;
  overflow-x: clip;
}
.header.scrolled { box-shadow: none; }
.header-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  padding: 0 15px; display: flex; align-items: center; gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.logo-text b { color: var(--accent); }

.city-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: var(--radius-xs);
  background: transparent; border: none;
  font-size: 14px; font-weight: 400; color: var(--text-muted);
  cursor: pointer; transition: color .2s;
}
.city-btn:hover { color: var(--text); }
.city-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── 2-level header nav ── */
.h-nav { display: flex; gap: 0; margin-left: auto; }
.h-nav-item { position: relative; }
.h-nav-link {
  display: flex; align-items: center; gap: 3px;
  padding: 7px 13px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s; white-space: nowrap;
}
.h-nav-link:hover { color: var(--text); background: var(--bg); }
.h-nav-chevron { transition: transform .2s; flex-shrink: 0; opacity: .6; }
.h-nav-item:hover .h-nav-chevron { transform: rotate(180deg); }

/* dropdown panel */
.h-nav-item { padding-bottom: 6px; margin-bottom: -6px; }
.h-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.12);
  padding: 16px; min-width: 240px; z-index: 1000;
  animation: hdropIn .18s ease;
}
@keyframes hdropIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform:none; } }
.h-nav-item:hover .h-dropdown { display: flex; gap: 24px; }
.h-dropdown--brands { min-width: 320px; padding: 10px; }
.h-nav-item:hover .h-dropdown--brands { flex-wrap: wrap; gap: 0; }
.h-dropdown--brands .h-drop-brand { width: 50%; box-sizing: border-box; }
.h-dropdown--brands .h-drop-brand:last-child { width: 100%; }
.h-dropdown--addresses { flex-direction: column; min-width: 320px; padding: 14px; gap: 0; }

/* dropdown columns */
.h-drop-col { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.h-drop-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 0 8px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.h-drop-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text);
  transition: background .15s, color .15s;
}
.h-drop-link:hover { background: var(--surface-2); color: var(--accent); }
.h-drop-link--accent { color: var(--accent); font-weight: 600; margin-top: 4px; }
.h-drop-link svg { flex-shrink: 0; opacity: .55; }
.h-drop-brand {
  display: block; padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s; line-height: 1.2;
}
.h-drop-brand:hover { background: var(--surface-2); color: var(--accent); }
.h-drop-brand--group { display: flex; align-items: center; gap: 0; padding: 4px 0; }
.h-drop-brand--group .h-drop-brand-link:first-child { padding-left: 10px; }
.h-drop-brand-link { color: var(--text); font-weight: 500; transition: color .15s; padding: 2px 4px; border-radius: 4px; }
.h-drop-brand-link:hover { color: var(--accent); background: var(--surface-2); }
.h-drop-brand-sep { color: var(--text-muted); margin: 0 1px; font-size: 12px; }

/* ── Mega menu ── */
.h-mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: none; min-width: 680px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--sh-lg);
  padding: 0; z-index: 100;
  animation: hdropIn .2s ease;
}
.h-nav-item:hover .h-mega-menu { display: flex; }
.h-mega-col {
  padding: 16px; min-width: 200px;
  border-right: 1px solid var(--border);
}
.h-mega-col:last-child { border-right: none; }
.h-mega-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px;
}
.h-mega-cat, .h-mega-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-xs);
  font-size: 14px; color: var(--text-2); transition: all .15s;
  text-decoration: none;
}
.h-mega-cat:hover, .h-mega-brand:hover {
  background: var(--accent-l); color: var(--accent);
}
.h-mega-cat svg { flex-shrink: 0; }
.h-mega-brand--sub { padding-left: 22px; font-size: 13px; color: var(--text-muted); }
.h-mega-label--link { text-decoration: none; color: inherit; }
.h-mega-label--link:hover { color: var(--accent); }
.h-mega-models-list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 320px; overflow-y: auto;
}
.h-mega-models-list::-webkit-scrollbar { width: 3px; }
.h-mega-models-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.h-mega-model {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border-radius: var(--radius-xs);
  font-size: 13px; color: var(--text-2); transition: all .15s;
  text-decoration: none;
}
.h-mega-model:hover { background: var(--accent-l); color: var(--accent); }
.h-mega-model-price { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.h-mega-hint { font-size: 13px; color: var(--text-dim); padding: 10px; }
.h-mega-close { display: none; }

/* addresses dropdown */
.h-drop-addr-head { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.h-drop-addr-list { display: flex; flex-direction: column; gap: 2px; }
.h-drop-addr {
  display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 10px; border-radius: 8px;
  transition: background .15s;
}
.h-drop-addr:hover { background: var(--surface-2); }
.h-addr-metro { font-size: 12.5px; font-weight: 600; color: var(--text); grid-column: 1; }
.h-addr-street { font-size: 11.5px; color: var(--text-muted); grid-column: 1; }
.h-addr-hours { font-size: 10.5px; color: var(--green); grid-column: 2; grid-row: 1 / 3; align-self: center; white-space: nowrap; }
.h-drop-addr-more {
  display: block; margin-top: 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(37,99,235,.06); text-align: center;
  transition: background .15s;
}
.h-drop-addr-more:hover { background: rgba(37,99,235,.12); }

.h-phone { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.h-phone span { color: var(--accent); }

.h-cta {
  padding: 8px 18px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px; border: none; border-radius: 980px;
  box-shadow: none;
  transition: background .2s;
  white-space: nowrap;
}
.h-cta:hover { background: var(--accent-h); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Mobile header nav (2nd row) ── */
.h-mob-nav { display: none; }

/* ── Mobile menu ── */
.mob-menu-bg {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
}
.mob-menu-bg.open { display: block; }
.mob-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 280px; max-width: 85vw;
  background: var(--surface); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.mob-menu.open { transform: translateX(0); }
.mob-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.mob-menu-title { font-size: 17px; font-weight: 700; }
.mob-menu-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.mob-menu-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.mob-menu-link {
  display: flex; align-items: center; padding: 14px 20px;
  font-size: 16px; font-weight: 500; color: var(--text);
  transition: background .15s;
}
.mob-menu-link:hover { background: var(--bg); }
.mob-menu-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.mob-menu-phone {
  font-size: 18px; font-weight: 700; color: var(--text); text-align: center;
}

/* ── Tooltip для цен ── */
.pt-tooltip-auto {
  display: block; position: fixed;
  background: rgba(29,29,31,.85); backdrop-filter: blur(8px);
  color: #fff; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; line-height: 1.5;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 9999;
}
.pt-tooltip-auto.visible { opacity: 1; }
.pt-tip-price { display: none; }
.pt-tip-work { font-weight: 700; font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.pt-tip-model { font-size: 13px; font-weight: 600; margin-top: 2px; }


/* ─── TABS ─── */
.tabs-wrap { }
.tabs-nav {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 40px; overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 14px 22px; background: none; border: none;
  font: inherit; font-size: 15px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
  border-radius: 6px;
}
.tab-btn:hover { color: var(--text); background-color: rgba(0,0,0,.05); }
.tab-btn.active { color: var(--accent); font-weight: 700; }

.tab-panel { display: none; animation: fadeIn .25s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.brand-expand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 980px;
  border: 1px solid var(--border-2); background: transparent;
  color: var(--text-muted); font-size: 13px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.brand-expand-btn:hover { color: var(--accent); border-color: var(--accent); }
.brand-expand-btn svg { transition: transform .3s ease; }
.brand-expand-btn.expanded svg { transform: rotate(180deg); }
.brand-extra-tabs {
  display: none; gap: 6px; flex-wrap: wrap;
}
.brand-extra-tabs.show { display: flex; }

/* Device type row (level 1) */
.pt-dev-nav {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 4px; padding-bottom: 16px;
}
.pt-nav-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 9px 14px;
  opacity: 0.7;
  transition: border-color .18s, box-shadow .18s, opacity .18s;
  min-width: 0;
}
.pt-nav-search:focus-within, .pt-nav-search:hover {
  opacity: 1;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.08);
}
.pt-nav-search svg { flex-shrink: 0; color: var(--muted); }
.pt-nav-search-input {
  border: none; background: none; outline: none;
  font-size: 12.5px; color: var(--text); width: 160px;
  font-family: inherit;
}
.pt-nav-search-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.pt-nav-search-results {
  margin-bottom: 8px;
}
.pt-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.pt-search-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; gap: 10px;
  background: none; border: none; cursor: pointer;
  text-align: left; transition: background .12s;
}
.pt-search-item:hover, .pt-search-item.active { background: var(--accent-l, rgba(var(--accent-rgb),.08)); }
.pt-search-item-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pt-search-item-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.pt-dev-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg); color: var(--muted);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.pt-dev-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb),.05); }
.pt-dev-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.25);
}
.pt-dev-btn svg { flex-shrink: 0; }

.pt-dev-btn--accent { border-color: rgba(4,120,87,.4); color: #047857; }
.pt-dev-btn--accent:hover { border-color: #047857; background: rgba(4,120,87,.06); color: #047857; }
.pt-dev-btn--accent.active { background: #10b981; border-color: #10b981; color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.3); }

/* Device content panels */
.pt-dev-panel { display: none; }
.pt-dev-panel.active { display: block; }

/* ─── MODALS ─── */
.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.5); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-bg.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: var(--surface); border-radius: 20px;
  padding: 44px; width: 100%; max-width: 440px;
  box-shadow: var(--sh-lg); position: relative;
  animation: modalPop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop { from{opacity:0;transform:scale(.94)} to{opacity:1;transform:scale(1)} }
.modal-x {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 18px; line-height: 1;
  transition: background .2s, color .2s;
}
.modal-x:hover { background: var(--surface-3); color: var(--text); }
.modal-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.modal-discount-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #92400e;
  padding: 6px 12px; margin-bottom: 12px;
}
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.f-group { margin-bottom: 16px; }
.f-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
.f-input {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); font: inherit; font-size: 15px;
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); background: var(--surface); }
.f-submit {
  width: 100%; margin-top: 8px; padding: 15px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 16px; border: none;
  border-radius: 980px; cursor: pointer;
  box-shadow: none; transition: background .2s;
}
.f-submit:hover { background: var(--accent-h); }
.f-note { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ─── 5.4: MODAL MESSENGERS ─── */
.modal-or {
  display: block; text-align: center; font-size: 13px;
  color: var(--text-muted); margin: 20px 0 12px; position: relative;
}
.modal-or::before, .modal-or::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 60px); height: 1px; background: var(--border);
}
.modal-or::before { left: 0; }
.modal-or::after { right: 0; }
.modal-bots {
  display: flex; justify-content: center; gap: 12px;
}
.modal-bot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: border-color .2s, color .2s, background .2s;
}
.modal-bot:hover { border-color: var(--border-2); background: var(--surface); }
.modal-bot-tg:hover { color: #229ED9; border-color: #229ED9; }
.modal-bot-max:hover { color: #0071e3; border-color: #0071e3; }

/* ─── LIGHTBOX ─── */
.lightbox-bg {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
}
.lightbox-bg.open { display: flex; animation: fadeIn .2s ease; }
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 52px; height: 52px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-wrap {
  max-width: min(90vw, 600px);
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lb-img {
  max-width: 100%; max-height: 80vh;
  border-radius: 12px; object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.lb-cap { font-size: 14px; color: rgba(255,255,255,.8); text-align: center; }
.lb-counter { font-size: 12px; color: rgba(255,255,255,.4); }

/* ─── CITY MODAL ─── */
.city-modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.6); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.city-modal-bg.open { display: flex; animation: fadeIn .2s ease; }
.city-modal {
  background: var(--surface); border-radius: 20px;
  width: 100%; max-width: 900px; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-lg); position: relative;
  animation: modalPop .25s cubic-bezier(.34,1.56,.64,1);
}
.city-modal-head {
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.city-modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.city-modal-search-wrap {
  padding: 16px 28px; position: relative; flex-shrink: 0;
}
.city-search-icon {
  position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
}
.city-search-input {
  width: 100%; padding: 12px 16px 12px 44px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; font-size: 15px;
  color: var(--text); outline: none; transition: border-color .2s;
}
.city-search-input:focus { border-color: var(--accent); background: var(--surface); }
.city-search-input::placeholder { color: var(--text-dim); }

.city-modal-body {
  flex: 1; overflow-y: auto; padding: 0 28px;
  display: flex; flex-direction: column; gap: 24px;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.city-region-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.city-region-list { display: flex; flex-wrap: wrap; gap: 6px; }
.city-modal-link {
  padding: 7px 16px; border-radius: 100px;
  background: var(--bg); border: 1.5px solid var(--border);
  font-size: 14px; color: var(--text-muted);
  transition: border-color .15s, color .15s, background .15s;
}
.city-modal-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-l); }
.city-link-active {
  background: var(--accent-l); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
.city-modal-not-found { padding: 16px 0; font-size: 14px; color: var(--text-muted); }
.city-modal-footer {
  padding: 16px 28px 20px; border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.city-modal-all {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.city-modal-all:hover { text-decoration: underline; }

/* ─── 6.15: CALL OVERLAY ─── */
.call-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex; align-items: center; justify-content: center;
}
.call-overlay-inner {
  background: rgba(28,28,30,.92);
  border-radius: 44px; padding: 40px 32px 32px;
  width: 100%; max-width: 360px; margin: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.call-avatar { position: relative; margin-bottom: 8px; }
.call-avatar-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.call-avatar-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(0,113,227,.4);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: callRing 2s ease-out infinite;
}
.call-avatar-ring-1 { width: 110px; height: 110px; animation-delay: 0s; }
.call-avatar-ring-2 { width: 132px; height: 132px; animation-delay: .5s; }
@keyframes callRing {
  0% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}
.call-name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.call-subtitle { font-size: 15px; color: rgba(255,255,255,.6); }
.call-phone-input { width: 100%; }
.call-input-label { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.call-phone-field {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 16px; text-align: center;
}
.call-phone-field::placeholder { color: rgba(255,255,255,.4); }
.call-connecting, .call-success { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.call-dots { display: flex; gap: 6px; }
.call-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6);
  animation: callDot .9s ease-in-out infinite;
}
.call-dots span:nth-child(2) { animation-delay: .15s; }
.call-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes callDot {
  0%, 80%, 100% { transform: scale(1); opacity: .6; }
  40% { transform: scale(1.3); opacity: 1; }
}
.call-slider-wrap { width: 100%; padding: 4px 0; }
.call-slider-track {
  background: rgba(255,255,255,.12); border-radius: 980px;
  height: 56px; position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 0 8px;
}
.call-slider-label {
  position: absolute; left: 72px; right: 16px;
  font-size: 14px; color: rgba(255,255,255,.6);
  pointer-events: none; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.call-slider-thumb {
  width: 44px; height: 44px; border-radius: 50%;
  background: #34c759; display: flex; align-items: center; justify-content: center;
  cursor: grab; position: relative; z-index: 1; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(52,199,89,.5);
  transition: transform .1s;
}
.call-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.call-decline {
  width: 56px; height: 56px; border-radius: 50%;
  background: #ff3b30; border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-top: 4px;
  transition: background .2s;
}
.call-decline:hover { background: #d70015; }

/* ─── 5.9: STATUS BUTTON + MODAL ─── */
.status-indicator {
  display: none; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 980px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: border-color .2s; white-space: nowrap;
}
.status-indicator:hover { border-color: var(--border-2); }
.status-indicator.has-status { display: flex; }
.status-dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: blink 2s infinite; flex-shrink: 0;
}
.h-status-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 980px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 13px; cursor: pointer;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.h-status-btn:hover { color: var(--accent); border-color: var(--accent); }
/* Status modal */
.status-modal-bg {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 20px;
}
.status-modal-bg.open { display: flex; }
.status-modal {
  background: var(--surface); border-radius: 20px;
  box-shadow: var(--sh-lg); padding: 32px;
  width: 100%; max-width: 460px; position: relative;
}
.status-modal-x {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 14px;
  cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
}
.status-search-row {
  display: flex; gap: 8px; margin-top: 20px;
}
.status-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; color: var(--text);
  background: var(--bg); outline: none; transition: border-color .2s;
  font-family: inherit;
}
.status-input:focus { border-color: var(--accent); }
.status-search-btn {
  padding: 10px 18px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.status-search-btn:hover { opacity: .85; }
.status-result {
  display: none; margin-top: 20px;
}
.status-result.show { display: block; }
.status-card {
  background: var(--bg); border-radius: 12px; padding: 20px;
}
.status-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 980px;
  font-size: 12px; font-weight: 600; border: 1px solid currentColor;
}
.status-device { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.status-timeline { display: flex; flex-direction: column; gap: 0; }
.st-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0; position: relative;
}
.st-step:not(:last-child)::before {
  content: ''; position: absolute; left: 10px; top: 26px;
  width: 1px; height: calc(100% - 10px); background: var(--border);
}
.st-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted);
}
.st-dot.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-dot.active { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.st-info { flex: 1; }
.st-name { font-size: 14px; font-weight: 500; color: var(--text); }
.st-time { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.status-other-link {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.status-other-link:hover { color: var(--accent); }

/* ─── 6.3: STATUS TOOLTIP ─── */
.status-indicator { position: relative; }
.status-tooltip {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--sh-md); min-width: 200px; z-index: 200;
  font-size: 13px; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.status-indicator:hover .status-tooltip { opacity: 1; pointer-events: auto; }
.status-tooltip-id { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.status-tooltip-status { color: var(--accent); font-weight: 600; }
.status-tooltip-time { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

/* ─── WebRTC ring progress ─── */
.psc-webrtc-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px; animation: pscFadeIn .3s ease;
}
.psc-ring-progress {
  width: 60px; height: 60px; position: relative;
}
.psc-ring-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.psc-ring-progress circle { fill: none; stroke-width: 3; }
.psc-ring-bg { stroke: rgba(255,255,255,.15); }
.psc-ring-fg { stroke: #22c55e; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.psc-ring-timer {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.psc-webrtc-label { font-size: 11px; color: rgba(255,255,255,.7); text-align: center; }

/* ─── Price popup on click ─── */
.pt-click-popup {
  position: fixed; z-index: 1001;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--sh-lg);
  padding: 16px 20px; min-width: 240px;
  animation: ptPopIn .2s ease;
}
@keyframes ptPopIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.pt-click-popup-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.pt-click-popup-detail { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.pt-click-popup-btn {
  display: block; width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; transition: background .2s;
}
.pt-click-popup-btn:hover { background: var(--accent-h); }
.pt-click-popup-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 16px; color: var(--text-muted);
  cursor: pointer; padding: 4px;
}

/* ─── Phone screen (.psc-*, .ph-*) ─── */
.ph-hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.ph-hs-dot {
  width: 14px; height: 14px;
  background: #fff;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  position: relative; z-index: 2;
  transition: transform .2s;
}
.ph-hs-dot::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: rgba(37,99,235,.4);
  animation: hsPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hsPulse {
  0%   { transform: scale(0.4); opacity: .7; }
  60%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.4); opacity: 0; }
}
.ph-hotspot:hover .ph-hs-dot {
  transform: scale(1.4);
}
.ph-hotspot:hover .ph-hs-dot::after {
  animation: none;
  opacity: 0;
}

/* Тултип */
.ph-hs-tip {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 10px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(15,23,42,.14);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  display: flex; flex-direction: column; gap: 2px;
  transition: opacity .18s ease, transform .18s ease;
}
.ph-hotspot:hover .ph-hs-tip { opacity: 1; }

/* Тултип справа */
.ph-tip-r {
  left: calc(100% + 10px);
  top: 50%; transform: translateY(-50%) scale(.9) translateX(-4px);
}
.ph-hotspot:hover .ph-tip-r { transform: translateY(-50%) scale(1) translateX(0); }

/* Тултип слева */
.ph-tip-l {
  right: calc(100% + 10px);
  top: 50%; transform: translateY(-50%) scale(.9) translateX(4px);
}
.ph-hotspot:hover .ph-tip-l { transform: translateY(-50%) scale(1) translateX(0); }

/* Тултип сверху (камера) — через inline style переопределён top/bottom, но нужны состояния */
.ph-hotspot:hover .ph-hs-tip[style] { opacity: 1; transform: translateX(-50%) scale(1) translateY(0) !important; }

.ph-tip-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ph-tip-price { font-size: 11px; color: var(--accent); font-weight: 600; }

.phone-screen {
  position: absolute; inset: 12px; z-index: 11;
  background: #f5f5f5;
  border-radius: 34px; overflow: hidden;
}
.phone-screen-icon { font-size: 52px; }
.phone-screen-text { font-size: 13px; color: rgba(255,255,255,.7); text-align: center; padding: 0 24px; line-height: 1.5; font-weight: 500; }

/* Default screen content (legacy, kept for compatibility) */
.psc-default {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  transition: opacity .5s ease;
}
.psc-default.hidden { opacity: 0; pointer-events: none; }

/* Incoming call screen */
.psc-call {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 18px 12px 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
  z-index: 12;
}
.psc-call.visible { opacity: 1; pointer-events: auto; }

.psc-call-time { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.psc-call-label { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 4px; }

.psc-call-avatar {
  position: relative;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.psc-call-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(99,102,241,.5);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: pscRing 2s ease-out infinite;
}
.psc-call-ring-1 { width: 70px; height: 70px; animation-delay: 0s; }
.psc-call-ring-2 { width: 84px; height: 84px; animation-delay: .5s; }
@keyframes pscRing {
  0%   { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(1.4); }
}
.psc-call-avatar > svg {
  width: 60px; height: 60px; border-radius: 50%;
  background: #4f46e5; padding: 14px;
  position: relative; z-index: 1;
}
.psc-call-name { font-size: 16px; font-weight: 700; color: #fff; margin-top: 4px; letter-spacing: -.01em; }
.psc-call-num  { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 2px; }

.psc-call-btns {
  display: flex; justify-content: space-around; width: 100%; margin-top: 4px;
}
.psc-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: transform .15s;
}
.psc-btn:hover { transform: scale(1.12); }
.psc-btn-label {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: rgba(255,255,255,.8); white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.psc-btn:hover .psc-btn-label { opacity: 1; }
.psc-decline { background: #ef4444; }
.psc-accept  { background: #22c55e; animation: pscAcceptPulse 1.5s ease-in-out infinite; }
@keyframes pscAcceptPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
/* форма ввода телефона после ответа */
.psc-phone-form {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; padding: 0 12px; margin-top: 10px;
  animation: pscFadeIn .3s ease;
}
@keyframes pscFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.psc-phone-input {
  width: 100%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; color: #fff; font-size: 13px; text-align: left;
  padding: 8px 14px; outline: none; box-sizing: border-box;
}
.psc-phone-input::placeholder { color: rgba(255,255,255,.4); }
.psc-phone-submit {
  width: 100%; background: #22c55e; border: none; border-radius: 10px;
  color: #fff; font-size: 12px; font-weight: 600; padding: 8px 10px;
  cursor: pointer; transition: background .2s;
}
.psc-phone-submit:hover { background: #16a34a; }

/* ── Chat screen ── */
.psc-chat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #f5f5f5;
  border-radius: inherit;
  transition: opacity .5s ease;
  z-index: 11;
}
.psc-chat.hidden { opacity: 0; pointer-events: none; }
.psc-chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #1d1d1f; color: #fff;
  border-radius: 34px 34px 0 0;
  flex-shrink: 0;
}
.psc-chat-avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.psc-chat-name-sm { font-size: 11px; font-weight: 600; line-height: 1.2; }
.psc-chat-status { font-size: 9px; color: #34c759; line-height: 1.2; }
.psc-chat-messages {
  flex: 1; overflow-y: auto; padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  scrollbar-width: none;
}
.psc-chat-messages::-webkit-scrollbar { display: none; }
.psc-chat-bubble {
  max-width: 82%; padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  background: #fff; color: #1d1d1f;
  font-size: 11px; line-height: 1.4;
  align-self: flex-start;
  animation: chatBubbleIn .3s ease;
  word-break: break-word;
}
.psc-chat-bubble--user {
  background: #007aff; color: #fff;
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
}
@keyframes chatBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.psc-chat-time {
  font-size: 8px; color: #86868b; margin-top: 1px;
  align-self: flex-start;
}
.psc-chat-time--user { align-self: flex-end; }
.psc-chat-typing {
  font-size: 10px; color: #86868b; padding: 4px 10px;
  align-self: flex-start;
}
.psc-chat-typing span {
  display: inline-block; animation: typingDot 1.2s infinite;
}
.psc-chat-typing span:nth-child(2) { animation-delay: .2s; }
.psc-chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.psc-chat-input-wrap {
  display: flex; gap: 4px; padding: 6px 8px;
  border-top: 1px solid #e8e8ed;
  background: #fff;
  border-radius: 0 0 34px 34px;
  flex-shrink: 0;
}
.psc-chat-input {
  flex: 1; border: 1px solid #e8e8ed; border-radius: 14px;
  padding: 5px 10px; font-size: 10px; outline: none;
  background: #f5f5f5; color: #1d1d1f;
  min-width: 0;
}
.psc-chat-input::placeholder { color: #aeaeb2; }
.psc-chat-input:focus { border-color: var(--accent); }
.psc-chat-send {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.psc-chat-send:hover { background: var(--accent-h); }

/* ── Home screen ── */
.psc-home {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: inherit;
  z-index: 11;
  transition: opacity .4s ease;
  overflow: hidden;
}
.psc-home.hidden { opacity: 0; pointer-events: none; }
.psc-home-status {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 8px; color: #fff;
}
.psc-home-time { font-size: 28px; font-weight: 300; letter-spacing: 1px; line-height: 1; }
.psc-home-date { font-size: 9px; color: rgba(255,255,255,.6); margin-top: 2px; }
.psc-home-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 0; padding: 6px 10px;
  align-content: start;
  min-height: 200px;
}
.psc-app {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: appIn .3s ease both;
}
.psc-app:nth-child(1) { animation-delay: .05s; }
.psc-app:nth-child(2) { animation-delay: .1s; }
.psc-app:nth-child(3) { animation-delay: .15s; }
.psc-app:nth-child(4) { animation-delay: .2s; }
.psc-app:nth-child(5) { animation-delay: .25s; }
.psc-app:nth-child(6) { animation-delay: .3s; }
.psc-app:nth-child(7) { animation-delay: .35s; }
.psc-app:nth-child(8) { animation-delay: .4s; }
.psc-app:nth-child(9) { animation-delay: .45s; }
.psc-app:nth-child(10) { animation-delay: .5s; }
.psc-app:nth-child(11) { animation-delay: .55s; }
.psc-app:nth-child(12) { animation-delay: .6s; }
@keyframes appIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.psc-app-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .15s;
}
.psc-app:active .psc-app-icon { transform: scale(.9); }
.psc-app-icon svg { width: 22px; height: 22px; }
.psc-app-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 14px; height: 14px; border-radius: 7px;
  background: #ff3b30; color: #fff;
  font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid #1a1a2e;
}
.psc-app-name {
  font-size: 8px; color: rgba(255,255,255,.85);
  text-align: center; line-height: 1.1;
  max-width: 56px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.psc-home-dock {
  display: flex; justify-content: center; gap: 14px;
  padding: 6px 12px 10px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 0 0 34px 34px;
  flex-shrink: 0;
}
.psc-home-dock .psc-app { animation-delay: 0s; }
.psc-home-dock .psc-app-name { display: none; }

/* ── App views ── */
.psc-app-view {
  position: absolute; inset: 0; z-index: 15;
  display: none; flex-direction: column;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: inherit;
  color: #fff;
  animation: pscViewIn .3s ease;
}
.psc-app-view[style*="display: flex"], .psc-app-view.visible { display: flex; }
@keyframes pscViewIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.psc-app-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px; flex-shrink: 0;
}
.psc-app-back {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.psc-app-back:hover { background: rgba(255,255,255,.25); }
.psc-app-title { font-size: 14px; font-weight: 600; }

.psc-app-content {
  flex: 1; overflow-y: auto; padding: 8px 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.psc-app-content::-webkit-scrollbar { display: none; }

/* Address cards */
.psc-addr-card {
  background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px;
}
.psc-addr-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.psc-addr-line { font-size: 10px; color: rgba(255,255,255,.6); }
.psc-addr-metro { font-size: 10px; margin-top: 4px; }
.psc-addr-hours { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Price rows */
.psc-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: rgba(255,255,255,.08); border-radius: 8px;
  font-size: 11px;
}
.psc-price-val { font-weight: 700; color: #34c759; white-space: nowrap; }
.psc-price-note { font-size: 10px; color: rgba(255,255,255,.4); text-align: center; margin-top: 4px; }

/* Review cards */
.psc-review-card {
  background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px;
}
.psc-review-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.psc-review-name { font-size: 11px; font-weight: 600; }
.psc-review-stars { font-size: 10px; color: #FFD60A; }
.psc-review-text { font-size: 10px; color: rgba(255,255,255,.75); line-height: 1.4; }

/* Contact rows */
.psc-contact-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 6px;
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}
.psc-contact-row:last-child { border-bottom: none; }
.psc-contact-row span:first-child { color: rgba(255,255,255,.5); white-space: nowrap; padding-top: 1px; }
.psc-contact-row span:last-child, .psc-contact-row a { text-align: right; word-break: break-word; overflow-wrap: anywhere; max-width: 60%; }
.psc-contact-row a { color: #0a84ff; text-decoration: none; }

/* App action buttons */
.psc-app-btn {
  display: block; text-align: center; padding: 10px 16px;
  background: #0a84ff; color: #fff; border-radius: 10px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  margin-top: 8px; transition: background .2s;
}
.psc-app-btn:hover { background: #0077ed; }
.psc-app-btn--outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
}
.psc-app-btn--outline:hover { background: rgba(255,255,255,.1); }
.psc-review-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

/* Trade-in view */
.psc-tradein-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 12px 0 8px; gap: 8px;
}
.psc-tradein-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(52,199,89,.15); display: flex; align-items: center; justify-content: center; }
.psc-tradein-title { font-size: 14px; font-weight: 700; }
.psc-tradein-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(255,255,255,.08); border-radius: 8px;
  font-size: 11px;
}
.psc-tradein-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,199,89,.2); color: #34c759;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.psc-tradein-note { font-size: 10px; color: rgba(255,255,255,.4); text-align: center; margin-top: 4px; }

/* Watermark */
.psc-home-watermark {
  position: absolute; bottom: 55px; left: 0; right: 0;
  text-align: center; font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.12); pointer-events: none;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ── Notification banner ── */
.psc-notif {
  position: absolute; top: 40px; left: 8px; right: 8px; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: notifSlide .4s ease;
  cursor: pointer;
  transition: opacity .3s, transform .3s;
}
.psc-notif.dismissing { opacity: 0; transform: translateY(-20px); }
@keyframes notifSlide { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.psc-notif-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psc-notif-icon svg { width: 14px; height: 14px; }
.psc-notif-body { flex: 1; min-width: 0; }
.psc-notif-app { font-size: 8px; font-weight: 700; color: #86868b; text-transform: uppercase; }
.psc-notif-text { font-size: 10px; color: #1d1d1f; line-height: 1.3; }

/* ── Chat back button ── */
.psc-chat-back {
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 4px; margin-right: 2px;
  display: flex; align-items: center; justify-content: center;
  opacity: .8; transition: opacity .2s;
}
.psc-chat-back:hover { opacity: 1; }

/* ── Lead form in chat ── */
.psc-chat-lead-form {
  max-width: 88%; padding: 10px;
  border-radius: 12px 12px 12px 4px;
  background: #fff; color: #1d1d1f;
  align-self: flex-start;
  animation: chatBubbleIn .3s ease;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid #e8e8ed;
}
.psc-lead-label { font-size: 10px; font-weight: 600; color: #1d1d1f; }
.psc-lead-input {
  width: 100%; border: 1px solid #e8e8ed; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; outline: none;
  text-align: left; color: #1d1d1f; background: #f5f5f5;
  box-sizing: border-box;
}
.psc-lead-input:focus { border-color: var(--accent); }
.psc-lead-submit {
  width: 100%; background: #22c55e; border: none; border-radius: 8px;
  color: #fff; font-size: 11px; font-weight: 600; padding: 7px;
  cursor: pointer; transition: background .2s;
}
.psc-lead-submit:hover { background: #16a34a; }

/* Phone vibrate on incoming call */
@keyframes phoneVibrate {
  0%,100% { transform: translateX(0)   rotate(0deg); }
  15%     { transform: translateX(-4px) rotate(-1deg); }
  30%     { transform: translateX(4px)  rotate(1deg); }
  45%     { transform: translateX(-3px) rotate(-.5deg); }
  60%     { transform: translateX(3px)  rotate(.5deg); }
  75%     { transform: translateX(-2px) rotate(0deg); }
  90%     { transform: translateX(2px)  rotate(0deg); }
}
.phone-frame.ringing {
  animation: phoneVibrate .35s ease-in-out 2;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 90px; height: 26px;
  background: #1e40af; border-radius: 0 0 18px 18px;
}

/* ─── 5.7: PRICE TOOLTIP ─── */
.pt-price { position: relative; }
.pt-tooltip {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--sh-md);
  padding: 12px 14px; min-width: 220px; max-width: 260px; z-index: 100;
  font-size: 13px; line-height: 1.5; color: var(--text-2);
  pointer-events: none; white-space: normal;
  animation: tooltipIn .15s ease;
}
.pt-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface);
}
.pt-tooltip.show { display: block; }
.pt-tooltip-title {
  font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 13px;
}
.pt-tooltip-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.pt-tooltip-row svg { flex-shrink: 0; color: var(--accent); }
.pt-tooltip-footer {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; font-size: 12px; color: var(--text-muted);
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── 5.8: PRICE TABLE — LOAD MORE + CLICKABLE CELLS ─── */
.pt-load-more-wrap { text-align: center; margin: 12px 0 4px; }
.pt-load-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: var(--bg); border: 1.5px solid var(--border);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.pt-load-more:hover { color: var(--accent); border-color: var(--accent); }
.pt-load-more svg { transition: transform .2s; }
.pt-load-more:hover svg { transform: rotate(180deg); }

.pt-price a {
  color: var(--text-muted); text-decoration: none;
  transition: color .15s;
}
.pt-price a:hover { color: var(--accent); }

/* ─── COURIER MODAL ADDRESS ─── */
.f-addr-confirm {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent-l); border: 1px solid var(--accent-l2);
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.f-addr-confirm svg { flex-shrink: 0; }

/* ─── PHONE STATUS VIEW ─── */
.psc-status-search { display: flex; gap: 6px; }
.psc-status-input {
  flex: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 11px;
  color: #fff; outline: none; min-width: 0; transition: border-color .2s;
}
.psc-status-input::placeholder { color: rgba(255,255,255,.35); }
.psc-status-input:focus { border-color: rgba(255,255,255,.5); }
.psc-status-btn {
  background: #0a84ff; color: #fff; border: none; border-radius: 8px;
  padding: 8px 10px; font-size: 11px; font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: background .2s;
}
.psc-status-btn:hover { background: #0077ed; }
.psc-status-result { display: flex; flex-direction: column; gap: 6px; }
.psc-status-badge-row { display: flex; }
.psc-status-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 700; border: 1.5px solid currentColor;
}
.psc-status-device { font-size: 12px; font-weight: 600; }
.psc-status-timeline { display: flex; flex-direction: column; gap: 4px; }
.psc-st-step {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(255,255,255,.07); border-radius: 7px; padding: 5px 8px;
}
.psc-st-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  font-size: 8px; flex-shrink: 0; margin-top: 1px;
}
.psc-st-dot.done { background: rgba(52,199,89,.25); color: #34c759; }
.psc-st-dot.active { background: rgba(10,132,255,.25); color: #0a84ff; }
.psc-st-info { display: flex; flex-direction: column; gap: 1px; }
.psc-st-name { font-size: 10px; font-weight: 500; }
.psc-st-time { font-size: 9px; color: rgba(255,255,255,.45); }
.psc-status-updated { font-size: 9px; color: rgba(255,255,255,.35); text-align: right; }

/* Uslugi page cards */
.uslugi-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,96,210,.1); }

/* ModelSpecsBadges */
.specs-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.specs-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 10px;
  background: var(--bg-card, #f5f7fa); border: 1px solid var(--border, #e8ecf0);
  min-width: 72px; text-align: center;
}
.specs-badge__label { font-size: 11px; color: var(--text-muted, #8a9ab5); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.specs-badge__value { font-size: 14px; font-weight: 700; color: var(--text, #1a2332); margin-top: 2px; }
.section--compact { padding-top: 0 !important; padding-bottom: 12px !important; }
