/* ============================================================
   Graduation Market — мобильная витрина
   Палитра и сетка повторяют приложенный макет,
   лишние блоки удалены.
   ============================================================ */

:root {
  --navy-950: #061426;
  --navy-900: #081C35;
  --navy-800: #0B2545;
  --navy-700: #12345F;
  --navy-600: #1B4A85;
  --navy-500: #2F6BE0;
  --blue-100: #E7EFFB;
  --blue-50: #F1F6FE;
  --ink: #0B1B2F;
  --muted: #6C7E96;
  --line: #E3EAF4;
  --bg: #F4F7FC;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(8, 28, 53, .35);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 13px; height: 13px; }
.ico-lg { width: 30px; height: 30px; }

.star {
  width: 10px;
  height: 10px;
  flex: none;
  fill: currentColor;
  stroke: none;
}

/* ---------- app shell ---------- */

.app-stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(47, 107, 224, .38), transparent 62%),
    radial-gradient(700px 400px at 8% 110%, rgba(27, 74, 133, .55), transparent 68%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 58%, var(--navy-700) 100%);
}

.app-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.app {
  position: relative;
  width: min(430px, 100%);
  height: min(900px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 9px solid #071522;
  border-radius: 44px;
  box-shadow:
    0 34px 80px -28px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
}

.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg);
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen-white {
  background: #fff;
}

.empty-space {
  height: 22px;
}

.muted {
  color: var(--muted);
}

/* ---------- toasts ---------- */

.toasts {
  position: absolute;
  top: auto;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
  border-radius: 12px;
  box-shadow: 0 18px 36px -20px rgba(8, 28, 53, .55);
  font-size: 11.5px;
  line-height: 1.45;
  animation: toast-in .25s ease both;
}

.toast-error {
  border-left-color: #C24A4A;
  background: #FFF9F9;
  color: #7E2C2C;
}

.toast-success {
  border-left-color: var(--navy-600);
}

.toast-info {
  border-left-color: var(--navy-500);
}

.toast-close {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- shared controls ---------- */

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  color: var(--navy-800);
  transition: background .15s ease, color .15s ease;
}

.icon-btn .ico {
  width: 21px;
  height: 21px;
}

.icon-btn:hover {
  background: var(--blue-50);
}

.icon-form {
  display: inline-flex;
}

.badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy-700);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  border: 2px solid #fff;
  line-height: 1;
}

.is-fav .ico {
  fill: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.btn .ico {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 12px 20px -12px rgba(11, 37, 69, .75);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: .5;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-whatsapp {
  background: #25D366;
  color: #073B22;
  box-shadow: 0 12px 20px -12px rgba(37, 211, 102, .8);
}

.btn-whatsapp:active {
  transform: translateY(1px);
}

.btn-outline {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--navy-800);
}

.btn-outline-text {
  width: auto;
}

.btn-full {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-800);
  transition: .15s ease;
}

.chip.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.sale {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--navy-800);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

.pic {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 28% 16%, #FFFFFF 0%, #EDF3FB 52%, #D9E5F5 100%);
}

.pic::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 224, .16), rgba(47, 107, 224, 0) 70%);
  right: -30px;
  bottom: -40px;
  pointer-events: none;
}

.pic .ico {
  color: var(--navy-700);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 14px rgba(11, 37, 69, .18));
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- page bar ---------- */

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px 10px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}

.bar h1 {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.bar .actions {
  display: flex;
  gap: 0;
}

/* ---------- home ---------- */

.home-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  padding: 2px 16px 0;
  border-bottom: 1px solid var(--line);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--navy-800);
}

.logo span {
  color: var(--navy-500);
  font-weight: 700;
}

.top-icons {
  display: flex;
  gap: 0;
}

.cityline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 7px;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cityline .ico {
  width: 12px;
  height: 12px;
  color: var(--navy-600);
}

.city-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 28, 53, .48);
  backdrop-filter: blur(3px);
}

.city-modal[hidden] {
  display: none;
}

.city-modal-card {
  width: min(400px, 100%);
  max-height: min(560px, 85dvh);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
}

.city-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.city-modal-head h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 16px;
}

.city-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy-700);
  cursor: pointer;
}

.city-modal-close .ico {
  width: 15px;
  height: 15px;
}

.city-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.city-option {
  min-height: 38px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--navy-800);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.city-option.is-active {
  border-color: var(--navy-700);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--navy-700);
}

.city-custom {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.city-custom input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--navy-900);
  font: inherit;
  font-size: 11px;
}

.city-custom button {
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: var(--navy-800);
  color: #fff;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid transparent;
  padding: 0 8px 0 13px;
  font-size: 12px;
  color: #8D9CB1;
  transition: border-color .15s ease, background .15s ease;
}

.searchbar:focus-within {
  border-color: #D5E2F4;
  background: #fff;
}

.searchbar .ico {
  width: 17px;
  height: 17px;
  color: var(--navy-600);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}

.searchbar input::placeholder {
  color: #8D9CB1;
}

.searchbar input::-webkit-search-cancel-button {
  display: none;
}

.search-submit {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--navy-600);
  flex: none;
}

.search-submit:hover {
  background: var(--blue-50);
}

.search-submit .ico {
  width: 16px;
  height: 16px;
}

.topnav {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  position: relative;
  padding: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.topnav a.active {
  color: var(--navy-900);
}

.topnav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy-800);
}

.hero {
  margin: 14px 16px 0;
  height: 152px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(140px 140px at 78% 18%, rgba(78, 138, 240, .55), transparent 70%),
    linear-gradient(125deg, var(--navy-700) 0%, var(--navy-800) 52%, var(--navy-950) 100%);
  color: #fff;
  box-shadow: 0 16px 28px -18px rgba(11, 37, 69, .7);
}

.hero.has-image {
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
}

.hero.has-image .hero-art,
.hero.has-image .hero-percent,
.hero.has-image::before,
.hero.has-image::after {
  display: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 28, 53, .28);
  backdrop-filter: blur(4px);
  transform: translateX(-50%);
}

.hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(8, 28, 53, .18);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 18px;
  background: #fff;
}

.hero.is-image-only .hero-copy {
  display: none;
}

.hero-link-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  border-radius: inherit;
}

.hero::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  right: -42px;
  top: -46px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  right: -74px;
  bottom: -120px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
}

.hero-kicker {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9FBBE4;
  margin-bottom: 7px;
}

.hero h2 {
  font-size: 29px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.03em;
}

.hero-btn {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--navy-800);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
}

.hero-btn .ico {
  width: 12px;
  height: 12px;
}

.hero-percent {
  position: absolute;
  right: 12px;
  bottom: 2px;
  font-size: 74px;
  font-weight: 900;
  letter-spacing: -.07em;
  color: rgba(255, 255, 255, .13);
  line-height: 1;
  transform: rotate(-7deg);
  z-index: 1;
}

.hero-percent.year {
  font-size: 44px;
  right: 10px;
  bottom: 11px;
  letter-spacing: -.04em;
  transform: rotate(-9deg);
  opacity: .9;
}

