/* ===== Токены оформления ===== */
/* Тёмная тема — по умолчанию; светлая включается атрибутом data-theme="light". */
:root,
:root[data-theme='dark'] {
  --bg: #0a0b12;
  --bg-soft: #11131f;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-solid: #151726;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eaf3;
  --text-dim: #9aa1bd;
  --accent: #7c6cf6;
  --accent-2: #b06cf6;
  --accent-soft: rgba(124, 108, 246, 0.16);
  --danger: #f4666a;
  --danger-soft: rgba(244, 102, 106, 0.12);
  --success: #3ad29f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --glow-1: rgba(124, 108, 246, 0.35);
  --glow-2: rgba(176, 108, 246, 0.25);
}

:root[data-theme='light'] {
  --bg: #f4f5fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-hover: #f7f8fd;
  --border: #e3e6f0;
  --border-strong: #cfd4e6;
  --text: #171a2b;
  --text-dim: #666e8c;
  --accent: #5b4bdb;
  --accent-2: #9333ea;
  --accent-soft: rgba(91, 75, 219, 0.1);
  --danger: #d92d3a;
  --danger-soft: rgba(217, 45, 58, 0.08);
  --success: #12996d;
  --shadow: 0 12px 32px rgba(23, 26, 43, 0.08);
  --glow-1: rgba(124, 108, 246, 0.18);
  --glow-2: rgba(176, 108, 246, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  /* Системные шрифты: ничего не грузится извне, страница не зависит от CDN. */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', 'Liberation Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Мягкие цветные пятна на фоне */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow--one { top: -180px; left: -120px; width: 480px; height: 480px; background: var(--glow-1); }
.glow--two { top: 240px; right: -160px; width: 420px; height: 420px; background: var(--glow-2); }

.header, main, .footer { position: relative; z-index: 1; }

/* ===== Шапка ===== */
.header { padding: 22px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand:hover .brand__name { color: var(--accent); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px var(--accent-soft);
}
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }

.controls { display: flex; align-items: center; gap: 10px; }

.switch {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.switch__btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.switch__btn:hover { color: var(--text); }
.switch__btn--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.18s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); }

/* ===== Заголовок страницы ===== */
.hero { padding: 26px 0 8px; max-width: 640px; }
.hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--text) 25%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ===== Баннер ===== */
.banner {
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--text);
  font-size: 14px;
}
.banner code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.18);
  font-size: 13px;
}

/* ===== Цена ===== */
.pricing { margin-top: 22px; }
.pricing__card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.pricing__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pricing__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.pricing__price { font-size: 15px; color: var(--text-dim); }
.pricing__price b { font-size: 27px; color: var(--text); letter-spacing: -0.5px; }
.pricing__list { margin: 14px 0 10px; padding: 0; list-style: none; display: grid; gap: 7px; }
.pricing__list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-dim); }
.pricing__list li::before {
  content: '✓';
  position: absolute; left: 4px; top: 0;
  color: var(--success); font-weight: 700;
}
.pricing__delivery { margin: 0; font-size: 13px; color: var(--text-dim); opacity: 0.85; }

/* ===== Согласие ===== */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 2px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.consent input { width: auto; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }

/* ===== Вкладки ===== */
.tabs { display: flex; gap: 10px; margin: 26px 0 18px; flex-wrap: wrap; }
.tab {
  flex: 1 1 220px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 13px;
  color: var(--text-dim);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.tab:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.tab--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px var(--accent-soft);
}
.tab__icon { font-size: 16px; }

