:root {
  --bg: #f7f7fb;
  --panel: #ffffff;
  --text: #0f1020;
  --muted: #5f647a;
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-50: #f3f0ff;
  --secondary: #f1f5f9;
  --accent: #10b981;
  --border: #e6e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f9 100%);
  color: var(--text);
  line-height: 1.6;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--primary);
}

.logo {
  font-size: 24px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--panel);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.2;
  color: var(--text);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-illustration {
  margin-top: 40px;
}

.migration-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.os-box {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 30px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.os-box:hover {
  transform: translateY(-2px);
}

.old-os {
  color: #dc2626;
  border-color: #fecaca;
}

.new-os {
  color: var(--accent);
  border-color: #a7f3d0;
}

.arrow {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--panel);
}

.services h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 60px;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.service-card p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--primary-600);
}

/* Why Us Section */
.why-us {
  padding: 80px 0;
  background: var(--secondary);
}

.why-us h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 60px;
  color: var(--text);
}

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

.advantage {
  text-align: center;
}

.advantage-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.advantage-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Cases Section */
.cases {
  padding: 80px 0;
  background: var(--panel);
}

.cases h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 60px;
  color: var(--text);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.case-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text);
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.case-item:last-child {
  border-bottom: none;
}

.case-item strong {
  color: var(--primary);
  font-weight: 600;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background: var(--secondary);
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 60px;
  color: var(--text);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 24px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.faq-question:hover {
  background: var(--primary-50);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.6;
  display: none;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--panel);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

.about-text p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-avatar {
  font-size: 120px;
  background: var(--primary-50);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background: var(--secondary);
}

.form-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--text);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--panel);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: var(--panel);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-group input::placeholder {
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94a3b8;
  margin: 0;
}

.footer-contacts h3,
.footer-links h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-icon {
  font-size: 18px;
}

.contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
}

/* Services Page Styles */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.page-hero p {
  font-size: 20px;
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-detail {
  padding: 80px 0;
  background: var(--panel);
}

.service-detail-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 60px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-2px);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.service-icon-large {
  font-size: 64px;
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.service-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.service-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.service-content {
  padding: 40px;
}

.service-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.service-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features strong {
  color: var(--text);
  font-weight: 600;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

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

.step-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.step-content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tech-item {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  word-wrap: break-word;
  hyphens: auto;
}

.tech-item:hover {
  background: var(--primary-50);
  border-color: var(--primary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--secondary);
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.benefit-text {
  font-weight: 600;
  color: var(--text);
}

.support-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.support-level {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.support-level:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.support-level h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.support-level ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-level li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.support-level li:last-child {
  border-bottom: none;
}

.support-level li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 16px;
  }

  .nav {
    gap: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

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

  .migration-diagram {
    flex-direction: column;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .services-grid,
  .advantages-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }

  /* Services page responsive */
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .service-icon-large {
    font-size: 48px;
    padding: 16px;
  }

  .service-title h2 {
    font-size: 28px;
  }

  .service-content {
    padding: 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .tech-item {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .support-levels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .services,
  .why-us,
  .cases,
  .faq,
  .about,
  .form-section {
    padding: 60px 0;
  }

  .service-card,
  .case-card {
    padding: 24px;
  }
}