/* ==========================================================================
   FRESH BOTANICAL EDITORIAL — MR GREEN REDESIGN
   Сохранены: шрифт Verdana, ширина контейнера 1250px, архитектура шаблона
   ========================================================================== */

:root {
  --bg-page: #f2faf5;
  --bg-white: #ffffff;
  --bg-sage: #e6f4ec;
  --bg-sage-soft: #eff8f3;
  --bg-sage-hover: #dcf0e4;

  --green-brand: #24a148;
  --green-brand-dark: #177837;
  --green-ink: #133122;
  --green-body: #254636;
  --green-muted: #527462;
  --green-accent-light: #6ec48d;

  --line-subtle: #cfe5d7;
  --line-strong: #9fd1b2;

  --radius-editorial: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 28px rgba(19, 49, 34, 0.05);
  --shadow-hover: 0 14px 36px rgba(23, 120, 55, 0.10);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

ul,
ol[class] {
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  list-style: none;
}

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

button {
  border: none;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

input,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* ===== БАЗОВАЯ АРХИТЕКТУРА ===== */
.components {
  font-family: 'Verdana', sans-serif;
  background-color: var(--bg-page);
  color: var(--green-body);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}

.content {
  padding-top: 104px;
  padding-bottom: 48px;
}

.content-block {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Типографика Verdana (журнальная иерархия) */
.components h1 {
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.components h2 {
  font-size: 26px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.components h3 {
  font-size: 20px;
  line-height: 1.4;
}

.components p,
.components span,
.components li,
.components a {
  font-size: 16px;
  line-height: 1.72;
}

/* ===== ШАПКА (HEADER--4) ===== */
header.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 0;
}

.header--4 {
  height: 80px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-subtle);
  box-shadow: 0 2px 16px rgba(19, 49, 34, 0.04);
}

.logoBuild {
  height: 100%;
  align-items: center;
  display: flex;
}

.logoBuild a {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.logoBuild a:hover {
  transform: scale(1.03);
}

.header-inner__logo--4 img {
  width: auto;
  height: 54px;
}

.header--4 .logo {
  width: 165px;
  height: 54px;
  background-image: url('/assets/img/logo.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ===== HERO-БАННЕР В СТИЛЕ MR GREEN (banner-bg + текст кодом) ===== */
.editorial-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  max-height: 370px;
  display: flex;
  align-items: center;
  background-image: url('/assets/img/banner-bg.jpg');
  background-size: cover;
  background-position: center 18%;
  background-color: #cde8d7;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  animation: editorialReveal 0.65s ease-out both;
}

.editorial-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(242, 250, 245, 0.92) 0%,
    rgba(232, 246, 238, 0.78) 50%,
    rgba(232, 246, 238, 0.08) 100%
  );
  z-index: 1;
}

.editorial-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.editorial-hero__leaf {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(36, 161, 72, 0.14);
  color: var(--green-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 161, 72, 0.25);
}

.editorial-hero__leaf svg {
  width: 22px;
  height: 22px;
}

.general-h1 {
  background: transparent;
  color: var(--green-ink);
  padding: 0;
  text-align: left;
  margin-bottom: 0;
  font-weight: 700;
}

/* Кнопка CTA */
.button-block {
  text-align: left;
  margin: 0;
}

.button-block-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-brand) 0%, var(--green-brand-dark) 100%);
  box-shadow: 0 10px 24px rgba(23, 120, 55, 0.28);
  border-radius: 999px;
  padding: 15px 40px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  position: relative;
  overflow: hidden;
}

.button-block-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-24deg);
  transition: left 0.65s ease;
}

.button-block-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 120, 55, 0.38);
  opacity: 1;
}

.button-block-btn:hover::after {
  left: 140%;
}

