/* ========================================
   COMPONENTS.CSS - Компоненты интерфейса v2.0
   ======================================== */

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  gap: 1rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate);
  position: relative;
  z-index: 1001;
  white-space: nowrap;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

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

.nav a {
  text-decoration: none;
  color: var(--color-text-gray);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

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

.nav-cta-desktop {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
  white-space: nowrap;
}

.nav-cta-desktop:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-interactive);
  color: white;
}

.nav-cta-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-slate);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  text-align: center;
}

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

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
}

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

/* --- Cards --- */
.premium-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.premium-card-accent {
  border-left: 4px solid var(--color-accent-gold);
  position: relative;
  overflow: hidden;
}

.premium-card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-gold-subtle);
  z-index: -1;
}

.card-accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* --- Section Headers --- */
.section-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header {
  max-width: 800px;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

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

.section-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Grids --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tech-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(37, 99, 235, 0.2);
}

.tech-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* --- Quotes --- */
.quote-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border-left: 4px solid var(--color-accent-gold);
  padding: 2rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.process-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.process-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Популярное';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 1.5rem 0;
}

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* --- FAQ --- */
.faq-grid {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-ice-blue);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  display: none;
  color: var(--color-text-gray);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}