/* ============================================
   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; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
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; }

/* ── Дропдаун профиля ── */
.ff-profile-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0,0,0,.13);
  min-width: 196px;
  padding: 6px 0;
  z-index: 1010;
  border: 1px solid rgba(0,0,0,.06);
  animation: fadeIn .2s ease both;
}
.ff-profile-dropdown.open { display: block; }

/* Треугольник */
.ff-profile-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  border-left: 1px solid rgba(0,0,0,.06);
  transform: rotate(45deg);
  z-index: -1;
}

.ff-profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border-radius: 0;
  transition: background .18s ease;
  pointer-events: auto;
}
.ff-profile-dropdown-item:hover { background: rgba(0,0,0,.04); }
.ff-logout-item { color: #d94444; }

/* ── 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; /* info + tabs + content-zone(237) + отступ снизу */
  position: absolute;
  top:  251px;
  left: calc(50% - 680px);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  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,.13);
  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;
}

/* Переключатель: Загрузить файл | Вставить ссылку */
.mode-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  position: absolute;
  top: 54px;
  left: 19px;
}
.mode-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 10px;
  background: #e9e9e9;
  border: none;
  cursor: pointer;
  font-family: var(--font-r);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.2s ease;
}
.mode-tab:first-child { border-radius: 10px 0 0 10px; }
.mode-tab:last-child { border-radius: 0 10px 10px 0; margin-left: 1px; }
.mode-tab:hover { background: #ddd; }
.mode-tab:active { transform: scale(0.98); }
.mode-tab.active {
  background: var(--white);
  color: var(--brown);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Контент: зона загрузки или ссылки */
.content-zone {
  position: absolute;
  top: 109px;
  left: 19px;
  width: 552px;
  height: 237px;
  overflow: hidden;
}
.content-zone .upload-area {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.content-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.35s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.content-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transform: translateY(0);
}

/* Режим ссылки */
.link-area.content-panel {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 1px dashed rgba(150,128,122,.4);
  background: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.link-area.content-panel.active {
  display: flex;
}
.link-area-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(150,128,122,.3);
}
.link-area .link-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-r);
  color: var(--dark);
  background: transparent;
}
.link-area .link-input::placeholder {
  color: #9f9f9f;
}
.link-area .link-input:focus {
  outline: none;
}
.link-area .link-submit {
  flex-shrink: 0;
  padding: 10px 18px;
  height: auto;
  font-size: 13px;
  font-family: var(--font-r);
  font-weight: 600;
  color: var(--white);
  background: var(--brown);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.link-area .link-submit:hover {
  background: var(--brown-mid);
}
.link-area .link-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.link-area-hint {
  margin-top: 12px;
  font-family: var(--font-r);
  font-size: 11px;
  color: #737373;
  text-align: center;
}

.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;
}
.content-zone .upload-area {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.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: 50%;
  transform: translateX(-50%);
  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: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Иконка резюме */
.resume-icon {
  width:  76.4px;
  height: 60px;
  position: absolute;
  top:  26px;
  left: calc(50% - 38px);
  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;
  /* 278px (от карточки) − 109px (старт upload-area) = 169px; чуть выше → 165px */
  top:  165px;
  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;
  z-index: 2;
  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:  165px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}
.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. Информационная панель (правая колонка) ── */
/* upload-card заканчивается на left: calc(50%-680px)+593px = calc(50%-87px) = 633px
   info-panel начинается на calc(50%-47px) = 673px → зазор 40px */
.info-panel {
  background: var(--white);
  border: 1px solid #c8c8c8;
  border-radius: 20px;
  width:  348px;
  height: 372px;
  position: absolute;
  top:  251px;
  left: calc(50% - 47px);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  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,.13);
  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. Секция результатов ── */
/* Отступ от upload-card: 251+312=563, +28px зазор → 591px */
.results-section {
  display: none;
  position: absolute;
  top:  651px;
  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);
}

