/* =========================================================
   ForGamblers — Author Articles + Guides
   Version: 2025-12-11 r3
   ========================================================= */

/* ---------------------------------------------------------
   0. Базовая типографика для статей (страницы + посты)
   Не трогаем single-casino-reviews, у них свои стили.
   --------------------------------------------------------- */

body.page .entry-content,
body.single-post .entry-content {
  font-size: 23px;
  line-height: 1.7;
  color: #e5e7eb;
}

body.page .entry-content p,
body.single-post .entry-content p,
body.page .entry-content li,
body.single-post .entry-content li {
  margin-bottom: 0.9em;
}

/* Списки чуть внутрь */
body.page .entry-content ul,
body.single-post .entry-content ul,
body.page .entry-content ol,
body.single-post .entry-content ol {
  padding-left: 1.4em;
}

/* Заголовки внутри статьи */
body.page .entry-content h2,
body.single-post .entry-content h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 2.8em;
  margin-bottom: 1.4em;
}

body.page .entry-content h3,
body.single-post .entry-content h3 {
  font-size: 26px;
  line-height: 1.35;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

body.page .entry-content h4,
body.single-post .entry-content h4 {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 1.9em;
  margin-bottom: 0.6em;
}

/* Разделитель */
body.page .entry-content hr,
body.single-post .entry-content hr {
  max-width: 120px;
  margin: 3em auto 2.2em;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}

/* Цитаты */
body.page .entry-content blockquote,
body.single-post .entry-content blockquote {
  border-left: 3px solid #f97316;
  padding: 16px 22px 16px 26px;
  margin: 2.1em 0;
  background: rgba(15,23,42,0.75);
  font-style: italic;
}

/* =========================================================
   1. Casino Math + Interac (авторские статьи)
   — фон + карточка статьи, hero, callout, author
   ========================================================= */

/* Фон только для страниц Casino Math (5626) и Interac (6244) */
.page-id-5626 #inner-wrap,
.page-id-6244 #inner-wrap {
  background:
    radial-gradient(160% 200% at 0% 0%, #111827 0%, #020617 45%, #000000 100%);
}

body.page-id-5626,
body.page-id-6244 {
  overflow-x: hidden; /* на всякий случай */
}

/* Карточка статьи ("таблетка") — общий стиль для авторских гайдов */
.fg-article-card {
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  margin: 1.6rem auto 2.8rem; /* чуть ближе к хедеру */
  padding: 2.4rem 2.8rem 2.6rem;
  background: rgba(15,23,42,0.98);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(148,163,184,0.45);
  overflow: hidden;
}

/* wide/full внутри таблетки не вылезают */
.fg-article-card .alignwide,
.fg-article-card .alignfull {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* убираем лишние отступы первого/последнего блока */
.fg-article-card > *:first-child {
  margin-top: 0;
}
.fg-article-card > *:last-child {
  margin-bottom: 0;
}

/* "Современные" H2 — только в обычных статьях (без SECTION) */
.fg-article-card:not(.fg-guides-index) h2 {
  position: relative;
  padding-top: 0.2rem;          /* SECTION больше нет — поджали */
  padding-bottom: 0.45rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;

  /* градиентная полоска под текстом */
  background-image: linear-gradient(90deg,#a855f7,#ec4899,#f97316);
  background-size: 78px 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

/* Никаких SECTION-лейблов */
.fg-article-card:not(.fg-guides-index) h2::before {
  content: none;
}

/* -------- H3 с подчёркиванием, если дальше идёт список ------- */

/* Все H3 внутри статьи должны уметь быть "контейнером" для линии */
.fg-article-card h3 {
  position: relative;
}

/* Добавляем линию ТОЛЬКО если сразу после H3 идёт ul/ol */
.fg-article-card h3:has(+ ul),
.fg-article-card h3:has(+ ol) {
  padding-bottom: 0.35rem;
  margin-bottom: 0.9rem;
}

.fg-article-card h3:has(+ ul)::after,
.fg-article-card h3:has(+ ol)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,#f97316,#ec4899);
  opacity: 0.95;
}

/* ---------- Hero-блок (картинка + вводный текст) ---------- */

.fg-article-hero {
  max-width: 1100px;
  margin: 1.9rem auto 2.5rem;
  padding: 1.8rem 2rem;
  background:
    radial-gradient(180% 260% at 0% 0%, #1f2937 0%, #020617 55%, #312e81 100%);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.55);
  border: 1px solid rgba(148,163,184,0.55);
}

/* hero внутри таблетки — без лишней тени */
.fg-article-card .fg-article-hero {
  max-width: 100%;
  margin: 0 0 2.1rem;
  box-shadow: none;
  padding: 1.7rem 1.6rem;
}

.fg-article-hero .wp-block-image,
.fg-article-hero .kb-image-contain {
  margin: 0;
}

.fg-article-hero img {
  border-radius: 16px;
  display: block;
}

.fg-article-hero p {
  margin-bottom: 0.7em;
}

/* ---------- Callout-блоки (формулы, примеры) -------------- */

.fg-article-callout {
  display: block;
  max-width: 850px;
  margin: 2.2rem auto;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  background: radial-gradient(160% 220% at 0% 0%, #020617 0%, #111827 40%, #020617 100%);
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.fg-article-callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Author box внизу статьи ----------------------- */

.fg-article-author {
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 3rem auto 0;
  padding: 1.9rem 2.3rem 1.9rem;
  border-radius: 22px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.6rem;
  align-items: center;
  font-size: 0.95em;
  position: relative;
}

/* тонкая градиентная полоска сверху */
.fg-article-author::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,#22c55e,#0ea5e9,#a855f7);
  opacity: 0.9;
}

/* аватар */
.fg-article-author img {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
}

/* первый параграф — имя и должность */
.fg-article-author p:first-of-type {
  margin-bottom: 0.45em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* остальные абзацы */
.fg-article-author p + p {
  margin-bottom: 0.45em;
}

/* ссылки в био */
.fg-article-author a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(250,250,250,0.4);
}
.fg-article-author a:hover {
  border-bottom-style: solid;
}

/* =========================================================
   2. Адаптив для авторских статей
   ========================================================= */

@media (max-width: 960px) {

  body.page .entry-content,
  body.single-post .entry-content {
    font-size: 19px;
    line-height: 1.65;
  }

  body.page .entry-content h2,
  body.single-post .entry-content h2 {
    font-size: 26px;
  }

  body.page .entry-content h3,
  body.single-post .entry-content h3 {
    font-size: 22px;
  }

  .fg-article-card {
    margin: 1.4rem auto 2.4rem;
    padding: 1.8rem 1.7rem 2rem;
    border-radius: 22px;
  }

  .fg-article-hero {
    margin: 1.5rem auto 2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
  }

  .fg-article-author {
    margin: 2.2rem auto 0;
    padding: 1.6rem 1.7rem 1.5rem;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {

  body.page .entry-content,
  body.single-post .entry-content {
    font-size: 18px;
  }

  .fg-article-card {
    margin: 1.2rem 0 2rem;
    padding: 1.35rem 1.15rem 1.7rem;
    border-radius: 18px;
  }

  .fg-article-hero {
    margin: 1.4rem 0 2rem;
    padding: 1.2rem 1.1rem;
    border-radius: 18px;
  }

  .fg-article-author {
    margin: 2rem 0 0;
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 18px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fg-article-author img {
    margin: 0 auto 0.8rem;
  }
}

/* =========================================================
   3. Casino Guides hub (/ca/guides/)
   ========================================================= */

/* фон только для страницы Guides (page-id-5686) */
.page-id-5686 #inner-wrap {
  background:
    radial-gradient(140% 140% at 0% 0%, #111827 0%, #020617 45%, #000000 100%);
}
body.page-id-5686 {
  overflow-x: hidden;
}

/* используем ту же "таблетку", но с классом fg-guides-index */
.fg-article-card.fg-guides-index {
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  margin: 2.4rem auto 2.8rem;
  padding: 2.4rem 2.8rem 2.6rem;
  background: rgba(15,23,42,0.98);
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  border: 1px solid rgba(148,163,184,0.45);
}

/* маленький kicker над заголовком */
.fg-guides-index .fg-guides-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8em;
  opacity: 0.8;
  margin-bottom: 1.1em;
  color: #e5e7eb;
}

/* H2 внутри guides — без SECTION, только полоска снизу */
.fg-guides-index h2 {
  position: relative;
  padding-bottom: 0.55em;
  margin-top: 2.2em;
  margin-bottom: 1.1em;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;

  /* отключаем фон из общих H2 */
  background-image: none;
}

/* отключаем SECTION-лейбл */
.fg-guides-index h2::before {
  content: none;
}

/* своя цветная линия под H2 */
.fg-guides-index h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15em;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,#a855f7,#ec4899);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.18);
}

/* ---------- Сетка и карточки гайдов ---------------------- */

.fg-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.7rem;
  margin-top: 1.4rem;
}

/* при сужении экрана */
@media (max-width: 1100px) {
  .fg-guide-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 768px) {
  .fg-guide-grid {
    grid-template-columns: 1fr;
  }
}

.fg-guide-card {
  position: relative;
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.5rem;
  background: radial-gradient(120% 160% at 0% 0%, #020617 0%, #0b1220 45%, #020617 100%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 14px 35px rgba(0,0,0,0.4);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.fg-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  border-color: rgba(196,181,253,0.9);
  background: radial-gradient(130% 170% at 0% 0%, #111827 0%, #020617 50%, #020617 100%);
}

/* бейдж-тег вверху */
.fg-guide-tag {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.78;
  margin-bottom: 0.5rem;
  color: rgba(209,213,219,0.95);
}

/* заголовок карточки */
.fg-guide-title {
  margin: 0 0 0.6rem;
  font-size: 1.1em;
  line-height: 1.4;
}

.fg-guide-title a {
  color: #e5e7eb;
  text-decoration: none;
}
.fg-guide-title a:hover {
  color: #f97316;
}

/* текст внутри карточки */
.fg-guide-card p {
  margin-bottom: 0.8em;
}

/* ссылка "Read this guide" */
.fg-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  color: #a855f7;
}
.fg-guide-link::after {
  content: "→";
  font-size: 1em;
}
.fg-guide-link:hover {
  color: #f97316;
}

/* карточки "Coming soon" */
.fg-guide-card--soon {
  border-style: dashed;
  border-color: rgba(148,163,184,0.6);
  opacity: 0.9;
}
.fg-guide-card--soon:hover {
  border-style: solid;
}

.fg-guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.7);
  color: rgba(209,213,219,0.95);
}

/* ---------- Адаптив для Guides hub ------------------------ */

@media (max-width: 960px) {
  .fg-article-card.fg-guides-index {
    margin: 1.8rem 1.2rem 2.3rem;
    padding: 1.8rem 1.5rem 2.1rem;
    border-radius: 22px;
  }

  .fg-guides-index h2 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .fg-article-card.fg-guides-index {
    margin: 1.4rem 0.9rem 2rem;
    padding: 1.5rem 1.15rem 1.8rem;
    border-radius: 18px;
  }
}

/* =========================================================
   4. Таблицы внутри авторских статей
   ========================================================= */

/* Десктоп: аккуратная таблица с тенями */
.fg-article-card .wp-block-table {
  margin: 2.2rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  background: radial-gradient(160% 220% at 0% 0%, #020617 0%, #020617 40%, #020617 100%);
}

.fg-article-card .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.fg-article-card .wp-block-table th,
.fg-article-card .wp-block-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(30,64,175,0.7);
}

.fg-article-card .wp-block-table th {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.fg-article-card .wp-block-table tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.85);
}

.fg-article-card .wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

/* Мобилка: каждая строка = таблетка */
@media (max-width: 768px) {

  .fg-article-card .wp-block-table {
    margin: 1.6rem 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .fg-article-card .wp-block-table table,
  .fg-article-card .wp-block-table tbody,
  .fg-article-card .wp-block-table tr,
  .fg-article-card .wp-block-table td {
    display: block;
    width: 100%;
  }

  .fg-article-card .wp-block-table thead {
    display: none;
  }

  .fg-article-card .wp-block-table tr {
    margin: 0 0 1rem;
    padding: 1.05rem 1.15rem 1.1rem;
    border-radius: 18px;
    background: radial-gradient(130% 170% at 0% 0%, #020617 0%, #0b1220 45%, #020617 100%);
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  }

  .fg-article-card .wp-block-table td {
    border: none;
    padding: 0.2rem 0;
  }

  .fg-article-card .wp-block-table td:first-child {
    font-weight: 600;
    font-size: 1.02em;
    margin-bottom: 0.45rem;
  }

  /* Маленькие подписи для колонок на Interac-странице */
  .fg-article-card .wp-block-table td:nth-child(2)::before,
  .fg-article-card .wp-block-table td:nth-child(3)::before,
  .fg-article-card .wp-block-table td:nth-child(4)::before,
  .fg-article-card .wp-block-table td:nth-child(5)::before {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-bottom: 0.1rem;
  }

  .page-id-6244 .wp-block-table td:nth-child(2)::before {
    content: "Interac deposits";
  }
  .page-id-6244 .wp-block-table td:nth-child(3)::before {
    content: "Interac withdrawals";
  }
  .page-id-6244 .wp-block-table td:nth-child(4)::before {
    content: "Typical payout time";
  }
  .page-id-6244 .wp-block-table td:nth-child(5)::before {
    content: "Our short note";
  }
}

/* =========================================================
   5. FIX: мобильный отступ без выезда за экран
   Casino Math + Guides + Interac
   ========================================================= */

@media (max-width: 600px) {

  /* Контент считаем с паддингами внутри ширины */
  .page-id-5626 .entry-content,
  .page-id-5686 .entry-content,
  .page-id-6244 .entry-content {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;  /* убирает "100% + padding" */
  }

  /* На всякий случай запрещаем горизонтальный скролл именно на этих страницах */
  .page-id-5626,
  .page-id-5686,
  .page-id-6244 {
    overflow-x: hidden;
  }
}



/* =========================================================
 * Interac Casinos guide: фикс отступа сверху
 * ======================================================= */

/* Чуть подтягиваем контент к хедеру и убираем лишний margin у первого блока */
.page-id-6244 .entry-content {
  padding-top: 1.4rem;          /* вместо стандартного большого паддинга */
}

.page-id-6244 .entry-content > *:first-child {
  margin-top: 0;                /* первый блок без доп. верхнего отступа */
}


/* Финальный твик: Interac-гида почти вплотную к хедеру */
.page-id-6244 .entry-content{
  padding-top: 0.4rem !important;  /* хочешь вообще без воздуха — поставь 0 */
}



/* =========================================================
   Complianz Cookie Policy — FINAL FIX (headers + dark tables)
   Paste LAST (delete previous Complianz blocks above)
   ========================================================= */

#cmplz-document{
  background: transparent !important;
  color: #e5e7eb !important;
}

/* ---------- Accordion: header layout (fix vertical letters) ---------- */
#cmplz-document details.cmplz-dropdown{
  margin: 0 0 14px !important;
  border: 0 !important;
  background: transparent !important;
}

#cmplz-document summary.cmplz-service-header{
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background: rgba(15,23,42,0.96) !important;
  border: 1px solid rgba(148,163,184,0.35) !important;
  box-shadow: 0 14px 35px rgba(0,0,0,0.45) !important;

  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;

  width: 100% !important;
  min-width: 0 !important;
}

/* remove default marker */
#cmplz-document summary.cmplz-service-header::-webkit-details-marker{ display:none !important; }
#cmplz-document summary.cmplz-service-header::marker{ content:"" !important; }

/* Title: can’t shrink to 1 letter */
#cmplz-document summary.cmplz-service-header > :is(h3,h4){
  margin: 0 !important;
  color: #e5e7eb !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;

  flex: 1 1 260px !important;
  min-width: 180px !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  writing-mode: horizontal-tb !important;
}

/* Category line in header (THIS is the “Gegenstand der Untersuchung” / Marketing / Functional) */
#cmplz-document summary.cmplz-service-header > p{
  margin: 0 0 0 auto !important;           /* push right on desktop */
  padding: 4px 10px !important;
  border-radius: 999px !important;

  background: rgba(2,6,23,0.55) !important;
  border: 1px solid rgba(148,163,184,0.35) !important;
  color: rgba(226,232,240,0.95) !important;

  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;

  white-space: normal !important;           /* IMPORTANT: allow wrapping */
  max-width: 60% !important;                /* prevents squeezing the title */
}

