:root{
  /* высота нижних фикс-панелей (куки/корзина) + GAP, выставляется JS */
  --ui-bottom-space: 0px;

  /* если используешь смещение cookiebar отдельно */
  --cookiebar-offset: 0px;
  --z-footer: 0;
}

/* ================== BASE ================== */
html, body{ height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* ✅ удлиняем страницу на высоту фикс-панелей,
     чтобы футер можно было “поднять” выше cookiebar */
  padding-bottom: calc(var(--ui-bottom-space) + env(safe-area-inset-bottom, 0px));
}

/* основной контент должен растягиваться */
.main{
  flex: 1 0 auto;
  /* ✅ НЕ обнуляем! если где-то было 0!important — убрать */
  padding-bottom: 0;
}

/* ============================ FOOTER (встроенный) ============================ */
.footer{
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;

  border-top: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(1200px 260px at 25% 0%, rgba(var(--violet), .18), transparent 60%),
    radial-gradient(900px 240px at 90% 15%, rgba(var(--green), .10), transparent 55%),
    linear-gradient(180deg, rgba(11, 13, 18, .74), rgba(11, 13, 18, .58));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  max-height: none;
  overflow: visible;

  /* футер может увеличиваться, если нужно место под панели снизу */
  padding-bottom: var(--ui-bottom-space);
  height: auto;
}

.footer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.22),
    rgba(255,255,255,0)
  );
  opacity: .95;
}

.footer::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: .9;
}
.footer{ z-index: var(--z-footer); }

.footer__inner{
  position: relative;
  z-index: 1;
  padding: 14px 0 12px;
}

.footer__grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 22px;
  align-items: start;
}

/* LEFT */
.footer__brandRow{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

/* LOGO */
.footer__logo{
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.footer__logo img{
  height: 70px;
  width: auto;
  display:block;
  position: relative;
  z-index: 1;
  filter: saturate(0.45) brightness(1.05) contrast(1.05)
          drop-shadow(0 10px 22px rgba(17, 15, 24, 0.582));
}

.footer__brandBlock{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.08);
}

/* ONE MAIN LINE */
.footer__brandLine{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.footer__brandStack{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 0 0 auto;
}

.footer__brandLink{
  text-decoration: none;
  color: inherit;
}

.footer__brandName{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  line-height: 1;
}

.footer__brandTag{
  font-size: 12px;
  color: rgba(255,255,255,.64);
  white-space: nowrap;
  line-height: 1;
}

/* socials */
.footer__social{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 0 0 auto;
}

.footer__soc{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;

  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: rgba(255,255,255,.86);
  text-decoration:none;

  box-shadow:
    0 12px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);

  position: relative;
  overflow: hidden;
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}

.footer__soc::after{
  content:"";
  position:absolute;
  inset: -50% -70%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.22) 50%, transparent 55%);
  transform: translateX(-40%) rotate(8deg);
  opacity: 0;
  transition: opacity .2s ease, transform .6s ease;
}

.footer__soc svg{ width: 18px; height: 18px; fill: currentColor; }

.footer__soc:hover{
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 18px 44px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.footer__soc:hover::after{ opacity: 1; transform: translateX(40%) rotate(8deg); }

.footer__soc--vk:hover{
  box-shadow:
    0 18px 44px rgba(0,0,0,.40),
    0 0 0 1px rgba(var(--blue), .18),
    0 0 28px rgba(var(--blue), .16),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.footer__soc--tg:hover{
  box-shadow:
    0 18px 44px rgba(0,0,0,.40),
    0 0 0 1px rgba(var(--green), .16),
    0 0 30px rgba(var(--green), .14),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.footer__soc--ds:hover{
  box-shadow:
    0 18px 44px rgba(0,0,0,.40),
    0 0 0 1px rgba(var(--violet), .20),
    0 0 34px rgba(var(--violet), .18),
    inset 0 1px 0 rgba(255,255,255,.12);
}

/* buttons */
.footer__actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.footer__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 10px 12px;
  border-radius: 16px;

  color: rgba(255,255,255,.86);
  text-decoration:none;
  white-space: nowrap;

  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));

  box-shadow:
    0 12px 28px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.10);

  font-size: 12.5px;
  line-height: 1;
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}

