/* ===== НОВЫЙ ДИЗАЙН: БЕЛЫЙ + ЖЕЛТЫЙ ===== */

:root {
  --primary-yellow: #FFD700;
  --secondary-yellow: #FFC107;
  --light-yellow: #FFF9C4;
  --dark-yellow: #FF8F00;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark-gray: #343A40;
  --black: #000000;
  --shadow: rgba(255, 215, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9C4 100%);
  color: var(--dark-gray);
  line-height: 1.6;
  min-height: 100vh;
  animation: pageLoad 1s ease-out;
}

/* Анимация загрузки страницы */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Particles.js фон */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9C4 100%);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 3px solid var(--primary-yellow);
  position: relative;
  animation: containerAppear 1.2s ease-out 0.3s both;
  transition: all 0.3s ease;
}

.form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow);
}

/* Анимация появления контейнера */
@keyframes containerAppear {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-yellow), var(--primary-yellow));
  border-radius: 20px 20px 0 0;
}

/* Заголовок */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.company-logo span {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-yellow);
  text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
  animation: logoGlow 2s ease-in-out infinite alternate, textAppear 1s ease-out 0.6s both;
  display: inline-block;
  transition: all 0.3s ease;
}

.company-logo span:hover {
  transform: scale(1.1);
  text-shadow: 4px 4px 8px rgba(255, 215, 0, 0.5);
}

/* Анимация свечения логотипа */
@keyframes logoGlow {
  0% {
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
  }
  100% {
    text-shadow: 4px 4px 12px rgba(255, 215, 0, 0.6);
  }
}

/* Анимация появления текста */
@keyframes textAppear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--white), var(--light-yellow));
  border: 2px solid #28a745;
  border-radius: 12px;
  animation: badgeAppear 1s ease-out 0.8s both, badgePulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
  position: relative;
}

.official-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #28a745;
  border-radius: 50%;
  color: white;
  font-size: 14px;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-title {
  font-size: 11px;
  color: #28a745;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-number {
  font-size: 10px;
  color: var(--dark-gray);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.badge-verify {
  color: #28a745;
  font-size: 16px;
  animation: verifyPulse 2s ease-in-out infinite;
}

/* Анимация появления значка */
@keyframes badgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Анимация пульсации значка */
@keyframes badgePulse {
  0%, 100% {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
  }
  50% {
    border-color: #20c997;
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.4);
  }
}

/* Анимация галочки верификации */
@keyframes verifyPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 15px;
  animation: titleSlide 1s ease-out 1s both;
  transition: all 0.3s ease;
}

.header h1:hover {
  transform: scale(1.02);
  color: var(--dark-yellow);
}

/* Анимация заголовка */
@keyframes titleSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.header p {
  font-size: 16px;
  color: var(--dark-gray);
  opacity: 0.8;
}

/* Прогресс-бар */
.form-progress {
  margin: 30px 0;
  padding: 20px;
  background: var(--light-yellow);
  border: 2px solid var(--secondary-yellow);
  border-radius: 15px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.progress-text {
  font-weight: 600;
  color: var(--dark-gray);
}

.progress-fields {
  color: var(--dark-yellow);
  font-weight: 600;
}

.progress-bar {
  height: 12px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--secondary-yellow);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
  width: 0%;
  transition: width 0.5s ease;
}

/* Форма */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.form-group {
  position: relative;
  animation: formElementAppear 0.8s ease-out both;
  animation-delay: calc(var(--delay, 0) * 0.1s);
}

/* Анимация появления элементов формы */
@keyframes formElementAppear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 10px;
  font-size: 15px;
}

.form-group label i {
  color: var(--dark-yellow);
  font-size: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--secondary-yellow);
  border-radius: 10px;
  font-size: 16px;
  background: var(--white);
  color: var(--dark-gray);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 10px var(--shadow);
  transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--primary-yellow);
}

/* Кнопки зарплаты */
.salary-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.form-group.full-width {
  animation-delay: 1.7s !important;
}

.salary-btn {
  padding: 18px 20px;
  background: var(--white);
  color: var(--dark-gray);
  border: 2px solid var(--secondary-yellow);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  animation: buttonAppear 0.6s ease-out both;
  animation-delay: calc(1.8s + var(--btn-delay, 0) * 0.1s);
}