/* ===== ЧЕРЕДУЮЩИЕСЯ ЖУРНАЛЬНЫЕ ПОЛОСЫ (EDITORIAL BANDS) ===== */
.editorial-band {
  border-radius: var(--radius-editorial);
  padding: 40px 44px;
  margin-bottom: 24px;
  border: 1px solid var(--line-subtle);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.editorial-band--white {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.editorial-band--sage {
  background-color: var(--bg-sage);
  border-color: #c5e2d0;
}

.editorial-band:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

/* ===== ЗАГОЛОВКИ H2 & H3 (АКЦЕНТНАЯ ЛЕВАЯ ПОЛОСА) ===== */
.editorial-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--green-brand);
  padding-left: 18px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-subtle);
}

.editorial-heading__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-sage-soft);
  color: var(--green-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-subtle);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.editorial-band--sage .editorial-heading__icon {
  background: var(--bg-white);
}

.editorial-heading__icon svg {
  width: 19px;
  height: 19px;
}

.editorial-band:hover .editorial-heading__icon {
  transform: scale(1.06);
  background: var(--green-brand);
  color: #ffffff;
  border-color: var(--green-brand);
}

.general-h2 {
  background: transparent;
  color: var(--green-ink);
  padding: 0;
  text-align: left;
  margin-bottom: 0;
  font-weight: 700;
}

.general-h3 {
  background: transparent;
  color: var(--green-brand-dark);
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--green-accent-light);
  text-align: left;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Текст и ссылки */
.general-p,
.editorial-band > p:not([class]) {
  margin-bottom: 18px;
  color: var(--green-body);
}

.general-p:last-child,
.editorial-band > p:not([class]):last-child {
  margin-bottom: 0;
}

.editorial-lead {
  font-size: 16px;
  line-height: 1.78;
}

.content-block a,
.editorial-band a {
  color: var(--green-brand-dark);
  font-weight: 700;
  border-bottom: 1px solid rgba(23, 120, 55, 0.38);
}

.content-block a:hover,
.editorial-band a:hover {
  color: var(--green-brand);
  border-bottom-color: var(--green-brand);
}

/* Журнальная выноска */
.editorial-note {
  background: var(--bg-white);
  border-left: 4px solid var(--green-brand);
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 20px;
  color: var(--green-ink);
}

.editorial-band--white .editorial-note {
  background: var(--bg-sage-soft);
}

/* Подпанели для H3 */
.editorial-subpanel {
  margin-top: 26px;
  padding: 26px 28px;
  background: var(--bg-sage-soft);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
}

.editorial-subpanel--soft {
  background: #f7fcf9;
}

/* ===== МИНИМАЛИСТИЧНЫЕ ЖУРНАЛЬНЫЕ ТАБЛИЦЫ ===== */
.general-table-wrapper {
  border: none;
  border-top: 2px solid var(--green-brand);
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  overflow-x: auto;
  margin-bottom: 24px;
  background: var(--bg-white);
}

.general-table {
  width: 100%;
  border-collapse: collapse;
}

.general-thead .general-tr,
.table-first-row-head .general-tbody .general-tr:first-child {
  background: var(--bg-sage-soft);
}

