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

body {
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.header {
  background: #000;
  color: #fff;
  padding: 20px 16px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  flex-shrink: 0;
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.header-subtitle {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(files/bg.jpg) center center;
  background-size: cover;
  /*opacity: 0.3;*/
  z-index: -1;
}

.main-content {
  position: relative;
  min-height: calc(100vh - 120px);
  background: 0 0;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 140px;
  flex: 1;
}

.cards-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4757, #3742fa);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card:active {
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.icon-red {
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

.icon-pink {
  background: linear-gradient(135deg, #ff6b9d, #ff4d8d);
}

.icon-blue {
  background: linear-gradient(135deg, #3742fa, #2f3542);
}

.icon-profile {
  background: #ddd;
  overflow: hidden;
  border: 2px solid #fff;
}

.icon-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
}

.arrow {
  color: #bdc3c7;
  font-size: 20px;
  font-weight: 300;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.card:hover .arrow {
  color: #3742fa;
  transform: translateX(6px);
  opacity: 1;
}

.card.special {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 1px solid #e9ecef;
}

.card.special .card-title {
  color: #495057;
}

.footer {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 0;
  font-size: 0.95rem;
  opacity: 0.8;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  body {
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .container {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    background: 0 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
  }

  .header {
    position: relative;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    background: #000;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .main-content {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    margin: 0;
    background: 0 0;
    min-height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
  }

  .bg-image {
    /*opacity: 0.2;*/
    position: absolute;
    z-index: -1;
  }

  .footer {
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .header-content {
    max-width: 700px;
  }

  .header-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .header-subtitle {
    font-size: 16px;
  }

  .cards-container {
    max-width: 600px;
    gap: 20px;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 50px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
  }

  .card {
    padding: 24px;
    gap: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .card-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .card-desc {
    font-size: 14px;
  }

  .arrow {
    font-size: 22px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
  }

  .cards-container {
    max-width: 700px;
    padding: 0 30px;
  }

  .card {
    padding: 28px;
    gap: 28px;
  }

  .card-icon {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-desc {
    font-size: 15px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .container {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background: 0 0;
    position: relative;
  }

  .header {
    position: relative;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: #000;
    position: relative;
    z-index: 2;
  }

  .main-content {
    margin-top: 0;
    padding: 30px 20px;
    border-radius: 0;
    background: 0 0;
    position: relative;
  }

  .bg-image {
    /*opacity: 0.25;*/
    position: absolute;
    z-index: -1;
  }

  .cards-container {
    max-width: 550px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
  }

  .card {
    padding: 22px;
    gap: 22px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 23px;
  }

  .footer {
    background: 0 0;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    position: relative;
    background: 0 0;
  }

  .header {
    position: fixed;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    height: 140px;
  }

  .main-content {
    margin-top: 140px;
    padding: 25px 15px;
    border-radius: 0;
    background: 0 0;
    position: relative;
  }

  .bg-image {
    /*opacity: 0.3;*/
    position: absolute;
    z-index: -1;
  }

  .cards-container {
    max-width: 100%;
    gap: 14px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
  }

  .card {
    padding: 16px;
    gap: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .card-desc {
    font-size: 12px;
  }

  .arrow {
    font-size: 18px;
  }

  .footer {
    background: 0 0;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 360px) {
  .header {
    padding: 16px 12px;
  }

  .main-content {
    margin-top: 130px;
    padding: 16px 12px;
  }

  .card {
    padding: 14px;
    gap: 14px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-desc {
    font-size: 11px;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: slideInUp 0.8s ease forwards;
  opacity: 0;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

.card:nth-child(5) {
  animation-delay: 0.5s;
}

.card:nth-child(6) {
  animation-delay: 0.6s;
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: 0 0;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: #fff;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 16px;
  opacity: 0.8;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}
