:root {
  color-scheme: light;
  --bg: #eef6ff;
  --page: #f8fbff;
  --panel: #ffffff;
  --panel-soft: #eef7ff;
  --text: #102033;
  --muted: #63758c;
  --line: #d9e7f5;
  --accent: #1877f2;
  --accent-2: #4bb3ff;
  --accent-dark: #0c4fb3;
  --shadow: 0 22px 70px rgba(21, 75, 139, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(75,179,255,.22), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(24,119,242,.14), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 48%, #f9fcff 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

button, .button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(24,119,242,.2);
}

button:disabled { opacity: .45; cursor: not-allowed; }
.ghost {
  background: rgba(255,255,255,.78);
  color: var(--accent-dark);
  border: 1px solid rgba(24,119,242,.24);
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248,251,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mini-nav, .topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.mini-nav {
  height: 32px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.mini-nav nav, .locale, .brand, .main-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar {
  min-height: 68px;
  gap: 14px;
  padding-bottom: 10px;
}

.brand { font-weight: 900; min-width: max-content; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(24,119,242,.24);
}

.catalog-link, .signup {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
}

.search-shell {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(24,119,242,.08);
}

.search-shell input {
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 0 12px;
}

.search-shell button {
  min-height: 30px;
  padding: 0 14px;
  font-size: 12px;
  box-shadow: none;
}

.main-actions { margin-left: auto; color: var(--muted); font-size: 13px; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); }

.hero { padding: 46px 0 28px; }
.hero-card {
  min-height: 390px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24,119,242,.96), rgba(75,179,255,.82)),
    #1877f2;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -140px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-card .eyebrow, .hero-card p { color: rgba(255,255,255,.9); }
h1, h2 { letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; max-width: 720px; }
h2 { font-size: 24px; }
p { color: var(--muted); line-height: 1.7; }
.hero p { max-width: 690px; font-size: 17px; }
.micro { font-size: 12px; margin: 14px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.phone-preview {
  position: relative;
  z-index: 1;
  min-height: 285px;
  border: 10px solid rgba(10,38,75,.28);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(10,38,75,.22);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.phone-top span { margin-right: auto; font-weight: 800; color: var(--text); }
.phone-top i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.phone-preview strong { display: block; font-size: 18px; }
.phone-preview p { font-size: 12px; margin-bottom: 18px; }
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-grid span {
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent-dark);
  min-height: 54px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.why-panel, .faq-panel, .order-panel, .admin-panel, .product-card, .stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 60px rgba(21,75,139,.09);
}

.why-panel {
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 34px;
}

.section-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-copy p { max-width: 640px; margin: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 18px;
}

.feature-grid article span {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 16px;
}

.feature-grid b { display: block; margin-bottom: 6px; }
.feature-grid p { font-size: 13px; margin: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 24px 0 18px;
}

.section-head p { margin: 6px 0 0; }
.section-head a { color: var(--accent); font-weight: 800; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-topline, .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pill {
  background: #eaf4ff;
  color: var(--accent-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.muted, .subtitle, .hint { color: var(--muted); }
.price-row strong { font-size: 28px; color: var(--accent-dark); }
.price-row span { color: var(--accent); font-weight: 800; }
.buy-box, .stack { display: grid; gap: 12px; }

label { color: var(--muted); font-size: 13px; display: grid; gap: 7px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
}

textarea { resize: vertical; }
select option { color: #111; }
.support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
  color: var(--muted);
}

.support-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
}

.faq-panel {
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 60px;
}

.order-panel {
  border-radius: 8px;
  padding: 28px;
  margin: 44px 0;
}

.pay-card {
  border: 1px dashed rgba(24,119,242,.42);
  background: #eff7ff;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

code, .delivery {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--accent-dark);
  padding: 12px;
}

.admin-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.stat { border-radius: 8px; padding: 18px; }
.stat span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat strong { font-size: 30px; color: var(--accent-dark); }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.admin-panel { border-radius: 8px; padding: 20px; margin: 16px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; min-height: 18px; }

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

summary b { color: var(--text); }
.inline-actions { margin: 12px 0; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .search-shell { order: 5; flex-basis: 100%; }
  .hero-card, .grid, .admin-grid, .admin-hero, .feature-grid { grid-template-columns: 1fr; }
  .section-copy { display: block; }
}

@media (max-width: 620px) {
  .mini-nav { display: none; }
  .topbar { padding: 14px 0; }
  .main-actions { width: 100%; justify-content: space-between; }
  .catalog-link { margin-left: auto; }
  h1 { font-size: 36px; }
  .hero-card { padding: 24px; }
  .phone-preview { min-height: 230px; }
  .two, .section-head, summary { grid-template-columns: 1fr; display: grid; }
}
