/* ================== RESET ================== */
*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;background:#fff;line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:1100px;margin:auto;padding:0 18px}
html{scroll-behavior:smooth}

/* ================== HEADER ================== */
header{position:sticky;top:0;z-index:50;background:linear-gradient(135deg,#ff5a3d,#ff458b)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;position:relative}
.logo img{height:40px;width:auto}

nav{display:flex;gap:18px;align-items:center}
nav a{font-size:14px;color:#fff;opacity:.9;transition:opacity .2s}
nav a:hover{opacity:1}

.hamburger{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;z-index:60}
.hamburger span{width:26px;height:3px;background:#fff;border-radius:2px;transition:transform .3s ease, opacity .3s ease}

/* ================== HERO ================== */
.hero{background:linear-gradient(135deg,#ff5a3d,#ff2f7d);color:#fff;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center;padding:64px 0 60px}
.hero h1{font-size:44px;font-weight:900;line-height:1.15;margin-bottom:22px}
.hero p{font-size:18px;opacity:.95;margin-bottom:24px}

/* store buttons (центр) */
.store-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:420px;margin:28px auto 32px}
.store-badge{border-radius:12px;transition:transform .25s ease, box-shadow .25s ease;will-change:transform}
.store-badge:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.18)}
.store-badge img{width:100%;height:auto;border-radius:12px}

/* main button (центр) */
.btn{
  display:flex;justify-content:center;align-items:center;
  margin:12px auto 0;padding:14px 22px;width:fit-content;
  border-radius:15px;font-weight:700;font-size:18px;
  background:linear-gradient(135deg,#592e2e,#a71811);color:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.25);
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(0,0,0,.28)}

/* hero image */
.hero-image{position:relative;margin-left:auto;margin-top:-82px;width:min(420px,42vw);aspect-ratio:4/5}
.hero-phone{
  width:100%;height:100%;object-fit:contain;
  filter:brightness(1.06) drop-shadow(0 40px 80px rgba(0,0,0,.35));
  animation:phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@supports (-webkit-mask-image: linear-gradient(#000,#000)){
  .hero-phone{
    -webkit-mask-image:
      linear-gradient(to top, transparent 0%, #000 36%),
      linear-gradient(to left, transparent 0%, #000 28%),
      linear-gradient(to right, transparent 0%, #000 28%);
    -webkit-mask-size:100% 100%;
    -webkit-mask-repeat:no-repeat;
    -webkit-mask-position:bottom,right,left;
    -webkit-mask-composite:source-in;
  }
}

/* ================== PERFORMANCE: ниже первого экрана ================== */
.section{
  padding:90px 0;
  content-visibility:auto;
  contain-intrinsic-size: 900px;
}

/* headings */
.section-head{margin-bottom:26px}
.section-head.center{text-align:center}
.section-head h2{font-size:34px;line-height:1.2;margin-bottom:10px}

/* subtext centered */
.section-sub{
  max-width:720px;
  margin:0 auto;
  text-align:center;
  opacity:.75;
  font-size:16px;
}

/* ================== FEATURES ================== */
.features{
  background:
    radial-gradient(1100px 280px at 50% 0%, rgba(255,90,61,.10), rgba(255,255,255,0) 70%),
    #fff;
}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature{
  display:flex;gap:14px;align-items:flex-start;
  background:rgba(255,255,255,.92);
  border-radius:22px;padding:22px;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}
.feature:hover{transform:translateY(-6px);box-shadow:0 22px 60px rgba(0,0,0,.12)}
.feature-icon{
  width:44px;height:44px;display:grid;place-items:center;
  border-radius:14px;background:rgba(255,90,61,.10);
  font-size:20px;flex:0 0 44px;
}
.feature-body h3{font-size:16px;margin-bottom:4px}
.feature-body p{font-size:14px;opacity:.78}

/* ================== INSTALL ================== */
.install{
  background:
    radial-gradient(1100px 280px at 50% 0%, rgba(255,47,125,.08), rgba(255,255,255,0) 70%),
    #fff;
  scroll-margin-top:90px;
}
.install-card{
  margin-top:18px;
  display:grid;grid-template-columns:1fr 1.2fr;
  gap:18px;align-items:start;
  background:rgba(255,255,255,.92);
  border-radius:26px;padding:22px;
  box-shadow:0 18px 60px rgba(0,0,0,.10);
}
.install-steps{padding:6px 6px 6px 10px}
.install-steps ol{margin-left:18px}
.install-steps li{margin:10px 0;font-size:15px}
.install-note{margin-top:10px;opacity:.7;font-size:14px}

/* video */
.video-wrap{
  border-radius:18px;overflow:hidden;background:#000;
  box-shadow:0 18px 50px rgba(0,0,0,.10);
}
.video-instruction{width:100%;height:auto;display:block}

/* ================== FOOTER ================== */
footer{background:#111;color:#bbb;margin-top:30px;padding:20px 0}
.footer-inner{display:flex;justify-content:space-between;gap:30px;padding:20px;flex-wrap:wrap}
.footer-bottom{border-top:1px solid #222;text-align:center;padding:14px 0;font-size:13px}

/* ================== MOBILE ================== */
@media(max-width:900px){
  .hamburger{display:flex}

  nav{
    position:absolute;top:64px;left:0;width:100%;
    flex-direction:column;
    background:linear-gradient(135deg,#ff5a3d,#ff2f7d);
    max-height:0;overflow:hidden;
    transition:max-height .35s ease, padding .35s ease;
    padding:0;
  }
  nav.show{max-height:500px;padding:10px 0}
  nav a{padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.2);font-size:16px}

  .hero-inner{grid-template-columns:1fr;text-align:center;padding:92px 0 60px;gap:32px}
  .hero h1{font-size:28px}
  .hero p{font-size:16px}

  .hero-image{margin:10px auto 0;width:82vw}
  .btn{width:calc(100% - 32px);font-size:16px}

  .section{padding:60px 0}
  .section-head h2{font-size:26px}

  .features-grid{grid-template-columns:1fr}
  .install-card{grid-template-columns:1fr;padding:16px}
  .install-steps{padding:0 6px}
}

/* ================== REDUCED MOTION ================== */
@media (prefers-reduced-motion: reduce){
  .hero-phone{animation:none}
  html{scroll-behavior:auto}
}
/* ===== MOBILE TEXT SPACING FIX ===== */
@media (max-width: 900px) {
  .hero p {
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 0 14px;
    line-height: 1.6;
  }
}
@media (max-width: 900px) {
  .hero p {
    opacity: 0.92;
  }
}