.footer__btn:hover{
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.12);
}

/* Документы */
.footer__btn--docs{
  position: relative;
  overflow: hidden;

  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(120% 140% at 10% 15%, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(120% 140% at 90% 0%, rgba(var(--green), .18), transparent 60%),
    linear-gradient(90deg,
      rgba(var(--blue), .20),
      rgba(var(--violet), .22),
      rgba(var(--green), .14)
    );

  box-shadow:
    0 14px 34px rgba(0,0,0,.26),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.footer__btn--docs::after{
  content:"";
  position:absolute;
  inset: -60% -80%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.22) 50%, transparent 55%);
  transform: translateX(-55%) rotate(8deg);
  opacity: .0;
  transition: opacity .18s ease;
}

.footer__btn--docs:hover{
  filter: brightness(1.06);
  border-color: rgba(255,255,255,.20);
  box-shadow:
    0 18px 50px rgba(0,0,0,.38),
    0 0 34px rgba(var(--violet), .14),
    0 0 28px rgba(var(--blue), .10),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.footer__btn--docs:hover::after{
  opacity: 1;
  animation: footerDocsShine .85s ease both;
}

@keyframes footerDocsShine{
  from{ transform: translateX(-55%) rotate(8deg); }
  to{ transform: translateX(55%) rotate(8deg); }
}

/* RIGHT */
.footer__right{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  max-width: 520px;

  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.footer__line,
.footer__copy{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  line-height: 1.45;
}

.footer__req{
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  opacity: .95;
}

.footer__dot{ display:inline-block; margin: 0 8px; opacity: .55; }

/* focus */
.footer__soc:focus-visible,
.footer__btn:focus-visible,
.footer__logo:focus-visible,
.footer__brandLink:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* =================== TABLET + PHONE (центрируем) =================== */
@media (max-width: 980px){
  .footer__grid{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer__brandRow{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer__brandBlock{
    padding-left: 0;
    border-left: 0;
    align-items: center;
    text-align: center;
  }

  .footer__brandLine{
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .footer__social{ justify-content: center; }
  .footer__actions{ justify-content: center; }

  .footer__right{
    text-align: center;
    max-width: none;
    padding-left: 0;
    border-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    align-items: center;
  }

  .footer__req{
    text-align: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce){
  .footer__btn, .footer__soc{ transition: none; }
  .footer__btn--docs:hover::after{ animation: none; }
}

/* ============================================================ */
/* ====== Модальное окно статуса платежа success false ======== */
/* ============================================================ */
.amodal[hidden]{ display:none !important; }

.amodal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.amodal__backdrop{
  position:absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.amodal__panel{
  position: relative;
  width: min(520px, calc(100% - 24px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);

  background:
    radial-gradient(110% 70% at 20% 0%, rgba(160,120,255,.14), transparent 60%),
    radial-gradient(110% 70% at 95% 0%, rgba(88,242,140,.10), transparent 60%),
    rgba(11, 13, 18, 0.96);

  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  outline: none;
}

.amodal.is-open .amodal__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.amodal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 6px 8px;
}

.amodal__title{
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
}

.amodal__x{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  color: rgba(255,255,255,.92);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease;
}
.amodal__x:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
}
.amodal__x:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.amodal__msg{
  padding: 6px 10px 10px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.45;
}
.amodal__msg a{ color: rgba(255,255,255,.9); }

.amodal__actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 8px 6px 6px;
}

.amodal__btn{
  height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease;
}
.amodal__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(160,120,255,.22);
  box-shadow: 0 20px 54px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.12);
}
.amodal__btn:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Color accents */
.amodal.is-success .amodal__title{ color: rgb(var(--green) / .95); }
.amodal.is-fail .amodal__title{ color: rgba(220,53,69,.95); }

@media (prefers-reduced-motion: reduce){
  .amodal__panel, .amodal__x, .amodal__btn{ transition: none !important; }
}

/* ============================================================ */
/* ========================== КУКИ ============================ */
/* ============================================================ */

/* cookiebar выше cartdock */
.cookiebar{
  position: fixed;
  left: 0;
  right: 0;

  /* desktop: “плавающий” отступ снизу */
  bottom: calc(12px + var(--cookiebar-offset) + env(safe-area-inset-bottom, 0px));

  z-index: 1000;
  pointer-events: none;
  padding: 0;
  transform: translateZ(0);
}

/* если cookiebar лежит внутри .container — снимаем ограничения */
.cookiebar .container{
  pointer-events: none;
}

/* панель */
.cookiebar__inner{
  pointer-events: auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;

  padding: 14px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);

  background:
    radial-gradient(120% 220% at 10% 0%, rgba(160,120,255,.18), transparent 60%),
    radial-gradient(120% 220% at 95% 0%, rgba(88,242,140,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(12,14,20,.74);

  backdrop-filter: blur(16px) saturate(175%);
  box-shadow:
    0 22px 64px rgba(0,0,0,.55),
    0 0 34px rgba(160,120,255,.10),
    inset 0 1px 0 rgba(255,255,255,.10);

  position: relative;
  overflow: hidden;

  z-index: 1010;
}

/* лёгкий “блик” */
.cookiebar__inner::after{
  content:"";
  position:absolute;
  inset: -60% -80%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.18) 50%, transparent 55%);
  transform: translateX(-35%) rotate(10deg);
  opacity: .55;
  pointer-events:none;
}

/* текст */
.cookiebar__text{
  position: relative;
  padding-left: 34px;
  color: rgba(255,255,255,.90);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .01em;
}

/* иконка */
.cookiebar__text::before{
  content:"🍪";
  position:absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,.12), transparent 60%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
  font-size: 14px;
}

.cookiebar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

/* "Подробнее" pill */
.cookiebar__link{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);

  background:
    radial-gradient(120% 180% at 20% 0%, rgba(255,255,255,.10), transparent 55%),
    rgba(255,255,255,.05);

  color: rgba(255,255,255,.88);
  text-decoration:none;

  font-weight: 950;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;

  transition: transform .14s ease, border-color .18s ease, filter .18s ease, background-color .18s ease;
}

