/* ==================== ПЕРЕМЕННЫЕ ==================== */
:root {
  --color-primary: #fe284a;
  --color-primary-dark: #cd1835;
  --color-primary-darker: #b10824;
  --color-secondary: #24b260;
  --color-secondary-hover: #15d967;
  --color-bg-dark: #212132;
  --color-bg-darker: #161626;
  --color-bg-darkest: #090f1e;
  --color-text-main: #fff;
  --color-text-secondary: #7d8196;
  --color-text-tertiary: #646a87;
  --color-border: #303036;
  --color-border-light: #222330;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 3rem;
  --radius-sm: 10px;
  --radius-md: 20px;
  --transition: all 0.2s ease-in-out;
}

/* ==================== RESET & BASE ==================== */
html {
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

body {
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==================== HEADER ==================== */
.header {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background-color: rgba(37, 37, 54, 0.95);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 100%;
}

.header-wrapper .logo {
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: var(--transition);
}

.header-wrapper .logo:hover {
  text-shadow: 0 0 20px rgba(254, 40, 74, 0.5);
}

.action-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.action-buttons a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 5px;
}

.action-buttons a:not(.light-btn) {
  border-bottom: 2px solid transparent;
}

.action-buttons a:not(.light-btn):hover {
  border-bottom-color: var(--color-primary);
  opacity: 0.9;
}

.action-buttons a.light-btn {
  background-color: var(--color-primary-dark);
  padding: 10px 32px;
  border-radius: 25px;
  box-shadow: 0 3px 0 0 #871628, 0 4px 4px 0 rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.action-buttons a.light-btn:hover {
  background-color: var(--color-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #871628, 0 6px 6px 0 rgba(0, 0, 0, 0.4);
}

/* ==================== LANGUAGE SELECTOR ==================== */
.lang.toggle {
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.lang.toggle.active .lang-toggle-button svg {
  transform: rotate(0deg);
}

.lang.toggle.active .lang-popup {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.lang .lang-toggle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  transition: var(--transition);
}

.lang .lang-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang .lang-toggle-button img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.lang .lang-toggle-button span {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.lang .lang-toggle-button svg {
  width: 15px;
  height: 15px;
  fill: var(--color-text-main);
  transform: rotate(180deg);
  transition: var(--transition);
}

.lang-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  width: 200px;
  background-color: rgba(74, 83, 114, 0.98);
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lang-popup ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-popup ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-main);
  padding: 8px 12px;
  border-radius: 5px;
  transition: var(--transition);
}

.lang-popup ul li a:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.lang-popup ul li a img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

/* ==================== NAVIGATION ==================== */
.topbar {
  background: url("./images/topbar-bg.svg");
  background-color: var(--color-bg-dark);
  margin-top: 70px;
  box-shadow: inset 0 5px 25px 0 rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--color-border);
}

.topbar-wrapper ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  height: 70px;
}

.topbar-wrapper ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-right: 1px solid var(--color-border);
}

.topbar-wrapper ul li:last-child {
  border-right: none;
}

.topbar-wrapper ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-text-main);
  transition: var(--transition);
  font-size: 16px;
  font-weight: 600;
}

.topbar-wrapper ul li a:hover {
  background-color: rgba(37, 37, 54, 0.8);
  color: var(--color-primary);
}

.topbar-wrapper img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

/* ==================== MAIN CONTENT ==================== */
.main {
  overflow-x: hidden;
  position: relative;
  background: url("./images/bg.svg") repeat-y;
  background-size: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 70px;
}

.main h1,
.main h2,
.main h3,
.main h4,
.main h5,
.main h6 {
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.main h1 {
  font-size: 36px;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), #ff6b7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main h2 {
  font-size: 28px;
  margin-top: 30px;
  color: var(--color-text-main);
}

.main h3 {
  font-size: 24px;
}

.main h4 {
  font-size: 20px;
}

.main h5 {
  font-size: 18px;
}

.main h6 {
  font-size: 16px;
}

.main p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
  color: var(--color-text-main);
}

.main p a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: var(--transition);
}

.main p a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.main img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== LISTS ==================== */
.main ul,
.main ol {
  padding-left: 25px;
  margin-bottom: 25px;
  margin-left: 10px;
}

.main ul {
  list-style-type: disc;
}

.main ol {
  list-style-type: decimal;
}

.main ul li,
.main ol li {
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ==================== TABLES ==================== */
.main table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 25px;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main table tr {
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.main table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

.main table tr:hover {
  background-color: rgba(254, 40, 74, 0.1);
}

.main table tr td,
.main table tr th {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 15px;
  text-align: left;
}

.main table tr th {
  font-weight: bold;
  font-size: 16px;
  background-color: var(--color-bg-darker);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.benefits-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 25px;
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: var(--transition);
}

.benefit-item:last-child {
  border-right: none;
}

.benefit-item:hover {
  background-color: rgba(254, 40, 74, 0.05);
}

.benefit-item img {
  height: 45px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(254, 40, 74, 0.3));
}

.benefit-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.benefit-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==================== CUSTOM COMPONENTS ==================== */

/* Mirror Component */
.mirror {
  background-color: var(--color-bg-darkest);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 300px;
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.mirror:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(254, 40, 74, 0.2);
}

.mirror__text {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.mirror__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-main);
  text-decoration: none;
  background-color: var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: 12px 32px;
  width: 200px;
  margin: 0 auto;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
}

