
/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Inter", Roboto, sans-serif;
  font-weight: 300;
  color: #1a1d24;
  background: #f5f7fb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  /* Место под фиксированное нижнее меню — иначе оно перекрывает контент и клики */
  --bottom-nav-space: calc(100px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--bottom-nav-space);
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font: inherit; border: none; outline: none; background: transparent; color: inherit; }
ul { list-style: none; }

/* Фоновый мягкий градиент */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(120,160,255,.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,150,200,.20), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(120,255,220,.18), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ============ GLASS ============ */
.glass {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 30px rgba(20,30,60,.06);
}
.glass-strong {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
}

/* ============ LAYOUT ============ */
.app { min-height: 100vh; }

/* Desktop sidebar (hidden on mobile) */
.sidebar { display: none; }

/* Top header — thin, airy */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,247,251,.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.6);
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.header-row {
  display: flex; align-items: center; gap: 10px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 17px; letter-spacing: -.02em;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg,#7aa2ff,#c58bff 60%,#ff9ec4);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(140,120,255,.35);
  color: #fff;
}
.logo-mark svg { width: 16px; height: 16px; }

.search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #6b7280;
  font-weight: 300;
  font-size: 14px;
  transition: .25s;
}
.search:hover, .search:focus-within {
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 20px rgba(120,140,255,.10);
}
.search svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.search input { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: .2s;
  color: #1a1d24;
  position: relative;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(120,140,255,.14); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5d8f; border: 1.5px solid #fff;
}

