:root {
  --color-primary: #5271ff;
  --color-primary-dark: #4259d0;
  --color-secondary: #ff6b6b;
  --color-secondary-dark: #e05858;
  --color-accent: #ffd166;
  --color-text: #2d3748;
  --color-text-light: #fff;
  --color-muted: #718096;
  --color-background: #fff;
  --color-background-light: #f7fafc;
  --color-border: #e2e8f0;
  --color-success: #48bb78;
  --color-warning: #f6ad55;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background-light);
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
  text-align: center;
  margin: 30px 0;
  color: var(--color-primary);
}

h2 {
  font-size: 26px;
  margin-top: 40px;
  color: var(--color-primary-dark);
}

h3 {
  font-size: 22px;
  margin-top: 30px;
  color: var(--color-primary-dark);
}

p {
  margin-bottom: 18px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

strong, b {
  font-weight: 700;
}

ul, ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.page {
  background: var(--color-background);
  border-radius: var(--border-radius);
  margin: 20px 0;
  padding: 25px;
  box-shadow: var(--box-shadow);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  min-width: 150px;
  display: flex;
  align-items: center;
}

.header__logo-image {
  width: auto;
  height: 50px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav__item {
  margin-left: 20px;
  margin-bottom: 0;
}

.nav__link {
  color: var(--color-text-light);
  padding: 8px 15px;
  transition: var(--transition);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  position: relative;
}

.nav__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-text-light);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 70%;
}

/* Mobile Menu */
.burger-menu {
  display: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 20px;
}

.burger-menu__line,
.burger-menu__line::before,
.burger-menu__line::after {
  width: 100%;
  height: 3px;
  background-color: var(--color-text-light);
  position: absolute;
  transition: var(--transition);
}

.burger-menu__line {
  top: 50%;
  transform: translateY(-50%);
}

.burger-menu__line::before {
  content: '';
  top: -8px;
}

.burger-menu__line::after {
  content: '';
  bottom: -8px;
}

