/* «Написать нам» (блок «Предложения»): тихая ссылка внизу списка чертежей и в подвале, окно поверх страницы.
   Цвета и шрифт — переменные site.css. Встроенных стилей нет (CSP). */

/* ссылка: в кабинете — над почтой (на телефоне — в меню ☰), у гостя — в подвале */
.side__write { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 8px 6px; padding: 6px 10px;
  border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.side__write:hover { background: var(--hover); color: var(--ink); }
.side__write svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linejoin: round; }
.sg-foot { margin-right: 20px; }

/* окно */
.sg { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 10px 40px rgba(31, 30, 27, .18); }
.sg::backdrop { background: rgba(31, 30, 27, .35); }
.sg [hidden], .sg-page [hidden] { display: none !important; }
.sg__in { padding: 14px 20px 20px; }
.sg__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-right: -10px; }
.sg__title { font-size: 19px; font-weight: 650; }
.sg__form { display: grid; gap: 8px; }
.sg__label { font-size: 14.5px; color: var(--ink-2); }
.sg__text { height: auto; min-height: 132px; padding: 10px 14px; font: inherit; line-height: 1.45; resize: vertical; }
.sg__hint { font-size: 13px; color: var(--muted); }
.sg__err { font-size: 14px; color: var(--danger); }
.sg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sg__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg__done { display: grid; justify-items: center; gap: 10px; padding: 14px 0 4px; text-align: center; }
.sg__ok { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #E7F1EA; fill: none; stroke: var(--ok);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sg__thanks { font-size: 17px; font-weight: 500; }

/* телефон: окно повыше, чтобы клавиатура не закрыла «Отправить» */
@media (max-width: 600px) {
  .sg { margin: 10svh auto auto; }
  .sg__in { padding: 12px 16px 16px; }
}

/* страница /suggest/ — для браузера без JS */
.sg-page { max-width: 560px; }
.sg-page .sg__form { margin-top: 18px; }
.sg__done--page { justify-items: start; text-align: left; margin-top: 18px; }
