/*
Theme Name: OLG Theme
Author: Doco4ka
Description: Тема для сайта OneLabGames.ru
Version: 1.0
*/

@font-face {
  font-family: "Sunday-Regular";
  src: url("/wp-content/themes/olg-theme/fonts/Sunday-Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  /*font-display: swap;*/
}

@font-face {
  font-family: "Finlandica";
  src: url("/wp-content/themes/olg-theme/fonts/Finlandica.ttf")
    format("truetype");
  font-weight: 400 700;
  font-style: normal;
}

@font-face {
  font-family: "Wadik";
  src: url("/wp-content/themes/olg-theme/fonts/Wadik.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html,
body {
  font-family: "Finlandica", sans-serif;
  background-color: #ffffff;
  color: #333;
  margin: 0;
  padding: 0;
  scrollbar-color: #0098ed #f0f0f4;
  scrollbar-width: thin;
}

.hidden {
  display: none;
}

.container {
  max-width: 1296px;
  padding: 20px;
  background-color: #fff;
  min-height: 300px;
  margin: 10px auto 0 auto;
  padding-top: 20px;
}

main.game-start {
  align-items: center;
  text-align: center;
  max-width: 900px;
  min-height: 400px;
  margin: 40px auto;
  padding: 20px;
  background: url("/wp-content/themes/olg-theme/images/background-quiz.png")
    no-repeat center center;
  background-size: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: "Sunday-Regular", sans-serif;
}

main.game-start h1 {
  font-size: 2em;
  color: #fff;
  margin-bottom: 25px;
}

main.game-start h2 {
  font-size: 1.2em;
  color: #ebeaea;
  margin-bottom: 30px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.categories .category {
  display: inline-flex;
  gap: 8px;
  background: linear-gradient(to right, #feebc6, #d4b1bb);
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 2em;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.categories .category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
}

/* ===== Основа шапки ===== */
.site-header {
  position: absolute;
  top: 12px;
  left: 80px;
  right: 80px;
  z-index: 1000;
  overflow: visible;
}

/* фон внутри шапки — только под контентом */
.site-header::before {
  content: "";
  position: absolute;
  top: 12px; /* ⬅️ Сдвигаем фон вниз, чтобы не закрывал скосы */
  left: 21px;
  right: 21px;
  height: 52px; /* ⬅️ 64px (высота хедера) - 12px (смещение) */
  border-radius: 12px;
  background: var(--header-bg);
  z-index: 0;
  pointer-events: none;
}

/* SVG углы */
.header-edge {
  position: absolute;
  top: 0;
  width: 21px;
  height: 64px;
  pointer-events: none;
  z-index: 1; /* выше фона, ниже контента */
}

.header-edge.left {
  left: 0px;
}

.header-edge.right {
  right: 0;
}

.header-edge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-inner {
  height: 64px;
  margin: 0 auto;
  padding: 0 30px;
  margin-left: 21px; /* под левый скос */
  margin-right: 21px; /* под правый скос */
  display: grid;
  grid-template-columns: auto 1fr auto; /* 🔥 ИЗМЕНЯЕМ пропорции */
  background: inherit;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.logo {
  justify-self: start;
  margin-left: 19px;
}

.logo img {
  width: 140px;
  height: 40px;
}

.main-nav {
  padding: 0 40px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-self: center; /* 🔥 Меню по центру второй колонки */
  width: fit-content; /* 🔥 Ширина по содержимому */
}

.main-nav .menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .menu li a {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap; /* 🔥 Запрещаем перенос текста */
}

.main-nav .menu li a:hover {
  color: #86868b;
}

/* 🔥 Стили для поиска */
.header-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.search-container {
  position: static;
}

.search-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.search-icon:hover {
  opacity: 0.7;
}

/* 🔥 Выпадающая поисковая форма - ПОЗИЦИОНИРУЕМ ОТНОСИТЕЛЬНО ВСЕЙ СТРАНИЦЫ */
.search-dropdown {
  position: fixed; /* 🔥 Оставляем fixed */
  top: 80px; /* 🔥 Увеличиваем отступ от верха */
  left: 49%; /* 🔥 Центрируем по горизонтали */
  transform: translateX(-50%) translateY(-10px); /* 🔥 Правильное центрирование */
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 310px;
  max-width: 90%; /* 🔥 Ограничение для мобильных */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
  border: 1px solid #e1e1e1;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #042ea5;
  border-radius: 8px;
  font-family: "Finlandica", sans-serif;
  font-size: 16px;
  outline: none;
  min-width: 0;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #0a46ff;
  box-shadow: 0 0 0 3px rgba(10, 70, 255, 0.1);
}

.search-submit {
  background: #042ea5;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Finlandica", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-submit:hover {
  background: #0098ed;
}

.no-questions {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin-bottom: 20px;
}

#quiz-app,
#quiz-app * {
  font-family: "Sunday-Regular", sans-serif;
}

.quiz-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background: url("/wp-content/themes/olg-theme/images/background-quiz.png")
    no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-category {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.question-header {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(to right, #feebc6, #d4b1bb);
  border-radius: 12px;
  padding: 2px 10px;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  max-width: 500px;
  height: auto;
  order: 1;
}

.question-header .question-book {
  flex-shrink: 0;
  width: 110px;
  margin-left: -75px;
  margin-top: -20px;
  margin-bottom: -20px;
  z-index: 2;
}

.question-header .question-text {
  display: block;
  text-align: center;
  color: #000;
  line-height: 1.5;
  max-width: 500px;
  min-width: 0;
  /* ✅ разрешаем до 3 строк */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: clamp(14px, 2.8vw, 26px);
  word-break: break-word;
  overflow-wrap: break-word;
}
.question-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1; /* занимает все свободное место */
  order: 1;
}

/* базовый блок — только display и border */
.question-image-block {
  display: block;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 15px solid #feebc6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 0 #f7c9a3;
  flex-shrink: 0;
  background: transparent;
  order: 3;
}

/* горизонтальные */
.question-image-block--landscape {
  width: 380px;
  height: auto;
  display: block;
}

/* вертикальные */
.question-image-block--portrait {
  width: clamp(240px, 30vh, 280px);
  min-height: 340px; /* минимум 340px */
  max-height: 420px; /* максимум 420px */
  height: auto; /* иначе растёт по контенту */
  border: 15px solid #feebc6;
}

/* подпись — фиксированная */
.question-image-caption {
  flex-shrink: 0;
  padding: 0;
  background: #feebc6;
  color: #ab1e1c;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  width: 100%;
  height: auto;
  min-height: 36px; /* примерно на подпись */
}

/* картинка — занимает оставшееся, но не растягивается */
.question-image-block img {
  display: block;
  flex: 0 1 auto; /* не растягиваем, только сжимаем */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.question-image-caption:empty {
  display: none;
}

.question-image-block.flag,
.question-image-block.shapes {
  display: flex; /* флекс обязателен */
  flex-direction: column;
  align-items: center; /* по центру горизонтали */
  justify-content: center; /* по центру вертикали */
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 auto; /* центр в контейнере */
  max-width: 300px;
  width: 100%;
}

.question-image-block.flag img,
.question-image-block.shapes img {
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 100%;
  height: auto;
}

.question-image-block.flag .question-image-caption,
.question-image-block.shapes .question-image-caption {
  background: transparent;
  color: inherit;
  font-size: 1em;
  padding: 8px 0;
  width: 100%;
  flex-shrink: 0;
}

.question-figure {
  margin: 20px auto;
  max-width: 300px;
}

.question-figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.question-figure figcaption {
  margin-top: 5px;
  font-size: 0.9em;
  color: #eee;
}

.answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  order: 2;
}

.answers-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.answer-option {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  height: 60px;
  border-radius: 12px;
  color: #fff;
  box-sizing: border-box;
  padding: 15px;
  font-weight: normal;
  font-size: clamp(16px, 4vw, 30px);
  text-align: center;
  white-space: normal;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 0 var(--shadow-color, rgba(0, 0, 0, 0.2));
}

.answers .answer-option:hover,
.answers .answer-option:active {
  transform: none;
}

.answer-A {
  background: #f78d16;
  --shadow-color: #f36919;
}

.answer-B {
  background: #5cc232;
  --shadow-color: #36a83f;
}

.answer-C {
  background: #4c9bd7;
  --shadow-color: #488fcf;
}

.answer-D {
  background: #f25250;
  --shadow-color: #ef3155;
}

.correct-answer {
  box-shadow:
    inset 0 0 0 3px white,
    0 0 12px 3px rgba(255, 255, 255, 0.6),
    0 6px 0 var(--shadow-color);
}

.wrong-answer {
  opacity: 0.5;
  filter: grayscale(100%);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #feebc6, #d4b1bb);
  color: #000;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-icon {
  font-size: 1.2em;
}

.btn:focus,
.btn:active {
  outline: none;
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.btn-back {
  background: #d0d0d0;
  border: none;
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

#toggle-answer-btn {
  min-width: 202px;
}

#question-block.no-questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  color: #fff;
  text-align: center;
}

#question-block.no-questions p {
  font-size: 1.5em;
  margin-bottom: 30px;
  max-width: 500px;
  color: #fff;
}

#question-block.no-questions .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#question-block.no-questions .btn {
  margin: 5px;
}

/* Бургер: скрыт на десктопах */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  margin-left: auto;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
}

/* Универсальная сетка */
.question-container.grid-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.accent-word {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
  word-break: break-word;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.accent-letter {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 50px;
  height: 50px;
  border-radius: 8px;
  font-size: clamp(18px, 5vw, 32px);
  font-weight: bold;
  color: #fff;
  padding: 0 10px;
  box-shadow: 0 4px 0 var(--shadow-color, rgba(0, 0, 0, 0.2));
}

.accent-letter.answer-A {
  background: #f78d16;
  --shadow-color: #f36919;
}

.accent-letter.answer-B {
  background: #5cc232;
  --shadow-color: #36a83f;
}

.accent-letter.answer-C {
  background: #4c9bd7;
  --shadow-color: #488fcf;
}

.accent-letter.answer-D {
  background: #f25250;
  --shadow-color: #ef3155;
}

.accent-letter.correct-answer {
  box-shadow:
    inset 0 0 0 3px white,
    0 0 12px 3px rgba(255, 255, 255, 0.6),
    0 6px 0 var(--shadow-color);
}

.accent-word {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
  word-break: break-word;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.accent-word span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 50px;
  height: 50px;
  border-radius: 8px;
  font-size: clamp(18px, 5vw, 32px);
  font-weight: bold;
  color: #fff;
  padding: 0 10px;
  box-shadow: 0 4px 0 var(--shadow-color, rgba(0, 0, 0, 0.2));
}

.accent-word .answer-A {
  background: #f78d16;
  --shadow-color: #f36919;
}

.accent-word .answer-B {
  background: #5cc232;
  --shadow-color: #36a83f;
}

.accent-word .answer-C {
  background: #4c9bd7;
  --shadow-color: #488fcf;
}

.accent-word .answer-D {
  background: #f25250;
  --shadow-color: #ef3155;
}

.accent-word .correct-answer {
  box-shadow:
    inset 0 0 0 3px white,
    0 0 12px 3px rgba(255, 255, 255, 0.6),
    0 6px 0 var(--shadow-color);
}

/* ==================== */
/* КОМПАКТНАЯ СТРАНИЦА ПОИСКА */
/* ==================== */

.search-page {
  padding: 20px;
  min-height: 70vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Кастомный контейнер для страницы поиска */
.search-page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  background-color: #fff;
  min-height: auto;
  box-sizing: border-box;
}

/* Компактный заголовок поиска */
.search-header {
  background: #042ea5;
  color: white;
  padding: 25px 0 20px;
  text-align: center;
  margin-bottom: 25px;
}

/* Для заголовка поиска оставляем обычный container */
.search-header .container {
  min-height: auto;
  background: transparent;
  padding: 25px 15px 20px;
}

.search-title {
  font-family: "Finlandica", sans-serif;
  font-size: 1.5em; /* Уменьшено с 2.5em */
  font-weight: 700;
  margin-bottom: 8px; /* Уменьшено с 10px */
  color: white;
}

.search-query {
  font-size: 0.95em; /* Уменьшено с 1.2em */
  margin-bottom: 6px; /* Уменьшено с 10px */
  opacity: 0.95;
}

.search-query span {
  color: #feebc6;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.search-count {
  font-size: 0.85em; /* Уменьшено с 1em */
  opacity: 0.9;
  color: #d4b1bb;
  font-weight: 500;
}

/* Карточки результатов - более компактные */
.search-results {
  /*display: grid;*/
  gap: 20px; /* Уменьшено с 25px */
  margin: 25px 0; /* Уменьшено с 40px */
}

.search-result-card {
  background: white;
  border-radius: 12px; /* Уменьшено с 16px */
  padding: 20px; /* Уменьшено с 30px */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* Уменьшена тень */
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-result-card:hover {
  transform: translateY(-3px); /* Уменьшено с -5px */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.search-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px; /* Уменьшено с 4px */
  height: 100%;
  background: linear-gradient(to bottom, #042ea5, #0a46ff);
}

.result-type {
  display: inline-block;
  background: #042ea5; /* Изменен цвет для лучшего контраста */
  color: white;
  padding: 3px 10px; /* Уменьшено с 4px 12px */
  border-radius: 16px; /* Уменьшено с 20px */
  font-size: 0.75em; /* Уменьшено с 0.8em */
  font-weight: 600;
  margin-bottom: 12px; /* Уменьшено с 15px */
  text-transform: uppercase;
  letter-spacing: 0.3px; /* Уменьшено с 0.5px */
}

.result-title {
  font-family: "Finlandica", sans-serif;
  font-size: 1.1em; /* Уменьшено с 1.4em */
  font-weight: 700;
  margin-bottom: 12px; /* Уменьшено с 15px */
  line-height: 1.3;
}

.result-title a {
  color: #042ea5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.result-title a:hover {
  color: #0a46ff;
}

.result-excerpt {
  color: #4a5568; /* Более темный цвет для читаемости */
  line-height: 1.5;
  margin-bottom: 15px; /* Уменьшено с 20px */
  font-size: 0.9em; /* Уменьшено с 1em */
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px; /* Уменьшено с 15px */
  border-top: 1px solid #f1f5f9;
  font-size: 0.85em; /* Добавлено уменьшение шрифта */
}

.result-date {
  color: #718096; /* Более темный цвет */
  font-size: 0.9em;
}

.result-link {
  color: #042ea5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85em; /* Уменьшено с 0.9em */
  transition: color 0.3s ease;
}

.result-link:hover {
  color: #0a46ff;
}

/* Состояние "нет результатов" - компактнее */
.no-results {
  text-align: center;
  padding: 40px 20px; /* Уменьшено с 60px 20px */
  max-width: 450px; /* Уменьшено с 500px */
  margin: 0 auto;
}

.no-results-icon {
  font-size: 3em; /* Уменьшено с 4em */
  margin-bottom: 15px; /* Уменьшено с 20px */
  opacity: 0.7;
}

.no-results h2 {
  font-family: "Finlandica", sans-serif;
  color: #042ea5;
  margin-bottom: 12px; /* Уменьшено с 15px */
  font-size: 1.4em; /* Уменьшено с 1.8em */
}

.no-results p {
  color: #64748b;
  margin-bottom: 25px; /* Уменьшено с 30px */
  font-size: 1em; /* Уменьшено с 1.1em */
  line-height: 1.5;
}

.search-suggestions {
  display: flex;
  gap: 12px; /* Уменьшено с 15px */
  justify-content: center;
  flex-wrap: wrap;
}

/* Пагинация - компактнее */
.search-pagination {
  margin: 35px 0; /* Уменьшено с 50px */
  text-align: center;
}

.navigation.pagination {
  display: inline-flex;
  gap: 6px; /* Уменьшено с 8px */
}

.nav-links {
  display: flex;
  gap: 6px; /* Уменьшено с 8px */
}

.page-numbers {
  padding: 8px 14px; /* Уменьшено с 10px 16px */
  border: 2px solid #e2e8f0;
  border-radius: 6px; /* Уменьшено с 8px */
  text-decoration: none;
  color: #042ea5;
  font-weight: 600;
  font-size: 0.9em; /* Добавлено уменьшение шрифта */
  transition: all 0.3s ease;
}

.page-numbers.current {
  background: #042ea5;
  color: white;
  border-color: #042ea5;
}

.page-numbers:hover:not(.current) {
  border-color: #042ea5;
  color: #0a46ff;
}

/* 🔥 Карусель баннеров — исправленная версия */
.banners-carousel {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  justify-content: center; /* Центрируем баннер */
  z-index: 0; /* основной контекст */
}

/* 💥 Переопределяем ограничение высоты Swiper */
.banners-carousel.swiper,
.banners-carousel .swiper-wrapper,
.banners-carousel .swiper-slide {
  height: 760px;
}

/* Слайды занимают всю ширину */
.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(400px, 60vh, 760px); /* адаптивная высота */
}

/* 🔵 Фон баннера — ПОЛНОЭКРАННЫЙ */
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  z-index: 1;
}

/* картинка — тянем от края до края */
.banner-bg picture,
.banner-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 используем cover, а не contain */
  object-position: center;
  max-width: none;
}

/* Контент поверх фона */
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 1296px;
  margin: 0 auto;
  padding-top: 150px;
  padding-right: 24px;
  padding-bottom: clamp(60px, 10vh, 160px);
  padding-left: 24px;
  text-align: left;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.banner-title {
  font-family: "Wadik", sans-serif;
  font-weight: bold;
  width: 640px;
  font-size: 2.3em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-description {
  font-family: "Finlandica", sans-serif;
  font-size: 1.2em;
  width: 640px;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 400;
}

.banner-btn {
  display: inline-block;
  background: #fff;
  color: #042ea5;
  padding: 16px 35px;
  border-radius: 16px;
  text-decoration: none;
  font-family: "Finlandica", sans-serif;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid white;
  text-shadow: none;
}

.banner-btn:hover {
  background: #fff;
  color: #0098ed;
}

/* Стили Swiper */
.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: white !important; /* 🔥 Принудительно белый цвет */
  --swiper-navigation-color: white !important; /* 🔥 Основной цвет */
  --swiper-navigation-size: 36px !important; /* 🔥 Размер иконки */
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
  font-weight: bold;
  color: inherit !important; /* 🔥 Наследует цвет от родителя */
}

/* 🔥 СЕКЦИЯ "НАШИ ИГРЫ" - АКТУАЛИЗИРОВАННАЯ */
.our-games {
  padding: 70px 0;
  background: #fff;
}

.games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  text-align: left;
}

.games-title {
  font-family: "Wadik", sans-serif;
  font-size: 3.5em;
  font-weight: bold;
  color: #373737;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  flex: 1; /* 🔥 ЗАНИМАЕТ ВСЕ ДОСТУПНОЕ ПРОСТРАНСТВО */
}

/* Сетка карточек игр */
.games-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(350px, 1fr)
  ); /* 🔥 АДАПТИВНАЯ СЕТКА */
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  width: 100%; /* 🔥 ЗАНИМАЕТ ВСЮ ШИРИНУ */
}

