:root {
  --bg-page: #1e1e1e;
  --bg-section: #262626;
  --bg-section-alt: #2d2d2d;
  --bg-card: #333333;
  --text: #ffffff;
  --text-muted: #b8b8b8;
  --accent: #bdf300;
  --accent-2: #03c1fe;
  --text-dark: #262626;
  --border: #404040;
  --max: 1140px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--bg-section-alt);
}

.section--default {
  background: var(--bg-section);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header__phone {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  padding: 14px 28px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-dark);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
  padding: 56px 0 64px;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__decor svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 20px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.badges--partner {
  gap: 16px;
}

.badge {
  background: rgba(189, 243, 0, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.875rem;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.badge-bitrix {
  font-size: 1.375rem;
  font-weight: 700;
  color: #03c1fe;
  letter-spacing: -0.02em;
  line-height: 1;
}

.badge-bitrix span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: #03c1fe;
  color: #fff;
  font-size: 0.78em;
  vertical-align: middle;
}

.hero__lead {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.checklist li {
  padding: 6px 0 6px 36px;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(189, 243, 0, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__contact h3 {
  margin: 32px 0 16px;
  font-size: 1.125rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--text-muted);
}

.contact-list a:hover {
  color: var(--accent);
}

/* Form card */
.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  color: var(--text-dark);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  text-align: center;
  color: var(--text-dark);
}

.form-card p {
  text-align: center;
  color: #666;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-2);
  border-color: transparent;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message--ok {
  color: #2e7d32;
}

.form-message--err {
  color: #c62828;
}

.form-consent {
  font-size: 0.75rem;
  color: #666;
  margin: 12px 0 16px;
  line-height: 1.4;
}

.form-card__b24 {
  min-height: 280px;
}

.form-card__b24:empty::before {
  content: "Загрузка формы…";
  display: block;
  text-align: center;
  color: #999;
  padding: 48px 16px;
  font-size: 0.9rem;
}

.form-card__b24 iframe {
  max-width: 100%;
}

/* Заголовок дублируется в настройках CRM-формы Битрикс24 */
.form-card__b24 .b24-form-header,
.form-card__b24 .b24-form-header-title,
.form-card__b24 .b24-form-padding-title {
  display: none !important;
}

.form-card .btn {
  width: 100%;
}


/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-left: 18px;
  margin: 12px 0 0;
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.card--link:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.card--link .card__more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.card--click {
  display: block;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.card--click:hover,
.card--click:focus-visible,
.card--click:hover *,
.card--click:focus-visible * {
  text-decoration: none;
}

.card--click:hover,
.card--click:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
  color: inherit;
}

.card--click:focus-visible {
  box-shadow: 0 0 0 2px rgba(189, 243, 0, 0.35);
}

.card--popular {
  border: 2px solid var(--accent);
}

.badges--link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.badges--link:hover {
  opacity: 0.88;
  text-decoration: none;
}

.partner-badge--link {
  text-decoration: none;
}

.partner-badge--link:hover {
  text-decoration: none;
  background: rgba(189, 243, 0, 0.28);
}

.grid-pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.outcome-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 8px 0 0;
}

.case-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-card__draft {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Landing inner pages */
.page-hero {
  max-width: 800px;
}

.page-hero .section__title {
  text-align: left;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}


.price {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 16px;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 8px;
}

.num {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.accent-line {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin-top: 28px;
}

.stats {
  text-align: center;
}

.stats .num {
  font-size: 2.5rem;
}

.stats p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 8px 0 0;
}

.partner-badge {
  display: inline-block;
  background: rgba(189, 243, 0, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item strong {
  display: block;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 48px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.footer h4 {
  margin: 0 0 8px;
}

.footer p,
.footer a {
  color: var(--text-muted);
  margin: 0;
}

.footer a:hover {
  color: var(--accent);
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 48px 0 16px;
}

.cta-block h2 {
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 991px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .header__phone {
    display: none;
  }
}

@media (max-width: 575px) {
  .section {
    padding: 48px 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
