/* =======================
   Базовые стили страницы
   ======================= */
html, body {
  height: 100%;
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  padding-top: 110px; /* под высоту фиксированной шапки */
}

body > *:not(.site-footer) {
  flex-shrink: 0;
}

/* Контейнер формы входа */
.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* =======================
   ШАПКА САЙТА
   ======================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-family: Roboto, sans-serif;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo img {
  height: 28px;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #000;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #444;
}

.header-right img {
  width: 20px;
  height: 20px;
}

.header-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

/* Поиск */
.search-box {
  position: relative;
  flex: 1;
}

.search-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.dropdown div {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.dropdown div:hover {
  background: #f1f1f1;
}

/* Кнопки */
.btn {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.btn:hover {
  background: #eee;
}

.btn.active {
  background: #fff;
  border: 2px solid #000;
  font-weight: bold;
}

/* =======================
   БЛОК О ПРОЕКТЕ
   ======================= */
.about-block {
  background: #fff;
  padding: 60px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-family: Roboto, sans-serif;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-block h1 {
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 800;
  color: #000;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-block h2 {
  font-size: 18px;
  font-weight: 500;
  color: #555;
  margin-bottom: 20px;
}

.about-block p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

/* =======================
   ФОРМА ВХОДА / КАПЧА
   ======================= */
.login-container {
  background: #fff;
  box-shadow: 0 4px 20px rgb(0 0 0 / 12%);
  border-radius: 10px;
  padding: 14px 26px;
  max-width: 430px;
  width: 100%;
  box-sizing: border-box;
}

.login-container img {
  margin-bottom: 10px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.login-container input {
  width: 100%;
  padding: 14px 26px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #0f0f0f;
  box-sizing: border-box;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  height: 58px;
}

.login-container input::placeholder {
  color: #aaa;
}

.login-container input:focus {
  outline: none;
  border: 1px solid #000;
}

.login-container button {
  background: #0e0e0e;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  padding: 17px 0;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.login-container button:hover {
  background: #333;
}

/* =======================
   ФУТЕР
   ======================= */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 20px 0;
  font-family: Roboto, sans-serif;
  margin-top: 40px;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 13px;
  line-height: 1.4;
}

.footer-logo {
  height: 28px;
  margin-bottom: 6px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social img {
  width: 20px;
  height: 20px;
  filter: invert(70%);
  transition: 0.3s;
}

.footer-social img:hover {
  filter: invert(100%);
}

/* =======================
   АДАПТИВ
   ======================= */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .header-right {
    font-size: 12px;
    gap: 8px;
  }
  .search-input {
    font-size: 12px;
  }
  .btn {
    font-size: 12px;
    padding: 5px 10px;
  }
  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 15px;
  }
  .login-container input,
  .login-container button {
    font-size: 14px;
  }
}

/* =======================
   ВСПОМОГАТЕЛЬНЫЕ
   ======================= */
.hidden-description {
  display: none;
}
