/* Модалка «Подробнее о карте» в блоке карточек (08.10.2026). Все селекторы под #avcm / .avcm-*,
   тема сайта перебивает h2/p/button, поэтому заголовки на div и ключевые свойства с !important. */

/* --- кнопка в карточке: черная с пульсирующим зеленым кольцом (блик убран 08.10 по просьбе владельца) --- */
#products .product-buttons a.avcm-more{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;
  background:#212121 !important;color:#fff !important;border:0 !important;border-radius:10px;font-size:14px;font-weight:600;
  line-height:1.2;padding:12px 24px;cursor:pointer;text-decoration:none !important;animation:avcmPulse 2.4s ease-out infinite;order:-1}
#products .product-buttons a.avcm-more:hover{background:#000 !important}
@keyframes avcmPulse{0%{box-shadow:0 0 0 0 rgba(0,175,125,.6)}60%{box-shadow:0 0 0 12px rgba(0,175,125,0)}100%{box-shadow:0 0 0 0 rgba(0,175,125,0)}}
#products .product-buttons .avcm-hide{display:none !important}
@media (max-width:768px){#products .product-buttons a.avcm-more{order:0;padding:8px 10px;font-size:13.5px}}
@media (prefers-reduced-motion:reduce){#products .product-buttons a.avcm-more,#avcm .avcm-card img{animation:none}}

/* --- оверлей и окно --- */
#avcm{position:fixed;inset:0;z-index:1040;display:none;align-items:flex-start;justify-content:center;overflow:auto;
  padding:40px 16px;background:rgba(20,22,26,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  font-family:'Manrope',sans-serif;color:#212121;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#avcm.is-on{display:flex}
html.avcm-lock,html.avcm-lock body{overflow:hidden}
#avcm *{box-sizing:border-box}
#avcm .avcm-md{background:#fff;border-radius:20px;width:940px;max-width:100%;position:relative;animation:avcmUp .28s ease-out;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.5);text-align:left}
@keyframes avcmUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
#avcm a.avcm-x{position:absolute;right:16px;top:16px;width:40px !important;height:40px !important;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;color:#444 !important;z-index:2;
  box-shadow:0 2px 10px rgba(0,0,0,.12);cursor:pointer;text-decoration:none !important;padding:0 !important;margin:0 !important}
#avcm .avcm-hero{border-radius:20px 20px 0 0;background:radial-gradient(120% 140% at 10% 0%,#e3f7ef 0%,#f5f7f6 55%,#eef1f0 100%);
  padding:44px 48px 40px;display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center;overflow:hidden}
#avcm .avcm-eb{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#00af7d;font-weight:700;margin:0 0 10px}
#avcm .avcm-h{font-size:34px !important;line-height:1.12 !important;font-weight:700 !important;margin:0 0 14px !important;color:#212121}
#avcm .avcm-lead{margin:0;color:#444;font-size:16px;line-height:1.5}
#avcm .avcm-card{perspective:1000px;padding:16px 0}
#avcm .avcm-card img{width:100%;max-width:100%;height:auto;display:block;border-radius:14px;box-shadow:0 34px 56px -22px rgba(0,0,0,.5);
  animation:avcmFloat 5.5s ease-in-out infinite;will-change:transform}
@keyframes avcmFloat{0%{transform:rotate(-4deg) rotateY(-10deg) translateY(0)}50%{transform:rotate(-2deg) rotateY(-5deg) translateY(-12px)}100%{transform:rotate(-4deg) rotateY(-10deg) translateY(0)}}
#avcm .avcm-body{padding:0 48px 44px}
#avcm .avcm-offer{display:flex;flex-wrap:wrap;gap:12px 36px;align-items:flex-end;padding:22px 26px;background:#fff;border:1px solid #e6e6e6;
  border-radius:14px;margin:-26px 0 32px;position:relative;box-shadow:0 14px 30px -20px rgba(0,0,0,.25)}
