@import url('./base.css');

/* ============================================
   HEADER - Фиксированный с тенью
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-header);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 80px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand a {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  text-transform: uppercase;
  transition: color 200ms ease;
}

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

.brand span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Навигация в одну линию */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.nav__link {
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background 200ms ease, color 200ms ease;
  font-weight: 500;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-purple);
  background: var(--color-purple-soft);
}

.nav__link.is-active {
  background: var(--color-purple-soft);
  color: var(--color-purple);
  font-weight: 600;
}

/* Бургер-меню */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 200ms ease;
}

.nav-toggle:hover {
  background: var(--color-panel-soft);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Переключатель языка - капсулы */
.language-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.25rem;
  background: var(--color-panel-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  gap: 0.15rem;
}

.language-switcher a {
  position: relative;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border-radius: 999px;
  z-index: 1;
  transition: color 200ms ease;
  font-weight: 600;
}

.language-switcher a.is-active {
  color: var(--color-purple);
}

.language-switcher::after {
  content: '';
  position: absolute;
  width: calc(50% - 0.35rem);
  height: calc(100% - 0.5rem);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease;
  transform: var(--lang-indicator, translateX(0));
}

/* ============================================
   HERO - Блок с карточкой "3 шага"
   ============================================ */
.hero {
  position: relative;
  padding: calc(var(--section-pad) * 1.3) 0 var(--section-pad);
  background: var(--color-bg);
  overflow: hidden;
}

.hero__grid,
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.hero__content,
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content h1,
.hero-content h1 {
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  font-size: 1.1875rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero__actions,
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.hero__note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* Карточка "3 шага" */
.hero__illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 420px;
}

.hero-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 200ms ease;
}

.hero-step:hover {
  transform: translateX(4px);
}

.hero-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(138, 79, 255, 0.3);
}

.hero-step__content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--color-heading);
}

.hero-step__content p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   КНОПКИ
   ============================================ */
.button {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  text-decoration: none;
  line-height: 1.5;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  color: white;
  box-shadow: var(--shadow-button);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 79, 255, 0.35);
  background: linear-gradient(135deg, var(--color-purple-hover), var(--color-purple));
}

.button--ghost {
  border: 2px solid var(--color-border-strong);
  color: var(--color-heading);
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--color-panel-soft);
  border-color: var(--color-purple);
  color: var(--color-purple);
  transform: translateY(-1px);
}

/* ============================================
   СЕКЦИЯ ДОВЕРИЯ - 3 карточки
   ============================================ */
.trust-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.trust-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.trust-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

.trust-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem 0;
  line-height: 1.7;
}

.trust-chart {
  margin-top: 1.5rem;
  height: 120px;
  background: var(--color-panel-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 1rem;
  gap: 0.5rem;
}

.trust-chart__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--color-purple), var(--color-purple-light));
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.trust-chart__bar:hover {
  opacity: 0.85;
  transform: scaleY(1.05);
}

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

.sources-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list__icon {
  width: 24px;
  height: 24px;
  color: var(--color-purple);
  flex-shrink: 0;
  font-size: 1.125rem;
}

.sources-list a {
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: color 200ms ease;
}

.sources-list a:hover {
  color: var(--color-purple);
}

.editorial-team {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.editorial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-card);
}

/* ============================================
   FEATURE CARDS - Карточки функций
   ============================================ */
.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-purple-soft);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   ОБЩИЕ КОМПОНЕНТЫ
   ============================================ */
.list-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.list-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.list-card p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.list-card .button {
  margin-top: 0.5rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: start;
}

.callout {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-blue-soft);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}

.callout h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--color-heading);
}

.callout ul {
  margin: 0;
  padding-left: 1.5rem;
}

.disclaimer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.disclaimer h2 {
  margin-top: 0;
  color: var(--color-heading);
}

.disclaimer p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.status-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-purple-soft);
  color: var(--color-purple);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: grid;
  gap: 1.25rem;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

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

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.faq-item__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.faq-item__question h3 {
  font-size: 1.1875rem;
  margin: 0;
  color: var(--color-heading);
}

.faq-item__answer {
  padding-left: 3.5rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq-item__answer p {
  margin: 0;
  font-size: 1rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  border-left: 2px solid var(--color-border);
  padding-left: 2.5rem;
  margin-left: 1rem;
}

.timeline-step {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -1.5rem;
  top: 0.25rem;
  background: var(--color-purple);
  box-shadow: 0 0 0 6px var(--color-purple-soft);
}

.timeline-step h3 {
  margin-bottom: 0.75rem;
}

.timeline-step p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ============================================
   POPULAR SECTION
   ============================================ */
.section#popular {
  background: var(--color-panel-soft);
  border-radius: var(--radius-xl);
  margin-top: var(--section-pad);
  padding: 4rem 0;
}

.section#popular .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ============================================
   RESPONSIBLE BLOCK
   ============================================ */
.responsible-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.responsible-block h3 {
  margin-top: 0;
  color: var(--color-heading);
}

.responsible-block p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.responsible-block ul {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-panel-soft);
  border-top: 1px solid var(--color-border);
  margin-top: var(--section-pad);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-nav,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a,
.footer-meta a {
  color: var(--color-text);
  display: inline-block;
  line-height: 1.6;
  font-size: 0.9375rem;
  transition: color 200ms ease;
}

.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--color-purple);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  background: var(--color-purple-soft);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 960px) {
  .site-header .container {
    min-height: 72px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem var(--container-pad);
    box-shadow: var(--shadow-hover);
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__grid,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__illustration {
    min-height: auto;
  }

  .hero-steps {
    max-width: 100%;
  }

  .hero__actions,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }

  .hero__content h1,
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero-steps {
    padding: 2rem;
    gap: 1.5rem;
  }

  .hero-step {
    gap: 1rem;
  }

  .hero-step__number {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .card,
  .callout,
  .disclaimer,
  .timeline,
  .faq-item,
  .trust-card,
  .feature-card,
  .list-card,
  .responsible-block {
    border-radius: var(--radius-md);
    padding: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .timeline {
    padding-left: 1.5rem;
    margin-left: 0.5rem;
  }

  .timeline-step::before {
    left: -0.75rem;
  }

  .faq-item__answer {
    padding-left: 0;
    margin-top: 1rem;
  }

  .button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
