:root{
  /* NEW PALETTE */
  --bg:#F7F3ED;              /* фон сайта */
  --text:#161616;            /* основной текст */
  --muted:rgba(20,20,20,.68);
  --stroke:rgba(20,20,20,.10);

  --accent:#A8002C;          /* красный */
  --accentDark:#870023;

  /* glass style */
  --glass:rgba(255,255,255,.55);
  --glass2:rgba(255,255,255,.72);

  --radius:28px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,Segoe UI,Roboto,Arial;
  overflow-x:hidden;
}

/* avoid iOS white gaps / overscroll */
body{min-height:100vh}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* =========================
   FIXED HEADER ITEMS
   ========================= */
.brand{
  position:fixed;
  left:18px; top:14px;
  display:flex;
  gap:12px;
  align-items:center;
  z-index:50;
}
.brand__logo{
  width:44px;height:44px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(20,20,20,.08);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.brand__logo img{
  width:100%;height:100%;
  object-fit:cover;
}
.brand__title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  opacity:.95;
}
.brand__sub{
  font-size:11px;
  opacity:.6;
}

.topActions{
  position:fixed;
  right:18px; top:14px;
  display:flex;
  gap:10px;
  z-index:50;
}
.circleBtn{
  width:44px;height:44px;
  border-radius:50%;
  border:1px solid rgba(20,20,20,.12);
  background:rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display:grid;
  place-items:center;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

/* =========================
   DRAWER
   ========================= */
.drawerBackdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  z-index:60;
  transition:.25s;
}
.drawer{
  position:fixed;
  top:0; right:-380px;
  width:340px;
  max-width:88vw;
  height:100vh;
  background:rgba(247,243,237,.92);
  border-left:1px solid rgba(20,20,20,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index:61;
  transition:.25s;
  padding:18px;
}
.drawer.isOpen{right:0}
.drawer.isOpen ~ .drawerBackdrop,
.drawerBackdrop.isOpen{
  opacity:1;
  pointer-events:auto;
}
.drawer__close{
  border:1px solid rgba(20,20,20,.12);
  width:42px;height:42px;
  border-radius:14px;
  background:rgba(255,255,255,.65);
  color:#111;
  cursor:pointer;
}
.drawer__title{
  margin-top:14px;
  font-weight:900;
  letter-spacing:.12em;
  font-size:13px;
  opacity:.85;
}
.drawer__link{
  margin-top:10px;
  display:block;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(20,20,20,.12);
  background:rgba(255,255,255,.65);
}

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  height:100vh;
  width:100%;
  overflow:hidden;
  background:var(--bg);
}

/* video stays darkened like reference */
.heroVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
  z-index:1;
}

/* overlay tuned for light theme (so text is readable) */
.hero__overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    radial-gradient(1000px 600px at 15% 70%, rgba(0,0,0,.10), rgba(0,0,0,.45)),
    linear-gradient(to bottom, rgba(0,0,0,.40), rgba(0,0,0,.55));
}

.heroContent{
  position:relative;
  z-index:3;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:110px 56px 48px 56px;
  max-width:980px;
}

/* hero text remains white because video is behind */
.heroTitle{
  color:#fff;
  font-size:80px;
  line-height:0.98;
  font-weight:1000;
  margin:0 0 14px 0;
  letter-spacing:-.03em;
  text-shadow:0 18px 60px rgba(0,0,0,.65);
}
.heroText{
  margin:0 0 22px 0;
  font-size:22px;
  line-height:1.35;
  color:rgba(255,255,255,.78);
  text-shadow:0 18px 60px rgba(0,0,0,.55);
}
.heroText b{
  color:#fff;
  font-weight:1000;
}
.heroButtons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:999px;
  font-weight:900;
  border:1px solid transparent;
  user-select:none;
}

.btnPrimary{
  background:var(--accent);
  border-color:rgba(255,255,255,.0);
  color:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.45);
}
.btnPrimary:hover{ background:var(--accentDark); }

.btnGhost{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.22);
  color:#fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* project badge */
.projectBadge{
  margin-top:10px;
}
.projectBadge__img img{
  max-width:420px;
  width:min(420px, 75vw);
  height:auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
}

/* =========================
   CANVAS (second block on main)
   ========================= */
.canvas{
  position:relative;
  background:var(--bg);
  padding:90px 56px 180px 56px;
  min-height:120vh;
}