.hero-art {
  position: absolute;
  right: 28px;
  top: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
}

.hero-art .ring {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5);
}

.hero-art .ico {
  width: 44px;
  height: 44px;
  color: #fff;
}

.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 2px;
  padding: 16px 12px 0;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-700);
  box-shadow: 0 4px 10px -8px rgba(11, 37, 69, .45);
  transition: transform .12s ease, border-color .15s ease;
}

.cat:hover .cat-ico {
  border-color: #CBD9EC;
  transform: translateY(-1px);
}

.cat-ico .ico {
  width: 20px;
  height: 20px;
}

.cat-ico.has-logo {
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.cat-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
}

.cat > span:last-child {
  font-size: 8px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.01em;
}

.section {
  padding: 0 16px;
  margin-top: 22px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sec-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.01em;
}

.sec-head a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-600);
}

.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 16px 4px;
  margin: 0 -16px;
  scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hit {
  width: 148px;
  flex: none;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hit .pic {
  height: 116px;
}

.hit .pic .ico {
  width: 56px;
  height: 56px;
}

.hit-body {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hit .pname {
  font-size: 10.5px;
  min-height: 28px;
}

.hit-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.hit .price {
  font-size: 13px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.prod .pic {
  height: 142px;
}

.prod .pic .ico {
  width: 62px;
  height: 62px;
}

.prod-body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.prod .pname {
  font-size: 11px;
  min-height: 30px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-anchor {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.pname {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
  white-space: nowrap;
}

.old {
  font-size: 10px;
  color: #9AAABF;
  text-decoration: line-through;
  white-space: nowrap;
}

.perk-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--blue-100);
  border-radius: 5px;
  padding: 3px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 1px;
}

.perk-chip .ico {
  width: 10px;
  height: 10px;
  flex: none;
}

.card-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
}

.card-fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(227, 234, 244, .9);
  color: var(--navy-700);
  box-shadow: 0 6px 12px -8px rgba(11, 37, 69, .5);
}

.card-fav-btn .ico {
  width: 15px;
  height: 15px;
}

.card-fav-btn.is-fav .ico {
  fill: var(--navy-700);
}

/* ---------- catalog ---------- */

.catalog-search {
  display: none;
  padding: 10px 16px 0;
  background: #fff;
}

.catalog-search.is-open {
  display: block;
}

.searchbar-inline {
  width: 100%;
}

.chips-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.list-head > span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.sort-form {
  min-width: 0;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-700);
  max-width: 190px;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-700);
  padding: 3px 0;
  outline-offset: 4px;
  max-width: 176px;
  text-overflow: ellipsis;
}

.sort .ico {
  width: 12px;
  height: 12px;
  pointer-events: none;
  margin-left: -2px;
}

.search-query {
  padding: 0 16px 10px;
  font-size: 10.5px;
  color: var(--muted);
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 16px 24px;
}

.row-card {
  display: flex;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  transition: border-color .15s ease, transform .12s ease;
}

.row-card:hover {
  border-color: #CBD9EC;
  transform: translateY(-1px);
}

.row-card .pic {
  width: 88px;
  height: 100px;
  border-radius: 11px;
  flex: none;
}

.row-card .pic .ico {
  width: 42px;
  height: 42px;
}

.row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row-body .pname {
  font-size: 11.5px;
  min-height: 31px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--muted);
}

.rating .star {
  width: 10px;
  height: 10px;
  color: var(--navy-700);
  fill: var(--navy-700);
}

.rating b {
  color: var(--navy-900);
  font-weight: 700;
}

.row-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.row-price .price {
  font-size: 15px;
}

/* ---------- product ---------- */

.prod-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px;
}

.prod-head-actions {
  display: flex;
  align-items: center;
}

.gallery {
  position: relative;
  height: 312px;
  background: radial-gradient(110% 100% at 30% 15%, #FFFFFF 0%, #EEF4FC 55%, #DBE6F5 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 224, .16), transparent 68%);
  pointer-events: none;
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .sale {
  top: 14px;
  left: 16px;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 8px;
}

.gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(7, 21, 34, .62);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
  max-width: calc(100% - 92px);
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .78);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(11, 37, 69, .45);
  transition: border-color .15s ease, transform .12s ease;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  transform: translateY(-1px);
}

.gallery-thumb.is-active {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 2px rgba(47, 107, 224, .28), 0 4px 12px -4px rgba(11, 37, 69, .45);
}

.gallery-icon {
  width: 150px;
  height: 150px;
  color: var(--navy-700);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 26px 30px rgba(11, 37, 69, .22));
}

.sash-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.sash-stage::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px dashed rgba(18, 52, 95, .18);
}

.sash-band {
  --sash-a: #0B2545;
  --sash-b: #12345F;
  --sash-c: #1B4A85;
  position: relative;
  width: 74px;
  height: 236px;
  border-radius: 10px;
  background: linear-gradient(102deg, var(--sash-a) 0%, var(--sash-b) 48%, var(--sash-c) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 26px 34px -18px rgba(11, 37, 69, .65), inset 0 0 22px rgba(255, 255, 255, .08);
  transform: rotate(-32deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  overflow: hidden;
}

.sash-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .22) 42%, transparent 60%);
  pointer-events: none;
}

.sash-band.color-wine {
  --sash-a: #3C0E1B;
  --sash-b: #651A2C;
  --sash-c: #8A2A3D;
}

.sash-band.color-emerald {
  --sash-a: #0A3125;
  --sash-b: #13503B;
  --sash-c: #1B6F50;
}

.sash-band.color-sky {
  --sash-a: #1A456E;
  --sash-b: #256395;
  --sash-c: #3B86B8;
}

.sash-band.color-silver {
  --sash-a: #526176;
  --sash-b: #778A9F;
  --sash-c: #A8B8C8;
}

.sash-band .sash-star {
  width: 15px;
  height: 15px;
  fill: #fff;
  stroke: none;
  opacity: .9;
}

.sash-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.sash-class {
  font-size: 10px;
  font-weight: 600;
  color: #D7E6F8;
  letter-spacing: .06em;
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sash-year {
  font-size: 11px;
  font-weight: 800;
  color: #C4D7EF;
  letter-spacing: .2em;
  margin-top: 2px;
}

.sash-line {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .35);
  margin: 2px 0;
}

.sash-bottom {
  font-size: 5.5px;
  letter-spacing: .24em;
  color: #9FBBE4;
  font-weight: 700;
  margin-top: 2px;
}

.sheet {
  position: relative;
  margin-top: -18px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  padding: 18px 16px 16px;
  z-index: 2;
}

.pname-lg {
  font-size: 16px;
  line-height: 1.32;
  font-weight: 600;
  display: block;
  -webkit-line-clamp: unset;
}

.rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}

.rating-line .star {
  width: 12px;
  height: 12px;
  fill: var(--navy-700);
  stroke: none;
}

.rating-line b {
  color: var(--navy-900);
}

.seller {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--navy-600);
}

.seller .ico {
  width: 13px;
  height: 13px;
}

.price-block {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
  line-height: 1;
}

.price-block .old {
  font-size: 12px;
}