/* Анимация появления кнопок */
@keyframes buttonAppear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.salary-btn:hover {
  background: var(--light-yellow);
  border-color: var(--primary-yellow);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

.salary-btn.selected {
  background: var(--primary-yellow);
  color: var(--black);
  border-color: var(--dark-yellow);
  font-weight: 700;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
}

.salary-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--black);
  color: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Основные кнопки */
.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-yellow);
  color: var(--black);
  box-shadow: 0 5px 15px var(--shadow);
}

.btn-primary:hover {
  background: var(--dark-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark-gray);
  border: 2px solid var(--secondary-yellow);
}

.btn-secondary:hover {
  background: var(--light-yellow);
  border-color: var(--primary-yellow);
  transform: translateY(-2px);
}

.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

/* Визуализация зарплаты */
.salary-visualization {
  margin-top: 25px;
  padding: 20px;
  background: var(--light-yellow);
  border: 2px solid var(--secondary-yellow);
  border-radius: 15px;
}

.salary-chart {
  width: 100%;
}

.salary-scale {
  margin: 15px 0;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chart-title {
  font-weight: 600;
  color: var(--dark-gray);
}

.selected-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-yellow);
}

.scale-track {
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  position: relative;
  margin: 10px 0;
}

.scale-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-yellow), var(--primary-yellow));
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s ease;
}

.scale-marker {
  position: absolute;
  top: -2px;
  height: 12px;
  width: 4px;
  background: var(--dark-yellow);
  border-radius: 2px;
  left: 0%;
  transition: left 0.8s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dark-gray);
  margin-top: 8px;
}

.salary-info {
  text-align: center;
  margin-top: 15px;
}

.monthly-equivalent {
  font-size: 14px;
  color: var(--dark-gray);
  font-style: italic;
}

/* Безопасность */
.security-block {
  margin-top: 40px;
  padding: 25px;
  background: var(--white);
  border: 2px solid var(--secondary-yellow);
  border-radius: 15px;
}

.security-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.security-header h3 {
  color: var(--dark-gray);
  font-size: 20px;
}

.security-header i {
  color: var(--dark-yellow);
  font-size: 24px;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.security-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: var(--light-yellow);
  border-radius: 10px;
  border: 1px solid var(--secondary-yellow);
}

.security-item i {
  color: var(--dark-yellow);
  font-size: 18px;
  margin-top: 2px;
}

.security-text strong {
  color: var(--dark-gray);
  font-size: 14px;
}

.security-text span {
  color: var(--dark-gray);
  opacity: 0.8;
  font-size: 13px;
}

/* Telegram блок */
.telegram-reviews-block {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--white), var(--light-yellow));
  border: 2px solid #0088cc;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.15);
}

.telegram-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.telegram-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0088cc, #229ED9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-header-content h3 {
  color: var(--dark-gray);
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}

.telegram-subtitle {
  color: #0088cc;
  font-size: 14px;
  font-weight: 500;
}

.telegram-preview {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 136, 204, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 136, 204, 0.1);
}

