@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================================
   MODERN 2026 DESIGN
   ============================================ */

:root {
  /* Color palette */
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --secondary: #8b5cf6;
  --secondary-light: #ede9fe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Neutral colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  
  /* Font sizes (modern scale) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.05);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  padding-top: 0;
  padding-bottom: var(--space-6);
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e7f7 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

body > .navbar > .container,
body > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

body > .container {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  min-height: 600px;
  margin: var(--space-6) auto;
  border: 1px solid var(--border);
}

footer {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  max-width: 1200px;
  display: block;
  margin: var(--space-12) auto 0;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) 0;
}

.navbar.navbar-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.navbar-top.navbar-dark .navbar-nav .nav-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  transition: color var(--transition-fast);
}

.navbar-top.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar.navbar-bottom {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-bottom.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================
   TABLES
   ============================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.table td,
.table th {
  border-top: 0 !important;
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bg-secondary) !important;
}

.table tbody tr:hover {
  background-color: var(--bg-tertiary);
  transition: background-color var(--transition-fast);
}

/* ============================================
   GRID COMPONENTS
   ============================================ */

.main-grid .grid-item {
  text-align: center;
}

.main-grid .grid-item .grid-body {
  padding: var(--space-6);
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  display: block;
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main-grid .grid-item .grid-body:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-light) 100%);
}

