/* ===================================================================
   CV Builder — design tokens
   Concept: un atelier discret, ca un birou de proiectare, in care
   documentul tau (CV-ul) este singurul lucru scos in evidenta —
   hartie adevarata sub o lumina calda, in mijlocul unui spatiu
   de lucru intunecat, ordonat.
   =================================================================== */

:root {
  /* culori — atelier (interfata) */
  --ink: #12161d;
  --panel: #1b212c;
  --panel-2: #222938;
  --panel-3: #2a3241;
  --line: #2f3848;
  --text: #e8eaed;
  --muted: #9aa2b1;
  --muted-2: #6b7280;

  /* culori — accent semnatura */
  --accent: #1f7a52;
  --accent-light: #4fae82;
  --accent-dark: #175c3e;
  --accent-wash: #e7f4ee;
  --accent-wash-2: #d7ece1;

  /* culori — hartia CV-ului */
  --paper: #fcfbf8;
  --cv-ink: #1c1f26;
  --cv-body: #3a3f47;
  --cv-muted: #6b7280;
  --cv-line: #e3e0d8;

  --danger: #c0503f;
  --danger-wash: #f6e5e1;

  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-round: 999px;

  --shadow-panel: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-paper: 0 1px 1px rgba(0, 0, 0, 0.15), 0 20px 44px -16px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 10px 30px -8px rgba(0, 0, 0, 0.5);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif-cv: "Source Serif 4", Georgia, "Times New Roman", serif;

  --tr: 170ms ease;
  --tr-slow: 260ms ease;

  --cv-w: 210mm;
  --cv-h: 297mm;
}

/* ===================================================================
   Reset & bază
   =================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select, button {
  font-size: 15px;
}

a {
  color: var(--accent-light);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* scrollbar discret, in tonul atelierului */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--panel-3) var(--ink);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--panel-3);
  border-radius: 999px;
  border: 2px solid var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===================================================================
   Shell & topbar
   =================================================================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: shell-in 320ms ease both;
}

@keyframes shell-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(27, 33, 44, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent-light), var(--accent-dark));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 21%;
  top: 16%;
  width: 34%;
  height: 68%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 21%;
  bottom: 18%;
  width: 58%;
  height: 8%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__tagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  display: none;
}

@media (min-width: 720px) {
  .control__label { display: inline; }
}

.select {
  appearance: none;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa2b1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid var(--panel-3);
  color: var(--text);
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: border-color var(--tr);
}
.select:hover { border-color: var(--muted-2); }
.select:focus-visible { border-color: var(--accent-light); }

/* ===================================================================
   Butoane
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--tr), border-color var(--tr), color var(--tr), transform var(--tr);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fdfffe;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 6px 16px -6px rgba(31, 122, 82, 0.65);
}
.btn--primary:hover { background: var(--accent-light); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-3);
}
.btn--ghost:hover { border-color: var(--muted-2); }

.btn--danger-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn--danger-ghost:hover { color: var(--danger); border-color: var(--danger); background: rgba(192, 80, 63, 0.08); }

.btn--sm { padding: 6px 11px; font-size: 12.5px; }

.btn--icon-only {
  padding: 8px;
  aspect-ratio: 1;
}

.btn[disabled] { opacity: 0.5; pointer-events: none; }

.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===================================================================
   Workspace: form + preview
   =================================================================== */

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
}

@media (min-width: 960px) {
  .workspace {
    grid-template-columns: minmax(380px, 460px) 1fr;
    align-items: start;
  }
}

.form-panel {
  padding: 20px 16px 96px;
}

@media (min-width: 960px) {
  .form-panel {
    padding: 28px 24px 60px;
    max-height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
  }
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.privacy-note .icon { color: var(--accent-light); margin-top: 1px; }

/* ---- secțiuni formular ---- */

.form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-panel);
}

.form-section__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text);
}
.form-section__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.field {
  margin-bottom: 14px;
}
.field:last-child { margin-bottom: 0; }

.field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field__row .field { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field input[type="month"],
.field textarea,
.field select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--panel-3);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--tr), background var(--tr);
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--muted-2);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-light);
  background: var(--panel-3);
}

.field textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa2b1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}
.checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
.checkbox-row label {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.hint {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 5px;
}

/* ---- elemente repetabile (experienta, studii, etc.) ---- */

.repeat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repeat-item {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--panel-3);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 40px 14px 14px;
}

