/* ===== ZXChange — эксклюзивный интерфейс ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* Палитра в тон видео: тёплый тёмно-серый/коричневый + золотые точки */
  --bg-deep: #0c0b0a;
  --bg-card: #121110;
  --bg-elevated: #1a1816;
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(212, 168, 83, 0.2);
  --text-primary: #f2f2f4;
  --text-secondary: #a8a8b0;
  --text-muted: #6e6e76;
  --accent: #d6a84a;
  --accent-bright: #e8c97a;
  --accent-glow: rgba(214, 168, 74, 0.28);
  --success: #2d9d6e;
  --error: #e85c5c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02);
  --shadow-glow: 0 0 60px var(--accent-glow);
}

[data-theme="light"] {
  --bg-deep: #f8f9fc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-accent: rgba(201, 162, 39, 0.35);
  --text-primary: #111318;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #b8860b;
  --accent-bright: #c9a227;
  --accent-glow: rgba(201, 162, 39, 0.2);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ===== Сброс и база ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Better mobile viewport handling (iOS address bar / keyboard) */
@supports (height: 100svh) {
  body { min-height: 100svh; }
}
@supports (height: 100dvh) {
  body { min-height: 100dvh; }
}

/* ===== Фоновое видео (то же, что в приветствии — сильнее размыто и затемнено) ===== */
.page-bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.page-bg-video__video {
  position: absolute;
  width: 100vh;
  height: 100vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg) scale(1.15);
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  filter: blur(18px);
  -webkit-filter: blur(18px);
}

.page-bg-video__dark {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 11, 10, 0.82);
  pointer-events: none;
}

[data-theme="light"] .page-bg-video__dark {
  background: rgba(248, 249, 252, 0.92);
}

/* На мобиле видео не показываем (не грузится скриптом) — только градиент */
@media (max-width: 767px) {
  .page-bg-video__video {
    display: none !important;
  }
  .page-bg-video__dark {
    background: linear-gradient(160deg, rgba(18, 16, 14, 0.97) 0%, rgba(28, 24, 20, 0.98) 50%, rgba(22, 19, 16, 0.97) 100%);
  }
  [data-theme="light"] .page-bg-video__dark {
    background: linear-gradient(160deg, #f5f6fa 0%, #eef0f5 50%, #f2f3f8 100%);
  }
}

/* ===== Уникальный фон: градиентная сетка + шум ===== */
.body-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.body-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  /* Лёгкий тёплый тон поверх фонового видео; без сплошной заливки — видео просвечивает */
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212, 168, 83, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(212, 168, 83, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(180, 140, 70, 0.07), transparent 45%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

.body-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

@keyframes bgShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(1deg); }
}

/* Декоративные элементы фона — мягкая сетка в тон видео */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 65%);
}

/* ===== Контейнер ===== */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* ===== Карточка формы ===== */
.form-container {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

@supports (height: 100svh) {
  .container { min-height: 100svh; }
  .form-container { min-height: calc(100svh - 48px); }
}
@supports (height: 100dvh) {
  .container { min-height: 100dvh; }
  .form-container { min-height: calc(100dvh - 48px); }
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent);
  background-size: 200% 100%;
  animation: lineShine 6s linear infinite;
}

.form-container:hover {
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-accent);
}

@keyframes lineShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Переключатель темы ===== */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.lang-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.lang-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  border-color: rgba(214, 168, 74, 0.25);
}

.lang-btn:active {
  transform: translateY(0);
}

