/* style.css */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #0860b8;
  color: #fff;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.btn {
  padding: 10px 20px;
  background-color: #0088cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

/* .btn:disabled,
.btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
} */

.btn:hover {
  background-color: #0070a8;
}

.btn.selected {
  background-color: #005f90;
  box-shadow: 0 0 0 2px #00446c inset;
}

.btn.full {
  width: auto;
  max-width: none;
}

#back::before {
  content: "<<< ";
}
#next::after {
  content: " >>>";
}

.progress {
  width: 100%;
  height: 12px;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-bar {
  height: 100%;
  background-color: #0088cc;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

.nav-buttons {
  justify-content: space-between;
}

@media (max-width: 480px) {
  .nav-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* общий контейнер шага подтверждения — центрируем и ограничиваем ширину */
.confirm-box {
  max-width: 560px;
  /* подгоните под ваш вкус */
  margin: 0 auto;
  /* центр */
  width: 100%;
  box-sizing: border-box;
}

#summary {
  padding: 10px 10px;
  background-color: #0088cc;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s;
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-and-cart {
  display: flex;
  align-items: center;
  /* justify-content:space-between; 1-й влево, 2-й вправо */
  gap: 12px;
  /* margin:5px 0; */
}

.price-pill {
  display: none;
  /* margin: 12px 0 0; */
  padding: 5px 10px;
  border-radius: 12px;
  background: #0088cc;
}

.price-pill.show {
  display: inline-block;
}

.price-pill small {
  font-weight: 500;
  opacity: .7;
  margin-left: 6px;
}

.bt-help {
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  margin-left: auto;
  font-size: 1.8rem;
  text-align: right;
  margin-bottom: 10px;
}

/* input e-mail — на всю ширину контейнера */
.email {
  font-size: 18px;      /* размер текста в инпуте */
  line-height: 1.3;     /* чтобы текст не «жался» */
  padding: 12px 14px;   /* при желании увеличить высоту поля */
  width: 100%;
  box-sizing: border-box;
  border: none;
}

#email-field {
  /* можно добавить легкий фон/рамку, если нужно визуально совпасть */
  background: #0088cc;
  border-radius: 8px;
  padding: 10px;
}

.hidden {
  display: none !important;
}

/* базовые утилиты */
.no-scroll { overflow: hidden; }

/* модалка */
.modal{
  position: fixed; inset: 0;
  display: none;            /* скрыто по умолчанию */
  background: rgba(0,0,0,.38);
  z-index: 1000;
}
.modal--open{ display: block; }

.modal__dialog{
  position: relative;
  margin: 6vh auto 4vh;
  max-width: 640px;
  width: calc(100% - 32px);

  /* КЛЮЧЕВЫЕ СТРОКИ: */
  max-height: 84vh;              /* чтобы «вписываться» в экран */
  overflow: auto;                 /* прокрутка внутри модалки */
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 16px 16px 18px;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: crimson;
}

/* при очень низких экранах можно ужать вертикальные отступы */
@media (max-height: 580px){
  .modal__dialog{ margin: 4vh auto; max-height: 90vh; }
}

/* чтобы шапка/кнопка закрытия не уезжали при прокрутке — опц. «стикнуть» заголовок */
.modal__title{
  position: sticky; top: 0;
  background: #fff; padding-top: 2px;
  z-index: 1;
}

.modal__bottom{
  color: rgb(22, 194, 179);
}

.modal__content{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: inherit;   /* подхватит ограничение от .modal__dialog */
  color: #111;
}

.modal__content hr{
  border: 0; height: 1px; background: #194f96; margin: 12px 0;
}

.modal__close{
  position: absolute; top: 8px; right: 10px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 24px; line-height: 1;
}
.modal__close:focus { outline: none; }
.modal__close:focus-visible { outline: 2px solid #f0f3f6; outline-offset: 2px; }

/* Accordion (spoilers) */
.accordion { margin: 0; padding: 0; }

.acc-item{
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
  margin: 8px 0;
  overflow: hidden;
  color: brown;
}

/* убираем дефолтный маркер summary */
.acc-item summary::-webkit-details-marker { display: none; }

.acc-item summary{
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 14px;
  font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  outline: none;
}

.acc-item summary:focus-visible{
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
  border-radius: 10px;
}

/* своя стрелка */
.acc-item summary::before{
  content: "▸";
  font-size: 24px;        /* ← больше размер стрелки */
  line-height: 1; 
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-1px);
  transition: transform .2s ease;
  color: #6b7280;
}

.acc-item[open] summary::before{
  transform: rotate(90deg) translateY(-1px);
}

/* содержимое */
.acc-body{
  padding: 10px 14px 12px;
  border-top: 1px solid #eef1f4;
  color: #111;
}
.acc-body p{ margin: 8px 0; }
.acc-body ol{ margin: 6px 0 0 18px; }

/* Таблица цен в окне Помощь */

/* контейнер со скроллом, если колонок много */
.pt-wrap { overflow: auto; }

/* заголовки блоков (название плана) */
.pt-title{
  margin: 12px 0 6px;
  font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color:rgb(3, 99, 67);
  font-weight: 700;
}

/* таблица цен */
.price-table{
  width: 100%;
  border-collapse: collapse;
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 10px;        /* для iOS/Safari скругление не всегда видно без обёртки */
  overflow: hidden;
}
.price-table thead th{
  background: #f7f8fa;
  font-weight: 700;
  text-align: center;
}
.price-table th,
.price-table td{
  padding: 8px 10px;
  border: 1px solid #e6e8eb;
  text-align: center;
  white-space: nowrap;
}
.price-table th:first-child{
  text-align: left;           /* левая колонка — "Аккаунты" */
  white-space: nowrap;
}


