/* == Reset == */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* == Page background == */
html {
  background-color: #f0f0f0;
}

/* == Fade-in animation == */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* == Base styles == */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;               /* позволяем расти, убрали fixed 100vh */
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
}

.container {
  text-align: center;
  animation: fadeIn 0.8s ease-out forwards;
}

/* == Logo == */
.container img {
  max-width: 150px;
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* == Headings & text == */
.container h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.container p {
  margin-bottom: 20px;
  color: #555;
}

/* == Button == */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0088cc;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background-color: #006699;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* == Mobile tweaks == */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
  .container img {
    max-width: 120px;
  }
}

/* == Dark mode support == */
@media (prefers-color-scheme: dark) {
  html {
    background-color: #111;
  }
  body {
    background-color: #111;
    color: #ddd;
  }
  .container h1,
  .container p {
    color: #eee;
  }
  .btn {
    background-color: #005f8e;
  }
  .btn:hover {
    background-color: #004466;
  }
}