.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.theme-btn:hover {
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.theme-btn i { font-size: 1.1rem; }

/* ===== Заголовок ===== */
.header {
  text-align: center;
  margin-bottom: 36px;
}

@media (max-width: 520px) {
  .form-container {
    padding: 26px 18px;
    min-height: calc(100vh - 40px);
  }
  .header { margin-bottom: 18px; }
}

@supports (height: 100svh) {
  @media (max-width: 520px) {
    .form-container { min-height: calc(100svh - 40px); }
  }
}

@supports (height: 100dvh) {
  @media (max-width: 520px) {
    .form-container { min-height: calc(100dvh - 40px); }
  }
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.company-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.company-logo i {
  font-size: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.company-logo span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(45, 157, 110, 0.12);
  border: 1px solid rgba(45, 157, 110, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.official-badge i { font-size: 0.9rem; }

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== Прогресс ===== */
.form-progress {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.progress-text, .progress-fields {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

#progressPercent, #filledFields {
  color: var(--accent);
  font-weight: 700;
}

.progress-bar {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-message {
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.progress-message.empty { background: transparent; }
.progress-message.started,
.progress-message.good-start,
.progress-message.good-progress,
.progress-message.almost-done {
  background: rgba(212, 168, 83, 0.1);
  color: var(--accent);
}
.progress-message.half-way {
  background: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
}
.progress-message.complete {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

/* ===== Форма ===== */
.application-form { margin-bottom: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.form-group {
  position: relative;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group label i {
  color: var(--accent);
  font-size: 0.95rem;
  width: 1em;
  text-align: center;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--border-accent);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrapper { position: relative; }
.input-wrapper input,
.input-wrapper select { padding-right: 40px; }

.validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.validation-icon.success { opacity: 1; color: var(--success); }
.validation-icon.error { opacity: 1; color: var(--error); }

.form-group input.input-error,
.form-group select.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.error-message {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
}
.error-message.show { display: block; }

/* Select */
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

/* ===== Блок «О работе» ===== */
.work-info-block {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.work-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.work-info-header i {
  font-size: 1.15rem;
  color: var(--accent);
}

.work-info-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.work-info-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.info-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.info-item i {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.info-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ===== Предпросмотр ===== */
.preview-section {
  margin: 28px 0;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.preview-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.preview-section h3 i { color: var(--accent); }

.preview-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
}

.preview-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  padding: 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.preview-header-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-style: italic;
}

.preview-item {
  display: flex;
  margin-bottom: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-item:last-child { border-bottom: none; margin-bottom: 0; }

.preview-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 100px;
  margin-right: 12px;
  font-size: 0.85rem;
}

.preview-value { color: var(--text-primary); font-size: 0.9rem; }

/* ===== Кнопки ===== */
.form-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 160px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #0a0c10;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn .fa-spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.submit-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

.submit-reminder i { color: var(--accent); }

/* ===== Блок безопасности ===== */
.security-block {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.security-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.security-header i { font-size: 1rem; color: var(--success); }
.security-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.security-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 10px;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.security-item:hover { border-color: rgba(52, 211, 153, 0.3); }
.security-item i { font-size: 0.95rem; color: var(--success); flex-shrink: 0; margin-top: 1px; }

.security-text { display: flex; flex-direction: column; gap: 0; }
.security-text strong { font-size: 0.78rem; color: var(--text-primary); line-height: 1.3; }
.security-text span { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.35; }

.security-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.security-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ===== Telegram блок ===== */
.telegram-reviews-block {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.telegram-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.telegram-header i { font-size: 1.25rem; color: #0088cc; }
.telegram-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.telegram-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0088cc, #00a8e8);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.35);
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 136, 204, 0.45);
  color: #fff;
}

.telegram-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stat-item i { color: #0088cc; font-size: 0.85rem; }

/* ===== Футер ===== */
.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link i {
  font-size: 1rem;
  color: #0088cc;
}

.footer-link:hover i {
  color: var(--accent);
}

.footer-link-privacy {
  color: var(--text-muted);
}

.footer-link-privacy:hover {
  color: var(--accent);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Страница «Политика конфиденциальности» ===== */
.container--page {
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
}

.form-container--page {
  max-width: 680px;
}

.form-container--page::before {
  display: none;
}

.privacy-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.privacy-back:hover {
  color: var(--accent);
}

.privacy-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.privacy-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.privacy-section {
  margin-bottom: 24px;
}

.privacy-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.privacy-section p,
.privacy-section ul {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
}

.privacy-section ul {
  padding-left: 1.25rem;
}

.privacy-section li {
  margin-bottom: 4px;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-section a:hover {
  text-decoration: underline;
}

/* ===== Уведомления ===== */
.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.notification.show { transform: translateX(0); }
.notification.success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}
.notification.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

/* ===== Анимации появления ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-icon { transition: transform 0.2s; }
.animated-icon:hover { transform: scale(1.1); }
.form-group:focus-within .animated-icon { transform: scale(1.05); color: var(--accent); }

/* ===== Адаптив ===== */
@media (max-width: 768px) {
  .container { padding: 16px 14px; }
  .form-container { padding: 28px 22px; border-radius: var(--radius-lg); }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn { min-width: auto; width: 100%; }
  .header h1 { font-size: 1.6rem; font-weight: 800; }
  .company-logo span { font-size: 1.5rem; }
  .notification { left: 14px; right: 14px; top: 14px; transform: translateY(-100%); max-width: none; }
  .notification.show { transform: translateY(0); }
  /* Блок «Почему это легко» — горизонтальный скролл карточек на мобиле */
  .work-info-content {
    display: flex;
    grid-template-columns: unset;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .work-info-content .info-item {
    flex: 0 0 auto;
    min-width: 260px;
    max-width: 280px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .form-container { padding: 22px 18px; }
  .form-group input,
  .form-group select {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
  }
  .preview-item { flex-direction: column; gap: 2px; }
  .preview-label { min-width: auto; }
  .security-features { grid-template-columns: 1fr; }
  .telegram-stats { flex-direction: column; align-items: center; }
}

/* Стили для кнопок зарплаты (если появятся в форме) */
.salary-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.salary-btn {
  padding: 14px 20px;
  border: 1px solid var(--border-accent);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.salary-btn:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 83, 0.1);
  color: var(--accent);
}

.salary-btn.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #0a0c10;
  border-color: var(--accent);
}

[data-theme="light"] .salary-btn.selected { color: #111; }

/* ===== Wizard (step-by-step) ===== */
.wz {
  margin-top: 18px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wz-progress {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  transition:
    max-height 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease,
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 380ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wz-progress.is-show {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  padding: 14px 14px 12px;
  border-color: var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08) inset;
}

[data-theme="light"] .wz-progress.is-show {
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.015));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03) inset;
}

.wz-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.wz-progress__step {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.wz-progress__note {
  color: var(--text-muted);
}

.wz-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

[data-theme="light"] .wz-progress__bar {
  background: rgba(0,0,0,0.06);
}

.wz-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px var(--accent-glow);
  transition: width 260ms ease;
}

.wz-steps {
  margin-top: 16px;
  position: relative;
  min-height: 320px;
  flex: 1;
}

.wz {
  --wz-step-enter: 18px;
  --wz-step-leave: -18px;
}

.wz[data-dir="back"] {
  --wz-step-enter: -18px;
  --wz-step-leave: 18px;
}

.wz-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(var(--wz-step-enter, 18px)) translateY(8px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wz-step.is-active {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
}

.wz-step.is-leaving {
  opacity: 0;
  transform: translateX(var(--wz-step-leave, -18px)) translateY(6px);
  pointer-events: none;
}

/* Animated text reveal (premium, subtle) */
@keyframes wzReveal {
  0% { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.wz-step.is-active .wz-field,
.wz-step.is-active .wz-actions,
.wz-step.is-active .wz-footnote,
.wz-step.is-active .wz-success,
.wz-step.is-active .wz-profile,
.wz-step.is-active .wz-cooldown {
  animation: wzReveal 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wz-step.is-active .wz-field { animation-delay: 140ms; }
.wz-step.is-active .wz-actions { animation-delay: 210ms; }
.wz-step.is-active .wz-footnote { animation-delay: 240ms; }

.wz-step[data-step="success"].is-active .wz-success { animation-delay: 0ms; }
.wz-step[data-step="success"].is-active .wz-profile { animation-delay: 90ms; }
.wz-step[data-step="success"].is-active .wz-cooldown { animation-delay: 150ms; }
.wz-step[data-step="success"].is-active .wz-actions { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .wz-step { transition: none; }
  .wz-progress__fill { transition: none; }
  .wz-step.is-active .wz-title,
  .wz-step.is-active .wz-text,
  .wz-step.is-active .wz-field,
  .wz-step.is-active .wz-actions,
  .wz-step.is-active .wz-footnote,
  .wz-step.is-active .wz-success,
  .wz-step.is-active .wz-profile,
  .wz-step.is-active .wz-cooldown {
    animation: none;
  }
  .wz-interlude,
  .wz-interlude__card {
    transition: none;
  }
  .wz-interlude__card::after {
    animation: none;
    width: 0ch;
  }
  .wz-title.is-typing::after,
  .wz-text.is-typing::after {
    animation: none;
    opacity: 0;
  }
}

.wz-step[data-step="success"] {
  justify-content: flex-start;
}

/* Interlude overlay between steps */
.wz-interlude {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .wz-interlude {
  background: rgba(255, 255, 255, 0.35);
}

.wz-interlude.is-show {
  opacity: 1;
  pointer-events: auto;
}

.wz-interlude__card {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(18, 17, 16, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transform: translateY(10px);
  transition: transform 200ms ease;
}

.wz-interlude__card::after {
  content: "...";
  display: inline-block;
  width: 0ch;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.75;
  animation: wzDots 1.05s steps(4, end) infinite;
}

@keyframes wzDots {
  0% { width: 0ch; }
  25% { width: 1ch; }
  50% { width: 2ch; }
  75% { width: 3ch; }
  100% { width: 0ch; }
}

.wz-interlude.is-show .wz-interlude__card {
  transform: translateY(0);
}

.wz-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.wz-text {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 16px;
  min-height: 3.1em;
}

/* Typewriter caret */
.wz-title.is-typing::after,
.wz-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0;
  border-right: 2px solid rgba(214, 168, 74, 0.85);
  margin-left: 3px;
  transform: translateY(1px);
  animation: wzCaretBlink 900ms steps(1, end) infinite;
}

@keyframes wzCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.wz-actions--lang {
  justify-content: center;
}

.wz-field {
  margin: 18px 0 10px;
}

.wz-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.wz-input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wz-input::placeholder {
  color: var(--text-muted);
}

.wz-input:focus {
  border-color: rgba(214, 168, 74, 0.35);
  box-shadow: 0 0 0 4px rgba(214, 168, 74, 0.12);
}

.wz-error {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--error);
}

.wz-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--text-secondary);
}

[data-theme="light"] .btn.btn-ghost {
  border-color: rgba(0,0,0,0.14);
}

.btn.btn-ghost:hover {
  border-style: solid;
  color: var(--text-primary);
}

.wz-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.wz-link {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(214,168,74,0.35);
}

.wz-link:hover {
  border-bottom-color: rgba(214,168,74,0.8);
}

.wz-success {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.wz-success__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(45, 157, 110, 0.12);
  border: 1px solid rgba(45, 157, 110, 0.2);
  color: #64d6a3;
}

.wz-profile {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  padding: 14px 14px;
}

[data-theme="light"] .wz-profile {
  background: rgba(0,0,0,0.02);
}

.wz-profile__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

[data-theme="light"] .wz-profile__row {
  border-bottom-color: rgba(0,0,0,0.06);
}

.wz-profile__row:last-child {
  border-bottom: none;
}

.wz-profile__row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.wz-cooldown {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(214, 168, 74, 0.06);
}

.wz-cooldown__title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.wz-cooldown__text {
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 520px) {
  .wz-title { font-size: 24px; }
  .wz-actions { gap: 8px; }
  .wz-input { height: 50px; }
  .wz-steps { min-height: 340px; }
  .wz-step {
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 18px;
  }
}

/* Short screens: keep inputs/buttons visible above keyboard */
@media (max-height: 720px) {
  .wz-step {
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 18px;
  }
}
