.setochki-request { position: relative; max-width: 900px; margin: 32px 0; padding: 28px; background: #f5f8fb; border: 1px solid #d5dfe8; border-radius: 8px; color: #222; scroll-margin-top: 24px; }
.setochki-request__anchor { position: absolute; top: 0; scroll-margin-top: 24px; }
.setochki-request h2 { color: #222; margin-top: 0; }
.setochki-request__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.setochki-request label { display: block; margin-bottom: 20px; font-weight: 600; }
.setochki-request input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .setochki-request select, .setochki-request textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #687b8b; border-radius: 4px; background: #fff; color: #222; font: inherit; font-weight: 400; font-size: 16px; }
.setochki-request textarea { resize: vertical; }
.setochki-request small { display: block; margin-top: 6px; font-weight: 400; }
.setochki-request .setochki-request__consent { display: flex; gap: 12px; font-weight: 400; }
.setochki-request__consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.setochki-request button { min-height: 48px; padding: 12px 24px; background: #0b5fa5; border: 0; border-radius: 4px; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.setochki-request button:hover { background: #084b83; }
.setochki-request button:disabled { opacity: .65; cursor: wait; }
.setochki-request :focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.setochki-request__trap { display: none; }
.setochki-request__status:empty { margin: 0; }
.setochki-request__status { margin-bottom: 0; }

/* Конфигуратор: группы кнопок-чипов (материал, толщина, крепление, задача) */
.setochki-request__field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.setochki-request__field legend { padding: 0; margin: 0 0 10px; font-weight: 600; font-size: inherit; }
.setochki-request__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.setochki-request__chip { position: relative; display: inline-flex; margin: 0; font-weight: 400; }
.setochki-request__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.setochki-request__chip span { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid #687b8b; border-radius: 4px; background: #fff; font-size: 15px; line-height: 1.25; }
.setochki-request__chip:hover span { border-color: #0b5fa5; }
.setochki-request__chip input:checked + span { background: #0b5fa5; border-color: #0b5fa5; color: #fff; }
.setochki-request__chip input:focus-visible + span { outline: 3px solid #222; outline-offset: 3px; }

/* Размер, ячейка и количество: поля в ряд внутри fieldset */
.setochki-request__sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.setochki-request__sizes label { margin-bottom: 0; }

/* Расчёт количества ячеек по ширине/высоте — появляется, когда указаны размер и ячейка */
.setochki-request__cells { margin: 14px 0 0; font-size: 14.5px; color: #45586a; }
.setochki-request__cells:empty { display: none; margin: 0; }

@media (max-width: 760px) {
  .setochki-request__sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Живая сводка выбранной конфигурации */
.setochki-request__summary { background: #fff; border: 1px solid #d5dfe8; border-radius: 4px; padding: 4px 16px; margin: 0 0 24px; }
.setochki-request__summary-title { margin: 14px 0 4px; font-weight: 600; }
.setochki-request__summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 9px 0; border-top: 1px dashed #d5dfe8; font-weight: 400; font-size: 14.5px; }
.setochki-request__summary-row span { color: #45586a; }
.setochki-request__summary-row strong { font-weight: 600; text-align: right; }

@media (max-width: 600px) {
  .setochki-request { padding: 20px 16px; }
  .setochki-request__grid { grid-template-columns: 1fr; gap: 0; }
  .setochki-request__sizes { grid-template-columns: 1fr; gap: 0; }
  .setochki-request__sizes label { margin-bottom: 20px; }
  .setochki-request button { width: 100%; }
}

/* Ссылки на форму: кнопка в тексте, блок в конце страницы */
.setochki-request-cta, .setochki-request-cta:visited { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 12px 24px; background: #0b5fa5; border-radius: 4px; color: #fff; font-weight: 600; line-height: 1.2; text-decoration: none; }
.setochki-request-cta:hover { background: #084b83; color: #fff; text-decoration: none; }
.setochki-request-cta:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.setochki-request-cta-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 0; padding: 20px 24px; background: #f5f8fb; border: 1px solid #d5dfe8; border-radius: 8px; color: #222; clear: both; }
.setochki-request-cta-block__text { margin: 0; }
@media (max-width: 600px) {
  .setochki-request-cta-block { padding: 16px; }
  .setochki-request-cta-block .setochki-request-cta { width: 100%; }
}