.canvasHeader{
  max-width:980px;
  margin:0 auto 36px auto;
  text-align:center;
}
.canvasHeader__title{
  font-weight:1000;
  letter-spacing:.22em;
  font-size:13px;
  opacity:.86;
}
.canvasHeader__text{
  margin-top:12px;
  color:var(--muted);
  font-size:16px;
  line-height:1.45;
}

.zoomStack{
  max-width:980px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding-top:10px;
}

/* cards not clickable */
.zoomCard{
  pointer-events:none;
  cursor:default;

  padding:22px 24px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(20,20,20,.10);
  box-shadow:0 30px 60px rgba(0,0,0,.10);
  transform-origin:center center;
  transition:
    transform .12s linear,
    opacity .12s linear,
    filter .12s linear;
}

.zoomCard__title{
  font-weight:1000;
  letter-spacing:.05em;
  font-size:14px;
  opacity:.9;
  margin-bottom:8px;
}
.zoomCard__text{
  font-size:15px;
  line-height:1.4;
  color:rgba(20,20,20,.72);
}

/* bottom info block */
.bottomInfo{
  max-width:980px;
  margin:44px auto 0 auto;
  padding:26px 24px;
  border-radius:24px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(20,20,20,.10);
  box-shadow:0 30px 60px rgba(0,0,0,.10);
}

.bottomInfo__title{
  font-weight:1000;
  letter-spacing:.06em;
  font-size:14px;
  opacity:.92;
}

.bottomInfo__text{
  margin-top:10px;
  color:rgba(20,20,20,.72);
  font-size:15px;
  line-height:1.45;
}

.bottomInfo__actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================
   RESPONSIVE (main)
   ========================= */
@media (max-width: 880px){
  .heroContent{padding:120px 20px 34px 20px}
  .heroTitle{font-size:54px}
  .heroText{font-size:18px}
  .canvas{padding:70px 16px 160px 16px}
}

@media (max-width: 420px){
  .brand{left:12px}
  .topActions{right:12px}
  .heroTitle{font-size:44px}
}


/* =================================================
   HOW IT WORKS PAGE (LIGHT THEME)
   ================================================= */

/* ⚠️ ВАЖНО: всё настраиваем только внутри body.howBody,
   чтобы "не размазывало" весь сайт */
body.howBody{
  margin:0;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

/* главный контейнер — фикс ширины */
body.howBody .howPage{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:28px 18px 88px;
}

/* top */
body.howBody .howTop{ margin-bottom:18px; }

body.howBody .howBack{
  display:inline-flex;
  text-decoration:none;
  color:rgba(20,20,20,.72);
  font-weight:900;
  font-size:14px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(20,20,20,.12);
  transition:.2s ease;
  box-shadow:0 16px 40px rgba(0,0,0,.08);
}
body.howBody .howBack:hover{ transform:translateY(-1px); }

/* hero */
body.howBody .howHero{ padding:14px 6px 10px; }

body.howBody .howHero__title{
  margin:14px 0 10px;
  font-size:54px;
  line-height:1.05;
  letter-spacing:-0.03em;
}

body.howBody .howHero__lead{
  margin:0 0 18px;
  color:rgba(20,20,20,.70);
  font-size:18px;
  line-height:1.6;
  max-width:820px;
}

/* ✅ PREMIUM 100% BANNER */
body.howBody .svoCard{
  width:100%;
  border-radius:28px;
  padding:18px 22px;
  overflow:hidden;

  background:
    radial-gradient(900px 360px at 18% 10%, rgba(168,0,44,.22), transparent 62%),
    radial-gradient(900px 340px at 86% 70%, rgba(0,0,0,.06), transparent 62%),
    rgba(255,255,255,.74);

  border:1px solid rgba(20,20,20,.12);
  box-shadow:0 28px 70px rgba(0,0,0,.10);
}

body.howBody .svoCard__top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:start;
}

body.howBody .svoCard__badge{
  display:inline-flex;
  width:max-content;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(20,20,20,.80);
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(20,20,20,.12);
  white-space:nowrap;
}

/* right big percent */
body.howBody .svoCard__percent{
  font-size:66px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-0.04em;
  white-space:nowrap;
  user-select:none;

  background: linear-gradient(
    120deg,
    rgba(20,20,20,.45) 0%,
    rgba(20,20,20,.95) 36%,
    rgba(168,0,44,.92) 50%,
    rgba(20,20,20,.95) 64%,
    rgba(20,20,20,.45) 100%
  );
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation: percentShine 2.8s linear infinite;
}