.cookiebar__link::after{
  content:"↗";
  font-size: 12px;
  opacity: .85;
}

.cookiebar__link:hover{
  transform: translateY(-1px);
  border-color: rgba(160,120,255,.22);
  filter: brightness(1.03);
}

/* "ПОНЯТНО" */
.cookiebar__btn{
  height: 38px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(88,242,140,.46);
  cursor: pointer;

  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;

  color: rgba(0,0,0,.90);
  background:
    radial-gradient(120% 220% at 30% 15%, rgba(255,255,255,.28), transparent 55%),
    linear-gradient(180deg, rgba(88,242,140,1), rgba(88,242,140,.72));

  box-shadow:
    0 18px 52px rgba(0,0,0,.46),
    0 0 42px rgba(88,242,140,.18),
    inset 0 1px 0 rgba(255,255,255,.30);

  position: relative;
  overflow: hidden;

  transition: transform .14s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* бегущий блик по кнопке */
.cookiebar__btn::after{
  content:"";
  position:absolute;
  inset: -60% -70%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.45) 50%, transparent 55%);
  transform: translateX(-55%) rotate(10deg);
  opacity: .0;
  transition: opacity .18s ease, transform .55s ease;
  pointer-events:none;
}

.cookiebar__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  border-color: rgba(88,242,140,.62);
  box-shadow:
    0 22px 64px rgba(0,0,0,.52),
    0 0 58px rgba(88,242,140,.22),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.cookiebar__btn:hover::after{
  opacity: .95;
  transform: translateX(35%) rotate(10deg);
}

.cookiebar__btn:active{
  transform: translateY(0px) scale(.99);
  filter: brightness(1.00);
}

/* focus */
.cookiebar__btn:focus-visible,
.cookiebar__link:focus-visible{
  outline: 2px solid rgba(88,242,140,.55);
  outline-offset: 2px;
}