.discount-pill {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--navy-700);
  border-radius: 7px;
  padding: 3px 7px;
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  background: linear-gradient(125deg, var(--blue-50), #E9F1FD);
  border: 1px solid #D7E5F8;
  border-radius: 14px;
  padding: 11px 13px;
}

.feature-card .ttl {
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-600);
  font-weight: 800;
}

.feature-card .val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 3px;
}

.feature-card .per {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.feature-card .icn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  border: 1px solid #DCE8F8;
  flex: none;
}

.feature-card .icn .ico {
  width: 19px;
  height: 19px;
}

.buy-row {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.buy-row .btn-primary {
  flex: 1;
}

.fav-form {
  flex: none;
}

.fav-form .btn-outline {
  width: 46px;
  padding: 0;
}

.buy-row .btn-outline .ico {
  width: 19px;
  height: 19px;
}

.info-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
}

.info-line + .info-line {
  border-top: 1px solid var(--line);
}

.info-line .icn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  color: var(--navy-700);
  flex: none;
}

.info-line .icn .ico {
  width: 16px;
  height: 16px;
}

.info-line .txt {
  flex: 1;
  min-width: 0;
}

.info-line b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-900);
}

.info-line span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

.info-line .free {
  font-size: 10px;
  font-weight: 800;
  color: var(--navy-700);
  white-space: nowrap;
  margin-top: 0;
}

.block-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 20px 0 9px;
}

.custom-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  font-size: 10.5px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}

.custom-row:last-of-type {
  border-bottom: 0;
}

.custom-row label,
.custom-row > span {
  color: var(--muted);
  flex: none;
}

.custom-row b {
  font-weight: 700;
  color: var(--navy-900);
  text-align: right;
}

.custom-input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 0;
  text-align: right;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-900);
  outline: none;
}

.custom-row:focus-within {
  background: var(--blue-50);
}

.custom-input::placeholder {
  color: #A9B7C8;
  font-weight: 700;
}

select.custom-input {
  text-align-last: right;
  cursor: pointer;
}

input[type="number"].custom-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"].custom-input::-webkit-inner-spin-button,
input[type="number"].custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 700;
  border-top: 1px solid #D9E6F8;
}

.stock-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF4E5;
  color: #8A5B12;
  font-size: 10px;
  line-height: 1.45;
}

.specs {
  border-top: 1px solid var(--line);
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10.5px;
}

.spec:last-child {
  border-bottom: 0;
}

.spec span {
  color: var(--muted);
}

.spec b {
  font-weight: 600;
  color: var(--navy-900);
  text-align: right;
}

.about {
  font-size: 10.5px;
  line-height: 1.65;
  color: #54687F;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
}

.review-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.review-top b {
  color: var(--navy-900);
}

.review-top span {
  font-size: 9px;
  color: var(--muted);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  color: var(--navy-800);
  background: var(--blue-100);
  border-radius: 6px;
  padding: 2px 6px;
  margin: 5px 0 7px;
}

.rating-badge .star {
  width: 10px;
  height: 10px;
  fill: var(--navy-700);
  stroke: none;
}

.review-card p {
  font-size: 10.5px;
  line-height: 1.6;
  color: #54687F;
}

.review-empty {
  font-size: 10.5px;
  line-height: 1.5;
}

.review-form-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.review-form-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}

.review-form-card summary::-webkit-details-marker {
  display: none;
}

.review-form-card summary::after {
  content: "+";
  font-size: 17px;
  line-height: 1;
  color: var(--navy-600);
  font-weight: 600;
}

.review-form-card[open] summary::after {
  content: "−";
}

.review-form-card form {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.review-form-card .btn {
  margin-top: 4px;
}

.related {
  margin-top: 22px;
}

.related .sec-head h3 {
  font-size: 13px;
}

.form-note {
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.buybar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 35;
}

.buybar .bb-price {
  flex: 1;
  min-width: 0;
}

.buybar .bb-price .price {
  font-size: 17px;
}

.buybar .bb-price .old {
  font-size: 9px;
  display: block;
  margin-top: 1px;
}

.buybar .btn {
  height: 44px;
  padding: 0 20px;
  flex: none;
}

/* ---------- cart ---------- */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 16px 0;
}

.cart-item {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px;
}

.cart-item .pic {
  width: 74px;
  height: 86px;
  border-radius: 10px;
  flex: none;
}

.cart-item .pic .ico {
  width: 36px;
  height: 36px;
}

.cart-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-body .pname {
  font-size: 10.5px;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-personal {
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.cart-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cart-price-line .price {
  font-size: 13px;
}

.cart-unit {
  font-size: 8.5px;
  color: var(--muted);
}

.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 700;
}

.qty button:hover {
  background: var(--blue-50);
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
}

.qty .ico {
  width: 11px;
  height: 11px;
}

.remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #9AAABF;
}

.remove:hover {
  background: #F3F6FB;
  color: var(--navy-700);
}

.remove .ico {
  width: 14px;
  height: 14px;
}

.promo {
  margin: 12px 16px 0;
  display: flex;
  gap: 7px;
}

.promo-form {
  display: flex;
  gap: 7px;
  width: 100%;
}

.promo-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 11px;
  color: var(--ink);
  outline: none;
}

.promo-form input:focus {
  border-color: #C9D9ED;
}

.promo-form input::placeholder {
  color: #9AAABF;
}

.promo-form button {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--blue-50);
  border: 1px solid #D9E6F8;
  color: var(--navy-700);
  font-size: 10.5px;
  font-weight: 800;
  flex: none;
}

.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--blue-50);
  border: 1px solid #D9E6F8;
  border-radius: 11px;
  padding: 10px 12px;
}

.promo-applied-text {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--navy-700);
  line-height: 1.4;
}

.promo-applied form button {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--navy-600);
  white-space: nowrap;
}

.summary {
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 13px;
}

.sum-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding: 4px 0;
  color: #54687F;
}

.sum-line b {
  color: var(--navy-900);
  font-weight: 700;
}

.sum-line.discount b {
  color: var(--navy-600);
}

.sum-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-900);
  border-top: 1px solid var(--line);
  margin-top: 7px;
  padding-top: 10px;
}

.sum-total .price {
  font-size: 17px;
}

.checkout-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 16px 18px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}

.min-order-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 16px 0;
  padding: 9px 11px;
  border: 1px solid #F3D6A2;
  border-radius: 11px;
  background: #FFF6E7;
  color: #8A5A00;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
}

.min-order-note .ico {
  width: 14px;
  height: 14px;
  flex: none;
}

.min-order-note.is-ready {
  border-color: #BFE4C8;
  background: #EEF9F1;
  color: #1E7A34;
}

.cart-catalog-btn {
  display: flex;
  width: auto;
  margin: 14px 16px 0;
}

.checkout-note .ico {
  width: 14px;
  height: 14px;
  color: var(--navy-600);
  flex: none;
}

.checkout-note-form {
  margin: 4px 0 0;
  padding: 0 2px;
}

.bonus-use {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.bonus-use input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy-800);
  flex: none;
}

