:root {
  --primary: #2854ff;
  --primary-dark: #1735b6;
  --secondary: #ffb703;
  --accent: #0dd3a8;
  --text: #101828;
  --muted: #667085;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --border: #e7eaf0;
  --danger: #e5484d;
  --shadow: 0 20px 50px rgba(16, 24, 40, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }

.topbar { background: #101828; color: #fff; font-size: 13px; }
.topbar-content { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231,234,240,.8);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font: 800 22px Montserrat, sans-serif;
  background: linear-gradient(135deg, var(--primary), #6f7dff);
  box-shadow: 0 8px 20px rgba(40,84,255,.25);
}
.brand-name { font: 800 21px Montserrat, sans-serif; letter-spacing: -.8px; }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #344054; font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .cart-btn, .menu-toggle, .close-btn {
  border: 0; background: var(--soft); color: var(--text);
  min-width: 42px; height: 42px; border-radius: 13px;
}
.cart-btn { display: inline-flex; gap: 7px; align-items: center; justify-content: center; padding: 0 13px; font-weight: 700; }
.cart-btn span { min-width: 20px; height: 20px; border-radius: 20px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 11px; }
.menu-toggle { display: none; font-size: 22px; }

.hero {
  overflow: hidden;
  padding: 72px 0 54px;
  background:
    radial-gradient(circle at 12% 14%, rgba(13,211,168,.16), transparent 26%),
    radial-gradient(circle at 90% 0%, rgba(40,84,255,.13), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 12px; letter-spacing: 1.8px; font-weight: 800; margin-bottom: 12px; }
.hero h1 {
  margin: 0; font: 800 clamp(42px, 6vw, 72px)/1.02 Montserrat, sans-serif;
  letter-spacing: -3px; max-width: 760px;
}
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 630px; font-size: 18px; line-height: 1.7; color: var(--muted); margin: 24px 0 30px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 14px; min-height: 50px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px rgba(40,84,255,.24); }
.primary:hover { background: var(--primary-dark); }
.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.full { width: 100%; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 21px; }
.hero-stats span { color: var(--muted); font-size: 13px; margin-top: 3px; }

.hero-card {
  position: relative; min-height: 480px; border-radius: 34px;
  padding: 28px; background: linear-gradient(145deg, #244dff, #14257a);
  color: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.floating-badge {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  background: var(--secondary); color: #372600;
  padding: 10px 14px; border-radius: 99px; font-weight: 800; font-size: 13px;
}
.hero-product-visual { position: relative; height: 320px; display: grid; place-items: center; }
.visual-circle { position: absolute; border-radius: 50%; }
.c1 { width: 270px; height: 270px; background: rgba(255,255,255,.12); }
.c2 { width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.25); }
.visual-device { font-size: 136px; filter: drop-shadow(0 24px 26px rgba(0,0,0,.25)); transform: rotate(-8deg); }
.hero-product-info { position: relative; z-index: 2; }
.hero-product-info span { color: #bfc8ff; font-size: 12px; letter-spacing: 2px; font-weight: 800; }
.hero-product-info h3 { font-size: 30px; margin: 7px 0; }
.hero-product-info p { color: #d5dcff; margin: 0; }

.categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 32px; margin-bottom: 76px; }
.category-card {
  padding: 20px; border: 1px solid var(--border); border-radius: 18px;
  display: flex; align-items: center; gap: 14px; transition: .2s;
  background: #fff; cursor: pointer;
}
.category-card:hover { border-color: #b8c4ff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.category-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 24px; }
.category-card h3 { font-size: 15px; margin: 0 0 4px; }
.category-card p { font-size: 12px; margin: 0; color: var(--muted); }

.products-section { padding: 20px 0 84px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-heading h2, .about h2, .newsletter h2, .promo-banner h2 { font: 800 clamp(30px,4vw,44px)/1.1 Montserrat,sans-serif; letter-spacing: -1.5px; margin: 0; }
.catalog-tools { display: flex; gap: 10px; }
.search-box { min-width: 260px; border: 1px solid var(--border); border-radius: 13px; height: 44px; display: flex; align-items: center; padding: 0 13px; gap: 8px; background: #fff; }
.search-box input { width: 100%; border: 0; outline: 0; }
select { border: 1px solid var(--border); border-radius: 13px; padding: 0 13px; background: #fff; color: var(--text); }
.filter-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 24px; }
.chip { white-space: nowrap; border: 1px solid var(--border); background: #fff; color: #475467; border-radius: 99px; padding: 10px 16px; font-weight: 700; font-size: 13px; }
.chip.active { background: #101828; color: #fff; border-color: #101828; }

.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-card { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; transition: .25s ease; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-media { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-emoji { font-size: 90px; filter: drop-shadow(0 20px 20px rgba(16,24,40,.14)); transition: .3s; }
.product-card:hover .product-emoji { transform: scale(1.08) rotate(-3deg); }
.product-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 99px; background: #101828; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.quick-view { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 8px 18px rgba(16,24,40,.12); }
.product-body { padding: 18px; }
.product-category { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.product-body h3 { font-size: 16px; line-height: 1.35; margin: 7px 0 9px; min-height: 44px; }
.rating { color: #f59e0b; font-size: 12px; }
.rating span { color: var(--muted); margin-left: 5px; }
.price-row { display: flex; align-items: end; gap: 8px; margin: 14px 0 16px; }
.price { font-size: 21px; font-weight: 800; }
.old-price { text-decoration: line-through; color: #98a2b3; font-size: 13px; }
.add-btn { width: 100%; border: 0; border-radius: 12px; min-height: 43px; background: var(--soft); color: var(--text); font-weight: 800; }
.add-btn:hover { background: var(--primary); color: #fff; }
.empty-state { text-align: center; padding: 70px 0; }
.empty-state div { font-size: 46px; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: var(--muted); }

.promo-banner {
  border-radius: 28px; padding: 45px 50px; color: #fff;
  background: linear-gradient(120deg, #101828, #253052);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin-bottom: 84px;
}
.eyebrow.light { color: #9ed8ff; }
.promo-banner p { color: #d0d5dd; margin-bottom: 0; }
.light-btn { background: #fff; color: #101828; min-width: 160px; }

.benefits { background: var(--soft); padding: 70px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.benefits article { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.benefits article > div { font-size: 30px; }
.benefits h3 { margin: 15px 0 7px; font-size: 16px; }
.benefits p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.about-visual { min-height: 390px; border-radius: 28px; position: relative; background: linear-gradient(145deg,#e8edff,#d7fff4); overflow: hidden; }
.about-shape { position: absolute; width: 280px; height: 280px; border-radius: 48% 52% 62% 38% / 45% 45% 55% 55%; background: linear-gradient(135deg,var(--primary),var(--accent)); left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(18deg); }
.about-card { position: absolute; bottom: 24px; right: 24px; background: #fff; border-radius: 18px; padding: 20px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.about-card strong { font-size: 28px; }
.about-card span { color: var(--muted); font-size: 13px; }
.about-copy > p { color: var(--muted); line-height: 1.8; font-size: 16px; }
.about-copy ul { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 13px; }
.about-copy li::before { content: "✓"; color: #fff; background: var(--accent); border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; margin-right: 10px; font-size: 12px; font-weight: 800; }

.newsletter { padding: 0 0 82px; }
.newsletter-box { border-radius: 24px; padding: 42px; background: #eef2ff; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.newsletter h2 { font-size: 31px; }
.newsletter form { display: flex; gap: 10px; width: min(500px,100%); }
.newsletter input { flex: 1; border: 1px solid #d8def4; border-radius: 14px; padding: 0 16px; min-height: 50px; outline: 0; }

.footer { background: #101828; color: #fff; padding: 60px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 38px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid p { color: #98a2b3; line-height: 1.7; font-size: 14px; }
.footer-grid h4 { margin: 0 0 16px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.brand) { color: #98a2b3; font-size: 14px; }
.footer-bottom { border-top: 1px solid #283044; margin-top: 45px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; color: #98a2b3; font-size: 12px; }

.overlay { position: fixed; inset: 0; background: rgba(16,24,40,.55); z-index: 89; opacity: 0; visibility: hidden; transition: .2s; }
.overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; right: 0; top: 0; z-index: 90; height: 100dvh; width: min(440px,100%);
  background: #fff; box-shadow: -20px 0 50px rgba(16,24,40,.15);
  transform: translateX(100%); transition: .3s ease;
  display: flex; flex-direction: column; padding: 24px;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: start; }
.drawer-header h2 { margin: 0; font: 800 32px Montserrat,sans-serif; }
.close-btn { font-size: 27px; }
.cart-items { flex: 1; overflow: auto; padding: 18px 0; display: grid; align-content: start; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; }
.cart-item-media { border-radius: 12px; display: grid; place-items: center; font-size: 34px; }
.cart-item h4 { margin: 2px 0 6px; font-size: 14px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 8px; }
.remove-item { border: 0; background: transparent; color: var(--danger); font-size: 16px; }
.cart-empty { flex: 1; display: grid; place-content: center; text-align: center; color: var(--muted); }
.cart-empty div { font-size: 50px; }
.cart-empty h3 { color: var(--text); margin-bottom: 4px; }
.cart-summary { border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 12px; }
.cart-summary > div { display: flex; justify-content: space-between; }
.total-row { font-size: 19px; padding-top: 10px; border-top: 1px dashed var(--border); }
.cart-summary small { color: var(--muted); text-align: center; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(16,24,40,.55); opacity: 0; visibility: hidden; transition: .2s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-card { width: min(760px,100%); max-height: 92dvh; overflow: auto; background: #fff; border-radius: 24px; padding: 28px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 18px; top: 18px; z-index: 2; }
.product-modal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.product-modal-visual { min-height: 330px; border-radius: 20px; display: grid; place-items: center; font-size: 130px; }
.product-modal-copy h2 { font: 800 34px Montserrat,sans-serif; margin: 8px 0 13px; }
.product-modal-copy p { color: var(--muted); line-height: 1.7; }
.modal-price { font-size: 29px; font-weight: 800; margin: 18px 0; }
.checkout-header { padding-right: 45px; }
.checkout-header h2 { font: 800 34px Montserrat,sans-serif; margin: 0 0 8px; }
.checkout-header p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0; }
.form-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid select { height: 46px; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; outline: 0; }
.full-field { grid-column: 1/-1; }
.checkout-total { display: flex; justify-content: space-between; padding: 17px 0; border-top: 1px solid var(--border); font-size: 19px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%,20px);
  background: #101828; color: #fff; padding: 13px 18px; border-radius: 12px;
  opacity: 0; visibility: hidden; transition: .2s; box-shadow: var(--shadow); font-size: 14px;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-card { min-height: 430px; }
  .categories, .products-grid, .benefits-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { align-items: start; flex-direction: column; }
  .catalog-tools { width: 100%; }
  .search-box { flex: 1; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .topbar-content span:last-child { display: none; }
  .menu-toggle { display: block; order: 3; }
  .nav-links {
    position: absolute; left: 16px; right: 16px; top: 82px; padding: 18px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 44px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-card { min-height: 390px; }
  .categories { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 13px; }
  .product-media { height: 175px; }
  .product-emoji { font-size: 70px; }
  .product-body { padding: 14px; }
  .product-body h3 { font-size: 14px; }
  .catalog-tools { flex-direction: column; }
  .search-box { min-width: 0; width: 100%; }
  .catalog-tools select { min-height: 44px; }
  .promo-banner { flex-direction: column; align-items: start; padding: 35px 28px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .about { gap: 35px; }
  .newsletter-box, .newsletter form { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .product-modal-layout { grid-template-columns: 1fr; }
  .product-modal-visual { min-height: 230px; font-size: 100px; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 18px; }
  .brand-mark { width: 35px; height: 35px; }
  .icon-btn { display: none; }
  .categories, .products-grid, .benefits-grid { grid-template-columns: 1fr; }
  .product-media { height: 220px; }
  .hero-card { min-height: 350px; padding: 22px; }
  .visual-device { font-size: 110px; }
  .hero-stats { gap: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
}
