/* =========================================================
   CRYSTAL AIR SURFACE — идеальная подложка под стекло
========================================================= */

body {
  background: linear-gradient(180deg, #f9fbff 0%, #f4f6fc 100%) fixed;
  position: relative;
  overflow-x: hidden;
  margin: 0;
}


/* =========================================================
   HOME — BASE
========================================================= */
.home {
  font-family: "Inter", system-ui, sans-serif;
  color: #1e293b;
}

.home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .home-container {
    padding: 0 20px;
  }
}

/* =========================================================
   HERO
========================================================= */
.home-hero {
  padding: 180px 0 140px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 30%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 220%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(79,70,229,0.06),
    rgba(6,182,212,0.04),
    transparent 70%
  );
  filter: blur(140px);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
}

.home-hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.home-hero-title span {
  display: block;
}

.home-gradient {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  font-size: 22px;
  color: #475569;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .home-hero-title { font-size: 52px; }
  .home-hero-subtitle { font-size: 20px; }
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
  position: relative;
  overflow: hidden;
}

.home-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.home-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.home-cta-btn:hover::after {
  left: 100%;
}

/* =========================================================
   HERO VISUAL — Floating CV Sheet (Enhanced v3)
========================================================= */

.home-hero-visual {
  position: relative;
}

/* Основной лист резюме */
.home-resume-preview {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 44px 40px;
  width: 440px; /* немного шире для баланса */
  aspect-ratio: 0.72;

  /* Мягкая текстура бумаги (лёгкая, не грузит GPU) */
  background-image:
    url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='300' height='300' fill='%23ffffff'/%3E%3Ccircle cx='150' cy='150' r='1' fill='%23e5e7eb' opacity='0.25'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  background-size: 300px 300px, cover;

  box-shadow:
    0 18px 50px rgba(0,0,0,0.10),
    0 0 0 1px rgba(226,232,240,0.8);

  /* Поворот листа */
  transform: perspective(1200px) rotate(8deg) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: homeFloat 6s ease-in-out infinite;
}

/* Стопка листов */
.home-resume-preview::before,
.home-resume-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 32px rgba(0,0,0,0.06);
  z-index: -1;
}

/* Нижние листы — плотнее и аккуратнее */
.home-resume-preview::before {
  transform: translate(10px, 12px) rotate(6deg);
  opacity: 0.28; /* было 0.7 — теперь плотнее */
}

.home-resume-preview::after {
  transform: translate(20px, 22px) rotate(7deg);
  opacity: 0.18; /* было 0.5 — теперь мягче */
}

.home-resume-preview:hover {
  transform: perspective(1200px) rotate(8deg) rotateY(-3deg) rotateX(1deg) translateY(-10px);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.14),
    0 0 0 1px rgba(226,232,240,0.9);
}

/* Парение */
@keyframes homeFloat {
  0%,100% { transform: perspective(1200px) rotate(8deg) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotate(8deg) rotateY(-6deg) rotateX(2deg) translateY(-16px); }
}

/* =========================================================
   Фото профиля (увеличено)
========================================================= */
.home-preview-photo {
  width: 100px;   /* было 86px */
  height: 100px;
  border-radius: 50%;
  background: #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px; /* было 48px */
}

/* =========================================================
   Двухколоночный макет
========================================================= */
.home-preview-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

.home-preview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.home-preview-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Имитация текста */
.home-preview-line {
  height: 12px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 6px;
  opacity: 0.85;
}

/* Дополнительные строки */
.home-preview-line.small {
  height: 8px;
  opacity: 0.55;
}

.home-preview-line.wide { width: 92%; }
.home-preview-line.mid { width: 70%; }
.home-preview-line.short { width: 45%; }

.home-preview-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 6px 0 4px;
}

.home-preview-line.xs {
  height: 6px;
  opacity: 0.45;
}

.home-preview-line.full {
  width: 100%;
}

/* =========================================================
   Декоративные элементы
========================================================= */
.home-floating {
  position: absolute;
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: #4f46e5;

  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  animation: homeFloatElement 4s ease-in-out infinite;
}

.home-floating.el1 {
  top: -30px;
  right: -40px;
  animation-delay: 0.4s;
}

.home-floating.el2 {
  bottom: 10px;
  left: -100px;
  animation-delay: 0.9s;
}

@keyframes homeFloatElement {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

/* =========================================================
   FEATURES — Editorial Premium v4 (Two Columns + Divider)
========================================================= */

.home-features {
  padding: 160px 0;
  background: white;
}

/* HEADER */
.home-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 100px;
}

.home-section-header h2 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1f2937, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-section-header p {
  font-size: 22px;
  color: #475569;
  line-height: 1.6;
}

/* TWO-COLUMN LIST */
.home-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* VERTICAL DIVIDER */
.home-features-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(226,232,240,0.7);
  transform: translateX(-0.5px);
}

/* ROW */
.home-feature-row {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(226,232,240,0.6);
  min-height: 160px; /* фиксируем высоту */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.25s ease;
}

/* убираем смещение текста при hover */
.home-feature-row:hover {
  transform: translateX(4px);
}

