* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 0;
}

header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header h1 span {
  display: block;
  font-size: 1.8rem;
  font-weight: 300;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.apps-grid {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.apps-grid {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* Удобный отступ между карточками */
}

.app-card {
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 1rem; /* Уменьшили отступы */
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 340px; /* Уменьшили высоту */
  justify-content: flex-start; /* Выравнивание сверху */
  gap: 0.5rem; /* Отступ между элементами внутри карточки */
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.app-card img {
  width: 100%;
  height: 120px; /* Уменьшили высоту иконки */
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

.app-card h3 {
  font-size: 1.2rem; /* Уменьшили шрифт заголовка */
  color: #222;
  margin: 0;
  line-height: 1.3;
  min-height: 2.4rem; /* 2 строки */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
}

.app-card p {
  color: #666;
  font-size: 0.9rem; /* Уменьшили шрифт описания */
  line-height: 1.4;
  min-height: 3rem; /* 3 строки */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  flex-grow: 1; /* Занимает оставшееся место */
}

.contact {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 2rem;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.contact p {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

.contact a {
  color: #667eea;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #333;
  color: #eee;
  font-size: 0.9rem;
}

footer nav a {
  color: #ddd;
  margin: 0 1rem;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  .app-card {
    width: 90%;
    margin: 1rem auto;
  }
  .apps-grid h2, .contact h2 {
    font-size: 1.8rem;
  }
}
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  color: #ddd;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
}

.lang-switch a:hover,
.lang-switch a.active {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Для активной ссылки — можно добавить класс "active" через JS, но пока просто hover */


.apps-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.apps-header h2 {
  font-size: 2rem;
  color: #222;
  margin: 0;
}