.mirror__btn:hover {
  background-color: var(--color-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(205, 24, 53, 0.4);
}

/* Bonus Component */
.bonus {
  background: linear-gradient(135deg, #3a3f4e, #2a2f3e);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.bonus:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(36, 178, 96, 0.15);
}

.bonus p {
  margin: 0;
}

.bonus__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

.bonus__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-main);
}

.bonus__description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.bonus__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  background-color: var(--color-secondary);
  box-shadow: 0 5px 20px rgba(36, 178, 96, 0.4);
  color: var(--color-text-main);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
}

.bonus__btn:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 178, 96, 0.5);
}

.bonus__img {
  flex: 0 0 25%;
}

.bonus__img img {
  width: 100%;
  height: auto;
}

/* Rate Component */
.rate {
  background-color: var(--color-bg-darkest);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.rate h2 {
  text-align: center;
  margin-bottom: 0;
  color: var(--color-primary);
}

.rate__blocks {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rate__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rate__block h5 {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--color-text-main);
}

.rate__line {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  height: 24px;
  overflow: hidden;
}

.rate__line span {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  display: flex;
  justify-content: flex-end;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  height: 100%;
  align-items: center;
  color: var(--color-text-main);
  transition: var(--transition);
}

/* ==================== FAQ SECTION ==================== */
.casino-faq {
  margin: 40px 0;
}

.faq-item {
  background-color: var(--color-bg-darker);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  transition: var(--transition);
}

.faq-item:hover {
  background-color: rgba(254, 40, 74, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-item h4 {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--color-bg-dark);
  padding-top: 40px;
}

footer h5 {
  color: var(--color-text-tertiary);
  margin: 0 0 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 16px;
  padding-bottom: 12px;
  letter-spacing: 1px;
}

.payments-items,
.partners-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.payments-items img,
.partners-items img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: opacity(0.8);
  transition: var(--transition);
}

.payments-items img:hover,
.partners-items img:hover {
  filter: opacity(1) drop-shadow(0 0 10px rgba(254, 40, 74, 0.3));
  transform: scale(1.05);
}

.copyright {
  border-top: 1px solid var(--color-border);
  background: #171720;
  padding: 40px 0;
  margin-top: 40px;
}

.copyright-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.copyright-wrapper > div {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.copyright img {
  width: 40px;
  height: auto;
}

.copyright span {
  color: var(--color-text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.update-info {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.update-label {
  font-weight: 600;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .bonus {
    flex-direction: column;
  }

  .bonus__img {
    flex: 0 0 100%;
    max-width: 250px;
  }

  .benefits-wrapper {
    flex-direction: column;
  }

  .benefit-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    flex: none;
  }

  .benefit-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
  }

  .header-wrapper .logo {
    font-size: 28px;
    margin: 10px 0;
  }

  .action-buttons {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .action-buttons a {
    font-size: 12px;
    padding: 8px 16px;
  }

  .action-buttons a.light-btn {
    padding: 8px 20px;
  }

  .topbar {
    margin-top: 100px !important;
  }

  .topbar-wrapper ul {
    flex-wrap: wrap;
  }

  .topbar-wrapper ul li {
    flex: 0 0 50%;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .topbar-wrapper ul li:nth-child(odd):nth-last-child(2),
  .topbar-wrapper ul li:nth-child(odd):nth-last-child(2) ~ li {
    border-right: none;
  }

  .topbar-wrapper ul li a span {
    font-size: 13px;
  }

  .main h1 {
    font-size: 28px;
  }

  .main h2 {
    font-size: 24px;
  }

  .main table {
    font-size: 14px;
  }

  .main table tr td,
  .main table tr th {
    padding: 10px;
  }

  .copyright-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .copyright-wrapper > div {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .copyright img {
    margin: 0;
  }

  .lang-popup {
    width: 100%;
    left: auto;
    right: 0;
  }

  .bonus {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .mirror {
    padding: var(--spacing-md);
    min-height: auto;
  }

  .rate {
    padding: var(--spacing-md);
  }
}

@media (max-width: 500px) {
  .header {
    position: relative;
  }

  .topbar {
    margin-top: 0 !important;
  }

  .main {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .main h1 {
    font-size: 24px;
  }

  .main p {
    font-size: 15px;
  }

  .benefits-wrapper {
    padding: 0;
  }

  .benefit-item {
    padding: 20px 15px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .action-buttons a {
    width: 100%;
  }

  .copyright span {
    font-size: 12px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.img-responsive {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary-dark);
  color: var(--color-text-main);
}

.btn-primary:hover {
  background-color: var(--color-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(205, 24, 53, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(36, 178, 96, 0.4);
}
