/* ildargross.ru — тема «Ночь» (выбрана владельцем 27.10.2026).
   Подключается ПОСЛЕ ildar-design.css и только перекрашивает/раскладывает блоки.
   Тексты страниц не трогает. Отключить = убрать этот файл. */

:root {
  --ig-bg: #0d1322;
  --ig-bg-deep: #0a0f1c;
  --ig-paper: rgba(255, 255, 255, 0.045);
  --ig-ink: #f4eee2;
  --ig-soft: #d9d6cf;
  --ig-muted: #9ea3b3;
  --ig-line: rgba(255, 255, 255, 0.10);
  --ig-copper: #e3c285;
  --ig-sage: #e3c285;
  --ig-gold: #e3c285;
  --n-gold-grad: linear-gradient(135deg, #ebcf98, #c99b57);
  --n-btn-ink: #151b2b;
  --n-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
}

html, body { overflow-x: hidden; }

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(96, 110, 190, 0.26), transparent 60%),
    radial-gradient(900px 600px at -10% 35%, rgba(140, 90, 160, 0.13), transparent 60%),
    #0d1322 !important;
  background-attachment: fixed !important;
  color: var(--ig-soft);
}

h1, h2, h3, h4, .entry-title { color: var(--ig-ink) !important; }
.entry-content p, .page-content p, .entry-content li, .page-content li { color: var(--ig-soft); }
a:where(:not(.wp-element-button):not(.wp-block-button__link)) { color: var(--ig-copper); }

/* шапка */
.ig-header { background: rgba(13, 19, 34, 0.82); }
.ig-logo { color: var(--ig-ink); }
.ig-menu a { color: var(--ig-muted); }
.ig-menu a:hover { color: var(--ig-ink); }
.ig-menu li:last-child a,
.ig-menu li:last-child a:hover { background: var(--n-gold-grad); color: var(--n-btn-ink) !important; font-weight: 700; }
.ig-header .ig-burger { color: var(--ig-ink); }

/* воздух между блоками */
.site-main { padding-top: clamp(2.2rem, 5vw, 4.5rem); }
.entry-content > h2, .page-content > h2 { margin-top: clamp(3.5rem, 7vw, 6rem) !important; }
.entry-content > p.has-small-font-size, .page-content > p.has-small-font-size { margin-top: clamp(3.5rem, 7vw, 6rem) !important; margin-bottom: .4rem; }
.entry-content > p.has-small-font-size + h2, .page-content > p.has-small-font-size + h2 { margin-top: 0 !important; }
.wp-block-columns { gap: 22px !important; margin-bottom: 22px !important; }

/* кнопки: одна гамма, без ярко-зелёного и ярко-синего */
.wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link[href*="wa.me"],
.wp-block-button:not(.is-style-outline) .wp-block-button__link[href*="t.me"] {
  background: var(--n-gold-grad) !important;
  color: var(--n-btn-ink) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: .9rem 1.6rem !important;
  transition: transform .2s, box-shadow .2s;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227, 194, 133, .28); background: var(--n-gold-grad) !important; color: var(--n-btn-ink) !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link[href*="t.me"] { background: transparent !important; color: var(--ig-ink) !important; border: 1px solid rgba(255,255,255,.35) !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--ig-ink) !important; border: 1px solid rgba(255, 255, 255, .28) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ig-gold) !important; color: var(--ig-gold) !important; background: transparent !important; }

