/* Гарантийное обращение (11.10.2026): кнопка в шапке, окно с формой, блок на «Гарантии» и главной. */

/* ── Кнопка в шапке (рядом с «Помочь с выбором»): щит в золотом круге + подпись ── */
.stella-wr-hdr { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; }
.stella-wr-hdr__ico { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #d1a751; color: #1d1d1f; transition: background-color .15s ease, transform .15s ease; }
.stella-wr-hdr:hover .stella-wr-hdr__ico { background: #1d1d1f; color: #d1a751; transform: translateY(-1px); }
.stella-wr-hdr .personal__item-text { white-space: nowrap; }
/* на телефоне кнопки в нижней панели нет (как и «Помочь с выбором») — там вход через блоки на «Гарантии» и главной */
@media (max-width: 1024px) { header .personal__item--warranty { display: none !important; } }
/* поиск чуть короче — освобождаем место кнопке */
@media (min-width: 1025px) {
  header.header .header__search-wrapper { flex: 1 1 auto; max-width: 560px; }
}

/* ── Окно ── */
.stella-wr { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.stella-wr[hidden] { display: none; }
.stella-wr *, .stella-wr *::before, .stella-wr *::after { box-sizing: border-box; }
.stella-wr__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 16, .62); }
.stella-wr__box { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; padding: 32px 32px 28px;
  border-radius: 16px; background: #fff; color: #1d1d1f; font-family: 'Open Sans', Arial, sans-serif; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.stella-wr__box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #b8893a, #e6c77c 50%, #b8893a); }
.stella-wr__x { position: absolute; right: 12px; top: 14px; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: #52525b; cursor: pointer; }
.stella-wr__x:hover { background: #f4efe4; color: #1d1d1f; }
.stella-wr__head { display: flex; align-items: center; gap: 14px; margin: 0 40px 18px 0; }
.stella-wr__shield { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
  background: #1d1d1f; color: #d1a751; }
.stella-wr__shield--ok { background: #d1a751; color: #1d1d1f; border-radius: 50%; margin: 0 auto 14px; width: 60px; height: 60px; }
.stella-wr__kicker { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6620; }
.stella-wr__title { margin: 0; font: 600 28px/1.15 'Literata PNM', Georgia, 'Times New Roman', serif; color: #1d1d1f; }
.stella-wr__promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.stella-wr__promise li { margin: 0; padding: 10px 12px; border-radius: 10px; background: #faf6ec; border: 1px solid #efe4c9; }
.stella-wr__promise b { display: block; font-size: 13.5px; line-height: 1.3; color: #1d1d1f; }
.stella-wr__promise span { display: block; font-size: 12.5px; line-height: 1.35; color: #6b5a33; }
.stella-wr__form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.stella-wr__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stella-wr__field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.stella-wr__field > span { font-size: 13.5px; font-weight: 600; color: #52525b; }
.stella-wr__field input, .stella-wr__field textarea { width: 100%; padding: 11px 13px; border: 1px solid #ddd5c4; border-radius: 8px; background: #fff;
  font: inherit; font-size: 15.5px; color: #1d1d1f; transition: border-color .15s, box-shadow .15s; }
.stella-wr__field textarea { resize: vertical; min-height: 78px; }
.stella-wr__field input:focus, .stella-wr__field textarea:focus { outline: none; border-color: #d1a751; box-shadow: 0 0 0 3px rgba(209, 167, 81, .22); }
.stella-wr__field input.is-error { border-color: #d14b3a; box-shadow: 0 0 0 3px rgba(209, 75, 58, .15); }
.stella-wr__photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.stella-wr__add { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border: 1.5px dashed #d1a751; border-radius: 10px;
  background: #fffbf2; color: #8a6620; cursor: pointer; transition: background-color .15s; }
.stella-wr__add:hover { background: #faf1dc; }
.stella-wr__add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.stella-wr__add b { display: block; font-size: 14.5px; color: #1d1d1f; }
.stella-wr__add small { display: block; font-size: 12.5px; color: #8a6620; }
.stella-wr__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.stella-wr__thumb { position: relative; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: #f2ede2; }
.stella-wr__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stella-wr__thumb button { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 20px; cursor: pointer; }
.stella-wr__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.stella-wr__consent { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; color: #52525b; cursor: pointer; }
.stella-wr__consent a { color: #8a6620; }
.stella-wr__consent.is-error { color: #b23a2c; }
.stella-wr .stella-wr__consent input[type="checkbox"] {   /* общие стили сайта прячут чекбоксы — согласие должно быть видно */
  -webkit-appearance: checkbox !important; appearance: auto !important; position: static !important; display: inline-block !important;
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; width: 18px !important; height: 18px !important;
  margin: 1px 0 0 !important; flex: 0 0 18px; accent-color: #8a6620; }
.stella-wr__submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 8px;
  background: #d1a751; color: #1d1d1f; font: 700 16px/1 'Open Sans', Arial, sans-serif; cursor: pointer; transition: background-color .15s; }
.stella-wr__submit:hover { background: #c49a44; }
.stella-wr__submit[disabled] { opacity: .6; cursor: wait; }
.stella-wr__submit--light { background: #f4efe4; margin-top: 18px; }
.stella-wr__msg { min-height: 1.2em; margin: 0; font-size: 14.5px; font-weight: 600; }
.stella-wr__msg.is-err { color: #b23a2c; }
.stella-wr__msg.is-ok { color: #2e7d4f; }
.stella-wr__done { padding: 12px 4px 4px; text-align: center; }
.stella-wr__done-title { margin: 0 0 8px; font: 600 24px/1.25 'Literata PNM', Georgia, serif; color: #1d1d1f; }
.stella-wr__done-title b { white-space: nowrap; color: #8a6620; }
.stella-wr__done-text { margin: 0 auto; max-width: 30em; font-size: 15.5px; line-height: 1.55; color: #52525b; }
html.stella-wr-open { overflow: hidden; }
@media (max-width: 600px) {
  .stella-wr { padding: 0; align-items: flex-end; }
  .stella-wr__box { max-height: 94vh; padding: 26px 18px 20px; border-radius: 16px 16px 0 0; }
  .stella-wr__title { font-size: 23px; }
  .stella-wr__shield { width: 44px; height: 44px; }
  .stella-wr__promise { grid-template-columns: 1fr; gap: 6px; }
  .stella-wr__promise li { display: flex; gap: 6px; align-items: baseline; padding: 8px 10px; }
  .stella-wr__row { grid-template-columns: 1fr; }
}

/* ── Блок на странице «Гарантии» и на главной ── */
.stella-wrb { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 28px; align-items: center; margin: 40px 0;
  padding: 30px 32px; border: 1px solid #e8dfcc; border-radius: 16px; background: #faf8f4; color: #1d1d1f; overflow: hidden;
  font-family: 'Open Sans', Arial, sans-serif; box-shadow: 0 1px 2px rgba(33, 31, 28, .05), 0 12px 32px rgba(33, 31, 28, .07); }
.stella-wrb *, .stella-wrb *::before, .stella-wrb *::after { box-sizing: border-box; }
.stella-wrb::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #b8893a, #e6c77c 50%, #b8893a); }
.stella-wrb__shield { align-self: start; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px;
  background: #1d1d1f; color: #d1a751; }
.stella-wrb .stella-wrb__kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6620; }
.stella-wrb .stella-wrb__title { margin: 0 0 8px; font: 600 clamp(22px, 1vw + 16px, 30px)/1.2 'Literata PNM', Georgia, 'Times New Roman', serif; color: #1d1d1f; }
.stella-wrb .stella-wrb__text { margin: 0; max-width: 46em; font-size: 15.5px; line-height: 1.55; color: #52525b; }
.stella-wrb__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.stella-wrb__facts li { margin: 0; padding-left: 12px; border-left: 3px solid #d1a751; }
.stella-wrb__facts b { display: block; font-size: 15px; line-height: 1.3; }
.stella-wrb__facts span { display: block; font-size: 13px; line-height: 1.35; color: #6b6b72; }
.stella-wrb__cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.stella-wrb__btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border: 0; border-radius: 8px;
  background: #1d1d1f; color: #fff; font: 700 16px/1.2 'Open Sans', Arial, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.stella-wrb__btn:hover { background: #8a6620; }
.stella-wrb a.stella-wrb__tel { font-size: 14px; color: #52525b; text-decoration: none; white-space: nowrap; }
.stella-wrb a.stella-wrb__tel:hover { color: #8a6620; }
.stella-wrb--compact { padding: 24px 28px; }
.stella-wrb--compact .stella-wrb__shield { width: 56px; height: 56px; align-self: center; }
@media (max-width: 900px) {
  .stella-wrb { grid-template-columns: auto minmax(0, 1fr); padding: 24px 20px; }
  .stella-wrb__cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stella-wrb { grid-template-columns: 1fr; gap: 14px; }
  .stella-wrb__shield { width: 52px; height: 52px; }
  .stella-wrb__btn { white-space: normal; }
}

/* ── Шапка: цветные MAX и Telegram вместо «Помочь с выбором» (12.10.2026, владелец) ── */
.stella-hdr-msg { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.stella-hdr-msg img { width: 24px; height: 24px; display: block; transition: transform .15s ease; }
.stella-hdr-msg:hover img { transform: translateY(-1px) scale(1.06); }
@media (max-width: 1024px) { header .personal__item--msg { display: none !important; } }
