/* ============================================
   LULU WORK — Проверить резюме
   ============================================ */

/* ── 1. Переменные ── */
:root {
  --brown:      #96807a;
  --brown-mid:  #a38881;
  --brown-light:#c4a59a;
  --blue:       #43acff;
  --green:      #4CAF50;
  --dark:       #1c1c1c;
  --gray-bg:    #eee;
  --border:     #d9d9d9;
  --white:      #ffffff;

  --font-r: 'Raleway',    sans-serif;
  --font-m: 'Montserrat', sans-serif;
  --font-i: 'Inter',      sans-serif;
}

/* ── 2. Сброс ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* scroll-padding-top: фиксированная шапка 93px + небольшой зазор */
html { scroll-padding-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
input { font: inherit; background: none; border: none; outline: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ── 3. Анимации ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineExpand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.8; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes starPulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.6; transform: scale(1.25); }
}
@keyframes borderPulse {
  0%, 100% { border-color: rgba(150,128,122,.35); box-shadow: none; }
  50%       { border-color: rgba(196,165,154,.65); box-shadow: 0 0 0 3px rgba(196,165,154,.12); }
}
@keyframes shimmer {
  0%   { background-position: 0 0; }
  100% { background-position: 800px 0; }
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes gradientRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 4. Обёртка страницы ── */
.page-wrapper {
  background: var(--white);
  min-height: 100vh;
}

/* Фиксированный 1440px канвас */
.page-container {
  background: var(--white);
  width:     1440px;
  min-width: 1440px;
  /* Высота по умолчанию — только форма загрузки */
  min-height: 740px;
  margin: 0 auto;
  position: relative;
  /* overflow: visible — без hidden, иначе браузер некорректно
     считает скролл-диапазон и нельзя вернуться в начало */
}
/* Когда показаны результаты — контейнер расширяется ровно до нужного */
.page-container.has-results {
  min-height: 2620px;
}

/* ── 5. Шапка ── */

/* Белый фон шапки — всегда поверх контента при скролле */
.header-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 93px;
  background: var(--white);
  z-index: 1000;
}

/* Контейнер-строка: логотип + nav-links */
.logo-nav-group {
  display: flex;
  align-items: center;
  gap: 33px;
  position: fixed;
  top: 31.5px;
  left: calc(50vw - 680px);
  z-index: 1001;
  animation: slideInLeft .7s ease .05s both;
}