/* Open state */
#cmplz-document details[open] > summary.cmplz-service-header{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* ---------- Accordion: inner content (remove grey/white columns) ---------- */
#cmplz-document :is(.cmplz-service-description,.cmplz-sharing-data){
  background: rgba(2,6,23,0.92) !important;
  color: #e5e7eb !important;

  border-left: 1px solid rgba(148,163,184,0.35) !important;
  border-right: 1px solid rgba(148,163,184,0.35) !important;

  padding: 16px 18px !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;

  float: none !important;
  clear: both !important;

  grid-template-columns: 1fr !important;
}

/* Hard reset: kill white backgrounds inside the service content */
#cmplz-document :is(.cmplz-service-description,.cmplz-sharing-data) *{
  background-color: transparent !important;
}

/* ---------- Tables: force dark ---------- */
#cmplz-document :is(.cmplz-cookie-table,.cmplz-cookies-table,.cookies-per-purpose,.cmplz-service-cookie-table,.cmplz-table){
  background: rgba(2,6,23,0.96) !important;
  color: #e5e7eb !important;

  border: 1px solid rgba(148,163,184,0.35) !important;
  border-top: none !important;

  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;

  overflow: hidden !important;
  padding: 14px 18px !important;
}

/* Table elements */
#cmplz-document table{
  width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  color: #e5e7eb !important;
}