/* Карточка — растяжимая и выравниваемая по сетке */
.game-card {
  position: relative;
  grid-template-rows: auto 1fr auto; /* верх, центр, низ */
  border-radius: 24px;
  border: 3px solid;
  padding-bottom: 20px;
  background: #fff;
  transition: transform 0.3s ease;
  max-width: 384px;
  width: 100%;
  margin: 0 auto;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Изображение игры — не центр, а к верху, и без лишнего отступа */
.game-image {
  margin-top: 56px; /* 12px отступ сверху + 36px высота хедера + ~8px воздух */
  height: 328px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* === Хедер карточки теперь идет ПОД картинкой === */
.game-header {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 36px; /* фиксируем высоту капсулы */
  padding: 0 18px; /* боковые поля */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 5;
}

/* Название */
.game-name {
  font-family: "Wadik", sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  color: #373737;
  text-align: left;
  line-height: 1.25;
  margin: 16px 18px 0 18px;
  overflow-wrap: break-word;
}

/* Теги игры - теперь в строку справа */
.game-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-tag {
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: "Finlandica", sans-serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;

  /* 🔥 ФИКСИРОВАННАЯ ВЫСОТА */
  height: 36px; /* 🔥 или нужное вам значение */
  line-height: 20px; /* 🔥 высота строки = height - padding-top - padding-bottom */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* 🔥 важно: учитывает padding в высоте */
}

/* 🔥 ВНУТРЕННИЙ КОНТЕЙНЕР С ОБВОДКОЙ ВНИЗУ */
.game-bottom-container {
  margin: 0; /* 🔥 УБЕРИТЕ ОТСТУПЫ */
  padding: 0; /* 🔥 УБЕРИТЕ ОТСТУПЫ */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Контент карточки */
.game-content {
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start; /* ✅ выравниваем содержимое по левому краю */
  align-items: flex-start; /* ✅ тоже по левому */
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}

/* Иконки */
.game-meta {
  display: flex;
  align-items: flex-start; /* ✅ правильное значение вместо left */
  justify-content: flex-start; /* ✅ выравнивание всех элементов по левому краю */
  flex-wrap: wrap;
  gap: 18px; /* расстояние между game-item */
  margin-top: 22px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

/* Элемент иконка + подпись */
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px; /* 🔥 расстояние между иконкой и её текстом */
}

/* Контейнер фона под иконку */
.meta-icon-bg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Иконка */
.meta-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Текст рядом с иконкой */
.game-age,
.game-time,
.game-players {
  font-family: "Finlandica", sans-serif;
  font-size: 1em;
  font-weight: 600;
  color: #212121;
  text-align: left;
}

/* Описание */
.game-desc {
  font-family: "Finlandica", sans-serif;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
  margin: 18px 18px 0 18px; /* 🔥 равные отступы */
  text-align: left;
  overflow-wrap: break-word;
  flex-grow: 1;
}

/* Кнопка "Смотреть все игры" */
.games-footer {
  text-align: right;
  flex-shrink: 0; /* 🔥 НЕ СЖИМАЕТСЯ */
  margin-left: 20px; /* 🔥 ОТСТУП ОТ ЗАГОЛОВКА */
}

.all-games-btn {
  display: inline-flex;
  align-items: center; /* 🔥 ЦЕНТРИРОВАНИЕ ПО ВЕРТИКАЛИ */
  justify-content: center; /* 🔥 ЦЕНТРИРОВАНИЕ ПО ГОРИЗОНТАЛИ */
  background: #042ea5;
  color: white;
  padding: 15px 35px;
  border-radius: 16px;
  text-decoration: none;
  font-family: "Finlandica", sans-serif;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid #042ea5;
  white-space: nowrap; /* 🔥 ТЕКСТ НЕ ПЕРЕНОСИТСЯ */
  box-sizing: border-box;
}

.all-games-btn:hover {
  background: #0098ed;
}

/* 🔥 ЦВЕТНЫЕ .game-content ДЛЯ КАЖДОЙ КАРТОЧКИ */
.games-grid .game-card:nth-child(1) .game-content {
  border-color: #f98e0d; /* 🔥 ОРАНЖЕВАЯ РАМКА */
}

.games-grid .game-card:nth-child(2) .game-content {
  border-color: #009933; /* 🔥 ЗЕЛЕНАЯ РАМКА */
}

.games-grid .game-card:nth-child(3) .game-content {
  border-color: #4e04a5; /* 🔥 ФИОЛЕТОВАЯ РАМКА */
}

/* Цветовые темы для карточек */
.games-grid .game-card:nth-child(1) {
  border-color: #f98e0d;
}

.games-grid .game-card:nth-child(1) .game-tag {
  background: #f98e0d;
}

.games-grid .game-card:nth-child(2) {
  border-color: #009933;
}

.games-grid .game-card:nth-child(2) .game-tag {
  background: #009933;
}

.games-grid .game-card:nth-child(3) {
  border-color: #4e04a5;
}

.games-grid .game-card:nth-child(3) .game-tag {
  background: #4e04a5;
}

/* 🔥 ПАТТЕРН-ПЕРЕХОД */
.pattern-transition {
  background: #fff;
  margin-top: 30px;
}

.pattern-container {
  width: 100%;
  height: 100%; /* Высота паттерна */
  overflow: hidden;
}

/* Стили для img */
.pattern-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Стили для object */
.pattern-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== МОБИЛЬНЫЙ ПАТТЕРН-ПЕРЕХОД ========== */
.pattern-transition-mobile {
  display: none; /* по умолчанию скрыт */
}

/* ===== СЕКЦИЯ "КТО МЫ ТАКИЕ" ===== */

.about-us {
  background: #fff;
  padding: 66px 0 5px;
  margin-bottom: 10px;
}

/* ===== ОБЩАЯ СЕТКА ===== */
.about-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1296px;
  margin: 0 auto;
  position: relative;
}

/* ===== ЛЕВАЯ ЧАСТЬ ===== */
.about-left {
  position: absolute;
  width: 200px;
  left: 0;
  top: 0;
}

.about-subtitle {
  font-family: "Finlandica", sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1.4;
  color: #8196d2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-subtitle span {
  color: #042ea5;
}

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.about-right {
  position: relative;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px; /* ограничиваем ширину визуального блока */
  display: flex; /* центрируем всё */
  justify-content: center;
}

/* ===== ЕДИНАЯ ВЕРТИКАЛЬНАЯ КОМПОЗИЦИЯ ===== */
.about-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px; /* расстояние между блоками */
  width: 100%;
  max-width: 780px; /* единая ширина композиции */
}

/* ===== ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ СТРОК ===== */
.combo-top,
.combo-bg p,
.combo-claim p {
  font-family: "Wadik", sans-serif;
  font-size: 56px; /* ✅ единый размер шрифта */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}

/* ONE LAB — ЭТО */
.combo-top {
  color: #212121;
}

/* ===== СИНЯЯ КАПСУЛА ===== */
.combo-bg {
  background: #042ea5;
  border-radius: 60px;
  padding: 20px 60px;
  display: flex; /* заменили inline-flex для равнения по центру */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content; /* сохраняем ширину по контенту */
}

.combo-bg p {
  color: #fff;
  text-align: center;
}

/* ===== ГДЕ МЫ СОВМЕЩАЕМ НАУКУ... ===== */
.combo-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.combo-claim p {
  color: #212121;
}

/* ===== ЦВЕТ ТЕКСТА ===== */
.text-blue,
.claim-accent {
  color: #042ea5;
}

/* ===== СЕКЦИЯ "ПОДХОД К СОЗДАНИЮ ИГР" ===== */
.approach-section {
  background: #fff;
  padding: 0 0;
}

.approach-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* лучше так для текста */
  gap: 0; /* ⬅️ было 80px. Убрали gap, чтобы позволить перекрытие */
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; /* на всякий случай для z-index */
  overflow: visible; /* ⬅️ на случай выхода блоков за пределы */
}