/* ── Адаптивные стили для фиксированной шапки ── */
@media (max-width: 1439px) {
  .logo-nav-group {
    left: 20px;
  }
  .pro-badge {
    left: auto;
    right: 70px;
  }
  .user-avatar-wrap {
    left: auto;
    right: 16px;
  }
  .header-line {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav-container {
    display: none;
  }
  .pro-badge {
    right: 70px;
  }
}

@media (max-width: 480px) {
  .pro-badge {
    display: none;
  }
  .user-avatar-wrap {
    right: 12px;
  }
}

/* ══════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤ 768px)
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── Контейнер ── */
  .page-container {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    transform: none !important;
    padding: 0 16px;
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .page-container.has-results {
    min-height: auto !important;
  }

  /* ── Шапка ── */
  .header-bg {
    height: 62px;
  }
  .logo-nav-group {
    top: 14px;
    left: 16px;
    gap: 20px;
  }
  .nav-container {
    display: none;
  }
  .pro-badge {
    display: none;
  }
  .user-avatar-wrap {
    display: none;
  }
  .header-line {
    top: 61px;
  }

  /* ── Заголовки ── */
  .page-title {
    position: relative;
    top: auto;
    left: auto;
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 8px;
  }
  .page-subtitle {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  /* ══ КАРТОЧКА ЗАГРУЗКИ — полная перестройка в flex для мобилок ══ */

  /* Сама карточка: вертикальный flex с отступами */
  .upload-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  /* 1. Строка «Как происходит проверка» — в поток */
  .info-section {
    position: relative;
    top: auto;
    left: auto;
  }

  /* 2. Переключатель вкладок: Загрузить файл | Вставить ссылку */
  .mode-tabs {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    flex-shrink: 0;
    display: flex;
  }
  .mode-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }
  .mode-tab svg {
    width: 10px;
    height: 12px;
    flex-shrink: 0;
  }

  /* 3. Контент: зона загрузки или ссылки */
  .content-zone {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 240px;
    min-height: 240px;
    flex-shrink: 0;
  }

  /* 4. Зона перетаскивания (режим «Загрузить файл») */
  .content-zone .upload-area {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* 4b. Режим «Вставить ссылку» — на мобилках */
  .link-area.content-panel {
    width: 100%;
    height: 100%;
    min-height: 240px;
    padding: 16px 12px;
  }
  .link-area.content-panel.active {
    display: flex;
  }
  .link-area-inner {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    padding: 10px 12px;
    gap: 8px;
  }
  .link-area .link-input {
    font-size: 16px; /* предотвращает зум при фокусе на iOS */
    min-width: 0;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
  }
  .link-area .link-submit {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
    background: var(--brown);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .link-area-inner {
    background: var(--white);
    border: 1px solid rgba(150,128,122,.3);
    border-radius: 10px;
  }
  .link-area-hint {
    font-size: 11px;
    line-height: 14px;
    margin-top: 10px;
    padding: 0 4px;
    flex-shrink: 0;
  }

  .upload-area {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 240px;
    flex-shrink: 0;
    /* Исправление отзеркаливания на мобильных */
    animation: none;
    background-size: auto;
    transform: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  /* Рамка — заполняет контейнер */
  .upload-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: none;
  }

  /* Иконка, текст, кнопка — те же пропорции что на ПК (26, 96, 128, 165 из 237 → масштаб на 240px) */
  .resume-icon {
    position: absolute;
    top: 26px;
    left: calc(50% - 38px);
  }

  .upload-title {
    position: absolute;
    top: 97px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    white-space: normal;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
  }

  .upload-subtitle {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
  }

  .select-btn {
    position: absolute;
    top: 167px;
    left: 50%;
    transform: translateX(-50%);
    align-self: unset;
    margin-top: 0;
    white-space: nowrap;
    z-index: 2;
  }
  .select-btn:hover {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 4px 14px rgba(150,128,122,.5);
  }

  .checking-btn {
    position: absolute;
    top: 167px;
    left: 50%;
    transform: translateX(-50%);
    align-self: unset;
    margin-top: 0;
    white-space: nowrap;
    z-index: 2;
  }

  /* Прогресс-бар */
  .upload-progress {
    width: calc(100% - 40px);
  }

  /* 5. Режим ссылки (Вставить ссылку) — на мобилках */
  .link-area.content-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 16px 12px;
    border-radius: 12px;
    gap: 0;
  }
  .link-area.content-panel.active {
    display: flex;
  }
  .link-area-inner {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    padding: 10px 12px;
  }
  .link-area .link-input {
    font-size: 16px; /* предотвращает авто-зум на iOS при фокусе */
    min-height: 44px; /* удобная область нажатия для touch */
  }
  .link-area .link-submit {
    padding: 10px 18px;
    min-height: 44px;
    font-size: 13px;
  }
  .link-area-hint {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 8px;
  }

  /* На очень узких экранах — input и кнопка друг под другом */
  @media (max-width: 400px) {
    .link-area-inner {
      flex-direction: column;
      gap: 12px;
    }
    .link-area .link-input {
      width: 100%;
    }
    .link-area .link-submit {
      width: 100%;
      justify-content: center;
    }
  }

  /* Иконка-цепочка — слева от текста, оба прижаты к правому краю */
  .link-icon {
    left: auto;
    right: 130px;
  }

  /* Убираем hover-трансформ карточки на мобилах (touch не поддерживает нормально) */
  .upload-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Инфо-панель — убираем hover */
  .info-panel:hover {
    transform: none;
    box-shadow: none;
  }

  /* ── Индикатор загрузки ── */
  .loading-analysis {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 20px;
  }

  /* ── Информационная панель ── */
  .info-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    margin-bottom: 20px;
  }
  /* На мобилке content в потоке, чтобы панель расширялась под текст */
  .info-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 22px 22px 22px 23px;
    box-sizing: border-box;
  }

  /* ── Секция результатов ── */
  .results-section {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }
  .result-score-card {
    width: 100%;
    height: auto;
    min-height: 262px;
    overflow: visible;
    padding-bottom: 16px;
  }
  .score-inner-area {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 28px);
    margin: 14px auto 0;
    height: auto;
    min-height: 182px;
    padding-bottom: 16px;
  }
  /* Дуга оценки — центруем на любой ширине */
  .circle-bg,
  .circle-progress {
    left: 50%;
    transform: translateX(-50%);
  }
  /* Сохраняем transition opacity для прогресс-дуги */
  .circle-progress {
    transition: opacity .5s ease .3s, transform 0s;
  }
  /* Текстовые элементы внутри score-inner-area */
  .score-display {
    top: 56px;
  }
  .score-title {
    top: 92px;
  }
  .score-subtitle {
    top: 126px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 260px;
  }
  .download-results-btn {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 28px);
    margin: 10px auto 0;
  }
  .result-card {
    width: 100%;
  }
  .issue-card {
    width: 100%;
  }
  .result-summary-card {
    width: 100%;
  }

  .score-badge {
    left: auto;
    right: 16px;
    top: 16px;
  }

  /* ── Бургер-кнопка ── */
  .ff-burger { display: flex !important; }
}

