/* ─── HERO (светлый, со значками МойСклад / 1С) ─── */
#hero {
  background: var(--n900);
  position: relative;
  padding: 80px 56px 56px;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 900px) {
  #hero { padding: 56px 24px 40px; }
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
}
.hero-product-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 32px;
}
.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);
}
.hero-plus { font-size: 26px; font-weight: 300; color: var(--g6); }
.hero-title {
  font-size: 58px; font-weight: 700;
  letter-spacing: -.03em; line-height: .95;
  color: #0A1A35; margin-bottom: 20px;
}
.hero-title span { color: var(--bn); }
.hero-sub {
  font-size: 18px; font-weight: 400;
  color: var(--g4);
  line-height: 1.65; margin-bottom: 40px;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ─── 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: 32px; }
.price-year strong { color: var(--bn); }
.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); color: #fff;
  box-shadow: 0 6px 24px rgba(249,115,22,.35);
}
.price-cta.primary:hover {
  background: #ea6700;
  box-shadow: 0 8px 32px rgba(249,115,22,.5);
  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; }

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

/* ─── Уплотнение между всеми смежными секциями ─── */
#pricing  { padding-top: 32px; padding-bottom: 32px; }
#features { padding-top: 32px; padding-bottom: 32px; }
#documents { padding-top: 32px; }
@media (max-width: 900px) {
  #pricing  { padding-top: 20px; padding-bottom: 20px; }
  #features { padding-top: 20px; padding-bottom: 20px; }
  #documents { padding-top: 20px; }
}
#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); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.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-header {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 0;
  background: var(--n900);
  border: 1px solid rgba(29,78,216,.1);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative; z-index: 1;
}
.features-header-cell {
  padding: 20px 28px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--g4);
}
.features-header-cell.plan {
  text-align: center;
  background: linear-gradient(135deg, var(--bp), var(--be));
  border-left: 1px solid rgba(29,78,216,.1);
}
.features-header-cell.plan .plan-header-name { color: #fff; }
.features-header-cell.plan .plan-header-price { color: rgba(255,255,255,.8); }
.features-header-cell.plan.featured {
  background: linear-gradient(135deg, var(--bn), #ea6700);
  color: #fff;
}
.plan-header-name { font-size: 16px; font-weight: 700; color: var(--bp); margin-bottom: 4px; }
.plan-header-name.white { color: #fff; }
.plan-header-price {
  font-size: 12px; color: var(--g6); font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.plan-header-price.white { color: rgba(255,255,255,.8); }
.features-group-title {
  background: linear-gradient(90deg, var(--n800), var(--n900));
  padding: 12px 28px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--be);
  border-left: 3px solid var(--bp);
  border-bottom: 1px solid rgba(29,78,216,.08);
  position: relative; z-index: 1;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  border-bottom: 1px solid rgba(29,78,216,.06);
  background: #fff;
  transition: background .15s;
  position: relative; z-index: 1;
}
.feature-row:hover { background: var(--n900); }
.feature-row:last-child {
  border-radius: 0 0 16px 16px;
  border-bottom: 1px solid rgba(29,78,216,.1);
}
.feature-name {
  padding: 16px 28px;
  font-size: 14px; color: #0A1A35; line-height: 1.5;
  border-right: 1px solid rgba(29,78,216,.06);
}
.feature-check {
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border-right: 1px solid rgba(29,78,216,.06);
}
.check-yes {
  width: 28px; height: 28px;
  background: var(--n700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-yes::after { content: '✓'; color: var(--bp); font-size: 14px; font-weight: 700; }
.check-no {
  width: 28px; height: 28px;
  border: 2px solid rgba(29,78,216,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-no::after { content: '—'; color: rgba(29,78,216,.3); font-size: 12px; }
.features-wrap {
  border: 1px solid rgba(29,78,216,.1);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  position: relative; z-index: 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: #f0f4ff;
  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: 40px; height: 40px;
  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 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: 8px;
  padding: 14px 0 4px;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(29,78,216,.2);
  cursor: pointer; transition: all .2s; border: none;
}
.slider-dot.active { background: var(--bp); transform: scale(1.25); }

/* ─── RESPONSIVE спец-стили ─── */
@media (max-width: 900px) {
  .hero-title { font-size: 44px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-header { grid-template-columns: 1fr 120px 120px; }
  .feature-row { grid-template-columns: 1fr 120px 120px; }
  .features-header-cell { padding: 16px 16px; }
  .feature-name { padding: 14px 16px; font-size: 13px; }
  .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); }
}
@media (max-width: 640px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .features-header { grid-template-columns: 1fr 96px 96px; }
  .feature-row { grid-template-columns: 1fr 96px 96px; }
  .features-header-cell { padding: 12px 8px; }
  .plan-header-name { font-size: 12px; }
  .plan-header-price { font-size: 10px; }
  .price-card { padding: 36px 24px; }
}
@media (max-width: 380px) {
  .docs-grid { grid-template-columns: 1fr; }
}
.features-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1180px;
  margin: 0 auto;
}
.features-scroll-wrap .features-header,
.features-scroll-wrap .features-wrap {
  min-width: 340px;
}

/* ─── STICKY PAGE NAV ─── */
.page-nav {
  position: sticky; top: 64px; z-index: 90;
  background: #fff;
  border-bottom: 1px solid rgba(29,78,216,.1);
  box-shadow: 0 2px 12px rgba(29,78,216,.07);
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.page-nav.visible { transform: translateY(0); }
.page-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 40px;
  display: flex; gap: 0; align-items: center;
}
.page-nav-link {
  padding: 14px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--g4); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.page-nav-link:hover { color: var(--bp); border-bottom-color: var(--bp); }
.page-nav-link--accent {
  color: var(--bn) !important;
  border-bottom-color: var(--bn) !important;
}
.page-nav-link--accent:hover { opacity: .85; }
@media (max-width: 640px) {
  .page-nav-inner { padding: 0 12px; gap: 0; overflow-x: auto; }
  .page-nav-link { padding: 12px 12px; font-size: 12px; }
}
