/* Лендинг Snap Case MOVAS для iPhone 17.
   Стили только этой страницы; переменные и базовые классы - из style.css. */

.c17 { --pad: clamp(64px, 9vw, 130px); }

/* появление блоков при скролле; без JS и при prefers-reduced-motion - сразу видно */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- Хиро ---------- */
.c17-hero {
  position: relative; min-height: min(880px, calc(100vh - 64px));
  display: flex; align-items: flex-end; overflow: hidden; background: #2a1b1b;
}
.c17-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 42%;
}
/* два слоя: сверху-вниз для шапки и фактов, слева-направо - чтобы заголовок
   читался поверх светлого чехла */
.c17-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,10,10,.72) 0%, rgba(20,10,10,.34) 46%, rgba(20,10,10,0) 78%),
    linear-gradient(180deg, rgba(20,10,10,.5) 0%, rgba(20,10,10,.1) 30%, rgba(20,10,10,.72) 100%);
}
/* боковой отступ - как у .wrap: своим padding его легко затереть и прижать текст к краю */
.c17-hero-in { position: relative; z-index: 2; width: 100%; padding: 0 24px clamp(44px, 6vw, 84px); color: #fff; }
.c17-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.82); margin-bottom: 18px;
}
.c17-hero h1 {
  font-size: clamp(38px, 6.6vw, 82px); line-height: 1.03; letter-spacing: -.035em;
  max-width: 15ch; text-wrap: balance;
}
.c17-hero h1 span { display: block; color: rgba(255,255,255,.72); }
.c17-hero-sub {
  margin-top: 20px; max-width: 46ch; font-size: clamp(15.5px, 1.5vw, 19px);
  color: rgba(255,255,255,.88); line-height: 1.5;
}
.c17-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1ede7; }
.btn-ondark { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ondark:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.c17-facts {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px); margin-top: 38px;
  list-style: none; border-top: 1px solid rgba(255,255,255,.22); padding-top: 22px;
}
.c17-facts b { display: block; font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -.02em; }
.c17-facts span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- Общие блоки ---------- */
.c17-sec { padding: var(--pad) 0; }
.c17-sec-dark { background: var(--ink); color: #fff; }
.c17-sec-soft { background: var(--surface); }
.c17-head { max-width: 760px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.c17-head.left { margin-left: 0; text-align: left; }
.c17-head h2 {
  font-size: clamp(29px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.c17-head p {
  margin-top: 16px; font-size: clamp(15.5px, 1.6vw, 18.5px); color: var(--muted); line-height: 1.55;
}
.c17-sec-dark .c17-head p { color: rgba(255,255,255,.68); }
.c17-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hl); margin-bottom: 14px;
}

.c17-figure { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.c17-figure img { width: 100%; height: 100%; object-fit: cover; }
.c17-cap { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.c17-sec-dark .c17-cap { color: rgba(255,255,255,.66); }

/* Материал: текст слева, вертикальное фото справа */
.c17-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.c17-split .c17-figure { aspect-ratio: 3 / 4; }
.c17-note { margin-top: 26px; display: grid; gap: 14px; }
.c17-note li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.c17-note li b { flex: 0 0 auto; color: var(--hl); }

/* Испытания */
.c17-tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.c17-test { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.c17-sec-soft .c17-test { border-color: transparent; }
.c17-test-img { aspect-ratio: 4 / 3; background: var(--surface-2); }
.c17-test-img img { width: 100%; height: 100%; object-fit: cover; }
.c17-test-body { padding: clamp(20px, 2.6vw, 30px); }
.c17-test-body h3 { font-size: clamp(19px, 2vw, 24px); }
.c17-test-body p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Подбор цвета ---------- */
.c17-phone-switch {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; width: fit-content; margin: 0 auto clamp(30px, 4vw, 46px);
}
.c17-phone-btn {
  display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background .18s ease, color .18s ease;
}
.c17-phone-btn i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.c17-phone-btn.on { background: var(--ink); color: #fff; }
.c17-phone-btn small { font-weight: 400; opacity: .7; }

.c17-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.c17-color {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 12px 16px; text-align: center; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.c17-color:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.c17-color img { width: 100%; max-width: 168px; margin: 0 auto 10px; }
.c17-color b { display: block; font-size: 14.5px; font-weight: 600; }
.c17-color span { font-size: 12.5px; color: var(--muted); }
.c17-colors-fine { margin-top: 22px; text-align: center; }

/* ---------- Camera Control ---------- */
.c17-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 34px); }
.c17-duo .c17-figure { aspect-ratio: 4 / 3; }
.c17-wide { border-radius: var(--r-lg); overflow: hidden; }
.c17-wide img { width: 100%; display: block; }

/* ---------- Ремешок (тёмная секция) ---------- */
.c17-lanyard { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 4vw, 62px); align-items: center; }
.c17-lanyard .c17-figure { background: #000; }
.c17-lanyard-life { aspect-ratio: 3 / 4; }

/* ---------- Экосистема ---------- */
.c17-eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.c17-eco-card { text-align: center; }
/* Официальные кадры MOFT сняты на разном фоне (часть - на чёрном), поэтому фото
   заполняет плитку целиком: фон карточки не проглядывает и разнобой не читается. */
.c17-eco-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 14px;
}
.c17-eco-card b { font-size: 15px; font-weight: 600; }
.c17-eco-card span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.c17-sec-dark .c17-eco-card span { color: rgba(255,255,255,.6); }

/* ---------- Брендирование (B2B) ---------- */
.c17-brand { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 66px); align-items: center; }
.c17-brand .c17-figure { aspect-ratio: 4 / 5; }
.c17-steps { display: grid; gap: 16px; margin: 26px 0 30px; }
.c17-step { display: flex; gap: 14px; align-items: flex-start; }
.c17-step i {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; font-style: normal;
}
.c17-step b { display: block; font-size: 16px; }
.c17-step p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Финальный CTA ---------- */
.c17-final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.c17-final .c17-figure { aspect-ratio: 4 / 5; }
.c17-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.c17-price b { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.c17-price span { color: var(--muted); font-size: 14.5px; }
.c17-spec { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.c17-sec-dark .c17-spec { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.66); }

/* ---------- Липкая панель заказа на мобильных ---------- */
.c17-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.c17-sticky .btn { flex: 1; padding: 12px 14px; font-size: 14.5px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .c17-split, .c17-lanyard, .c17-brand, .c17-final { grid-template-columns: 1fr; }
  .c17-eco { grid-template-columns: repeat(2, 1fr); }
  .c17-split .c17-figure, .c17-brand .c17-figure, .c17-final .c17-figure { aspect-ratio: 4 / 3; }
  .c17-lanyard-life { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .c17-hero { min-height: 88vh; }
  .c17-tests, .c17-duo { grid-template-columns: 1fr; }
  .c17-colors { grid-template-columns: repeat(2, 1fr); }
  .c17-phone-switch { width: 100%; justify-content: stretch; }
  .c17-phone-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13.5px; }
  .c17-phone-btn small { display: none; }
  .c17-sticky { display: flex; }
  .c17-final-body { padding-bottom: 64px; }
}
