/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary {
  background: var(--blue-btn);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-btn-hover); color: #fff; }
.header .btn-primary { margin-left: 8px; }

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }

.btn-secondary {
  text-align: center;
  color: var(--blue-btn-hover);
  font-weight: 600;
  font-size: 13px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: 0.15s;
  display: block;
}
.btn-secondary:hover { background: var(--blue-light); }

/* ============================================================
   PROMO BAR
   ============================================================ */
.promo-bar {
  display: block;
  background: linear-gradient(90deg, var(--green-light) 0%, var(--green-bg) 100%);
  border-bottom: 1px solid var(--green-mid);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.promo-bar:hover {
  background: linear-gradient(90deg, #CBF3D5 0%, #DDF9E8 100%);
}
.promo-bar:hover .promo-bar-inner b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.promo-bar:active { transform: translateY(1px); }

.promo-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
}
.promo-bar-inner b { font-weight: 700; }
.promo-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.promo-bar-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.promo-bar:hover .promo-bar-arrow { transform: translateX(3px); }

/* Тост-подсказка */
.promo-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #fff;
  color: var(--text);
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.promo-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.promo-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-btn-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Пульсация поля поиска при клике на промо */
@keyframes pulse-input {
  0%   { box-shadow: 0 0 0 0 rgba(42,171,238,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(42,171,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,171,238,0); }
}
.search-input.pulse {
  border-color: var(--blue);
  animation: pulse-input 1.4s ease-out 2;
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.how {
  max-width: 1240px;
  margin: 40px auto 8px;
  padding: 0 24px;
}
.how h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.how-lead {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
  transition: 0.15s;
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--blue-btn-hover);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.faq-answer a { color: var(--blue-btn-hover); }

/* FAQ на главной (2 колонки) */
.main-faq {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.main-faq h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.main-faq .faq-lead {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 28px;
}
.main-faq .faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}
.main-faq .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow);
  transition: 0.15s;
}
.main-faq .faq-item:hover { border-color: var(--blue); }
.main-faq .faq-item[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.main-faq .faq-item summary {
  padding: 16px 0;
  font-size: 15px;
}
.main-faq .faq-answer {
  padding: 0 0 18px;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(25,118,210,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.15s;
  z-index: 90;
  cursor: pointer;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--blue-btn-hover);
  box-shadow: 0 8px 24px rgba(25,118,210,0.45);
}
.scroll-top:active { transform: translateY(1px); }
.scroll-top svg { display: block; }

/* ============================================================
   УНИВЕРСАЛЬНЫЙ CTA-БЛОК
   ============================================================ */
.cta-block {
  max-width: 860px;
  margin: 56px auto 0;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, #F0F8FE 100%);
  border-radius: var(--radius);
  border: 1px solid #D7EBF8;
}
.cta-block h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-block p {
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.mobile-menu { display: none; }
.catalog-notice { max-width: 1160px; margin: 16px auto; padding: 12px 20px; background: #fff4d6; color: #503c14; border-radius: 8px; }
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; }
@media (max-width: 720px) {
  .mobile-menu { display: block; padding: 12px 16px; }
  .mobile-menu nav { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 12px; }
}