.main-grid .grid-item .grid-body .thumb {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.main-grid .grid-item .grid-body .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.main-grid .grid-item .grid-body .category {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-grid .grid-item .grid-body .description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  height: auto;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* ============================================
   OTHER SITES
   ============================================ */

.other-sites a {
  padding: var(--space-4);
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.other-sites a:hover {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.other-sites .thumb {
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.other-sites .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.other-sites .description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.other-sites .download-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-2xl);
  color: #fff;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.other-sites .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   REVIEW CARD
   ============================================ */

.review-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.review-content {
  flex: 1;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

.review-author {
  font-size: var(--text-base);
  margin: 0 0 var(--space-1) 0;
  font-weight: 600;
  color: var(--text-primary);
}

.review-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================================
   SITE INFO
   ============================================ */

.site-info {
  font-size: var(--text-sm);
}

.site-info td > b {
  color: var(--text-tertiary);
  white-space: nowrap;
  font-weight: 600;
}

.site-info td > b > i {
  width: 20px;
  text-align: center;
  display: inline-block;
}

.site-info td a {
  color: var(--text-primary);
  font-weight: 500;
}

.svg-icon {
  margin-right: 0;
  position: relative;
  display: inline-block;
}

.site-info td a .svg-icon {
  height: 16px;
  width: 16px;
  top: 4px;
}

.category-games-icon.svg-icon {
  height: 32px;
  width: 32px;
  top: 5px;
}

.dropdown-item .category-games-icon.svg-icon {
  height: 16px;
  width: 16px;
  top: 3px;
}

.svg-icon svg {
  bottom: 0;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.site-info .official-site {
  word-break: break-word;
  hyphens: auto;
}

.site-info .grade {
  display: inline-block;
  border: 1px solid var(--text-primary);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.site-info td .play-link a {
  color: #fff;
}

.site-stat {
  font-size: var(--text-xl);
  font-weight: 700;
}

.site-stat .stars {
  color: var(--warning);
}

.site-stat .grade {
  display: inline-block;
  border: 1px solid var(--text-primary);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  top: -1px;
  border-radius: var(--radius-sm);
}

.site-stat .visually-hidden {
  color: var(--text-tertiary);
}

.site-stat .status-badge {
  background: var(--success);
  color: #fff;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-2xl);
  font-weight: 600;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  background-color: var(--bg-secondary);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ============================================
   ALERTS
   ============================================ */

.alert-arrow {
  border: 2px solid var(--success);
  color: var(--success);
  font-size: var(--text-xl);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.alert-arrow .alert-icon {
  position: relative;
  width: 3rem;
  background-color: var(--success);
  color: white;
  height: 100%;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-arrow .alert-icon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 0.75rem solid var(--success);
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.alert-arrow .close {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ============================================
   DESCRIPTION
   ============================================ */

.description .text {
  position: relative;
}

.description .text.small-text {
  max-height: 400px;
  overflow: hidden;
}

.description .text.big-text {
  max-height: none;
}

.description .opc {
  pointer-events: none;
  position: absolute;
  height: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(255, 255, 255, 0) 100%);
}

.description-short {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.block-loadmore {
  margin-top: var(--space-4);
  text-align: center;
  padding: var(--space-4) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.white-btn {
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: inline-block;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-2) var(--space-6);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.white-btn:hover {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.white-btn:active {
  position: relative;
  top: 1px;
}

.green-btn {
  border: none;
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #ffffff;
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: var(--radius-lg);
  user-select: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.green-btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: #ffffff;
}

.green-btn:focus,
.green-btn:active {
  opacity: 0.85;
  transform: translateY(0);
}

/* ============================================
   UTILITIES
   ============================================ */

.clicked {
  color: var(--danger) !important;
  cursor: default !important;
}

.now-see {
  font-size: var(--text-base);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  padding: var(--space-4);
  overflow: hidden;
  color: var(--text-secondary);
  text-align: left;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
}

.now-see .h5 {
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-lg);
}

.now-see small {
  font-size: var(--text-sm);
  line-height: 1.6;
  display: block;
}

.now-see .good-app-icon i {
  width: 64px;
  height: 64px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
}

.sticky {
  position: fixed;
  top: 0;
  z-index: 999;
  text-align: left;
  float: left;
}

.sticky + .cont {
  padding-top: 100px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media only screen and (max-width: 1024px) {
  body > .container {
    padding: var(--space-8);
  }

  h1, .h1 {
    font-size: var(--text-3xl);
  }

  h2, .h2 {
    font-size: var(--text-2xl);
  }
}

@media only screen and (max-width: 768px) {
  body > .container {
    padding: var(--space-6);
    margin: var(--space-4);
    border-radius: var(--radius-xl);
  }

  h1, .h1 {
    font-size: var(--text-2xl);
  }

  h2, .h2 {
    font-size: var(--text-xl);
  }

  h3, .h3 {
    font-size: var(--text-lg);
  }

  .table {
    font-size: var(--text-xs);
  }

  .table td,
  .table th {
    padding: var(--space-2);
  }

  .review-card {
    flex-direction: column;
  }

  .review-avatar {
    width: 48px;
    height: 48px;
    font-size: var(--text-xl);
  }

  .other-sites a {
    flex-direction: column;
  }

  .other-sites .thumb {
    width: 100%;
    height: 120px;
  }
}

@media only screen and (max-width: 480px) {
  body {
    padding-bottom: var(--space-4);
  }

  body > .container {
    padding: var(--space-4);
    margin: var(--space-2);
    border-radius: var(--radius-lg);
  }

  h1, .h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
  }

  h2, .h2 {
    font-size: var(--text-xl);
  }

  h3, .h3 {
    font-size: var(--text-lg);
  }

  .main-grid .grid-item .grid-body {
    padding: var(--space-4);
  }

  .main-grid .grid-item .grid-body .thumb {
    height: 140px;
    width: 100%;
  }

  .table {
    font-size: var(--text-xs);
  }

  .table td,
  .table th {
    padding: var(--space-1);
  }

  .alert-arrow {
    flex-direction: column;
  }

  .alert-arrow .alert-icon {
    width: 100%;
  }

  .alert-arrow .alert-icon::after {
    display: none;
  }

  .white-btn,
  .green-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  footer {
    padding: var(--space-6) var(--space-2);
    font-size: var(--text-xs);
  }
}



/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Эффект поднятия карточки при наведении */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important; /* Усиленная тень */
    background-color: #fff; /* Гарантируем белый фон */
}

/* Стилизация иконок */
.site-icon {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background-color: #f8f9fa; /* Серый фон на случай прозрачной картинки */
}

/* Обрезка текста (если Bootstrap классы не работают) */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопки навигации Swiper */
.swiper-nav-buttons .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.swiper-nav-buttons .btn:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

 /* Плавное выпадание меню */
    .animate {
        animation-duration: 0.3s;
        -webkit-animation-duration: 0.3s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }

    @keyframes slideIn {
        0% {
            transform: translateY(1rem);
            opacity: 0;
        }
        100% {
            transform: translateY(0rem);
            opacity: 1;
        }
    }

    .slideIn {
        -webkit-animation-name: slideIn;
        animation-name: slideIn;
    }
    
    /* Стилизация скроллбара в длинном меню */
    .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    .dropdown-menu::-webkit-scrollbar-thumb {
        background-color: #dee2e6;
        border-radius: 4px;
    }

    /* Подсветка активных пунктов */
    .dropdown-item:active, .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--bs-primary);
    }
    
    /* Дополнительные стили для анимации карточек (если не добавлены ранее) */

        .hover-lift {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .hover-lift:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        }
  
  /* --- Стили галереи скриншотов --- */
.screenshots {
    padding: var(--space-4) 0 var(--space-8) 0;
    overflow: hidden;
}

.screenshots .swiper-slide {
    width: auto; /* Автоматическая ширина под контент */
    height: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Стили самой картинки */
.screenshots .swiper-slide img {
    display: block;
    height: 400px; /* Фиксированная высота для ровного ряда */
    width: auto;   /* Ширина подстроится под пропорции */
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15); /* Мягкая тень */
    border: 1px solid rgba(0,0,0,0.05); /* Тонкая рамка */
}

/* Эффект при наведении (для десктопа) */
.screenshots .swiper-slide:hover {
    transform: translateY(-5px);
}
.screenshots .swiper-slide:hover img {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
}

/* Адаптив высоты для мобильных */
@media (max-width: 768px) {
    .screenshots .swiper-slide img {
        height: 350px;
    }
}
@media (max-width: 480px) {
    .screenshots .swiper-slide img {
        height: 280px; /* Компактнее на телефонах */
    }
}

/* Прелоадер (крутилка загрузки) */
.swiper-lazy-preloader {
    border-color: var(--primary) transparent transparent transparent;
}

  /* --- Стили для Левой части (Лого + Рейтинг) --- */
.logo-lg {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    border: 1px solid #e0e0e0;
    object-fit: cover;
}
/* Красный огонек */
.fire-badge-red {
    position: absolute;
    top: -10px; right: -10px;
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #dc3545; /* Чистый красный цвет */
    border: 1px solid #ffebeb;
}

/* Рейтинг под логотипом */
.rating-centered { margin-top: 10px; text-align: center; line-height: 1.2; }
.rating-num-lg { font-weight: 800; font-size: 1.4rem; color: #333; }
.rating-stars-sm { font-size: 0.8rem; color: #FFC107; }

/* --- Стили для Правой части (Текст) --- */
.meta-separator {
    color: #dee2e6; /* Светло-серый цвет разделителя */
    margin: 0 15px; /* Отступы вокруг палки */
    font-weight: 300;
}
.category-link {
    color: #0369a1;
    text-decoration: none;
    font-weight: 600;
}
.category-link:hover { text-decoration: underline; }

/* Цветные иконки */
.os-icon-c { font-size: 1.2rem; transition: transform 0.2s; }
.os-icon-c.android { color: #3DDC84; }
.os-icon-c.apple { color: #333; }
.os-icon-c.windows { color: #0078D6; }
.os-icon-c:hover { transform: translateY(-2px); }



.btn-tech-block {
    background-color: #059669;
    color: white;
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Текст слева, иконка справа */
    transition: background 0.2s;
    border: 1px solid #047857;
}
.btn-tech-block:hover {
    background-color: #047857;
    color: white;
}
.btn-tech-main { font-size: 1.2rem; font-weight: 800; line-height: 1; display: block; }
.btn-tech-sub { font-size: 0.8rem; opacity: 0.8; font-weight: 400; display: block; margin-top: 2px; }
.btn-icon-box {
    background: rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}


/* Контейнер для кнопки (центрирование + отступ) */
.block-loadmore {
    text-align: center;
    margin-top: -20px; /* Подтягиваем кнопку вверх, чтобы она наезжала на градиент */
    position: relative;
    z-index: 10;
}

/* Сама кнопка "Читать описание" */
.btn-read-more-modern {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50rem; /* Полный овал */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Мягкая тень */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Ховер эффект (при наведении) */
.btn-read-more-modern:hover {
    background-color: #f8f9fa;
    color: #059669; /* Зеленый акцент при наведении */
    border-color: #d1fae5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
}

/* Иконка внутри кнопки */
.btn-read-more-modern i {
    font-size: 0.8rem;
    margin-left: 8px;
    transition: transform 0.2s;
}

/* Анимация стрелочки при наведении */
.btn-read-more-modern:hover i {
    transform: translateY(3px); /* Стрелка едет вниз */
}
/* Контейнер с текстом (Свернутое состояние) */
#desc-container {
    max-height: 350px; /* Высота видимой части (примерно 2-3 абзаца) */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out; /* Плавное раскрытие */
}

/* Градиент затемнения снизу */
#desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* Чтобы сквозь градиент можно было выделить текст, если нужно */
}

/* Когда текст раскрыт (добавляем этот класс скриптом) */
#desc-container.expanded {
    max-height: 4000px; /* Достаточно большое число, чтобы влез весь текст */
    /* ИЛИ max-height: none; - но с none не работает плавная анимация */
}
/* Зеленая кнопка скачивания */
.btn-emerald {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-emerald:hover {
    background-color: #047857; /* Чуть темнее при наведении */
    border-color: #047857;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Общие стили для карточки */
.app-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
}

/* Иконка в рамке */
.sidebar-icon-frame {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 2px;
    background: #fff;
}/* Карточка приложения */
.app-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Изумрудная кнопка */
.btn-emerald {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-emerald:hover {
    background-color: #047857;
    border-color: #047857;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* Кнопка с иконкой "i" */
.btn-icon-square {
    width: 50px; /* Фиксированная ширина */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f0f0f0;
    color: #6c757d;
    font-size: 1.2rem;
    border-radius: 12px; /* Скругление как у основной */
    background: #fff;
    transition: all 0.2s;
}
.btn-icon-square:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #000;
}

/* Иконка приложения */
.sidebar-app-icon {
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    padding: 2px;
    background: #fff;
}
/* Общие улучшения для модалки */
.modal-content {
    border: none;
    border-radius: 20px; /* Сильное скругление */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.modal-backdrop.show {
    opacity: 0.7; /* Более темный фон сзади */
    backdrop-filter: blur(5px); /* Размытие фона (эффект стекла) */
}
/* Отступ для блока отзывов, чтобы он не прятался под шапку */
.reviews-section-offset {
    scroll-margin-top: 100px; /* Если переход по якорю */
    padding-top: 40px;        /* Визуальный отступ сверху */
    clear: both;              /* Сброс обтекания */
    position: relative;
    z-index: 1;
}

/* Стиль формы */
.review-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.review-box.active {
    background: #fff;
    border-color: #059669;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
}

/* Красивые поля ввода */
.form-control-modern {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control-modern:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: #fff;
}

/* Звезды в форме */
.starrr i {
    font-size: 1.8rem;
    padding: 0 5px;
    color: #cbd5e1; /* Серый по дефолту */
    cursor: pointer;
    transition: transform 0.2s;
}
.starrr i.fa-star {
    color: #fbbf24; /* Золотой активный */
    transform: scale(1.1);
}
/* Общие стили для аватарок */
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0; /* Чтобы не сжимался */
}
/* Цвета для аватарок (рандом) */
.bg-blue { background-color: #3b82f6; }
.bg-green { background-color: #10b981; }
.bg-pink { background-color: #ec4899; }
.bg-purple { background-color: #8b5cf6; }
.bg-orange { background-color: #f97316; }

/* Звезды в отзывах */
.review-stars-static {
    color: #fbbf24; /* Золотой */
    font-size: 0.85rem;
}
.review-card-verified {
    border-left: 4px solid #059669; /* Зеленая линия */
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px 12px 12px 4px; /* Скругление справа */
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Мягкая тень */
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Бейдж стал компактнее */
.verified-badge-icon {
    color: #059669;
    background: #ecfdf5;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 6px;
}
/* 1. Сбрасываем стандартный стиль ссылок внутри рейтинга */
.starrr a {
    text-decoration: none !important;
    outline: none !important;
    display: inline-block;
}

/* 2. Стиль самой иконки звезды */
.starrr i {
    font-size: 2rem;       /* Крупный размер для удобства нажатия */
    padding: 0 5px;        /* Расстояние между звездами */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистая анимация */
    color: #cbd5e1;        /* Серый цвет для пустых звезд (вместо синего) */
}

/* 3. Цвет закрашенной звезды (fa-star) */
.starrr .fa-star {
    color: #fbbf24;        /* Сочный золотой цвет */
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3)); /* Легкое свечение */
}

/* 4. Эффект при наведении (только для десктопа) */
.starrr a:hover i {
    transform: scale(1.2); /* Увеличение при наведении */
    color: #f59e0b;        /* Чуть темнее золото */
}

/* Основной контейнер */
.content-strict {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
    line-height: 1.6;
    font-size: 16px;
}

/* Заголовки */
.content-strict h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; /* Легкая линия снизу */
    color: #000;
}

.content-strict h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}

/* Списки (без фонов) */
.content-strict ul, .content-strict ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-strict li {
    margin-bottom: 8px;
    color: #495057; /* Чуть светлее черного */
}

/* Блок Эмулятора (Минимализм) */
.emulator-block {
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 3px solid #dee2e6; /* Серая вертикальная черта слева */
}

.emulator-block .btn-text-link {
    color: #198754; /* Ваш Emerald цвет или просто зеленый */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px dashed #198754;
    transition: all 0.2s;
}

.emulator-block .btn-text-link:hover {
    color: #146c43;
    border-bottom: 1px solid #146c43;
}

/* FAQ (Аккордеон без рамок) */
.faq-strict details {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.faq-strict summary {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 30px;
    color: #212529;
    transition: color 0.2s;
}

.faq-strict summary:hover {
    color: #198754; /* Подсветка при наведении */
}

.faq-strict summary::-webkit-details-marker {
    display: none;
}

/* Крестик/Плюс справа */
.faq-strict summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 15px;
    font-weight: 300;
    font-size: 1.2rem;
    color: #adb5bd;
}

.faq-strict details[open] summary::after {
    content: '×'; /* Крестик при открытии */
    font-size: 1.4rem;
    line-height: 1rem;
}

.faq-strict p {
    padding: 0 0 15px 0;
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}