/* Логотип */
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon-wrapper {
  background: #303030;
  border-radius: 100px;
  width:  32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  border-radius: 20px;
  width:  22px;
  height: 22px;
  overflow: hidden;
  position: absolute;
  top: 5px;
  left: 5px;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-title {
  color: #303030;
  font-family: var(--font-r);
  font-size: 10px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

/* Навигационные ссылки */
.nav-container {
  display: flex;
  align-items: center;
  gap: 33px;
}

.nav-link {
  color: #000;
  font-family: var(--font-m);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  transition: color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover  { color: var(--brown); }
.nav-link.active { text-decoration: underline; }

/* ── 6. PRO-кнопка ── */
.pro-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background-image: url('https://eirena-kvvt6dtty5.figweb.site/cdn-cgi/imagedelivery/s-dfVpmPR-aKHmwFNwAgnQ/eirena-kvvt6dtty5.figweb.site-4745ffa39f41928671a2c1828ab3e5f8edef090a/public');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 6px 20px;
  cursor: pointer;
  position: fixed;
  top: 26px;
  left: calc(50vw + 480px);
  z-index: 1001;
  transition: transform .35s cubic-bezier(.68,-.55,.265,1.55),
              box-shadow .35s ease;
  animation: fadeIn .7s ease .3s both;
}
.pro-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 28px rgba(60,50,50,.4);
}
.pro-icon { width: 10px; height: 10px; flex-shrink: 0; }
.pro-text {
  color: var(--white);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

/* ── 7. Иконка пользователя ── */
.user-avatar-wrap {
  position: fixed;
  top: 27px;
  left: calc(50vw + 636px);
  z-index: 1001;
  animation: fadeIn .7s ease .35s both;
}

.avatar-bg {
  background: #eee;
  border-radius: 10px;
  width:  44px;
  height: 40px;
}

.avatar-icon {
  position: absolute;
  top:  8px;
  left: 12px;
  width:  20px;
  height: 23px;
}

.avatar-head {
  background: #000;
  border-radius: 50%;
  width:  10px;
  height: 10px;
  margin: 0 auto 3px;
}

.avatar-icon svg { display: block; }

/* ── 8. Разделительная линия ── */
.header-line {
  position: fixed;
  top:    92px;
  left:   0;
  width:  100%;
  height: 1px;
  background: #303030;
  transform-origin: left center;
  z-index: 1000;
  animation: lineExpand .6s ease .1s both;
}

/* ── 9. Заголовки страницы ── */
.page-title {
  position: absolute;
  top:  139px;
  left: calc(50% - 680px);
  color: #000;
  font-family: var(--font-r);
  font-size: 35px;
  font-weight: 600;
  line-height: 24px;
  animation: fadeInUp .7s ease .2s both;
}

.page-subtitle {
  position: absolute;
  top:   183px;
  left:  calc(50% - 680px);
  width: 593px;
  color: #303030;
  font-family: var(--font-r);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  animation: fadeInUp .7s ease .25s both;
}

/* ── 10. Карточка загрузки (левая колонка) ── */
.upload-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  width:  593px;
  height: 372px;
  position: absolute;
  top:  251px;
  left: calc(50% - 680px);
  overflow: hidden;
  animation: scaleIn .65s ease .3s both;
  transition: box-shadow .35s ease, transform .35s ease;
}
.upload-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform:  translateY(-2px);
}

/* Строка «Как происходит проверка» */
.info-section {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top:  15px;
  left: 19px;
}
.info-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.info-icon {
  width:  17px;
  height: 17px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Переключатель вкладок */
.link-section {
  position: absolute;
  top:  54px;
  left: 19px;
  width: 308px;
  height: 35px;
}
.link-container {
  background: #e9e9e9;
  border-radius: 10px;
  width:  308px;
  height: 34px;
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
}
.link-placeholder {
  color: #9f9f9f;
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  position: absolute;
  top: 5px;
  left: 191px;
}
.link-input {
  background: var(--white);
  border-radius: 8px;
  width:  148px;
  height: 24px;
  position: absolute;
  top: 5px; left: 5px;
}
.link-icon {
  position: absolute;
  top:  12px;
  left: 160px;
}
.upload-options {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 5px; left: 19px;
}
.upload-icon { width: 7.9px; display: flex; flex-shrink: 0; }
.upload-text {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

/* Зона перетаскивания */
.upload-area {
  border-radius: 0;
  width:  552px;
  height: 237px;
  position: absolute;
  top:  109px;
  left: 19px;
  background-size: 400% 400%;
  animation: gradientRotate 9s ease infinite;
}
.upload-area.drag-over { transform: scale(1.015); }
.upload-area.drag-over .upload-border {
  border-color: var(--blue);
  background:   rgba(67,172,255,.05);
  animation: pulse 1.5s ease-in-out infinite;
}

.upload-border {
  background: #eee;
  border: 1px dashed rgba(150,128,122,.4);
  border-radius: 15px;
  width:  552px;
  height: 237px;
  position: absolute;
  top: 0; left: 0;
  transition: all .3s ease;
  animation: borderPulse 4s ease-in-out infinite;
}

.upload-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  position: absolute;
  top:  96px;
  left: 148px;
  white-space: nowrap;
}
.upload-subtitle {
  color: #464646;
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  position: absolute;
  top:  128px;
  left: 215px;
  white-space: nowrap;
}

/* Иконка резюме */
.resume-icon {
  width:  76.4px;
  height: 60px;
  position: absolute;
  top:  26px;
  left: 230px;
  animation: floatIcon 3.5s ease-in-out infinite;
}

/* Загруженный файл */
.file-info {
  display: none;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  animation: fadeIn .3s ease;
}
.file-info.show { display: flex; }

.file-name {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 500;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  cursor: pointer;
  color: #999;
  transition: color .2s;
  flex-shrink: 0;
}
.file-remove:hover { color: #e53935; }

/* Прогресс-бар */
.upload-progress {
  display: none;
  position: absolute;
  bottom: 16px;
  left:   50%;
  transform: translateX(-50%);
  width:  260px;
  animation: fadeIn .3s ease;
}
.upload-progress.show { display: block; }

.progress-bar {
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #a38881 8%, #c4a59a 18%, #a38881 33%);
  background-size: 800px 104px;
  animation: shimmer 2s infinite linear;
  transition: width .3s ease;
}

/* Кнопка «Выбрать» */
#file-input { display: none; }

.select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--brown);
  border-radius: 10px;
  padding: 8px 30px;
  cursor: pointer;
  position: absolute;
  /* Subtitle ends at ~261px in card coords (109 upload-area top + 128 subtitle + 24px height).
     Button placed 10px below, centered in card width. */
  top:  278px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-r);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.select-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 4px 14px rgba(150,128,122,.5);
}