#avcm .avcm-pr{font-size:36px;font-weight:800;color:#00af7d;line-height:1;white-space:nowrap}
#avcm .avcm-pr small{display:block;font-size:13px;color:#666;font-weight:500;margin-bottom:6px}
#avcm .avcm-k{font-size:13px;color:#666}
#avcm .avcm-v{font-weight:700;font-size:17px}
#avcm .avcm-offer .avcm-btn{margin-left:auto}
#avcm .avcm-t{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#777;margin:34px 0 12px}
#avcm .avcm-purp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#avcm .avcm-purp div{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;background:#f8f8f8;border-radius:12px;font-size:15px;line-height:1.4}
#avcm .avcm-purp div::before{content:'';flex:none;width:20px;height:20px;margin-top:1px;border-radius:50%;
  background:#00af7d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat}
#avcm .avcm-tg{display:flex;flex-wrap:wrap;gap:8px}
#avcm .avcm-tg span{background:#e8f8f2;color:#0b5c44;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px}
#avcm .avcm-specs{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;border-top:1px solid #e6e6e6;margin:0}
#avcm .avcm-specs div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #e6e6e6;font-size:15px}
#avcm .avcm-specs span{color:#666}
#avcm .avcm-specs b{text-align:right;font-weight:600}
#avcm .avcm-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#avcm .avcm-st{background:#f8f8f8;border-radius:12px;padding:16px}
#avcm .avcm-st i{font-style:normal;color:#00af7d;font-weight:800;font-size:13px}
#avcm .avcm-st b{display:block;font-size:15px;margin:6px 0 4px}
#avcm .avcm-st p{margin:0;font-size:13.5px;color:#555;line-height:1.45}
#avcm .avcm-faq > div{border-bottom:1px solid #e6e6e6}
#avcm a.avcm-q{display:flex;justify-content:space-between;gap:16px;width:100%;padding:14px 0;font-weight:600;font-size:16px;color:#212121 !important;
  cursor:pointer;text-decoration:none !important;background:none !important;border:0 !important}
#avcm a.avcm-q::after{content:'+';color:#00af7d;font-size:22px;line-height:1;flex:none}
#avcm .is-open a.avcm-q::after{content:'\2013'}
#avcm .avcm-a{display:none;margin:0 0 14px;color:#555;font-size:15px;line-height:1.5}
#avcm .is-open .avcm-a{display:block}
#avcm .avcm-foot{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:34px;padding-top:24px;border-top:1px solid #e6e6e6}
#avcm a.avcm-btn{display:inline-flex;align-items:center;justify-content:center;padding:16px 26px;border-radius:10px;font-weight:600;font-size:15px;
  line-height:1;cursor:pointer;border:1.5px solid transparent;white-space:nowrap;text-decoration:none !important;transition:background .2s}
#avcm a.avcm-btn--g{background:#00af7d;color:#fff !important}
#avcm a.avcm-btn--g:hover{background:#00875f}
#avcm a.avcm-btn--o{background:#fff;color:#00af7d !important;border-color:#00af7d}
#avcm a.avcm-btn--grey{background:#f8f8f8;color:#00af7d !important}
#avcm a.avcm-land{margin-left:auto;color:#00875f !important;font-size:14px;text-decoration:underline !important}
@media (max-width:768px){
  #avcm{padding:12px}
  #avcm .avcm-hero{grid-template-columns:1fr;padding:28px 20px 24px}
  #avcm .avcm-h{font-size:28px !important}
  #avcm .avcm-card{padding:6px 10px}
  #avcm .avcm-body{padding:0 20px 28px}
  #avcm .avcm-offer{gap:10px 24px;padding:18px 20px}
  #avcm .avcm-pr{font-size:26px}
  #avcm .avcm-v{font-size:15px}
  #avcm .avcm-inst{display:none}
  #avcm .avcm-offer .avcm-btn{margin-left:0;width:100%}
  #avcm .avcm-purp,#avcm .avcm-specs,#avcm .avcm-steps{grid-template-columns:1fr}
  #avcm .avcm-foot a.avcm-btn{width:100%;white-space:normal}
  #avcm a.avcm-land{margin-left:0}
}
