/* Главная: экран-герой с живой примеркой, плитки разделов, блок доверия. */

.hero { padding: 40px 0 10px; }
.hero-in {
  display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: center;
}
.hero-txt { max-width: 540px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 17.5px; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-facts {
  list-style: none; display: flex; gap: 30px; margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-facts b { display: block; font-size: 15px; }
.hero-facts span { font-size: 13px; color: var(--muted); }

/* примерка в герое */
.hero-fit {
  background: var(--surface); border-radius: var(--r-xl); padding: 18px;
  box-shadow: var(--shadow);
}
/* Кадр вертикальный (440×859): телефон должен помещаться целиком, иначе от примерки
   остаётся крупный план камеры и смысл теряется. */
.fit-stage {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 16px 0;
}
.fit-stage img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  animation: fitFade .32s ease;
}
@keyframes fitFade { from { opacity: .35; } to { opacity: 1; } }
.fit-controls { padding: 16px 6px 4px; display: grid; gap: 14px; }
.fit-row { display: flex; align-items: center; gap: 14px; }
.fit-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); width: 62px; flex: none;
}
.fit-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.fit-body {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid transparent;
  background: #fff; font-size: 13.5px; font-weight: 500; transition: border-color .15s;
}
.fit-body:hover { border-color: var(--line-2); }
.fit-body.is-on { border-color: var(--ink); font-weight: 600; }
.fit-color {
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: inset 0 0 0 2px #fff; transition: transform .15s, box-shadow .15s;
}
.fit-color:hover { transform: scale(1.1); }
.fit-color.is-on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink); }
.fit-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 14px; border-top: 1px solid var(--line); margin-top: 2px;
}
.fit-name { font-size: 14px; color: var(--muted); }
.fit-price { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }

/* плитки разделов */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; border-radius: var(--r-xl); background: var(--tile); overflow: hidden;
  min-height: 216px; padding: 24px; display: flex; flex-direction: column; justify-content: end;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.tile:hover { transform: translateY(-3px); }
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; min-height: 260px; }
.tile:nth-child(1) { grid-column: span 2; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  object-position: right center; padding: 22px 4% 22px 42%; mix-blend-mode: multiply;
}
.tile-txt { position: relative; max-width: 58%; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: 13.5px; color: var(--muted); }
.tile-go { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--hl); }

/* доверие */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust article {
  background: var(--surface); border-radius: var(--r-lg); padding: 24px 22px;
}
.trust h3 { font-size: 17px; margin-bottom: 8px; }
.trust p { font-size: 14px; color: var(--muted); }
.trust a { color: var(--hl); font-weight: 600; }

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .hero-fit { max-width: 560px; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 22px 0 0; }
  .hero-sub { font-size: 16px; }
  .hero-facts { gap: 20px; margin-top: 26px; }
  .hero-cta .btn { flex: 1; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(1), .tile:nth-child(2) { grid-column: span 1; min-height: 180px; }
  .tile img { padding: 16px 4% 16px 46%; }
  .tile-txt { max-width: 60%; }
  .trust { grid-template-columns: 1fr; }
  .fit-label { width: 54px; }
}