/* Кнопка «Идёт проверка…» */
.checking-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 20px;
  background-image: url('https://eirena-kvvt6dtty5.figweb.site/cdn-cgi/imagedelivery/s-dfVpmPR-aKHmwFNwAgnQ/eirena-kvvt6dtty5.figweb.site-4745ffa39f41928671a2c1828ab3e5f8edef090a/public');
  background-size: cover;
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  position: absolute;
  top:  278px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.checking-btn.show { display: flex; }

.checking-star-icon {
  width: 11px; height: 11px; flex-shrink: 0;
  animation: starPulse 1.4s ease-in-out infinite;
}

/* ── 11. Индикатор анализа ── */
.loading-analysis {
  display: none;
  position: absolute;
  top:  251px;
  left: calc(50% - 680px);
  width: 593px;
  padding: 60px 40px;
  text-align: center;
  animation: fadeIn .4s ease;
}
.loading-analysis.show { display: block; }

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loading-icon-wrapper {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--brown) 0%, #b8968e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-icon {
  width: 30px; height: 30px;
  animation: spin 1.4s linear infinite;
}
.loading-icon path { stroke: var(--white); }

.loading-text-wrapper { display: flex; flex-direction: column; gap: 8px; }
.loading-main-text {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 23px;
  font-weight: 600;
  line-height: 24px;
}

/* ── 12. Информационная панель (правая колонка) ── */
.info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  width:  348px;
  height: 372px;
  position: absolute;
  top:  251px;
  left: calc(50% - 59px);
  overflow: hidden;
  animation: fadeInUp .7s ease .35s both;
  transition: box-shadow .35s ease, transform .35s ease;
}
.info-panel:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform:  translateY(-2px);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top:  22px;
  left: 23px;
  width: 300px;
}

.info-heading {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
}

.info-list {
  list-style: disc;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-list li {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
}

.info-accent {
  background: var(--brown-mid);
  border-radius: 100px;
  width:  3px;
  height: 30px;
  position: absolute;
  top:  26px;
  left: 15px;
}

/* ── 13. Секция результатов ── */
.results-section {
  display: none;
  position: absolute;
  top:  643px;
  left: calc(50% - 680px);
  width: 593px;
  animation: fadeInUp .55s cubic-bezier(.4,0,.2,1) both;
}
.results-section.show { display: block; }

/* ── Карточка с оценкой ── */
.result-score-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  width:  593px;
  height: 262px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  animation: fadeInUp .5s ease .05s both;
}

.score-inner-area {
  background: #eee;
  border: 1px solid var(--white);
  border-radius: 15px;
  width:  549px;
  height: 182px;
  position: absolute;
  top:  14px;
  left: 17px;
}