.general-th,
.table-first-row-head .general-tbody .general-tr:first-child .general-td {
  color: var(--green-ink);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  border: none;
  border-bottom: 2px solid var(--line-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.general-tr {
  background: var(--bg-white);
  color: var(--green-body);
  transition: background-color 0.2s ease;
}

.general-tbody .general-tr:nth-child(2n) {
  background: #fafdfb;
}

.general-tbody .general-tr:hover {
  background: var(--bg-sage-hover);
}

.table-first-row-head .general-tbody .general-tr:first-child:hover {
  background: var(--bg-sage-soft);
}

.general-td {
  border: none;
  border-bottom: 1px solid var(--line-subtle);
  text-align: left;
  padding: 13px 18px;
  font-size: 15px;
}

.general-tbody .general-tr:last-child .general-td {
  border-bottom: none;
}

/* Первая колонка — акцент на название категории */
.general-tbody .general-tr:not(:first-child) .general-td:first-child,
.general-table:not(.table-first-row-head) .general-tbody .general-tr .general-td:first-child {
  font-weight: 700;
  color: var(--green-ink);
}

/* Выделение колонки Mr Green в сравнении */
.table-compare .general-tbody .general-tr:not(:first-child) .general-td:nth-child(2) {
  background: rgba(36, 161, 72, 0.09);
  color: var(--green-brand-dark);
  font-weight: 700;
}

/* Оценки в таблице Slutbetyg */
.table-rating .general-tbody .general-tr:not(:first-child) .general-td:last-child {
  font-weight: 700;
  color: var(--green-brand-dark);
}

.editorial-rating-pill {
  display: inline-flex;
  align-items: center;
  background: var(--green-brand);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(36, 161, 72, 0.22);
}

.editorial-rating-pill .general-p {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-size: 17px;
}

/* ===== АДАПТИРОВАННЫЕ СПИСКИ (UL & OL) ===== */
.editorial-ul-grid,
.editorial-band .general-ul,
.editorial-band > ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}

.general-ul-li,
.general-ul > li,
.editorial-band > ul > li {
  background: var(--bg-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px 14px 46px;
  position: relative;
  color: var(--green-ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.general-ul-li:hover,
.general-ul > li:hover,
.editorial-band > ul > li:hover {
  transform: translateY(-2px);
  border-color: var(--green-brand);
  box-shadow: 0 6px 16px rgba(23, 120, 55, 0.08);
}

.general-ul-li::before,
.general-ul > li::before,
.editorial-band > ul > li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Нумерованные шаги активации бонуса */
.editorial-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: counter-ol;
  margin: 0;
}

.general-ol-li {
  counter-increment: counter-ol;
  background: var(--bg-white);
  border: 1px solid var(--line-subtle);
  border-top: 3px solid var(--green-accent-light);
  border-radius: var(--radius-sm);
  padding: 50px 18px 18px 18px;
  position: relative;
  color: var(--green-body);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.general-ol-li:hover {
  transform: translateY(-3px);
  border-top-color: var(--green-brand);
  box-shadow: var(--shadow-soft);
}

.general-ol-li::before {
  content: counter(counter-ol);
  position: absolute;
  top: 14px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-sage);
  color: var(--green-brand-dark);
  border: 1px solid var(--green-brand);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 3-КОЛОНОЧНАЯ ЖУРНАЛЬНАЯ СЕТКА (SPELUTBUD) ===== */
.editorial-columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.editorial-article-card {
  background: var(--bg-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.editorial-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-brand);
  box-shadow: var(--shadow-hover);
}

.editorial-article-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-sage-soft);
  color: var(--green-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.editorial-article-card__icon svg {
  width: 20px;
  height: 20px;
}

/* ===== ЖУРНАЛЬНЫЕ СПЛИТ-СЕКЦИИ С ИЛЛЮСТРАЦИЯМИ ===== */
.editorial-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
}

.editorial-split--reverse .editorial-split__media {
  order: -1;
}

.editorial-split__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-soft);
  background: var(--bg-sage-soft);
}

.editorial-media__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-split__media:hover .editorial-media__img {
  transform: scale(1.03);
}

/* Индикатор Green Gaming */
.risk-meter-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  max-width: 280px;
}

.risk-bar {
  height: 6px;
  border-radius: 999px;
}
.risk-bar--green { background: #24a148; }
.risk-bar--yellow { background: #e8be3c; }
.risk-bar--red { background: #e0564a; }

/* ===== ПЛЮСЫ И МИНУСЫ (PM__CONTAINER) ===== */
.pm__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 0;
}

.pm__item {
  background: var(--bg-white);
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pm__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.pm__item_plus {
  border-left: 5px solid var(--green-brand);
}

.pm__item_minus {
  border-left: 5px solid #d9534f;
}

.editorial-disclaimer {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--bg-sage-soft);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  text-align: center;
  font-size: 14px !important;
  color: var(--green-muted);
  font-weight: 700;
}

/* ===== FAQ АККОРДЕОН (ЧИСТЫЙ CSS) ===== */
.faq-list,
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  margin: 0;
  padding: 18px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--green-brand);
  box-shadow: 0 4px 14px rgba(23, 120, 55, 0.06);
}