/* ══ БУРГЕР-МЕНЮ (first_function) ══ */

/* Скрыт по умолчанию на десктопе */
.ff-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 1002;
  position: fixed;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: none;
  transition: background 0.25s, box-shadow 0.25s;
  padding: 0;
}
.ff-burger:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
}
.ff-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #303030;
  border-radius: 3px;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1),
              opacity 0.28s ease,
              width 0.32s ease;
  transform-origin: center;
}
.ff-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ff-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.ff-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Оверлей — дизайн как на шаблоне (белый хедер, коричневая навигация, белая CTA) */
.ff-menu-overlay {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 1001;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.ff-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.3s ease, visibility 0s linear 0s, transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: auto;
}

/* Белый хедер с логотипом (как в шаблоне Бургер меню.htm) */
.ff-menu-overlay .mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 16px;
  background: #fff;
}
.ff-menu-overlay .mob-menu-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Логотип — круг с кругом внутри (как на всех страницах) */
.ff-menu-overlay .logo-icon-wrapper {
  background: #303030;
  border-radius: 100px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}
.ff-menu-overlay .logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.ff-menu-overlay .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ff-menu-overlay .mob-menu-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ff-menu-overlay .mob-menu-title {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #303030;
  line-height: 1.2;
}
.ff-menu-overlay .mob-menu-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #303030;
  line-height: 1.2;
}

/* Кнопка закрытия × (как в шаблоне: #eee, 34×32, border-radius 8px) */
.ff-menu-close {
  width: 34px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  background: #eee;
  border: none;
  line-height: 1;
  transition: background 0.2s ease;
}
.ff-menu-close:hover { background: #e5e5e5; }
.ff-menu-close svg { flex-shrink: 0; }

/* Линия под хедером (#d7d7d7 как в шаблоне) */
.ff-menu-overlay .mob-menu-divider-line {
  height: 1px;
  background: #d7d7d7;
}

/* Коричневая навигационная область (#a38881) — как в шаблоне */
.ff-menu-overlay .mob-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 20px;
  background: #a38881;
  overflow-y: auto;
}
.ff-menu-overlay .mob-menu-body > a:not(.mob-menu-cta):not(.mob-menu-telegram) {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.ff-menu-overlay .mob-menu-body > a:not(.mob-menu-cta):not(.mob-menu-telegram):last-of-type { margin-bottom: 0; }
.ff-menu-overlay .mob-menu-body > a:hover { color: rgba(255,255,255,0.9); }
.ff-menu-overlay .mob-menu-body > a.mob-nav-active { text-decoration: underline; }

/* Белая CTA-кнопка «Проверить резюме» — 354×40px, Raleway 14px 600 #4d4d4d */
.ff-menu-overlay .mob-menu-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff !important;
  color: #4d4d4d !important;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  border-radius: 10px;
  padding: 8px 30px !important;
  margin-top: 30px;
  margin-bottom: 0;
  height: 40px;
  max-width: 354px;
  align-self: center;
  text-decoration: none;
  width: 100%;
}
.ff-menu-overlay .mob-menu-cta:hover { background: #f5f5f5 !important; color: #333 !important; }
.ff-menu-overlay .mob-menu-cta svg { flex-shrink: 0; width: 15px; height: 15px; }

/* Нижний блок: копирайт слева, Telegram справа — как в шаблоне */
.ff-menu-overlay .mob-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
}
.ff-menu-overlay .mob-menu-copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.ff-menu-overlay .mob-menu-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #29a9ea !important;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  border-radius: 10px;
  padding: 3px 10px;
  text-decoration: none;
}
.ff-menu-overlay .mob-menu-telegram:hover { background: #2494d3 !important; color: #fff !important; }
.ff-menu-overlay .mob-menu-telegram svg { flex-shrink: 0; width: 20px; height: 20px; }

/* Белая линия внизу — Line_141 */
.ff-menu-overlay .mob-menu-footer-line {
  height: 1px;
  background: #fff;
  margin: 0 20px;
}

/* На десктопе оверлей скрыт */
@media (min-width: 769px) {
  .ff-menu-overlay { display: none !important; }
}
