/* hub.css - shared styles for МЭГ hub-style pages (dostavka, price, etc).
 * Extends site.css. Defines hero head, sections, generic cards, table, FAQ.
 * Class prefix: hp-*  (hub-page)
 */
@import url('./site.css?v=9');

/* ========== TRUST STRIP (re-declared for standalone pages) ================= */
.trust-strip { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-3); }
.trust-strip__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-1); padding-right: 14px; border-right: 1px solid var(--border-1); }
.trust-strip__item:last-child { border-right: 0; padding-right: 0; }
.trust-strip__item svg { color: var(--c-accent); flex: 0 0 16px; }

/* ========== HEAD ========================================================== */
.hp-head {
  padding: 28px 0 28px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-1);
}
.hp-head__crumbs {
  font-size: 13px; color: var(--fg-3);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin: 0 0 16px;
}
.hp-head__crumbs a { color: var(--fg-3); text-decoration: none; }
.hp-head__crumbs a:hover { color: var(--fg-1); }
.hp-head__crumbs .sep { color: var(--c-steel-300); }
.hp-head__crumbs .cur { color: var(--fg-1); }

.hp-head__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  background: var(--c-accent-soft); color: var(--c-accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-2);
  margin-bottom: 14px;
}
.hp-head__h1 {
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.018em; line-height: 1.1;
  margin: 0 0 14px;
  max-width: 22ch;
}
.hp-head__h1-accent { color: var(--c-accent); }
.hp-head__lede {
  font-size: 16px; color: var(--fg-2);
  line-height: 1.6; max-width: 64ch;
  margin: 0;
}
.hp-head__trust { margin-top: 22px; }

/* ========== BODY / SECTIONS =============================================== */
.hp-body { padding: 48px 0 80px; }
.hp-body--soft { background: var(--bg-soft); }

.hp-section { padding: 0 0 48px; }
.hp-section:last-child { padding-bottom: 0; }
.hp-section__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 28px; margin-bottom: 22px; flex-wrap: wrap;
}
.hp-section__num {
  font-family: var(--font-mono);
  color: var(--c-accent); font-weight: 500;
  font-size: 13px; display: block; margin-bottom: 4px;
}
.hp-section__h {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.005em; line-height: 1.25;
  margin: 0;
}
.hp-section__sub {
  font-size: 14px; color: var(--fg-3); margin: 0;
  max-width: 56ch;
}

/* ========== CARD GRID (3, 4 cols) ========================================= */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 14px;
}
.hp-cards--3 { --cols: 3; }
.hp-cards--4 { --cols: 4; }

.hp-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.hp-card__ic {
  width: 40px; height: 40px;
  border-radius: var(--r-2);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
}
.hp-card__ttl { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--fg-1); }
.hp-card__sub { font-size: 13px; color: var(--fg-3); line-height: 1.55; margin: 0; }
.hp-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}

/* ========== TABLE (zones, downloads) ====================================== */
.hp-tbl-wrap {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  overflow: hidden;
}
.hp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hp-tbl thead th {
  text-align: left;
  font-weight: 500;
  color: var(--fg-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-1);
}
.hp-tbl thead th.num { text-align: right; }
.hp-tbl tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
  vertical-align: middle;
  color: var(--fg-1);
}
.hp-tbl tbody tr:last-child td { border-bottom: 0; }
.hp-tbl tbody tr:hover { background: var(--bg-soft); }
.hp-tbl td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-tbl td.head-c {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hp-tbl td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--fg-2); }
.hp-tbl td .sub { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }

.hp-tbl__foot {
  background: var(--c-graphite);
  color: #fff;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 0 0 var(--r-3) var(--r-3);
  margin-top: -1px;
}
.hp-tbl__foot-lbl { font-size: 12px; color: var(--c-steel-300); text-transform: uppercase; letter-spacing: 0.06em; }
.hp-tbl__foot-v { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: #fff; }

/* Download link inside table cell */
.hp-dl {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  background: var(--c-accent-soft);
  border-radius: var(--r-2);
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease-std);
}
.hp-dl:hover { background: var(--c-accent); color: #fff; }
.hp-dl svg { width: 14px; height: 14px; flex: 0 0 14px; }
.hp-dl__size { color: inherit; opacity: 0.7; font-weight: 400; }

/* ========== CITY TABS ===================================================== */
.hp-cities {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  margin-bottom: 18px;
}
.hp-cities__btn {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-std);
  white-space: nowrap;
}
.hp-cities__btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hp-cities__btn.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 500;
}

/* ========== TIMESTAMP BAR ================================================= */
.hp-stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--c-success);
  font-weight: 500;
  padding: 5px 12px;
  background: var(--c-success-soft);
  border-radius: var(--r-pill);
}
.hp-stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }

/* ========== INCLUDED list (4 plates) ====================================== */
.hp-incl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-incl__item {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 16px 18px;
  display: flex; gap: 10px; align-items: flex-start;
}
.hp-incl__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-success-soft);
  color: var(--c-success);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 22px;
}
.hp-incl__check svg { width: 14px; height: 14px; }
.hp-incl__body { flex: 1; min-width: 0; }
.hp-incl__ttl { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.hp-incl__sub { font-size: 12px; color: var(--fg-3); line-height: 1.5; margin: 0; }

/* ========== TRANSPARENCY / EXPLAINER pills (3 cards) ====================== */
.hp-transp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hp-transp__card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 22px 22px;
}
.hp-transp__lbl {
  font-family: var(--font-mono);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.hp-transp__h { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--fg-1); }