/* ================= Mobile: FULL WIDTH (edge-to-edge) ================= */
/* ================= Tablet + Mobile: FULL WIDTH + rounded ================= */
@media (max-width: 980px){
  /* на всю ширину экрана */
  .cookiebar{
    left: 0;
    right: 0;
    padding: 0;

    /* можно оставить “плавающий” отступ, чтобы не липло к самому низу */
    bottom: calc(12px + var(--cookiebar-offset) + env(safe-area-inset-bottom, 0px));
  }

  /* снимаем ограничения .container */
  .cookiebar .container{
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* скругляем, но оставляем на всю ширину */
  .cookiebar__inner{
    width: 100%;
    border-radius: 20px;   /* ✅ закругленные края */
  }
}

/* ================= Mobile: компактнее, но тоже FULL WIDTH + rounded ================= */
@media (max-width: 560px){
  .cookiebar{
    bottom: calc(10px + var(--cookiebar-offset) + env(safe-area-inset-bottom, 0px));
  }

  .cookiebar__inner{
    width: 100%;
    border-radius: 18px;   /* ✅ закругленные края на мобилке */
    padding: 12px 12px;
    gap: 10px;

    display: grid;
    grid-template-columns: 1fr;
  }

  .cookiebar__text{
    padding-left: 32px;
    font-size: 13px;
    line-height: 1.3;
  }

  .cookiebar__text::before{
    width: 24px;
    height: 24px;
    border-radius: 11px;
    font-size: 13px;
  }

  .cookiebar__actions{
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .cookiebar__link{
    height: 36px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: .08em;
    justify-content: center;
    white-space: nowrap;
  }

  .cookiebar__btn{
    height: 36px;
    width: 100%;
    font-size: 10px;
    letter-spacing: .10em;
    padding: 0 12px;
    border-radius: 14px;
  }
}



/* ============================================================ */
/* ================= CONTACTS MODAL — PREMIUM GLASS =========== */
/* ============================================================ */
/* Опционально: блокируем скролл фона при открытой модалке */
html.is-modal-open,
body.is-modal-open{
  overflow: hidden;
}

/* ВАЖНО: принудительное центрирование модалки на ВСЕХ устройствах */
.amodal.cmodal{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(14px, 4vw, 24px);
  min-height: 100dvh;
}

/* Backdrop — темное стекло + виньетка */
.cmodal__backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;

  background:
    radial-gradient(1200px 800px at 50% 40%, rgba(160,120,255,.20), transparent 55%),
    radial-gradient(900px 650px at 65% 55%, rgba(88,242,140,.14), transparent 60%),
    radial-gradient(1200px 900px at 50% 50%, rgba(0,0,0,.78), rgba(0,0,0,.92));

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* Panel — премиум стекло */
.cmodal__panel{
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 2 * clamp(14px, 4vw, 24px));
  overflow: auto;

  border-radius: 26px;
  padding: 14px;

  border: 1px solid rgba(255,255,255,.10);

  background:
    radial-gradient(120% 70% at 18% 0%, rgba(160,120,255,.18), transparent 55%),
    radial-gradient(120% 70% at 92% 0%, rgba(88,242,140,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(10, 12, 18, .86);

  box-shadow:
    0 30px 120px rgba(0,0,0,.70),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.10);

  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Градиентная рамка */
.cmodal__panel::before{
  content:"";
  position:absolute;
  inset:0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255,255,255,.16),
    rgba(160,120,255,.18),
    rgba(88,242,140,.14),
    rgba(255,255,255,.08)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}

/* Shine */
.cmodal__shine{
  position:absolute;
  inset: -60% -80%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.14) 50%, transparent 55%);
  transform: translateX(-30%) rotate(10deg);
  opacity: .55;
  pointer-events:none;
  filter: blur(.2px);
}

/* Head */
.cmodal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 10px 12px;
}

.cmodal__titleWrap{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.cmodal__title{
  font-family: var(--font-display);
  font-weight: 1000;
  letter-spacing: .01em;
  font-size: 16px;
  color: rgba(255,255,255,.95);
}

.cmodal__subtitle{
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
  line-height: 1.35;
}

/* Close X */
.cmodal__x{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: rgba(255,255,255,.92);
  cursor: pointer;
  box-shadow:
    0 18px 46px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.10);
}

/* List */
.cmodal__list{
  padding: 4px 10px 10px;
  display:grid;
  gap: 12px;
}