@keyframes percentShine{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 220% 50%; }
}

/* text area */
body.howBody .svoCard__text{
  margin-top:12px;
  font-size:18px;
  line-height:1.6;
  color:rgba(20,20,20,.92);
  padding-right:140px;
}

body.howBody .svoCard__note{
  margin-top:10px;
  color:rgba(20,20,20,.62);
  font-size:14px;
  padding-right:140px;
}

/* ✅ responsive */
@media (max-width: 900px){
  body.howBody .svoCard__top{ grid-template-columns:1fr; }
  body.howBody .svoCard__percent{ font-size:54px; }
  body.howBody .svoCard__text,
  body.howBody .svoCard__note{ padding-right:0; }
}

@media (max-width: 520px){
  body.howBody .svoCard{ padding:16px 16px; border-radius:24px; }
  body.howBody .svoCard__percent{ font-size:42px; }
}

/* sections */
body.howBody .howSection{ margin-top:26px; padding-top:8px; }

body.howBody .howSection__title{
  margin:0;
  font-size:22px;
  text-transform:uppercase;
  font-weight:1000;
}

body.howBody .howSection__subtitle{
  margin:8px 0 0;
  color:rgba(20,20,20,.66);
  font-size:15px;
  line-height:1.6;
}

/* grids */
body.howBody .stepsGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

body.howBody .stepCard{
  border-radius:22px;
  padding:16px 16px 14px;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(20,20,20,.12);
  box-shadow:0 22px 55px rgba(0,0,0,.08);
}

body.howBody .stepCard__num{
  font-weight:1000;
  letter-spacing:.08em;
  color:rgba(20,20,20,.45);
  font-size:12px;
}

body.howBody .stepCard__title{
  margin-top:10px;
  font-weight:1000;
  font-size:18px;
  letter-spacing:-0.02em;
}

body.howBody .stepCard__text{
  margin-top:8px;
  color:rgba(20,20,20,.70);
  line-height:1.55;
  font-size:14px;
}

body.howBody .stepCard--accent{
  background:
    radial-gradient(900px 280px at 20% 10%, rgba(168,0,44,.18), transparent 60%),
    rgba(255,255,255,.84);
  border:1px solid rgba(20,20,20,.14);
}

body.howBody .trustGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
}

body.howBody .trustCard{
  border-radius:22px;
  padding:16px 16px 14px;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(20,20,20,.12);
  box-shadow:0 22px 55px rgba(0,0,0,.08);
}

body.howBody .trustCard__title{
  font-weight:1000;
  font-size:16px;
  letter-spacing:-0.02em;
}

body.howBody .trustCard__text{
  margin-top:8px;
  color:rgba(20,20,20,.70);
  line-height:1.55;
  font-size:14px;
}

/* responsive howitworks */
@media (max-width: 900px){
  body.howBody .stepsGrid{ grid-template-columns:1fr; }
  body.howBody .trustGrid{ grid-template-columns:1fr; }
  body.howBody .howHero__title{ font-size:40px; }
}
@media (max-width: 520px){
  body.howBody .howHero__title{ font-size:34px; }
  body.howBody .howHero__lead{ font-size:16px; }
}

/* ===== HOWITWORKS CTA ===== */
body.howBody .finalCTA{
  margin-top: 28px;
  padding-top: 26px;
  padding-bottom: 18px;
}

body.howBody .finalCTA__title{
  font-weight: 1000;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}

body.howBody .finalCTA__desc{
  font-size: 18px;
  line-height: 1.45;
  color: rgba(20,20,20,.78);
  margin: 0 0 22px 0;
}