.repeat-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), color var(--tr);
}
.repeat-item__remove:hover {
  background: rgba(192, 80, 63, 0.14);
  color: var(--danger);
}

.empty-note {
  font-size: 12.5px;
  color: var(--muted-2);
  font-style: italic;
  padding: 4px 2px 10px;
}

.btn-add {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--panel-3);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.btn-add:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(31, 122, 82, 0.08);
}

/* ---- foto uploader ---- */

.photo-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.photo-uploader__thumb {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  flex: none;
  background: var(--panel-2);
  border: 1.5px dashed var(--panel-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted-2);
}
.photo-uploader__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-uploader__thumb.has-photo {
  border-style: solid;
  border-color: var(--accent);
}

.photo-uploader__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-hint {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--accent-wash);
  color: #205238;
  border: 1px solid var(--accent-wash-2);
}
.photo-hint.is-no {
  background: var(--danger-wash);
  color: #7a3226;
  border-color: #ecd3cc;
}
.photo-hint.is-optional {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--panel-3);
}
.photo-hint svg { flex: none; margin-top: 1px; }

/* ===================================================================
   Preview panel (scena) + pagina CV (semnatura vizuala)
   =================================================================== */

.preview-panel {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 16px 60px;
  background: radial-gradient(ellipse 90% 55% at 50% 0%, var(--panel) 0%, var(--ink) 62%);
}

@media (min-width: 960px) {
  .preview-panel {
    padding: 40px 32px 80px;
    min-height: 100vh;
  }
}

.preview-scale-wrapper {
  transform-origin: top center;
  transition: transform var(--tr-slow);
}

#cv-page {
  width: var(--cv-w);
  min-height: var(--cv-h);
  background: var(--paper);
  color: var(--cv-ink);
  box-shadow: var(--shadow-paper);
  position: relative;
  border-radius: 2px;
  font-family: var(--font-body);
  overflow: hidden;
}

#cv-page::before {
  /* cotorul — detaliul de semnatura al designului */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(var(--accent-light), var(--accent) 55%, var(--accent-dark));
  z-index: 5;
}

.cv-body {
  padding: 15mm 15mm 15mm 18mm;
  min-height: 100%;
}

.cv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6mm;
}

.cv-name {
  font-family: var(--font-display);
  font-size: 25pt;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cv-ink);
  word-break: break-word;
}
.cv-title {
  font-size: 12.5pt;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 3px;
}

.cv-photo {
  width: 26mm;
  height: 26mm;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--cv-line);
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 9.5pt;
  color: var(--cv-muted);
  margin-bottom: 7mm;
  padding-bottom: 6mm;
  border-bottom: 1px solid var(--cv-line);
}
.cv-contact span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.cv-section { margin-bottom: 6mm; }
.cv-section:last-child { margin-bottom: 0; }

.cv-section__title {
  font-size: 10.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-ink);
  border-bottom: 1.4px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 3.5mm;
  display: inline-block;
}

.cv-summary {
  font-size: 10pt;
  line-height: 1.6;
  color: var(--cv-body);
}

.cv-entry {
  margin-bottom: 4.5mm;
  break-inside: avoid;
}
.cv-entry:last-child { margin-bottom: 0; }

.cv-entry__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cv-entry__role {
  font-size: 10.5pt;
  font-weight: 700;
  color: var(--cv-ink);
}
.cv-entry__dates {
  font-size: 8.7pt;
  color: var(--cv-muted);
  white-space: nowrap;
  font-weight: 500;
}
.cv-entry__sub {
  font-size: 9.7pt;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 1px;
}
.cv-entry__desc {
  font-size: 9.4pt;
  color: var(--cv-body);
  line-height: 1.55;
  margin-top: 2.5px;
  white-space: pre-line;
}

.cv-langs, .cv-certs, .cv-projects-list { display: flex; flex-direction: column; gap: 3mm; }

.cv-lang-item, .cv-cert-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.6pt;
}
.cv-lang-item__name, .cv-cert-item__name { color: var(--cv-ink); font-weight: 600; }
.cv-lang-item__level { color: var(--cv-muted); }
.cv-cert-item__meta { color: var(--cv-muted); font-size: 8.8pt; }