/* ===== ЛЕВАЯ ЧАСТЬ (ТЕКСТ) ===== */
.approach-left {
  flex: 0 1 auto; /* не растягиваем всё пополам, даём естественную ширину */
  text-align: left;
  max-width: 860px; /* ↑ увеличили ширину текста */
  margin-left: 85px; /* ваш сдвиг вправо */
  margin-right: -120px; /* ⬅️ ключ: позволяeм наехать на правый */
  position: relative;
  z-index: 2; /* поверх правого блока */
}

.approach-title {
  font-family: "Finlandica", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #212121;
  margin: 46px 0 24px;
  line-height: 1.35;
}

/* ===== ОСНОВНОЙ ТЕКСТ ===== */
.approach-text {
  font-family: "Finlandica", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.8; /* более “воздушный” текст */
  margin: 0 0 20px;
  max-width: 590px; /* шире строка — позже переносится */
  word-break: normal; /* не ломает слова */
  overflow-wrap: normal; /* отключает агрессивное разбиение */
}

/* ===== КНОПКА ===== */
.approach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #042ea5;
  color: white;
  padding: 15px 35px;
  border-radius: 16px;
  text-decoration: none;
  font-family: "Finlandica", sans-serif;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid #042ea5;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  max-width: 290px;
}

.approach-btn:hover {
  background-color: #0098ed;
  border: 2px solid #0098ed;
  text-decoration: none;
}

/* ===== ПРАВАЯ ЧАСТЬ (КАРТИНКА) ===== */
.approach-right {
  flex: 0 0 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-left: 80px;
}

.approach-right img {
  max-width: 380px;
  height: auto;
  display: block;
}

/* ===== СЕКЦИЯ "СОЦСЕТИ ЛАБОРАТОРИИ" ===== */
/* === FIX: убираем синюю полоску на стыке паттерна === */
.socials-section {
  background-color: #042ea5;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 89px 0 0 0; /* убрали calc */
  padding-bottom: 160px;
  line-height: 0;
}

.pattern-image-inverted {
  display: block;
  width: 101%; /* чуть шире — перекрывает по краям */
  height: auto;
  transform: scaleY(-1);
  position: relative;
  top: -2px; /* 🔥 поднимаем SVG на 2 пикселя */
  margin-top: -1px;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Основная сетка */
.socials-wrapper {
  display: flex;
  flex-direction: row-reverse; /* ⬅️ меняем порядок: теперь картинка слева, текст справа */
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* ⬅️ центрируем по экрану */
  padding: 15px 20px; /* ⬅️ добавляем "воздух" */
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  max-width: 1296px;
}

/* Левая часть с текстом */
.socials-left {
  max-width: 750px;
  text-align: left;
  order: 2; /* ⬅️ явный порядок для совместимости */
}

.socials-left h2 {
  font-family: "Wadik", sans-serif;
  font-size: 24px;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
}

.socials-text,
.socials-sub {
  font-family: "Finlandica", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #fff;
}

.socials-sub strong {
  font-weight: 600;
}

/* Соц. иконки */
.socials-icons {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  align-items: center; /* аккуратное выравнивание */
}

.socials-icons img {
  width: 52x;
  height: 52px;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.socials-icons img:hover {
  opacity: 0.8;
}

/* ===== ПРАВАЯ ЧАСТЬ (единый SVG-декор) ===== */
.socials-right {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1; /* ⬅️ ставим первой в потоке */
  transform: translateX(-40px); /* ⬅️ чуть левее для баланса */
}

.socials-right picture img {
  width: 100%; /* фиксированная ширина */
  height: 100%; /* фиксированная высота */
  display: block;
  opacity: 1;
  transform: translateX(70px); /* немного сдвигаем правее от текста */
  pointer-events: none; /* чтобы SVG не перекрывал клики */
}

/* ===== БОЛЬШОЙ ЛОГО ВНУТРИ СОЦИАЛЬНОГО БЛОКА ===== */
.socials-logo {
  position: absolute;
  left: 80px; /* Прижать к левому краю родителя */
  bottom: -160px;
  display: flex;
  justify-content: flex-start; /* или center, если нужно выровнять картинку внутри */
  align-items: center;
}

.socials-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== Нижняя белая полоса футера ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: #000;
  width: 100%;
  max-width: 1296px; /* если нужен предел */
  margin: 0 auto; /* центрируем */
  height: 45px;
  padding: 0 60px;
  box-sizing: border-box;
  border-top: 3px solid #fff;
  line-height: 1;
}

.footer-copy {
  font-family: "Finlandica", sans-serif;
  font-size: 14px;
  color: #000;
  margin: 0;
}

/* ====== Блок О НАС ====== */
.about-page__intro {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 2;
}

.about-page__intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

.about-page__intro .container {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 2;
}

.about-page__title {
  font-family: "Wadik", sans-serif;
  font-size: 56px;
  text-transform: uppercase;
  color: #373737;
  margin-bottom: 20px;
  text-align: left;
}

.about-page__lead,
.about-page__text {
  font-family: "Finlandica", sans-serif;
  font-size: 16px;
  color: #1b1b1b;
  line-height: 1.6;
  max-width: 640px;
  text-align: left;
  margin-bottom: 15px;
}

.about-page__steps {
  margin-top: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ====== Подложки SVG вместо серого фона ====== */
/* Только для страницы "О нас" */
.about-page .container {
  background: transparent; /* убираем белую подложку контейнера */
  padding-left: 0; /* чтобы подложки совпадали с краями */
  padding-right: 0;
}

.about-page__step {
  display: grid;
  grid-template-columns: 161px 1fr;
  align-items: center;
  position: relative;
  height: 154.5px;
  padding: 0 30px 0 40px; /* ← 40px отступ от края подложки */
  background: none;
  overflow: hidden;
  column-gap: 22px; /* расстояние между иконкой и текстом */
}
.about-page__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%; /* ✅ фон ограничен контейнером */
  max-width: 1200px; /* совпадает с шириной .container */
  height: 154.5px;
  background-repeat: no-repeat;
  background-size: 100% 154.5px;
  background-position: center;
  z-index: 0;
}

/* 1-й и 3-й блок — pattern-1.svg */
.about-page__step:nth-child(1)::before,
.about-page__step:nth-child(3)::before {
  background-image: url("/wp-content/themes/olg-theme/images/about-pattern-1.svg");
}

/* 2-й и 4-й блок — pattern-2.svg */
.about-page__step:nth-child(2)::before,
.about-page__step:nth-child(4)::before {
  background-image: url("/wp-content/themes/olg-theme/images/about-pattern-2.svg");
}

/* Контент поверх подложки */
.about-page__num,
.about-page__hex-icon,
.about-page__content {
  position: relative;
  z-index: 1;
}

/* Вертикальное выравнивание заголовка и текста */
.about-page__content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ центрируем текст по высоте блока */
  align-items: flex-start; /* выравнивание по левому краю */
  height: 100%; /* растягиваем на всю высоту блока */
}

.about-page__title-text {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #212121;
  margin: 0 0 8px 0;
}

.about-page__desc-text {
  font-family: "Finlandica", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
  margin: 0;
  max-width: 350px; /* ✅ ограничиваем ширину текста */
  width: 100%; /* позволяет работать max-width корректно внутри flex/grid */
  word-wrap: break-word;
}

/* --- цифра в левом верхнем углу подложки --- */
.about-page__num {
  position: absolute;
  top: 0px; /* регулируй по макету, 18–22px обычно идеально */
  left: 10px; /* ✅ теперь реально у левого края SVG-подложки */
  transform: none; /* убираем лишний translate */
  font-family: "Wadik", sans-serif;
  font-weight: 700;
  font-size: 22.58px;
  color: #d6d6d6;
  z-index: 2;
}

.about-page__hex-icon {
  width: 161.12px; /* фиксированная ширина */
  height: 142px; /* фиксированная высота */
  background: none; /* убираем цвет фона */
  clip-path: none; /* убираем форму шестиугольника */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.about-page__hex-icon img {
  width: 161.12px;
  height: 142px;
  object-fit: contain;
  display: block;
}

.about-page__content h3 {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #111;
  margin-bottom: 6px;
}

.about-page__content p {
  font-family: "Finlandica", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* ====== SVG-декор справа ====== */
.about-page__decor {
  position: absolute;
  right: 150px;
  bottom: 450px; /* 🔼 поднимаем блок вверх (было 0) */
  width: 380px;
  height: 340px;
  z-index: 1;
  pointer-events: none;
}

.about-page__decor img,
.about-page__decor svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== СЕКЦИЯ "КОМУ ПОДОЙДУТ НАШИ ИГРЫ" ===== */
.audience-section {
  background: #fff;
  padding: 100px 0;
  text-align: center;
}

.audience-title {
  font-family: "Wadik", sans-serif;
  font-size: 52px;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 60px;
  letter-spacing: 1px;
  text-align: center;
}

/* Сетка карточек */
.audience-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: nowrap;
}

/* Карточка */
.audience-card {
  width: 416px;
  background: #fff;
  border: 3px solid;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: left;
  position: relative;

  display: flex;
  flex-direction: column;
  flex: 1 1 416px;

  align-items: stretch; /* ✅ важно! растягиваем содержимое */
  min-height: 0;
}

.audience-card:hover {
  transform: translateY(-5px);
}

/* Цвета карточек */
.audience-card.orange {
  border-color: #f98e0d;
}
.audience-card.green {
  border-color: #009933;
}
.audience-card.purple {
  border-color: #4e04a5;
}

/* Хедер карточки */
.audience-card__header {
  padding: 0;
}

.audience-card__tag {
  display: inline-flex; /* ✅ делаем flex для точного выравнивания */
  align-items: center; /* ✅ вертикальное центрирование текста */
  justify-content: center; /* горизонтальное центрирование */
  font-family: "Finlandica", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  border-radius: 8px;
  padding: 0 5px; /* убрали лишние вертикальные отступы */
  height: 30px; /* ✅ фиксированная высота для стабильности */
  line-height: 1; /* текст не влияет на высоту */
  box-sizing: border-box;
}

.audience-card.orange .audience-card__tag {
  background: #f98e0d;
  color: #fff;
}
.audience-card.green .audience-card__tag {
  background: #009933;
  color: #fff;
}
.audience-card.purple .audience-card__tag {
  background: #4e04a5;
  color: #fff;
}

/* Иконка */
.audience-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-top: 24px; /* ✅ отступ от верхнего края блока */
  margin-bottom: 30px; /* ✅ отступ от картинки до текста */
}

.audience-card__icon img {
  max-width: 100%;
  width: auto; /* убираем жёсткую ширину */
  height: auto; /* убираем жёсткую высоту */
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.audience-section {
  padding: 0;
}

/* Контент */
.audience-card__body {
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;

  flex: 1 1 auto; /* ✅ тело карточки тянется */
  min-height: 0; /* ✅ позволяет расти тексту */
}

/* Заголовок и текст — твои уникальные стили */
.audience-card__title {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #212121;
  margin-top: 0px; /* 🔥 ровно 24px от иконки */
  margin-bottom: 16px; /* 🔥 отступ между заголовком и текстом */
  display: flex;
  align-items: flex-end; /* 🔥 текст прижат к низу блока */
}

/* Текст */
.audience-card__text {
  font-family: "Finlandica", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
  margin: 0;

  flex: 1 1 auto; /* ✅ текст тянется */
  max-width: none; /* ✅ убираем ограничение ширины */
  margin-bottom: 20px; /* ✅ чтобы была дистанция от ползунков */
}

/* ====== ПОЛЗУНКИ ====== */
.audience-card__metrics {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 366px; /* ширина, как у текста */
  min-width: 0;
  box-sizing: border-box;
}

.metric {
  display: flex;
  flex-direction: row; /* 🔥 было column — теперь строки */
  align-items: center; /* 🔥 выравниваем подпись и ползунок по центру */
  justify-content: flex-start; /* 🔥 фиксируем начало по одной линии */
  gap: 12px; /* 🔥 расстояние между подписью и полосой */
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.metric__label {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #d6d6d6;
  text-transform: none;
  line-height: 1.4;

  width: 130px; /* 🔥 фиксированная ширина для выравнивания всех полосок */
  flex-shrink: 0; /* 🔥 не позволяет сжимать подписи */
  text-align: left; /* 🔥 по левому краю */
  margin: 0; /* 🔥 убираем возможные вертикальные отступы */
  padding-right: 5px; /* 🔥 небольшой отступ от ползунка */
}

/* === Полоса === */
.metric__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  background: #f4f4f4;
  border-radius: 4px;
  overflow: visible;
}

/* === Заливка === */
.metric__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(var(--value) * 1%);
  background: currentColor;
  border-radius: 4px;
  transition: width 0.3s ease;
  z-index: 1;
}

/* === Шестиугольный маркер === */
.metric__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--value) * 1%);
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  z-index: 2;
}

/* === Цветовые темы === */
.metric__bar.orange {
  color: #f98e0d;
}
.metric__bar.green {
  color: #009933;
}
.metric__bar.purple {
  color: #4e04a5;
}

/* ===== КОНТАКТЫ ===== */
/* Контакты — такие же стили контейнера, как на странице О нас */
.page-template-page-contacts .container,
.page-template-page-contacts-php .container {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  padding-top: 0;
}

.contacts-intro {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contacts-title {
  font-family: "Wadik", sans-serif;
  font-size: 56px;
  text-transform: uppercase;
  color: #373737;
  margin-bottom: 20px;
  text-align: left;
}

.contacts-lead {
  font-family: "Finlandica", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #212121;
  line-height: 1.6;
  margin-bottom: 60px;
  max-width: 600px;
}

/* Таблица контактов */
.contacts-table {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 600px;
}

.contacts-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 12px;
}

.contacts-label {
  font-family: "Finlandica", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #212121;
}

.contacts-value {
  font-family: "Finlandica", sans-serif;
  font-size: 16px;
  color: #212121;
  text-align: right;
}

.contacts-value a {
  color: #0b46ff;
  text-decoration: none;
}

.contacts-value a:hover {
  text-decoration: underline;
}

/* Синее декор-изображение справа */
.contacts-decor {
  position: absolute;
  right: 200px;
  top: 120px;
  z-index: 1;
}

.contacts-decor img {
  width: 100%;
  max-width: 263.6px;
  height: 100%;
  max-height: 528px;
  display: block;
  margin: 0 auto; /* если нужно центрировать */
}

/* === Главная страница: белая шапка === */
body.home .site-header {
  color: #042ea5 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Цвет текста/ссылок внутри шапки */
body.home .site-header a,
body.home .site-header nav a {
  color: #042ea5 !important;
}

/* Ховер-состояние для ссылок */
body.home .site-header a:hover,
body.home .site-header nav a:hover {
  color: #0b135e !important;
}

/* === Все остальные страницы: остаётся стандартный синий фон === */
body:not(.home) .site-header {
  color: #ffffff !important;
}

body:not(.home) .site-header a,
body:not(.home) .site-header nav a {
  color: #ffffff !important;
}

body:not(.home) .site-header a:hover,
body:not(.home) .site-header nav a:hover {
  color: #dfe8ff !important;
}

/* ✅ На НЕ-главной SVG должны быть синие */
body:not(.home) .header-edge svg path {
  fill: #042ea5;
}

/* ✅ На главной SVG белые */
body.home .header-edge svg path {
  fill: #ffffff;
}

/* Главная */
body.home .header-inner {
  background: #ffffff !important;
}

/* Другие страницы */
body:not(.home) .header-inner {
  background: #042ea5 !important;
}

/* --- Цвет логотипа --- */
body.home .logo svg {
  color: #042ea5; /* синий на главной */
}

body:not(.home) .logo svg {
  color: #ffffff; /* белый на всех остальных */
}

/* Главная — синий */
body.home .search-icon svg {
  color: #042ea5;
}

/* Остальные — белый */
body:not(.home) .search-icon svg {
  color: #ffffff;
}

/* 🔧 Сбрасываем системные стили кнопки поиска */
.search-icon {
  background: none; /* убираем серый фон */
  border: none; /* убираем рамку */
  padding: 0; /* убираем внутренние отступы */
  margin: 0;
  cursor: pointer; /* курсор-рука */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: none; /* убираем внутренние тени Safari */
  outline: none; /* убираем контур при фокусе */
  appearance: none; /* сбрасываем внешний стиль кнопки */
}

/* 🔹 Чтобы SVG красиво центрировался и перекрашивался */
.search-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  transition: color 0.3s ease;
}

/* 🔹 Цвет иконки */
body.home .search-icon svg {
  color: #042ea5; /* синий на главной */
}

body:not(.home) .search-icon svg {
  color: #ffffff; /* белый на остальных */
}

/* 🔹 При наведении — лёгкий эффект */
.search-icon:hover svg {
  opacity: 0.8;
}

/* === Unified Breadcrumbs style (stronger, overwrites WC) === */
body:not(.home) .breadcrumbs,
body:not(.home) .woocommerce-breadcrumb,
body:not(.home) .breadcrumbs-wrapper,
body:not(.home) .breadcrumbs-wrapper nav,
body:not(.home) nav.woocommerce-breadcrumb {
  max-width: 1296px;
  margin: 90px auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: block;
  text-align: left;
  font-size: 14px;
  color: #767676;
}

/* Links */
body:not(.home) .breadcrumbs a,
body:not(.home) .woocommerce-breadcrumb a,
body:not(.home) .breadcrumbs-wrapper a,
body:not(.home) nav.woocommerce-breadcrumb a {
  color: #767676;
  text-decoration: none;
}

body:not(.home) .breadcrumbs a:hover,
body:not(.home) .woocommerce-breadcrumb a:hover,
body:not(.home) .breadcrumbs-wrapper a:hover,
body:not(.home) nav.woocommerce-breadcrumb a:hover {
  color: #000;
}

/* WooCommerce alignment fix */
body.archive.woocommerce nav.woocommerce-breadcrumb {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  flex-direction: column;
  align-items: center;
  color: #767676;
  gap: 12px;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000;
}

.spoiler__open {
  display: none !important;
}
.spoiler[open] .spoiler__open {
  display: inline !important;
}
.spoiler[open] .spoiler__closed {
  display: none !important;
}

/* =====================  А Д А П Т И В  ======================== */

/* =====  FULLHD 1920PX  ===== */

@media (min-width: 1920px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 1296px;
    margin: auto;
    padding: 0;
  }

  .site-header {
    width: 1440px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .header-edge.left {
    left: 2px;
  }

  .header-edge.right {
    right: 2px;
  }

  .header-edge svg {
    display: block;
  }

  .banners-carousel {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: center; /* Центрируем баннер */
    z-index: 0; /* основной контекст */
  }

  .banners-carousel.swiper,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide {
    height: auto; /* чтобы не тянуло высоту */
    width: 1600px;
    aspect-ratio: 16 / 9; /* фиксируем пропорции 1920x1080 */
  }

  .banner-slide {
    max-width: 1600px;
    width: 100%;
    height: auto;
    position: relative; /* создаём общий контекст */
    z-index: 0; /* убираем лишний приоритет у слайдов */
    overflow: visible;
  }

  .banner-bg {
    position: absolute;
    inset: 0;
    width: 1600px;
    height: 100%;
    z-index: 1; /* фон */
  }

  .banner-bg picture,
  .banner-bg-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
  }

  .banner-content {
    position: relative;
    z-index: 2;
    max-width: 1296px;
    margin: 0 auto;
    padding-top: 150px;
    padding-right: 24px;
    padding-bottom: clamp(60px, 10vh, 160px);
    padding-left: 24px;
    text-align: left;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .banner-title {
    font-size: 2.3em;
    line-height: 1.2;
  }

  .banner-description {
    font-size: 1.2em;
    line-height: 1.6;
  }

  .our-games {
    padding: 0;
  }

  .games-grid {
    max-width: 1296px !important;
    margin: 0 auto;
  }

  .about-wrapper {
    max-width: 1296px !important;
    margin: 0 auto !important;
  }

  .socials-wrapper {
    max-width: 1296px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    justify-content: flex-start !important; /* СЛЕВА, А НЕ CENTER */
    gap: 145px !important; /* Оставляем gap между элементами */
  }

  .socials-left {
    max-width: 750px;
    margin: 0;
    padding: 0;
    padding-left: 0; /* ТОЧЕЧНО УБИРАЕМ ЛЕВЫЙ PADDING */
    text-align: left;
  }

  .socials-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  body:not(.home) .breadcrumbs,
  body:not(.home) .woocommerce-breadcrumb,
  body:not(.home) .breadcrumbs-wrapper,
  body:not(.home) .breadcrumbs-wrapper nav,
  body:not(.home) nav.woocommerce-breadcrumb {
    max-width: 1296px;
    padding: 0 20px;
  }

  main#main.site-main {
    max-width: 1296px;
  }

  .shop-container {
    width: 1296px;
  }

  .shop-container ul.products {
    max-width: 1296px;
  }

  .about-page__intro {
    max-width: 1296px;
  }

  .audience-grid {
    flex-wrap: nowrap;
  }

  .contacts-intro {
    position: relative;
    max-width: 1296px;
  }

  .contacts-decor {
    position: absolute;
    right: 0;
    left: auto;
    width: 360px;
    z-index: 1;
  }

  .footer-bottom {
    max-width: 1296px;
  }
}

@media (min-width: 1871px) {
  .banners-carousel.swiper,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide {
    height: auto;
    width: 1600px;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================= */
/* =====  ПЛАНШЕТЫ И ДО 1200PX  ===== */
/* ============================================================= */

@media (max-width: 1200px) {
  .site-header {
    left: 40px;
    right: 40px;
  }

  .main-nav {
    padding: 0 20px;
  }

  .main-nav .menu {
    gap: 24px;
  }

  /* === Unified Breadcrumbs style (stronger, overwrites WC) === */
  body:not(.home) .breadcrumbs,
  body:not(.home) .woocommerce-breadcrumb,
  body:not(.home) .breadcrumbs-wrapper,
  body:not(.home) .breadcrumbs-wrapper nav,
  body:not(.home) nav.woocommerce-breadcrumb {
    max-width: 1140px;
    margin: 90px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    display: block;
    text-align: left;
    font-size: 14px;
    color: #767676;
  }

  /* ---------- ABOUT PAGE ---------- */
  .about-page__photo-hex {
    position: static;
    margin: 60px auto 0;
  }

  .about-page__intro {
    max-width: 1140px;
  }

  .about-page__intro .container {
    max-width: 1140px;
  }

  .about-page__decor {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 300px;
    height: 686px;
    z-index: 1;
    pointer-events: none;
  }

  /* ---------- CONTACTS ---------- */
  .contacts-intro {
    max-width: 1140px;
  }

  .container {
    max-width: 1140px;
  }

  .contacts-lead {
    font-size: 18px;
  }

  .contacts-value {
    text-align: right;
  }

  .contacts-decor {
    position: absolute;
    right: 200px;
    top: 120px;
    z-index: 1;
  }

  .contacts-decor img {
    width: 100%;
    max-width: 200px;
    height: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
  }

  /* ---------- HEADER ---------- */
  .site-header {
    max-width: 100%;
  }

  /* ---------- BANNERS ---------- */
  .banners-carousel {
    height: 70%;
    min-height: 400px;
    max-height: 760px;
  }

  .banner-slide,
  .banners-carousel {
    height: 570px;
    position: relative;
  }

  .banners-carousel.swiper,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide {
    height: 570px;
  }

  .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .banner-bg picture,
  .banner-bg-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* или убрать object-fit вовсе */
    object-position: center;
    max-width: 100%;
  }

  .banner-title {
    font-size: 1.6em;
  }

  .banner-description {
    font-size: 1.1em;
    width: 550px;
  }

  .banner-btn {
    font-size: 1em;
  }

  .socials-logo {
    bottom: -163px;
  }

  /* Карточка */
  .audience-card {
    width: 364px; /* было 416px */
    background: #fff;
    border: 3px solid;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
    position: relative;

    display: flex;
    flex-direction: column;
    flex: 1 1 364px; /* было 1 1 416px */

    align-items: stretch;
    min-height: 0;
  }

  .audience-card__icon {
    margin-top: 24px;
    margin-bottom: 30px;
    padding: 0 24px;
  }

  .banner-content {
    max-width: 1140px;
    padding-left: 70px;
  }

  .pattern-transition {
    margin-top: 100px;
  }

  .about-wrapper {
    max-width: 1140px;
  }

  .combo-top,
  .combo-bg p,
  .combo-claim p {
    font-size: 40px;
  }
  .approach-right {
    margin-left: 0px;
    margin-right: 85px;
  }

  /* Основная сетка */
  .socials-wrapper {
    max-width: 1140px;
  }
}

/* ============================================================= */
/* =====  НОУТБУКИ / ПЛАНШЕТЫ ВЕРТИКАЛЬНО ДО 992PX  ===== */
/* ============================================================= */

@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }

  .audience-grid {
    margin: 0 16px;
  }

  .audience-card__icon {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 0 16px;
  }

  .audience-card__metrics {
    margin-top: 0;
  }

  .socials-wrapper {
    max-width: 960px;
  }
  /* ---------- CONTACTS ---------- */

  .contacts-lead {
    font-size: 18px;
  }

  .contacts-row {
    flex-direction: column;
    gap: 6px;
  }

  .contacts-value {
    text-align: left;
  }

  /* ---------- ABOUT PAGE ---------- */
  .about-page__photo-hex {
    position: static;
    margin: 40px auto 0;
  }

  .contacts-decor {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 32px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    left: auto;
    right: auto;
    top: auto;
  }

  .contacts-decor img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .socials-logo {
    bottom: -176px;
  }

  .about-page__intro {
    max-width: 960px;
  }

  .about-page__intro .container {
    max-width: 960px;
  }

  /* Картинка команды */
  .about-page__decor {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 16px 0 0;
    display: block;
    padding: 0 16px 16px;
    box-sizing: border-box;
    order: 999;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .about-page__decor img {
    width: 100%;
    max-width: 328px;
    height: auto;
    display: block;
    margin: 0 auto; /* центрируем картинку */
    object-fit: contain;
  }

  .pattern-transition {
    margin-top: 30px;
  }

  .banner-content {
    max-width: 600px;
    padding-left: 0;
    padding-top: 80px;
    margin-left: 50px; /* прижать к левой */
    margin-right: auto;
  }

  .banner-title {
    font-size: 1.3em;
    width: 500px;
  }

  .banner-description {
    font-size: 1em;
    width: 400px;
  }

  .banners-carousel.swiper,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide {
    height: 512px;
  }

  ul.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  ul.home-products-grid li {
    width: 100%;
    display: flex;
  }

  .approach-left {
    max-width: 500px;
  }

  .approach-right {
    margin-left: 0px;
    margin-right: 30px;
  }

  .combo-top,
  .combo-bg p,
  .combo-claim p {
    font-size: 30px;
  }

  .about-left {
    left: 16px;
  }

  main.game-start {
    max-width: 100%;
    width: calc(100% - 20px); /* 10px слева + 10px справа */
    margin: 20px auto;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 12px;
  }

  main.game-start h1 {
    font-size: 1.6em;
    margin-bottom: 18px;
  }

  main.game-start h2 {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .quiz-container {
    max-width: 900px;
  }

  .question-header .question-text {
    max-width: 350px;
  }

  .answer-option {
    font-size: clamp(16px, 4vw, 20px);
  }

  .question-container.grid-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    column-gap: 24px;
    align-items: stretch;
  }

  .question-container.grid-layout:not(
      :has(.question-image-block:not(.hidden):not([style*="display: none"]))
    ) {
    grid-template-columns: 1fr; /* одна колонка */
    justify-items: center; /* центр по горизонтали */
  }

  .question-container.grid-layout:not(
      :has(.question-image-block:not(.hidden):not([style*="display: none"]))
    )
    .question-main {
    max-width: 500px; /* чтобы не растягивать на всю ширину */
    width: 100%;
  }

  /* сам блок картинки по центру колонки */
  .question-image-block {
    display: inline-block; /* вместо flex-колонки */
    background: #feebc6;
    border: 15px solid #feebc6;
    border-radius: 12px;
    box-shadow: 0 6px 0 #f7c9a3;
    overflow: hidden;
    order: 3;
  }

  .question-image-block img {
    display: block; /* убираем нижний inline-gap */
    width: 100%;
    height: auto;
  }

  /* горизонтальные — одна рамка/размер */
  .question-image-block--landscape {
    width: auto;
    height: 195px;
  }

  /* вертикальные — другая рамка/размер */
  .question-image-block--portrait {
    width: 230px;
    height: auto;
  }

  .question-image-block .question-image-caption:empty {
    display: none; /* нет текста — нет лишней высоты снизу */
  }

  .question-image-block.flag,
  .question-image-block.shapes {
    justify-self: center; /* центр по горизонтали внутри правой колонки */
    align-self: center; /* центр по вертикали */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    max-width: 300px;
    width: 100%;
  }

  .question-image-block.flag img,
  .question-image-block.shapes img {
    max-width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ========== MOBILE 768px ========== */

@media (max-width: 768px) {
  /* БЕЗ отступов */
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ---------- OUR GAMES ---------- */
  .game-meta {
    gap: 8px;
  }

  .meta-icon img {
    width: 28px;
    height: 28px;
  }

  .game-desc {
    font-size: 0.9em;
    line-height: 1.4;
  }

  /* ---------- SOCIALS ---------- */
  .socials-left h2 {
    font-size: 18px;
  }

  .socials-text {
    font-size: 13px;
  }

  /* ---------- FOOTER ---------- */
  .footer-bottom {
    flex-direction: column;
    padding: 8px 15px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  /* Шапка */
  .site-header {
    width: 100%;
    margin: 8px auto;
    padding: 0;
    height: 44px;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
  }
  .site-header::before {
    top: 0;
    height: 44px;
    left: 0;
    right: 0;
    border-radius: 8px;
    overflow: visible;
  }

  /* Header inner: лого слева, иконки справа */
  .header-inner {
    background: #042ea5 !important; /* всегда синий фон */
    color: #ffffff !important; /* текст по умолчанию белый */
    position: relative !important;
    z-index: 5 !important; /* поверх фона */
    height: 44px !important;
    padding: 0 0 0 0 !important;
    display: grid !important; /* ← заменили flex на grid */
    grid-template-columns: auto 1fr auto !important; /* ← три колонки как на десктопе */
    align-items: center !important; /* выравнивание по центру */
    column-gap: 10px !important; /* промежуток между колонками */
    grid-template-areas: "logo . icons" !important;
    overflow: visible !important;
  }

  body.home .header-inner {
    background: #042ea5 !important;
  }

  .header-inner a,
  .header-inner nav a {
    color: #ffffff !important;
  }

  body.home .site-header .header-inner .logo svg {
    color: #ffffff !important;
    max-height: 30px !important;
    height: 100px !important;
    vertical-align: middle !important;
  }

  /* Лого СЛЕВА */
  .logo {
    order: 1 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    grid-area: logo !important;
    margin-left: 0 !important;
    padding-left: 4px !important;
    justify-self: start !important;
  }

  .logo svg {
    height: 30px !important;
    width: 100px !important;
    display: block !important;
  }

  /* --- ИКОНКИ справа --- */
  .header-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 10 !important;
    flex-wrap: nowrap !important; /* ✅ добавлено */
    grid-area: icons !important;
    justify-self: end !important; /* прижимает к правому краю grid */
    margin-right: 0 !important; /* убирает лишний отступ */
    padding-right: 0 !important; /* на всякий случай */
  }

  .header-icons > * {
    flex-shrink: 0 !important;
  }

  /* --- ИКОНКА ПОИСКА --- */
  .header-icons .search-container svg {
    width: 28x !important;
    height: 28px !important;
    display: block !important;
  }

  .search-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    overflow: visible; /* 👈 добавлено — чтобы SVG не обрезался */
  }

  /* --- ИКОНКА МЕНЮ (SVG внутри .menu-toggle) --- */
  .menu-toggle svg {
    width: 28px; /* 👈 уменьшаем чуть, чтобы влезало */
    height: 28px;
    display: block;
    fill: none;
    box-sizing: content-box;
    overflow: visible; /* 👈 гарантирует, что линии не обрезаются */
  }

  .main-nav .menu.active li a {
    color: #042ea5 !important;
  }
  .main-nav .menu.active li a:hover {
    color: #0a46ff !important;
  }

  /* но меню выше всех */
  .main-nav {
    height: auto;
    position: relative;
    z-index: 999999;
  }

  /* Контейнер меню (UL.menu из wp_nav_menu) */
  .main-nav .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* 👈 занимает всю ширину экрана */
    height: 100vh; /* 👈 и всю высоту */
    background: #fff;
    transform: translateX(100%); /* ← скрыто за правым краем */
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 1.5rem 2rem; /* место сверху под крестик */
    gap: 4px;
    overflow-y: auto;
    box-shadow: none; /* уберём тень, если не нужна */
  }

  /* Активное меню */
  .main-nav .menu.active,
  body.menu-open .main-nav .menu {
    transform: translateX(0%); /* ← возвращаем на экран */
    opacity: 1;
    visibility: visible;
  }

  .main-nav .menu-wrapper {
    position: relative; /* Контейнер для позиционирования крестика */
    width: 100%;
    height: 100%;
  }

  /* Показать крестик только когда меню активно */
  .main-nav .menu.active ~ .menu-close {
    display: block;
  }

  /* Кнопка закрытия меню */
  .menu-close {
    position: fixed;
    top: 10px;
    right: 17px;
    background: none;
    border: none;
    color: #212121;
    font-size: 35px;
    cursor: pointer;

    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    z-index: 10000;
  }

  body.menu-open .menu-close {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }

  /* Когда меню активно — показываем крестик плавно */
  .main-nav .menu.active + .menu-close {
    opacity: 1;
    transform: translateX(0);
  }

  /* затемнённый фон под меню */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999; /* 👈 ниже меню, но выше остального */
  }

  /* блокировка прокрутки */
  body.menu-open {
    overflow: hidden;
  }

  /* пункты меню */
  .main-nav .menu li {
    list-style: none;
    width: 100%;
  }

  .main-nav .menu li a {
    display: block;
    width: 100%;
    color: #042ea5;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    padding: 12px 0;
  }

  /* СКОСЫ — показываем */
  .header-edge {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    height: 44px !important;
    width: 21px;
    z-index: 1;
  }

  body.home .header-edge svg path {
    fill: #042ea5 !important;
  }

  body.home .search-icon svg {
    color: #ffffff;
  }

  .header-edge.left {
    left: 4px !important;
    fill: #042ea5;
  }

  .header-edge.right {
    right: 4px !important;
    fill: #042ea5;
  }

  .header-edge svg {
    display: block !important;
    height: 44px !important;
    width: 21px !important;
  }

  .container {
    width: 100%;
    max-width: 100%; /* чтобы не выходил за экран */
    padding: 15px;
    box-sizing: border-box;
    min-height: 300px;
  }

  .games-title {
    font-size: 1.5em;
    white-space: nowrap;
  }

  .our-games .all-games-btn {
    font-size: 0; /* скрывает текст */
    width: 46px;
    height: 46px;
    padding: 0 22px; /* только по бокам */
    line-height: 46px; /* выравнивает текст по центру */
    border-radius: 14px;
    background: #042ea5;
    display: flex;
    align-items: center;
  }

  /* добавляем стрелку */
  .our-games .all-games-btn::after {
    content: "→";
    font-size: 22px;
    color: #fff;
    font-weight: 700;
  }

  .banner-bg {
    position: relative;
    inset: 0;
    width: 100%;
    height: 512px;
    z-index: 1;
  }

  .banner-slide {
    --banner-mobile-h: 180px;
  }

  .banners-carousel,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide,
  .banner-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 20px !important;
  }

  .banner-content {
    position: static; /* убираем наложение поверх */
    display: block; /* снимаем flex, чтобы не тянуть высоту слайда */
    height: auto;
    min-height: 0;
    padding: 24px 16px 24px;
    color: #212121; /* текст под белым фоном страницы */
    text-shadow: none;
    text-align: left;
    padding-bottom: 20px !important;
    padding-bottom: 60px;
    padding-left: 16px;
    padding-right: 16px;
    align-items: center;
  }

  .banner-title {
    font-size: 1.1em;
    line-height: 1.2;
    white-space: normal !important;

    /* запрет разрыва внутри слова */
    overflow-wrap: normal; /* было anywhere */
    word-break: normal; /* не дробить слово */
    hyphens: none; /* без переносов по слогам */

    width: auto;
    max-width: 100%;
    margin: 10px 0 8px;
    display: block;
  }

  .banner-description,
  .banner-description p {
    white-space: normal !important; /* разрешаем переносы */
    overflow-wrap: normal; /* переносим даже при длинных токенах */
    word-break: normal; /* fallback */
    hyphens: auto;
    font-size: 0.8em;
    width: auto;
    max-width: 100%;
    margin: 8px 0;
    display: block;
  }

  .banner-btn {
    box-sizing: border-box;
    width: 100%; /* заполняем контейнер */
    max-width: 290px; /* ограничение по ширине при широком экране */
    margin: 16px auto 0; /* центр по горизонтали */
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #042ea5;
    color: #fff;
    border: 2px solid #042ea5;
    text-decoration: none;
    text-shadow: none;
    font-size: 0.95em;
  }

  .banner-btn:hover,
  .banner-btn:focus {
    background: #0098ed;
    border-color: #0098ed;
    color: #fff;
  }

  /* МОБИЛЬНЫЙ ПАТТЕРН-ПЕРЕХОД */
  .pattern-transition-mobile {
    display: block;
    background: #fff;
    margin-top: 0;
  }

  .pattern-container-mobile {
    width: 100vw;
    height: clamp(30px, 12vw, 60px);
    overflow: hidden;
    position: relative;
  }

  .pattern-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .our-games {
    padding: 20px 0;
  }

  /* ПАТТЕРН-ПЕРЕХОД */
  .pattern-transition {
    background: #fff;
    margin-top: 10px; /* фиксированный отступ сверху */
  }

  .pattern-container {
    width: 100vw; /* ширина = ширине экрана */
    height: clamp(30px, 15vw, 58px);
    overflow: hidden; /* обрезает лишнее по бокам */
    position: relative; /* для контейнера */
  }

  .pattern-image,
  .pattern-svg {
    display: block;
    width: auto; /* не растягиваем до 100% ширины сразу */
    min-width: 100vw; /* минимум = ширина экрана */
    height: 100%;
    object-fit: cover; /* обрезаем если выходит за контейнер */
    object-position: center center; /* центрируем содержимое */
  }

  /* 🔵 Блок "О нас" */
  .about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px 0;
    text-align: center;
  }

  /* 🔹 Исправление структуры блока "Наш подход" для мобильных */
  .approach-section {
    width: 100%; /* ⬅ теперь занимает всю ширину экрана */
    max-width: none; /* ⬅ не ограничиваем контейнер */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 0;
    padding: 0; /* убираем все внутренние отступы */
  }

  /* Контейнер выравниваем и ограничиваем */
  .about-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .approach-right {
    flex: 0;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  /* 🔹 3. Изображение */
  .approach-right img {
    display: block;
    margin: 0 auto;
    width: 328px;
    height: auto;
  }

  .about-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .about-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0; /* расстояние между блоками */
    width: 100%;
  }

  /* 🔹 1. Заголовок "Кто мы такие, издательство OneLab" */
  .about-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    margin-top: -24px; /* 🔥 поднимаем вверх */
    font-size: 0.75em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #8196d2;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  /* 🔹 2. Основной заголовок с синим акцентом */
  .combo-top,
  .combo-bg p,
  .combo-claim p {
    font-family: "Wadik", sans-serif;
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: normal;
  }

  .combo-top {
    color: #000;
    text-align: center;
    margin-bottom: 0;
  }

  .combo-bg {
    display: inline-block;
    background: #1336b3;
    color: #fff;
    border-radius: 28px;
    padding: 6px 16px;
    white-space: normal;
  }

  .combo-claim {
    display: block;
    text-align: center;
    margin-top: 6px;
    color: #000;
    white-space: normal;
    overflow-wrap: anywhere; /* современный безопасный перенос */
    word-break: break-word; /* перенос длинных "слов" при необходимости */
    hyphens: auto;
  }

  .combo-claim p {
    display: block; /* ✅ теперь перенос разрешён */
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0 auto;
  }

  .approach-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* ✅ тоже было center */
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
  }

  .approach-left {
    max-width: 420px;
    text-align: center;
    margin: 0 auto;
  }

  /* 🔹 4. Текстовый блок "Мы подходим к созданию..." */
  .approach-left,
  .approach-title,
  .approach-text,
  .approach-btn {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
  }

  .approach-title {
    width: 300px;
    font-size: 1.05em;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .approach-text {
    font-size: 0.95em;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 18px; /* 🔥 убран верхний, оставлен нижний */
    color: #2c2c2c;
    max-width: 360px; /* ✅ ограничиваем ширину текста */
  }

  /* 🔹 5. Кнопка
  .approach-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 290px;
    margin: 16px auto 0;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #042ea5;
    color: #fff;
    border: 2px solid #042ea5;
    text-decoration: none;
    text-shadow: none;
    font-size: 0.95em;
  } */

  /* SOCIALS SECTION - синий блок в футере */
  .socials-section {
    background-color: #042ea5;
    margin-top: 40px;
    padding-bottom: 140px;
    width: 100%;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
    line-height: 0;
  }

  /* SVG-волна сверху */
  .pattern-image-inverted {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleY(-1);
    position: relative;
    top: -2px;
    margin-top: -1px;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    vertical-align: bottom;
    line-height: 0;
  }

  /* Контейнер с контентом */
  .socials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px 20px;
    gap: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Левая часть (текст) */
  .socials-left {
    order: 1;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  .socials-left h2 {
    font-family: "Wadik", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
    white-space: normal;
    word-break: break-word;
  }

  .socials-text,
  .socials-sub {
    font-family: "Finlandica", sans-serif;
    font-size: 16px;
    width: 300px;
    line-height: 1.6;
    margin: 0 auto 10px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
  }

  .socials-sub strong {
    font-weight: 600;
  }

  /* Иконки соцсетей */
  .socials-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
  }

  .socials-icons img {
    width: 48px;
    height: 48px;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .socials-icons img:hover {
    opacity: 0.8;
  }

  /* Правая часть (иконка) */
  .socials-right {
    order: 2;
    display: flex;
    flex: 0 0 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    transform: none;
  }

  .socials-right img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
  }

  /* Большой логотип внизу */
  .socials-logo {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
  }

  .socials-logo img {
    width: 95vw;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* FOOTER BOTTOM - чёрно-белая плашка */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    padding: 12px 16px;
    box-sizing: border-box;
    border-top: 3px solid #fff;
    gap: 8px;
    text-align: center;
  }

  .footer-copy {
    font-family: "Finlandica", sans-serif;
    font-size: 12px;
    color: #000;
    margin: 0;
    line-height: 1.4;
  }

  /* Единый стиль для всех страниц */
  body:not(.home) .breadcrumbs-wrapper,
  body:not(.home) nav.woocommerce-breadcrumb {
    max-width: 100%;
    margin: 30px auto 10px;
    padding: 8px 8px;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    z-index: 2;
    display: block;
  }

  /* Текст */
  body:not(.home) nav.woocommerce-breadcrumb {
    font-size: 14px;
    line-height: 1.4;
    color: #757575;
    text-align: left;
    white-space: normal; /* разрешаем перенос строк */
  }

  /* чтобы не липло к верху */
  body:not(.home) .breadcrumbs-wrapper {
    padding-top: 1px;
    padding-bottom: 1px;
  }

  /* стрелочки-разделители */
  .woocommerce-breadcrumb a {
    font-size: 14px;
  }

  .woocommerce-breadcrumb span {
    margin: 0 4px;
  }

  .about-page__title {
    font-family: "Wadik", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #373737;
    margin: 0;
    margin-bottom: 20px;
    text-align: left;
  }

  /* === ABOUT PAGE STEPS === */
  .about-page__intro {
    max-width: 1296px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 2;
  }

  .about-page__intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
  }

  .about-page__intro .container {
    max-width: 1296px;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
  }

  .about-page__steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2; /* выше картинки */
  }

  .about-page__step {
    display: grid;
    grid-template-columns: 80px 1fr; /* уменьшаем колонку иконки с 161px до 80px */
    align-items: center;
    height: auto !important; /* убираем фиксированную высоту */
    min-height: 120px;
    padding: 16px 12px;
    border-radius: 16px;
    position: relative;
    overflow: visible; /* показываем иконку */
    column-gap: 12px;
  }

  .about-page__step::before {
    content: "";
    position: absolute;
    width: 100%; /* адаптируем под ширину блока */
    height: 100%;
    top: 0;
    left: 0;
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
  }

  /* Нумерация */
  .about-page__num {
    display: none; /* скрываем большие цифры 01, 02, 03, 04 */
  }

  /* Иконка-гексагон - УМЕНЬШАЕМ */
  .about-page__hex-icon {
    width: 59.02px;
    height: 52.96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: start;
    margin-top: -10px;
    margin-left: -12px;
    justify-content: center;
  }

  .about-page__hex-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Контент */
  .about-page__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    width: 100%;
  }

  .about-page__title-text {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #212121;
    font-weight: 700;
  }

  .about-page__desc-text {
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
    max-width: 100%;
    word-wrap: break-word;
    font-weight: 300;
  }

  .audience-section {
    padding: 1px 0;
  }

  /* Картинка команды */
  .about-page__decor {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 16px 0 0;
    display: block;
    padding: 0 16px 16px;
    box-sizing: border-box;
    order: 999;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .about-page__decor img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto; /* центрируем картинку */
    object-fit: contain;
  }

  .audience-title {
    font-size: 18px; /* уменьшаем до 18px */
    padding: 0 16px;
    margin-bottom: 30px;
    text-align: center;
  }

  /* Сетка карточек - в столбик */
  .audience-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }

  .audience-card {
    width: 100%;
    max-width: 328px;
    height: auto !important; /* убираем фиксированную высоту */
    min-height: 0 !important; /* убираем минимальную высоту */
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
  }

  /* Контент карточки */
  .audience-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    padding: 0 20px 20px;
  }

  .audience-card__icon {
    padding: 0 16px;
  }

  .audience-card__title {
    font-size: 18px;
  }

  /* Текст - убираем ограничение высоты */
  .audience-card__text {
    flex: 1 1 auto;
    height: auto;
    max-height: none !important;
    overflow: visible;
    margin-bottom: 16px;
  }

  /* Метрики внизу */
  .audience-card__metrics {
    margin-top: auto;
    width: 100%;
  }

  .contacts-title {
    font-family: "Wadik", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #373737;
    margin-bottom: 20px;
    text-align: left;
  }

  .contacts-decor {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 32px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    left: auto;
    right: auto;
    top: auto;
  }

  .contacts-decor img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .socials-right picture img {
    transform: translateX(0px);
  }

  main.game-start {
    max-width: 100%;
    width: calc(100% - 20px); /* 10px слева + 10px справа */
    margin: 20px auto;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 12px;
  }

  main.game-start h1 {
    font-size: 1.6em;
    margin-bottom: 18px;
  }

  main.game-start h2 {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .quiz-container {
    max-width: 720px;
    margin: 10px;
    padding: 10px;
  }

  .question-container.grid-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .question-image-block {
    order: 2; /* явно ниже вопроса */
    margin: 0 auto;
  }

  .buttons {
    order: 3;
  }

  /* горизонтальные — одна рамка/размер */
  .question-image-block--landscape {
    width: 280px;
    height: auto;
  }

  /* вертикальные — другая рамка/размер */
  .question-image-block--portrait {
    width: 200px;
    height: auto;
  }

  .question-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, #feebc6, #d4b1bb);
    border-radius: 12px;
    padding: 16px;
    margin: 30px auto 16px auto;
    box-sizing: border-box;
    overflow: visible;
  }

  .question-header .question-book {
    position: absolute;
    top: -40px;
    width: 55px;
    flex-shrink: 0;
    margin: 0;
    z-index: 2;
  }

  .question-header .question-text {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: clamp(22px, 4.2vw, 28px);
  }

  .answer-option {
    height: auto;
    min-height: 60px;
    padding: 6px 7px;
    line-height: 1.4;
    font-size: clamp(22px, 3.6vw, 25px);
  }
}