@media screen and (max-width: 1024px) {
  .burger-menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 60px 0 20px;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 10;
  }

  .nav.active {
    right: 0;
  }

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

  .nav__item {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 12px;
    width: 100%;
  }

  .social {
    margin: 20px auto;
  }

  .header.active .burger-menu__line {
    background-color: transparent;
  }

  .header.active .burger-menu__line::before {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .header.active .burger-menu__line::after {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .rating__header-cell,
  .rating__cell {
    font-size: 14px;
  }

  .rating__software {
    font-size: 12px;
  }
}

/* Filter Form */
.filter-section {
  margin: 30px 0;
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.filter-summary {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.filter-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 15px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235271ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: var(--transition);
}

.filter-form select:hover {
  border-color: var(--color-primary);
}

.filter-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.2);
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Rating Table */
.rating {
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.rating__header {
  display: flex;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.rating__header-cell {
  flex: 1;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rating__header-cell:last-child {
  border-right: none;
}

.rating__row {
  display: flex;
  align-items: center;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 10px;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.rating__row.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.rating__row:hover {
  background-color: rgba(82, 113, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.rating__row:last-child {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border-bottom: none;
}

.rating__position {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-secondary);
}

.rating__cell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: center;
}

.rating__logo-link {
  display: block;
  transition: var(--transition);
  padding: 5px;
  border-radius: var(--border-radius-sm);
}

.rating__logo-link:hover {
  transform: scale(1.05);
}

.rating__logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  transition: var(--transition);
}

.rating__min-deposit {
  font-weight: 600;
  background: rgba(82, 113, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--color-primary-dark);
}

.rating__bonus {
  color: var(--color-text);
  padding: 8px 12px;
  line-height: 1.4;
  font-size: 15px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.rating__software {
  font-size: 14px;
  line-height: 1.4;
  max-width: 200px;
  color: var(--color-muted);
}

.rating__score {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 209, 102, 0.15);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
}

.rating__score-icon {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.rating__score-value {
  font-size: 22px;
  color: var(--color-accent);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.rating__action {
  display: flex;
  justify-content: center;
}

.rating__button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rating__button:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: var(--color-text-light);
}

.rating__badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0 0 var(--border-radius-sm) 0;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  animation: float 3s ease-in-out infinite;
}

/* FAQ Section */
.faq {
  margin: 40px 0;
}

.faq__title {
  margin-bottom: 25px;
  text-align: center;
}

.faq__list {
  list-style: none;
  margin-left: 0;
}

.faq__item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.faq__item:hover {
  box-shadow: var(--box-shadow-hover);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--color-background);
  border-left: 4px solid var(--color-primary);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.faq__question.active {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.faq__question-text {
  flex: 1;
}

.faq__icon {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.faq__question.active .faq__icon {
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
}

.faq__answer {
  display: none;
  padding: 20px;
  background-color: var(--color-background);
  border-top: none;
  border-left: 4px solid var(--color-primary);
}

.faq__answer.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 40px 0;
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo {
  margin-bottom: 25px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.footer__nav-link {
  color: var(--color-text-light);
  transition: var(--transition);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
}

.footer__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--color-text-light);
}

/* Social Share */
.social {
  margin-left: auto;
}

.social__title {
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
}

.social__list {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 10px;
}

.social__item {
  margin: 0;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.social__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Social Icons */
.social__icon {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}

.social__link--vk {
  background-color: #07f;
}

.social__icon--vk {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.878 17.304c-5.411 0-8.695-3.755-8.823-9.994h2.74c.086 4.583 2.171 6.528 3.77 6.925V7.31h2.627v3.954c1.542-.17 3.155-1.97 3.698-3.954h2.584c-.414 2.441-2.17 4.24-3.412 4.983 1.242.6 3.24 2.17 4.011 5.01h-2.84c-.6-1.898-2.07-3.369-4.04-3.569v3.57h-.315Z' fill='%23fff'/%3E%3C/svg%3E");
}

.social__link--ok {
  background-color: #f70;
}

.social__icon--ok {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.83 10.77a3.951 3.951 0 0 1-5.604 0 3.951 3.951 0 0 1 0-5.604 3.95 3.95 0 0 1 5.604 0 3.951 3.951 0 0 1 0 5.604Zm-2.802-4.615c-.494 0-.942.2-1.271.53a1.79 1.79 0 0 0 0 2.542 1.789 1.789 0 0 0 2.543 0 1.789 1.789 0 0 0 0-2.543 1.839 1.839 0 0 0-1.272-.53Zm4.168 5.792 1.166 1.59c.059.082.047.188-.036.247-.977.8-2.119 1.33-3.308 1.613l2.249 4.332c.059.13-.024.271-.165.271H13.7a.206.206 0 0 1-.176-.118l-1.496-3.579-1.507 3.567a.181.181 0 0 1-.176.118H7.943c-.141 0-.224-.153-.165-.27l2.249-4.321a8.262 8.262 0 0 1-3.308-1.613c-.071-.06-.095-.177-.036-.248l1.166-1.589c.07-.094.188-.106.27-.035 1.096.93 2.45 1.542 3.898 1.542s2.79-.6 3.897-1.542c.094-.07.223-.06.282.035Z' fill='%23FFF' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.social__link--mm {
  background-color: #168de2;
}

.social__icon--mm {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.889 9.667a1.333 1.333 0 100-2.667 1.333 1.333 0 000 2.667zm6.222 0a1.333 1.333 0 100-2.667 1.333 1.333 0 000 2.667zm4.77 6.108l-1.802-3.028a.879.879 0 00-1.188-.307.843.843 0 00-.313 1.166l.214.36a6.71 6.71 0 01-4.795 1.996 6.711 6.711 0 01-4.792-1.992l.217-.364a.844.844 0 00-.313-1.166.878.878 0 00-1.189.307l-1.8 3.028a.844.844 0 00.312 1.166.88.88 0 001.189-.307l.683-1.147a8.466 8.466 0 005.694 2.18 8.463 8.463 0 005.698-2.184l.685 1.151a.873.873 0 001.189.307.844.844 0 00.312-1.166z' fill='%23FFF' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.social__link--tw {
  background-color: #0f1419;
}

.social__icon--tw {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath d='M13.5222 10.7749L19.4785 4H18.0671L12.8952 9.88256L8.76437 4H4L10.2466 12.8955L4 20H5.41155L10.8732 13.7878L15.2356 20H20L13.5222 10.7749ZM11.5889 12.9738L10.956 12.0881L5.92015 5.03974H8.0882L12.1522 10.728L12.7851 11.6137L18.0677 19.0075H15.8997L11.5889 12.9738Z' fill='%23fff'/%3E %3C/svg%3E");
}

/* Body overflow */
body.menu-open {
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.6s ease-in-out;
}

/* Page fade in */
body.loaded .page {
  animation: fadeIn 0.8s ease-out;
}

/* Rating row animations */
.rating__row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rating__row.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.rating__row:hover .rating__logo {
  transform: scale(1.1);
}

.rating__row:hover .rating__score {
  transform: rotate(-5deg) scale(1.05);
  transition: transform 0.3s ease;
}

/* Button glow effect */
.btn:focus, .rating__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 0 1px var(--color-primary);
}

/* Floating element effect */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Filter form transitions */
.filter-form select {
  transition: all 0.3s ease;
}

.filter-form select:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments for animations */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rating__row.animate-in,
  .rating__row {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse, .rating__badge {
    animation: none;
  }
}

@media screen and (max-width: 1024px) {
  /* ... existing code ... */
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .filter-item {
    min-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .rating__header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rating__row {
    flex-wrap: wrap;
    padding: 15px 10px;
  }

  .rating__position {
    grid-column: 1;
  }

  .rating__cell {
    flex-basis: 33.333%;
  }

  .rating__header-cell:nth-child(4),
  .rating__header-cell:nth-child(5),
  .rating__cell:nth-child(4),
  .rating__cell:nth-child(5) {
    display: none;
  }

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

@media screen and (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .rating__header {
    grid-template-columns: 1fr 1fr;
  }

  .rating__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 10px;
  }

  .rating__position {
    grid-column: 1;
    grid-row: 1;
  }

  .rating__cell:nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .rating__header-cell:nth-child(6),
  .rating__cell:nth-child(6),
  .rating__header-cell:nth-child(7),
  .rating__cell:nth-child(7) {
    grid-column: span 1;
    grid-row: 3;
  }
}