.bonus-note {
  margin: 7px 0 0 27px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.checkout {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 35;
}

.checkout .total {
  flex: 1;
  min-width: 0;
}

.checkout .total > span:first-child {
  display: block;
  font-size: 8.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
}

.checkout .total .price {
  display: block;
  font-size: 18px;
  margin-top: 1px;
}

.checkout .btn {
  height: 46px;
  padding: 0 18px;
  flex: none;
}

/* ---------- empty states ---------- */

.empty-state {
  padding: 42px 30px 30px;
  text-align: center;
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.empty-icon .ico {
  width: 31px;
  height: 31px;
}

.empty-state h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.01em;
}

.empty-state p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin: 7px auto 0;
  max-width: 280px;
}

.empty-state .btn {
  margin-top: 16px;
}

/* ---------- checkout ---------- */

.checkout-wrap {
  padding: 14px 16px 0;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 2px;
  margin-bottom: 12px;
}

.form-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.form-card-count {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy-700);
}

.req {
  color: #C24A4A;
}

.input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 13px;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input::placeholder {
  color: #A2B0C2;
}

.input:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 224, .1);
}

.field.has-error .input {
  border-color: #D89A9A;
  background: #FFFBFB;
}

.input-area {
  height: auto;
  min-height: 82px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

select.input {
  appearance: auto;
  cursor: pointer;
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  color: #B33A3A;
}

.field-help {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.form-alert {
  background: #FFF3F3;
  border: 1px solid #F3D2D2;
  color: #8E2F2F;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.form-alert ul {
  margin: 0;
  padding-left: 16px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.delivery-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.delivery-option input:checked + .delivery-card {
  border-color: var(--navy-700);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(18, 52, 95, .07);
}

.delivery-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  color: var(--navy-700);
  flex: none;
}

.delivery-option input:checked + .delivery-card .delivery-ico {
  background: #fff;
}

.delivery-ico .ico {
  width: 17px;
  height: 17px;
}

.delivery-text {
  flex: 1;
  min-width: 0;
}

.delivery-text b {
  display: block;
  font-size: 11px;
  color: var(--navy-900);
}

.delivery-text small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted);
}

.radio-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #B9C7DA;
  flex: none;
  position: relative;
}

.delivery-option input:checked + .delivery-card .radio-mark {
  border-color: var(--navy-700);
}

.radio-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--navy-700);
  opacity: 0;
  transition: opacity .15s ease;
}

.delivery-option input:checked + .delivery-card .radio-mark::after {
  opacity: 1;
}

.delivery-option input:focus-visible + .delivery-card {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

.delivery-fields {
  margin-top: 2px;
}

.pickup-info {
  margin-bottom: 10px;
  border: 1px solid #D9E6F8;
  border-radius: 12px;
  background: var(--blue-50);
  overflow: hidden;
}

.pickup-info .info-line {
  background: transparent;
}

.pickup-info p {
  padding: 0 12px 10px 52px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}

.payment-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-50);
  border: 1px solid #D9E6F8;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.payment-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #DCE8F8;
}

.payment-ico .ico {
  width: 18px;
  height: 18px;
}

.payment-card b {
  display: block;
  font-size: 11px;
  color: var(--navy-900);
}

.payment-card p {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}

.payment-card-large {
  margin: 0;
  padding: 14px;
}

.mini-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.mini-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-item-text {
  flex: 1;
  min-width: 0;
}

.mini-item-text b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
}

.mini-item-text span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.mini-item-price {
  text-align: right;
  flex: none;
}

.mini-item-price span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.mini-item-price b {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--navy-900);
  white-space: nowrap;
}

.summary-in-card {
  margin: 0 -1px 12px;
  border: 0;
  padding: 0;
}

.summary-in-card .sum-line:first-child {
  padding-top: 0;
}

/* ---------- order ---------- */

.order-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(300px 220px at 80% 0%, rgba(78, 138, 240, .4), transparent 65%),
    linear-gradient(135deg, var(--navy-700), var(--navy-950));
  color: #fff;
  text-align: center;
  padding: 24px 20px 22px;
  border-radius: 0 0 24px 24px;
}

.order-hero::before,
.order-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

.order-hero::before {
  width: 150px;
  height: 150px;
  right: -50px;
  top: -60px;
}

.order-hero::after {
  width: 200px;
  height: 200px;
  left: -90px;
  bottom: -130px;
}

.success-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  position: relative;
  z-index: 1;
}

.success-ico .ico {
  width: 29px;
  height: 29px;
}

.order-hero h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.order-hero p {
  margin-top: 6px;
  font-size: 10.5px;
  color: #C6D5EB;
  position: relative;
  z-index: 1;
}

.order-hero p b {
  color: #fff;
}

.order-hero .status-pill {
  margin-top: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 4px 11px;
}

.order-hero-note {
  max-width: 300px;
  margin: 12px auto 0 !important;
  font-size: 9.5px !important;
  line-height: 1.5;
  color: #9FB9DD !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-new {
  background: var(--blue-100);
  color: var(--navy-600);
}

.status-confirmed {
  background: #EAF3FF;
  color: #1E5A9E;
}

.status-making {
  background: #FFF4E5;
  color: #966014;
}

.status-delivering {
  background: #EAF2FF;
  color: #245AA6;
}

.status-done {
  background: #E9F7EF;
  color: #1D7A50;
}

.status-cancelled {
  background: #FCECEC;
  color: #A33A3A;
}

.order-body {
  padding: 14px 16px 0;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 13px 8px;
  margin-bottom: 12px;
}

.order-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.order-card .info-line {
  padding: 9px 0;
}

.order-card .info-line + .info-line {
  border-top: 1px solid var(--line);
}

.order-comment {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--blue-50);
  font-size: 9.5px;
  line-height: 1.5;
  color: #54687F;
}

.order-comment b {
  color: var(--navy-800);
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.order-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-info b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
}

.order-item-info span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.order-item-qty {
  font-size: 9.5px;
  color: var(--muted);
  flex: none;
}

.order-item-total {
  font-size: 11px;
  color: var(--navy-900);
  white-space: nowrap;
  flex: none;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.order-actions .btn-outline {
  height: 44px;
}

/* ---------- notifications ---------- */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 0;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.notice-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-700);
}

.notice-ico .ico {
  width: 17px;
  height: 17px;
}

.notice-content {
  flex: 1;
  min-width: 0;
}

.notice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notice-head b {
  color: var(--navy-900);
  font-size: 12.5px;
  line-height: 1.25;
}