body.howBody .finalCTA__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ✅ fixed CTA buttons (контур как раньше) */
body.howBody .btn--primary{
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
body.howBody .btn--primary:hover{
  background: var(--accentDark);
}

body.howBody .btn--ghost{
  background: rgba(255,255,255,.78);
  color: rgba(20,20,20,.90);
  border: 1px solid rgba(20,20,20,.22);
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
}
body.howBody .btn--ghost:hover{
  border-color: rgba(20,20,20,.34);
}

/* ✅ канал МП при МГД — теперь читаемый */
body.howBody .btn--ghost,
body.howBody .btn--ghost *{
  opacity:1 !important;
}

/* ===== MOBILE ZOOM STATES for howitworks (if подключен JS) ===== */
@media (max-width: 520px){
  body.howBody .stepCard,
  body.howBody .trustCard{
    transform-origin:center center;
    transition: transform .18s ease, opacity .18s ease, filter .18s ease;
  }

  body.howBody .stepCard.is-far,
  body.howBody .trustCard.is-far{
    transform: scale(.94);
    opacity: .70;
    filter: blur(.2px);
  }

  body.howBody .stepCard.is-mid,
  body.howBody .trustCard.is-mid{
    transform: scale(.98);
    opacity: .90;
  }

  body.howBody .stepCard.is-active,
  body.howBody .trustCard.is-active{
    transform: scale(1.04);
    opacity: 1;
  }
}
/* =========================
   HOW IT WORKS – HERO CARD
   ========================= */

.hi-hero-card{
  margin: 28px 0 40px;
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}

.hi-hero-card::before{
  content:"";
  position:absolute;
  inset:-40% -40% auto -40%;
  height: 240%;
  background:
    radial-gradient(circle at 30% 30%, rgba(168,0,44,0.18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(168,0,44,0.08), transparent 60%);
  filter: blur(20px);
  transform: rotate(-10deg);
  pointer-events:none;
}

.hi-hero-card > *{
  position: relative;
  z-index: 2;
}

.hi-hero-lead{
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: #141414;
}

.hi-hero-lead b{
  font-weight: 800;
}

.hi-hero-note{
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(20,20,20,0.72);
}
/* Shine эффект на "100%" */
.shine100{
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline-block;

  background: linear-gradient(
    90deg,
    #A8002C 0%,
    #ff3f6b 40%,
    #A8002C 80%,
    #A8002C 100%
  );

  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  animation: shine100 2.2s ease-in-out infinite;
}

@keyframes shine100{
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Secondary button fix (Канал МП при МГД) */
.btn-secondary{
  background: rgba(255,255,255,0.85);
  color: #141414 !important;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.btn-secondary:hover{
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
}
@media (max-width: 520px){
  .hi-hero-card{
    padding: 22px 18px;
    border-radius: 24px;
  }
  .hi-hero-lead{
    font-size: 20px;
  }
  .hi-hero-note{
    font-size: 16px;
  }
}
/* ===== Bottom block buttons visibility fix ===== */
.bottomInfo .btn.btnGhost {
  background: rgba(168, 0, 44, 0.08);
  border: 1px solid rgba(168, 0, 44, 0.35);
  color: #A8002C !important;
}

.bottomInfo .btn.btnGhost:hover {
  background: rgba(168, 0, 44, 0.14);
  border-color: rgba(168, 0, 44, 0.55);
}
/* =========================
   HEADER: Logo + title fix
   ========================= */

/* Убираем подпись "проект Молодёжной палаты при МГД" */
.header .subTitle,
.header .subtitle,
.header .sub,
.header small,
.header .desc {
  display: none !important;
}

/* "МОЙ АНГЕЛ" делаем светлым/чётким */
.header .title,
.header .siteTitle,
.header .brandTitle,
.header h1,
.header h2,
.header .logoTitle {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* Блок с логотипом: никаких обводок */
.header .logo,
.header .logoWrap,
.header .logoBox,
.header .brandLogo {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Сам логотип: вписан, без рамки */
.header .logo img,
.header img.logo,
.header .brandLogo img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px; /* мягко, без рамки */
  box-shadow: none !important;
  filter: none !important;
}
/* =========================
   BRAND FIX (верхний левый)
   ========================= */

/* делаем МОЙ АНГЕЛ светлым */
.brand__title{
  color:#fff !important;
  opacity:1 !important;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}

/* убираем "проект Молодёжной палаты при МГД" */
.brand__sub{
  display:none !important;
}

/* убираем обводку у логотипа */
.brand__logo{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* но оставляем аккуратную форму и вписывание */
.brand__logo img{
  border-radius:14px;
  object-fit:cover;
}
/* ===========================
   CATALOG (avito-like UX)
   =========================== */

.page--catalog,
.page--item{
  background: var(--bg, #F7F3ED);
  color:#151515;
}

.catalog{
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.catalog__title{
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  margin: 0 0 6px;
}

.catalog__subtitle{
  margin: 0 0 18px;
  opacity:.8;
  font-size: 16px;
}

.catalog__controls{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin: 10px 0 24px;
}

.catalog__search{
  flex:1;
  min-width: 240px;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  outline:none;
  font-size:15px;
}

.catalog__sort{
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  font-size:15px;
}

.catalog-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1050px){
  .catalog-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .catalog{ padding: 18px 14px 54px; }
  .catalog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 420px){
  .catalog-grid{ grid-template-columns: 1fr; }
}

.catalog-empty{
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
}

/* CARD like Avito */
.p-card{
  display:block;
  border-radius: 22px;
  overflow:hidden;
  background:#fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  text-decoration:none;
  color:inherit;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
}

.p-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(0,0,0,.10);
}

.p-card__imgWrap{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(168,0,44,.10), rgba(0,0,0,.06));
}

.p-card__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.p-card__body{
  padding: 12px 12px 14px;
}

.p-card__price{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.p-card__title{
  font-size: 14px;
  line-height: 1.25;
  height: 36px;
  overflow:hidden;
  opacity:.95;
}

.p-card__meta{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  font-size: 12.5px;
  opacity:.78;
}

/* ===========================
   ITEM PAGE
   =========================== */

.item{
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 80px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

@media (max-width: 980px){
  .item{ grid-template-columns: 1fr; }
}

.item__title{
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 900;
  margin: 0 0 8px;
}

.item__price{
  font-size: 24px;
  font-weight: 900;
  color:#111;
  margin-bottom: 12px;
}

.item__desc{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.10);
  line-height: 1.45;
}

.item__actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}

/* reuse your style if exists, else define */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.14);
}

.btn--primary{
  background:#A8002C;
  color:#fff;
  border-color: transparent;
}

.btn--ghost{
  background: rgba(255,255,255,.75);
  color:#111;
}

.sellerCard{
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.10);
}

.sellerCard__name{
  font-weight: 900;
  margin-bottom: 2px;
}
.sellerCard__meta{
  opacity:.7;
  font-size: 13px;
}

/* ===========================
   GALLERY (Avito-like)
   =========================== */

.gallery{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  background:#000;
  border: 1px solid rgba(0,0,0,.12);
}

.gallery__viewport{
  width:100%;
  aspect-ratio: 4/3;
  background: #111;
}

.gallery__track{
  display:flex;
  height:100%;
  transition: transform .28s ease;
}

.gallery__slide{
  min-width:100%;
  height:100%;
  position:relative;
}

.gallery__slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.gallery__btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.72);
  color:#111;
  font-size: 28px;
  font-weight: 900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery__btn--prev{ left: 12px; }
