/* ─── HERO (светлый, со значками МойСклад / 1С) ─── */
.page-moysklad #hero {
  background: var(--n900);
  position: relative;
  padding: 80px 56px 56px;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 900px) {
  .page-moysklad #hero { padding: 56px 24px 40px; }
}
.page-moysklad .hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
}
.page-moysklad .hero-product-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 32px;
}
.page-moysklad .hero-logo-badge {
  background: #fff;
  border: 1px solid rgba(29,78,216,.18);
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 17px; font-weight: 700; color: var(--bp);
  letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(29,78,216,.08);
}
.page-moysklad .hero-plus { font-size: 26px; font-weight: 300; color: var(--g6); }
.page-moysklad .hero-title {
  font-size: 58px; font-weight: 700;
  letter-spacing: -.03em; line-height: .95;
  color: #0A1A35; margin-bottom: 20px;
}
.page-moysklad .hero-title span { color: var(--bn); }
.page-moysklad .hero-sub {
  font-size: 18px; font-weight: 400;
  color: var(--g4);
  line-height: 1.65; margin-bottom: 40px;
}
.page-moysklad .hero-price-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px 8px 20px;
  border: 1px solid rgba(29,78,216,.15);
  border-radius: 999px;
  background: rgba(29,78,216,.08);
}
.page-moysklad .hero-price-trial {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.page-moysklad .hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.page-moysklad .hero-actions--product { margin: 24px 0 18px; }
.page-moysklad .hero-version-link {
  display: inline-flex; flex: 0 0 100%; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  color: var(--bp); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.page-moysklad .hero-version-link:hover { color: var(--bi); }
.page-moysklad .hero-version-link:focus-visible {
  outline: 2px solid var(--bn); outline-offset: 2px; border-radius: 4px;
}
/* ─── PRICING ─── */
#pricing { background: var(--n900); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  position: relative; z-index: 1;
}
.price-card {
  background: #fff;
  border: 1px solid rgba(29,78,216,.12);
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.price-card:hover {
  border-color: rgba(29,78,216,.25);
  box-shadow: 0 16px 56px rgba(29,78,216,.12);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--bp);
  box-shadow: 0 12px 48px rgba(29,78,216,.18);
}
.price-card.featured:hover { box-shadow: 0 20px 64px rgba(29,78,216,.25); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--bp), var(--be));
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 20px; border-radius: 20px;
  white-space: nowrap;
}
.price-icon { margin-bottom: 24px; }
.price-name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.price-desc { font-size: 14px; color: var(--g6); line-height: 1.6; margin-bottom: 28px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-num { font-size: 48px; font-weight: 700; color: var(--bp); line-height: 1; }
.price-unit { font-size: 16px; color: var(--g4); font-weight: 500; }
.price-year { font-size: 17px; color: var(--g6); margin-bottom: 14px; }
.price-year strong { color: var(--bn); }
.price-trial {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.price-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--bp);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.price-compare-link:hover { color: var(--bi); }
.price-compare-link:focus-visible {
  outline: 2px solid var(--bn);
  outline-offset: 3px;
  border-radius: 4px;
}
.price-cta {
  display: block; width: 100%; text-align: center;
  padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.price-cta.primary {
  background: var(--bn-cta); color: #fff;
  box-shadow: 0 6px 24px rgba(191,87,0,.35);
}
.price-cta.primary:hover {
  background: var(--bn-cta-hover);
  box-shadow: 0 8px 32px rgba(169,71,0,.5);
  transform: translateY(-1px);
}
.price-cta.primary:active {
  background: var(--bn-cta-hover);
  box-shadow: 0 2px 10px rgba(169,71,0,.35);
  transform: translateY(1px);
}
.price-cta.outline {
  background: transparent; color: var(--bp);
  border: 2px solid var(--bp);
}
.price-cta.outline:hover { background: var(--bp); color: #fff; }
.price-cta.outline:active { background: var(--bi); border-color: var(--bi); color: #fff; transform: translateY(1px); }

/* ─── ПУТЬ ПОСЛЕ ПОКУПКИ ─── */
.getting-started {
  position: relative; z-index: 1;
  max-width: 1120px;
  margin: 48px auto 0;
  padding-top: 34px;
  border-top: 1px solid rgba(29,78,216,.2);
}
.getting-started-heading .section-label { margin-bottom: 10px; }
.getting-started h2 {
  margin: 0;
  color: #0A1A35;
  font-size: 36px;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.getting-started-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.getting-started-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 0 26px;
  border-left: 1px solid rgba(29,78,216,.18);
}
.getting-started-steps li:first-child { padding-left: 0; border-left: 0; }
.getting-started-steps li:last-child { padding-right: 0; }
.getting-started-num {
  color: var(--bp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
}
.getting-started-steps h3 {
  margin: 0;
  color: #0A1A35;
  font-size: 18px;
  line-height: 1.3;
}
.getting-started-steps p {
  margin: 8px 0 0;
  color: var(--g4);
  font-size: 14px;
  line-height: 1.6;
}
.integration-partner-link {
  color: var(--bp);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.integration-partner-link:hover { color: var(--bi); }
.integration-partner-link:active { color: var(--bi); }
.getting-started-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--bp);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.getting-started-link:hover { color: var(--bi); }
.getting-started-link:active { color: var(--bi); transform: translateY(1px); }
.getting-started-note {
  max-width: 740px;
  margin: 30px 0 0;
  color: var(--g6);
  font-size: 13px;
  line-height: 1.55;
}

/* ─── PRODUCT (override общего .product-layout) ─── */
#product { background: var(--n900); padding-bottom: 40px; }
#product .product-layout { gap: 64px; align-items: center; }
#product .product-disclosure--product .product-layout { padding: 24px; }
@media (max-width: 900px) { #product { padding-bottom: 28px; } }

/* ─── Уплотнение между всеми смежными секциями ─── */
#pricing  { padding-top: 40px; padding-bottom: 40px; }
#features { padding-top: 40px; padding-bottom: 40px; }
#documents { padding-top: 40px; }
@media (max-width: 900px) {
  #pricing  { padding-top: 28px; padding-bottom: 28px; }
  #features { padding-top: 28px; padding-bottom: 28px; }
  #documents { padding-top: 28px; }
}
#product .product-desc { font-size: 15px; margin-bottom: 16px; }
.product-title {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25;
  color: #0A1A35; margin-bottom: 20px;
}
.product-note {
  font-size: 13px; color: var(--g6); line-height: 1.6;
  font-style: italic; margin-bottom: 28px;
}
.config-list {
  list-style: none; margin: 0 0 16px 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.config-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: #0A1A35;
}
.config-list li::before {
  content: ''; width: 8px; height: 8px;
  background: var(--bp); border-radius: 50%; flex-shrink: 0;
}
.text-link { color: var(--bp); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--bi); }
.product-actions {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 8px;
}
.benefit-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}
.benefit-item {
  display: flex; align-items: center; gap: 12px;
}
.benefit-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bp); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 18px; height: 18px; fill: #fff; }
.benefit-text { font-size: 15px; font-weight: 600; color: #0A1A35; }

/* ─── DOCUMENTS GRID ─── */
#documents { background: var(--n950); }
.product-disclosure {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 20px auto 0;
  border: 1px solid rgba(29,78,216,.16);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.product-disclosure summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 16px 58px 16px 22px;
  color: #0A1A35;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.product-disclosure summary::-webkit-details-marker { display: none; }
.product-disclosure summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  color: var(--bp);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.product-disclosure[open] summary { border-bottom: 1px solid rgba(29,78,216,.12); }
.product-disclosure[open] summary::after { content: '−'; }
.product-disclosure summary:focus-visible {
  outline: 3px solid var(--bn);
  outline-offset: -3px;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px;
}
.doc-item {
  background: var(--n900);
  border: 1px solid rgba(29,78,216,.08);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.doc-item:hover {
  border-color: rgba(29,78,216,.2);
  box-shadow: 0 4px 16px rgba(29,78,216,.08);
}
.doc-name { font-size: 14px; font-weight: 700; color: #0A1A35; margin-bottom: 4px; }
.doc-desc { font-size: 12px; color: var(--g6); line-height: 1.5; }
.subscription-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--n800);
  border: 1px solid rgba(29,78,216,.12);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 720px;
}
.subscription-note p { font-size: 14px; color: var(--g4); line-height: 1.7; }

/* ─── FEATURES TABLE ─── */
#features { background: var(--n950); }
.features-scroll-hint {
  max-width: 1180px;
  margin: 20px auto 12px;
  color: var(--g6);
  font-size: 13px;
}
.features-scroll-wrap {
  scroll-margin-top: 120px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(29,78,216,.12);
  border-radius: 16px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.features-scroll-wrap:focus-visible {
  outline: 3px solid var(--bn);
  outline-offset: 3px;
}
.features-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.features-table col:first-child { width: auto; }
.features-table col:nth-child(2),
.features-table col:nth-child(3) { width: 200px; }
.features-table th,
.features-table td {
  border: 0;
  border-bottom: 1px solid rgba(29,78,216,.08);
}
.features-table thead th {
  padding: 20px 28px;
  background: var(--n900);
  color: var(--g4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}
.features-table thead th.plan {
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bp), var(--bi));
  border-left: 1px solid rgba(255,255,255,.18);
}
.features-table thead th.plan.featured {
  background: var(--bn-strong);
}
.plan-header-name { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.plan-header-price { display: block; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.features-table .features-group-title {
  padding: 12px 28px;
  background: linear-gradient(90deg, var(--n800), var(--n900));
  color: var(--bp);
  border-left: 3px solid var(--bp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: left;
}
.features-table tbody tr:not(.features-group):hover { background: var(--n900); }
.features-table tbody th[scope="row"] {
  padding: 16px 28px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  border-right: 1px solid rgba(29,78,216,.06);
}
.features-table td {
  padding: 12px 16px;
  text-align: center;
  border-right: 1px solid rgba(29,78,216,.06);
}
.features-table tr:last-child th,
.features-table tr:last-child td { border-bottom: 0; }
.availability {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}
.availability--yes { color: #fff; background: var(--bp); }
.availability--no { color: #fff; background: var(--bn); border: 0; }
.availability-symbol { color: currentColor; font-size: 22px; font-weight: 500; line-height: 1; }
.availability--no .availability-symbol { font-size: 0; }
.availability--no .availability-symbol::after { content: '×'; font-size: 25px; font-weight: 300; line-height: 1; }

/* ─── SLIDER ─── */
.slider-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(29,78,216,.12);
  box-shadow: 0 20px 60px rgba(29,78,216,.12);
  position: relative;
  background: var(--n800);
  width: 100%;
}
.slider-track {
  display: flex;
  width: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.slider-track picture {
  min-width: 100%; width: 100%; flex-shrink: 0;
}
.slider-track img {
  min-width: 100%; width: 100%; flex-shrink: 0;
  display: block; height: auto;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  box-shadow: 0 4px 16px rgba(29,78,216,.15);
  transition: all .2s;
}
.slider-btn:hover { background: #fff; box-shadow: 0 6px 24px rgba(29,78,216,.25); }
.slider-btn:active { background: var(--n800); box-shadow: 0 2px 8px rgba(29,78,216,.18); transform: translateY(-50%) scale(.96); }
.slider-btn svg { width: 18px; height: 18px; fill: var(--bp); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  display: flex; justify-content: center; gap: 0;
  padding: 14px 0 4px;
}
.slider-dot {
  position: relative;
  width: 44px; height: 44px; border: none;
  background: transparent; cursor: pointer;
}
.slider-dot::before {
  content: ''; position: absolute; inset: 50% auto auto 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(29,78,216,.2); transform: translate(-50%, -50%);
  transition: background .2s, transform .2s;
}
.slider-dot.active::before { background: var(--bp); transform: translate(-50%, -50%) scale(1.25); }
.slider-dot:active::before { transform: translate(-50%, -50%) scale(.9); }

/* ─── RELATED PRODUCT ─── */
.related-product-section { background: var(--n900); padding-top: 28px; padding-bottom: 52px; }
.related-product-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid rgba(29,78,216,.13);
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.related-product-card h2 { margin: 0 0 8px; color: #0A1A35; font-size: 24px; }
.related-product-card p { max-width: 720px; margin: 0; color: var(--g4); font-size: 14px; line-height: 1.65; }
.related-product-card .btn-blue { flex: 0 0 auto; text-align: center; }

/* ─── RESPONSIVE спец-стили ─── */
@media (max-width: 900px) {
  .page-moysklad .hero-title { font-size: 44px; }
  .related-product-card { align-items: flex-start; flex-direction: column; }
  .related-product-card .btn-blue { width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-table { min-width: 620px; }
  .features-table col:nth-child(2),
  .features-table col:nth-child(3) { width: 150px; }
  .features-table thead th,
  .features-table tbody th[scope="row"] { padding-left: 16px; padding-right: 16px; }
  .plan-header-name { font-size: 13px; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
  .plan-header-price { font-size: 11px; }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
  .getting-started { max-width: 720px; }
  .getting-started-steps { grid-template-columns: 1fr; gap: 24px; }
  .getting-started-steps li,
  .getting-started-steps li:first-child,
  .getting-started-steps li:last-child {
    padding: 0 0 24px;
    border-left: 0;
    border-bottom: 1px solid rgba(29,78,216,.18);
  }
  .getting-started-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 640px) {
  .page-moysklad .hero-title { font-size: var(--fs-h1-mobile); line-height: var(--lh-h1-mobile); }
  .page-moysklad .hero-price-summary { padding-left: 14px; }
  .page-moysklad .hero-actions--product { gap: 10px; margin: 20px 0 16px; }
  .page-moysklad .hero-actions--product > * { width: 100%; text-align: center; }
  .getting-started { margin-top: 36px; padding-top: 28px; }
  .getting-started-heading .section-label { margin-bottom: 10px; }
  .getting-started h2 { font-size: 30px; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  #product .product-disclosure--product .product-layout { padding: 14px; }
  .product-disclosure summary { min-height: 56px; padding: 14px 48px 14px 16px; font-size: 14px; }
  .product-disclosure summary::after { right: 16px; }
  .docs-grid { margin: 14px; }
  .features-scroll-hint { display: none; }
  .features-scroll-wrap { overflow-x: visible; margin: 0; }
  .features-table { width: 100%; min-width: 0; table-layout: fixed; }
  .features-table col:first-child { width: 46%; }
  .features-table col:nth-child(2),
  .features-table col:nth-child(3) { width: 27%; }
  .features-table thead th {
    padding: 10px 4px;
    font-size: 10px;
    letter-spacing: .04em;
    text-align: center;
  }
  .features-table tbody th[scope="row"] {
    padding: 11px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .features-table td { padding: 8px 3px; }
  .plan-header-name { font-size: 11px; }
  .plan-header-price { font-size: 9px; }
  .availability { width: 28px; height: 28px; min-width: 28px; }
  .availability-symbol { font-size: 18px; }
  .availability--no .availability-symbol::after { font-size: 21px; }
  .price-card { padding: 36px 24px; }
}
@media (max-width: 380px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ─── STICKY PAGE NAV ACCENT ─── */
.page-nav-link--accent {
  color: var(--bn) !important;
  border-bottom-color: var(--bn) !important;
}
.page-nav-link--accent:hover { opacity: .85; }