/* карточки: любая колонка с подзаголовком */
main .wp-block-column:has(h3),
.page-content > .wp-block-columns:first-of-type:not(:has(> .wp-block-column:nth-child(3))) > .wp-block-column:last-child,
.entry-content > .wp-block-columns:first-of-type:not(:has(> .wp-block-column:nth-child(3))) > .wp-block-column:last-child {
  background: var(--ig-paper) !important;
  border: 1px solid var(--ig-line) !important;
  border-radius: 20px !important;
  padding: 1.6rem 1.6rem 1.4rem !important;
  box-shadow: var(--n-shadow) !important;
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
main .wp-block-column:has(h3):hover { transform: translateY(-3px); border-color: rgba(227, 194, 133, .45) !important; }
main .wp-block-column:has(h3) h3 { font-size: 1.6rem !important; margin: .2rem 0 .6rem !important; }
main .wp-block-column:has(h3) p { color: var(--ig-muted); font-size: 1rem; }
main .wp-block-column:has(h3) > .wp-block-buttons { margin-top: auto; padding-top: .6rem; }
main .wp-block-column:has(h3) .wp-block-paragraph:last-of-type a { color: var(--ig-gold); }
main .wp-block-column:has(h3) > * { margin-top: 0 !important; margin-bottom: .55rem !important; }
/* дубль «Гипноз для сна →» текстом над такой же кнопкой: прячем текст, кнопка остаётся
   (только в карточках, где перед кнопкой два обычных абзаца — описания практик не трогаем) */
main .wp-block-column:has(h3):has(> p:not(.has-small-font-size) + p:not(.has-small-font-size) + .wp-block-buttons) > p:not(.has-small-font-size):has(+ .wp-block-buttons) { display: none; }
main .wp-block-column:has(h3) .wp-block-button__link { padding: .6rem 1.1rem !important; font-size: .92rem; }

/* сетки карточек на всю ширину, текст остаётся узким для чтения */
.entry-content > .wp-block-columns, .page-content > .wp-block-columns { max-width: 1120px !important; }

/* главная: подпись «Ильдар Гросс / Психолог, психотерапевт / методы» как визитка */
body.home .entry-content > .wp-block-columns + p:not(.has-small-font-size),
body.home .page-content > .wp-block-columns + p:not(.has-small-font-size) {
  margin-top: clamp(3.5rem, 7vw, 6rem) !important; margin-bottom: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--ig-ink) !important; line-height: 1.1;
}
body.home .entry-content > .wp-block-columns + p:not(.has-small-font-size) + p,
body.home .entry-content > .wp-block-columns + p:not(.has-small-font-size) + p + p,
body.home .page-content > .wp-block-columns + p:not(.has-small-font-size) + p,
body.home .page-content > .wp-block-columns + p:not(.has-small-font-size) + p + p {
  margin: .2rem 0 0 !important; color: var(--ig-muted) !important; font-size: .95rem;
}
body.home .entry-content > .wp-block-columns + p:not(.has-small-font-size) + p + p + p.has-small-font-size,
body.home .page-content > .wp-block-columns + p:not(.has-small-font-size) + p + p + p.has-small-font-size { margin-top: 2rem !important; }

/* метки «Флагман / Сон / Тревога» */
main .has-small-font-size { color: var(--ig-gold) !important; }

/* первый экран: карточка цены */
.entry-content > .wp-block-columns:first-of-type > .wp-block-column:last-child img,
.page-content > .wp-block-columns:first-of-type > .wp-block-column:last-child img { border-radius: 14px; }
body.home .entry-content > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-paragraph:nth-of-type(2),
body.home .page-content > .wp-block-columns:first-of-type > .wp-block-column:last-child > .wp-block-paragraph:nth-of-type(2) { color: var(--ig-ink) !important; }
main .has-large-font-size { color: var(--ig-soft) !important; }

/* фото: мягкое свечение */
main .wp-block-image img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(227,194,133,.35), 0 0 70px rgba(227,194,133,.12); }

/* цифры 20+ / 1–3 / 2000 / онлайн: компактная полоса, без лишнего воздуха */
main .wp-block-columns:has(> .wp-block-column:nth-child(4)) > .wp-block-column:has(h3) { padding: 1.2rem 1.3rem !important; }
main .wp-block-columns:has(> .wp-block-column:nth-child(4)) h3 { font-size: 2.2rem !important; margin: 0 !important; line-height: 1 !important; }
main .wp-block-columns:has(> .wp-block-column:nth-child(4)) p { margin: .3rem 0 0 !important; font-size: .9rem; }

/* видео-отзывы */
main .wp-block-video video { border-radius: 16px; box-shadow: var(--n-shadow); }
main .wp-element-caption { color: var(--ig-muted) !important; }

/* цитаты, раскрывашки, таблицы на внутренних страницах */
.wp-block-quote { border-left-color: var(--ig-gold); }
.wp-block-quote p { color: var(--ig-ink) !important; }
.wp-block-details, .wp-block-table table { background: var(--ig-paper) !important; border-color: var(--ig-line) !important; color: var(--ig-soft); }
.wp-block-details summary { color: var(--ig-ink); }
.wp-block-table th { color: var(--ig-gold); }