#cmplz-document :is(th,td){
  background: transparent !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(148,163,184,0.22) !important;
  padding: 10px 12px !important;
  vertical-align: top !important;
}

#cmplz-document th{
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  opacity: 0.85 !important;
}

/* Links */
#cmplz-document a{
  color: #e5e7eb !important;
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(148,163,184,0.55) !important;
}
#cmplz-document a:hover{
  border-bottom-style: solid !important;
  color: #f97316 !important;
}

/* ---------- Mobile: stack title + category, allow long category ---------- */
@media (max-width: 700px){
  #cmplz-document summary.cmplz-service-header{
    padding: 12px 14px !important;
  }

  #cmplz-document summary.cmplz-service-header > :is(h3,h4){
    flex: 1 1 100% !important;
    min-width: 0 !important;
    font-size: 18px !important;
  }

  #cmplz-document summary.cmplz-service-header > p{
    flex: 1 1 100% !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    font-size: 10px !important;
  }

  /* If a table is wide — scroll, but keep dark */
  #cmplz-document :is(.cmplz-cookie-table,.cmplz-cookies-table,.cookies-per-purpose,.cmplz-service-cookie-table,.cmplz-table){
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}


/* =========================================================
   TWEAK ZONE / ЗОНА НАСТРОЕК
   RU: Здесь меняешь ширину и размеры шрифтов без поиска по коду.
   EN: Change container width and font sizes here.
========================================================= */
.fg-author-page{
  --fg-author-max: 1440px;   /* RU: ширина контейнера / EN: container max width */
  --fg-h1: 46px;             /* RU: размер H1 / EN: H1 size */
  --fg-h2: 26px;             /* RU: размер H2 / EN: H2 size */
  --fg-role: 16px;           /* RU: подзаголовок роли / EN: role line */
  --fg-body: 18px;           /* RU: базовый текст / EN: base paragraph */
  --fg-line: 1.6;            /* RU: межстрочный / EN: line-height */

  --fg-card-bg: rgba(12, 18, 32, .72);  /* RU/EN: glass background */
  --fg-card-border: rgba(255,255,255,.10);
  --fg-muted: rgba(255,255,255,.74);

  --fg-radius: 28px;         /* RU: радиус карточек / EN: card radius */
  --fg-img-radius: 18px;     /* RU: радиус фото / EN: photo corner radius */

  --fg-pad-x: 20px;          /* RU: боковые отступы / EN: side padding */
  --fg-gap: 26px;            /* RU: расстояния / EN: gaps */
}