/* ===== Панели и группы ===== */
.panel { display: none; animation: fade 0.3s ease; }
.panel--active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.group__title {
  display: flex; align-items: center; gap: 11px;
  font-weight: 650;
  font-size: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.group__title::-webkit-details-marker { display: none; }
.group__num {
  display: grid; place-items: center;
  width: 25px; height: 25px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
details.group > summary.group__title::after {
  content: '⌄';
  margin-left: auto;
  color: var(--text-dim);
  transition: transform 0.2s;
  line-height: 0.6;
  font-size: 18px;
}
details.group[open] > summary.group__title::after { transform: rotate(180deg); }
details.group:not([open]) > summary.group__title { margin-bottom: 0; }

/* ===== Поля ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; position: relative; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; color: var(--text-dim); font-size: 13px; }
.field em { position: absolute; left: -9px; top: 0; color: var(--danger); font-style: normal; }

input, textarea, select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 0.65; }
input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 44px; }
select { cursor: pointer; appearance: none; background-image: none; }

.field--invalid input, .field--invalid textarea { border-color: var(--danger); }

/* Повторяющиеся блоки опыта и образования */
.entry {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  animation: fade 0.25s ease;
}
.entry__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.entry__title { font-weight: 600; font-size: 13px; color: var(--text-dim); }
.checkbox { flex-direction: row; align-items: center; gap: 9px; }
.checkbox input { width: auto; accent-color: var(--accent); }
.checkbox span { font-size: 13px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 10px 17px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: none; }
.btn--primary,
a.btn--primary:link,
a.btn--primary:visited {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px var(--accent-soft);
}
.btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent), var(--accent-2)); filter: brightness(1.08); }
.btn--lg { width: 100%; padding: 15px; font-size: 16px; margin: 8px 0 44px; }
.btn--ghost { background: transparent; border-style: dashed; color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.link {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.link--danger { color: var(--danger); }

/* ===== Загрузка файла ===== */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  padding: 30px 18px;
  text-align: center;
  background: var(--bg-soft);
  transition: 0.2s;
}
.dropzone--over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon { font-size: 30px; }
.dropzone__text { margin: 10px 0 5px; font-size: 15px; }
.dropzone__hint { margin: 0; font-size: 13px; color: var(--text-dim); }
.dropzone__file {
  margin-top: 14px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
}
.dropzone__fileicon { color: var(--success); font-weight: 700; }

.paste { margin-top: 16px; font-size: 14px; }
.paste summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.paste textarea { margin-top: 12px; }

/* ===== Результат ===== */
.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 44px;
  animation: fade 0.35s ease;
  backdrop-filter: blur(8px);
}
.result__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.result__title { margin: 0; font-size: 18px; }
.result__actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* ===== Чекбоксы множественного выбора ===== */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px;
  cursor: pointer;
  transition: 0.16s;
  user-select: none;
}
.choice:hover { border-color: var(--border-strong); }
.choice input { width: auto; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.hint { color: var(--text-dim); font-size: 12px; }

/* ===== Соцсети ===== */
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: 0.16s;
}
.social:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.social__icon { flex: none; }
.social__name { font-size: 12px; color: var(--text-dim); min-width: 62px; }
.social input {
  border: none; background: transparent; padding: 2px 0;
  font-size: 13px;
}
.social input:focus { box-shadow: none; }

/* Заблокированное поле (дата увольнения при «работаю сейчас») */
.field--off { opacity: 0.45; }
.field--off input { cursor: not-allowed; }
input:disabled { background: var(--surface); color: var(--text-dim); }

/* ===== Фото ===== */
.photo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo__preview {
  width: 82px; height: 82px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: none;
  background: var(--bg-soft);
}
.photo__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ===== Палитра оформления резюме ===== */
.palette { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.palette__label { font-size: 12px; color: var(--text-dim); margin-right: 3px; }
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  transition: 0.16s;
}
.swatch:hover { transform: scale(1.12); }
.swatch--active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg-soft) inset; }