.gallery__btn--next{ right: 12px; }

@media (max-width: 560px){
  .gallery__btn{ display:none; } /* swipe only */
}

.gallery__dots{
  position:absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display:flex;
  justify-content:center;
  gap:8px;
}

.gallery__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border:0;
  background: rgba(255,255,255,.45);
}

.gallery__dot.is-active{
  background:#fff;
  width: 22px;
}
/* ===================== CATALOG / ITEM ===================== */

.pageTop {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 18px;
}

.backLink {
  color: rgba(0,0,0,.7);
  text-decoration: none;
  font-weight: 600;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px 80px;
}

.catalogHeader .h1 {
  font-size: 42px;
  margin: 12px 0 10px;
}

.catalogHeader .lead {
  margin: 0 0 18px;
  color: rgba(0,0,0,.7);
  font-size: 16px;
}

.catalogControls {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin: 12px 0 26px;
}

.control input,
.control select {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.8);
  padding: 0 14px;
  font-size: 15px;
}

.catalogGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.itemCard {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.itemCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.itemCard__imgWrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.itemCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itemCard__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: #A8002C;
}

.itemCard__body {
  padding: 12px 12px 14px;
}

.itemCard__price {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 6px;
  word-break: break-word;
}

.itemCard__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: rgba(0,0,0,.85);
}

.itemCard__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.emptyState {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(0,0,0,.15);
  background: rgba(255,255,255,.6);
  color: rgba(0,0,0,.7);
}

/* ITEM */
.itemLayout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  margin-top: 18px;
}

.galleryFrame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
}

.galleryMain {
  width: 100%;
  height: auto;
  display: block;
}

.galleryNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  width: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  font-size: 28px;
  cursor: pointer;
}

.galleryPrev { left: 12px; }
.galleryNext { right: 12px; }

.galleryThumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.thumb img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.thumb.isActive {
  outline: 2px solid #A8002C;
  outline-offset: 2px;
}

.itemTitle {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.itemPrice {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 18px;
}

.sellerCard,
.itemDescBlock {
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.82);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  margin-bottom: 14px;
}

.sellerCard__title,
.itemDescTitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(0,0,0,.45);
  margin-bottom: 8px;
}