/* =========================================================
   LAYOUT / КАРКАС
   RU: Скоупим стили в .fg-author-page, чтобы не влиять на сайт.
   EN: Scoped styles so nothing leaks to other pages.
========================================================= */
.fg-author-page{
  width: 100%;
  padding: clamp(22px, 3vw, 44px) 0;
  box-sizing: border-box;
}

.fg-author-wrap{
  max-width: var(--fg-author-max);
  margin: 0 auto;
  padding: 0 var(--fg-pad-x);
  box-sizing: border-box;
}

/* Card / Glass */
.fg-author-card{
  background: var(--fg-card-bg);
  border: 1px solid var(--fg-card-border);
  border-radius: var(--fg-radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  overflow: hidden;
}

/* =========================================================
   HEADER / ШАПКА АВТОРА
========================================================= */
.fg-author-header{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--fg-gap);
  padding: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

/* RU: Фото НЕ круглое, а с закруглением углов.
   EN: Not circular — rounded corners. */
.fg-author-photo{
  width: 260px;
  aspect-ratio: 3 / 4;        /* RU: стабильный портрет / EN: consistent portrait crop */
  height: auto;
  object-fit: cover;
  border-radius: var(--fg-img-radius);
  border: 1px solid rgba(255,255,255,.12);
  display: block;
}

.fg-author-name{
  margin: 0 0 6px 0;
  font-size: var(--fg-h1);
  line-height: 1.12;
}

.fg-author-role{
  margin: 0 0 14px 0;
  font-size: var(--fg-role);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffbf3a; /* RU: акцент как у сайта / EN: site-like accent */
}

.fg-author-bio,
.fg-author-meta{
  margin: 0 0 12px 0;
  font-size: var(--fg-body);
  line-height: var(--fg-line);
  color: #fff;
}

.fg-author-meta{
  color: var(--fg-muted);
}

.fg-author-social a{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #ffbf3a;
  font-weight: 600;
}

.fg-author-social a:hover{
  opacity: .9;
  text-decoration: underline;
}

/* =========================================================
   BODY / ОСНОВНОЙ ТЕКСТ
========================================================= */
.fg-author-body,
.fg-author-articles{
  margin-top: 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.fg-author-body h2,
.fg-author-articles h2{
  margin: 0 0 12px 0;
  font-size: var(--fg-h2);
  line-height: 1.2;
}

.fg-author-body p{
  margin: 0 0 12px 0;
  font-size: var(--fg-body);
  line-height: var(--fg-line);
  color: #fff;
}

.fg-author-body a{
  color: #8ecbff;
  text-decoration: none;
}
.fg-author-body a:hover{
  text-decoration: underline;
}

/* =========================================================
   ARTICLES LIST / СПИСОК СТАТЕЙ
========================================================= */
.fg-author-articles ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.fg-author-articles li a{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: #fff;
  text-decoration: none;
  font-size: var(--fg-body);
  line-height: 1.35;
}

.fg-author-articles li a:hover{
  border-color: rgba(255,191,58,.35);
  background: rgba(0,0,0,.26);
}


/* =========================================================
   AUTHOR PAGE — pills: icon left + chevron right
   RU: Иконка "статья" слева и стрелка справа. HTML не меняем.
   EN: Left article icon + right chevron. No HTML changes.
========================================================= */

.fg-author-articles .fg-author-article-list li a{
  position: relative;
  padding-left: 48px;   /* RU: место под иконку / EN: space for icon */
  padding-right: 46px;  /* RU: место под стрелку / EN: space for chevron */
}

/* --- Left icon (document) --- */
.fg-author-articles .fg-author-article-list li a::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: #ffbf3a; /* RU: акцент / EN: accent */

  /* RU/EN: SVG icon via mask so it looks crisp on all screens */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E");

  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;

  opacity: .92;
}

/* --- Right chevron --- */
.fg-author-articles .fg-author-article-list li a::after{
  content:"";
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.9);

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 6l6 6-6 6'/%3E%3C/svg%3E");

  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;

  opacity: .55;
}