/* Location row */
.location {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 300;
  padding: 0 2px;
}
.location strong { color: #1a1d24; font-weight: 500; }
.location svg { width: 13px; height: 13px; }

/* ============ CATEGORIES SCROLL ============ */
.categories {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 6px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 400;
  color: #404652;
  transition: .2s;
  white-space: nowrap;
}
.cat-chip:hover { transform: translateY(-1px); }
.cat-chip.active {
  background: linear-gradient(135deg,#1a1d24,#333846);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(26,29,36,.25);
}
.cat-chip .em { font-size: 14px; }

/* ============ HERO CAROUSEL ============ */
.carousel {
  margin: 8px 14px 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  height: 170px;
}
.slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  color: #fff;
  overflow: hidden;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45));
  z-index: 1;
}
.slide-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.slide-1 .slide-bg { background: linear-gradient(120deg,#6a8dff 0%,#a78bfa 55%,#f0a6d8 100%); }
.slide-2 .slide-bg { background: linear-gradient(120deg,#34d399 0%,#22d3ee 55%,#60a5fa 100%); }
.slide-3 .slide-bg { background: linear-gradient(120deg,#fb7185 0%,#fbbf24 60%,#f472b6 100%); }
.slide-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 10%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(300px 180px at 90% 90%, rgba(255,255,255,.22), transparent 60%);
}
.slide.has-image .slide-bg::before {
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 100%);
}
.slide-content { position: relative; z-index: 2; }
.slide h3 {
  font-size: 18px; font-weight: 500; letter-spacing: -.02em;
  margin-bottom: 4px;
}
.slide p { font-size: 13px; font-weight: 300; opacity: .92; margin-bottom: 10px; }
.slide-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #1a1d24;
  font-size: 12.5px; font-weight: 500;
  backdrop-filter: blur(10px);
  transition: .2s;
}
.slide-cta:hover { transform: translateY(-1px); }
.slide-cta svg { width: 12px; height: 12px; }

.dots {
  position: absolute; bottom: 12px; right: 18px;
  display: flex; gap: 5px; z-index: 3;
}
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: .3s;
  cursor: pointer;
  pointer-events: auto;
}
.dots i.on { background: #fff; width: 18px; border-radius: 3px; }

/* ============ QUICK ACTIONS ============ */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 14px 4px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: .25s;
  cursor: pointer;
}
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(120,140,255,.14); }
.quick-ic {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(122,162,255,.22), rgba(197,139,255,.22));
  color: #4a5a8a;
}
.quick-ic svg { width: 17px; height: 17px; }
.quick-item span { font-size: 11px; color: #4a5162; font-weight: 400; text-align: center; line-height: 1.2; }

/* ============ SECTION ============ */
.section { padding: 18px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 16px 10px;
}
.section-head h2 {
  font-size: 16px; font-weight: 500; letter-spacing: -.02em;
}
.section-head a {
  font-size: 12.5px; color: #6b7280; font-weight: 400;
  display: inline-flex; align-items: center; gap: 3px;
}
.section-head a svg { width: 11px; height: 11px; }

/* ============ MASTER CARDS — 2 per row ============ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
  position: relative;
  z-index: 2;
}
.card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 6px 22px rgba(20,30,60,.05);
  transition: .28s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
  cursor: pointer;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,30,60,.10); }
.card-img {
  height: 96px;
  position: relative;
  background: linear-gradient(135deg,#dfe7ff,#f3e0ff 60%,#ffe1ec);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(200px 100px at 20% 0%, rgba(255,255,255,.4), transparent 60%);
}
.card-avatar {
  position: absolute; bottom: -18px; left: 12px;
  width: 42px; height: 42px; border-radius: 14px;
  border: 2.5px solid rgba(255,255,255,.95);
  background: linear-gradient(135deg,#7aa2ff,#c58bff);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 18px rgba(120,140,255,.35);
  z-index: 2;
}
.card-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  font-size: 10.5px; font-weight: 500; color: #1a1d24;
  display: inline-flex; align-items: center; gap: 3px;
  z-index: 2;
}
.card-badge svg { width: 10px; height: 10px; color: #f59e0b; }
.card-body {
  padding: 26px 12px 12px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.card-name {
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  line-height: 1.2;
  display: flex; align-items: center; gap: 4px;
}
.verified { width: 13px; height: 13px; color: #3b82f6; flex-shrink: 0; }
.card-meta {
  font-size: 11px; color: #7a8294; font-weight: 300;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #c8cdd8; }
.card-meta .stars { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; }
.card-meta .stars svg { width: 10px; height: 10px; }
.card-bottom {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.price {
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
}
.price span { font-size: 10.5px; color: #8a90a0; font-weight: 300; }
.card-btn {
  padding: 6px 11px; border-radius: 999px;
  background: linear-gradient(135deg,#1a1d24,#333846);
  color: #fff; font-size: 11px; font-weight: 500;
  transition: .2s;
  white-space: nowrap;
}
.card-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(26,29,36,.28); }

/* Online indicator */
.online-dot {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: #10b981; font-weight: 400;
}
.online-dot i {
  width: 6px; height: 6px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

/* ============ AD BANNERS ============ */
.ad-banner {
  margin: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex; align-items: center; gap: 12px;
  background:
    linear-gradient(120deg, rgba(122,162,255,.14), rgba(197,139,255,.14)),
    rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
}
.ad-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(120,140,255,.14); }
a.ad-banner { text-decoration: none; color: inherit; cursor: pointer; }
.ad-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 120px at 90% 0%, rgba(255,255,255,.5), transparent 60%);
  pointer-events: none;
}
.ad-thumb {
  width: 56px; height: 56px; border-radius: 14px;
  overflow: hidden; flex-shrink: 0; position: relative; z-index: 1;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-ic {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#7aa2ff,#c58bff);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(140,120,255,.32);
}
.ad-ic svg { width: 20px; height: 20px; }
.ad-text { flex: 1; position: relative; z-index: 1; }
.ad-text h4 {
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  margin-bottom: 2px;
}
.ad-text p { font-size: 11.5px; color: #6b7280; font-weight: 300; }
.ad-badge {
  position: absolute; top: 8px; right: 10px;
  font-size: 9px; letter-spacing: .06em;
  color: #97a0b0; text-transform: uppercase; font-weight: 400;
}
.ad-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.8);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ad-arrow svg { width: 13px; height: 13px; }

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}
.step {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.step-num {
  width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(122,162,255,.25), rgba(197,139,255,.25));
  color: #4a5a8a;
  font-size: 12px; font-weight: 500;
  margin-bottom: 8px;
}
.step h4 { font-size: 13px; font-weight: 500; margin-bottom: 3px; letter-spacing: -.01em; }
.step p { font-size: 11.5px; color: #7a8294; font-weight: 300; line-height: 1.4; }

/* ============ FOOTER ============ */
.footer {
  margin-top: 26px;
  padding: 26px 18px calc(100px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.35));
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.footer h5 {
  font-size: 12px; font-weight: 500; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .06em; color: #1a1d24;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer li a { font-size: 12.5px; color: #6b7280; font-weight: 300; transition: .2s; }
.footer li a:hover { color: #1a1d24; }
.footer-bottom {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 11.5px; color: #97a0b0; font-weight: 300; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  transition: .2s;
}
.socials a:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(120,140,255,.16); }
.socials svg { width: 15px; height: 15px; color: #4a5162; }

/* ============ BOTTOM NAV (mobile) ============ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 -6px 24px rgba(20,30,60,.06);
  display: flex; justify-content: space-around; align-items: center;
}
.nav-item {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px;
  color: #8a90a0;
  font-size: 9.5px; font-weight: 400;
  border-radius: 14px;
  transition: .2s;
  position: relative;
}
.nav-item span, .nav-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nav-item svg { width: 20px; height: 20px; transition: .2s; }
.nav-item.active { color: #1a1d24; }
.nav-item.active svg { transform: translateY(-1px); }
.nav-item.active::before {
  content: ""; position: absolute; top: -1px;
  width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg,#7aa2ff,#c58bff);
}
.nav-item .dot {
  position: absolute; top: 4px; right: calc(50% - 14px);
  width: 6px; height: 6px; border-radius: 50%; background: #ff5d8f;
}

/* ============ FAB (button "+") ============ */
.fab {
  width: 46px; height: 46px; border-radius: 16px;
  background: linear-gradient(135deg,#7aa2ff,#c58bff 60%,#ff9ec4);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(140,120,255,.4);
  transition: .22s;
  flex: 0 0 46px;
}
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab svg { width: 22px; height: 22px; }

/* ============ MOBILE DRAWER MENU ============ */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,15,30,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: .3s;
  z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  max-height: 82vh;
  border-radius: 26px 26px 0 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  background: rgba(252,253,255,.86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 -20px 50px rgba(20,30,60,.16);
  transform: translateY(105%);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  pointer-events: none;
}
.drawer.open { transform: translateY(0); pointer-events: auto; }
.drawer-handle {
  width: 38px; height: 4px; border-radius: 3px;
  background: #d5dae5; margin: 6px auto 14px;
}
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 18px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.drawer-avatar {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(135deg,#7aa2ff,#c58bff);
  display: grid; place-items: center;
  color: #fff; font-weight: 500; font-size: 17px;
}
.drawer-user h4 { font-size: 14px; font-weight: 500; }
.drawer-user p { font-size: 12px; color: #7a8294; font-weight: 300; }

.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 400;
  transition: .18s;
}
.drawer-link:hover { background: rgba(122,162,255,.09); }
.drawer-link svg { width: 19px; height: 19px; color: #5a6478; }
.drawer-link .chev { margin-left: auto; color: #b8bec9; }
.drawer-link.badge-wrap { position: relative; }
.drawer-link .tag {
  margin-left: auto;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg,#7aa2ff,#c58bff);
  color: #fff; font-size: 10px; font-weight: 500;
}

/* ============ TABLET / DESKTOP ============ */
@media (min-width: 768px) {
  body {
    --bottom-nav-space: env(safe-area-inset-bottom, 0px);
    padding-bottom: var(--bottom-nav-space);
  }
  .bottom-nav { display: none; }
  .header { padding: 12px 24px; }
  .search { max-width: 480px; }
  .grid-2 { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 24px; }
  .carousel { height: 230px; margin: 10px 24px 0; border-radius: 26px; }
  .categories { padding: 14px 24px 8px; }
  .quick { grid-template-columns: repeat(4,1fr); gap: 12px; padding: 16px 24px 4px; }
  .ad-banner { margin: 16px 24px; }
  .section-head { padding: 0 26px 12px; }
  .steps { grid-template-columns: repeat(4,1fr); gap: 12px; padding: 0 24px; }
  .footer-cols { grid-template-columns: repeat(4,1fr); }
  .footer { padding: 30px 24px 30px; }
}

/* Desktop sidebar layout */
@media (min-width: 1100px) {
  .app { display: grid; grid-template-columns: 240px 1fr; max-width: 1440px; margin: 0 auto; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px 14px;
    position: sticky; top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  .sidebar .logo { padding: 6px 10px 18px; font-size: 18px; }
  .side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 14px;
    font-size: 14px; font-weight: 400; color: #404652;
    transition: .18s;
    cursor: pointer;
  }
  .side-link:hover { background: rgba(122,162,255,.09); color: #1a1d24; }
  .side-link.active {
    background: linear-gradient(135deg, rgba(122,162,255,.18), rgba(197,139,255,.18));
    color: #1a1d24; font-weight: 500;
  }
  .side-link svg { width: 19px; height: 19px; }
  .side-link .tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(122,162,255,.22); font-size: 10px; font-weight: 500; color: #4a5a8a; }
  .side-sep { height: 1px; background: rgba(0,0,0,.05); margin: 10px 8px; }
  .side-promo {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(122,162,255,.2), rgba(255,158,196,.2));
    border: 1px solid rgba(255,255,255,.85);
    font-size: 12.5px; color: #4a5162; font-weight: 300;
  }
  .side-promo strong { display: block; font-weight: 500; font-size: 13.5px; color: #1a1d24; margin-bottom: 4px; }
  .side-promo button {
    margin-top: 10px;
    padding: 7px 12px; border-radius: 999px;
    background: #1a1d24; color: #fff;
    font-size: 11.5px; font-weight: 500;
  }
  .header { padding: 14px 24px; }
  .grid-2 { grid-template-columns: repeat(4, 1fr); }
  .main { min-width: 0; }
}

/* SVG icons in categories */
.cat-chip .em.ic, .quick-ic { display: inline-flex; align-items: center; justify-content: center; }
.cat-chip .em.ic svg { opacity: .85; }
.quick-ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, rgba(122,162,255,.15), rgba(197,139,255,.15)); color: #4a5a8a; margin: 0 auto 6px; }

/* Card v2 — без обрезанных аватаров */
.card-v2 {
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 22px rgba(20,30,60,.05);
  transition: .28s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  position: relative; z-index: 1;
  -webkit-tap-highlight-color: rgba(122,162,255,.15);
  touch-action: manipulation;
  cursor: pointer;
}
.card-v2:active { transform: scale(.98); }
.card-v2 .card-header-bg,
.card-v2 .card-online,
.card-v2 .card-badge,
.card-v2 .card-btn { pointer-events: none; }
.card-v2:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,30,60,.1); }
.card-header {
  position: relative; height: 72px; display: flex; align-items: flex-end; padding: 0 12px 0;
}
.card-header-bg {
  position: absolute; inset: 0; opacity: .4;
}
.card-header-bg.has-cover { opacity: .85; }
.card-header-bg.bg-green { background: linear-gradient(135deg,#34d399,#22d3ee); }
.card-header-bg.bg-orange { background: linear-gradient(135deg,#f59e0b,#ff5d8f); }
.card-header-bg.bg-pink { background: linear-gradient(135deg,#ff9ec4,#c58bff); }
.card-header-bg.bg-blue { background: linear-gradient(135deg,#60a5fa,#7aa2ff); }
.card-avatar-v2 {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: 16px;
  margin-bottom: -20px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 500; color: #fff;
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(20,30,60,.12);
}
.card-avatar-v2 img,
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.card-avatar-v2.green { background: linear-gradient(135deg,#34d399,#22d3ee); }
.card-avatar-v2.orange { background: linear-gradient(135deg,#f59e0b,#ff5d8f); }
.card-avatar-v2.pink { background: linear-gradient(135deg,#ff9ec4,#c58bff); }
.card-avatar-v2.blue { background: linear-gradient(135deg,#60a5fa,#7aa2ff); }
.card-online {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: rgba(16,185,129,.9); color: #fff;
}
.card-v2 .card-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
}
.card-v2 .card-body { padding: 28px 12px 12px; }
.pro-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 5px; border-radius: 4px;
  background: linear-gradient(135deg,#f59e0b,#ff5d8f); color: #fff;
}
