/*
Theme Name: Grushinsky Humanitarian Center
Description: Благотворительный сайт Грушинского Гуманитарного Центра Помощи
Version: 1.0
Author: Алексей Шмыга
Text Domain: https://grushincenter.ru/
*/

:root {
  --color-accent: #E64213;
  --color-accent-dark: #c5360f;
  --color-black: #1a1a1a;
  --color-gray-900: #2c2c2c;
  --color-gray-700: #4E453A;
  --color-gray-500: #8a8a8a;
  --color-gray-300: #d4d4d4;
  --color-gray-100: #f5f5f5;
  --color-white: #ffffff;
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1240px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   ПЛАВАЮЩИЙ ВИДЖЕТ (SPW)
   ========================================================================= */
.spw {
  position: fixed; right: 22px; bottom: 22px; z-index: 9990;
  font-family: var(--font);
}
.spw__fab {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(230,66,19,.4);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.spw__fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(230,66,19,.5); }
.spw__fab svg { width: 26px; height: 26px; position: absolute; transition: all .3s var(--ease); }
.spw__fab-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.spw.is-open .spw__fab-chat { opacity: 0; transform: rotate(90deg) scale(.5); }
.spw.is-open .spw__fab-close { opacity: 1; transform: rotate(0) scale(1); }

.spw__panel {
  position: absolute;
  bottom: 78px; right: 0;
  width: 360px; max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom right;
  transition: all .35s var(--ease);
}
.spw.is-open .spw__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.spw__head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper-2));
}
.spw__logo { position: relative; flex-shrink: 0; }
.spw__logo img { height: 32px; width: auto; }
.spw__dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px #fff;
}
.spw__head-text { flex: 1; }
.spw__title { font-weight: 700; color: var(--ink); font-size: .95rem; }
.spw__subtitle { font-size: .78rem; color: var(--slate-2); margin-top: 2px; }
.spw__close {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--slate);
  transition: all .2s;
}
.spw__close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

.spw__body { padding: 18px 20px; }
.spw__msg {
  padding: 12px 14px; border-radius: 12px;
  background: var(--paper-2); color: var(--slate);
  font-size: .86rem; line-height: 1.5;
  margin-bottom: 16px;
}
.spw__label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--slate-2); margin-bottom: 10px;
}
.spw__q {
  width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-size: .86rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: all .2s var(--ease);
  cursor: pointer;
  font-family: inherit;
}
.spw__q:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.spw__q-ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--slate);
  flex-shrink: 0;
  transition: all .2s;
}
.spw__q:hover .spw__q-ico { background: var(--accent); color: #fff; }
.spw__q-ico svg { width: 12px; height: 12px; }

.spw__bar {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.spw__bar-row { display: flex; gap: 10px; align-items: center; }
.spw__bar-ch {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  transition: all .2s;
}
.spw__bar-ch:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.spw__bar-ch svg { width: 18px; height: 18px; }
.spw__cta {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .86rem;
  font-family: inherit; cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: all .2s var(--ease);
}
.spw__cta:hover { background: var(--accent-600); transform: translateY(-2px); }
.spw__foot {
  font-size: .72rem; color: var(--slate-2);
  margin-top: 10px; text-align: center;
}

@media (max-width: 460px) {
  .spw { right: 14px; bottom: 14px; }
  .spw__panel { width: calc(100vw - 28px); }
  .spw__fab { width: 54px; height: 54px; }
}