/* NAZARIS — Футуристичный профессиональный дизайн */

:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #151520;
  --bg-card-hover: #1a1a28;
  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --text-muted: #6b6b7f;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.3);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(99, 102, 241, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Light theme */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b6b7f;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.2);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(99, 102, 241, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at var(--bg-pos-x, 20%) var(--bg-pos-y, 50%), rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at var(--bg-pos-x2, 80%) var(--bg-pos-y2, 80%), rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease-out, opacity 0.3s;
  animation: bg-pulse 8s ease-in-out infinite;
}

@keyframes bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

[data-theme="light"] body::before {
  opacity: 0.35;
  background: 
    radial-gradient(circle at var(--bg-pos-x, 20%) var(--bg-pos-y, 50%), rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at var(--bg-pos-x2, 80%) var(--bg-pos-y2, 80%), rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="light"] .header {
  background: rgba(248, 249, 250, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
}

.logo-accent {
  width: 4px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.header-phone:hover {
  color: var(--accent-primary);
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  transition: var(--transition);
}

.header-icon:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  margin-right: 8px;
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.theme-icon {
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

[data-theme="light"] .hero-bg {
  background: 
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text-primary);
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-text {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-accent);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 48px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title-number {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: var(--accent-primary);
  opacity: 0.5;
}

/* About Section */
.section-about {
  background: var(--bg-secondary);
}

.about-content {
  max-width: 900px;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p {
  margin: 0 0 24px;
}

.about-lead {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 32px !important;
}

.highlight {
  color: var(--accent-primary);
  font-weight: 600;
}

.about-result {
  margin-top: 32px !important;
  padding: 24px;
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  font-size: 20px;
}

.about-result strong {
  color: var(--text-primary);
}

/* Services Section */
.section-services {
  background: var(--bg-primary);
}

.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--border-hover);
}

.service-item.active {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  gap: 24px;
}

.service-toggle:hover {
  background: rgba(99, 102, 241, 0.05);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.service-item h3 {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.service-arrow {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.service-item.active .service-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 32px;
}

.service-item.active .service-content {
  max-height: 500px;
  padding: 0 32px 24px 100px;
}

.service-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

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

/* Stats Section */
.section-stats {
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.stat-number {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Why Us Section */
.section-why-us {
  background: var(--bg-primary);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  perspective: 1000px;
}

.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  order: 0;
  position: relative;
  overflow: hidden;
}

.why-us-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.why-us-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  animation: icon-float 3s ease-in-out infinite;
}

.why-us-card-icon svg {
  width: 28px;
  height: 28px;
}

.why-us-card-icon--rocket { animation-delay: 0s; background: rgba(99, 102, 241, 0.12); }
.why-us-card-icon--shield { animation-delay: 0.2s; background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.why-us-card-icon--zap { animation-delay: 0.4s; background: rgba(234, 179, 8, 0.12); color: #eab308; }
.why-us-card-icon--users { animation-delay: 0.6s; background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.why-us-card-icon--trending { animation-delay: 0.8s; background: rgba(99, 102, 241, 0.12); }
.why-us-card-icon--repeat { animation-delay: 1s; background: rgba(139, 92, 246, 0.12); }
.why-us-card-icon--lock { animation-delay: 1.2s; background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.why-us-card-icon--headphones { animation-delay: 1.4s; background: rgba(20, 184, 166, 0.12); color: #14b8a6; }
.why-us-card-icon--target { animation-delay: 1.6s; background: rgba(249, 115, 22, 0.12); color: #f97316; }
.why-us-card-icon--globe { animation-delay: 1.8s; background: rgba(99, 102, 241, 0.12); }
.why-us-card-icon--pie { animation-delay: 2s; background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.why-us-card-icon--award { animation-delay: 2.2s; background: rgba(239, 68, 68, 0.12); color: #ef4444; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.why-us-card h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.why-us-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Form Section */
.section-contact-form {
  background: var(--bg-secondary);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.file-label:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  color: var(--text-primary);
}

.file-text {
  font-size: 14px;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-primary);
}

.form-message {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.form-message.success {
  color: #10b981;
}

.form-message.error {
  color: #ef4444;
}

/* Contacts Section */
.section-contacts {
  background: var(--bg-primary);
}

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

.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
}

.contact-item h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-primary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.footer-contacts a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .nav,
  .header-contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header.open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
  }

  [data-theme="light"] .header.open .nav {
    background: rgba(248, 249, 250, 0.98);
  }

  .header.open .header-contacts {
    display: flex;
    position: absolute;
    top: calc(100% + 200px);
    left: 24px;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .service-toggle {
    padding: 20px 24px;
  }
  
  .service-content {
    padding-left: 24px !important;
  }
  
  .service-item.active .service-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  
  .service-header {
    gap: 16px;
  }
  
  .service-icon {
    width: 40px;
    height: 40px;
  }
  
  .service-item h3 {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 28px 20px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .header-inner {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .contact-form {
    padding: 24px 16px;
  }
}
