/* ============================================================
   АКЦИИ — ИЗОЛИРОВАННЫЕ СТИЛИ (префикс .wc-sales-*)
   Подключается ТОЛЬКО на странице /akczii/
   ============================================================ */

.wc-sales-root {
  /* локальные токены, чтобы не конфликтовать с темой */
  --wcs-bg: #fbf7f4;
  --wcs-card: #ffffff;
  --wcs-text: #2a1f2d;
  --wcs-muted: #7a6a72;
  --wcs-border: #ece4e0;
  --wcs-primary: #c45c8a;
  /* фирменный розовый */
  --wcs-primary-2: #e07ba6;
  --wcs-primary-soft: #fbecf2;
  --wcs-accent: #6fb2a8;
  /* тиловый */
  --wcs-radius: 22px;
  --wcs-radius-sm: 14px;
  --wcs-shadow-sm: 0 4px 14px rgba(196, 92, 138, .08);
  --wcs-shadow-md: 0 18px 40px -16px rgba(196, 92, 138, .28);
  --wcs-grad: linear-gradient(135deg, #c45c8a 0%, #e07ba6 100%);
  --wcs-font: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  font-family: var(--wcs-font);
  color: var(--wcs-text);
  padding: 48px 0 80px;
  -webkit-font-smoothing: antialiased;
}

.wc-sales-root *,
.wc-sales-root *::before,
.wc-sales-root *::after {
  box-sizing: border-box;
}

.wc-sales-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- HERO ---------- */
.wc-sales-hero {
  text-align: center;
  margin-bottom: 56px;
}

.wc-sales-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--wcs-primary-soft);
  color: var(--wcs-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wc-sales-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wcs-primary);
  animation: wcsPulse 1.8s ease-in-out infinite;
}

@keyframes wcsPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.wc-sales-title {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--wcs-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wc-sales-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--wcs-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.wc-sales-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.wc-sales-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 22px;
  background: var(--wcs-card);
  border: 1px solid var(--wcs-border);
  border-radius: 999px;
  box-shadow: var(--wcs-shadow-sm);
}

.wc-sales-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--wcs-primary);
}

.wc-sales-stat-label {
  font-size: 13px;
  color: var(--wcs-muted);
  text-transform: lowercase;
}

/* ---------- GRID ---------- */
.wc-sales-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ---------- CARD ---------- */
.wc-sales-card {
  display: flex;
  flex-direction: column;
  background: var(--wcs-card);
  border: 1px solid var(--wcs-border);
  border-radius: var(--wcs-radius);
  overflow: hidden;
  box-shadow: var(--wcs-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  opacity: 0;
  transform: translateY(18px);
}

.wc-sales-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--wcs-delay, 0ms);
}

.wc-sales-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wcs-shadow-md);
  border-color: rgba(196, 92, 138, .35);
}

.wc-sales-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1eae6;
  overflow: hidden;
}

.wc-sales-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}

.wc-sales-card:hover .wc-sales-card-media img {
  transform: scale(1.05);
}

.wc-sales-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 31, 45, .55), rgba(42, 31, 45, 0) 60%);
}

.wc-sales-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wcs-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  box-shadow: var(--wcs-shadow-sm);
  z-index: 2;
}

.wc-sales-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  color: var(--wcs-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(196, 92, 138, .15);
  z-index: 2;
}

.wc-sales-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wc-sales-card-title {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--wcs-text);
}

.wc-sales-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.wc-sales-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}

.wc-sales-btn-primary {
  flex: 1;
  background: var(--wcs-grad);
  color: #fff;
  box-shadow: var(--wcs-shadow-sm);
}

.wc-sales-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--wcs-shadow-md);
  color: #fff;
}

.wc-sales-btn-ghost {
  background: var(--wcs-card);
  color: var(--wcs-text);
  border-color: var(--wcs-border);
}

.wc-sales-btn-ghost:hover {
  border-color: var(--wcs-primary);
  color: var(--wcs-primary);
}

/* ---------- CTA SECTION ---------- */
.wc-sales-cta {
  margin-top: 64px;
}

.wc-sales-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--wcs-radius);
  background: linear-gradient(135deg, #fbecf2 0%, #fff5ec 100%);
  border: 1px solid rgba(196, 92, 138, .15);
}

.wc-sales-cta-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
}

.wc-sales-cta-text {
  margin: 0;
  color: var(--wcs-muted);
  font-size: 15px;
  max-width: 560px;
}

.wc-sales-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--wcs-grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--wcs-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  margin-bottom: 5px;
  min-width: 227px;
}

.wc-sales-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--wcs-shadow-md);
  color: #fff;
}

@media(max-width:800px) {
  .wc-sales-cta-btn {
    width: 100%;
  }
}