.sellerCard__name {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.sellerCard__rating {
  font-size: 13px;
  color: rgba(0,0,0,.65);
}

.itemDesc {
  font-size: 14px;
  color: rgba(0,0,0,.72);
  line-height: 1.55;
}

.itemActions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* responsive */
@media (max-width: 980px) {
  .catalogGrid { grid-template-columns: repeat(3, 1fr); }
  .itemLayout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .catalogControls { grid-template-columns: 1fr; }
  .catalogGrid { grid-template-columns: repeat(2, 1fr); }
  .catalogHeader .h1 { font-size: 34px; }
}

@media (max-width: 420px) {
  .catalogGrid { grid-template-columns: 1fr; }
}
/* ===================== STUB PAGE ===================== */

.stubBody {
  background: var(--bg, #F7F3ED);
}

.stub {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

.stub__bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(168, 0, 44, .18), transparent 60%),
    radial-gradient(closest-side at 70% 60%, rgba(168, 0, 44, .10), transparent 62%),
    radial-gradient(closest-side at 60% 20%, rgba(255, 255, 255, .55), transparent 60%);
  filter: blur(16px);
  transform: translateZ(0);
  pointer-events: none;
}

.stub__card {
  width: min(720px, 100%);
  border-radius: 26px;
  padding: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.stub__badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
  color: #fff;
  background: var(--red, #A8002C);
}

.stub__hint {
  font-size: 13px;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

.stub__title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.05;
}

.stub__text {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(0,0,0,.72);
  line-height: 1.6;
}

.stub__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stub__footer {
  margin-top: 16px;
}

.stub__line {
  height: 1px;
  width: 100%;
  background: rgba(0,0,0,.10);
  margin: 0 0 12px;
}

.stub__small {
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

/* mobile */
@media (max-width: 520px) {
  .stub__card {
    padding: 16px;
    border-radius: 22px;
  }
  .stub__title {
    font-size: 28px;
  }
  .stub__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .stub__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .stub__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ===================== STUB PAGE ===================== */

.stubBody {
  background: var(--bg, #F7F3ED);
}

.stub {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

.stub__bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(168, 0, 44, .16), transparent 60%),
    radial-gradient(closest-side at 70% 60%, rgba(168, 0, 44, .09), transparent 62%),
    radial-gradient(closest-side at 60% 20%, rgba(255, 255, 255, .55), transparent 60%);
  filter: blur(16px);
  transform: translateZ(0);
  pointer-events: none;
}

.stub__card {
  width: min(720px, 100%);
  border-radius: 26px;
  padding: 20px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.stub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.stub__badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
  color: #fff;
  background: var(--red, #A8002C);
}

.stub__hint {
  font-size: 13px;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

.stub__title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stub__text {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(0,0,0,.72);
  line-height: 1.6;
}

.stub__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Strong ghost button for light backgrounds */
.btnGhostStrong {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.18);
  color: rgba(0,0,0,.86) !important;
}

.btnGhostStrong:hover {
  border-color: rgba(0,0,0,.26);
  background: rgba(255,255,255,1);
}

/* mobile */
@media (max-width: 520px) {
  .stub {
    place-items: start;
    padding: 18px 14px;
  }

  .stub__card {
    padding: 16px;
    border-radius: 22px;
    margin-top: 36px;
  }

  .stub__title {
    font-size: 32px;
  }

  .stub__text {
    font-size: 16px;
  }

  .stub__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stub__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    margin-top: 6px;
  }

  .stub__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
  }
}
/* ================= HUB ================= */

.hubBody{
  background:#F7F3ED;
}

.hub{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:24px;
  gap:40px;
}

.hubHeader{
  text-align:center;
}

.hubHeader h1{
  font-size:42px;
}

.hubHeader p{
  opacity:.6;
}

.hubActions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  width:100%;
  max-width:900px;
}

.hubCard{
  background:white;
  border:1px solid rgba(0,0,0,.1);
  border-radius:22px;
  padding:26px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  transition:.25s;
}

.hubCard span{
  font-size:32px;
}

.hubCard:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.hubCardAccent{
  border-color:#A8002C;
  color:#A8002C;
}


/* ================= MODALS ================= */

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.modal.open{
  display:flex;
}

.modalBox{
  background:white;
  border-radius:24px;
  padding:26px;
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.modalBox h2{
  text-align:center;
}

.modalBox input{
  padding:14px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:16px;
}


/* ================= MAX ================= */

.maxBlock{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  background:#f5f5f5;
  border-radius:12px;
}

.maxBlock img{
  width:28px;
  height:28px;
  object-fit:contain;
}

.artistNote{
  font-size:14px;
  opacity:.7;
  text-align:center;
}


/* ============== MOBILE ============== */

@media(max-width:700px){

  .hubActions{
    grid-template-columns:1fr;
  }

  .hubHeader h1{
    font-size:32px;
  }

}
/* HUB LAYOUT */

.hub-top{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:40px 60px;
}

.hub-title{
  font-size:38px;
  font-weight:800;
  letter-spacing:1px;
}

.hub-support{
  border:1px solid #A8002C;
  color:#A8002C;

  padding:8px 16px;
  border-radius:20px;
  font-weight:600;
}



/* MAIN */

.hub-main{
  min-height:calc(100vh - 200px);

  display:flex;
  justify-content:center;
  align-items:center;
}



/* WHITE ACTION BLOCK */

.hub-actions{

  background:#fff;

  padding:50px 70px;

  border-radius:24px;

  display:flex;
  gap:80px;

  box-shadow:0 20px 60px rgba(0,0,0,.1);
}



/* AUTH */

.auth-block{
  display:flex;
  flex-direction:column;
  gap:16px;
}



/* PERFORMER */

.performer-block{
  text-align:center;
}

.performer-block h2{
  margin-bottom:20px;
  font-size:24px;
}



/* FOOTER */

.hub-footer{

  position:fixed;
  bottom:0;
  left:0;

  width:100%;

  background:#e6ded4;

  padding:18px 40px;

  display:flex;
  justify-content:flex-start;
}

.hub-logo img{
  height:42px;
  opacity:.9;
}



/* BUTTON FIX */

.btn-light{
  background:#fff;
  border:1px solid #ccc;
}

.btn-light:hover{
  background:#f2f2f2;
}
/* HUB */

.hubPage{
  background: linear-gradient(135deg,#f7f3ed,#f2ece4);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* HEADER */

.hubHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:30px 60px;
}

.hubLogo{
  font-size:32px;
  font-weight:800;
}

.hubBadge{
  border:1px solid #A8002C;
  color:#A8002C;
  padding:8px 18px;
  border-radius:30px;
  font-weight:600;
}

/* MAIN */

.hubMain{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:120px;
}

/* AUTH */

.hubAuth{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* WORKER */

.hubWorker{
  text-align:center;
}

.hubWorker h2{
  margin-bottom:16px;
}

/* BUTTONS */

.btn{
  padding:14px 28px;
  border-radius:40px;
  font-size:16px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:.2s;
}

.btn:hover{
  transform:translateY(-2px);
}

.btnGreen{
  background:#49c56d;
  color:#fff;
}

.btnWhite{
  background:#fff;
  border:1px solid #ccc;
}

.btnRed{
  background:#A8002C;
  color:#fff;
}

/* FOOTER */

.hubFooter{
  background:#eae3d9;
  padding:20px;
  display:flex;
  justify-content:flex-start;
}

.hubFooterLogo{
  height:42px;
}
/* RESET */

.hubWrap *{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Inter,system-ui,sans-serif;
}


/* PAGE */

.hubWrap{
  min-height:100vh;
  background:linear-gradient(135deg,#f7f3ed,#efe7db);
  display:flex;
  flex-direction:column;
}


/* HEADER */

.hubHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:40px 80px;
}

.hubLogo{
  font-size:34px;
  font-weight:800;
  letter-spacing:.5px;
}

.hubBadge{
  border:1px solid #A8002C;
  color:#A8002C;
  padding:8px 20px;
  border-radius:30px;
  font-weight:600;
}


/* MAIN */

.hubMain{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:140px;
}


/* AUTH */

.hubAuth{
  display:flex;
  flex-direction:column;
  gap:18px;
}


/* WORKER */

.hubWorker{
  text-align:center;
}

.hubWorker h2{
  font-size:24px;
  margin-bottom:20px;
}


/* BUTTONS */

.hubBtn{
  min-width:240px;
  padding:16px 28px;
  border-radius:50px;
  border:none;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:.25s;
}

.hubBtn:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}


/* COLORS */

.hubGreen{
  background:#49c56d;
  color:#fff;
}

.hubWhite{
  background:#fff;
  border:1px solid #ccc;
}

.hubRed{
  background:#A8002C;
  color:#fff;
}


/* FOOTER */

.hubFooter{
  background:#e2dacd;
  padding:20px 40px;
  display:flex;
  align-items:center;
}

.hubFooterLogo{
  height:44px;
}


/* MOBILE */

@media (max-width:900px){

  .hubMain{
    flex-direction:column;
    gap:50px;
  }

  .hubHeader{
    padding:30px 30px;
  }

}
/* ==== HUB FIX ==== */
.hubWrap,
.hubMain,
.hubAuth,
.hubWorker,
.hubBtn,
.hubModal {
  pointer-events: auto !important;
}

.zoomCard,
.aboutStage,
.canvas,
.heroVideo {
  pointer-events: none !important;
}
/* Базовые стили для мобильного режима */
@media (max-width: 768px) {
  /* Скрываем десктопный контент index.html (бренд, кнопки, промо-блоки) */
  .brand, .topActions, .bottomInfo, .zoomCard {
    display: none !important;
  }

  /* Показываем контейнер каталога */
  .mobile-catalog-container {
    display: block;
    padding: 60px 12px 80px 12px; /* отступы под шапку и нижний бар */
  }

  .mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--bg);
    padding: 10px 15px;
    z-index: 100;
    border-bottom: 1px solid var(--stroke);
  }

  .mobile-search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: #fff;
    font-size: 16px;
  }

  /* Нижняя панель (Tab Bar) */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--stroke);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    width: 33%;
  }

  .nav-item.active {
    color: var(--accent);
  }

  .nav-item svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 769px) {
  .bottom-nav, .mobile-catalog-container {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-bottom: 1px solid var(--stroke);
  }
  .mobile-search-bar input {
    width: 100%;
    background: #f0f0f0;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--stroke);
    z-index: 1000;
  }
  .nav-item { color: #888; text-align: center; }
  .nav-item.active { color: var(--accent); }
  .nav-item svg { width: 26px; height: 26px; }
}
@media (max-width: 768px) {
  .catalogGrid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ровно две колонки */
    gap: 8px; /* Небольшой зазор между карточками */
    padding: 0 12px;
  }
  
  .p-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
  }
  
  .p-card__imgWrap { aspect-ratio: 1; overflow: hidden; }
  .p-card__img { width: 100%; height: 100%; object-fit: cover; }
  .p-card__body { padding: 8px; }
  .p-card__price { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
  .p-card__title { font-size: 13px; opacity: 0.8; height: 32px; overflow: hidden; }
  .p-card__meta { font-size: 11px; margin-top: 4px; display: flex; align-items: center; }
}
@media (max-width: 768px) {
  /* Дополнительный отступ для мобильного контейнера */
  .mobile-main-container {
     padding-top: 20px;
  }

  /* Обертка для баннера и точек */
  .banner-wrapper {
    position: relative;
    width: 100%;
    /* Соотношение сторон как у двух карточек внизу (примерно) */
    aspect-ratio: 16 / 8; 
    margin-bottom: 18px;
  }

  /* Основной контейнер слайдера */
  .banner-slider {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    /* ✅ Требование 1: Прозрачный фон */
    background: transparent; 
    /* Легкая тень для выделения, если баннер светлый */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
  }

  .banner-track {
    display: flex;
    height: 100%;
    /* Важно для бесшовного переключения */
    transition: transform 0.5s ease-in-out;
    will-change: transform;
  }

  .banner-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: block;
  }

  /* ✅ Требование 1: Аккуратное вписывание */
  .banner-slide img {
    width: 100%;
    height: 100%;
    /* Изображение заполнит весь блок, обрезав лишнее, но без искажений */
    object-fit: cover; 
  }

  .banner-dots {
    position: absolute;
    bottom: -14px; /* Выносим точки под баннер */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
  }

  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2); /* Точки темные т.к. фон страницы светлый */
    transition: 0.3s;
  }

  .dot.active {
    background: var(--accent); /* Активная точка цветная */
    width: 14px;
    border-radius: 4px;
  }
}
/* Анимация спиннера */
.status-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-spinner {
  width: 35px;
  height: 35px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #A8002C;
  border-radius: 50%;
  animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Иконки успеха и ошибки */
.icon-success { color: #28a745; font-size: 48px; font-style: normal; }
.icon-error { color: #ff3b30; font-size: 48px; font-style: normal; }

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
}
.chat-item:active { background: #f9f9f9; }
.chat-avatar {
    width: 50px; height: 50px; background: #A8002C; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.chat-info { flex-grow: 1; text-align: left; overflow: hidden; }
.chat-name { font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.chat-last-msg { font-size: 14px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }