/* === Reset и базовая типографика === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: #f9f9f9;
  color: #222;
  overflow-x: hidden;
  width: 100%;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 5px;
}

/* === Контейнер === */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* === Header === */
header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.logo img {
  height: 50px;
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  margin-left: 10px;
  z-index: 1001;
}

/* === Навигация и кнопки === */
.nav-buttons-wrapper {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  padding: 8px 0;
  transition: color 0.2s;
}

nav a:hover {
  color: #007f5f;
  text-decoration: none;
}

.buttons {
  display: flex;
  align-items: center;
}

.buttons button {
  margin-left: 10px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.buttons .register {
  padding: 8px 14px;
  background: #007f5f;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: none;
}

.buttons .register:hover {
  background: #005f47;
}

/* === Мобильное меню === */
@media (max-width: 1024px) {
  .nav-buttons-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-buttons-wrapper.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }

  nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    margin: 0;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .buttons button {
    margin: 5px 0;
    width: 100%;
    padding: 12px;
  }
}

/* === Основной контент === */
section {
  padding: 40px 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  section {
    padding: 30px 0;
  }
}

h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 20px;
  }
}

/* === Главная секция === */
.mainsec {
  background-image: url(images/fon.webp);
  background-repeat: repeat-x;
  background-position: top center;
  background-color: #f9f9f9;
  text-align: center;
  box-shadow: inset 0px -2px 5px rgba(0, 0, 0, 0.1);
  padding: 60px 0 40px;
}

.main-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.main-subtitle {
  font-size: 16px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .mainsec {
    padding: 40px 0 30px;
  }
  
  .main-title {
    font-size: 24px;
  }
  
  .main-subtitle {
    font-size: 14px;
  }
}

/* === Двух-колоночный макет === */
.promo-grid-two-col {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.promo-left {
  flex: 0 0 calc(70% - 20px);
  max-width: calc(70% - 20px);
}

.promo-right {
  flex: 0 0 calc(30% - 20px);
  max-width: calc(30% - 20px);
}

@media (max-width: 1024px) {
  .promo-grid-two-col {
    flex-direction: column;
    gap: 30px;
  }

  .promo-left,
  .promo-right {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* === Виджеты === */
.widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  color: #666;
  margin-bottom: 25px;
}

/* === Промо-карточки === */
.promo-table {
  display: flex;
  flex-direction: column;
  margin: 25px 0;
  width: 100%;
}

.promo-row {
  display: flex;
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #ddd;
  width: 100%;
}

/* Логотип */
.promo-logo-box {
  width: 110px;
  height: 75px;
  background: #222;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-logo-box img {
  max-width: 90px;
  max-height: 65px;
}

/* Центральная информация */
.promo-info-box {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.casino-name {
  font-weight: 700;
}

.promo-valid-date {
  font-size: 13px;
  color: #777;
}

.promo-description {
  font-weight: 500;
}

.promo-wager {
  font-size: 13px;
  color: #555;
  font-style: italic;
}

/* Промокод и кнопки */
.promo-action-box {
  flex: 0 0 254px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-code-input {
  width: 100%;
  padding: 10px 12px;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f3f3f3;
}

.promo-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.copy-btn {
  padding: 8px 10px;
  background: #e0e0e0;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}

.copy-btn:hover {
  background: #ccc;
}

.get-bonus-btn {
  padding: 8px 14px;
  background: #007f5f;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  display: inline-block;
  text-align: center;
  flex: 1;
}

.get-bonus-btn:hover {
  background: #005f47;
}

@media (max-width: 768px) {
  .promo-row {
 
    padding: 15px;
    gap: 15px;
  }
  
  .promo-action-box {
    width: 100%;
    flex: 0 0 100%;
  }
  
  .promo-buttons {
    flex-direction: column;
  }
  
  .promo-logo-box {
    margin: 0 auto;
  }
  
  .promo-info-box {
    text-align: center;
  }
}

/* === Секция бонусов === */
.tabulator {
  margin: 25px 0;
  width: 100%;
  overflow: hidden;
}

.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tab {
  background: #e2e3e5;
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.tab.active {
  background: #007f5f;
  border: 1px solid #ccc;
  border-bottom: none;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* === Якорные ссылки === */
[id] {
  scroll-margin-top: 100px;
}

/* === Карточки бонусов === */
.bonus-card {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 25% 18% auto 10%;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin-bottom: 2px;
}

.bonus-card::before {
  content: attr(data-rank);
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 1024px) {
  .bonus-card {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .bonus-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 15px;
  }
  
  .casino-info {
    flex-direction: column;
    justify-content: center;
  }
  
  .casino-logo {
    margin: 0 auto 10px;
  }
  
  .casino-text {
    text-align: center;
  }
  
  .bonus-description {
    margin-bottom: 15px;
  }
}

.casino-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.casino-logo {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  background: #ccc;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.casino-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.casino-text {
  display: flex;
  flex-direction: column;
}

.casino-name {
  font-weight: bold;
  color: #3b6fba;
  text-decoration: none;
  margin-bottom: 4px;
}

.casino-type {
  font-size: 13px;
  color: #666;
}

.bonus-label {
  background: #eef1f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  display: inline-block;
}

.wager {
  font-size: 13px;
  color: #888;
}

.bonus-description {
  font-size: 14px;
  color: #444;
}

.get-btn {
  background: #007f5f;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: bold;
}

.get-btn:hover {
  background: #005f47;
}

/* === Таблица рейтингов === */
.ttt {
  margin-bottom: 25px;
  width: 100%;
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  font-size: 12px;
  min-width: 800px; /* Обеспечивает горизонтальный скролл на мобильных */
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: #f0f0f0;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f9f9f9;
}

.rating-tag {
  background: #eef1f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* === Рейтинг слотов === */
.rating-slots {
  margin: 25px 0;
  width: 100%;
}

.rating-slots .casino-logo {
  background: #fff !important;
}

.rating-slots .casino-logo img {
  width: 100px;
  height: 70px;
}

@media (max-width: 768px) {
  .rating-slots .bonus-card {
    text-align: center;
  }
}

/* === FAQ === */
.faq-title {
  margin-bottom: 15px;
}

.faq-title:before {
  font-family: "fontello";
  font-size: 21px;
  content: "\e805";
  margin-right: 10px;
  color: #222;
}

.faq-accordion {
  margin-bottom: 25px;
  overflow: hidden;
}

.faq-accordion details {
  background: #fefefe;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1px;
  padding: 0;
}

.faq-accordion summary {
  cursor: pointer;
  padding: 14px 40px 14px 20px;
  font-weight: 600;
  position: relative;
  list-style: none;
}

.faq-accordion summary::after {
  content: "\e800";
  font-family: "fontello";
  font-size: 20px;
  font-weight: normal;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #969aa7;
  pointer-events: none;
}

.faq-accordion details[open] summary {
  background: #fdf7e3;
  border-bottom: 1px solid #eee;
}

.faq-accordion details[open] summary::after {
  content: "\e801";
}

.faq-accordion details > div {
  padding: 16px 20px;
  background: #fdf7e3;
  color: #333;
}

/* === Калькулятор === */
.casino-calc {
  font-family: 'Inter', sans-serif;
  background: #fff;
  max-width: 100%;
  margin: auto;
  border: 1px solid #007f5f;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 25px;
}

.casino-calc__head {
  padding: 14px;
  text-align: center;
  font-size: 21px;
  font-weight: bold;
}

.casino-calc__head:before {
  font-family: "fontello";
  font-size: 21px;
  content: "\f1ec";
  margin-right: 10px;
  color: #222;
}

.casino-calc__tabs {
  display: flex;
  background: #e9eef7;
}

.casino-calc__tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: normal;
  transition: background 0.2s;
  background: #f3f3f3;
  color: #ccc;
}

.casino-calc__tab:hover {
  background: #007f5f;
  color: #fff;
}

.casino-calc__tab.active {
  background: #007f5f;
  color: white;
}

.casino-calc__form {
  padding: 24px;
}

.casino-calc__field {
  margin-bottom: 10px;
}

.casino-calc__field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #222;
}

.casino-calc__wager-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.casino-calc__wager-select-wrap {
  flex: 1;
  position: relative;
  overflow: visible;
  z-index: 2;
  min-width: 150px;
}

.tooltip {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  font-weight: bold;
  cursor: help;
}

.tooltip.mini {
  font-size: 10px;
  width: 14px;
  height: 14px;
  line-height: 13px;
  border: 1px solid #007f5f;
  color: #007f5f;
  border-radius: 50%;
}

.tooltip.inside {
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 230px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  z-index: 9999 !important;
  max-width: 280px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.star {
  color: red;
  font-weight: bold;
}

.casino-calc__field input,
.casino-calc__field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background: #f3f3f3;
}

.casino-calc__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.casino-calc__button {
  width: 100%;
  padding: 8px 14px;
  background: #007f5f;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: none;
  margin-top: 14px;
}

.casino-calc__button:hover {
  background: #005f47;
}

.casino-calc__results {
  padding: 20px;
}

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

.casino-calc__results td {
  border: 1px solid #ddd;
  position: relative;
  background: #f3f3f3;
  padding: 10px;
}

.casino-calc__results td:nth-child(2) {
  background-color: #007f5f;
  color: #fff;
  font-weight: 600;
}

.casino-calc__results td:first-child {
  font-weight: 500;
}

@media (max-width: 768px) {
  input#wager-multiplier {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .casino-calc__wager-group {
    flex-direction: column;
  }
}

/* === Тест на лудоманию === */
.gambling-test-stepwise {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 100%;
  margin: 0 auto 25px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  font-size: 14px;
  text-align: center;
}

.gambling-test-stepwise h2 {
  margin-bottom: 10px;
}

.gambling-test-stepwise .question-step {
  margin: 10px 0;
}

.gambling-test-stepwise button {
  background: #007f5f;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 3px 0;
}

.gambling-test-stepwise button:hover {
  background: #005f47;
}

#result-block {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f0f0f0;
}

.question-step p {
  font-style: italic;
}

/* === Тест на подбор слота === */
.slot-finder-test {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  text-align: center;
}

.slot-question {
  margin: 30px 0;
}

.slot-question h3 {
  margin-bottom: 10px;
}

.slot-option {
  display: block;
  background: #f3f3f3;
  padding: 10px 16px;
  margin: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.slot-option:hover {
  background: #007f5f;
  color: #fff;
}

.slot-finder-test h3 {
  margin-top: 15px;
  color: #c0c0c0;
}

.slot-slotcard {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  flex-wrap: wrap;
}

.slot-slotcard img {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  display: block;
    margin: 0 auto;
}

.slot-slotinfo {
  flex: 1;
  min-width: 200px;
}

.slot-slotinfo h4 {
  margin-bottom: 6px;
  font-size: 18px;
}

.slot-slotinfo p {
  font-size: 12px;
  color: #444;
  margin-bottom: 12px;
}

.slot-slotinfo .meta {
  font-size: 10px;
  color: #777;
  margin-bottom: 8px;
}

.slot-restart {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ccc;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .slot-slotcard {
    flex-direction: column;
    text-align: center;
  }
  
  .slot-slotcard img {
    margin: 0 auto;
  }
}

/* === Быстрый подбор казино === */
.quickstart-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  text-align: center;
}

.quickstart-btn {
  background: #007f5f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
}

.quickstart-btn.disabled {
  background: #ccc;
  cursor: pointer;
}

.quickstart-result {
  margin-top: 20px;
}

.quick-casino-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
  flex-wrap: wrap;
}

.quick-logo-box {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.quick-logo-box img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: #222;
  padding: 4px;
}

.q-year {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 11px;
  color: #777;
  width: 100%;
  text-align: center;
}

.quick-casino-info {
  flex: 1;
  min-width: 200px;
}

.quick-casino-info h4 {
  margin-bottom: 2px;
  font-size: 18px;
}

.q-license {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.q-rating {
  color: #fbc02d;
  font-size: 14px;
  margin-bottom: 8px;
}

.q-code-wrap {
  position: relative;
  margin-bottom: 6px;
}

.q-code {
  width: 100%;
  padding: 8px 36px 8px 12px;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f3f3f3;
}

.copy-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #555;
  cursor: pointer;
}

.q-code-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.green-btn {
  background: #007f5f;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.green-btn:hover {
  background: #005f47;
}

@media (max-width: 768px) {
  .quick-casino-card {
    flex-direction: column;
    text-align: center;
  }
  
  .quick-logo-box {
    margin: 0 auto 20px;
  }


}

/* === Пагинация === */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.pagination-controls button {
  padding: 6px 12px;
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  margin: 0 1px;
}

.pagination-controls button.active {
  background: #007f5f;
  color: white;
}

.pagination-controls button:disabled {
  background: #eef1f5;
  cursor: not-allowed;
  color: #999;
}

.promo-row.hidden,
.bonus-card.hidden {
  display: none !important;
}

/* === Footer === */
footer {
  background: #f1f1f1;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
  width: 100%;
}

footer .logo {
  margin-bottom: 25px;
  justify-content: center;
}

.footer-warning {
  margin-top: 20px;
  font-weight: bold;
  color: #333;
}

/* === Мобильный меню кнопка === */
.mobile-menu-button {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.mobile-menu-button span,
.mobile-menu-button span:before,
.mobile-menu-button span:after {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-button span {
  top: 10px;
}

.mobile-menu-button span:before {
  content: '';
  top: -10px;
}

.mobile-menu-button span:after {
  content: '';
  top: 10px;
}

.mobile-menu-button.active span {
  background: transparent;
}

.mobile-menu-button.active span:before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-button.active span:after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 1024px) {
  .mobile-menu-button {
    display: flex;
  }
}

/* === Затемнение для мобильного меню === */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* === Table Scroll === */
.ttt {
  position: relative;
  margin-bottom: 25px;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)),
              linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) 100% 0;
  background-size: 50px 100%, 50px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local;
}





/* === Мобильное меню === */
.mobile-menu-button {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.mobile-menu-button span,
.mobile-menu-button span:before,
.mobile-menu-button span:after {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-button span {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-button span:before {
  content: '';
  top: -8px;
}

.mobile-menu-button span:after {
  content: '';
  bottom: -8px;
}

.mobile-menu-button.active span {
  background: transparent;
}



.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-only-nav {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-buttons-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-buttons-wrapper.active {
    right: 0;
  }

  nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }

  .main-nav a,
  .mobile-only-nav a {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    margin: 0;
    color: #444;
  }

  .mobile-only-nav {
    display: block;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .buttons button {
    margin: 5px 0;
    width: 100%;
    padding: 12px;
  }
}