/* широкие сетки (шаги на «Сне» и др.) — по левому краю текста, без сдвига влево */
.entry-content > .wp-block-columns.alignwide, .page-content > .wp-block-columns.alignwide { margin-left: 0 !important; margin-right: auto !important; }

/* плавающая кнопка «Записаться» и её меню */
#igz-btn { background: linear-gradient(135deg, #ebcf98, #c99b57) !important; color: #151b2b !important; box-shadow: 0 10px 28px rgba(0,0,0,.4) !important; }
#igz-menu { background: #161e33 !important; border: 1px solid rgba(255,255,255,.1); }
#igz-menu a { color: #f4eee2 !important; }
#igz-menu a:hover { background: rgba(255,255,255,.06) !important; }
#igz-menu .igz-sep { border-top-color: rgba(255,255,255,.1) !important; }
#igz-menu .igz-note { color: #9ea3b3 !important; }

/* подвал */
.ig-footer { background: rgba(0, 0, 0, .25); }
.ig-footer a:hover { color: var(--ig-gold); }

/* телефон */
@media (max-width: 900px) {
  .ig-nav { background: #0d1322; }
}
@media (max-width: 781px) {
  /* цифры 2×2 вместо столбика на весь экран */
  main .wp-block-columns:has(> .wp-block-column:nth-child(4)) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; }
  main .wp-block-columns:has(> .wp-block-column:nth-child(4)) > .wp-block-column { margin: 0 !important; }
  .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; text-align: center; }
  main .wp-block-column:has(h3) { padding: 1.3rem !important; }
}

