/* ===================================================================
   WARNAX — общий стиль внутренних страниц (услуги, статьи)
   =================================================================== */
:root {
  --wx-ink: #231733;
  --wx-ink-soft: #4a3f5c;
  --wx-muted: #7a6f8a;
  --wx-violet: #6b3fa0;
  --wx-violet-2: #9a6cf0;
  --wx-line: rgba(35, 23, 51, .09);
  --wx-card: #ffffff;
  --wx-bg: #fbfafd;
  --wx-shadow: 0 10px 30px rgba(35, 23, 51, .07);
  --wx-shadow-hover: 0 22px 48px rgba(35, 23, 51, .14);
  --wx-grad: linear-gradient(135deg, #ffa53d 0%, #ff6a00 100%);
  --wx-grad-violet: linear-gradient(135deg, #7c4dbb 0%, #5a2e93 100%);
  --wx-radius: 22px;
  --wx-container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wx-bg);
  color: var(--wx-ink);
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wx-violet); text-decoration: none; }
a:hover { color: var(--wx-violet-2); }

h1, h2, h3, h4 {
  font-family: Montserrat, "Source Sans Pro", Arial, sans-serif;
  color: var(--wx-ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; }
h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }

p { margin: 0 0 16px; }

.wx-container {
  width: 100%;
  max-width: var(--wx-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Липкая шапка ---------- */
.wx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wx-line);
  box-shadow: 0 6px 24px rgba(35, 23, 51, .06);
}

.wx-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 10px 0;
}

.wx-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--wx-ink);
  flex-shrink: 0;
}
.wx-logo__name {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
}
.wx-logo__sub {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wx-muted);
}

.wx-header__nav {
  display: flex;
  gap: 18px;
  margin-left: 8px;
  flex: 1;
  min-width: 0;
}
.wx-header__nav a {
  color: var(--wx-ink-soft);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.wx-header__nav a:hover { color: var(--wx-violet); }

.wx-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.wx-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--wx-ink);
  white-space: nowrap;
}
.wx-phone:hover { color: var(--wx-violet); }
.wx-phone svg { flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--wx-grad);
  color: #fff !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 12px 28px rgba(255, 106, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.wx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 106, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  filter: saturate(1.05);
  color: #fff;
}
.wx-btn:active { transform: translateY(0); }
.wx-btn:focus-visible { outline: 3px solid rgba(154, 108, 240, .5); outline-offset: 3px; }

.wx-btn--sm { padding: 12px 22px; font-size: 15px; }
.wx-btn--ghost {
  background: transparent;
  color: var(--wx-violet) !important;
  border: 1.5px solid rgba(107, 63, 160, .35);
  box-shadow: none;
}
.wx-btn--ghost:hover {
  background: rgba(154, 108, 240, .08);
  box-shadow: none;
  transform: translateY(-2px);
}
.wx-btn--light {
  background: #fff;
  color: var(--wx-violet) !important;
  box-shadow: 0 12px 28px rgba(15, 6, 30, .25);
}

/* ---------- Hero ---------- */
.wx-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 420px at 85% 6%, rgba(154, 108, 240, .20), transparent 62%),
    radial-gradient(720px 380px at 0% 62%, rgba(255, 165, 61, .13), transparent 62%),
    linear-gradient(180deg, #fbf8ff 0%, #ffffff 58%, #f7f0ff 100%);
  border-bottom: 1px solid var(--wx-line);
}

.wx-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--wx-muted);
}
.wx-breadcrumbs a { color: var(--wx-muted); }
.wx-breadcrumbs a:hover { color: var(--wx-violet); }
.wx-breadcrumbs li + li::before { content: "→"; margin-right: 8px; color: rgba(35, 23, 51, .25); }

.wx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 40px;
  align-items: start;
}

.wx-hero__lead {
  font-size: 19px;
  color: var(--wx-ink-soft);
  max-width: 640px;
}

.wx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.wx-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--wx-line);
  box-shadow: 0 4px 14px rgba(35, 23, 51, .05);
  font-size: 14px;
  font-weight: 600;
  color: var(--wx-ink-soft);
}
.wx-chips b { color: var(--wx-ink); }

.wx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.wx-hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--wx-muted);
}

/* Карточка внутри hero */
.wx-card {
  background: var(--wx-card);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow);
  padding: 26px;
}
.wx-card--accent {
  background: linear-gradient(160deg, #ffffff 0%, #f6efff 100%);
}
.wx-card__title {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.wx-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wx-card ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--wx-ink-soft);
}
.wx-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid #35b37e;
  border-bottom: 2.5px solid #35b37e;
  transform: rotate(-45deg);
}
.wx-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.wx-card__price b {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
}
.wx-card__price span { font-size: 15px; color: var(--wx-muted); }

/* ---------- Секции ---------- */
.wx-section { padding: 56px 0; }
.wx-section--tint {
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  border-top: 1px solid var(--wx-line);
  border-bottom: 1px solid var(--wx-line);
}

.wx-section__head { max-width: 760px; margin-bottom: 30px; }
.wx-section__head p { color: var(--wx-ink-soft); margin-bottom: 0; }

.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.wx-feature {
  background: var(--wx-card);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wx-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 108, 240, .28);
  box-shadow: var(--wx-shadow-hover);
}
.wx-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(154, 108, 240, .16), rgba(255, 165, 61, .16));
  color: var(--wx-violet);
}
.wx-feature h3 { margin-bottom: 8px; }
.wx-feature p { margin: 0; font-size: 15px; color: var(--wx-ink-soft); }