.hp-transp__sub { font-size: 13px; color: var(--fg-3); line-height: 1.6; margin: 0; }
.hp-transp__sub strong { color: var(--fg-1); font-weight: 600; }

/* ========== FAQ =========================================================== */
.hp-faq { display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.hp-faq__item {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
}
.hp-faq__item[open] { border-color: var(--c-accent); }
.hp-faq__head {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex; gap: 16px; align-items: center;
  font-size: 15px; font-weight: 500;
  color: var(--fg-1);
}
.hp-faq__head::-webkit-details-marker { display: none; }
.hp-faq__head .chev {
  margin-left: auto; flex: 0 0 18px;
  transition: transform var(--t-fast) var(--ease-std);
}
details[open] .hp-faq__head .chev { transform: rotate(180deg); color: var(--c-accent); }
.hp-faq__body {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 76ch;
}
.hp-faq__body p { margin: 0; }

/* ========== DOCUMENT CARDS (doc download grid) ============================ */
.hp-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hp-doc {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.hp-doc__top {
  display: flex; gap: 14px; align-items: flex-start;
}
.hp-doc__badge {
  flex: 0 0 56px;
  height: 64px;
  border-radius: var(--r-2);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  border: 1px solid var(--c-accent);
  border-top-right-radius: 0;
}
.hp-doc__badge::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  border-radius: 0 0 0 4px;
}
.hp-doc__badge svg { width: 18px; height: 18px; margin-bottom: 4px; }
.hp-doc__badge--docx { background: #E6F1EA; color: #2E7D55; border-color: #2E7D55; }
.hp-doc__badge--docx::before { border-color: #2E7D55; }
.hp-doc__badge--xlsx { background: #E2EFDB; color: #1F6F2E; border-color: #1F6F2E; }
.hp-doc__badge--xlsx::before { border-color: #1F6F2E; }
.hp-doc__badge--pdf  { background: #F7E4E2; color: #B5392F; border-color: #B5392F; }
.hp-doc__badge--pdf::before  { border-color: #B5392F; }

.hp-doc__head { flex: 1; min-width: 0; }
.hp-doc__ttl {
  font-size: 16px; font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--fg-1);
}
.hp-doc__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.hp-doc__sub {
  font-size: 13px; color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
  min-height: 3em;
}
.hp-doc__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--c-graphite);
  color: #fff;
  border: 0;
  border-radius: var(--r-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
  justify-content: center;
  transition: background var(--t-fast) var(--ease-std);
}
.hp-doc__btn:hover { background: var(--c-accent); }
.hp-doc__btn svg { width: 14px; height: 14px; }
.hp-doc__btn-size { color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 11px; }

/* ========== HUB-CATEGORIES (big 2x2) ====================================== */
.hp-bigcats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hp-bigcat {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 28px 30px;
  display: flex; gap: 22px;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-fast) var(--ease-std);
  min-height: 168px;
}
.hp-bigcat:hover {
  border-color: var(--c-steel-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.hp-bigcat__ic {
  flex: 0 0 56px;
  height: 56px;
  border-radius: var(--r-2);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
}
.hp-bigcat__ic svg { width: 28px; height: 28px; }
.hp-bigcat__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-bigcat__ttl {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.hp-bigcat__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.06em;
}
.hp-bigcat__sub {
  font-size: 13px; color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
}
.hp-bigcat__arrow {
  align-self: end;
  color: var(--c-steel-400);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.hp-bigcat:hover .hp-bigcat__arrow { color: var(--c-accent); }

/* ========== POPULAR CHIP GRID (4 small cards) ============================= */
.hp-pop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-pop__item {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 4px;
  transition: all var(--t-fast) var(--ease-std);
}
.hp-pop__item:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.hp-pop__lbl {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}
.hp-pop__sub {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
  margin: 0;
}

/* ========== HOW-IT-WORKS (3 steps reusable) =============================== */
.hp-how {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hp-how__step {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--r-3);
  padding: 22px 22px;
}
.hp-how__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.hp-how__ttl { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.hp-how__sub { font-size: 13px; color: var(--fg-3); line-height: 1.55; margin: 0; }

/* ========== RESPONSIVE ==================================================== */
@media (max-width: 1100px) {
  .hp-head__h1 { font-size: 36px; }
  .hp-cards--4 { --cols: 2; }
  .hp-cards--3 { --cols: 1; }
  .hp-incl { grid-template-columns: 1fr 1fr; }
  .hp-transp { grid-template-columns: 1fr; }
  .hp-docs { grid-template-columns: 1fr 1fr; }
  .hp-bigcats { grid-template-columns: 1fr; }
  .hp-pop { grid-template-columns: 1fr 1fr; }
  .hp-how { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hp-head { padding: 20px 0 20px; }
  .hp-head__h1 { font-size: 28px; }
  .hp-section__h { font-size: 22px; }
  .hp-cards--4 { --cols: 1; }
  .hp-incl { grid-template-columns: 1fr; }
  .hp-docs { grid-template-columns: 1fr; }
  .hp-pop { grid-template-columns: 1fr; }
  .hp-tbl thead { display: none; }
  .hp-tbl tbody td { display: block; padding: 8px 14px; border: 0; }
  .hp-tbl tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border-1); }
  .hp-tbl__foot { flex-direction: column; align-items: stretch; gap: 12px; }
}

.hp-geo { font-size: 15px; color: var(--fg-2); line-height: 1.6; margin: 12px 0 0; max-width: 72ch; }