/* Hover polish */
.fg-author-articles .fg-author-article-list li a:hover::before{
  background: #a855f7; /* RU: смена акцента / EN: accent shift */
}
.fg-author-articles .fg-author-article-list li a:hover::after{
  opacity: .9;
}

/* Optional: если хочешь, чтобы “таблетки” не разъезжались на 3–4 строки */
.fg-author-articles .fg-author-article-list li a{
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* RU: максимум 2 строки / EN: max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* =========================================================
   RESPONSIVE / АДАПТИВ
========================================================= */
@media (max-width: 900px){
  .fg-author-header{
    grid-template-columns: 1fr;
  }
  .fg-author-photo{
    width: min(320px, 100%);
    aspect-ratio: 4 / 5;
  }
  .fg-author-name{
    font-size: 38px;
  }
}



/* =========================================================
   Guides grid — card thumbnail
   RU: Мини-обложка сверху карточки (единый размер, без “пляски” высоты)
   EN: Card thumbnail (fixed ratio, clean crop)
========================================================= */

.fg-guide-thumb{
  display:block;
  border-radius:16px;
  overflow:hidden;
  margin: 0 0 12px;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.fg-guide-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: translateZ(0);
}

/* Чуть “живее” на ховере */
.fg-guide-card:hover .fg-guide-thumb img{
  transform: scale(1.02);
  transition: transform .18s ease;
}

/* На мобильном можно сделать чуть выше, если хочется */
@media (max-width: 600px){
  .fg-guide-thumb{ aspect-ratio: 4 / 3; }
}