/* ===== Лист резюме ===== */
/* Резюме всегда на белой «бумаге»: это документ, а не часть интерфейса. */
.paper {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.cv {
  --cv-accent: #6c5ce7;
  --cv-side: #f5f5fb;
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 420px;
  color: #23263a;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: left;
}
.cv[data-accent='emerald'] { --cv-accent: #0ea97a; --cv-side: #f0faf6; }
.cv[data-accent='crimson'] { --cv-accent: #e0475f; --cv-side: #fdf3f4; }
.cv[data-accent='amber']   { --cv-accent: #d98218; --cv-side: #fdf7ef; }
.cv[data-accent='slate']   { --cv-accent: #3c4a63; --cv-side: #f3f5f8; }

.cv__side { background: var(--cv-side); padding: 26px 22px; }
.cv__main { padding: 30px 28px; background: #fff; }

.cv__photo {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.cv__name {
  margin: 0 0 4px;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #171a2b;
}
.cv__role {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cv-accent);
}
.cv__summary { margin: 0 0 6px; color: #404560; }

.cv__section { margin-top: 20px; }
.cv__side .cv__section:first-child { margin-top: 0; }
.cv__section-title {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--cv-accent);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--cv-accent);
}
.cv__side .cv__section-title { border-bottom-width: 1px; }

.cv__list { margin: 0; padding: 0; list-style: none; }
.cv__list li { position: relative; padding-left: 14px; margin-bottom: 5px; }
.cv__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cv-accent);
}

.cv__contact { display: flex; gap: 8px; margin-bottom: 6px; align-items: baseline; }
.cv__contact-icon { flex: none; width: 15px; text-align: center; }
.cv__contact-value { word-break: break-word; }

.cv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.cv__main .cv__tag { background: var(--cv-side); border-color: transparent; }

.cv__job { margin-bottom: 16px; }
.cv__job:last-child { margin-bottom: 0; }
.cv__job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.cv__job-title { font-weight: 700; font-size: 14.5px; color: #171a2b; }
.cv__job-period {
  font-size: 12px;
  color: var(--cv-accent);
  font-weight: 600;
  white-space: nowrap;
}
.cv__job-meta { font-size: 12.5px; color: #6b7185; margin-bottom: 6px; }

.cv__item { margin-bottom: 11px; }
.cv__item:last-child { margin-bottom: 0; }
.cv__item-title { font-weight: 650; }
.cv__item-meta { font-size: 12.5px; color: #6b7185; }

.cv__lang { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.cv__lang-level { color: #6b7185; font-size: 12.5px; }

/* Список правок показывается под резюме и в документ не попадает */
.changes {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 14px;
}
.changes__title { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.changes ul { margin: 0; padding-left: 18px; }
.changes li { margin-bottom: 4px; color: var(--text-dim); }
.changes__note { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); opacity: 0.8; }
.changes--tips { border-color: var(--accent); background: var(--accent-soft); }
.changes--tips .changes__title { color: var(--accent); }

/* ===== Загрузка и уведомления ===== */
.loader { text-align: center; padding: 34px 0 54px; color: var(--text-dim); }
.loader__spinner {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader p { margin: 4px 0; }
.loader__hint { font-size: 13px; opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  right: 24px; bottom: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  max-width: min(90vw, 460px);
  z-index: 50;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}
.toast--error { border-color: var(--danger); background: var(--danger-soft); }
.toast--success { border-color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Правовые страницы ===== */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 24px 0 6px; letter-spacing: -0.6px; }
.legal__date { color: var(--text-dim); font-size: 13px; margin: 0 0 24px; }
.legal h2 {
  font-size: 17px;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.legal p { margin: 0 0 12px; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }

/* ===== Ключ доступа ===== */
.keybox {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}
.keybox__value {
  font-family: 'SF Mono', Consolas, 'Liberation Mono', monospace;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text);
  user-select: all;
}

/* Поле ввода ключа на главной */
.access {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}
.access__label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.access input {
  flex: 1 1 210px;
  font-family: 'SF Mono', Consolas, 'Liberation Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.access__status { font-size: 13px; color: var(--text-dim); }
.access__status--ok { color: var(--success); }
.access__status--bad { color: var(--danger); }

/* ===== Подвал ===== */
.footer {
  margin-top: 30px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.footer__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__col { min-width: 180px; }
.footer__title { font-weight: 650; color: var(--text); margin: 0 0 7px; font-size: 13px; }
.footer p { margin: 3px 0; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; opacity: 0.8; }
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Мобильная версия ===== */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .group { padding: 17px; }
  .hero { padding-top: 16px; }
  .result__actions .btn { flex: 1 1 calc(50% - 4px); }
  .toast { right: 12px; left: 12px; max-width: none; }
  .socials { grid-template-columns: 1fr; }
  .cv { grid-template-columns: 1fr; }
  .cv__side { order: 2; }
}

/* ===== Печать: на бумагу уходит только резюме ===== */
@media print {
  @page { size: A4; margin: 0; }
  .header, .hero, .tabs, .panel, .result__bar, .footer, .loader, .toast, .glow, .banner,
  .changes, .pricing, .access, #tips {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .container { max-width: none; padding: 0; }
  .result { border: none; box-shadow: none; padding: 0; margin: 0; background: none; backdrop-filter: none; }
  .paper { border-radius: 0; box-shadow: none; }
  /* На телефоне действует одноколоночная раскладка — для печати
     принудительно возвращаем две колонки, иначе документ разъезжается. */
  .cv {
    min-height: 100vh;
    font-size: 11.5px;
    grid-template-columns: 34% 1fr !important;
  }
  .cv__side { order: 0 !important; }
  .cv__side, .cv__main { padding: 16mm 10mm; }
  .cv__name { font-size: 24px; }
  /* Печатаем фоновые заливки колонки и акценты */
  .cv, .cv__side, .cv__tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv__job, .cv__item { break-inside: avoid; }
}