.channel-avatar {
  width: 40px;
  height: 40px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.channel-details h4 {
  margin: 0;
  color: var(--dark-gray);
  font-size: 16px;
  font-weight: 600;
}

.channel-details p {
  margin: 0;
  color: #0088cc;
  font-size: 14px;
  font-weight: 500;
}

.verified-badge {
  color: #28a745;
  font-size: 18px;
  margin-left: auto;
}

.telegram-description {
  color: var(--dark-gray);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.telegram-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  background: linear-gradient(135deg, #0088cc, #229ED9);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
  background: linear-gradient(135deg, #229ED9, #0088cc);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
  text-decoration: none;
  color: white;
}

.btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.btn-content {
  flex: 1;
  text-align: left;
}

.btn-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.btn-subtitle {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.telegram-btn i:last-child {
  font-size: 16px;
  opacity: 0.8;
}

.telegram-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: rgba(0, 136, 204, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 136, 204, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 136, 204, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
}

.stat-icon {
  width: 35px;
  height: 35px;
  background: #0088cc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: #0088cc;
}

.stat-label {
  font-size: 12px;
  color: var(--dark-gray);
  opacity: 0.7;
}

/* Полноэкранные модальные уведомления */
.notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notification.show {
  opacity: 1;
  visibility: visible;
}

.notification-content {
  background: var(--white);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--primary-yellow);
}

.notification.show .notification-content {
  transform: scale(1);
}

.notification-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--black);
  animation: iconSuccess 0.6s ease-out 0.2s both;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.notification.error .notification-icon {
  background: #dc3545;
  color: white;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.notification.warning .notification-icon {
  background: #ff9800;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
}

.notification-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 15px;
  animation: textSlide 0.6s ease-out 0.4s both;
}

.notification-text {
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.8;
  animation: textSlide 0.6s ease-out 0.6s both;
}

.notification-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Анимации */
@keyframes iconSuccess {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes textSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
  .notification-content {
    padding: 40px 30px;
    width: 95%;
  }
  
  .notification-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  .notification-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .notification-text {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

/* Дополнительные состояния */
.notification.info {
  background: rgba(59, 130, 246, 0.95);
  border-color: rgba(59, 130, 246, 0.3);
  color: white;
}

/* Анимированные иконки */
.animated-icon {
  color: var(--dark-yellow);
  transition: all 0.3s ease;
}

.animated-icon:hover {
  color: var(--primary-yellow);
  transform: scale(1.1);
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: var(--white);
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  border: 2px solid var(--primary-yellow);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-gray);
}

.close-btn:hover {
  color: var(--dark-yellow);
}

/* Валидация иконки */
.validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
}

.validation-icon.success {
  opacity: 1;
  color: #28a745;
}

.validation-icon.error {
  opacity: 1;
  color: #dc3545;
}

.validation-icon.success::before {
  content: '✓';
}

.validation-icon.error::before {
  content: '✗';
}

.input-wrapper {
  position: relative;
}

/* Сообщения об ошибках */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.error-message.show {
  display: block;
  opacity: 1;
  animation: errorSlide 0.3s ease-out;
}

@keyframes errorSlide {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Улучшения для select */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9-7 7-7-7'/%3e%3c/svg%3e");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 45px;
}

/* Улучшения для кнопок */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .form-container {
    padding: 30px 20px;
    margin: 0;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
  }
  
  .header h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .header p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .company-logo span {
    font-size: 26px;
  }
  
  .official-badge {
    padding: 10px 15px;
    gap: 10px;
  }
  
  .badge-title {
    font-size: 10px;
  }
  
  .badge-number {
    font-size: 9px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input,
  .form-group select {
    padding: 16px 18px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  .salary-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .salary-btn {
    padding: 16px 12px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
  }
  
  .form-progress {
    padding: 15px;
    margin: 20px 0;
  }
  
  .progress-info {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
  
  .security-block {
    padding: 20px 15px;
    margin-top: 25px;
  }
  
  .security-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .security-item {
    padding: 12px;
  }
  
  .telegram-reviews-block {
    padding: 20px 15px;
    margin-top: 25px;
  }
  
  .telegram-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .telegram-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .form-container {
    padding: 20px 15px;
    border-radius: 15px;
  }
  
  .header h1 {
    font-size: 24px;
  }
  
  .company-logo span {
    font-size: 22px;
  }
  
  .form-group input,
  .form-group select {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .salary-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .salary-btn {
    padding: 18px;
    font-size: 16px;
  }
  
  .salary-visualization {
    padding: 15px;
  }
  
  .chart-title {
    font-size: 14px;
  }
  
  .selected-amount {
    font-size: 16px;
  }
  
  .btn {
    padding: 16px;
    font-size: 15px;
  }
  
  .security-features {
    gap: 8px;
  }
  
  .security-item {
    padding: 10px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .telegram-btn {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .notification-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .notification-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }
  
  .notification-title {
    font-size: 20px;
  }
  
  .notification-text {
    font-size: 13px;
  }
}

/* Оптимизация для тач-интерфейса */
@media (hover: none) {
  .salary-btn:hover,
  .btn:hover,
  .form-group input:hover,
  .form-group select:hover {
    transform: none;
  }
  
  .salary-btn:active {
    transform: scale(0.95);
  }
  
  .btn:active {
    transform: scale(0.95);
  }
}

/* Улучшения для скролла на мобильном */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .form-container {
    min-height: auto;
  }
  
  /* Центрирование элементов на мобильном */
  .header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .logo {
    align-items: center;
    justify-content: center;
  }
  
  .form-actions {
    align-items: center;
    justify-content: center;
  }
  
  .telegram-reviews-block {
    text-align: center;
  }
  
  .security-block {
    text-align: center;
  }
}