.notice-head span {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.notice-content p {
  margin: 5px 0 0;
  color: var(--navy-700);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------- favorites ---------- */

.favorites-head {
  padding: 14px 16px 0;
}

.favorites-head p {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.grid2-padded {
  padding: 12px 16px 0;
}

/* ---------- profile ---------- */

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 24px -22px rgba(11, 37, 69, .4);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 10px 18px -12px rgba(11, 37, 69, .8);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info p {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-info .profile-bonus {
  color: #1E7A34;
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 16px 0;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  display: block;
}

.stat b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.3;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-row {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  transition: border-color .15s ease;
}

.order-row:hover {
  border-color: #CBD9EC;
}

.order-row-main {
  display: block;
  color: inherit;
}

.readiness-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  background: #F7FAFF;
  color: var(--navy-700);
  font: inherit;
  font-size: 9.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.readiness-toggle:hover {
  border-color: #C6D8F0;
  background: #F1F7FF;
}

.readiness-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.readiness-toggle-label .ico {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--navy-500);
}

.readiness-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 9px;
  color: var(--muted);
}

.readiness-toggle-count {
  white-space: nowrap;
}

.readiness-chevron {
  width: 13px;
  height: 13px;
  transition: transform .15s ease;
}

.readiness-toggle[aria-expanded="true"] .readiness-chevron {
  transform: rotate(180deg);
}

.readiness-panel {
  margin-top: 8px;
  padding: 11px;
  border: 1px solid var(--blue-100);
  border-radius: 11px;
  background: #F8FBFF;
}

.readiness-panel[hidden] {
  display: none;
}

.readiness-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.readiness-summary-text b {
  display: block;
  font-size: 10px;
  color: var(--navy-900);
}

.readiness-summary-text span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.4;
  color: var(--muted);
}

.readiness-percent {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-800);
  white-space: nowrap;
}

.readiness-bar {
  height: 5px;
  margin-top: 9px;
  border-radius: 99px;
  background: #E2EAF4;
  overflow: hidden;
}

.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-500), #4C8DFF);
}

.readiness-list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.readiness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #E8EFF8;
}

.readiness-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.readiness-item-name {
  min-width: 0;
}

.readiness-item-name b {
  display: block;
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy-900);
}

.readiness-item-name span {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  color: var(--muted);
}

.readiness-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.readiness-ready {
  background: #E9F7EF;
  color: #1D7A50;
}

.readiness-making {
  background: #FFF4E5;
  color: #966014;
}

.readiness-waiting {
  background: #EEF2F8;
  color: #65758B;
}

.order-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-row-top > b {
  font-size: 11px;
  color: var(--navy-900);
}

.order-track {
  display: flex;
  align-items: flex-start;
  margin: 13px 2px 0;
}

.track-step {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.track-step::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 50%;
  left: -50%;
  height: 2px;
  border-radius: 2px;
  background: #E1E9F3;
}

.track-step:first-child::before {
  display: none;
}

.track-step.done::before,
.track-step.current::before {
  background: var(--navy-500);
}

.track-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #DCE5F0;
  box-shadow: 0 0 0 1px #DCE5F0;
}

.track-step.done .track-dot {
  background: var(--navy-600);
  box-shadow: 0 0 0 1px var(--navy-600);
}

.track-step.current .track-dot {
  background: #fff;
  box-shadow: 0 0 0 2px var(--navy-500);
}

.track-label {
  font-size: 8.5px;
  line-height: 1.2;
  color: #93A2B7;
  white-space: nowrap;
}

.track-step.done .track-label {
  color: var(--navy-700);
}

.track-step.current .track-label {
  color: var(--navy-900);
  font-weight: 700;
}

.order-track-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}

.order-track-note .ico {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
  color: var(--navy-500);
}

.order-track-cancelled {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #FCECEC;
  color: #A33A3A;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
}

.order-track-cancelled .ico {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}

.order-row-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.order-row-bottom span {
  font-size: 9px;
  color: var(--muted);
}

.order-row-bottom > b {
  font-size: 12px;
  color: var(--navy-900);
  white-space: nowrap;
}

.profile-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.profile-empty p {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.profile-empty .btn {
  margin-top: 12px;
  height: 42px;
  width: 100%;
}

.profile-links {
  margin: 16px 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.profile-links-padded {
  margin-top: 14px;
}

.profile-lang-card {
  margin-top: 14px;
}

.profile-lang-row {
  border-bottom: 0;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
}

.lang-switch form {
  margin: 0;
}

.lang-btn {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-800);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.lang-btn.is-active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

html.i18n-pending body {
  visibility: hidden;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
}

.profile-link:last-child {
  border-bottom: 0;
}

.profile-link > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-link .ico {
  width: 17px;
  height: 17px;
  color: var(--navy-600);
}

.profile-link > .ico {
  width: 13px;
  height: 13px;
  color: #A2B0C2;
}

.profile-logout button {
  width: 100%;
  text-align: left;
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #A33A3A;
}

.profile-logout button > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-logout .ico {
  color: #B05A5A;
}

.guest-hero {
  position: relative;
  overflow: hidden;
  margin: 14px 16px 0;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background:
    radial-gradient(240px 200px at 85% 0%, rgba(78, 138, 240, .45), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--navy-950));
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 28px -18px rgba(11, 37, 69, .7);
}

.guest-hero::before,
.guest-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

.guest-hero::before {
  width: 140px;
  height: 140px;
  right: -55px;
  top: -50px;
}

.guest-hero::after {
  width: 180px;
  height: 180px;
  left: -100px;
  bottom: -120px;
}

.guest-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  position: relative;
  z-index: 1;
}

.guest-ico .ico {
  width: 28px;
  height: 28px;
}

.guest-hero h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.guest-hero p {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.55;
  color: #C6D5EB;
  position: relative;
  z-index: 1;
}

.guest-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.guest-actions .btn {
  flex: 1;
  height: 42px;
}

.guest-actions .btn-primary {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .6);
}

.guest-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

/* ---------- auth ---------- */

.auth-wrap {
  padding: 22px 18px 26px;
}

.auth-head {
  text-align: center;
  margin-bottom: 18px;
}

.auth-logo {
  display: inline-block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--navy-800);
}

.auth-logo span {
  color: var(--navy-500);
}

.auth-head h2 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-900);
}

.auth-head p {
  margin: 7px auto 0;
  max-width: 290px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 18px 34px -30px rgba(11, 37, 69, .45);
}

.auth-form .btn {
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 16px;
}

.auth-switch a {
  color: var(--navy-600);
  font-weight: 800;
}

.auth-note {
  margin: 18px 0 0;
  justify-content: center;
  text-align: center;
}

/* ---------- delivery ---------- */

.delivery-hero {
  position: relative;
  overflow: hidden;
  margin: 14px 16px 0;
  padding: 24px 20px 22px;
  border-radius: 20px;
  background:
    radial-gradient(220px 200px at 80% 0%, rgba(78, 138, 240, .45), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--navy-950));
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 28px -18px rgba(11, 37, 69, .7);
}

.delivery-hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  right: -60px;
  top: -60px;
}

.delivery-hero-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  position: relative;
  z-index: 1;
}

.delivery-hero-ico .ico {
  width: 29px;
  height: 29px;
}

.delivery-hero .hero-kicker {
  display: block;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.delivery-hero h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
}

.delivery-hero p {
  margin: 7px auto 0;
  max-width: 290px;
  font-size: 10.5px;
  line-height: 1.55;
  color: #C6D5EB;
  position: relative;
  z-index: 1;
}

.delivery-section {
  padding: 18px 16px 0;
}

.delivery-section h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.steps {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 13px;
}

.step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  flex: none;
}

