/* WHC önéletrajz készítő – a WHC_IX32_CV_maker PSD-k alapján.
   Desktop: 1920 px-es terv (PSD ×2,667), mobil: 360 px-es terv (PSD ×1,6). A méretek a PSD-ből mért CSS-pixelek. */

/* A terv betűtípusa: Neo Sans Pro (Cyr). Csak a gépre telepített példányt használjuk (local), fájlt nem töltünk fel;
   ahol nincs telepítve, ott az Encode Sans jelenik meg. Élesben webfont-licenc kell hozzá. */
@font-face { font-family: "NeoWHC"; font-weight: 300; src: local("NeoSansProCyr-Light"), local("Neo Sans Pro Cyr Light"), local("NeoSansPro-Light"); }
@font-face { font-family: "NeoWHC"; font-weight: 400; src: local("NeoSansProCyr-Regular"), local("Neo Sans Pro Cyr"), local("NeoSansPro-Regular"); }
@font-face { font-family: "NeoWHC"; font-weight: 500; src: local("NeoSansProCyr-Medium"), local("Neo Sans Pro Cyr Medium"), local("NeoSansPro-Medium"); }
@font-face { font-family: "NeoWHC"; font-weight: 700; src: local("NeoSansProCyr-Bold"), local("Neo Sans Pro Cyr Bold"), local("NeoSansPro-Bold"); }
@font-face { font-family: "NeoWHCMenu"; font-weight: 400; src: local("NeoSansPro-Regular"), local("Neo Sans Pro"), local("NeoSansProCyr-Regular"); }
/* Encode Sans (OFL, a Google Fonts-ról letöltve, helyben tárolva) – ezt látja, akinél nincs Neo Sans Pro */
@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/encode-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/encode-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #01426a;
  --navy-border: #002856;
  --navy-2: #274464;
  --navy-3: #1f3655;
  --text: #2c547a;
  --red: #b4202e;
  --red-title: #a63631;
  --red-band: #b32529;
  --card: #e6ecf0;
  --line: #254f76;
  --white: #fff;
  --font: "NeoWHC", "Encode Sans", Arial, sans-serif;
  --L: max(20px, calc(50% - 556.1px));   /* a tartalom bal széle (1920-nál 403,9 px) */
  --W: 1202.6px;                         /* a tartalom szélessége */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 16.1px; line-height: 22.9px; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; font-kerning: normal; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ DESKTOP ============================ */

