/* ===== style.css ===== */

/* ===== Основные ===== */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  background-image: url("back.png");
  background-repeat: no-repeat;
  background-position: center calc(100% - 120px); /* фон немного выше */
  background-size: 520px auto; /* слегка меньше */
  margin: 0;
  padding-top: 85px;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== Хедер ===== */
.header {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 35px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .logo {
  height: 48px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}
.header-right a:hover { text-decoration: underline; }

.btn-outline {
  padding: 7px 18px;
  border: 1px solid #a5db95;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  color: #a5db95 !important;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #a5db95;
  color: #000 !important;
}

/* ===== Бургер ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 26px;
  height: 20px;
}
.burger div {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Активное состояние бургера */
.burger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active div:nth-child(2) {
  opacity: 0;
}
.burger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Меню при мобильном отображении */
.header-right.mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 75px;
  right: 0;
  background: #000;
  width: 220px;
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
  transform: translateX(100%);
}
.header-right.mobile.show {
  transform: translateX(0);
}

.header-right.mobile a {
  margin: 10px 0;
  font-size: 16px;
  text-align: right;
}

/* ===== Форма ===== */
.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 14px;
}

.container {
  background: #fff;
  padding: 44px 32px; /* меньше внутренний отступ */
  border-radius: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 340px; /* было 370px */
  text-align: center;
  margin: 60px auto 20px auto;
  border: 1px solid #e8e8e8;
}

.container h2 {
  margin-bottom: 16px;
  font-size: 21px; /* меньше текст */
  font-weight: 700;
}

input {
  width: 88%;
  padding: 18px; /* меньше поля */
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

.btn-main {
  width: 100%;
  padding: 18px;
  background: #006aff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-main:hover {
  background: #0056d6;
}

.container a {
  display: block;
  margin-top: 16px;
  color: #006aff;
  font-size: 14px;
  text-decoration: none;
}
.container a:hover {
  text-decoration: underline;
}

/* ===== Футер ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
.footer p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .burger { display: flex; }
  .header-right {
    display: none;
  }
}
