:root {
  --primary-color: #ff6b00;
  --secondary-color: #ff8b33;
  --accent-color: #ff9d4d;
  --dark-color: #0f172a;
  --light-color: #ffffff;
  --gray-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff8b33 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --header-height: 70px;
  --header-height-mobile: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.03) 0%, transparent 20%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== НОВЫЙ ХЕДЕР ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
  height: var(--header-height);
  animation: headerSlideDown 0.5s ease-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  height: 100%;
  padding: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}

.logo-icon i {
  color: white;
  font-size: 1.2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Основное меню */
.nav-main {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 0.05;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition);
}

.nav-link:hover i {
  transform: scale(1.2);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.nav-link.active::before {
  display: none;
}

.nav-link.active i {
  color: white;
}

/* Кнопка закрытия меню (скрыта на десктопе) */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  transition: var(--transition);
}

.nav-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* Кнопка мобильного меню (скрыта на десктопе) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark-color);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle:hover span {
  background: var(--primary-color);
}

/* Оверлей для мобильного меню */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */
.main-content {
  padding-top: calc(var(--header-height) + 40px);
}

/* Hero Section */
.hero-section {
  margin: 0 0 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  padding-right: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--gradient-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-text {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 6px;
  font-weight: 500;
}

.hero-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 350px;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 107, 0, 0.05), transparent);
  z-index: 1;
}

.hero-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* Content Sections */
.content-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.content-section.visible::before {
  transform: scaleX(1);
}

/* Section Header */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}

.section-header h2 i {
  color: var(--primary-color);
  font-size: 1.6rem;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Text Content */
.content-section p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  line-height: 1.8;
}

.content-section strong {
  color: var(--dark-color);
  font-weight: 600;
  background-color: rgba(255, 107, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Info Card */
.info-card {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1.3rem;
}

.info-card h3 i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  background: var(--gradient-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 107, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(255, 107, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: white;
  font-size: 1.8rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Seller Section */
.seller-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.seller-text {
  padding-right: 1rem;
}

.seller-list {
  list-style: none;
  margin: 1.5rem 0;
}

.seller-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--gray-color);
}

.seller-list li:hover {
  background: rgba(16, 185, 129, 0.05);
  transform: translateX(5px);
}

.seller-list i {
  color: var(--success-color);
  font-size: 1.1rem;
}

.seller-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 300px;
}

.seller-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Security Section */
.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.security-item {
  padding: 1.5rem;
  background: rgba(255, 107, 0, 0.03);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 107, 0, 0.1);
  transition: var(--transition);
}

.security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.security-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.security-item h3 i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.advantage-card {
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 107, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.advantage-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 107, 0, 0.1);
}

.advantage-card h3 {
  margin-bottom: 0.8rem;
  color: var(--dark-color);
  font-size: 1.2rem;
}

.advantage-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Guide Section */
.guide-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  background: var(--gradient-light);
  transition: var(--transition);
}

.step:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.step-content p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.warning-note {
  background-color: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.warning-note i {
  color: var(--warning-color);
  font-size: 1.5rem;
  margin-top: 3px;
}

.warning-note p {
  margin-bottom: 0;
  color: var(--dark-color);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  color: var(--accent-color);
  font-size: 2rem;
}

.footer-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* ==================== АДАПТИВНОСТЬ ==================== */

/* Планшеты (768px и меньше) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .logo-main {
    font-size: 1.2rem;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-image {
    height: 280px;
    order: -1;
  }
  
  .content-section {
    padding: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .hero-stats {
    gap: 1rem;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 110px;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .seller-info,
  .guide-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .seller-image,
  .guide-image {
    height: 250px;
  }
}

/* Мобильные (576px и меньше) */
@media (max-width: 576px) {
  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 1.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-main.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .nav-link {
    padding: 14px 16px;
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.95rem;
  }
  
  .nav-link i {
    width: 24px;
    font-size: 1.1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-close {
    display: block;
  }
  
  .nav-overlay {
    display: block;
  }
  
  .nav-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-image {
    height: 220px;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .features-grid,
  .security-features,
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    width: 100%;
    min-width: auto;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-text {
    font-size: 1rem;
  }
  
  .seller-image,
  .guide-image {
    height: 200px;
  }
}

/* Очень маленькие экраны (375px и меньше) */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  
  .nav-container {
    padding: 0 12px;
  }
  
  .logo-text {
    display: none;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .content-section {
    padding: 1.2rem;
  }
  
  .feature-card {
    padding: 1.2rem;
  }
}

/* Улучшенная анимация для активной навигации */
.nav-link.active {
  animation: activePulse 2s infinite;
}

@keyframes activePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
  }
}

/* Стили для изображений */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Убедимся, что все изображения показываются */
.hero-image img,
.seller-image img,
.guide-image img {
  opacity: 1 !important;
  transition: transform 0.5s ease;
}

/* Исправление для body padding-top */
body {
  padding-top: 0;
}

.main-content {
  padding-top: calc(var(--header-height) + 20px);
}

/* Эффект параллакса для десктопа */
@media (min-width: 769px) {
  .header.scrolled {
    height: 60px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  }
  
  .header.scrolled .logo-icon {
    width: 36px !important;
    height: 36px !important;
  }
  
  .header.scrolled .logo-main {
    font-size: 1.2rem !important;
  }
}