:root {
  --dark: rgba(40, 42, 54, 1);
  --dark-soft: rgba(40, 42, 54, 0.9);
  --gray-900: #222;
  --gray-800: #333;
  --gray-700: #444;
  --gray-600: #555;
  --gray-500: #666;
  --gray-400: #777;
  --gray-300: #999;
  --gray-200: #eee;
  --gray-100: #f8f8f8;
  --white: #ffffff;
  --accent: #4a90e2;
  --accent-soft: rgba(74, 144, 226, 0.1);
  --accent-medium: rgba(74, 144, 226, 0.3);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-bezier: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --container-padding: 24px;
  --border-color: rgba(255, 255, 255, 0.08);
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;
}

.simple-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
  direction: rtl;
  text-align: right;
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

.footer-section {
  position: relative;
  margin-bottom: var(--space-xl);
}

.footer-heading,
.simple-footer h2,
.footer-section h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md) !important;
  color: var(--white);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
  letter-spacing: 0.2px;
}

.footer-heading:after,
.simple-footer h2:after,
.footer-section h2:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  right: 0;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer-item {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: all var(--transition-bezier);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-item a {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  text-decoration: none;
  color: var(--white);
  font-weight: 400;
}

.footer-section .footer-item a {
  justify-content: flex-start;
}

.footer-icon {
  font-size: var(--icon-size-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.footer-text {
  font-size: var(--text-md);
  color: var(--white);
  font-weight: 400;
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  margin-top: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bezier);
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.social-icon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.social-icon:hover:before {
  transform: translateX(100%);
}

.social-icon:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-icon i {
  font-size: var(--icon-size-md);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.footer-copyright {
  text-align: center;
  font-size: var(--text-sm);
  opacity: 0.7;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: var(--space-lg);
}

#telegram-icon {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

#telegram-icon:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

@media (min-width: 768px) {
  .simple-footer {
    padding: var(--space-xl) var(--container-padding) var(--space-lg);
    margin-bottom: 0;
  }

  .footer-links {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
  }

  .footer-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .footer-heading,
  .simple-footer h2,
  .footer-section h2 {
    width: 100%;
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg) !important;
  }

  .footer-section .footer-item {
    width: calc(50% - var(--space-sm));
    margin-bottom: 0;
  }

  .footer-section {
    margin-bottom: var(--space-xl);
  }
}

.light-mode .simple-footer {
  background-color: var(--gray-100);
  color: var(--dark);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .footer-heading,
.light-mode .simple-footer h2,
.light-mode .footer-section h2 {
  color: var(--dark);
}

.light-mode .footer-item {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .footer-item:hover {
  background-color: var(--white);
}

.light-mode .footer-item a,
.light-mode .footer-text {
  color: var(--dark);
}

.light-mode .footer-icon {
  background: var(--gray-200);
}

.light-mode .social-icon {
  background-color: var(--white) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .social-icon i {
  color: var(--dark);
}

.light-mode .social-icon:hover {
  background-color: var(--white) !important;
}

.light-mode .footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--gray-500);
}

body.pojo-a11y-light-background .simple-footer,
body.a11y-light-bg .simple-footer,
.wpa-light .simple-footer,
.userway-accessibility-light-contrast .simple-footer,
body.light-background .simple-footer,
html.light-background .simple-footer,
.accessibility-light-contrast .simple-footer,
.accessibility-light-background .simple-footer,
.pojo-a11y-toolbar-light-background .simple-footer {
  background-color: var(--white) !important;
  color: var(--dark) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.pojo-a11y-light-background .footer-heading,
body.pojo-a11y-light-background .simple-footer h2,
body.pojo-a11y-light-background .footer-section h2,
body.a11y-light-bg .footer-heading,
body.a11y-light-bg .simple-footer h2,
body.a11y-light-bg .footer-section h2 {
  color: var(--dark) !important;
}

body.pojo-a11y-light-background .footer-heading:after,
body.pojo-a11y-light-background .simple-footer h2:after,
body.pojo-a11y-light-background .footer-section h2:after,
body.a11y-light-bg .footer-heading:after,
body.a11y-light-bg .simple-footer h2:after,
body.a11y-light-bg .footer-section h2:after {
  background: var(--accent) !important;
}

body.pojo-a11y-light-background .footer-item,
body.a11y-light-bg .footer-item {
  background-color: var(--gray-100) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.pojo-a11y-light-background .footer-item:hover,
body.a11y-light-bg .footer-item:hover {
  background-color: var(--gray-200) !important;
}

body.pojo-a11y-light-background .footer-item a,
body.pojo-a11y-light-background .footer-text,
body.a11y-light-bg .footer-text,
body.a11y-light-bg .footer-item a {
  color: var(--dark) !important;
}

body.pojo-a11y-light-background .social-icon,
body.a11y-light-bg .social-icon {
  background-color: var(--white) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.pojo-a11y-light-background .social-icon i,
body.a11y-light-bg .social-icon i {
  color: var(--dark) !important;
}

body.pojo-a11y-light-background .footer-copyright,
body.a11y-light-bg .footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: var(--gray-600) !important;
}
