/* ==========================================================================
   Shared styles for subpages: catalogue, CV, privacy
   ========================================================================== */

.page-hero {
  padding: 126px 0 48px;
  background: var(--bg);
}

.page-hero--gray { background: var(--bg-secondary); }

.page-title {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-lead {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.page-section { padding: 0 0 96px; }

.page-section--gray { background: var(--bg-secondary); }

.page-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- CV ---------- */
.cv-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.cv-side {
  position: sticky;
  top: 84px;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-secondary);
}

.cv-monogram {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cv-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--chip);
  object-fit: cover;
}

.cv-name {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cv-role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.cv-side-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.cv-side-list a,
.cv-side-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cv-side-list a:hover { color: var(--link); }

.cv-side-list .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--blue);
}

.cv-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.cv-actions .btn { width: 100%; }

.cv-section { margin-bottom: 50px; }
.cv-section:last-child { margin-bottom: 0; }

.cv-section-title {
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-summary {
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}

.cv-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cv-item:first-of-type { padding-top: 0; }

.cv-date {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}

.cv-item h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cv-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cv-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.cv-list li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cv-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cv-skills span {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--muted);
  font-size: 13px;
}

.cv-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cv-app {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border-radius: 13px;
  background: var(--bg-secondary);
  transition: background-color 0.2s var(--ease);
}

.cv-app:hover { background: var(--line-soft); }

.cv-app img {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}

.cv-app span {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.cv-app small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
}

.cv-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Privacy / legal ---------- */
.legal {
  max-width: 760px;
  padding: 126px 0 96px;
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal .updated {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.legal .intro {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal h2 {
  margin: 38px 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal p + p { margin-top: 10px; }

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.legal li + li { margin-top: 4px; }

.legal a { color: var(--link); text-decoration: underline; }

/* ---------- Print CV ---------- */
@media print {
  .site-header,
  .site-footer,
  .cv-actions,
  .page-actions,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { padding: 0 0 24px; background: #fff; }
  .page-title { font-size: 30pt; }
  .page-lead { font-size: 12pt; color: #333; }
  .cv-layout { display: block; }
  .cv-side {
    position: static;
    padding: 0 0 18px;
    margin-bottom: 24px;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .cv-monogram, .cv-photo { display: none; }
  .cv-name { margin-top: 0; font-size: 20pt; }
  .cv-side-list { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding-top: 10px; }
  .cv-section { margin-bottom: 26px; page-break-inside: avoid; }
  .cv-item { page-break-inside: avoid; }
  .cv-section-title { border-color: #ccc; }
  .cv-app-grid { grid-template-columns: repeat(3, 1fr); }
  .cv-app { background: #f4f4f4; }
  .cv-note { color: #555; }
  a { color: #000; text-decoration: none; }
  .legal { padding: 0; }
}

@media (max-width: 980px) {
  .page-hero { padding-top: 112px; }
  .cv-layout { grid-template-columns: 1fr; gap: 40px; }
  .cv-side { position: static; }
  .page-section { padding-bottom: 76px; }
}

@media (max-width: 700px) {
  .page-hero { padding: 104px 0 36px; }
  .page-title { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .page-lead { font-size: 17px; }
  .cv-item { grid-template-columns: 1fr; gap: 5px; }
  .cv-app-grid { grid-template-columns: 1fr; }
  .legal { padding: 104px 0 72px; }
  .legal .intro { font-size: 17px; }
  .cv-side { padding: 22px; }
}