.circle-bg,
.circle-progress {
  position: absolute;
  width:  93px;
  height: 49px;
  top:  33px;
  left: 228px;
}
.circle-bg       { z-index: 1; }
.circle-progress { z-index: 2; opacity: 0; transition: opacity .5s ease .3s; }
.circle-progress.show { opacity: 1; }

.score-display {
  position: absolute;
  top: 56px; left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
}
.score-value {
  color: var(--dark);
  font-family: var(--font-i);
  font-size: 23px;
  font-weight: 600;
  line-height: 24px;
}
.score-max {
  color: #717070;
  font-family: var(--font-i);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.score-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  position: absolute;
  top: 91px; left: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.score-subtitle {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  width: 260px;
  position: absolute;
  top:  125px;
  left: calc(50% - 130px);
}

/* Бейдж */
.score-badge {
  background: var(--blue);
  border-radius: 100px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  position: absolute;
  top:  29px;
  left: 454px;
  animation: fadeIn .5s ease .25s both;
}
.score-badge span {
  color: var(--white);
  font-family: var(--font-r);
  font-size: 10px;
  font-weight: 600;
  line-height: 24px;
}
.score-badge.good   { background: var(--green); }
.score-badge.medium { background: #FF9800; }
.score-badge.bad    { background: #F44336; }

/* Кнопка скачивания */
.download-results-btn {
  background: #eee;
  border-radius: 10px;
  padding: 4px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top:  206px;
  left: 17px;
  width: 549px;
  cursor: pointer;
  transition: background .2s;
  animation: fadeIn .5s ease .3s both;
}
.download-results-btn:hover { background: #e0e0e0; }
.download-results-btn span {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

/* ── Карточка «Что хорошо» ── */
.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  width:  593px;
  min-height: 292px;
  position: relative;
  margin-bottom: 20px;
  padding: 22px 23px;
  animation: fadeInUp .5s ease .12s both;
}

.result-card-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 18px;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 8px;
}

.result-card-list {
  list-style: disc;
  padding-left: 1.4em;
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
}
.result-card-list li { margin-bottom: 4px; }

.result-card-accent {
  background: var(--brown-mid);
  border-radius: 100px;
  width:  3px;
  height: 37px;
  position: absolute;
  top:  26px;
  left: 15px;
}

/* ── Карточки проблем ── */
.issue-card {
  background: #eee;
  border-radius: 15px;
  width:  593px;
  padding: 15px 19px 19px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInUp .5s ease both;
}

.issue-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.issue-icon-box {
  flex-shrink: 0;
  width:  30px;
  height: 30px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.issue-icon-svg { width: 18px; height: 18px; }

.issue-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  padding-top: 4px;
}

.issue-inner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  width:  100%;
  box-sizing: border-box;
  padding: 12px 11px;
}

.issue-inner-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 0 5px;
  color: var(--white);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 6px;
}
.issue-inner-badge.why { background: var(--brown); }
.issue-inner-badge.how { background: var(--green); }

.issue-inner-text {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 500;
  line-height: 150%;
}

/* ── Итоговая карточка ── */
.result-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  width:  593px;
  position: relative;
  margin-bottom: 60px;
  padding: 52px 29px 20px;
  animation: fadeInUp .5s ease .18s both;
}

.result-summary-title {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 18px;
  font-weight: 600;
  line-height: 130%;
  position: absolute;
  top:  19px;
  left: 43px;
}

.result-summary-icon {
  width:  21px;
  height: 21px;
  position: absolute;
  top:  20px;
  left: 18px;
}

.result-summary-content {
  color: var(--dark);
  font-family: var(--font-r);
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
}
.result-summary-content strong {
  font-family: var(--font-r);
  font-size: 18px;
  font-weight: 600;
  line-height: 150%;
  display: block;
  margin-bottom: 2px;
}
.result-summary-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-top: 4px;
}
.result-summary-content ul li {
  font-family: var(--font-r);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: var(--dark);
}