.step b {
  display: block;
  font-size: 11px;
  color: var(--navy-900);
}

.step p {
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}

.delivery-cta {
  padding: 18px 16px 0;
}

/* ---------- tab bar ---------- */

.tabbar {
  flex: none;
  min-height: 64px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 6px calc(4px + env(safe-area-inset-bottom));
  z-index: 35;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  color: #93A4B9;
  font-size: 9px;
  font-weight: 600;
}

.tab .ico {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: var(--navy-800);
  font-weight: 800;
}

.tab .tab-ico {
  position: relative;
  display: grid;
  place-items: center;
}

.tab .badge {
  top: -5px;
  right: -8px;
}

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  html,
  body {
    height: 100%;
  }

  body {
    background: var(--bg);
  }

  .app-stage {
    display: block;
    padding: 0;
    min-height: 100dvh;
    background: var(--bg);
  }

  .app-stage::before {
    display: none;
  }

  .app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top);
  }
}

@media (max-width: 380px) {
  .hero {
    height: 144px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero-art {
    right: 20px;
  }

  .hero-art .ring {
    width: 76px;
    height: 76px;
  }

  .hero-art .ico {
    width: 38px;
    height: 38px;
  }

  .cats {
    gap: 10px 2px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .cat-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .section {
    padding: 0 14px;
  }

  .hscroll {
    padding-left: 14px;
    padding-right: 14px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .grid2 {
    gap: 8px;
  }

  .sheet {
    padding-left: 14px;
    padding-right: 14px;
  }

  .buybar,
  .checkout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .checkout .btn {
    padding: 0 14px;
    font-size: 11.5px;
  }

  .cart-items,
  .cat-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .promo,
  .summary,
  .checkout-note,
  .profile-card,
  .stats-row,
  .profile-links,
  .guest-hero,
  .delivery-hero {
    margin-left: 14px;
    margin-right: 14px;
  }

  .favorites-head,
  .grid2-padded,
  .checkout-wrap,
  .order-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chips-row,
  .list-head,
  .cat-note {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cat-note {
    margin-left: 14px;
    margin-right: 14px;
  }

  .catalog-search {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- catalog category sections ---------- */
.catalog-sections {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 11px 0 0;
}

.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 9px;
}

.cs-eyebrow {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-head h2 {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy-900);
}

.cs-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font-size: 9.5px;
  font-weight: 700;
}

.cs-all span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 8px;
}

.cs-all.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.cs-all.active span {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.cs-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 16px 11px;
  scrollbar-width: none;
}

.cs-scroll::-webkit-scrollbar {
  display: none;
}

.cs-card {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 218px;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #F8FAFD;
  color: var(--navy-800);
  transition: border-color .15s ease, background .15s ease;
}

.cs-card.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.cs-ico {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-100);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.cs-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.cs-ico .ico {
  width: 16px;
  height: 16px;
  color: var(--navy-600);
}

.cs-body {
  min-width: 0;
}

.cs-body b {
  display: block;
  max-width: 154px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.cs-body span {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  color: var(--muted);
}

.cs-card.active .cs-body span {
  color: #C7D9F2;
}

@media (max-width: 380px) {
  .cs-head,
  .cs-scroll {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ---------- «Юбилейные клиенты» на главной (как в приложении) ---------- */

.ms-banner {
  position: relative;
  display: block;
  height: 120px;
  margin: 18px 0 0;
  background: linear-gradient(135deg, #1E7A34 0%, #2E9E44 55%, #4CB85F 100%);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.ms-banner:active {
  opacity: .96;
}

.ms-left {
  position: relative;
  z-index: 3;
  display: block;
  width: 65%;
  box-sizing: border-box;
  padding: 12px 0 0 16px;
}

.ms-emblem {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  display: block;
  width: 124px;
  height: 84px;
  transform: translateY(-50%);
  animation: ms-emblem-float 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ms-emblem-float {
  from { transform: translateY(-50%); }
  to { transform: translateY(calc(-50% - 2.5px)); }
}

.ms-emblem img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  transition: opacity .45s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.ms-emblem img.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ms-emblem img.is-leaving {
  z-index: 1;
  opacity: 0;
  transform: translateY(-16px) scale(.92);
}

.ms-sparkles {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ms-spark {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9));
  opacity: 0;
  transform: scale(.35) rotate(0deg);
  animation: ms-twinkle 3s ease-in-out infinite;
  will-change: opacity, transform;
}

.ms-spark:nth-child(1) {
  left: 3%;
  top: 8%;
  width: 10px;
  height: 10px;
  animation-duration: 3.2s;
  animation-delay: -.3s;
}

.ms-spark:nth-child(2) {
  left: 17%;
  top: 72%;
  width: 7px;
  height: 7px;
  animation-duration: 2.7s;
  animation-delay: -1.4s;
}

.ms-spark:nth-child(3) {
  left: 44%;
  top: 2%;
  width: 6px;
  height: 6px;
  animation-duration: 2.4s;
  animation-delay: -2.1s;
}

.ms-spark:nth-child(4) {
  left: 79%;
  top: 9%;
  width: 11px;
  height: 11px;
  animation-duration: 3.5s;
  animation-delay: -.8s;
}

.ms-spark:nth-child(5) {
  left: 91%;
  top: 48%;
  width: 7px;
  height: 7px;
  animation-duration: 2.9s;
  animation-delay: -1.9s;
}

.ms-spark:nth-child(6) {
  left: 63%;
  top: 83%;
  width: 8px;
  height: 8px;
  animation-duration: 3.1s;
  animation-delay: -2.5s;
}

.ms-spark:nth-child(7) {
  left: 33%;
  top: 34%;
  width: 5px;
  height: 5px;
  animation-duration: 2.5s;
  animation-delay: -1.1s;
}

@keyframes ms-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  25% { opacity: .95; transform: scale(1.15) rotate(18deg); }
  45% { opacity: .35; transform: scale(.8) rotate(35deg); }
  65% { opacity: 1; transform: scale(1.05) rotate(52deg); }
  85% { opacity: .15; transform: scale(.5) rotate(65deg); }
}

.ms-title {
  display: block;
  margin-left: 3px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}

.ms-red {
  position: relative;
  display: block;
  height: 70px;
  margin-top: 6px;
  box-sizing: border-box;
  border: 2.5px solid #fff;
  border-radius: 16px;
  background: #D92D33;
  box-shadow: 0 5px 14px rgba(8, 28, 53, .2);
  animation: ms-card-float 2.2s ease-in-out infinite alternate;
}

@keyframes ms-card-float {
  from { transform: translateY(0); }
  to { transform: translateY(-2.5px); }
}

.ms-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 7px;
  transition: opacity .25s ease, transform .25s ease;
}

.ms-counter b {
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.ms-counter small {
  display: block;
  margin-top: 3px;
  color: #FDE7E8;
  font-size: 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.ms-winner {
  opacity: 0;
  transform: translateX(12px);
}

.ms-prize {
  opacity: 0;
  transform: translateX(12px);
}

.ms-prize b {
  display: block;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.ms-banner.is-winner .ms-counter {
  opacity: 0;
  transform: translateX(-12px);
}

.ms-banner.is-prize .ms-counter {
  opacity: 0;
  transform: translateX(-12px);
}

.ms-banner.is-winner .ms-prize {
  opacity: 0;
  transform: translateX(-12px);
}

.ms-banner.is-prize .ms-winner {
  opacity: 0;
  transform: translateX(12px);
}

.ms-banner.is-winner .ms-winner {
  opacity: 1;
  transform: translateX(0);
}

.ms-banner.is-prize .ms-prize {
  opacity: 1;
  transform: translateX(0);
}

.ms-caption {
  display: block;
  color: #FDE7E8;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.1;
  white-space: nowrap;
}

.ms-winner-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 3px;
  text-align: left;
}

.ms-winner-row > i {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #D92D33;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ms-winner-row > span {
  min-width: 0;
}

.ms-winner-row b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-winner-row small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 1px;
  color: #FDE7E8;
  font-size: 7.5px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-next {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.ms-remaining {
  display: block;
  margin-top: 1px;
  color: #FDE7E8;
  font-size: 7.5px;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .ms-left { width: 64%; padding-left: 12px; }
  .ms-emblem { right: 6px; width: 100px; height: 72px; }
  .ms-sparkles { width: 36%; }
  .ms-title { font-size: 8.5px; }
  .ms-counter b { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-red,
  .ms-emblem {
    animation: none;
  }
  .ms-emblem img {
    transition: none;
  }
  .ms-spark {
    animation: none;
    opacity: .55;
    transform: scale(.8);
  }
}

/* ---------- Страница «Юбилейные клиенты» (как в приложении) ---------- */

.msp-head {
  position: relative;
  padding: 10px 16px 16px;
  background: linear-gradient(135deg, #1E7A34 0%, #2E9E44 55%, #4CB85F 100%);
  color: #fff;
}

.msp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.msp-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
}

.msp-back .ico {
  width: 21px;
  height: 21px;
}

.msp-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  margin-bottom: -56px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(8, 28, 53, .55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity .16s ease, transform .16s ease;
}

.msp-sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.msp-sticky-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy-900);
  text-decoration: none;
}

.msp-sticky-back .ico {
  width: 22px;
  height: 22px;
}

.msp-sticky-counter {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  min-height: 39px;
  margin: 0 auto;
  padding: 4px 18px;
  box-sizing: border-box;
  border-radius: 50px;
  background: #D92D33;
  color: #fff;
  line-height: 1;
}

.msp-sticky-counter b {
  font-size: 14px;
  font-weight: 800;
}

.msp-sticky-counter small {
  margin-top: 3px;
  color: #FDE7E8;
  font-size: 6.5px;
}

.msp-sticky-live {
  flex: none;
  padding: 4px 10px;
  border-radius: 7px;
  background: #D92D33;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.msp-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 7px;
  background: #D92D33;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.msp-pill {
  margin: 9px 0 0;
  padding: 5px 12px;
  border: 2.5px solid #fff;
  border-radius: 50px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -.02em;
}

.msp-red-pill {
  margin-top: 7px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #D92D33;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.msp-hand {
  margin: 0 4px;
  font-size: 14px;
  vertical-align: -1px;
}

.msp-counter {
  padding: 18px 16px 12px;
  text-align: center;
  background: #fff;
}

.msp-counter h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

.msp-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  margin-top: 12px;
  padding: 8px 24px;
  border-radius: 50px;
  background: #D92D33;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.msp-counter p {
  margin: 8px 0 0;
  color: var(--navy-900);
  font-size: 11px;
}

.msp-conditions {
  display: inline-flex;
  margin-top: 9px;
  padding: 6px 20px;
  border: 0;
  border-radius: 50px;
  background: #FDE7E8;
  color: #D92D33;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.msp-winners {
  padding: 4px 16px 10px;
  background: #fff;
}

.msp-winner {
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #E3EAF4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 28, 53, .05);
}

.msp-order-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  background: #D92D33;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.msp-winner-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.msp-avatar {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DFF3E3;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 800;
}

.msp-winner-info {
  min-width: 0;
  flex: 1;
}

.msp-winner-info b {
  display: block;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msp-winner-info small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msp-gift {
  flex: none;
  padding: 5px 10px;
  border-radius: 50px;
  background: #D92D33;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.msp-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #E3EAF4;
  border-radius: 14px;
  background: #fff;
}

.msp-empty > span {
  font-size: 20px;
}

.msp-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.msp-hero {
  padding: 24px 16px;
  background: #F0F9F2;
  text-align: center;
}

.msp-hero-pill {
  display: inline-block;
  padding: 9px 26px;
  border: 2px solid #fff;
  border-radius: 50px;
  background: linear-gradient(135deg, #2E9E44, #4CB85F);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 3px 8px rgba(8, 28, 53, .12);
}

.msp-hero p {
  margin: 12px 0 0;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 800;
}

.msp-hero-prize {
  margin-top: 10px;
  color: #1E7A34;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.msp-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 18px;
  background: #F0F9F2;
}

.msp-tier {
  display: flex;
  flex-direction: column;
  min-height: 124px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #DDEBE4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 28, 53, .05);
}

.msp-tier-full {
  grid-column: 1 / -1;
  min-height: 106px;
}

.msp-tier-title {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.msp-tier b {
  margin-top: 3px;
  color: #1E7A34;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
}

.msp-tier-full b {
  font-size: 26px;
}

.msp-tier-prize {
  margin-top: 4px;
  color: #1E7A34;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.msp-tier-main .msp-tier-prize {
  color: #fff;
  font-size: 13px;
}

.msp-progress {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #DFF3E3;
}

.msp-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2E9E44;
}

.msp-tier small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.2;
}

.msp-tier-main {
  border: 0;
  background: linear-gradient(135deg, #2E9E44, #4CB85F);
  box-shadow: 0 2px 7px rgba(8, 28, 53, .12);
}

.msp-tier-main .msp-tier-title,
.msp-tier-main b,
.msp-tier-main small {
  color: #fff;
}

.msp-tier-main b {
  font-size: 30px;
}

.msp-tier-main .msp-progress {
  background: rgba(255, 255, 255, .35);
}

.msp-tier-main .msp-progress i {
  background: #fff;
}

.msp-timeline {
  padding: 20px 16px 26px;
  background: #fff;
  text-align: center;
}

.msp-timeline h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.msp-steps {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.msp-step-link {
  width: 100%;
  height: 34px;
  pointer-events: none;
}

.msp-step-link svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.msp-step-link path {
  fill: none;
  stroke: #2E9E44;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.msp-step-link circle {
  fill: #2E9E44;
}

.msp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.msp-step-left {
  align-items: flex-start;
}

.msp-step-right {
  align-items: flex-end;
}

.msp-step span {
  color: var(--navy-900);
  font-size: 10.5px;
  font-weight: 800;
}

.msp-step b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 24px;
  border-radius: 50px;
  background: #D4EFA0;
  color: #1E7A34;
  font-size: 23px;
  font-weight: 800;
}

.msp-step b i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2E9E44;
  color: #fff;
  font-size: 13px;
  font-style: normal;
}

.msp-step-prize {
  color: #1E7A34;
  font-size: 12px;
  font-weight: 800;
}

.msp-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.msp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 28, 53, .55);
}

.msp-modal[hidden] {
  display: none;
}

.msp-modal-card {
  width: min(360px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 16px 50px rgba(8, 28, 53, .28);
}

.msp-modal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.msp-modal-card p {
  margin: 0;
  color: #54687F;
  font-size: 12px;
  line-height: 1.55;
}

.msp-modal-card button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: #D92D33;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- AI assistant ---------- */

.ai-fab {
  position: absolute;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #081C35, #12345F 55%, #2F6BE0);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 12px 24px -10px rgba(8, 28, 53, .75);
  transition: opacity .18s ease, transform .18s ease;
}

.ai-fab:active {
  transform: scale(.96);
}

.ai-fab.is-open {
  opacity: 0;
  pointer-events: none;
}

.ai-fab-flat {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

.ai-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  height: min(520px, 64%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -22px rgba(8, 28, 53, .65);
}

.ai-panel[hidden] {
  display: none;
}

.ai-panel-flat {
  bottom: calc(84px + env(safe-area-inset-bottom));
  height: min(536px, 68%);
}

.ai-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ai-head b {
  display: block;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
}

.ai-head small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

.ai-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 20px;
  line-height: 1;
}

.ai-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: #F4F7FC;
  scrollbar-width: none;
}

.ai-messages::-webkit-scrollbar {
  display: none;
}

.ai-msg {
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ai-bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: #fff;
  color: var(--navy-800);
}

.ai-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--navy-800);
  color: #fff;
}

.ai-typing {
  color: var(--muted);
  font-style: italic;
}

.ai-suggestions {
  display: flex;
  flex: none;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.ai-suggestions button {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-form {
  display: flex;
  flex: none;
  gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.ai-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F8FAFD;
  color: var(--navy-900);
  font-size: 11px;
}

.ai-send {
  flex: none;
  width: 42px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy-800);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ---------- AI assistant: polished look ---------- */

.ai-fab {
  width: 54px;
  height: 54px;
  border-width: 2px;
  background: radial-gradient(circle at 28% 22%, #5C93FF 0%, #2F6BE0 34%, #0B2545 78%);
  box-shadow:
    0 16px 28px -12px rgba(8, 28, 53, .8),
    0 0 0 4px rgba(255, 255, 255, .18);
  font-size: 15px;
  letter-spacing: -.06em;
  overflow: visible;
}

.ai-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid rgba(47, 107, 224, .45);
  border-radius: 50%;
  animation: ai-fab-ring 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes ai-fab-ring {
  0% { opacity: .75; transform: scale(.88); }
  70% { opacity: 0; transform: scale(1.22); }
  100% { opacity: 0; transform: scale(1.22); }
}

.ai-panel {
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 34px 70px -28px rgba(8, 28, 53, .8),
    0 0 0 1px rgba(255, 255, 255, .4);
}

.ai-head {
  padding: 13px 13px 14px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 153, 255, .45), transparent 42%),
    linear-gradient(135deg, #07182D, #12345F 58%, #2F6BE0);
}

.ai-head-text {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}

.ai-head b {
  color: #fff;
  font-size: 13.5px;
  letter-spacing: -.01em;
}

.ai-head small {
  display: flex;
  align-items: center;
  margin-top: 2px;
  color: #B9CBE6;
  font-size: 8px;
}

.ai-online {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 7px #4ADE80;
}

.ai-orb {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff 0%, #ABC7FF 34%, #2F6BE0 72%, #12345F 100%);
  color: #0B2545;
  font-size: 19px;
  line-height: 1;
  box-shadow:
    0 0 22px rgba(95, 145, 255, .7),
    inset 0 1px 3px rgba(255, 255, 255, .8);
}

.ai-close {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 19px;
  backdrop-filter: blur(6px);
}

.ai-messages {
  gap: 10px;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 0 0, rgba(47, 107, 224, .08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(76, 184, 95, .07), transparent 50%),
    #F5F8FD;
}

.ai-msg {
  position: relative;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 10.5px;
  line-height: 1.5;
  animation: ai-message-in .24s ease both;
}

@keyframes ai-message-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-bot {
  margin-left: 30px;
  border: 0;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 7px 18px -12px rgba(8, 28, 53, .5);
}

.ai-bot::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: -30px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F6BE0, #081C35);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 4px 10px -5px rgba(8, 28, 53, .8);
}

.ai-typing {
  margin-left: 30px;
  border: 0;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 7px 18px -12px rgba(8, 28, 53, .5);
}

.ai-user {
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #081C35, #12345F 58%, #2F6BE0);
  box-shadow: 0 9px 18px -12px rgba(8, 28, 53, .9);
}

.ai-suggestions {
  gap: 7px;
  padding: 9px 12px;
  border-top: 1px solid #E8EFF9;
  background: linear-gradient(180deg, #fff, #F8FBFF);
}

.ai-suggestions button {
  padding: 7px 11px;
  border: 1px solid #DCE8F8;
  background: #fff;
  color: var(--navy-700);
  box-shadow: 0 3px 8px -7px rgba(8, 28, 53, .7);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.ai-suggestions button::before {
  content: "✦";
  margin-right: 5px;
  color: #2F6BE0;
}

.ai-suggestions button:active {
  border-color: #B9D0F5;
  background: #F1F6FE;
  transform: scale(.97);
}

.ai-form {
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #E8EFF9;
  background: #fff;
}

.ai-input {
  height: 42px;
  border: 1.5px solid #E3EAF4;
  border-radius: 14px;
  background: #F5F8FD;
  font-size: 11.5px;
}

.ai-input:focus {
  border-color: #2F6BE0;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 224, .1);
}

.ai-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F6BE0, #081C35);
  box-shadow: 0 8px 16px -8px rgba(8, 28, 53, .8);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .ai-panel { left: 8px; right: 8px; }
  .ai-orb { width: 34px; height: 34px; }
}

/* ---------- portrait lock for phones ---------- */
/* When a phone is turned sideways, the site keeps its portrait layout
   instead of switching to the desktop frame. The class is set by a
   small script in <head> and updated on orientation changes. */

html.portrait-lock,
html.portrait-lock body {
  overflow: hidden;
  background: #071522;
}

html.portrait-lock .app-stage {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100vh;
  height: 100vw;
  width: 100dvh;
  height: 100dvw;
  min-height: 0;
  padding: 0;
  background: var(--bg);
  -webkit-transform: rotate(90deg) translateY(-100%);
  transform: rotate(90deg) translateY(-100%);
  -webkit-transform-origin: top left;
  transform-origin: top left;
}

html.portrait-lock .app-stage::before {
  display: none;
}

html.portrait-lock .app {
  width: 100%;
  height: 100%;
  padding-top: env(safe-area-inset-top);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.portrait-hint {
  display: none;
}

html.portrait-lock .portrait-hint {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(8, 28, 53, .86);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.portrait-hint-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(47, 107, 224, .35);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