/* ---------- Fejléc ---------- */
.site-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 0; }
.header-inner { position: absolute; top: 30.4px; left: calc(var(--L) + 117px); display: flex; align-items: center; height: 26.3px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--navy-2); }
.brand-logo { display: block; width: 71.6px; height: 23.6px; margin-top: -0.6px; }
.brand-logo-mobil, .menu-toggle { display: none; }
.brand-tagline { margin-left: 12px; font-size: 16.5px; line-height: 20px; text-transform: uppercase; letter-spacing: -0.001em; white-space: nowrap; font-weight: 400; }
.brand-tagline strong { font-weight: 700; }
.main-nav { display: flex; align-items: center; margin-left: 63.2px; }
.main-nav a { font-family: "NeoWHCMenu", var(--font); font-size: 10.5px; line-height: 26.3px; height: 26.3px; text-transform: uppercase; letter-spacing: -0.05px; text-decoration: none; color: var(--navy-3); white-space: nowrap; }
.main-nav a:hover { color: var(--red); }
.main-nav .pill { padding: 0 12px 0 9.9px; border-radius: 3px; color: var(--white); border: 1px solid rgba(0, 0, 0, .28); line-height: 24.3px; }
.main-nav .pill-red { background: #a81720; }
.main-nav .pill-navy { background: var(--navy-2); }
.main-nav .pill:hover { color: var(--white); background: var(--red); }
.main-nav .nav-2 { margin-left: 22.4px; }
.main-nav .nav-3 { margin-left: 22.5px; }
.main-nav .nav-4 { margin-left: 10.9px; padding-left: 11px; padding-right: 10.9px; }
.main-nav .nav-5 { margin-left: 12.1px; color: #284464; }
.main-nav .nav-6 { margin-left: 22.3px; color: #284464; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 446.7px; overflow: hidden; }
.hero-image { position: absolute; left: calc(var(--L) + 5.2px); top: 86.3px; width: 423.4px; height: 270.4px; overflow: hidden; background: #1f3655; clip-path: polygon(0 0, 100% 0, calc(100% - 88.6px) 100%, 0 100%); }
.hero-image img { position: absolute; left: -80.2px; top: -44.7px; width: 519px; height: 380.6px; max-width: none; display: block; }
.hero-band { position: absolute; left: calc(var(--L) + 274.5px); right: 0; top: 127.1px; height: 188.3px; background: var(--red-band); clip-path: polygon(63.9px 0, 100% 0, 100% 100%, 0 100%); }
.hero-band h1 { position: absolute; left: 92.6px; top: 72.2px; color: var(--white); font-size: 37.5px; line-height: 45px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.hero-strip { position: absolute; left: calc(var(--L) + 379.5px); right: 0; top: 401.3px; height: 23.3px; background: var(--navy-2); clip-path: polygon(7.9px 0, 100% 0, 100% 100%, 0 100%); }
.back-link { position: absolute; left: calc(var(--L) + 117.7px); top: 401.5px; display: flex; align-items: center; height: 24px; color: var(--red); text-decoration: none; font-size: 19.9px; letter-spacing: -0.015em; }
.back-link svg { position: relative; top: -1.5px; width: 15.8px; height: 12.8px; margin-right: 7.1px; }
.back-link:hover { text-decoration: underline; }

/* ---------- Bevezető, kártyák ---------- */
.main { position: relative; margin-left: var(--L); width: var(--W); padding-bottom: 69px; }
.lead { font-size: 39px; line-height: 47px; font-weight: 500; letter-spacing: -0.005em; margin-top: 99.6px; }
.red-title { color: var(--red-title); font-size: 29.3px; line-height: 35px; font-weight: 500; letter-spacing: -0.005em; }
.red-title-1 { margin-top: 56.6px; }
.red-title-2 { margin-top: 43.9px; }
.hex { display: block; width: 114.4px; height: 128.3px; max-width: none; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 384px); column-gap: 27.7px; margin-top: 28.4px; }
.card { position: relative; width: 384px; background: var(--card); margin-top: 64.1px; height: 253.5px; text-align: center; }
.card .hex { position: absolute; top: -64.1px; left: 134.8px; }
.card h4 { padding-top: 75.3px; font-size: 22.1px; line-height: 27px; font-weight: 500; }
.card p { width: 336.9px; margin: 5.4px auto 0; font-size: 16.1px; line-height: 22.9px; }
.card .card-p-wide { width: 340px; }
.card:nth-child(3) { margin-left: -4.4px; }

/* ---------- Lépések (szürke kártyák) ---------- */
.step { position: relative; background: var(--card); text-align: center; padding-bottom: 33.5px; scroll-margin-top: 80px; }
.step > .hex { position: absolute; top: -64.1px; left: calc(50% - 53.8px); }
.step h4 { padding-top: 75.3px; font-size: 22.1px; line-height: 27px; font-weight: 500; }
.step .intro { width: 1159.8px; margin: 10.8px auto 0; font-size: 16.1px; line-height: 22.9px; }
.step .intro-sablon { width: 902.3px; }
.step .intro b { color: var(--red); font-weight: 700; }
#lepes-sablon { margin-top: 105.9px; padding-bottom: 38.6px; }
#lepes-szemelyes { margin-top: 106.5px; }
#lepes-magamrol { margin-top: 115.8px; padding-bottom: 35.9px; }
#lepes-munka { margin-top: 116.3px; padding-bottom: 36.4px; }
#lepes-tanulmany { margin-top: 122.2px; padding-bottom: 38.9px; }
#lepes-nyelv { margin-top: 120.7px; padding-bottom: 38.4px; }
#lepes-keszsegek { margin-top: 124.4px; padding-bottom: 42.3px; }
.step-error { color: var(--red); font-weight: 700; margin: 12px 0 -6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 181.1px; height: 40.9px; padding: 1.6px 0 0; border: 1px solid var(--navy-border); border-radius: 3px; background: var(--navy); color: var(--white); font-size: 22.1px; font-weight: 500; letter-spacing: -0.005em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--red); border-color: #8e1520; }
.btn:focus-visible, .link-btn:focus-visible, .add-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--card); }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; font-size: inherit; }
.step .btn-next { margin-top: 32.5px; }

/* Sablonok */
.templates { display: grid; grid-template-columns: repeat(4, 201px); column-gap: 33.6px; justify-content: center; margin-top: 30.3px; }
.tpl { position: relative; display: block; width: 201px; height: 284.3px; cursor: pointer; background: var(--white); box-shadow: 0 0 0 1.1px #2b415a; }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpl:hover, .tpl:has(input:checked) { box-shadow: 0 0 0 1.1px var(--red); }
.tpl:has(input:checked) { box-shadow: 0 0 0 2.2px var(--red); }
.tpl:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 4px; }
.tpl-zoom { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border: 0; border-radius: 3px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M12.5 12.5 17 17' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .15s; }
.tpl:hover .tpl-zoom, .tpl-zoom:focus-visible { opacity: 1; }
#lepes-sablon .btn-next { margin-top: 30px; }
.zoom-dialog { border: 0; padding: 16px; max-width: min(92vw, 640px); max-height: 94vh; text-align: center; }
.zoom-dialog::backdrop { background: rgba(3, 25, 45, .7); }
.zoom-dialog img { display: block; max-height: calc(94vh - 100px); width: auto; margin: 0 auto 14px; border: 1px solid #ccd; }
.zoom-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Mezők: oszlopok, címke + mező; a szélességek a PSD-ből (style="--lab / --inp") */
.cols { display: flex; align-items: flex-start; gap: var(--gap); padding-left: var(--pl); margin-top: 30.4px; text-align: left; }
.col { display: flex; flex-direction: column; gap: 10.7px; flex: 0 0 auto; }
.field { display: grid; grid-template-columns: var(--lab) var(--inp); align-items: center; min-height: 31px; }
.field-top { align-items: start; }
.field label, .label { position: relative; top: -0.6px; font-size: 16.5px; line-height: 20px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.field label i, .label i { color: var(--red); font-style: normal; }
.field input:not([type=checkbox]):not([type=file]), .field textarea { display: block; width: var(--inp); height: 31px; margin: 0; border: 1px solid transparent; border-radius: 0; background: var(--white); padding: 0 9px; font: inherit; font-size: 16.1px; color: var(--text); letter-spacing: -0.005em; }
.field textarea { height: 72px; padding-top: 5px; resize: vertical; line-height: 21px; }
.field-top label { padding-top: 6px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field input[type=date] { color: var(--text); }
.field input[type=date]:not(:focus):not(.has-value)::-webkit-datetime-edit { color: transparent; }
.field input[type=date]:not(:focus):not(:hover)::-webkit-calendar-picker-indicator { opacity: 0; }
.field .is-invalid, .field input.is-invalid { border-color: var(--red) !important; background: #fff6f6 !important; }
.step-sablon-invalid .templates { outline: 2px solid var(--red); outline-offset: 8px; }

/* Fotó */
.field-photo { align-items: start; grid-template-columns: var(--lab) auto; }
.field-photo > .label { padding-top: 0; margin-top: 1.8px; }
.photo-box { display: grid; grid-template-columns: 122.6px 293px; column-gap: 13.5px; }
.photo-preview { position: relative; display: block; width: 122.6px; height: 116.3px; background: var(--white); cursor: pointer; overflow: hidden; border: 1px solid transparent; }
.photo-preview img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.photo-preview img[src^="data:"] { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-preview.is-invalid { border-color: var(--red); }
.photo-help p { margin: -3.2px 0 0; font-size: 16.1px; line-height: 22.9px; }
.btn-upload { width: 166.9px; margin-top: 9.7px; }
.photo-help .link-btn { display: block; margin-top: 6px; font-size: 13px; }

/* X-es négyzetek */
.field-check { min-height: 31.5px; align-items: start; }
.field-check .label { margin-top: 5.5px; }
.field-check .xbox, .field-check .xboxes { display: flex; }
.xbox { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.xbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xbox span { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 31.5px; height: 31.5px; background: var(--white); color: var(--navy); font-size: 19.5px; font-weight: 700; letter-spacing: 0; }
.xbox input:checked + span::after { content: ""; position: absolute; inset: 0; background: url("../img/x-negyzet.png") center / 25px no-repeat; }
.xbox input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.xbox em { margin-left: 16.5px; font-style: normal; font-weight: 400; font-size: 16.1px; white-space: nowrap; }
.xboxes { display: flex; gap: 15.2px; }
/* "jelenleg is" jelölő a "Munkavégzés vége" mező jobb szélén (a tervben nincs külön sora) */
.inp-wrap { position: relative; width: var(--inp); }
.inp-wrap input:not([type=checkbox]) { padding-right: 104px !important; }
.field .now { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; font-size: 13.5px !important; font-weight: 400 !important; line-height: 1 !important; color: #7d93a8 !important; cursor: pointer; user-select: none; }
.field .now input { width: 15px; height: 15px; margin: 0; accent-color: var(--red); }
.field .now:has(input:checked) { color: var(--red) !important; }

/* Ismétlődő tételek */
.entry { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.entry + .entry { margin-top: 24px; padding-top: 0; }
.entry + .entry::before { content: ""; display: block; height: 1px; margin: 0 26px 0 31px; background: rgba(37, 79, 118, .35); }
.entry-remove { position: absolute; z-index: 1; right: 4px; top: calc(var(--rowtop, 30.4px) + 4.5px); width: 22px; height: 22px; border: 0; background: none; color: var(--red); font-size: 24px; line-height: 1; padding: 0; }
.entry + .entry .entry-remove { top: calc(var(--rowtop, 30.4px) + 1px + 4.5px); }
.entries[data-count="1"] .entry-remove { display: none; }
.add-row { display: flex; align-items: center; margin: 15.4px 0 0 32.2px; width: 1137.8px; }
.add-btn { position: relative; flex: 0 0 auto; width: 45px; height: 40.9px; border: 1px solid var(--navy-border); border-radius: 3px; background: var(--navy); padding: 0; }
.add-btn::before, .add-btn::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--white); transform: translate(-50%, -50%); }
.add-btn::before { width: 18.4px; height: 4.4px; }
.add-btn::after { width: 4.4px; height: 18.4px; }
.add-btn:hover { background: var(--red); border-color: #8e1520; }
.add-line { flex: 1; height: 1.9px; margin-left: 11.3px; background: var(--line); }
#lepes-munka .add-row { margin-top: 15.4px; }
#lepes-tanulmany .add-row { margin-top: 28.8px; }
#lepes-nyelv .add-row { margin-top: 16.8px; }

/* Szövegszerkesztő (Quill) */
.editor-wrap { background: var(--white); text-align: left; }
.editor-large { width: 1133.3px; height: 316.9px; margin: 22.2px 0 0 34.5px; padding: 20px 23.6px 0 22px; }
.editor-small { width: 522px; height: 202.1px; padding: 7.6px 8.3px 0 8.3px; }
.col-editor { gap: 0; width: 522px; }
.col-editor .label-block { display: block; margin: -2px 0 14.5px 3px; }
.editor-wrap .ql-toolbar.ql-snow { display: flex; align-items: center; height: 29.2px; padding: 0 0 0 4px; border: 0; border-top: 2px solid var(--line); border-bottom: 1.6px solid var(--line); font-family: var(--font); }
.editor-wrap .ql-toolbar.ql-snow .ql-formats { display: flex; align-items: center; margin: 0; }
.editor-wrap .ql-toolbar.ql-snow .ql-formats + .ql-formats::before { content: ""; width: 1.6px; height: 13px; margin: 0 9px 0 9px; background: var(--navy-3); }
.editor-wrap .ql-toolbar.ql-snow button { width: 27px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-3); }
.editor-wrap .ql-toolbar.ql-snow button svg { width: auto; height: 14px; float: none; }
.editor-wrap .ql-toolbar.ql-snow .ql-undo, .editor-wrap .ql-toolbar.ql-snow .ql-redo { width: 23px; }
.editor-wrap .ql-toolbar.ql-snow .ql-align { width: 33.5px; }
.editor-wrap .ql-toolbar.ql-snow .ql-list { width: 48px; }
.editor-wrap .ql-toolbar .ti { font-family: var(--font); font-size: 16px; line-height: 1; font-weight: 500; color: var(--navy-3); letter-spacing: 0; }
.editor-wrap .ql-toolbar .ti-b { font-weight: 700; }
.editor-wrap .ql-toolbar .ti-i { font-style: italic; font-family: Georgia, serif; font-size: 15px; }
.editor-wrap .ql-toolbar .ti-u { text-decoration: underline; text-underline-offset: 2px; }
.editor-wrap .ql-toolbar .ti sub, .editor-wrap .ql-toolbar .ti sup { font-size: 9px; }
.editor-wrap .ql-toolbar button.ql-active .ti, .editor-wrap .ql-toolbar button:hover .ti { color: var(--red); }
.editor-wrap .ql-toolbar button.ql-active .ql-stroke, .editor-wrap .ql-toolbar button:hover .ql-stroke { stroke: var(--red); }
.editor-wrap .ql-toolbar button.ql-active .ql-fill, .editor-wrap .ql-toolbar button:hover .ql-fill { fill: var(--red); }
.editor-wrap .ql-snow .ql-stroke { stroke: var(--navy-3); }
.editor-wrap .ql-snow .ql-fill { fill: var(--navy-3); }
.editor-wrap .ql-toolbar.ql-snow button.ql-color { width: 14px; height: 14px; padding: 0; margin: 0 8px 0 0; border-radius: 0; }
.editor-wrap .ql-toolbar button.ql-color[value="#b4202e"] { background: #b4202e; }
.editor-wrap .ql-toolbar button.ql-color[value="#2c547a"] { background: #2c5a8a; }
.editor-wrap .ql-toolbar button.ql-color[value="#000000"] { background: #000; }
.editor-wrap .ql-toolbar button.ql-color.ql-active { outline: 2px solid var(--red); outline-offset: 1px; }
.editor-wrap .ql-container.ql-snow { border: 0; height: calc(100% - 29.2px); font-family: var(--font); }
.editor-wrap .ql-editor { height: 100%; padding: 25.5px 0 10px 2px; font-family: var(--font); font-size: 22.4px; line-height: 30px; color: var(--text); letter-spacing: 0; }
.editor-small .ql-editor { font-size: 16.1px; line-height: 22.9px; padding: 10px 2px; }
.editor-wrap .ql-editor.ql-blank::before { left: 2px; right: 0; color: #d9d9d9; font-style: normal; font-weight: 300; white-space: pre-line; }
.editor-wrap.is-invalid { outline: 1px solid var(--red); }

/* Kész */
.done { margin-top: 57.1px; }
.done-title { color: var(--red); font-size: 29.3px; line-height: 35px; font-weight: 500; letter-spacing: -0.005em; }
.done-text { width: 1171.9px; margin-top: 14.4px; font-size: 22.5px; line-height: 29.3px; font-weight: 500; letter-spacing: 0; }
.done-text a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.btn-download { width: 199.9px; margin-top: 26.8px; }
.dl-short { display: none; }
.m-break, .m-gap { display: none; }
br.m-br { display: none; }
.privacy { font-size: 13.5px; line-height: 19px; color: #5f7d98; margin-top: 30px; max-width: 760px; }

/* ============================ TABLET (keskenyebb asztali nézet) ============================ */
@media (max-width: 1259px) {
  :root { --W: calc(100% - 40px); }
  .main { width: auto; margin-right: 20px; }
  .header-inner { left: 20px; }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { height: auto; padding-bottom: 30px; }
  .card .hex { left: calc(50% - 57.2px); }
  .card p, .card .card-p-wide { width: auto; padding: 0 16px; }
  .step .intro, .step .intro-sablon, .done-text { width: auto; padding: 0 20px; }
  .done-text { padding: 0; }
  .templates { grid-template-columns: repeat(4, minmax(0, 201px)); column-gap: 20px; }
  .tpl { width: auto; height: auto; aspect-ratio: 201 / 284.3; }
  .cols { flex-wrap: wrap; padding-right: 26px; }
  .col { flex: 1 1 420px; }
  .field { grid-template-columns: var(--lab) minmax(0, 1fr); }
  .field input:not([type=checkbox]):not([type=file]), .field textarea { width: 100%; }
  .field-photo { grid-template-columns: var(--lab) minmax(0, 1fr); }
  .photo-box { grid-template-columns: 122.6px minmax(0, 1fr); }
  .add-row { width: auto; margin-right: 26px; }
  .editor-large { width: auto; margin-right: 34.5px; }
  .editor-small, .col-editor { width: auto; }
  .col-editor { flex-basis: 100%; }
  .hero-band { left: calc(var(--L) + 274.5px); }
}

/* ============================ MOBIL (a MOBIL PSD alapján, 360 px) ============================ */
@media (max-width: 767px) {
  :root { --L: 12.5px; }
  body { font-size: 13.4px; line-height: 16.3px; font-weight: 300; letter-spacing: 0.015em; }

  /* fejléc + cím: sötétkék blokk */
  .site-header { position: relative; height: auto; background: var(--navy); }
  .header-inner { position: relative; top: 0; left: 0; height: 56px; padding: 15.6px 12.5px 0; align-items: flex-start; justify-content: space-between; }
  .brand { color: var(--white); align-items: flex-start; }
  .brand-logo { display: none; }
  .brand-logo-mobil { display: block; width: 75.6px; height: 24.4px; }
  .brand-tagline { margin-left: 55px; margin-top: -1.5px; font-size: 11.9px; line-height: 14.4px; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; }
  .brand-tagline strong { font-weight: 500; }
  .menu-toggle { display: inline-flex; align-items: center; height: 24.4px; width: 63.1px; padding: 1.8px 0 0 7.1px; border: 1px solid #8e1520; border-radius: 2px; background: var(--red); color: var(--white); font-weight: 500; font-size: 11.9px; letter-spacing: -0.005em; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 11.9px; height: 2.3px; background: var(--white); position: relative; }
  .menu-icon { margin-right: 8.1px; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -4.5px; } .menu-icon::after { top: 4.5px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 56px; z-index: 6; margin: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 4px 12.5px 14px; }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav .nav-2, .main-nav .nav-3, .main-nav .nav-4, .main-nav .nav-5, .main-nav .nav-6 { margin: 0; color: var(--white); font-size: 13px; line-height: 40px; height: 40px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .main-nav .pill { background: none; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; line-height: 40px; }

  .hero { height: auto; overflow: visible; display: flex; flex-direction: column; }
  .hero-band { order: -1; }
  .hero-band { position: relative; left: 0; top: 0; height: 190.3px; clip-path: none; background: var(--navy); }
  .hero-band h1 { left: 0; right: 0; top: 69.6px; text-align: center; font-size: 26.2px; line-height: 31.2px; font-weight: 500; letter-spacing: -0.008em; }
  .hero-image { position: relative; left: 12.5px; top: 0; width: 335px; max-width: calc(100% - 25px); height: auto; aspect-ratio: 335 / 231.9; margin-top: 13.7px; clip-path: none; background: #0e4170; }
  .hero-image img { left: -14.5%; top: -13.8%; width: 140.5%; height: auto; }
  .hero-strip, .back-link { display: none; }

  .main { width: auto; margin: 0 12.5px; padding-bottom: 40px; }
  .lead { margin-top: 24.7px; padding-left: 1.3px; font-size: 26.2px; line-height: 31.2px; letter-spacing: -0.008em; }
  .red-title { font-size: 17.5px; line-height: 21px; padding-left: 1.3px; }
  .red-title-1 { margin-top: 16.1px; }
  .red-title-2 { margin-top: 27.2px; }
  .hex { width: 95px; height: 106.9px; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 18.3px; }
  .card, .card:nth-child(3) { width: auto; height: 202.5px; margin-left: 0; margin-top: 53.4px; padding-bottom: 0; }
  .card:nth-child(n+2) { margin-top: 77.3px; }
  .card .hex { top: -53.4px; left: calc(50% - 47.5px); }
  .card h4, .step h4 { padding-top: 63.1px; font-size: 17.5px; line-height: 19.4px; letter-spacing: -0.008em; }
  .card p, .card .card-p-wide { width: auto; max-width: 311.2px; margin-top: 8.6px; padding: 0; font-size: 13.4px; line-height: 16.3px; font-weight: 300; letter-spacing: 0.015em; }

  .step { padding: 0 12.5px 21.5px 11.9px; }
  .step > .hex { top: -53.4px; left: calc(50% - 47.5px); }
  .step .intro, .step .intro-sablon { width: auto; max-width: 311.2px; margin-top: 12.4px; padding: 0; font-size: 13.4px; line-height: 16.3px; font-weight: 300; letter-spacing: 0.015em; }
  #lepes-sablon { margin-top: 76.5px; }
  #lepes-szemelyes, #lepes-magamrol, #lepes-munka, #lepes-tanulmany, #lepes-nyelv, #lepes-keszsegek { margin-top: 77px; padding-bottom: 21.5px; }
  .btn { width: 151.3px; height: 33.8px; font-size: 18.4px; }
  .step .btn-next { margin-top: 24.4px; }

  .templates { grid-template-columns: repeat(2, minmax(0, 145px)); column-gap: 10px; row-gap: 10px; margin-top: 20.6px; }
  .tpl { width: auto; height: auto; aspect-ratio: 145 / 203.5; }
  .tpl-zoom { opacity: 1; width: 26px; height: 26px; background-size: 15px; }
  #lepes-sablon .btn-next { margin-top: 17px; }

  .cols { display: block; padding: 0; margin-top: 21.4px; }
  .col { gap: 0; }
  .field, .field-photo, .field-top { display: block; min-height: 0; }
  .field + .field { margin-top: 8.9px; }
  .col + .col { margin-top: 8.9px; }
  .field label, .label { display: block; top: -1.6px; font-size: 13.7px; line-height: 16px; letter-spacing: 0.005em; margin-bottom: 3.2px; }
  .field input:not([type=checkbox]):not([type=file]), .field textarea { width: 100%; height: 25.6px; font-size: 13.4px; }
  .field textarea { height: 78.8px; }
  .field-top label { padding-top: 0; }
  .photo-box { grid-template-columns: 111.9px minmax(0, 1fr); column-gap: 11.2px; margin-top: 5.2px; }
  .photo-preview { width: 111.9px; height: 111.9px; }
  .photo-preview img { left: 0; top: 0; width: 100%; height: 100%; }
  .photo-help p { margin-top: -5.9px; font-size: 13.4px; line-height: 16.2px; font-weight: 300; letter-spacing: 0.005em; }
  .btn-upload { width: 138.1px; margin-top: 16.1px; }
  .field-check { display: block; }
  .xbox span { width: 32.5px; height: 31.3px; font-size: 17px; }
  .xbox em { margin-left: 6.3px; font-size: 13.4px; font-weight: 300; letter-spacing: 0.015em; }
  .xboxes { width: 310.6px; max-width: 100%; justify-content: space-between; gap: 0; }
  .xbox-small span { width: 24px; height: 24px; }

  .entry + .entry { margin-top: 18px; }
  .entry + .entry::before { margin: 0 0 14px; }
  .entry-remove { right: -4px; top: -4px; }
  .entry + .entry .entry-remove { top: 16px; }
  .add-row { width: auto; margin: 11.4px 0 0 0; }
  .add-btn { width: 37.5px; height: 33.8px; }
  .add-btn::before { width: 15px; height: 3.6px; }
  .add-btn::after { width: 3.6px; height: 15px; }
  .add-line { height: 1.3px; margin-left: 8.1px; }

  .editor-large { width: auto; height: 276.3px; margin: 20.6px 0 0; padding: 6px 6px 0; }
  .editor-small { width: auto; height: 166.9px; padding: 6px 6px 0; }
  .col-editor { width: auto; margin-top: 8px; }
  .col-editor .label-block { margin: 0 0 13.4px; }
  .editor-wrap .ql-toolbar.ql-snow { display: none; }
  .editor-wrap .ql-toolbar.ql-snow .ql-formats + .ql-formats::before { margin: 0 6px; }
  .editor-wrap .ql-toolbar.ql-snow button { padding: 0 3px; }
  .editor-wrap .ql-container.ql-snow { height: 100%; }
  .editor-wrap .ql-editor { font-size: 13.4px; line-height: 16.3px; padding: 8px 2px; letter-spacing: 0.02em; }

  .done { margin-top: 34.4px; }
  .done-title { font-size: 17.5px; line-height: 19.4px; }
  .done-text { width: auto; max-width: 335px; margin-top: 9.4px; font-size: 14.4px; line-height: 16.9px; letter-spacing: -0.005em; }
  .btn-download { width: 168.1px; height: 34.4px; margin: 23.8px 0 0 84.4px; font-size: 18.6px; }
  .dl-long { display: none; }
  .dl-short { display: inline; }
  .m-break { display: block; height: 16.9px; }
  br.m-br { display: inline; }
  .m-gap { display: block; height: 16.2px; }
  .d-only { display: none; }
  .privacy { font-size: 12px; line-height: 16px; }
}

/* ---- szakaszonkénti finomhangolás a PSD-mérések alapján (desktop) ---- */
@media (min-width: 1260px) {
  #lepes-szemelyes .cols { margin-top: 28.2px; }
  #lepes-szemelyes .field-photo { margin-top: -0.2px; }
  #lepes-szemelyes .photo-help p { margin-top: -2.3px; }
  #lepes-szemelyes .btn-upload { margin-top: 8.4px; }
  #lepes-szemelyes .btn-next { margin-top: 29.8px; }
  #lepes-szemelyes { padding-bottom: 32.2px; }
  #lepes-magamrol .editor-large { margin-top: 19.6px; }
  #lepes-magamrol .btn-next { margin-top: 33.4px; }
  #lepes-magamrol { padding-bottom: 36.5px; }
  #lepes-sablon .templates { margin-top: 29.5px; grid-template-columns: 201px 201.4px 201px 201.4px; column-gap: 33.6px; justify-content: start; margin-left: 150.4px; }
  .tpl:nth-child(2), .tpl:nth-child(4) { width: 201.4px; }
  #lepes-sablon { padding-bottom: 37.7px; }
  #lepes-szemelyes h4 { padding-top: 74.4px; }
  #lepes-szemelyes .intro { width: 1150.5px; }
  #lepes-magamrol .intro { width: 1141.5px; }
  #lepes-munka .cols { margin-top: 21.2px; }
  #lepes-munka .label-block { margin-top: 7.2px; margin-bottom: 17.3px; }
  #lepes-keszsegek .field label, #lepes-keszsegek .label { top: 1.1px; }
  .add-line { margin-top: 3px; }
  #lepes-tanulmany .cols { margin-top: 22.6px; }
  #lepes-tanulmany .btn-next { margin-top: 21.8px; }
  #lepes-nyelv h4 { padding-top: 73px; }
  #lepes-nyelv .cols { margin-top: 22.6px; }
  #lepes-nyelv .field input:not([type=checkbox]) { height: 31.9px; }
  #lepes-nyelv .btn-next { margin-top: 20.7px; }
  #lepes-nyelv { padding-bottom: 39.4px; }
  #lepes-keszsegek .cols { margin-top: 21.9px; }
  #lepes-keszsegek .btn-next { margin-top: 36.9px; }
  #lepes-keszsegek .col + .col .field:nth-child(1) { margin-top: -0.9px; }
  #lepes-keszsegek .col + .col { gap: 0; }
  #lepes-keszsegek .col + .col .field:nth-child(2) { margin-top: 9.8px; }
  #lepes-keszsegek .col + .col .field:nth-child(3) { margin-top: 8.7px; }
  #lepes-keszsegek .xbox-hint em { position: relative; top: -1.6px; }
  #lepes-munka .btn-next { margin-top: 18px; }
}

/* ---- szakaszonkénti finomhangolás a mobil PSD-mérések alapján ---- */
@media (max-width: 767px) {
  #lepes-sablon { margin-top: 75.4px; padding-bottom: 26.1px; }
  #lepes-szemelyes { margin-top: 76.9px; padding-bottom: 27.5px; }
  #lepes-magamrol { margin-top: 88.1px; padding-bottom: 29.9px; }
  #lepes-munka { margin-top: 90.6px; padding-bottom: 31.2px; }
  #lepes-tanulmany { margin-top: 91.8px; padding-bottom: 32.5px; }
  #lepes-nyelv { margin-top: 96.1px; padding-bottom: 35.6px; }
  #lepes-keszsegek { margin-top: 96.8px; padding-bottom: 30.6px; }
  #lepes-szemelyes h4 { padding-top: 64.6px; }
  .field-photo > .label { margin-top: 0; }
  #lepes-tanulmany .field + .field { margin-top: 7.45px; }
  #lepes-tanulmany .cols { margin-top: 26.9px; }
  #lepes-tanulmany .add-row { margin-top: 18.1px !important; }
  #lepes-nyelv .intro, #lepes-keszsegek .intro { max-width: 315.7px; }
  .photo-help { margin-right: -12.5px; }
  #lepes-sablon .btn-next { margin-top: 18px; }
  #lepes-szemelyes .btn-next { margin-top: 19.4px; }
  .step h4 { padding-top: 64.2px; }
  #lepes-sablon h4 { padding-top: 63.4px; }
  .card .card-p-wide { letter-spacing: 0; }
  #lepes-keszsegek .cols { margin-top: 15.4px; }
  #lepes-keszsegek .field-check { margin-left: -1.3px; }
  #lepes-keszsegek .field-check .label { margin-top: 0; margin-bottom: 9.9px; }
  #lepes-keszsegek .field-check + .field-check { margin-top: 7.4px; }
  label[for=egyeb_jogositvany] { margin-bottom: 4.4px !important; }
  #lepes-keszsegek .field-check + .field-check .label { display: none; }
  #lepes-munka .cols { margin-top: 22.1px; }
  #lepes-nyelv .cols { margin-top: 17.2px; }
  #lepes-nyelv .add-row { margin-top: 23.8px !important; }
  #lepes-magamrol .btn-next { margin-top: 28.1px; }
  #lepes-munka .btn-next { margin-top: 16.9px; }
  #lepes-tanulmany .btn-next { margin-top: 17.5px; }
  #lepes-nyelv .btn-next { margin-top: 17.4px; }
  #lepes-keszsegek .btn-next { margin-top: 30px; }
  #lepes-munka .add-row, #lepes-tanulmany .add-row, #lepes-nyelv .add-row { margin-top: 11.4px; }
}

/* ismétlődő tételek: az első mezősor teteje szakaszonként (a törlés gomb ehhez igazodik) */
#lepes-munka { --rowtop: 21.2px; }
#lepes-tanulmany, #lepes-nyelv { --rowtop: 22.6px; }

/* a kis (Feladatok) szerkesztő eszköztára sűrűbb, hogy kiférjen (a tervben is) */
.editor-small .ql-toolbar.ql-snow { padding-left: 0; }
.editor-small .ql-toolbar.ql-snow button { width: 24px; }
.editor-small .ql-toolbar.ql-snow .ql-undo, .editor-small .ql-toolbar.ql-snow .ql-redo { width: 20px; }
.editor-small .ql-toolbar.ql-snow .ql-align { width: 27px; }
.editor-small .ql-toolbar.ql-snow .ql-list { width: 36px; }
.editor-small .ql-toolbar.ql-snow button.ql-color { margin-right: 5px; }
.editor-small .ql-toolbar.ql-snow .ql-formats + .ql-formats::before { margin: 0 6px; }

@media (max-width: 767px) {
  .entry-remove, .entry + .entry .entry-remove { top: -3px; right: -6px; }
  .entry + .entry .entry-remove { top: 12px; }
}
