/* Xiaomi Store — lightweight, responsive styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --orange: #ff6900;
  --orange-dark: #e85d00;
  --ink: #191919;
  --muted: #6b6b6b;
  --paper: #f7f7f5;
  --line: #e8e8e5;
  --white: #fff;
  --shadow: 0 20px 60px rgba(20, 20, 20, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: "DM Sans", Arial, sans-serif; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ff9b5c; outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: #171717; color: #eee; font-size: 11px; letter-spacing: .04em; }
.topbar .wrap { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #ff9b5c; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid #0000000b; backdrop-filter: blur(16px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px Manrope, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: white; font: 800 20px Manrope, sans-serif; letter-spacing: -.1em; }
.navlinks { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 32px); font-size: 13px; font-weight: 700; }
.navlinks a { transition: color .2s; }
.navlinks a:hover, .footer a:hover { color: var(--orange); }
.menu { display: none; border: 0; background: transparent; padding: 9px; font-size: 25px; cursor: pointer; }
h1, h2, h3 { font-family: Manrope, sans-serif; line-height: 1.12; letter-spacing: -.055em; }
h1 { margin: 18px 0; font-size: clamp(40px, 6.2vw, 76px); }
h2 { margin: 12px 0; font-size: clamp(29px, 4vw, 46px); }
h3 { margin: 0 0 10px; font-size: 20px; }
p { margin-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.hero { position: relative; overflow: hidden; padding: 76px 0 82px; background: radial-gradient(circle at 78% 48%, #ffe9d9 0, #fff5ed 22%, transparent 46%), linear-gradient(120deg,#fff 0%,#fffaf7 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; }
.hero h1 { max-width: 650px; }
.hero p { max-width: 560px; color: #626262; font-size: 17px; line-height: 1.8; }
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: min(75%,360px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg,#ff6900,#ffbd8d); opacity: .12; animation: orbit 18s linear infinite; }
.hero-art::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border: 1px solid #ff690044; border-radius: 50%; }
.hero-art .phone { position: absolute; width: 165px; height: 315px; border: 7px solid #222; border-radius: 29px; background: linear-gradient(145deg,#ffd8bf,#ff7a2b 55%,#292929); box-shadow: var(--shadow); transform: rotate(-11deg) translateX(-54px); z-index: 2; animation: float 6s ease-in-out infinite; }
.hero-art .phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 50px; height: 8px; border-radius: 8px; background: #222; transform: translateX(-50%); }
.hero-art .phone.two { width: 155px; height: 295px; transform: rotate(12deg) translateX(75px); background: linear-gradient(140deg,#e7e7e7,#a6b4c2 48%,#f5f5f5); animation-delay: -2s; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; min-height: 46px; border: 1px solid var(--orange); border-radius: 999px; background: var(--orange); color: white; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-3px); background: var(--orange-dark); box-shadow: 0 10px 24px #ff690033; }
.btn.secondary { background: transparent; color: var(--ink); border-color: #d7d7d2; }
.btn.secondary:hover { border-color: var(--orange); color: var(--orange-dark); box-shadow: none; }
.section { padding: 82px 0; }
.section.soft { background: var(--paper); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product:hover { transform: translateY(-6px); border-color: #ffb17d; box-shadow: var(--shadow); }
.product-art { min-height: 220px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#fafafa,#f0efed); position: relative; }
.product-art .device { width: 105px; height: 185px; border: 6px solid #242424; border-radius: 22px; background: linear-gradient(145deg,#ffdfc8,#ff6900 65%,#343434); box-shadow: 0 15px 30px #0002; }
.product-art .device.tv { width: 210px; height: 130px; border-width: 5px; border-radius: 8px; background: linear-gradient(135deg,#17212b,#606d7b,#13171b); }
.product-art .device.tab { width: 155px; height: 190px; border-radius: 17px; background: linear-gradient(135deg,#e4e5e6,#858f99); }
.product-art .device.watch { width: 78px; height: 92px; border: 10px solid #222; border-radius: 24px; background: #ff8b42; }
.product > div:last-child { padding: 23px; }
.product p { color: var(--muted); font-size: 13px; margin-bottom: 13px; }
.textlink { color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.band { padding: 40px 0; background: #171717; color: white; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.band h2 { font-size: clamp(26px,3vw,36px); margin-bottom: 0; }
.page-hero { padding: 66px 0 54px; background: radial-gradient(circle at 85% 20%,#ffeadc,transparent 35%),#faf9f7; }
.page-hero h1 { font-size: clamp(36px,5vw,58px); }
.page-hero p { max-width: 680px; }
.content { max-width: 850px; padding-top: 52px; padding-bottom: 80px; }
.content h2 { font-size: 28px; margin-top: 38px; }
.content h3 { margin-top: 26px; }
.content p, .content li { color: #555; }
.content ul { padding-left: 22px; }
.notice { background: #fff3e9; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; padding: 16px 18px; color: #694a36; font-size: 13px; }
.center { text-align: center; }
.spacer { margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.contact-grid > div { padding: 30px; border-radius: 22px; background: var(--paper); }
.contact-grid .contact-row { padding: 15px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-row small { display: block; color: var(--muted); margin-bottom: 4px; }
.contact-form label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px; border: 1px solid #ddd; border-radius: 11px; background: white; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #ffb17d; border-color: var(--orange); }
.form-note, .small { font-size: 11px; color: #777; }
.footer { background: #171717; color: white; padding: 52px 0 18px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.5fr; gap: 40px; padding-bottom: 32px; }
.footer-top p { color: #aaa; font-size: 12px; overflow-wrap: anywhere; }
.footer-top h3 { font-size: 14px; letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 20px 0; border-top: 1px solid #383838; border-bottom: 1px solid #383838; font-size: 12px; }
.copyright { padding-top: 18px; color: #999; font-size: 11px; }
.copyright .small { display: block; margin-top: 7px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes orbit { to { rotate: 360deg; } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 600px); }
  .nav { min-height: 68px; }
  .menu { display: block; }
  .navlinks { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0; padding: 80px 28px 30px; background: white; font-size: 18px; transform: translateX(100%); transition: transform .3s ease; }
  .navlinks.open { transform: translateX(0); }
  .navlinks a { padding: 16px 0; border-bottom: 1px solid #eee; }
  .hero { padding: 54px 0 42px; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { min-height: 320px; }
  .hero-art .phone { transform: rotate(-11deg) translateX(-40px) scale(.88); }
  .hero-art .phone.two { transform: rotate(12deg) translateX(55px) scale(.88); }
  .section { padding: 62px 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-art { min-height: 170px; }
  .product > div:last-child { padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .band .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .topbar .wrap { align-items: flex-start; flex-direction: column; gap: 0; padding: 7px 0; }
  .grid { grid-template-columns: 1fr; }
  .product-art { min-height: 210px; }
  h1 { font-size: 39px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