/* ============================================================
   МОДАЛКИ (общий контейнер #wc-sales-modals-root)
   ============================================================ */
.wc-sales-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  font-family: var(--wcs-font, 'Manrope', system-ui, sans-serif);
}

.wc-sales-modal.is-open {
  display: flex;
}

.wc-sales-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 45, .55);
  backdrop-filter: blur(4px);
  animation: wcsFadeIn .2s ease;
}

.wc-sales-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 32px auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #ece4e0;
  box-shadow: 0 30px 80px -20px rgba(42, 31, 45, .35);
  overflow: hidden;
  animation: wcsZoomIn .25s ease;
}

@keyframes wcsFadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes wcsZoomIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wc-sales-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: #f6efea;
  color: #2a1f2d;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
  z-index: 2;
}

.wc-sales-modal-close:hover {
  background: #fbecf2;
  color: #c45c8a;
}

.wc-sales-modal-body {
  padding: 32px 28px 28px;
}

.wc-sales-modal-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fbecf2;
  color: #c45c8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.wc-sales-modal-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #2a1f2d;
}

.wc-sales-modal-content p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #4a3a44;
  font-size: 15px;
}

.wc-sales-modal-content p strong {
  color: #c45c8a;
}

.wc-sales-modal-content ul {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.wc-sales-modal-content li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  color: #4a3a44;
}

.wc-sales-modal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wcs-grad, linear-gradient(135deg, #c45c8a, #e07ba6));
}

.wc-sales-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1px solid #f3dfa8;
  font-size: 14px;
  color: #6b5520;
  line-height: 1.5;
}

.wc-sales-phone-block {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fbecf2;
  border: 1px solid rgba(196, 92, 138, .2);
}

.wc-sales-phone-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c45c8a;
  margin-bottom: 6px;
}

.wc-sales-phone-block a {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #2a1f2d;
  text-decoration: none;
  margin-right: 14px;
}

.wc-sales-phone-block a:hover {
  color: #c45c8a;
}

.wc-sales-modal-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ece4e0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wc-sales-modal-footer .wc-sales-btn {
  flex: 1;
  min-width: 140px;
}

/* ---------- FORM (модалка записи) ---------- */
.wc-sales-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.wc-sales-form-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--wcs-grad, linear-gradient(135deg, #c45c8a, #e07ba6));
  color: #fff;
}

.wc-sales-form-titles h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2a1f2d;
}

.wc-sales-form-titles p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #7a6a72;
}

.wc-sales-form-selected {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fbecf2;
  border: 1px solid rgba(196, 92, 138, .2);
}

.wc-sales-form-selected-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c45c8a;
  margin-bottom: 4px;
}

.wc-sales-form-selected-value {
  font-size: 14px;
  font-weight: 600;
  color: #2a1f2d;
  line-height: 1.4;
}

.wc-sales-field {
  margin-bottom: 16px;
}

.wc-sales-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a6a72;
  margin-bottom: 6px;
}

.wc-sales-field input[type="text"],
.wc-sales-field input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #ece4e0;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: #2a1f2d;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.wc-sales-field input:focus {
  border-color: rgba(196, 92, 138, .6);
  box-shadow: 0 0 0 4px rgba(196, 92, 138, .12);
}

.wc-sales-field.has-error input {
  border-color: #e85d5d;
}

.wc-sales-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #e85d5d;
}

.wc-sales-field.has-error .wc-sales-field-error {
  display: block;
}

.wc-sales-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #4a3a44;
  line-height: 1.4;
  cursor: pointer;
}

.wc-sales-checkbox input {
  margin-top: 3px;
  accent-color: #c45c8a;
}

.wc-sales-checkbox a {
  color: #c45c8a;
  text-decoration: underline;
}

.wc-sales-submit {
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: var(--wcs-grad, linear-gradient(135deg, #c45c8a, #e07ba6));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 92, 138, .3);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.wc-sales-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 92, 138, .35);
}

.wc-sales-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.wc-sales-form-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #7a6a72;
}

.wc-sales-alert {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.wc-sales-alert.is-success {
  display: block;
  background: #e9f7f2;
  border: 1px solid #b8e3d5;
  color: #1f6b54;
}

.wc-sales-alert.is-error {
  display: block;
  background: #fdecec;
  border: 1px solid #f5b8b8;
  color: #8a2a2a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .wc-sales-root {
    padding: 32px 0 56px;
  }

  .wc-sales-cta-inner {
    padding: 28px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-sales-modal-body {
    padding: 26px 20px 22px;
  }

  .wc-sales-modal-card {
    margin: 16px auto;
  }

  .wc-sales-card-actions {
    flex-direction: column;
  }

  .wc-sales-btn-ghost {
    width: 100%;
  }
}