/* ============================================================
   Общие компоненты: реалистичная рамка iPhone 17 Pro Max
   + иконки-плитки в стиле «Мой Дом» (без эмодзи).
   Подключается и на лендинге, и в макетах moidom/.
   ============================================================ */

/* ---------- iPhone 17 Pro Max ---------- */
.iphone {
  --screen-w: 330px;
  width: var(--screen-w);
  aspect-ratio: 1320 / 2868;
  position: relative;
  border-radius: 64px;
  padding: 13px;
  background:
    linear-gradient(150deg, #5b6168 0%, #2c3137 18%, #41474e 32%, #23272c 55%, #4a5057 78%, #20242a 100%);
  box-shadow:
    inset 0 0 2px 1px rgba(255,255,255,.45),
    inset 0 0 0 6px #0c0d10,
    0 1px 1px rgba(255,255,255,.20),
    0 60px 120px -20px rgba(0,0,0,.55),
    0 30px 60px -30px rgba(0,0,0,.45);
  isolation: isolate;
}
/* титановые боковые кнопки */
.iphone::after {
  content: "";
  position: absolute; left: -2px; top: 23%;
  width: 3px; height: 64px; border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg,#6a7178,#3c4147);
  box-shadow: 0 96px 0 #4a5057, 0 168px 0 0 #4a5057;
}
.iphone .power {
  position: absolute; right: -2px; top: 30%;
  width: 3px; height: 96px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg,#6a7178,#3c4147);
}
.iphone .scr {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 51px;
  overflow: hidden;
  background: #f2f4f6;
  z-index: 2;
}
/* Dynamic Island */
.iphone .island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 35%; height: 30px; background: #000; border-radius: 18px;
  z-index: 20; pointer-events: none;
}
.iphone .island::after { /* камера */
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #28323b 0 35%, #060708 60%);
  box-shadow: inset 0 0 0 1px rgba(80,120,160,.25);
}
/* лёгкий блик на стекле */
.iphone .scr::before {
  content: ""; position: absolute; inset: 0; z-index: 15; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 22%);
}

/* ---------- Иконки-плитки сервисов (как в «Мой Дом») ---------- */
.svc {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
}
.svc svg { width: 21px; height: 21px; }
.svc-tsj   { background: #eaeef3; color: #5a6b80; }
.svc-power { background: #fff3df; color: #f0a020; }
.svc-water { background: #e6f2ff; color: #2f8fed; }
.svc-gas   { background: #ffe9e2; color: #ff5a3c; }
.svc-heat  { background: #ffeede; color: #f57c1f; }
.svc-shield{ background: #e7f8ee; color: #16a34a; }
.svc-doc   { background: #eef1f5; color: #46546a; }
.svc img { width: 30px; height: 30px; object-fit: contain; }