/* ---------- ������ ������ ---------- */
.wx-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.wx-post {
  display: flex;
  flex-direction: column;
  background: var(--wx-card);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wx-post:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 108, 240, .28);
  box-shadow: var(--wx-shadow-hover);
}
.wx-post__tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(154, 108, 240, .12);
  color: var(--wx-violet);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wx-post h2, .wx-post h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.3; }
.wx-post p { margin: 0 0 16px; font-size: 15px; color: var(--wx-ink-soft); }
.wx-post__more {
  margin-top: auto;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--wx-violet);
}
.wx-post--soon { opacity: .62; pointer-events: none; }
.wx-post--soon .wx-post__more { color: var(--wx-ink-soft); }

/* ---------- Шаги ---------- */
.wx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.wx-step {
  position: relative;
  background: var(--wx-card);
  border: 1px solid var(--wx-line);
  border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow);
  padding: 26px 22px 22px;
}
.wx-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--wx-grad-violet);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(107, 63, 160, .3);
}
.wx-step h3 { font-size: 17px; margin-bottom: 8px; }
.wx-step p { margin: 0; font-size: 15px; color: var(--wx-ink-soft); }

/* ---------- FAQ ---------- */
.wx-faq { max-width: 860px; }
.wx-faq details {
  background: var(--wx-card);
  border: 1px solid var(--wx-line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(35, 23, 51, .05);
  margin-bottom: 12px;
  overflow: hidden;
}
.wx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}
.wx-faq summary::-webkit-details-marker { display: none; }
.wx-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--wx-violet);
  transition: transform .2s ease;
}
.wx-faq details[open] summary::after { transform: rotate(45deg); }
.wx-faq details > div {
  padding: 0 22px 20px;
  color: var(--wx-ink-soft);
  font-size: 15.5px;
}

/* ---------- CTA-полоса ---------- */
.wx-cta {
  margin: 0;
  padding: 56px 0;
  background: linear-gradient(140deg, #2f0b4f 0%, #5b2a8c 58%, #3c0f60 100%);
  color: #fff;
}
.wx-cta h2 { color: #fff; }
.wx-cta p { color: rgba(255, 255, 255, .78); max-width: 560px; }
.wx-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.wx-cta__text { flex: 1 1 380px; }
.wx-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wx-cta a.wx-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.wx-cta a.wx-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Статья ---------- */
.wx-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 64px;
}
.wx-article {
  max-width: 760px;
  font-size: 17.5px;
}
.wx-article h2 {
  margin: 44px 0 16px;
  padding-bottom: 12px;
  position: relative;
}
.wx-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #9a6cf0 0%, #ff8a3d 100%);
}
.wx-article h3 { margin: 30px 0 12px; }
.wx-article ul, .wx-article ol { margin: 0 0 18px; padding-left: 24px; }
.wx-article li { margin-bottom: 8px; }
.wx-article blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--wx-violet-2);
  background: #fff;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 6px 18px rgba(35, 23, 51, .05);
  color: var(--wx-ink-soft);
}
.wx-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(35, 23, 51, .05);
  font-size: 15.5px;
}
.wx-article th, .wx-article td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--wx-line);
  vertical-align: top;
}
.wx-article th { background: #f6f0fd; font-weight: 700; }
.wx-article tr:last-child td { border-bottom: 0; }

.wx-note {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff8ec;
  border: 1px solid rgba(255, 165, 61, .35);
  color: #6b4a1f;
  font-size: 15.5px;
}
.wx-note b { color: #4a3110; }

.wx-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.wx-aside .wx-card { padding: 22px; }
.wx-aside__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wx-aside__list a { font-size: 15px; font-weight: 600; }

.wx-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--wx-muted);
}

.wx-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ---------- Футер ---------- */
.wx-footer {
  padding: 46px 0 32px;
  background: #1d0f2e;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}
.wx-footer a { color: rgba(255, 255, 255, .86); }
.wx-footer a:hover { color: #fff; }
.wx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.wx-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.wx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.wx-logo--light { color: #fff; margin-bottom: 14px; }
.wx-logo--light .wx-logo__sub { color: rgba(255, 255, 255, .55); }

.wx-footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.wx-footer__legal img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  padding: 4px;
  flex-shrink: 0;
}
.wx-footer__legal p { margin: 0; }

.wx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Мобильная нижняя панель ---------- */
.wx-mobilebar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--wx-line);
  box-shadow: 0 -6px 24px rgba(35, 23, 51, .08);
}
.wx-mobilebar .wx-btn { flex: 1; padding: 14px 18px; font-size: 15px; }
.wx-mobilebar .wx-btn--ghost { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .wx-header__nav { display: none; }
  .wx-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .wx-article-layout { grid-template-columns: 1fr; gap: 32px; }
  .wx-aside { position: static; }
  .wx-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wx-header__inner { min-height: 60px; gap: 10px; }
  .wx-logo__name { font-size: 19px; }
  .wx-logo__sub { display: none; }
  .wx-phone { font-size: 15px; }
  .wx-phone span { display: none; }
  .wx-header__actions { gap: 10px; }
  .wx-header .wx-btn { padding: 10px 16px; font-size: 14px; }
  .wx-hero { padding: 26px 0 36px; }
  .wx-chips li { font-size: 13px; padding: 8px 12px; }
  .wx-section { padding: 40px 0; }
  .wx-cta { padding: 40px 0; }
  .wx-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .wx-mobilebar { display: flex; }
  .wx-faq summary { padding: 16px 18px; font-size: 15px; }
  .wx-article { font-size: 16.5px; }
}

@media print {
  .wx-header, .wx-mobilebar, .wx-cta, .wx-aside, .wx-footer { display: none !important; }
}
