/* Base Styles */
:root {
  --primary: #1a1a2e;
  --primary-dark: #16213e;
  --primary-light: #0f3460;
  --accent: #ff6b35;
  --accent-dark: #e55a2b;
  --accent-light: #ff8a65;
  --secondary: #f8f9fa;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(26, 26, 46, 0.1);

  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-mixed: linear-gradient(135deg, var(--primary), var(--accent));

  /* Тени */
  --shadow-accent: 0 4px 12px rgba(255, 107, 53, 0.2);
  --shadow-primary: 0 4px 12px rgba(26, 26, 46, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  position: relative;
  overflow-x: hidden;
}

/* Фоновые декоративные элементы */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.02) 0%, transparent 70%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(26, 26, 46, 0.015) 0%, transparent 70%);
  z-index: -1;
  animation: float 25s ease-in-out infinite reverse;
}

/* Унифицированный фоновый градиент для всех секций */
.section,
.hero-section,
.benefits-section,
.pricing-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.section::before,
.hero-section::before,
.benefits-section::before,
.pricing-section::before,
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(26, 26, 46, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.01) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* Убираем все границы между секциями */
.section {
  border: none !important;
  margin: 0 !important;
  padding: 6rem 0 !important;
}

.hero-section {
  border: none !important;
  margin: 0 !important;
}

.benefits-section {
  border: none !important;
  margin: 0 !important;
  background: none !important;
}

.pricing-section {
  border: none !important;
  margin: 0 !important;
  background: none !important;
}

.contact-section {
  border: none !important;
  margin: 0 !important;
  background: none !important;
}

/* Заменяем крупные декоративные элементы на мелкую сетку */
.decoration-circle,
.geometric-shape,
.hero-decoration {
  display: none !important;
}

/* Новая мелкая сетка */
.dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 107, 53, 0.1) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(26, 26, 46, 0.05) 1px, transparent 0);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

/* Добавляем сетку к секциям */
.section::after,
.hero-section::after,
.benefits-section::after,
.pricing-section::after,
.contact-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 107, 53, 0.08) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(26, 26, 46, 0.04) 1px, transparent 0);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Анимации для декоративных элементов */
.decoration-circle {
  animation: pulse 4s ease-in-out infinite;
}

.decoration-circle.large {
  animation: pulse 6s ease-in-out infinite;
}

.decoration-circle.medium {
  animation: pulse 5s ease-in-out infinite;
}

.decoration-circle.small {
  animation: pulse 3s ease-in-out infinite;
}

.geometric-shape {
  animation: float 8s ease-in-out infinite;
}

.geometric-shape.triangle {
  animation: float 10s ease-in-out infinite;
}

.geometric-shape.square {
  animation: rotate 20s linear infinite;
}

.geometric-shape.circle {
  animation: pulse 7s ease-in-out infinite;
}

/* Анимации для карточек */
.benefit-card,
.pricing-card,
.feature-card {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-card:nth-child(1) {
  animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
  animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

/* Hover эффекты для декоративных элементов */
.decoration-circle:hover,
.geometric-shape:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Декоративные круги */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.decoration-circle.primary {
  background: var(--primary);
}

.decoration-circle.accent {
  background: var(--accent);
}

.decoration-circle.large {
  width: 300px;
  height: 300px;
}

.decoration-circle.medium {
  width: 150px;
  height: 150px;
}

.decoration-circle.small {
  width: 80px;
  height: 80px;
}

/* Геометрические фигуры */
.geometric-shape {
  position: absolute;
  opacity: 0.05;
  z-index: -1;
}

.geometric-shape.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid var(--accent);
}

.geometric-shape.square {
  width: 100px;
  height: 100px;
  background: var(--primary);
  transform: rotate(45deg);
}

.geometric-shape.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
}

/* Сетка точек */
.dot-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(26, 26, 46, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  z-index: -1;
}