/* ========== MOBILE 575px ========== */

@media (max-width: 575.98px) {
  /* БЕЗ отступов */
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ---------- OUR GAMES ---------- */
  .game-meta {
    gap: 8px;
  }

  .meta-icon img {
    width: 28px;
    height: 28px;
  }

  .game-desc {
    font-size: 0.9em;
    line-height: 1.4;
  }

  /* ---------- SOCIALS ---------- */
  .socials-left h2 {
    font-size: 18px;
  }

  .socials-text {
    font-size: 13px;
  }

  /* ---------- FOOTER ---------- */
  .footer-bottom {
    flex-direction: column;
    padding: 8px 15px;
  }

  /* Шапка */
  .site-header {
    width: 100%;
    margin: 8px auto;
    padding: 0;
    height: 44px;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
  }
  .site-header::before {
    top: 0;
    height: 44px;
    left: 0;
    right: 0;
    border-radius: 8px;
    overflow: visible;
  }

  /* Header inner: лого слева, иконки справа */
  .header-inner {
    background: #042ea5 !important; /* всегда синий фон */
    color: #ffffff !important; /* текст по умолчанию белый */
    position: relative !important;
    z-index: 5 !important; /* поверх фона */
    height: 44px !important;
    padding: 0 0 0 0 !important;
    display: grid !important; /* ← заменили flex на grid */
    grid-template-columns: auto 1fr auto !important; /* ← три колонки как на десктопе */
    align-items: center !important; /* выравнивание по центру */
    column-gap: 10px !important; /* промежуток между колонками */
    grid-template-areas: "logo . icons" !important;
    overflow: visible !important;
  }

  body.home .header-inner {
    background: #042ea5 !important;
  }

  .header-inner a,
  .header-inner nav a {
    color: #ffffff !important;
  }

  body.home .site-header .header-inner .logo svg {
    color: #ffffff !important;
    max-height: 30px !important;
    height: 100px !important;
    vertical-align: middle !important;
  }

  /* Лого СЛЕВА */
  .logo {
    order: 1 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    grid-area: logo !important;
    margin-left: 0 !important;
    padding-left: 4px !important;
    justify-self: start !important;
  }

  .logo svg {
    height: 30px !important;
    width: 100px !important;
    display: block !important;
  }

  /* --- ИКОНКИ справа --- */
  .header-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 10 !important;
    flex-wrap: nowrap !important; /* ✅ добавлено */
    grid-area: icons !important;
    justify-self: end !important; /* прижимает к правому краю grid */
    margin-right: 0 !important; /* убирает лишний отступ */
    padding-right: 0 !important; /* на всякий случай */
  }

  .header-icons > * {
    flex-shrink: 0 !important;
  }

  /* --- ИКОНКА ПОИСКА --- */
  .header-icons .search-container svg {
    width: 28x !important;
    height: 28px !important;
    display: block !important;
  }

  .search-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    overflow: visible; /* 👈 добавлено — чтобы SVG не обрезался */
  }

  /* --- ИКОНКА МЕНЮ (SVG внутри .menu-toggle) --- */
  .menu-toggle svg {
    width: 28px; /* 👈 уменьшаем чуть, чтобы влезало */
    height: 28px;
    display: block;
    fill: none;
    box-sizing: content-box;
    overflow: visible; /* 👈 гарантирует, что линии не обрезаются */
  }

  .main-nav .menu.active li a {
    color: #042ea5 !important;
  }
  .main-nav .menu.active li a:hover {
    color: #0a46ff !important;
  }

  /* но меню выше всех */
  .main-nav {
    height: auto;
    position: relative;
    z-index: 999999;
  }

  /* Контейнер меню (UL.menu из wp_nav_menu) */
  .main-nav .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* 👈 занимает всю ширину экрана */
    height: 100vh; /* 👈 и всю высоту */
    background: #fff;
    transform: translateX(100%); /* ← скрыто за правым краем */
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 1.5rem 2rem; /* место сверху под крестик */
    gap: 4px;
    overflow-y: auto;
    box-shadow: none; /* уберём тень, если не нужна */
  }

  /* Активное меню */
  .main-nav .menu.active,
  body.menu-open .main-nav .menu {
    transform: translateX(0%); /* ← возвращаем на экран */
    opacity: 1;
    visibility: visible;
  }

  .main-nav .menu-wrapper {
    position: relative; /* Контейнер для позиционирования крестика */
    width: 100%;
    height: 100%;
  }

  /* Показать крестик только когда меню активно */
  .main-nav .menu.active ~ .menu-close {
    display: block;
  }

  /* Кнопка закрытия меню */
  .menu-close {
    position: fixed;
    top: 10px;
    right: 17px;
    background: none;
    border: none;
    color: #212121;
    font-size: 35px;
    cursor: pointer;

    opacity: 0;
    transform: translateX(-20px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    z-index: 10000;
  }

  body.menu-open .menu-close {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }

  /* Когда меню активно — показываем крестик плавно */
  .main-nav .menu.active + .menu-close {
    opacity: 1;
    transform: translateX(0);
  }

  /* затемнённый фон под меню */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999; /* 👈 ниже меню, но выше остального */
  }

  /* блокировка прокрутки */
  body.menu-open {
    overflow: hidden;
  }

  /* пункты меню */
  .main-nav .menu li {
    list-style: none;
    width: 100%;
  }

  .main-nav .menu li a {
    display: block;
    width: 100%;
    color: #042ea5;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    padding: 12px 0;
  }

  /* СКОСЫ — показываем */
  .header-edge {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    height: 44px !important;
    width: 21px;
    z-index: 1;
  }

  body.home .header-edge svg path {
    fill: #042ea5 !important;
  }

  body.home .search-icon svg {
    color: #ffffff;
  }

  .header-edge.left {
    left: 4px !important;
    fill: #042ea5;
  }

  .header-edge.right {
    right: 4px !important;
    fill: #042ea5;
  }

  .header-edge svg {
    display: block !important;
    height: 44px !important;
    width: 21px !important;
  }

  .container {
    width: 100%;
    max-width: 100%; /* чтобы не выходил за экран */
    padding: 16px;
    box-sizing: border-box;
    min-height: 300px;
  }

  .games-title {
    font-size: 1.5em;
    white-space: nowrap;
  }

  .our-games .all-games-btn {
    font-size: 0; /* скрывает текст */
    width: 46px;
    height: 46px;
    padding: 0 22px; /* только по бокам */
    line-height: 46px; /* выравнивает текст по центру */
    border-radius: 14px;
    background: #042ea5;
    display: flex;
    align-items: center;
  }

  /* добавляем стрелку */
  .our-games .all-games-btn::after {
    content: "→";
    font-size: 22px;
    color: #fff;
    font-weight: 700;
  }

  .banner-bg {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .banner-slide {
    --banner-mobile-h: 180px;
  }

  .banners-carousel,
  .banners-carousel .swiper-wrapper,
  .banners-carousel .swiper-slide,
  .banner-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 20px !important;
  }

  /* Центруем стрелки по высоте баннера */
  .banners-carousel .swiper-button-prev,
  .banners-carousel .swiper-button-next {
    top: 32% !important; /* было 50% */
    transform: translateY(-50%);
  }

  /* Можно чутка уменьшить стрелки на мобилке */
  .banners-carousel .swiper-button-prev,
  .banners-carousel .swiper-button-next {
    width: 32px;
    height: 32px;
    --swiper-navigation-size: 24px;
  }

  .banner-content {
    position: static; /* убираем наложение поверх */
    display: block; /* снимаем flex, чтобы не тянуть высоту слайда */
    height: auto;
    min-height: 0;
    padding: 24px 16px 24px;
    color: #212121; /* текст под белым фоном страницы */
    text-shadow: none;
    text-align: left;
    padding-bottom: 20px !important;
    padding-bottom: 60px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    align-items: center;
  }

  .banner-title {
    font-size: 1.1em;
    line-height: 1.2;
    white-space: normal !important;

    /* запрет разрыва внутри слова */
    overflow-wrap: normal; /* было anywhere */
    word-break: normal; /* не дробить слово */
    hyphens: none; /* без переносов по слогам */

    width: auto;
    max-width: 100%;
    margin: 10px 0 8px;
    display: block;
  }

  .banner-description,
  .banner-description p {
    white-space: normal !important; /* разрешаем переносы */
    overflow-wrap: normal; /* переносим даже при длинных токенах */
    word-break: normal; /* fallback */
    hyphens: auto;
    font-size: 0.8em;
    width: auto;
    max-width: 100%;
    margin: 8px 0;
    display: block;
  }

  .banner-btn {
    box-sizing: border-box;
    width: 100%; /* заполняем контейнер */
    max-width: 290px; /* ограничение по ширине при широком экране */
    margin: 16px auto 0; /* центр по горизонтали */
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #042ea5;
    color: #fff;
    border: 2px solid #042ea5;
    text-decoration: none;
    text-shadow: none;
    font-size: 0.95em;
  }

  .banner-btn:hover,
  .banner-btn:focus {
    background: #0098ed;
    border-color: #0098ed;
    color: #fff;
  }

  /* МОБИЛЬНЫЙ ПАТТЕРН-ПЕРЕХОД */
  .pattern-transition-mobile {
    display: block;
    background: #fff;
    margin-top: 0;
  }

  .pattern-container-mobile {
    width: 100vw;
    height: clamp(30px, 12vw, 60px);
    overflow: hidden;
    position: relative;
  }

  .pattern-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .our-games {
    padding: 20px 0;
  }

  /* ПАТТЕРН-ПЕРЕХОД */
  .pattern-transition {
    background: #fff;
    margin-top: 10px; /* фиксированный отступ сверху */
  }

  .pattern-container {
    width: 100vw; /* ширина = ширине экрана */
    height: clamp(30px, 15vw, 58px);
    overflow: hidden; /* обрезает лишнее по бокам */
    position: relative; /* для контейнера */
  }

  .pattern-image,
  .pattern-svg {
    display: block;
    width: auto; /* не растягиваем до 100% ширины сразу */
    min-width: 100vw; /* минимум = ширина экрана */
    height: 100%;
    object-fit: cover; /* обрезаем если выходит за контейнер */
    object-position: center center; /* центрируем содержимое */
  }

  /* 🔵 Блок "О нас" */
  .about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px 0;
    text-align: center;
  }

  /* 🔹 Исправление структуры блока "Наш подход" для мобильных */
  .approach-section {
    width: 100%; /* ⬅ теперь занимает всю ширину экрана */
    max-width: none; /* ⬅ не ограничиваем контейнер */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 0;
    padding: 0; /* убираем все внутренние отступы */
  }

  /* Контейнер выравниваем и ограничиваем */
  .about-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .approach-right {
    flex: 0;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  /* 🔹 3. Изображение */
  .approach-right img {
    display: block;
    margin: 0 auto;
    width: calc(100% - 20%); /* 100% минус левый+правый отступ */
    height: auto;
  }

  .about-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .about-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0; /* расстояние между блоками */
    width: 100%;
  }

  /* 🔹 1. Заголовок "Кто мы такие, издательство OneLab" */
  .about-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    margin-top: -24px; /* 🔥 поднимаем вверх */
    font-size: 0.75em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #5a5cae;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  /* 🔹 2. Основной заголовок с синим акцентом */
  .combo-top,
  .combo-bg p,
  .combo-claim p {
    font-family: "Wadik", sans-serif;
    font-size: 1.1em; /* ✅ единый размер шрифта */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: normal;
  }

  .combo-top {
    color: #000;
    text-align: center;
    margin-bottom: 0;
  }

  .combo-bg {
    display: inline-block;
    background: #1336b3;
    color: #fff;
    border-radius: 28px;
    padding: 6px 16px;
    white-space: normal;
  }

  .combo-claim {
    display: block;
    text-align: center;
    margin-top: 6px;
    color: #000;
    white-space: normal;
    overflow-wrap: anywhere; /* современный безопасный перенос */
    word-break: break-word; /* перенос длинных "слов" при необходимости */
    hyphens: auto;
  }

  .combo-claim p {
    display: block; /* ✅ теперь перенос разрешён */
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0 auto;
  }

  .approach-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* ✅ тоже было center */
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
  }

  .approach-left {
    max-width: 420px;
    text-align: center;
    margin: 0 auto;
  }

  /* 🔹 4. Текстовый блок "Мы подходим к созданию..." */
  .approach-left,
  .approach-title,
  .approach-text,
  .approach-btn {
    width: 100%;
    text-align: center;
    margin-left: auto;
    text-decoration: none;
  }

  .approach-title {
    width: 300px;
    font-size: 1.05em;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .approach-text {
    font-size: 0.95em;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 18px; /* 🔥 убран верхний, оставлен нижний */
    color: #2c2c2c;
    max-width: 360px; /* ✅ ограничиваем ширину текста */
  }

  /* 🔹 5. Кнопка
  .approach-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 290px;
    margin: 16px auto 0;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #042ea5;
    color: #fff;
    border: 2px solid #042ea5;
    text-decoration: none;
    text-shadow: none;
    font-size: 0.95em;
  }
  */

  /* SOCIALS SECTION - синий блок в футере */
  .socials-section {
    background-color: #042ea5;
    margin-top: 40px;
    padding-bottom: 120px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: visible;
    position: relative;
    line-height: 0;
  }

  /* SVG-волна сверху */
  .pattern-image-inverted {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleY(-1);
    position: relative;
    top: -2px;
    margin-top: -1px;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    vertical-align: bottom;
    line-height: 0;
  }

  /* Контейнер с контентом */
  .socials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 20px;
    gap: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Левая часть (текст) */
  .socials-left {
    order: 1;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  .socials-left h2 {
    font-family: "Wadik", sans-serif;
    font-size: 18px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
    white-space: normal;
    word-break: break-word;
  }

  .socials-text,
  .socials-sub {
    font-family: "Finlandica", sans-serif;
    font-size: 16px;
    width: 300px;
    line-height: 1.6;
    margin: 0 auto 10px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
  }

  .socials-sub strong {
    font-weight: 600;
  }

  /* Иконки соцсетей */
  .socials-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
  }

  .socials-icons img {
    width: 48px;
    height: 48px;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .socials-icons img:hover {
    opacity: 0.8;
  }

  /* Правая часть (иконка) */
  .socials-right {
    order: 2;
    display: flex;
    flex: 0 0 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    transform: none;
  }

  .socials-right img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
  }

  /* Большой логотип внизу */
  .socials-logo {
    position: absolute;
    bottom: -121px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
  }

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

  /* FOOTER BOTTOM - чёрно-белая плашка */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    padding: 12px 16px;
    box-sizing: border-box;
    border-top: 3px solid #fff;
    gap: 8px;
    text-align: center;
  }

  .footer-copy {
    font-family: "Finlandica", sans-serif;
    font-size: 12px;
    color: #000;
    margin: 0;
    line-height: 1.4;
  }

  /* Единый стиль для всех страниц */
  body:not(.home) .breadcrumbs-wrapper,
  body:not(.home) nav.woocommerce-breadcrumb {
    max-width: 100%;
    margin: 30px auto 10px;
    padding: 8px 8px;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    z-index: 2;
    display: block;
  }

  /* Текст */
  body:not(.home) nav.woocommerce-breadcrumb {
    font-size: 14px;
    line-height: 1.4;
    color: #757575;
    text-align: left;
    white-space: normal; /* разрешаем перенос строк */
  }

  /* чтобы не липло к верху */
  body:not(.home) .breadcrumbs-wrapper {
    padding-top: 1px;
    padding-bottom: 1px;
  }

  /* стрелочки-разделители */
  .woocommerce-breadcrumb a {
    font-size: 14px;
  }

  .woocommerce-breadcrumb span {
    margin: 0 4px;
  }

  .about-page__title {
    font-family: "Wadik", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #373737;
    margin: 0;
    margin-bottom: 20px;
    text-align: left;
  }

  /* === ABOUT PAGE STEPS === */
  .about-page__intro {
    max-width: 1296px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 2;
  }

  .about-page__intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
  }

  .about-page__intro .container {
    max-width: 1296px;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
  }

  .about-page__steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2; /* выше картинки */
  }

  .about-page__step {
    display: grid;
    grid-template-columns: 80px 1fr; /* уменьшаем колонку иконки с 161px до 80px */
    align-items: center;
    height: auto !important; /* убираем фиксированную высоту */
    min-height: 120px;
    padding: 16px 12px;
    border-radius: 16px;
    position: relative;
    overflow: visible; /* показываем иконку */
    column-gap: 12px;
  }

  .about-page__step::before {
    content: "";
    position: absolute;
    width: 100%; /* адаптируем под ширину блока */
    height: 100%;
    top: 0;
    left: 0;
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
  }

  /* Нумерация */
  .about-page__num {
    display: none; /* скрываем большие цифры 01, 02, 03, 04 */
  }

  /* Иконка-гексагон - УМЕНЬШАЕМ */
  .about-page__hex-icon {
    width: 59.02px;
    height: 52.96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: start;
    margin-top: -10px;
    margin-left: -12px;
    justify-content: center;
  }

  .about-page__hex-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Контент */
  .about-page__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    width: 100%;
  }

  .about-page__title-text {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #212121;
    font-weight: 700;
  }

  .about-page__desc-text {
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
    max-width: 100%;
    word-wrap: break-word;
    font-weight: 300;
  }

  .audience-section {
    padding: 1px 0;
  }

  /* Картинка команды */
  .about-page__decor {
    position: static !important; /* ДОБАВЬ !important */
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 16px 0 0 !important;
    display: block;
    padding: 0 16px 16px;
    box-sizing: border-box;
    order: 999;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .about-page__decor img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto; /* центрируем картинку */
    object-fit: contain;
  }

  .audience-title {
    font-size: 18px; /* уменьшаем до 18px */
    padding: 0 16px;
    margin-bottom: 30px;
    text-align: center;
  }

  /* Сетка карточек - в столбик */
  .audience-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }

  .audience-card {
    width: 100%;
    max-width: 328px;
    height: auto !important; /* убираем фиксированную высоту */
    min-height: 0 !important; /* убираем минимальную высоту */
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
  }

  /* Контент карточки */
  .audience-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    padding: 0 20px 20px;
  }

  .audience-card__icon {
    padding: 0 16px;
  }

  .audience-card__title {
    font-size: 18px;
  }

  /* Текст - убираем ограничение высоты */
  .audience-card__text {
    flex: 1 1 auto;
    height: auto;
    max-height: none !important;
    overflow: visible;
    margin-bottom: 16px;
  }

  /* Метрики внизу */
  .audience-card__metrics {
    margin-top: auto;
    width: 100%;
  }

  .contacts-title {
    font-family: "Wadik", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #373737;
    margin-bottom: 20px;
    text-align: left;
  }

  .contacts-decor {
    display: block;
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 32px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    left: auto;
    right: auto;
    top: auto;
  }

  .contacts-decor img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .socials-right picture img {
    transform: translateX(0px);
  }

  main.game-start {
    max-width: 100%;
    width: calc(100% - 20px); /* 10px слева + 10px справа */
    margin: 20px auto;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 12px;
  }

  main.game-start h1 {
    font-size: 1.6em;
    margin-bottom: 18px;
  }

  main.game-start h2 {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .quiz-container {
    max-width: 540px;
    margin: 10px;
    padding: 10px;
  }

  .question-image-block img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* горизонтальные — одна рамка/размер */
  .question-image-block--landscape {
    width: auto;
    height: 195px;
  }

  /* вертикальные — другая рамка/размер */
  .question-image-block--portrait {
    width: 230px;
    height: auto;
  }
}

.menu-close {
  display: none;
}
