/* ==========================================================================
   Блок «Написать» на главной: вариант 7 «Плита» (выбор заказчика 2026-10-02,
   образец - contact-variants/v07.html). Одна тёплая плита на всю ширину
   колонки: слева фраза, пояснение и контурные кнопки, справа форма.
   Поля формы берут вид из style.css, здесь только плита и раскладка.
   ========================================================================== */

.final-plate {
  position: relative;
  overflow: hidden;
  text-align: left;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(209, 128, 63, 0.28), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(82, 112, 107, 0.22), transparent 70%),
    var(--bg-raised);
}

/* тонкая сетка по плите, как фон сайта */
.final-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(246, 243, 236, 0.025) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(246, 243, 236, 0.025) 0 1px, transparent 1px 40px);
}

.final-plate > * {
  position: relative;
  z-index: 1;
}

.final-plate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.final-plate .final-statement {
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  max-width: 12ch;
  margin: 0 0 1.5rem;
}

.final-plate .lede {
  margin: 0 0 2rem;
  max-width: 30rem;
}

/* поле-ловушка для спам-ботов: убрано с экрана, но остаётся в форме */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* телефон под пояснением (2026-10-20) */
.final-plate .contact-phone {
  margin: -1rem 0 2rem;
  color: var(--fg-muted);
}

.final-plate .contact-phone a {
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

/* кнопка бота в Telegram */
.contact-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: -0.75rem 0 2rem;
  padding: 0.6rem 1.1rem 0.6rem 0.65rem;
  border: 1px solid rgba(38, 165, 228, 0.45);
  border-radius: var(--r-pill);
  background: rgba(38, 165, 228, 0.12);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.contact-tg:hover,
.contact-tg:focus-visible {
  background: rgba(38, 165, 228, 0.22);
  border-color: rgba(38, 165, 228, 0.8);
}

.contact-tg svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.final-plate .btn-row {
  gap: 0.75rem;
}

/* контурные кнопки: без жемчужной заливки и тени */
.btn-outline {
  background: none;
  box-shadow: none;
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: none;
  box-shadow: none;
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.final-plate .contact-form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.final-plate .form-field input,
.final-plate .form-field select,
.final-plate .form-field textarea {
  background: rgba(10, 10, 10, 0.6);
}

.contact-consent {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--fg-faint);
}

.contact-consent a {
  color: var(--fg-muted);
}

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

@media (max-width: 860px) {
  .final-plate-grid {
    grid-template-columns: 1fr;
  }

  .final-plate .final-statement {
    max-width: 16ch;
  }
}
