/* Диагностика: временно выделяем границами */
body, main, .content-wrapper, .card, .page-buttons, .page-buttons li a, .login-link a, .social-buttons a {
  /* временный фон и бордер для отладки */
  /* background-color: rgba(255, 0, 0, 0.1); */
  /* border: 1px solid rgba(0, 0, 255, 0.2); */
}

/* Глобальный box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  overflow-x: hidden; /* предотвращаем скролл */
}

header {
  background-color: #1E0E10;
  color: white;
  padding: 20px;
  text-align: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
  max-width: 100vw;
  padding: 0 10px;
  box-sizing: border-box;
}

.logo {
  height: 80px;
}

main {
  padding: 20px 10px;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 800px;
  margin: auto;
  padding: 0 10px;
  box-sizing: border-box;
  width: 100%;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;

  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 15px;

  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Сброс для ul, li */
.page-buttons {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.page-buttons li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-buttons li a {
  display: block;
  background-color: #007BFF;
  color: white;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 #0056b3;
  transition: all 0.2s ease-in-out;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-buttons li a:hover {
  background-color: #0056b3;
}

.page-buttons li a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #004494;
}

.login-link {
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.login-link a {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 0 #0056b3;
  font-weight: bold;
  transition: transform 0.1s, background-color 0.2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.login-link a:hover {
  background-color: #0056b3;
}

.login-link a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #004494;
}

.social-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.social-buttons a {
  display: block;
  width: 50%;
  max-width: 300px;
  background-color: #28a745;
  color: white;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 #1c7430;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.social-buttons a:hover {
  background-color: #218838;
}

.social-buttons a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #19692c;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea, button {
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #007BFF;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #0056b3;
}

button:hover {
  background-color: #0056b3;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #004494;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  body, main {
    padding: 10px;
    overflow-x: hidden;
  }

  .card {
    padding: 15px;
    max-width: 100%;
  }

  .logo-container {
    flex-direction: column;
  }

  .logo {
    height: 60px;
  }

  .page-buttons {
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .page-buttons li {
    margin: 0;
  }

  .page-buttons li a,
  .login-link a {
    font-size: 16px;
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
  }

  .social-buttons a {
    width: 70%;
    max-width: 100%;
  }
}
