/* ─── КНОПКИ ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  text-decoration: underline;
  padding: 10px 16px;
}

.btn-full { width: 100%; }

.btn:disabled {
  background: var(--gray-300);
  color: var(--gray-600);
  cursor: not-allowed;
  transform: none;
}

/* ─── КАРТОЧКА ─── */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* ─── ПРОГРЕСС-БАР ─── */

.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 200px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--gray-300);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ─── ХЕДЕР ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--navy);
}

/* ─── INPUT ─── */

.input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
  margin-bottom: 12px;
}
.input:focus { border-color: var(--blue); }

/* ─── АНИМАЦИЯ ─── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ─── АДАПТИВ ─── */

@media (max-width: 639px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero { padding: 52px 0; }
  .section-white,
  .section-gray,
  .section-blue,
  .section-navy { padding: 48px 0; }
}

@media (min-width: 1024px) {
  :root { --max-width: 1080px; }
  .hero h1 { font-size: 52px; }
}
