:root {
  --page: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f2f7;
  --text: #171821;
  --muted: #767987;
  --line: #e8e9ef;
  --accent: #6c5ce7;
  --accent-2: #8275ef;
  --shadow: 0 18px 55px rgba(31, 35, 54, .09);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 74px minmax(600px, 1fr) 70px;
  background: var(--page);
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20, 20, 32, .015);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand:hover { opacity: .78; transform: translateY(-1px); }

.brand-logo {
  display: block;
  width: 166px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #515461;
  font-size: 14px;
  font-weight: 600;
}

.nav a { transition: color 150ms ease; }
.nav a:hover, .nav a:focus-visible { color: var(--accent); }

.language {
  height: 36px;
  min-width: 43px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #30323d;
  font-weight: 700;
}

.region-picker {
  position: relative;
}

.region-button {
  height: 36px;
  min-width: 48px;
  padding: 0 8px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #5c5f6b;
  font: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.region-button:hover,
.region-button[aria-expanded="true"] {
  border-color: #d7d8e1;
  background: #fafaff;
  box-shadow: 0 5px 18px rgba(31, 35, 54, .06);
}
.region-button svg { width: 14px; height: 14px; transition: transform 150ms ease; }
.region-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.region-flag { font-size: 18px; line-height: 1; }

.region-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 50;
  width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 45px rgba(35, 37, 53, .13);
  backdrop-filter: blur(10px);
}
.region-option {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3d404b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.region-option:hover, .region-option:focus-visible { background: #f5f5fa; outline: none; }
.region-option.is-active { color: var(--accent); background: #f2f0ff; }
.region-option span:first-child { font-size: 18px; }

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(108, 92, 231, .06), transparent 34%),
    var(--page);
}

.store-preview {
  position: absolute;
  inset: 0;
  z-index: -3;
  padding: 42px 24px 82px;
  opacity: .62;
  filter: blur(5px) saturate(.65);
  transform: scale(1.015);
  pointer-events: none;
  user-select: none;
}

.preview-inner { width: min(var(--max), 100%); margin: 0 auto; }

.search-row { display: flex; justify-content: center; margin-bottom: 18px; }
.search-box {
  width: min(720px, 100%);
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 7px 25px rgba(36, 38, 54, .055);
  color: #9a9ca7;
  font-size: 14px;
}
.search-box svg { width: 19px; height: 19px; color: #858895; flex: 0 0 auto; }

.tabs { display: flex; justify-content: center; gap: 9px; margin: 8px 0 32px; }
.tab {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: #70737e;
  font-size: 13px;
  font-weight: 700;
}
.tab.active { color: var(--accent); border-color: rgba(108,92,231,.18); background: #f0edff; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-head.lower { margin-top: 36px; }
.section-head small { display: block; margin-bottom: 4px; color: #9a9ca7; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 750; letter-spacing: -.025em; }
.section-head > span { color: #8d8f9a; font-size: 12px; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(34, 36, 52, .045);
}
.product-art { aspect-ratio: 1.48 / 1; position: relative; display: grid; place-items: center; }
.product-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.22), transparent 62%); }
.product-art span { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.84); color: #31333f; font-size: 17px; font-weight: 800; box-shadow: 0 8px 22px rgba(31,33,50,.10); }
.a1 { background: linear-gradient(135deg,#8c80f2,#6155d6); }
.a2 { background: linear-gradient(135deg,#78cfd1,#6598df); }
.a3 { background: linear-gradient(135deg,#e39aaa,#bd79c4); }
.a4 { background: linear-gradient(135deg,#8fb3dc,#6f83d0); }
.a5 { background: linear-gradient(135deg,#b7accd,#8d83b0); }
.product-copy { padding: 12px 13px 13px; }
.product-copy strong { display: block; color: #30323b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-copy small { display: block; margin-top: 5px; color: #9b9da7; font-size: 10px; }

.row-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.row-card {
  height: 78px;
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.row-card i { grid-row: 1 / 3; width: 50px; height: 50px; border-radius: 11px; }
.rc1 { background: #9b91f0; } .rc2 { background: #93c7d8; } .rc3 { background: #d6a1b4; } .rc4 { background: #9eaed4; }
.row-card b, .row-card em { height: 8px; border-radius: 999px; background: #ececf1; }
.row-card em { width: 60%; }

.preview-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(246,247,251,.50), rgba(246,247,251,.72)),
    radial-gradient(circle at 50% 47%, rgba(255,255,255,.12), rgba(246,247,251,.35) 42%, rgba(246,247,251,.72) 82%);
}

.maintenance {
  width: min(690px, calc(100% - 38px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  transform: translateY(-8px);
  animation: enter 480ms cubic-bezier(.2,.72,.2,1) both;
}

.maintenance-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(108,92,231,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: float 5.2s ease-in-out infinite;
}
.maintenance-icon svg { width: 82px; height: 82px; }

.maintenance h1 {
  margin: 0;
  color: #171820;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.045em;
}

.maintenance p {
  margin: 14px 0 0;
  color: #6d707c;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  font-weight: 450;
}

.footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  color: #8b8d98;
  font-size: 12px;
}
.footer a { color: #555864; font-weight: 500; transition: color 150ms ease; }
.footer a:hover, .footer a:focus-visible { color: var(--accent); }
.dot { color: #c8c9d0; }

:focus-visible { outline: 2px solid rgba(108,92,231,.75); outline-offset: 4px; border-radius: 4px; }

@keyframes enter { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(-8px); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (max-width: 900px) {
  .site-shell { grid-template-rows: 68px minmax(560px,1fr) 66px; }
  .topbar-inner { width: calc(100% - 36px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-card:nth-child(n+4) { display: none; }
  .row-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .site-shell { grid-template-rows: 64px minmax(520px,1fr) 84px; }
  .topbar-inner { width: calc(100% - 28px); }
  .brand { height: 42px; }
  .brand-logo { width: 145px; height: 40px; }
  .nav { gap: 10px; font-size: 13px; }
  .nav a:first-child { display: none; }
  .language { height: 33px; min-width: 39px; border-radius: 9px; }
  .region-button { height: 33px; min-width: 43px; border-radius: 9px; padding: 0 7px; }
  .region-button svg { width: 12px; height: 12px; }
  .region-flag { font-size: 17px; }
  .region-menu { right: -42px; width: 158px; }
  .store-preview { padding: 28px 16px 60px; filter: blur(5.5px) saturate(.6); }
  .tabs { margin-bottom: 26px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card:nth-child(3) { display:none; }
  .row-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section-head.lower { margin-top: 28px; }
  .maintenance { transform: translateY(-12px); }
  .maintenance-icon { width: 104px; height: 104px; border-radius: 27px; margin-bottom: 15px; }
  .maintenance-icon svg { width: 72px; height: 72px; }
  .maintenance h1 { font-size: clamp(28px, 8vw, 36px); }
  .maintenance p { margin-top: 11px; }
  .footer-inner { width: calc(100% - 30px); flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 9px; }
  .dot { display: none; }
  .footer-inner > * { width: 100%; }
}

@media (max-width: 380px) {
  .nav a { display: none; }
  .maintenance h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
