/* Блок «Отправьте чертёж на расчёт» на страницах статей */
:root {
  --alf-danger: #ff8080;
  --alf-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.article-lead-block {
  margin-top: 40px;
  padding: 22px 20px;
  border: 1px solid var(--line, #322a20);
  border-radius: var(--radius, 14px);
  background: rgba(20, 20, 20, 0.92);
}

.article-lead-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #c78b4a);
}

.article-lead-title {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #f5efe5);
}

.article-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-form-grid .alf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-form-grid .alf-full {
  grid-column: span 2;
}

.article-form-grid label {
  font-size: 0.9rem;
  color: #dcc9ad;
}

.article-form-grid input[type="text"],
.article-form-grid input[type="tel"],
.article-form-grid input[type="email"] {
  width: 100%;
  border: 1px solid var(--line, #322a20);
  border-radius: 10px;
  background: rgba(13, 13, 13, 0.92);
  color: var(--text, #f5efe5);
  font: inherit;
  padding: 11px 12px;
}

.alf-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.alf-file-name {
  color: var(--muted, #c8b89f);
  font-size: 0.9rem;
  word-break: break-all;
}

.alf-hint {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #bda88c;
}

.alf-error {
  color: var(--alf-danger);
  font-size: 0.82rem;
  display: none;
}

.alf-error.show {
  display: block;
}

.alf-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted, #c8b89f);
  font-size: 0.9rem;
}

.alf-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.alf-checkbox a {
  color: var(--accent, #c78b4a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alf-btn {
  border: 0;
  border-radius: 10px;
  min-height: 46px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.2s;
}

.alf-btn-primary {
  background: var(--accent, #c78b4a);
  color: #16110a;
}

.alf-btn-primary:hover {
  background: #ddb26f;
  transform: translateY(-1px);
}

.alf-btn-dark {
  background: #1b1b1b;
  color: var(--text, #f5efe5);
  border: 1px solid var(--line, #322a20);
}

.alf-btn-dark:hover {
  background: #232323;
}

.alf-tight-hint {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #bda88c;
}

#articleToast.alf-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  background: #1d1a16;
  border: 1px solid #5e4426;
  color: #f1e2cc;
  border-radius: 10px;
  padding: 12px 14px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
}

#articleToast.alf-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#articlePrivacyModal.alf-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 15, 0.78);
  display: none;
  place-items: center;
  z-index: 90;
  padding: 20px;
}

#articlePrivacyModal.alf-modal.show {
  display: grid;
}

.alf-modal-box {
  width: min(620px, 100%);
  border: 1px solid var(--line, #322a20);
  border-radius: 12px;
  background: #172233;
  padding: 18px;
  color: #e8e0d5;
}

.alf-modal-box h3 {
  margin-top: 0;
}

@media (max-width: 560px) {
  .article-form-grid {
    grid-template-columns: 1fr;
  }
  .article-form-grid .alf-full {
    grid-column: span 1;
  }
  #articleToast.alf-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
