/* CDO Global — каталог цен /prices/ (v2026-08-11b)
   Использует переменные дизайн-системы из /solutions/corporate/assets/styles.css */

/* ---------- секции ---------- */
.p-sec { padding: 64px 0; }

/* Глобальная дизайн-система сайта — тёмная: --text-dim, --text-mute
   и --line-dim там белые с прозрачностью. На светлых поверхностях каталога
   переопределяем их локально — тогда и глобальные компоненты (.btn--ghost)
   автоматически становятся читаемыми. */
.p-sec--alt,
.pq-card, .ptop__row, .pgroup, .pcard, .faq-item, .psearch__empty,
.pchip, .ptable, .p-form, .p-thanks, .sel-offer, #pricing-search {
  --text: #0a0f0a;
  --text-dim: rgba(10, 15, 10, 0.74);
  --text-mute: rgba(10, 15, 10, 0.56);
  --line: rgba(10, 15, 10, 0.20);
  --line-dim: rgba(10, 15, 10, 0.14);
  --accent-soft: rgba(116, 212, 20, 0.18);
  color: #0a0f0a;
}
.p-sec--alt { background: var(--bg-light, #f4f6f4); }
.p-sec--alt .eyebrow { color: #264905; }
.p-sec--alt a:not(.btn):not(.pchip),
.pq-card a:not(.btn), .ptop__row a:not(.btn), .pgroup a:not(.btn),
.pcard a:not(.btn), .faq-item a, .ptable a, .p-form a, .p-thanks a { color: #2f6b06; }
.p-sec--alt a:not(.btn):not(.pchip):hover,
.pgroup a:not(.btn):hover, .pcard a:not(.btn):hover,
.faq-item a:hover, .p-form a:hover { color: #1f4a04; }
.pcard .btn--ghost, .ptop__cta.btn--ghost { border-color: rgba(10, 15, 10, 0.28); }
.pcard .btn--ghost:hover, .ptop__cta.btn--ghost:hover { border-color: #4d8f0d; color: #2f6b06; }

/* Секция «Условия цены» — тёмный фон, ссылки акцентные. */
#terms > .container > p a:not(.btn),
#terms .p-list a:not(.btn) { color: var(--accent, #74D414); }
#terms .ptable a { color: #2f6b06; }
.p-sec h2 { margin: 6px 0 14px; }
.p-lead { max-width: 900px; }
.p-price { font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.p-note { font-size: 15px; color: var(--text-mute, #6b7280); }
.p-list { margin: 0; padding-left: 20px; }
.p-list li { margin-bottom: 10px; }

section[id], details[id] { scroll-margin-top: 130px; }
@media (max-width: 900px) { section[id], details[id] { scroll-margin-top: 110px; } }

/* ---------- подсказка прокрутки подменю ---------- */
.subnav .container { position: relative; }
.subnav__hint {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 100%; display: none; pointer-events: none;
  align-items: center; justify-content: flex-end;
  color: var(--accent, #74D414); font-weight: 700;
  background: linear-gradient(90deg, rgba(10,15,10,0) 0%, var(--bg, #0a0f0a) 70%);
}
@media (max-width: 900px) { .subnav__hint { display: flex; } }

/* ---------- быстрый выбор ---------- */
.pq-grid {
  display: grid; gap: 16px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pq-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border: 1px solid var(--line-dim, rgba(0,0,0,.12));
  border-radius: var(--radius, 14px); background: #fff;
}
.p-sec--alt .pq-card { background: #fff; }
.pq-card__task { font-size: 14px; color: var(--text-mute, #6b7280); }
.pq-card__name { margin: 0; font-size: 19px; line-height: 1.3; }
.pq-card__price { font-size: 24px; color: var(--text-dark, #101410); }
.pq-card__cta { margin-top: auto; justify-content: center; text-align: center; }

/* ---------- топ-10 ---------- */
.ptop { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ptop__row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  padding: 16px 18px; background: #fff;
  border: 1px solid var(--line-dim, rgba(0,0,0,.12));
  border-radius: var(--radius, 14px);
}
.ptop__num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--accent-soft, rgba(116,212,20,.16)); color: #264905;
}
.ptop__main { min-width: 0; }
.ptop__name { margin: 0; font-size: 18px; line-height: 1.3; }
.ptop__meta { margin: 4px 0 0; font-size: 14px; color: var(--text-mute, #6b7280); }
.ptop__price { font-size: 21px; }
.ptop__cta { white-space: nowrap; }

@media (max-width: 860px) {
  .ptop__row { grid-template-columns: 30px minmax(0, 1fr); }
  .ptop__price { grid-column: 2; font-size: 22px; }
  .ptop__cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

/* ---------- поиск и чипы ---------- */
.psearch { margin-top: 24px; }
.psearch__field label { display: block; font-weight: 700; margin-bottom: 8px; }
#pricing-search {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 17px;
  border: 1px solid var(--line-dim, rgba(0,0,0,.2));
  border-radius: var(--radius, 14px); background: #fff; color: var(--text-dark, #101410);
  min-height: 52px;
}
#pricing-search:focus-visible { outline: 3px solid var(--accent, #74D414); outline-offset: 2px; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.pchip {
  font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-dim, rgba(0,0,0,.2)); border-radius: 999px;
  background: #fff; color: var(--text-dark, #101410);
}
.pchip:hover { border-color: var(--accent, #74D414); }
.pchip[aria-pressed="true"], .pchip.is-active {
  background: var(--accent, #74D414); border-color: var(--accent, #74D414); color: #0a0f0a; font-weight: 700;
}
.pchip:focus-visible { outline: 3px solid #0a0f0a; outline-offset: 2px; }
.psearch__count { margin: 10px 0 0; font-weight: 700; min-height: 24px; }
.psearch__empty {
  margin-top: 16px; padding: 20px; border-radius: var(--radius, 14px);
  background: #fff; border: 1px dashed var(--line-dim, rgba(0,0,0,.25));
}
.psearch__empty p { margin: 0 0 14px; }

/* ---------- каталог ---------- */
.pcatalog { display: grid; gap: 12px; margin-top: 26px; }
.pgroup {
  background: #fff; border: 1px solid var(--line-dim, rgba(0,0,0,.12));
  border-radius: var(--radius, 14px); overflow: hidden;
}
.pgroup__summary {
  list-style: none; cursor: pointer; padding: 20px 54px 20px 22px; position: relative;
  min-height: 44px; display: block;
}
.pgroup__summary::-webkit-details-marker { display: none; }
.pgroup__summary::after {
  content: "+"; position: absolute; right: 20px; top: 22px;
  font-size: 26px; line-height: 1; font-weight: 700; color: var(--accent, #74D414);
}
.pgroup[open] > .pgroup__summary::after { content: "–"; }
.pgroup__summary:focus-visible { outline: 3px solid var(--accent, #74D414); outline-offset: -3px; }
.pgroup__title { margin: 0; font-size: 20px; line-height: 1.3; display: inline; }
.pgroup__meta { display: block; margin-top: 6px; font-weight: 700; color: #264905; font-size: 15px; }
.pgroup__intent { display: block; margin-top: 4px; font-size: 14px; color: var(--text-mute, #6b7280); }
.pgroup__body { padding: 0 22px 22px; display: grid; gap: 12px; }
.pgroup__note {
  margin: 0; padding: 12px 14px; font-size: 14px; border-radius: 10px;
  background: var(--accent-soft, rgba(116,212,20,.14)); color: #264905;
}
.pgroup__link { margin: 4px 0 0; font-size: 15px; }
.pgroup.is-hidden { display: none; }

.pcard {
  padding: 18px; border: 1px solid var(--line-dim, rgba(0,0,0,.1));
  border-radius: 12px; background: #fbfcfb;
}
.pcard.is-hidden { display: none; }
.pcard__head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; justify-content: space-between; }
.pcard__name { margin: 0; font-size: 17px; line-height: 1.35; flex: 1 1 260px; }
.pcard__pricebox { text-align: right; flex: 0 0 auto; }
.pcard__price { font-size: 20px; color: var(--text-dark, #101410); display: block; }
.pcard__unit { display: block; font-size: 13px; color: var(--text-mute, #6b7280); margin-top: 2px; }
.pcard__desc { margin: 10px 0 14px; font-size: 15px; color: var(--text-dim, #3c463c); }
.pcard__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.pcard__more { font-size: 14px; font-weight: 600; }
.pcard__cta { margin-left: auto; }

@media (max-width: 640px) {
  .pcard__head { flex-direction: column; align-items: flex-start; }
  .pcard__pricebox { text-align: left; }
  .pcard__actions { flex-direction: column; align-items: stretch; }
  .pcard__cta { margin-left: 0; width: 100%; justify-content: center; }
  .pgroup__summary { padding: 18px 48px 18px 16px; }
  .pgroup__body { padding: 0 16px 18px; }
}

/* ---------- условия цены ---------- */
.pterms { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin: 26px 0 34px; }
.pterms__col h3 { margin-top: 0; }
.ptable-wrap { overflow-x: auto; margin: 16px 0 18px; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
.ptable caption { text-align: left; font-size: 14px; color: var(--text-mute, #6b7280); padding-bottom: 8px; }
.ptable th, .ptable td { padding: 12px 14px; border: 1px solid var(--line-dim, rgba(0,0,0,.12)); text-align: left; font-size: 15px; }
.ptable thead th { background: var(--accent-soft, rgba(116,212,20,.14)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq-item { background: #fff; border: 1px solid var(--line-dim, rgba(0,0,0,.12)); border-radius: var(--radius, 14px); }
.faq-item > summary {
  cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; position: relative;
  list-style: none; min-height: 44px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; position: absolute; right: 20px; top: 16px; font-size: 24px; color: var(--accent, #74D414); }
.faq-item[open] > summary::after { content: "–"; }
.faq-item > summary:focus-visible { outline: 3px solid var(--accent, #74D414); outline-offset: -3px; }
.faq-item__body { padding: 0 20px 18px; }
.faq-item__body p { margin: 0; }

/* ---------- форма ---------- */
.p-form { background: #fff; padding: 24px; border-radius: var(--radius, 14px); border: 1px solid var(--line-dim, rgba(0,0,0,.12)); }
.p-form input, .p-form select, .p-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; min-height: 48px;
  border: 1px solid var(--line-dim, rgba(0,0,0,.2)); border-radius: 10px; background: #fff; color: var(--text-dark, #101410);
}
.p-form textarea { min-height: 88px; resize: vertical; }
.p-form input:focus-visible, .p-form select:focus-visible, .p-form textarea:focus-visible {
  outline: 3px solid var(--accent, #74D414); outline-offset: 1px;
}
.p-form input.is-invalid, .p-form select.is-invalid { border-color: #c0392b; }
.form-error { display: block; min-height: 0; color: #c0392b; font-size: 13px; margin-top: 4px; }
.form-error:empty { display: none; }
.p-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.p-thanks { display: none; margin-top: 0; }
.p-thanks.is-visible { display: block; }
.p-thanks h3 { margin-top: 0; }
.p-form.is-hidden { display: none; }

.sel-offer {
  display: none; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 14px; padding: 14px 18px; border-radius: var(--radius, 14px);
  background: var(--accent-soft, rgba(116,212,20,.16)); border: 1px solid var(--accent, #74D414);
}
.sel-offer.is-visible { display: flex; }
.sel-offer__text { margin: 0; font-weight: 700; font-size: 15px; }
.sel-offer__reset {
  font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; padding: 8px 14px;
  background: transparent; border: 1px solid currentColor; border-radius: 999px; color: #264905;
}
.sel-offer__reset:focus-visible { outline: 3px solid #0a0f0a; outline-offset: 2px; }

/* ---------- sticky CTA ---------- */
.p-sticky {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60; transition: opacity .2s ease, transform .2s ease;
}
.p-sticky[hidden] { display: none; }
.p-sticky.is-out { opacity: 0; pointer-events: none; transform: translateY(12px); }
.p-sticky .btn { box-shadow: 0 10px 28px rgba(0,0,0,.28); min-height: 48px; }
@media (max-width: 1024px) {
  .p-sticky {
    left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,15,10,.94); backdrop-filter: blur(6px);
  }
  .p-sticky .btn { width: 100%; justify-content: center; }
}

/* ---------- прочее ---------- */
.hero-card .p-price { font-size: 26px; margin: 6px 0 8px; }
.hero__aside .hero-card h2 { font-size: 26px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent, #74D414); outline-offset: 2px; }