.cv-skills-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill-chip {
  font-size: 9pt;
  padding: 3px 10px;
  border-radius: var(--radius-round);
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-weight: 600;
  white-space: nowrap;
}

.cv-empty-fill {
  color: #b9b6ab;
}

/* ---- Sablon MODERN: sidebar + coloana principala ---- */

#cv-page.tpl-modern .cv-body {
  display: grid;
  grid-template-columns: 62mm 1fr;
  gap: 0;
  padding: 0;
}

#cv-page.tpl-modern .cv-sidebar {
  background: var(--accent-wash);
  padding: 13mm 8mm 13mm 11mm;
  display: flex;
  flex-direction: column;
  gap: 6mm;
}

#cv-page.tpl-modern .cv-photo {
  width: 30mm;
  height: 30mm;
  margin-bottom: 2mm;
}

#cv-page.tpl-modern .cv-sidebar .cv-section__title {
  border-bottom-color: var(--accent-dark);
  font-size: 9pt;
}

#cv-page.tpl-modern .cv-sidebar-name {
  font-family: var(--font-display);
  font-size: 17pt;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cv-ink);
}
#cv-page.tpl-modern .cv-sidebar-title {
  font-size: 10pt;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 2px;
}

#cv-page.tpl-modern .cv-sidebar .cv-contact {
  flex-direction: column;
  gap: 5px;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 8.6pt;
}

#cv-page.tpl-modern .cv-skill-item { margin-bottom: 2mm; }
#cv-page.tpl-modern .cv-skill-item__label {
  display: flex;
  justify-content: space-between;
  font-size: 8.8pt;
  color: var(--cv-ink);
  font-weight: 600;
  margin-bottom: 2px;
}
#cv-page.tpl-modern .cv-skill-item__label span:last-child { color: var(--cv-muted); font-weight: 500; }
#cv-page.tpl-modern .cv-skill-bar {
  height: 4px;
  background: var(--accent-wash-2);
  border-radius: 999px;
  overflow: hidden;
}
#cv-page.tpl-modern .cv-skill-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

#cv-page.tpl-modern .cv-main {
  padding: 13mm 15mm 13mm 11mm;
}
#cv-page.tpl-modern .cv-main .cv-header { display: none; }

/* ---- Sablon CLASIC: coloana unica, ATS-friendly ---- */

#cv-page.tpl-classic {
  font-family: var(--font-serif-cv);
}
#cv-page.tpl-classic .cv-name,
#cv-page.tpl-classic .cv-section__title {
  font-family: var(--font-serif-cv);
}
#cv-page.tpl-classic .cv-section__title {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12pt;
  border-bottom: 1px solid var(--cv-line);
}
#cv-page.tpl-classic .cv-summary,
#cv-page.tpl-classic .cv-entry__desc {
  font-family: var(--font-body);
}
#cv-page.tpl-classic .cv-header { align-items: center; }
#cv-page.tpl-classic .cv-photo {
  border-radius: 4px;
  width: 24mm;
  height: 30mm;
}
#cv-page.tpl-classic .cv-skills-flow .cv-skill-chip {
  background: transparent;
  border: 1px solid var(--cv-line);
  color: var(--cv-body);
  border-radius: 3px;
}
#cv-page.tpl-classic .cv-sidebar { display: none; }

/* ===================================================================
   Bara mobila (comutare Editeaza / Previzualizare)
   =================================================================== */

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 22, 29, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .mobile-tabbar { display: none; }
}

.mobile-tabbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  border-radius: var(--radius-round);
  border: 1px solid var(--panel-3);
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.mobile-tabbar__btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

body[data-view="edit"] .preview-panel { display: none; }
body[data-view="preview"] .form-panel { display: none; }

@media (min-width: 960px) {
  body .preview-panel,
  body .form-panel { display: flex !important; }
  .form-panel { display: block !important; }
}

/* ===================================================================
   Footer
   =================================================================== */

.app-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 14px 16px calc(84px);
}
@media (min-width: 960px) {
  .app-footer { padding: 14px 16px; }
}

/* ===================================================================
   Ecrane mici — ajustari fine
   =================================================================== */

@media (max-width: 400px) {
  .form-section { padding: 15px 14px 17px; }
  .field__row { grid-template-columns: 1fr; }
  .cv-body { padding: 12mm; }
}

@media (max-width: 480px) {
  .brand__tagline { display: none; }
}
