/* ============ Нээлттэй тал: нүүр + бонус шалгах ============ */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Толгой ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 250, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 234, 241, .8);
}
.nav__in { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.nav__links a:hover { color: var(--brand-700); }
@media (max-width: 720px) { .nav__links { display: none; } .nav__in { justify-content: space-between; } }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; position: relative; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-950));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), var(--shadow-sm);
}
.logo__mark::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  width: 13px; height: 16px;
  background: linear-gradient(160deg, #A5F3FC, var(--aqua-400));
  clip-path: path('M6.5 0 C6.5 0 0 7.4 0 11.2 A6.5 6.5 0 0 0 13 11.2 C13 7.4 6.5 0 6.5 0 Z');
}
.logo__text { font: 800 18px/1 var(--font-display); color: var(--brand-950); letter-spacing: -0.01em; }
.logo--light .logo__text { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 128px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 12% -10%, rgba(2, 132, 199, .10), transparent 62%),
    radial-gradient(660px 430px at 94% 16%, rgba(34, 211, 238, .13), transparent 60%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 48px 0 106px; } }

.eyebrow {
  display: inline-block; font: 700 12px/1 var(--font-display); letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-700);
  background: var(--brand-100); border-radius: 99px; padding: 8px 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; color: var(--brand-950); }
.hero h1 em {
  font-style: normal; color: var(--brand-600); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: 6%; height: .18em;
  background: linear-gradient(90deg, var(--aqua-400), rgba(34, 211, 238, .25));
  border-radius: 99px; z-index: -1;
}
.hero__sub { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 480px; }
.hero__sub strong { color: var(--ink); }
.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hero__facts li { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--font-body); color: var(--ink-2); }
.hero__facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-400); }

.hero__card { position: relative; }
.hero__card .wash-card { max-width: 400px; margin: 0 auto; animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-11px) rotate(.6deg); } }
/* Картын ард — савангийн хөөсөн бөөгнөрөл */
.hero__card::before {
  content: ''; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 14% 82%, rgba(255, 255, 255, .85) 0 26px, transparent 27px),
    radial-gradient(circle at 26% 92%, rgba(255, 255, 255, .7) 0 18px, transparent 19px),
    radial-gradient(circle at 7% 68%, rgba(207, 250, 254, .8) 0 14px, transparent 15px),
    radial-gradient(circle at 90% 16%, rgba(255, 255, 255, .8) 0 22px, transparent 23px),
    radial-gradient(circle at 97% 30%, rgba(207, 250, 254, .75) 0 13px, transparent 14px),
    radial-gradient(circle at 82% 7%, rgba(255, 255, 255, .6) 0 12px, transparent 13px);
  filter: blur(.4px);
}

/* Усны долгион хөвөө — hero-гийн доод ирмэг */
.wave-div { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.wave-div svg { display: block; width: 100%; height: 58px; }
.wave-div__back { fill: rgba(2, 132, 199, .12); }
.wave-div__front { fill: var(--bg); }

/* Хөөс */
.bubbles i {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(34, 211, 238, .18) 58%, rgba(2, 132, 199, .1));
  border: 1px solid rgba(34, 211, 238, .25);
  animation: bubbleUp linear infinite;
  opacity: 0;
}
.bubbles i:nth-child(1) { left: 6%;  bottom: -30px; width: 26px; height: 26px; animation-duration: 13s; }
.bubbles i:nth-child(2) { left: 16%; bottom: -40px; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 2.2s; }
.bubbles i:nth-child(3) { left: 44%; bottom: -34px; width: 20px; height: 20px; animation-duration: 15s; animation-delay: 4.5s; }
.bubbles i:nth-child(4) { left: 60%; bottom: -26px; width: 12px; height: 12px; animation-duration: 9s;  animation-delay: 1.1s; }
.bubbles i:nth-child(5) { left: 76%; bottom: -42px; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 3.4s; }
.bubbles i:nth-child(6) { left: 88%; bottom: -24px; width: 16px; height: 16px; animation-duration: 11s; animation-delay: 6s; }
.bubbles i:nth-child(7) { left: 31%; bottom: -30px; width: 17px; height: 17px; animation-duration: 12s; animation-delay: 7.8s; }
@keyframes bubbleUp {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .8; }
  92% { opacity: .5; }
  100% { transform: translateY(-108vh); opacity: 0; }
}

