/* ==========================================================================
СКУД — popup-access-control.css
Всё инкапсулировано под #popup-access-control
=========================================================================== */

#popup-access-control{ display:none; }
#popup-access-control.active{ display:flex; }

#popup-access-control{
  --ac-bg:#2a2a2a;
  --ac-panel:#242424;
  --ac-text:#fff;
  --ac-muted:#ccc;
  --ac-border:rgba(255,255,255,.35);
  --ac-accent:#ff0000;
  --ac-accent-hover:#cc0000;
  --ac-radius:10px;
  --ac-gutter:12px;
}

#popup-access-control .ac__overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.6);
}

#popup-access-control .ac__frame{
  position:relative;
  max-width:1080px;
  width:96%;
  margin:auto;
  border:2px solid var(--ac-border);
  background:var(--ac-bg);
  color:var(--ac-text);
  border-radius:12px;
  padding:24px;
}

#popup-access-control .ac__close{
  position:absolute; top:10px; right:10px;
}

.ac__callwrap{ display:flex; justify-content:center; margin-bottom:10px; }
.ac-callbtn{
  display:inline-flex; align-items:center; gap:40px;
  background:var(--ac-accent); color:var(--ac-text);
  border:2px solid #fff; border-radius:10px;
  padding:12px 80px; font-size:28px; font-weight:600; cursor:pointer;
}
.ac-callbtn:hover{ background:var(--ac-accent-hover); }
.ac-callbtn__icon img{ width:64px; height:64px; object-fit:contain; }

.ac__section-title{
  text-align:center; font-size:36px; font-weight:600; margin:6px 0 14px 0;
}

/* --- Основная сетка 3×2 --- */
.ac__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ac-gutter);
  margin-bottom:16px;
}

/* Карточка комплекта (верхний ряд) */
.ac-card{
  background:var(--ac-panel);
  border:1px solid var(--ac-border);
  border-radius:8px;
  padding:10px;
  display:flex; flex-direction:column; gap:10px;
}
.ac-card__img{ width:100%; height:120px; object-fit:cover; border-radius:6px; border:3px solid var(--ac-accent); }
.ac-card__title{ font-size:25px !important; font-weight:700 !important; text-align:center; margin:0; line-height: 38px; }
.ac-card__list{ list-style:none; padding-top:30px; margin:0; color:var(--ac-accent); font-size:21px !important; display:flex; flex-direction:column; gap:6px; line-height: 38px; font-weight: 300;}
.ac-card__meta{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:auto; }
.ac-card__price{ font-size:20px; font-weight:700; color:var(--ac-accent); }
.ac-card__price span{ font-size:14px; color:var(--ac-muted); }
.ac-card__buttons{ display:flex; flex-direction:column; gap:8px; width:100%; }
.ac-btn{ height:40px; padding:0 14px; border-radius:8px; border:1px solid var(--ac-border); background:transparent; background:var(--ac-text); color:var(--ac-accent); cursor:pointer; font-size:18px; width:100%; font-weight: 500}
.ac-btn:hover{ background:rgba(255,255,255,.1); }
.ac-btn--accent{ background:var(--ac-accent); border:none; color:var(--ac-text);}
.ac-btn--accent:hover{ background:var(--ac-accent-hover); color:var(--ac-text);}

/* Подписи/блоки под комплектами (нижний ряд) */
.ac-subcard{
  background:var(--ac-panel);
  border:1px solid var(--ac-border);
  border-radius:8px;
  padding:10px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.ac-subcard__img{ width:100%; height:120px; object-fit:cover; border-radius:6px; margin-bottom:8px; }
.ac-subcard__title{ font-size:18px; margin:0; }

/* Блок преимуществ (6 штук) */
.ac__benefits{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--ac-gutter);
}
.ac-benefit{
  background:#1f1f1f; border:1px solid var(--ac-border);
  border-radius:10px; padding:10px; text-align:center;
  display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:flex-start;
}
.ac-benefit__img{ width:150px; height:150px; object-fit:contain; }
.ac-benefit__text{ font-size: 17px !important; color:var(--ac-panel) !important; font-weight: 600 !important; }

@media (max-width: 1100px){
  .ac__benefits{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px){
  .ac__grid{ grid-template-columns: 1fr; }
  .ac__benefits{ grid-template-columns: repeat(2, 1fr); }
}

/* Центровка подписи по центру блока и фоновая картинка */
.ac-subcard--bg{
  position:relative;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ac-subcard--bg::before{
  content:"";
  position:absolute; inset:0;
  background:rgba(0,0,0,.35);
}
.ac-subcard__title{
  position:relative; z-index:1; text-align:center;
}

/* Преимущества в одну строку без переноса */
.ac__benefits{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:stretch;
  gap:12px;
}
.ac-benefit{
  flex: 0 0 calc(16.66% - 10px);
}
.ac-benefit__img{
  width:120px; height:120px;
}

/* === Единый белый блок преимуществ (в одну линию) === */
.ac__benefits{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  background: #ffffff;
  border: 2px solid var(--ac-accent);
  border-radius: 12px;
  padding: 16px 20px;
  gap: 10px;
  color: #000;
}

.ac-benefit{
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
}

.ac-benefit__img{
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.ac-benefit__text{ font-size: 14px;
  color: #000;
  font-weight: 500;
  line-height: 1.3;
}

/* === Комплекты с фоновым изображением, текст поверх === */
.ac-card{
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--ac-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ac-text);
  overflow: hidden;
  min-height: 260px;
}
.ac-card::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.45);
  z-index:0;
}
.ac-card__body, .ac-card__title, .ac-card__list, .ac-card__price, .ac-card__buttons, .ac-card__meta{
  position: relative;
  z-index: 1;
}
.ac-card__title{ margin-top: 4px; }
.ac-card__list{ text-align:left; }
.ac-card__img{ display:none !important; }

/* === Ценник и кнопки прижаты к низу блока === */
.ac-card__body{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.ac-card__meta{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ac-card__price{
  font-size: 22px;
  font-weight: 700;
  color: var(--ac-accent);
  margin-bottom: 8px;
}

/* === Цена: белый текст + красная полоса шире текста на 10px === */
.ac-card__price{
  display: inline-block;
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff; /* белая цена */
  margin-bottom: 2px;
  padding-bottom: 6px; /* место под полоску */
  line-height: 1.1;
}
.ac-card__price::after{
  content: "";
  position: absolute;
  left: -5px;  /* расширяем на 5px слева */
  right: -5px; /* расширяем на 5px справа */
  bottom: 0;
  height: 3px;
  background: var(--ac-accent);
  border-radius: 2px;
}
.ac-card__price span{
  font-size: 14px;
  color: #ffffffcc; /* полупрозрачный белый для "от" */
}
/* Подпись под ценой */
.ac-card__note{
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
  margin-top: 0px;
  margin-bottom: 30px;
  text-align: center;
}