.components .faq-question {
  padding-right: 40px;
}

.components .faq-question .general-h3 {
  border-left: none;
  padding: 0;
  margin: 0;
  font-size: 17px;
  color: var(--green-ink);
}

.components .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding-top 0.3s ease;
}

.components h3.faq-question {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--green-ink);
}

.components p.faq-answer {
  margin: 0;
  color: var(--green-body);
}

.components .faq-answer .general-p {
  margin-bottom: 0;
  color: var(--green-body);
}

.toggle {
  margin: 0;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
}

.icon {
  height: 20px;
  width: 20px;
  position: absolute;
  right: 22px;
  top: 22px;
  pointer-events: none;
}

.icon:before,
.icon:after {
  background: var(--green-brand);
  content: '';
  height: 2.5px;
  width: 16px;
  border-radius: 2px;
  right: 0;
  top: 8px;
  transition: transform 0.35s ease;
  position: absolute;
}

.toggle:not(:checked) ~ .icon:after {
  transform: rotate(90deg);
}

.toggle:checked ~ .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-top: 14px;
}

/* ===== ФУТЕР И КНОПКА НАВЕРХ ===== */
.footer--4 {
  padding: 30px 0;
  background: var(--green-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.components .copy__text--4 {
  color: #cfe5d7;
  font-size: 15px;
  line-height: 22px;
}

.scrollToTop {
  background: var(--green-brand);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  opacity: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 49, 34, 0.22);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  z-index: 40;
}

.scrollToTop:hover {
  background: var(--green-brand-dark);
  transform: translateY(-3px);
}

.scrollToTop svg {
  fill: #ffffff;
  width: 45%;
  height: 45%;
}

/* ===== СЛУЖЕБНЫЕ КЛАССЫ ИСХОДНОГО ШАБЛОНА ===== */
#fix-button.footer-block-btn {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  align-items: center;
  padding: 0 15px;
  justify-content: center;
}
.logo-controls,
.burger {
  display: none;
}
.mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  display: block;
  z-index: 60;
  background: var(--green-ink);
  width: 90%;
  max-width: 350px;
  min-height: 100vh;
  padding: 30px 20px;
  transition: right 0.5s ease;
}
.mobileMenu[hidden] {
  right: -200%;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 49, 34, 0.45);
  z-index: 55;
}
.overlay[hidden] {
  display: none;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes editorialReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .editorial-columns-3 {
    grid-template-columns: 1fr;
  }
  .editorial-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-split,
  .editorial-split--reverse {
    grid-template-columns: 1fr;
  }
  .editorial-split--reverse .editorial-split__media {
    order: 0;
  }
}

@media (max-width: 768px) {
  .editorial-hero__content {
    padding: 30px 22px;
  }
  .components h1 {
    font-size: 24px;
  }
  .components h2 {
    font-size: 20px;
  }
  .editorial-band {
    padding: 24px 18px;
  }
  .editorial-ul-grid,
  .editorial-band .general-ul,
  .editorial-band > ul,
  .editorial-steps,
  .pm__container {
    grid-template-columns: 1fr;
  }
}

/* ===== ПРЕВЬЮ ZIP =====
   В исходном index.html секции лежат прямо в body (без .content и .content-block).
   На собранном сайте контент обёрнут шаблоном, и эти правила не срабатывают */
body > .section {
  width: calc(100% - 32px);
  max-width: 1218px;
  margin-left: auto;
  margin-right: auto;
}

body > header + .section {
  margin-top: 104px;
}

body > .section:last-of-type {
  margin-bottom: 48px;
}