/* Волновые линии */
.wave-decoration {
  position: absolute;
  width: 100%;
  height: 100px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.1) 50%, transparent 100%);
  opacity: 0.5;
  z-index: -1;
}

.wave-decoration.top {
  top: 0;
  transform: rotate(180deg);
}

.wave-decoration.bottom {
  bottom: 0;
}

/* Градиентные фоны для секций */
.gradient-bg {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.02) 0%, rgba(255, 107, 53, 0.02) 100%);
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a2e' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--gray);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.user-name {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 400;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(26, 26, 46, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark);
  border: 2px solid var(--light-gray);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
}

.section-description {
  font-size: 1.125rem;
}

.bg-light {
  background-color: var(--secondary);
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem;
  text-align: center;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

/* Декоративные элементы для hero */
.hero-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-decoration.circle-1 {
  top: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.hero-decoration.circle-2 {
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(26, 26, 46, 0.1);
  border-radius: 50%;
  animation: rotate 25s linear infinite reverse;
}

.hero-decoration.triangle {
  bottom: 20%;
  left: 20%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(255, 107, 53, 0.1);
  animation: float 15s ease-in-out infinite;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.benefit-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-card.highlight {
  border: 2px solid var(--accent);
  position: relative;
}

.benefit-card.highlight::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.1;
}

.benefit-icon {
  margin-bottom: 1.5rem;
}

.benefit-title {
  margin-bottom: 1rem;
}

.benefit-description {
  margin-bottom: 1.5rem;
}

.benefit-features {
  list-style: none;
}

.benefit-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.benefit-features li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.pricing-section .container {
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.pricing-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  position: relative;
  transform: scale(1.05);
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.1;
}

.pricing-card.featured:after {
  content: "Рекомендуем";
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--dark);
}

.price span {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.price-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 1.5rem 0;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--secondary);
  padding: 4rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info .section-title {
  color: #0f172a;
  /* Темный цвет для заголовка */
  margin-bottom: 1rem;
}

.contact-info .section-subtitle {
  color: #64748b;
  /* Серый цвет для подзаголовка */
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #475569;
  /* Темно-серый для текста */
}

.contact-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* Адаптивность */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    justify-content: center;
  }
}

/* Animation Placeholder */
.animation-placeholder {
  background: var(--light-gray);
  height: 300px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--white);
}

.cta-section .section-title,
.cta-section .section-description {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .user-info {
    gap: 0.125rem;
  }

  .user-name {
    font-size: 0.7rem;
    max-width: 100px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Скрываем декоративные элементы на мобильных */
  .decoration-circle,
  .geometric-shape,
  .hero-decoration {
    display: none;
  }

  /* Уменьшаем фоновые градиенты */
  body::before,
  body::after {
    opacity: 0.5;
  }

  .hero-section::before,
  .benefits-section::before,
  .pricing-section::before {
    opacity: 0.3;
  }
}

@media (max-width: 576px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .user-info {
    order: -1;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .user-name {
    max-width: none;
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }

  /* Дополнительные настройки для очень маленьких экранов */
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .benefit-card,
  .pricing-card {
    padding: 1.5rem;
  }
}

/* Light Footer */
.footer {
  background-color: #ffffff;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--dark);
}

.footer-tagline {
  color: #64748b;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-cta .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.footer-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 1.5rem 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.links-column {
  display: flex;
  flex-direction: column;
}

.links-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

.links-column a {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.links-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.copyright {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-links a {
  color: #64748b;
  font-size: 0.875rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.legal-links a:hover {
  color: var(--accent);
}

.divider {
  color: #cbd5e1;
  user-select: none;
}

@media (max-width: 640px) {
  .footer-bottom-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .legal-links {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
}


/* Footer Navigation */
.footer-nav {
  margin: 2rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a:not(:last-child):after {
  content: "•";
  position: absolute;
  right: -1rem;
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .footer-links {
    gap: 1rem;
    justify-content: flex-start;
  }

  .footer-links a:after {
    display: none;
  }
}