/* Сброс и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --tech-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #bdc3c7;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e9ecef;
  --bg-body: #0f0f23;
  --bg-container: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Переменные темной темы */
[data-theme="dark"] {
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-light: #999999;
  --bg-light: #1a1a1a;
  --bg-card: #2a2a2a;
  --border-color: #444444;
  --bg-body: #0a0a0a;
  --bg-container: rgba(30, 30, 30, 0.95);
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Кнопка переключения темы */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--primary-gradient);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Анимация фона */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-body) 0%, #1a1a3e 50%,#2d2d5f 100%);
  transition: var(--transition);
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: -15s;
}

.shape-5 {
  width: 140px;
  height: 140px;
  top: 10%;
  left: 60%;
  animation-delay: -7s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
    opacity: 0.4;
  }
  66% {
    transform: translateY(30px) rotate(240deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.7;
  }
}

/* Контейнер */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bg-container);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  position: relative;
  transition: var(--transition);
}

/* Раздел Hero */
.hero {
  background: #6975DD;
  color: var(--text-primary);
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

/* Обновленная сетка для блока hero в светлом режиме */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(120, 130, 223, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(120, 130, 223, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

/* Добавляем обводку для больших клеток 4x4 в светлом режиме */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(120, 130, 223, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(120, 130, 223, 0.6) 1px, transparent 1px);
  background-size: 80px 80px; /* 4x4 от основной сетки 20px */
  z-index: 1;
}

/* Темная тема для hero */
[data-theme="dark"] .hero {
  background: #1B1B1F;
  color: white;
}

/* Обновленная сетка для блока hero в темном режиме */
[data-theme="dark"] .hero::before {
  background-image: 
    linear-gradient(90deg, rgba(54, 54, 57, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(54, 54, 57, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Добавляем обводку для больших клеток 4x4 в темном режиме */
[data-theme="dark"] .hero::after {
  background-image: 
    linear-gradient(90deg, rgba(54, 54, 57, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(54, 54, 57, 0.6) 1px, transparent 1px);
  background-size: 80px 80px; /* 4x4 от основной сетки 20px */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Обновляем стили для элементов героя в светлой теме */
.hero .name-text {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: initial;
}

.hero .title {
  color: rgba(255, 255, 255, 0.9);
}

.hero .tech-item {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .platform {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
}

/* Тематическая тема для элементов hero */
[data-theme="dark"] .hero .name-text {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hero .title {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero .tech-item {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hero .platform {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hero .cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.name {
  position: relative;
  margin-bottom: 20px;
}

.name-text {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.name-underline {
  width: 100px;
  height: 4px;
  background: var(--tech-gradient);
  margin: 10px auto;
  border-radius: 2px;
  animation: expand 2s ease-out;
}

@keyframes expand {
  0% {
    width: 0;
  }
  100% {
    width: 100px;
  }
}

.title {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.5;
}

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tech-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.platform {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.platform:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.platform i {
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.cta-button.primary {
  background: var(--tech-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.6);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-decoration {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.3;
}

.code-lines {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  text-align: left;
}

.code-line {
  margin-bottom: 5px;
  animation: typewriter 3s steps(40) infinite;
}

.code-line:nth-child(2) {
  animation-delay: 1s;
}

.code-line:nth-child(3) {
  animation-delay: 2s;
}

@keyframes typewriter {
  0%, 90%, 100% {
    opacity: 0.3;
  }
  45% {
    opacity: 0.8;
  }
}

/* Содержимое */
.content {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.deco-line {
  width: 50px;
  height: 2px;
  background: var(--primary-gradient);
}

.deco-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* О разделе */
.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-list h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.feature-content span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Раздел услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--success-gradient);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 25px;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.feature-tag {
  background: var(--bg-light);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.price.free {
  background: var(--success-gradient);
  color: white;
}

.service-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Раздел контактов */
.contact {
  background: var(--bg-light);
  padding: 60px 40px;
  border-radius: var(--border-radius-lg);
  margin: 0 20px;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--primary-color);
  width: 25px;
  text-align: center;
}

.contact-item span {
  font-weight: 500;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Исправление кнопки Telegram */
.telegram-btn {
  background: #0088cc !important;
  color: white !important;
  border: 2px solid #0088cc !important;
}

.telegram-btn:hover {
  background: #006699 !important;
  border-color: #006699 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4) !important;
}

/* Адаптивный дизайн */
@media (max-width: 1200px) {
  .content {
    padding: 60px 30px;
  }
  .hero {
    padding: 60px 30px;
  }
  .contact {
    margin: 0 10px;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  .name-text {
    font-size: 2.5rem;
  }
  .title {
    font-size: 1.1rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .platforms {
    gap: 15px;
  }
  .platform {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  .tech-stack {
    gap: 10px;
  }
  .tech-item {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .feature-item {
    padding: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-decoration {
    display: none;
  }
  .content {
    padding: 40px 20px;
  }
  .hero {
    padding: 40px 20px;
  }
  .contact {
    margin: 0 5px;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .name-text {
    font-size: 2rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .about p {
    font-size: 1.1rem;
  }
  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .service-card {
    padding: 30px 20px;
  }
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .platforms {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .platform {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Анимация прокрутки */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Анимация контента героя */
.hero-content > * {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.8s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 1s;
}

.hero-content > *:nth-child(6) {
  animation-delay: 1.2s;
}

/* Пользовательская полоса прокрутки */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Состояния фокуса */
.cta-button:focus, .contact-item:focus, .theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Состояния загрузки */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Стили, характерные для темной темы */
[data-theme="dark"] .bg-animation {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .contact-item {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .contact {
  background: var(--bg-light);
}

[data-theme="dark"] .feature-tag {
  background: #333333;
  color: #cccccc;
  border-color: #555555;
}

[data-theme="dark"] .service-note {
  color: var(--text-secondary);
}

/* Режим высокой контрастности */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #666666;
  }
  .service-card, .feature-item, .contact-item {
    border-width: 2px;
  }
}

/* Уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-shapes {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Стили печати */
@media print {
  .bg-animation, .floating-shapes, .hero-decoration, .theme-toggle {
    display: none !important;
  }
  .container {
    background: white;
  }
  .hero {
    background: white;
    color: black;
  }
  .cta-button {
    display: none;
  }
  .contact-item {
    color: black !important;
  }
}

/* Служебные классы */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

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

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  user-select: none;
}

/* Доступность */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Видимый фокус */
.cta-button:focus-visible,
.contact-item:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Задержки анимации для ступенчатых эффектов */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* Эффекты наведения */
.hover-lift:hover {
  transform: translateY(-5px);
}

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 320px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .name-text {
        font-size: 1.8rem;
    }
    .hero {
        padding: 30px 15px;
    }
    .content {
        padding: 30px 15px;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .service-card {
        padding: 25px 15px;
    }
    .feature-item {
        padding: 15px;
    }
    .contact {
        padding: 25px 15px;
        margin: 0;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .content {
        max-width: 1400px;
    }
    .hero-content {
        max-width: 1400px;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
    .content {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1600px;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 50px 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Theme Transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Ensure full width on all devices */
@media (max-width: 1024px) {
    .container {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Fix for very small screens */
@media (max-width: 280px) {
    .name-text {
        font-size: 1.6rem;
    }
    
    .platform {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .tech-item {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

        .cursor-glow {
            position: fixed;
            width: 50px;  /* В 2 раза меньше */
            height: 50px; /* В 2 раза меньше */
            border-radius: 50%;
            background: radial-gradient(
                circle at center,
                rgba(0, 255, 170, 0.8) 0%,
                rgba(0, 255, 170, 0) 70%
            );
            pointer-events: none;
            transform: translate(-50%, -50%);
            filter: blur(4px);
            z-index: 9999;
            transition: transform 0.05s linear;
        }

/* Test rule */
/*.services { border: 2px solid red !important; }*/
.contact { border: 2px solid blue !important; }
