﻿:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #e91287;
  --line: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Serif 4", "Georgia", serif;
  background: radial-gradient(1200px 600px at 10% -10%, #fff, var(--bg));
  color: var(--ink);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  position: relative;
  z-index: 1;
}

.wrap::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 120px;
  width: 220px;
  height: 220px;
  background-image: url("./coxigru.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.name {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.5px;
  margin: 0;
}

.role {
  margin: 6px 0 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--muted);
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-switch button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 12px;
}

.lang-switch button.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.side-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 12px;
}

.print-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.print-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

h2 {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 18px;
}

.contact {
  display: grid;
  gap: 6px;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  background: #fce7f3;
  color: #9d174d;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  font-family: "Work Sans", "Segoe UI", sans-serif;
}

.status-title-hidden,
.status-text-hidden {
  display: none !important;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 28px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li { margin-bottom: 6px; }

.item { margin-bottom: 14px; }

.item-title {
  font-weight: 700;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  margin-top: 17px;
  margin-bottom: 5px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

aside .item-title {
  margin-top: 5px;
  padding-top: 5px;
  border-top: none;
}

aside h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

aside #contact-title {
  margin-top: 0px;
}

aside .item {
  margin: 0px;
}

aside .item .item-meta {
  margin-bottom: 4px;
  font-size: 16px;
}

.item-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .wrap::after {
    display: block;
    right: 20px;
    top: -10px;
    width: 130px;
    height: 130px;
    opacity: 0.6;
  }
  .side-actions { display: none; }
  .grid { grid-template-columns: 1fr; }
}

@page {
  size: A4;
  margin: 10mm;
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11px;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .lang-switch,
  .side-actions {
    display: none !important;
  }

  .wrap::after {
    display: none !important;
  }

  header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
  }

  h2 {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .name {
    font-size: 26px;
  }

  .role {
    margin-top: 2px;
    font-size: 12px;
  }

  .item-title {
    margin-top: 10px;
    padding-top: 4px;
    break-inside: avoid;
  }

  .item,
  li {
    break-inside: avoid;
  }

  ul {
    margin: 0;
    padding-left: 14px;
  }

  li {
    margin-bottom: 3px;
  }

  .contact {
    margin-bottom: 10px;
    gap: 3px;
  }

  aside h2 {
    margin-top: 14px;
  }
}