/* ---------- Хэсгүүд ---------- */
.section { padding: 78px 0; }
.section--tint { background: linear-gradient(180deg, #EDF4F9, var(--bg)); }
.section__title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; color: var(--brand-950); }
.section__sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 560px; }

/* Үйлчилгээ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
/* Үйлчилгээний дүрс — угаалгын машины иллюминатор хэлбэрээр */
.svc__ic {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, #EFF9FF, #CDEBFB 74%);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--border-2),
    inset 0 -4px 7px rgba(12, 74, 110, .08), 0 4px 10px rgba(12, 74, 110, .13);
  color: var(--brand-700); margin-bottom: 16px;
}
.svc__ic svg { width: 27px; height: 27px; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.svc:hover .svc__ic svg { transform: rotate(360deg); }
.svc h3 { font-size: 16.5px; font-weight: 700; }
.svc__price { margin-top: 10px; font: 800 24px/1 var(--font-display); color: var(--brand-700); }
.svc__unit { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* Лоялти алхмууд */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 40px 0 0; padding: 0; list-style: none;
  counter-reset: none;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
/* Алхмын дугаар — машины эргэдэг товчлуур (dial) хэлбэрээр */
.step__n {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff; font: 800 15px/1 var(--font-display); margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(2, 132, 199, .32), 0 0 0 3.5px var(--brand-50), 0 0 0 5px var(--border);
}
.step__n::after {
  content: ''; position: absolute; top: 2.5px; left: 50%; transform: translateX(-50%);
  width: 2.5px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .85);
}
.step h3 { font-size: 16px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Түвшний карт */
.tier-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 780px) { .tier-band { grid-template-columns: 1fr; } }
.tier-card {
  border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.tier-card--gold { border-color: #F3D9A4; background: linear-gradient(160deg, #FFFBEB, var(--surface) 55%); }
.tier-card--silver { background: linear-gradient(160deg, #F1F5F9, var(--surface) 55%); }
.tier-card__top { display: flex; justify-content: space-between; align-items: center; }
.tier-card__req { font-size: 13px; color: var(--ink-2); }
.tier-card__perk { font: 700 16px/1.35 var(--font-display); color: var(--brand-950); }

/* Промо купонууд */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr)); gap: 16px; margin-top: 32px; }

/* Хаяг */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 780px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.info-card__ic { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; align-items: center; justify-content: center; background: var(--aqua-100); color: var(--brand-700); margin-bottom: 14px; }
.info-card__ic svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 15px; font-weight: 700; }
.info-card p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* CTA band */
.cta-band { padding: 0 0 84px; }
.cta-band__in {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-950));
  border-radius: 26px; padding: 44px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band__in::after {
  content: ''; position: absolute; right: -60px; bottom: -110px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 65%);
}
.cta-band__in h2 { font-size: clamp(21px, 3vw, 28px); }
.cta-band__in p { margin-top: 8px; color: rgba(255, 255, 255, .75); }
.cta-band__btn { background: var(--amber-500); color: #451A03; position: relative; z-index: 1; }
.cta-band__btn:hover { background: #FBBF24; }
@media (max-width: 720px) { .cta-band__in { flex-direction: column; align-items: flex-start; padding: 34px 28px; } }

/* Footer */
.footer { background: var(--brand-950); color: #fff; padding: 40px 0; margin-top: auto; }
.footer__in { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__note { margin-top: 10px; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.footer__meta { text-align: right; color: rgba(255, 255, 255, .75); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 640px) { .footer__meta { text-align: left; } }
.footer--slim { padding: 22px 0; }
.footer--slim .footer__note { margin: 0; }

/* ============ Бонус шалгах хуудас ============ */
.check-page { display: flex; flex-direction: column; min-height: 100vh; }
.check {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 54px 18px 70px;
}
.bubbles--soft i { opacity: 0; }

.check__lookup {
  width: 100%; max-width: 470px; padding: 40px 36px; text-align: center;
  position: relative; z-index: 1;
}
@media (max-width: 520px) { .check__lookup { padding: 30px 22px; } }
/* Ажиллаж буй жижиг угаалгын машин */
.mini-washer {
  width: 94px; height: 102px; margin: 0 auto 20px; position: relative;
  border-radius: 18px;
  background: linear-gradient(150deg, #10618A, var(--brand-950) 82%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.mini-washer__panel {
  position: absolute; top: 10px; left: 13px; right: 13px;
  display: flex; gap: 5px; align-items: center;
}
.mini-washer__panel i {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7DD3FC, #0369A1 75%);
  box-shadow: inset 0 -1px 1.5px rgba(0, 0, 0, .4);
}
.mini-washer__panel b {
  margin-left: auto; width: 24px; height: 8px; border-radius: 3px;
  background: #03141F;
  box-shadow: inset 0 0 5px rgba(103, 232, 249, .8), inset 0 1px 2px rgba(0, 0, 0, .6);
}
.mini-washer__door {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; padding: 5px;
  background: linear-gradient(145deg, #2380AD, #06283F 80%);
  box-shadow: inset 0 1.5px 3px rgba(255, 255, 255, .25), inset 0 -2px 4px rgba(0, 0, 0, .5);
}
.mini-washer__glass {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 26%, #0B3A57, #04182A 78%);
}
.mini-washer__drum {
  position: absolute; inset: 6px; border-radius: 50%; z-index: 1;
  border: 2px dashed rgba(165, 243, 252, .32);
  animation: drumSpin 3.2s linear infinite;
}
.mini-washer__mwater {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, rgba(34, 211, 238, .88), rgba(3, 105, 161, .96));
}
.mini-washer__mwater::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  transform: translateY(-92%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M0 6 V3.4 Q7.5 0 15 3.4 T30 3.4 T45 3.4 T60 3.4 V6 Z' fill='%2338CDE8'/%3E%3C/svg%3E") repeat-x bottom / 60px 6px;
  animation: waveMove 2.6s linear infinite;
}
.mini-washer__shine {
  position: absolute; left: 14%; top: 10%; width: 34%; height: 22%; border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 75%);
  transform: rotate(-18deg);
}
.check__lookup h1 { font-size: 27px; color: var(--brand-950); }
.check__sub { margin-top: 10px; color: var(--ink-2); }
.phone-field { margin-top: 24px; }
.phone-field .input { text-align: center; font: 700 24px/1.3 var(--font-display); letter-spacing: .14em; }
.check__submit { width: 100%; margin-top: 14px; }
.check__hint { margin-top: 16px; }
#checkError { margin-top: 12px; }

/* Үр дүн */
.check > section { width: 100%; }
.result { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 16px; position: relative; z-index: 1; }
/* nowrap текстүүд grid track-ийг тэлэхээс сэргийлнэ (ellipsis ажиллах нөхцөл) */
.result > *, .hist li, .coupon { min-width: 0; }
.result__hello { text-align: center; margin-bottom: 4px; }
.result__hello h1 { font-size: 24px; color: var(--brand-950); }
.result__hello p { color: var(--ink-2); margin-top: 4px; font-size: 14.5px; }
.result .wash-card { box-shadow: var(--shadow-lg); }

.reward-banner {
  display: flex; gap: 13px; align-items: center;
  background: linear-gradient(120deg, #FFFBEB, #FEF3C7);
  border: 1.5px solid #FDE68A; border-radius: var(--r-md); padding: 15px 18px;
}
.reward-banner svg { width: 26px; height: 26px; color: #B45309; }
.reward-banner strong { display: block; color: #78350F; font-size: 15px; }
.reward-banner span { color: #92610A; font-size: 13.5px; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .result-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mini-stat b { display: block; font: 800 22px/1.1 var(--font-display); color: var(--brand-950); }
.mini-stat span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.panel > h2 { font-size: 15px; font-weight: 800; color: var(--brand-950); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel > h2 svg { width: 17px; height: 17px; color: var(--brand-600); }

.tier-progress__row { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.tier-progress__row b { color: var(--ink); }
.tier-progress__note { margin-top: 9px; font-size: 13px; color: var(--ink-2); }

.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hist li { display: flex; align-items: center; gap: 13px; padding: 10px 6px; border-radius: 10px; }
.hist li:hover { background: var(--brand-50); }
.hist__ic { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hist__ic svg { width: 18px; height: 18px; }
.hist__main { flex: 1; min-width: 0; }
.hist__main b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist__main span { font-size: 12px; color: var(--ink-3); }
.hist__amt { text-align: right; }
.hist__amt b { display: block; font-size: 14px; font-weight: 700; }
.hist__amt .pts { font-size: 12px; font-weight: 700; }
.pts--earn { color: var(--mint-600); }
.pts--spend { color: var(--amber-500); }

.check-again { text-align: center; margin-top: 6px; }
