/* css/pol-ceny.css */

/* ─── ОСНОВНОЙ БЛОК ─── */
.pceny-main { padding: 16px 0 40px; }

.pceny-main__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 56px;
}

.pceny-main__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.pceny-main__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 680px;
}

.pceny-block-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ─── ТАБЛИЦА ─── */
.pceny-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.pceny-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 960px;
}

.pceny-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  text-align: right;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.pceny-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 190px;
  border-right: 1px solid var(--border);
}

.pceny-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.pceny-table td:first-child {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  position: sticky;
  left: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
}

.pceny-table tr:hover td { background: #fafafa; }
.pceny-table tr:hover td:first-child { background: #fafafa; }
.pceny-table tr:last-child td { border-bottom: none; }

.pceny-dash { color: var(--border) !important; font-weight: 400 !important; }

/* ─── СНОСКА ─── */
.pceny-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── ВКЛАДКИ ─── */
.pceny-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pceny-tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pceny-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.pceny-tab--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pceny-tab-panel--hidden { display: none; }

/* ─── ПОПАП ─── */
.pceny-notice {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pceny-notice--hidden { display: none; }

.pceny-notice__box {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 48px 44px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.pceny-notice__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  border-radius: 6px;
  transition: background 0.15s;
}
.pceny-notice__close:hover { background: var(--surface); color: var(--ink); }

.pceny-notice__icon {
  width: 48px;
  height: 48px;
  background: #fff3cd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #92400e;
}

.pceny-notice__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.pceny-notice__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.pceny-notice__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .pceny-main__card { padding: 36px 32px; }
}

@media (max-width: 560px) {
  .pceny-main__card    { padding: 28px 24px; }
  .pceny-notice__box   { padding: 28px 24px 32px; }
  .pceny-notice__btns  { flex-direction: column; }
  .pceny-notice__btns .btn { width: 100%; text-align: center; }
  .pceny-tabs { padding-top: 20px; }
}