/* Item (общий стиль и для <a> и для <button>) */
.cmodal__item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 22px;

  position: relative;
  overflow: hidden;

  text-decoration:none;
  color: rgba(255,255,255,.92);

  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);

  box-shadow:
    0 18px 60px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);

  transition: transform .16s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cmodal__item::after{
  content:"";
  position:absolute;
  inset: -60% -80%;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.14) 50%, transparent 55%);
  transform: translateX(-55%) rotate(10deg);
  opacity: 0;
  transition: opacity .18s ease, transform .60s ease;
  pointer-events:none;
}

.cmodal__item:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 26px 90px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.cmodal__item:hover::after{
  opacity: 1;
  transform: translateX(35%) rotate(10deg);
}

/* Button reset for email copy */
button.cmodal__item{
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* Icon */
.cmodal__icon{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;

  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,.12), transparent 60%),
    rgba(255,255,255,.06);

  box-shadow:
    0 18px 52px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.cmodal__icon svg{ width: 20px; height: 20px; fill: currentColor; }

/* Content */
.cmodal__content{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 6px;
  flex: 1 1 auto;
}

.cmodal__label{
  font-weight: 1000;
  letter-spacing: .01em;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255,255,255,.94);
}

.cmodal__value{
  font-size: 12.5px;
  color: rgba(255,255,255,.64);
  line-height: 1.2;
  word-break: break-word;
}

/* VK right side */
.cmodal__meta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

.cmodal__badge{
  padding: 9px 11px;
  border-radius: 999px;

  font-size: 10.5px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: rgba(0,0,0,.92);
  border: 1px solid rgba(88,242,140,.50);
  background:
    radial-gradient(120% 220% at 30% 15%, rgba(255,255,255,.26), transparent 55%),
    linear-gradient(180deg, rgba(88,242,140,1), rgba(88,242,140,.72));

  box-shadow:
    0 18px 56px rgba(0,0,0,.36),
    0 0 40px rgba(88,242,140,.12),
    inset 0 1px 0 rgba(255,255,255,.30);
}

.cmodal__arrow{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}

/* VK accent */
.cmodal__item--vk{
  border-color: rgba(var(--blue), .20);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(var(--blue), .18), transparent 60%),
    radial-gradient(120% 140% at 90% 0%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);
}

.cmodal__item--vk:hover{
  box-shadow:
    0 28px 96px rgba(0,0,0,.46),
    0 0 44px rgba(var(--blue), .10),
    inset 0 1px 0 rgba(255,255,255,.12);
}

/* Email copy badge */
.cmodal__copyBadge{
  margin-left: auto;
  padding: 9px 11px;
  border-radius: 999px;

  font-size: 10.5px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: rgba(0,0,0,.92);
  border: 1px solid rgba(88,242,140,.50);
  background:
    radial-gradient(120% 220% at 30% 15%, rgba(255,255,255,.26), transparent 55%),
    linear-gradient(180deg, rgba(88,242,140,1), rgba(88,242,140,.72));

  box-shadow:
    0 18px 56px rgba(0,0,0,.36),
    0 0 40px rgba(88,242,140,.12),
    inset 0 1px 0 rgba(255,255,255,.30);

  opacity: 0;
  transform: translateY(2px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

/* Copied state */
.cmodal__item.is-copied{
  border-color: rgba(88,242,140,.42);
  box-shadow:
    0 26px 90px rgba(0,0,0,.45),
    0 0 44px rgba(88,242,140,.12),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.cmodal__item.is-copied .cmodal__copyBadge{
  opacity: 1;
  transform: translateY(0);
}

/* SR-only */
.cmodal__sr{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus */
.cmodal__item:focus-visible,
.cmodal__x:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Mobile: бейдж на новую строку, но центрирование сохраняется */
@media (max-width: 560px){
  .amodal.cmodal{
    padding: 16px;
    min-height: 100dvh;
  }

  .cmodal__panel{
    border-radius: 22px;
    max-height: calc(100dvh - 32px);
  }

  .cmodal__item{
    flex-wrap: wrap;
    gap: 10px;
  }

  .cmodal__meta{
    width: 100%;
    justify-content: space-between;
  }

  .cmodal__copyBadge{
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .cmodal__item,
  .cmodal__copyBadge{
    transition: none !important;
  }
}