/* ===== v1.1 · 27.10 · правки King по критике дизайна ===== */
/* 6. контраст и размер мелкого текста */
:root { --ig-muted: #b9bdcb; }
main .has-small-font-size { font-size: .8rem !important; letter-spacing: .12em; }
main .wp-block-column:has(h3) p { color: #c3c6d2; }
main .wp-element-caption { color: #b9bdcb !important; font-size: .92rem; }

/* 1. подпись под H1 = подзаголовок: прижата к H1, отделена от абзаца */
.page-header { margin-bottom: .2rem !important; }
.page-header .entry-title { margin-bottom: .5rem !important; }
.page-content > p.has-small-font-size:first-child,
.page-content > .wp-block-columns:first-child > .wp-block-column:first-child > p.has-small-font-size:first-child {
  margin-top: 0 !important; margin-bottom: 1.5rem !important;
}
.page-content > :first-child { margin-top: 0 !important; }

/* 2. внутренние страницы: колонка текста по центру, без пустой правой половины */
@media (min-width: 901px) {
  body:not(.home) .page-header .entry-title,
  body:not(.home) .page-content > :where(:not(.alignwide):not(.alignfull):not(.wp-block-columns)) {
    max-width: 780px !important; margin-left: auto !important; margin-right: auto !important;
  }
  body:not(.home) .page-content > .wp-block-columns,
  body:not(.home) .page-content > .alignwide { margin-left: auto !important; margin-right: auto !important; }
  /* страницы, где первый экран в две колонки: заголовок по левому краю колонок */
  body:not(.home):has(.page-content > .wp-block-columns:first-child) .page-header .entry-title { max-width: 1120px !important; }
  body.home .page-content > :where(:not(.alignwide):not(.alignfull):not(.wp-block-columns)) { max-width: 860px; }
}

/* 3. первый экран главной: левая колонка по центру высоты карточки */
body.home .page-content > .wp-block-columns:first-child { align-items: flex-start !important; }
@media (min-width: 901px) {
  body.home .page-content > .wp-block-columns:first-child > .wp-block-column:last-child img {
    aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; width: 100%; height: auto; max-height: 330px;
  }
  body.home .page-content > .wp-block-columns:first-child > .wp-block-column:first-child { padding-top: .4rem; }
}

/* 4. поисковые фразы как кнопки-ссылки */
.ig-chips { margin-top: 1.4rem !important; line-height: 1 !important; }
.ig-chips .ig-dot { display: none; }
.ig-chips a {
  display: inline-block; margin: 0 .4rem .5rem 0; padding: .45rem .9rem;
  border: 1px solid rgba(227,194,133,.35); border-radius: 999px;
  font-size: .86rem; color: var(--ig-soft) !important; text-decoration: none !important;
  transition: border-color .2s, color .2s;
}
.ig-chips a:hover { border-color: var(--ig-gold); color: var(--ig-gold) !important; }

/* 5. блок «Запись» с фото */
.page-content > .wp-block-columns.ig-zapis { margin-top: clamp(3.5rem, 7vw, 6rem) !important; gap: 48px !important; }
.ig-zapis .wp-block-column > p.has-small-font-size:first-child { margin-top: 0 !important; }
.ig-zapis .wp-block-image { margin: 0 auto !important; max-width: 400px; }
.ig-zapis .wp-block-image img { width: 100%; height: auto; }

/* 7. ритм: абзац после списка, визитка на главной поскромнее */
.page-content > ul + p, .page-content > ol + p { margin-top: 1.1rem !important; }
.page-content > ul, .page-content > ol { margin-bottom: 1.1rem; }
body.home .page-content > .wp-block-columns + p:not(.has-small-font-size) { font-size: 1.45rem !important; }

/* 7. видео-отзывы: панель плеера только при наведении, кнопка ▶ поверх */
main .wp-block-video { position: relative; }
main .wp-block-video video::-webkit-media-controls-panel { opacity: 0; transition: opacity .2s; }
main .wp-block-video:hover video::-webkit-media-controls-panel,
main .wp-block-video:focus-within video::-webkit-media-controls-panel { opacity: 1; }
main .wp-block-video::before {
  content: "▶"; position: absolute; left: 50%; top: calc(50% - 1.2rem); transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding-left: 4px; box-sizing: border-box;
  background: rgba(13,19,34,.72); border: 1px solid rgba(227,194,133,.6); color: #ebcf98; font-size: 22px;
  pointer-events: none; z-index: 2; transition: opacity .2s;
}
main .wp-block-video:hover::before, main .wp-block-video:focus-within::before { opacity: 0; }

@media (max-width: 781px) {
  .page-content > .wp-block-columns.ig-zapis { gap: 24px !important; }
  .ig-zapis .wp-block-image { max-width: 300px; }
}
/* телефон: текст на одной линии с логотипом и заголовком */
@media (max-width: 781px) { .page-content { padding-left: 10px !important; padding-right: 10px !important; } }

/* ===== v1.2 · 27.10 · правки владельца по первой странице ===== */
/* 1. Все кнопки связи (WhatsApp, Telegram-личка, «Записаться») — один стиль: золотая кнопка с иконкой */
.wp-block-button .wp-block-button__link[href*="wa.me"],
.wp-block-button .wp-block-button__link[href*="t.me/IldarGross"],
.wp-block-button .wp-block-button__link[href*="/kontakty/"] {
  background: var(--n-gold-grad) !important; color: var(--n-btn-ink) !important; border: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: .55rem; font-weight: 700 !important;
}
.wp-block-button .wp-block-button__link[href*="wa.me"]::before,
.wp-block-button .wp-block-button__link[href*="t.me/IldarGross"]::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: var(--n-btn-ink);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.wp-block-button .wp-block-button__link[href*="wa.me"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.4-4.2A8.6 8.6 0 1 1 8 19.3z'/%3E%3Cpath d='M9.2 8.2c.3-.4.8-.4 1 0l.8 1.6c.1.3 0 .6-.2.8l-.5.5c.6 1.3 1.6 2.3 2.9 2.9l.5-.5c.2-.2.5-.3.8-.2l1.6.8c.4.2.4.7 0 1-.9.9-2 1.1-3.2.5a9 9 0 0 1-4.2-4.2c-.6-1.2-.4-2.3.5-3.2z' fill='black' stroke='none'/%3E%3C/svg%3E"); }
.wp-block-button .wp-block-button__link[href*="t.me/IldarGross"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 3.6L2.9 10.8c-1.1.4-1.1 1.1-.2 1.4l4.7 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.9-.4l2.2-2.2 4.6 3.4c.8.5 1.4.2 1.6-.8l3-14.3c.3-1.2-.5-1.8-1.3-1.4zM8.6 13.4l9.3-5.9c.4-.3.8-.1.5.2l-7.6 6.9-.3 3.3z'/%3E%3C/svg%3E"); }

/* 2. Второстепенные кнопки вне карточек — золотая текстовая ссылка со стрелкой */
.page-content .wp-block-column:not(:has(h3)) .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"]),
.page-content > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"]) {
  border: 0 !important; background: none !important; padding: .9rem .4rem !important;
  color: var(--ig-gold) !important; font-weight: 600 !important; text-decoration: underline !important;
  text-underline-offset: 5px; text-decoration-thickness: 1px; box-shadow: none !important; transform: none !important;
}
.page-content .wp-block-column:not(:has(h3)) .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"])::after,
.page-content > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"])::after { content: " →"; }
@media (max-width: 781px) {
  .page-content .wp-block-column:not(:has(h3)) .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"]),
  .page-content > .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"]) { width: auto !important; text-align: left !important; }
  .wp-block-buttons > .wp-block-button.is-style-outline:has(.wp-block-button__link:not([href*="wa.me"]):not([href*="t.me/IldarGross"]):not([href*="/kontakty/"])) { flex: 0 1 auto; }
}

/* 2. строка «бесплатный гипноз для сна» под кнопками главной */
.ig-free { margin-top: 1.1rem !important; font-size: .98rem; color: var(--ig-muted) !important; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.ig-free::before { content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: var(--ig-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.ig-free a { color: var(--ig-gold) !important; text-underline-offset: 4px; }

/* 4. цифры: одна полоса доверия вместо четырёх одинаковых плиток */
.page-content > .wp-block-columns.ig-stats {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important;
  border-top: 1px solid rgba(227,194,133,.25); border-bottom: 1px solid rgba(227,194,133,.25);
  padding: 1.4rem 0 !important; margin-top: 2.6rem !important;
}
.page-content > .wp-block-columns.ig-stats > .wp-block-column {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; padding: .2rem 1.4rem !important; transform: none !important; margin: 0 !important;
}
.page-content > .wp-block-columns.ig-stats > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.10) !important; }
.page-content > .wp-block-columns.ig-stats h3 { color: var(--ig-gold) !important; font-size: 2.5rem !important; font-weight: 500 !important; line-height: 1 !important; margin: 0 0 .35rem !important; }
.page-content > .wp-block-columns.ig-stats p { color: var(--ig-soft) !important; font-size: .95rem !important; margin: 0 !important; }
@media (max-width: 781px) {
  .page-content > .wp-block-columns.ig-stats { grid-template-columns: 1fr 1fr; row-gap: 1.2rem !important; }
  .page-content > .wp-block-columns.ig-stats > .wp-block-column:nth-child(3) { border-left: 0 !important; }
  .page-content > .wp-block-columns.ig-stats > .wp-block-column { padding: .2rem 1rem !important; }
  .page-content > .wp-block-columns.ig-stats h3 { font-size: 2rem !important; }
}

/* 5. отступ между вступлением раздела и сеткой карточек */
.page-content > p:not(.has-small-font-size) + .wp-block-columns { margin-top: 2rem !important; }
.page-content > h2 + p { margin-top: .9rem !important; }

/* 6. иконки в карточках «С чем приходят» (вариант А: тонкие золотые пиктограммы в кружке) */
.page-content .wp-block-column.ig-ico { position: relative; }
.page-content .wp-block-column.ig-ico::before {
  content: ""; display: block; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%;
  border: 1px solid rgba(227,194,133,.35); background: rgba(227,194,133,.07); flex: 0 0 auto;
}
.page-content .wp-block-column.ig-ico::after {
  content: ""; position: absolute; left: calc(1.6rem + 13px); top: calc(1.6rem + 13px); width: 26px; height: 26px;
  background: var(--n-gold-grad); -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat;
}
.ig-ico-moon   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3Cpath d='M17 3v3M15.5 4.5h3'/%3E%3C/svg%3E"); }
.ig-ico-wave   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h4l2.5-6 4 12 2.5-6h7'/%3E%3C/svg%3E"); }
.ig-ico-heart  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.2-9.4A4.9 4.9 0 0 1 12 7.2a4.9 4.9 0 0 1 9.2 3.4C19.5 15.4 12 20 12 20z'/%3E%3Cpath d='M12 7.2l-1.6 3.6 3 1.8-1.4 3.2'/%3E%3C/svg%3E"); }
.ig-ico-loop   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3l3 3-3 3'/%3E%3Cpath d='M4 11V9a3 3 0 0 1 3-3h13'/%3E%3Cpath d='M7 21l-3-3 3-3'/%3E%3Cpath d='M20 13v2a3 3 0 0 1-3 3H4'/%3E%3C/svg%3E"); }
.ig-ico-anchor { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.2'/%3E%3Cpath d='M12 7.2V21M8 11h8M4.5 13.5A7.5 7.5 0 0 0 12 21a7.5 7.5 0 0 0 7.5-7.5'/%3E%3C/svg%3E"); }
.ig-ico-laptop { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3Ccircle cx='12' cy='10.5' r='2'/%3E%3C/svg%3E"); }
@media (max-width: 781px) {
  .page-content .wp-block-column.ig-ico::after { left: calc(1.3rem + 13px); top: calc(1.3rem + 13px); }
}

/* v1.2.1: Telegram-личка тем же золотом (перебиваем старое правило для t.me), строка «гипноз для сна», фото первого экрана ниже */
.page-content .wp-block-buttons .wp-block-button:not(.x) .wp-block-button__link[href*="t.me/IldarGross"],
.page-content .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link[href*="t.me/IldarGross"],
.page-content .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link[href*="wa.me"] {
  background: var(--n-gold-grad) !important; color: var(--n-btn-ink) !important; border: 0 !important;
}
.ig-free { display: block !important; }
.ig-free::before { display: inline-block; vertical-align: -4px; margin-right: .5rem; }
@media (min-width: 901px) {
  body.home .page-content > .wp-block-columns:first-child > .wp-block-column:last-child img { aspect-ratio: 16 / 10 !important; max-height: 270px !important; }
}

/* v1.2.2: страницы, где сетка карточек идёт сразу после вступления (Контакты и т.п.) — всё по левому краю сетки */
@media (min-width: 901px) {
  body:not(.home):has(.page-content > .wp-block-columns:nth-child(2), .page-content > .wp-block-columns:nth-child(3)):not(:has(.page-content > .wp-block-columns:first-child)) .page-header .entry-title,
  body:not(.home):has(.page-content > .wp-block-columns:nth-child(2), .page-content > .wp-block-columns:nth-child(3)):not(:has(.page-content > .wp-block-columns:first-child)) .page-content > * {
    margin-left: 0 !important; max-width: 1120px !important;
  }
  body:not(.home):has(.page-content > .wp-block-columns:nth-child(2), .page-content > .wp-block-columns:nth-child(3)):not(:has(.page-content > .wp-block-columns:first-child)) .page-content > :where(p, ul, ol, h2, h3, blockquote) { max-width: 780px !important; }
}

/* ===== v1.3 · 27.10 · «Как проходит сеанс»: линия-таймлайн из 4 шагов вместо пустых карточек ===== */
.page-content > .wp-block-columns.ig-steps {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 28px !important;
  position: relative; margin-top: 2.4rem !important; max-width: 1120px !important;
}
.page-content > .wp-block-columns.ig-steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px;
  background: linear-gradient(90deg, rgba(227,194,133,.6), rgba(227,194,133,.15));
}
.page-content > .wp-block-columns.ig-steps > .wp-block-column {
  background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
  padding: 0 !important; margin: 0 !important; transform: none !important; position: relative;
}
.page-content > .wp-block-columns.ig-steps .ig-step-n {
  width: 56px; height: 56px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
  background: #121a2c; border: 1px solid rgba(227,194,133,.55); box-shadow: 0 0 0 6px #0d1322, 0 0 30px rgba(227,194,133,.15);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem !important; color: var(--ig-gold) !important;
  margin: 0 0 1.2rem !important; position: relative; z-index: 1;
}
.page-content > .wp-block-columns.ig-steps h3 { font-size: 1.5rem !important; margin: 0 0 .5rem !important; }
.page-content > .wp-block-columns.ig-steps p:not(.ig-step-n) { color: var(--ig-soft) !important; font-size: .98rem; line-height: 1.55; margin: 0 !important; }
.page-content > .wp-block-buttons.ig-steps-cta { margin-top: 2.2rem !important; }

@media (max-width: 900px) {
  .page-content > .wp-block-columns.ig-steps { grid-template-columns: 1fr; gap: 26px !important; }
  .page-content > .wp-block-columns.ig-steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(227,194,133,.6), rgba(227,194,133,.15)); }
  .page-content > .wp-block-columns.ig-steps > .wp-block-column { padding-left: 78px !important; min-height: 56px; }
  .page-content > .wp-block-columns.ig-steps .ig-step-n { position: absolute; left: 0; top: 0; margin: 0 !important; }
  .page-content > .wp-block-columns.ig-steps h3 { padding-top: .7rem; }
}
/* v1.3.1: заголовки шагов спокойнее, воздух между заголовком и текстом */
main .page-content > .wp-block-columns.ig-steps > .wp-block-column h3 { font-size: 1.32rem !important; margin: .2rem 0 .55rem !important; line-height: 1.2 !important; }
main .page-content > .wp-block-columns.ig-steps > .wp-block-column > * { margin-bottom: 0 !important; }
main .page-content > .wp-block-columns.ig-steps > .wp-block-column > .ig-step-n { margin-bottom: 1.1rem !important; }
/* v1.3.2: шаги на телефоне — вертикальная линия, правила сильнее старых правил «4 колонки» */
html body main .page-content > .wp-block-columns.ig-steps > .wp-block-column { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
@media (max-width: 900px) {
  html body main .page-content > .wp-block-columns.ig-steps { display: grid !important; grid-template-columns: 1fr !important; gap: 28px !important; }
  html body main .page-content > .wp-block-columns.ig-steps > .wp-block-column { padding: 0 0 0 76px !important; min-height: 56px; }
  html body main .page-content > .wp-block-columns.ig-steps > .wp-block-column > .ig-step-n { position: absolute; left: 0; top: 0; margin: 0 !important; }
  html body main .page-content > .wp-block-columns.ig-steps > .wp-block-column h3 { padding-top: .75rem; }
}
@media (min-width: 901px) { html body main .page-content > .wp-block-columns.ig-steps > .wp-block-column h3 { font-size: 1.6rem !important; } }

/* ===== v1.4 · 27.10 · карточки практик: «аудио-карточка» — значок, волна звука, метка «аудио · бесплатно», кнопка «Слушать» ===== */
html body main .page-content .wp-block-column.ig-audio {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='%23e3c285'%3E%3Crect x='0' y='12' width='3' height='6' rx='1.5'/%3E%3Crect x='7' y='8' width='3' height='14' rx='1.5'/%3E%3Crect x='14' y='4' width='3' height='22' rx='1.5'/%3E%3Crect x='21' y='10' width='3' height='10' rx='1.5'/%3E%3Crect x='28' y='6' width='3' height='18' rx='1.5'/%3E%3Crect x='35' y='1' width='3' height='28' rx='1.5'/%3E%3Crect x='42' y='8' width='3' height='14' rx='1.5'/%3E%3Crect x='49' y='12' width='3' height='6' rx='1.5'/%3E%3Crect x='56' y='5' width='3' height='20' rx='1.5'/%3E%3Crect x='63' y='9' width='3' height='12' rx='1.5'/%3E%3Crect x='70' y='3' width='3' height='24' rx='1.5'/%3E%3Crect x='77' y='10' width='3' height='10' rx='1.5'/%3E%3Crect x='84' y='7' width='3' height='16' rx='1.5'/%3E%3Crect x='91' y='12' width='3' height='6' rx='1.5'/%3E%3C/svg%3E")
      no-repeat right 1.6rem top 2.05rem / 92px 28px,
    linear-gradient(160deg, rgba(227,194,133,.07), rgba(255,255,255,.035) 45%) !important;
  opacity: 1;
}
html body main .page-content .wp-block-column.ig-audio:hover::before { background: rgba(227,194,133,.2); border-color: rgba(227,194,133,.7); }
/* метка «аудио · бесплатно» после рубрики */
html body main .page-content .wp-block-column.ig-audio > p.has-small-font-size:first-of-type::after {
  content: "  ·  аудио · бесплатно"; color: var(--ig-muted); letter-spacing: .08em;
}
html body main .page-content .wp-block-column.ig-audio.ig-ico-list > p.has-small-font-size:first-of-type::after { content: "  ·  5 минут · бесплатно"; }
html body main .page-content .wp-block-column.ig-audio.ig-ico-phones > p.has-small-font-size:first-of-type::after { content: ""; }
/* кнопка «Слушать» с треугольником */
html body main .page-content .wp-block-column.ig-audio .wp-block-button__link { display: inline-flex !important; align-items: center; gap: .45rem; }
html body main .page-content .wp-block-column.ig-audio:not(.ig-ico-list):not(.ig-ico-phones) .wp-block-button__link::before { content: "▶"; font-size: .7rem; color: var(--ig-gold); }
html body main .page-content .wp-block-column.ig-audio:hover .wp-block-button__link { border-color: var(--ig-gold) !important; color: var(--ig-gold) !important; }

/* новые значки */
.ig-ico-mirror  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='10' rx='6' ry='7.5'/%3E%3Cpath d='M12 17.5V22M9 22h6'/%3E%3Cpath d='M9.5 7.5a3 3 0 0 1 2.5-1.5'/%3E%3C/svg%3E"); }
.ig-ico-smile   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14.5c1 1.4 2.4 2 4 2s3-.6 4-2'/%3E%3Cpath d='M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E"); }
.ig-ico-phones  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E"); }
.ig-ico-hand    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15h3l4 2h4a1.5 1.5 0 0 0 0-3h-3'/%3E%3Cpath d='M6 15v5h-3M10 17l6 2 5-3.5a1.5 1.5 0 0 0-2-2.2L15.5 15'/%3E%3Cpath d='M15 4.2a2 2 0 0 0-3 0 2 2 0 0 0-3 2.6L12 10l3-3.2a2 2 0 0 0 0-2.6z'/%3E%3C/svg%3E"); }
.ig-ico-sunrise { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 18a5 5 0 0 0-10 0'/%3E%3Cpath d='M12 3v6M4.2 10.2l1.4 1.4M1 18h2M21 18h2M18.4 11.6l1.4-1.4M23 22H1M9 6l3-3 3 3'/%3E%3C/svg%3E"); }
.ig-ico-list    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 10l1.5 1.5L13 9M9 15.5l1.5 1.5L13 14.5M15 10.5h1M15 16h1'/%3E%3C/svg%3E"); }
@media (max-width: 781px) {
  html body main .page-content .wp-block-column.ig-audio { background-position: right 1.3rem top 1.75rem, 0 0 !important; background-size: 80px 24px, auto !important; }
}
/* v1.4.1: волна звука только у аудио, не у анкеты и «Смотреть все» */
html body main .page-content .wp-block-column.ig-audio.ig-ico-list,
html body main .page-content .wp-block-column.ig-audio.ig-ico-phones { background: linear-gradient(160deg, rgba(227,194,133,.07), rgba(255,255,255,.035) 45%) !important; }
/* v1.4.2: значок «связь/привязанность», ссылка в полосе цифр */
.ig-ico-link { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E"); }
.page-content > .wp-block-columns.ig-stats p a { color: var(--ig-soft) !important; text-decoration: underline; text-decoration-color: rgba(227,194,133,.5); text-underline-offset: 4px; }
/* v1.5: блок «Коротко» (прямой ответ для читателя и нейросетей) */
.page-content > p.ig-short {
  margin-top: 2.2rem !important; padding: 1.1rem 1.4rem !important; border-radius: 14px;
  background: rgba(227,194,133,.07); border: 1px solid rgba(227,194,133,.28); border-left: 3px solid var(--ig-gold);
  color: var(--ig-ink) !important; font-size: 1.02rem; line-height: 1.6;
}
.page-content > p.ig-short strong { color: var(--ig-gold); font-weight: 700; letter-spacing: .02em; }
/* v1.5.1: «Что говорят исследования» — факты с источниками */
.page-content > ul.ig-facts { list-style: none; padding-left: 0 !important; }
.page-content > ul.ig-facts > li { position: relative; padding: .9rem 1.1rem .9rem 1.4rem; margin-bottom: .8rem; border-left: 2px solid rgba(227,194,133,.55); background: rgba(255,255,255,.03); border-radius: 0 12px 12px 0; }
.page-content > ul.ig-facts .ig-src { display: block; margin-top: .45rem; font-size: .82rem; color: var(--ig-muted); }
.page-content > ul.ig-facts .ig-src a { color: var(--ig-muted) !important; text-decoration: underline; text-decoration-color: rgba(227,194,133,.4); }