/* TITLE WITH INLINE ICON */
.home-feature-row h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ICON */
.home-feature-icon-inline {
  width: 52px;
  height: 52px;
  border-radius: 16px;

  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 28px rgba(79,70,229,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature-row:hover .home-feature-icon-inline {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 16px 36px rgba(79,70,229,0.25);
}

/* TEXT */
.home-feature-row p {
  font-size: 19px;
  color: #475569;
  line-height: 1.7;
  max-width: 520px;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.home-feature-row:hover p {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 900px) {
  .home-features-list {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-features-list::before {
    display: none;
  }

  .home-feature-row {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .home-section-header h2 {
    font-size: 40px;
  }

  .home-feature-row h3 {
    font-size: 22px;
    gap: 14px;
  }

  .home-feature-icon-inline {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .home-feature-row p {
    font-size: 17px;
  }
}

/* =========================================================
   STEPS
========================================================= */
.home-steps {
  padding: 120px 0;
  background: #f8fafc;
}

.home-steps-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.home-step-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.home-step-item:nth-child(even) {
  direction: rtl;
}

.home-step-item:nth-child(even) .home-step-content {
  direction: ltr;
}

/* =========================================================
   NUMBER ABOVE CARD
========================================================= */

.home-step-number {
  width: 80px;
  height: 80px;
  border-radius: 20px;

  background: white;
  border: 2px solid rgba(79,70,229,0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 38px;
  font-weight: 900;
  color: #4f46e5;

  box-shadow:
    0 12px 32px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);

  margin-bottom: -30px;
  z-index: 3;
  position: relative;
}

.home-step-number span {
  position: relative;
  z-index: 2;
}

.home-step-number::before {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.05));
  z-index: 1;
}

/* =========================================================
   CARD
========================================================= */

.home-step-content {
  width: 100%;
  padding: 48px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.8);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.06),
    0 0 0 1px rgba(226,232,240,0.4),
    inset 0 1px 0 rgba(255,255,255,0.8);

  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  position: relative;
  text-align: left;
}

.home-step-content:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.1),
    0 0 0 1px rgba(226,232,240,0.6),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* верхняя цветная полоска */
.home-step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 28px 28px 0 0;
  margin: 0 15px;
  top: 1px;
}

/* =========================================================
   ICON INSIDE H3
========================================================= */

.home-step-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;

  display: flex;
  align-items: center;
  gap: 14px;
}

.home-step-icon-inline {
  width: 48px;
  height: 48px;
  border-radius: 14px;

  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 24px rgba(79,70,229,0.18);
  transition: transform 0.3s ease;
}

.home-step-content:hover .home-step-icon-inline {
  transform: scale(1.1) rotate(4deg);
}

/* =========================================================
   TEXT
========================================================= */

.home-step-content p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.6;
}

.home-step-extra {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* =========================================================
   HIGHLIGHT
========================================================= */

.home-step-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 0;
  margin-top: 16px;

  border-left: 3px solid #10b981;
  padding-left: 12px;

  font-size: 14px;
  font-weight: 500;
  color: #334155;

  background: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.home-step-highlight i {
  color: #10b981;
  font-size: 16px;
  margin-top: 2px;
}

.home-step-content:hover .home-step-highlight {
  transform: none;
  box-shadow: none;
  background: none;
  border-color: #10b981;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .home-step-content {
    padding: 32px;
    text-align: center;
  }

  .home-step-content h3 {
    justify-content: center;
  }

  .home-step-highlight {
    justify-content: center;
  }
}

/* =========================================================
   CTA FINAL — Premium Flow CTA (no card)
========================================================= */

.home-cta-final {
  padding: 200px 0 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  position: relative;
  overflow: hidden;
}

/* Светящаяся дуга */
.home-cta-final::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  height: 1200px;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(79,70,229,0.12),
    rgba(6,182,212,0.08),
    transparent 70%
  );
  filter: blur(160px);
  z-index: 0;
}

.home-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Заголовок */
.home-cta-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;

  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Подзаголовок */
.home-cta-subtitle {
  font-size: 22px;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Чипы-тезисы */
.home-cta-chips {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.home-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 24px;
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
  font-weight: 600;
  border-radius: 999px;
  font-size: 16px;
  border: 1px solid rgba(79,70,229,0.15);

  transition: all 0.25s ease;
}

.home-cta-chip i {
  font-size: 18px;
  color: #4f46e5;
  opacity: 0.9;
}

.home-cta-chip:hover {
  background: rgba(79,70,229,0.12);
  transform: translateY(-2px);
}

/* Кнопка — единый стиль с Hero */
.home-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 20px 40px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
  position: relative;
  overflow: hidden;
}

.home-cta-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.home-cta-large::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.home-cta-large:hover::after {
  left: 100%;
}

/* Примечание */
.home-cta-note {
  font-size: 15px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.home-cta-note i {
  font-size: 18px; /* чуть крупнее */
  transform: translateY(2px); /* лёгкое смещение вниз */
  
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  opacity: 0.9;
  font-weight: 900;

  text-shadow:
    0 2px 6px rgba(79, 70, 229, 0.25),
    0 0 2px rgba(79, 70, 229, 0.35);

  transition: all 0.25s ease;
}

.home-cta-note:hover i {
  transform: translateY(3px) scale(1.08);
  text-shadow:
    0 3px 10px rgba(79, 70, 229, 0.35),
    0 0 3px rgba(79, 70, 229, 0.45);
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes homeFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-hero-content,
.home-feature-card,
.home-step-item,
.home-cta-card {
  animation: homeFadeIn 0.5s ease-out forwards;
}

.home-step-item:nth-child(1) { animation-delay: 0.1s; }
.home-step-item:nth-child(2) { animation-delay: 0.2s; }
.home-step-item:nth-child(3) { animation-delay: 0.3s; }
.home-step-item:nth-child(4) { animation-delay: 0.4s; }

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .home-hero-content,
  .home-feature-card,
  .home-step-item,
  .home-cta-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   HOME FOOTER — Minimal Premium Footer
========================================================= */

.home-footer {
  padding: 60px 0 40px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.home-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  text-align: center;
}

.home-footer-bottom p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.home-footer-links {
  display: flex;
  gap: 24px;
}

.home-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.home-footer-links a:hover {
  color: #4f46e5;
}

/* Mobile */
@media (max-width: 480px) {
  .home-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
