/* Autószerelő Portál - publikus felület.
   A designrendszer szerint (fejlesztesi_anyagok/design/DESIGN_SYSTEM.md).
   Ez a fájl a publikus layout legutolsó stíluslapja, tehát felülírja a publikus.css-t. */

:root {
  --navy: #07366f;
  --navy-deep: #052956;
  --blue: #6888ac;
  --blue-soft: #eaf1f8;
  --orange: #ff8a00;
  --orange-dark: #ee7400;
  --ink: #10243e;
  --muted: #607188;
  --line: #dbe5ef;
  --page: #f7fafd;
}

body.nezet-publikus {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

.nezet-publikus a { color: inherit; text-decoration: none; }
.nezet-publikus button, .nezet-publikus input, .nezet-publikus select { font: inherit; }
html { scroll-behavior: smooth; }
/* Nem html:has(body.nezet-publikus): a régi motor a :has() miatt a lista többi tagját is eldobná.
   A <html> osztályát a publikus és a kioszk layout teszi ki. */
html.oldal-publikus, body.nezet-publikus { overflow-x: clip; }

.szakasz-keret { width: calc(100% - 48px); max-width: 1180px; margin-left: auto; margin-right: auto; }

/* --- Fejléc --- */

.site-header {
  height: 82px; padding: 0 24px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center;
  justify-content: space-between; gap: 28px; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(7,54,111,.09); position: relative; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 53px; height: 53px; object-fit: contain; mix-blend-mode: multiply; }
.brand span { display: grid; line-height: 1; color: var(--navy); }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand small { margin-top: 5px; font-size: 11px; font-weight: 800; letter-spacing: 4.6px; color: var(--orange-dark); }

.fo-menu { display: flex; align-items: center; gap: 20px; gap: clamp(20px, 2.6vw, 42px); color: #3f5269; font-size: 14px; font-weight: 700; }
.fo-menu a:hover { color: var(--navy); }
.header-login { padding: 12px 18px; border: 1.5px solid var(--navy); border-radius: 12px; color: var(--navy); font-weight: 800; font-size: 14px; }
.header-login span { margin-left: 7px; }

/* --- Gombok --- */

.button {
  min-height: 54px; padding: 0 25px; border-radius: 14px; display: inline-flex; align-items: center;
  justify-content: center; gap: 20px; font-size: 15px; font-weight: 800; cursor: pointer;
  border: 0; transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 13px 28px rgba(238,116,0,.2); }
.button-secondary { border: 1.5px solid #b8c8d9; background: #fff; color: var(--navy); }
.button-white { background: #fff; color: var(--navy); }
.button-outline-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }

/* --- Hero --- */

.hero {
  min-height: 665px; overflow: hidden; display: grid; grid-template-columns: 1.02fr .98fr;
  padding: 72px 24px 118px;
  padding: 72px clamp(24px, 6vw, 92px) 118px;
  background:
    radial-gradient(circle at 73% 35%, rgba(232,241,249,.9) 0 18%, transparent 42%),
    linear-gradient(132deg, #fff 0 55%, #f0f6fb 55% 100%);
}
.hero-copy { align-self: center; position: relative; z-index: 2; max-width: 690px; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 4px; border-radius: 8px; background: var(--orange); }
.nezet-publikus .hero h1 { margin: 0; color: var(--navy-deep); font-size: 48px; font-size: clamp(48px, 5.25vw, 78px); line-height: .99; letter-spacing: -3.8px; }
.nezet-publikus .hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 610px; margin: 26px 0 31px; color: var(--muted); font-size: 18px; line-height: 1.67; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 22px; color: #53657a; font-size: 13px; font-weight: 700; }
.trust-row b { width: 19px; height: 19px; display: inline-flex; justify-content: center; align-items: center; margin-right: 5px; border-radius: 50%; background: #e3f2e9; color: #21824e; }

.hero-visual { position: relative; min-height: 490px; display: grid; place-items: center; }
.visual-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(7,54,111,.09); }
.ring-one { width: 520px; height: 520px; }
.ring-two { width: 410px; height: 410px; border-style: dashed; }
.logo-stage { width: 90%; max-width: 520px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; background: #fff; box-shadow: 0 35px 80px rgba(6,47,96,.13); }
.logo-stage::after { content: ""; position: absolute; top: 19px; right: 19px; bottom: 19px; left: 19px; border: 2px solid #e2ebf4; border-radius: 50%; }
.logo-stage img { width: 86%; height: 86%; object-fit: contain; position: relative; z-index: 1; mix-blend-mode: multiply; }
.stage-label { position: absolute; top: 47px; z-index: 2; padding: 7px 13px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; background: #fff; border: 1px solid #e0eaf3; box-shadow: 0 18px 45px rgba(5,41,86,.13); }
.card-location { left: 0; top: 17%; gap: 10px; padding: 13px 17px; border-radius: 15px; }
.card-location b { color: var(--orange); font-size: 26px; }
.card-location span { max-width: 82px; color: #526479; font-size: 11px; line-height: 1.3; font-weight: 700; }
.card-status { right: -3%; bottom: 16%; gap: 10px; padding: 13px 16px; border-radius: 15px; }
.card-status i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e3f2e9; color: #21824e; font-style: normal; }
.card-status span { display: grid; gap: 3px; font-size: 11px; color: var(--navy); }
.card-status small { color: #7a8999; }

/* --- Szervizkereső panel --- */

.search-panel {
  width: calc(100% - 48px); max-width: 1180px; margin: -62px auto 0; padding: 27px 30px; position: relative;
  z-index: 5; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 30px;
  border-radius: 22px; background: var(--navy); color: #fff; box-shadow: 0 24px 56px rgba(5,41,86,.2);
}
.section-kicker { margin: 0 0 5px; color: #9cb6d3; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.nezet-publikus .search-panel h2 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -.5px; }
.search-panel form { display: grid; grid-template-columns: 1fr 1.15fr 1fr auto; gap: 10px; }
.search-panel label { padding: 10px 13px; display: grid; gap: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); }
.search-panel label > span { color: #adc1d8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.search-panel input, .search-panel select { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 700; }
.search-panel input::placeholder { color: #fff; opacity: .75; }
.search-panel option { color: var(--ink); }
.search-panel button { border: 0; border-radius: 12px; padding: 0 21px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; min-height: 54px; }
.search-panel button span { margin-left: 9px; }

/* --- Két célcsoport --- */

.audiences { padding-top: 132px; padding-bottom: 112px; }
.section-heading { max-width: 660px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.compact { max-width: 560px; }
.orange-kicker { color: var(--orange-dark); }
.nezet-publikus .section-heading h2 { margin: 8px 0 15px; color: var(--navy-deep); font-size: 35px; font-size: clamp(35px, 3.7vw, 52px); line-height: 1.08; letter-spacing: -2.1px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.audience-grid { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { min-height: 475px; padding: 42px; position: relative; overflow: hidden; border-radius: 27px; }
.owner-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(18,55,91,.08); }
.workshop-card { background: var(--navy); color: #fff; box-shadow: 0 22px 60px rgba(7,54,111,.18); }
.audience-number { position: absolute; right: 28px; top: 20px; font-size: 72px; font-weight: 900; color: rgba(7,54,111,.055); }
.workshop-card .audience-number { color: rgba(255,255,255,.07); }
.audience-icon { width: 76px; height: 76px; margin-bottom: 25px; display: grid; place-items: center; border-radius: 19px; }
.car-mini { background: var(--blue-soft); }
.car-mini img { width: 69px; height: 69px; object-fit: contain; mix-blend-mode: multiply; }
.tool-mini { background: rgba(255,138,0,.15); color: var(--orange); }
.tool-mini svg { width: 40px; height: 40px; }
.card-label { margin: 0 0 11px; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; }
.nezet-publikus .audience-card h3 { max-width: 470px; margin: 0 0 15px; color: var(--navy-deep); font-size: 26px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -1.2px; }
.nezet-publikus .workshop-card h3 { color: #fff; }
.audience-card > p { margin: 0; max-width: 515px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.workshop-card > p { color: #b9cce0; }
.audience-card ul { margin: 25px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; list-style: none; font-size: 13px; font-weight: 700; }
.audience-card li > span { color: #24945d; margin-right: 6px; }
.workshop-card li > span { color: var(--orange); }
.audience-card > a { display: inline-flex; align-items: center; gap: 20px; color: var(--navy); font-size: 14px; font-weight: 900; }
.workshop-card > a { color: var(--orange); }

/* --- Szolgáltatások --- */

.services { padding: 100px 0 110px; background: #fff; }
.services-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.text-link { padding-bottom: 9px; display: flex; gap: 15px; border-bottom: 2px solid var(--orange); color: var(--navy); font-size: 13px; font-weight: 800; }
.service-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { min-height: 117px; padding: 19px; display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); border-color: #a9bed3; box-shadow: 0 14px 35px rgba(8,52,103,.09); }
.service-icon { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--navy); border: 1px solid #d6e3ef; }
.service-icon svg { width: 32px; height: 32px; }
.service-card:nth-child(2n) .service-icon { background: #fff4e6; color: var(--orange-dark); border-color: #ffe0b4; }
.service-card > span:nth-child(2) { display: grid; gap: 6px; }
.service-card b { color: var(--navy-deep); font-size: 16px; }
.service-card small { color: #7a8999; font-size: 11px; }
.service-card i { color: #9ab0c6; font-size: 20px; font-style: normal; }

/* --- Három lépés --- */

.steps { padding-top: 110px; padding-bottom: 120px; }
.step-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px; }
.step-grid article { position: relative; text-align: center; }
.step-grid article:not(:last-child)::after { content: ""; position: absolute; width: 72px; right: -72px; top: 62px; border-top: 2px dashed #cbd8e5; }
.step-grid article > span { position: absolute; top: -6px; left: calc(50% + 38px); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 0 0 6px #fff4e6; }
.step-symbol { width: 110px; height: 110px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 28px; background: #fff; border: 1px solid var(--line); color: var(--navy); box-shadow: 0 15px 45px rgba(15,52,86,.08); }
.step-symbol svg { width: 46px; height: 46px; }
.nezet-publikus .step-grid h3 { margin: 0 0 12px; color: var(--navy-deep); font-size: 19px; }
.step-grid p { margin: 0 auto; max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* --- Találati lista: a valós partnerműhelyek --- */

.muhelyek { padding: 100px 0 110px; background: #fff; }
.muhelyek-fej { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.talalat-szam { color: var(--muted); font-size: 13px; font-weight: 700; }
.muhely-racs { margin-top: 45px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.muhely-kartya {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: 0 0 22px 22px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.muhely-kartya:hover { transform: translateY(-3px); border-color: #a9bed3; box-shadow: 0 18px 45px rgba(8,52,103,.1); }
.muhely-kartya .muhely-borito {
  width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; overflow: hidden;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--blue-soft);
}
.muhely-kartya .muhely-borito img { width: 100%; height: 100%; object-fit: cover; display: block; }
.muhely-kartya .muhely-borito--logo { padding: 8%; background: #fff; }
.muhely-kartya .muhely-borito--logo img { object-fit: contain; }
.muhely-kartya .muhely-borito--monogram { display: grid; place-items: center; border-bottom: 0; }
.muhely-kartya .muhely-borito--monogram span { color: #fff; font-size: 64px; font-weight: 900; letter-spacing: 1px; }

/* Régi böngészők (pl. a műhelyi tabletek Samsung Internet 9 / Chromium 67 motorja) nem ismerik
   az aspect-ratio-t: ott a négyzetes képterületet és a kör alakú logót a padding-trükk adja. */
@supports not (aspect-ratio: 1 / 1) {
  .muhely-kartya .muhely-borito { position: relative; height: 0; padding: 0 0 100%; }
  .muhely-kartya .muhely-borito img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .muhely-kartya .muhely-borito--logo img { top: 8%; left: 8%; width: 84%; height: 84%; }
  .muhely-kartya .muhely-borito--monogram span { position: absolute; top: 50%; left: 0; right: 0; text-align: center; transform: translateY(-50%); }
  .logo-stage::before { content: ""; grid-area: 1 / 1; padding-top: 100%; }
  .logo-stage img { grid-area: 1 / 1; }
}
.muhely-kartya-test { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nezet-publikus .muhely-kartya h3 { margin: 0; color: var(--navy-deep); font-size: 19px; letter-spacing: -.4px; }
.muhely-hely { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.muhely-hely svg { width: 15px; height: 15px; }
.muhely-leiras { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.muhely-tovabb { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 13px; font-weight: 900; }
.muhely-kartya:hover .muhely-tovabb { color: var(--orange-dark); }
.ures-allapot { margin-top: 40px; padding: 55px 30px; text-align: center; border: 1px dashed #c3d3e3; border-radius: 22px; background: var(--page); }
.ures-allapot p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.ures-allapot strong { color: var(--navy-deep); font-size: 18px; }
.ures-allapot .button { margin-top: 18px; }

/* --- Műhelyirányító rendszer --- */

.system { min-height: 680px; padding: 95px 24px; padding: 95px clamp(24px, 7vw, 110px); display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 50px; gap: clamp(50px, 7vw, 105px); overflow: hidden; background: var(--navy-deep); color: #fff; }
.system-copy { max-width: 490px; }
.system-copy .section-kicker { color: #8faaca; }
.nezet-publikus .system-copy h2 { margin: 13px 0 22px; color: #fff; font-size: 36px; font-size: clamp(36px, 3.5vw, 54px); line-height: 1.08; letter-spacing: -2px; }
.system-copy > p:not(.section-kicker) { color: #b8cade; font-size: 16px; line-height: 1.72; }
.system-stats { margin: 32px 0; display: flex; gap: 40px; }
.system-stats span { display: grid; gap: 4px; }
.system-stats b { color: var(--orange); font-size: 29px; }
.system-stats small { color: #a9bdd4; font-size: 11px; }

.dashboard { min-width: 650px; min-height: 450px; display: grid; grid-template-columns: 68px 1fr; border-radius: 22px; overflow: hidden; background: #f5f8fb; color: var(--ink); box-shadow: 0 35px 80px rgba(0,0,0,.28); transform: perspective(1100px) rotateY(-4deg); }
.dash-sidebar { padding: 19px 0; display: flex; flex-direction: column; align-items: center; gap: 30px; background: #082f60; color: #8eabc9; }
.dash-sidebar b { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--orange); color: #fff; font-size: 12px; }
.dash-sidebar svg { width: 20px; height: 20px; }
.dash-main { padding: 25px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.dash-head > span { display: grid; gap: 5px; }
.dash-head b { color: var(--navy-deep); font-size: 18px; }
.dash-head small { color: #8b98a8; font-size: 10px; }
.dash-head i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-size: 11px; font-style: normal; font-weight: 900; }
.dash-metrics { margin: 23px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.dash-metrics span { padding: 15px; display: grid; gap: 7px; border-radius: 12px; background: #fff; border: 1px solid #e3ebf2; }
.dash-metrics small { color: #8291a1; font-size: 9px; }
.dash-metrics b { color: var(--navy); font-size: 22px; }
.dash-content { display: grid; grid-template-columns: 1fr 145px; gap: 12px; }
.schedule, .capacity { padding: 17px; border: 1px solid #e3ebf2; border-radius: 14px; background: #fff; }
.schedule > b, .capacity > b { color: var(--navy); font-size: 12px; }
.schedule > div { margin-top: 13px; padding: 11px 0; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 7px; border-top: 1px solid #eef2f6; }
.schedule time { color: #8a98a7; font-size: 10px; }
.schedule > div > span { display: grid; gap: 3px; }
.schedule strong { font-size: 10px; }
.schedule small { color: #8491a0; font-size: 8px; }
.schedule em { padding: 5px 7px; border-radius: 10px; background: #eef4fa; color: var(--navy); font-size: 7px; font-style: normal; font-weight: 800; }
.schedule em.progress { background: #fff0df; color: #d66a00; }
.capacity { text-align: center; }
.donut { width: 82px; height: 82px; margin: 26px auto 13px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--orange) 0 72%, #e5edf5 72%); position: relative; }
.donut::after { content: ""; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; border-radius: 50%; background: #fff; }
.donut > span { position: relative; z-index: 1; color: var(--navy); font-size: 21px; font-weight: 900; }
.donut small { font-size: 9px; }
.capacity p { color: #8996a5; font-size: 8px; }

/* --- Záró CTA és lábléc --- */

.final-cta { padding: 67px 24px; padding: 67px clamp(24px, 8vw, 120px); display: flex; align-items: center; justify-content: space-between; gap: 45px; background: var(--orange); color: #fff; }
.final-cta .section-kicker { color: #fff0dc; }
.nezet-publikus .final-cta h2 { max-width: 750px; margin: 8px 0 0; color: #fff; font-size: 30px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -1.5px; }
.final-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 12px; min-width: max-content; }

.pub-lablec { padding: 70px 24px 30px; padding: 70px clamp(24px, 7vw, 105px) 30px; display: grid; grid-template-columns: 1.45fr .7fr .7fr 1fr; gap: 45px; background: #fff; }
.pub-lablec > div { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; color: #6b7b8e; font-size: 13px; }
.pub-lablec > div > b { margin-bottom: 5px; color: var(--navy); font-size: 13px; }
.pub-lablec a:hover { color: var(--navy); }
.footer-brand p { max-width: 290px; margin: 8px 0 0; line-height: 1.6; }
.footer-brand .brand img { width: 53px; height: 53px; }
.footer-bottom { grid-column: 1 / -1; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: #8795a4; font-size: 11px; }

/* --- Fókusz: a designrendszer 8. pontja szerint külön kell megadni --- */

.nezet-publikus a:focus-visible,
.nezet-publikus button:focus-visible,
.nezet-publikus input:focus-visible,
.nezet-publikus textarea:focus-visible,
.nezet-publikus select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}
.search-panel label:focus-within { border-color: var(--orange); }

/* --- 1180 px alatt (fekvő tablet): a 650 px-es makett nem fér a jobb oszlopba,
   kilógna a képernyőről, és iPad Safariban a 3D-forgatás miatt kiszélesítené a lapot. --- */

@media (max-width: 1180px) {
  .system { grid-template-columns: 1fr; }
  .dashboard { min-width: 0; width: 100%; transform: none; }
}

/* --- 980 px alatt --- */

@media (max-width: 980px) {
  .fo-menu { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 560px; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel form { grid-template-columns: 1fr 1fr; }
  .service-grid, .muhely-racs { grid-template-columns: repeat(2, 1fr); }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .pub-lablec { grid-template-columns: 1.3fr 1fr 1fr; }
  .pub-lablec > div:last-of-type { grid-column: 2 / 4; }
}

/* --- 650 px alatt --- */

@media (max-width: 650px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; letter-spacing: 3.8px; }
  .header-login { padding: 10px 12px; }
  .hero { padding: 46px 20px 95px; }
  .nezet-publikus .hero h1 { font-size: 46px; letter-spacing: -2.5px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 420px; }
  .ring-one { width: 370px; height: 370px; }
  .ring-two { width: 295px; height: 295px; }
  .card-location { left: -5px; top: 16%; }
  .card-status { right: -5px; bottom: 12%; }
  .search-panel { width: calc(100% - 28px); margin-top: -44px; padding: 23px 18px; }
  .search-panel form { grid-template-columns: 1fr; }
  .search-panel label, .search-panel button { min-height: 56px; }
  .szakasz-keret { width: calc(100% - 36px); }
  .audiences { padding-top: 105px; padding-bottom: 80px; }
  .audience-grid, .service-grid, .step-grid, .muhely-racs { grid-template-columns: 1fr; }
  .audience-card { min-height: auto; padding: 30px 24px; }
  .audience-card ul { grid-template-columns: 1fr; }
  .services, .muhelyek { padding: 75px 0; }
  .services-top, .muhelyek-fej { align-items: flex-start; flex-direction: column; }
  .service-card { grid-template-columns: 59px 1fr auto; }
  .service-icon { width: 58px; height: 58px; }
  .steps { padding-top: 80px; padding-bottom: 85px; }
  .step-grid { gap: 50px; }
  .step-grid article::after { display: none; }
  .system { padding: 75px 20px; }
  .system-stats { gap: 22px; }
  .dashboard { min-height: 370px; grid-template-columns: 48px 1fr; }
  .dash-main { padding: 14px; }
  .dash-sidebar { gap: 24px; }
  .dash-content { grid-template-columns: 1fr; }
  .capacity { display: none; }
  .schedule > div { grid-template-columns: 38px 1fr; }
  .schedule em { display: none; }
  .final-cta { padding: 55px 20px; }
  .final-cta > div:last-child { min-width: 0; }
  .pub-lablec { padding: 55px 20px 25px; grid-template-columns: 1fr 1fr; }
  .footer-brand, .pub-lablec > div:last-of-type, .footer-bottom { grid-column: 1 / -1; }
}

/* --- A régi tokenek újraértelmezése a publikus nézetre.
   A publikus.css és a komponensek.css 166 helyen var(--szin-*)-ot használ, ezért ezzel
   a blokkal a műhelyeknek / foglalás / műhelyprofil oldalak komponensei is átveszik az
   új arculatot anélkül, hogy a működő űrlapok markupjához hozzá kellene nyúlni.
   Az állapotszínek (siker, veszély, figyelmeztetés) szándékosan változatlanok. --- */

body.nezet-publikus {
  --szin-nav: var(--navy);
  --szin-cim: var(--navy-deep);
  --szin-marka: var(--orange);
  --szin-elsodleges: var(--orange);
  --szin-elsodleges-sotet: var(--orange-dark);
  --szin-elsodleges-vilagos: #fff4e6;
  --szin-alap: var(--page);
  --szin-felulet: #fff;
  --szin-szoveg: var(--ink);
  --szin-szoveg-halvany: var(--muted);
  --szin-szegely: var(--line);
  --sarok-kicsi: 12px;
  --sarok-kozepes: 14px;
  --sarok-nagy: 18px;
  --arnyek-kartya: 0 18px 60px rgba(18, 55, 91, .08);
}

.nezet-publikus h1,
.nezet-publikus h2,
.nezet-publikus h3 { color: var(--navy-deep); letter-spacing: -.6px; }

.nezet-publikus .gomb--elsodleges {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 13px 28px rgba(238, 116, 0, .2);
}
.nezet-publikus .gomb--elsodleges:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.nezet-publikus .gomb { border-radius: 14px; }

/* --- A publikus.css beégetett márkaszínei. Ezek nem tokenből jönnek, ezért külön
   felül kell írni őket: a régi sötétkék-türkiz átmenet és a zöld akcentus helyére
   a designrendszer sötétkékje és narancsa kerül. --- */

.nezet-publikus .pub-logo .logo-jel { background: var(--orange); color: #fff; border-radius: 12px; }
.nezet-publikus .pub-lepes-lista li::before { background: var(--orange); color: #fff; }

.nezet-publikus .pub-jelentkezes,
.nezet-publikus .pub-atvezeto {
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
}

.nezet-publikus .pub-szekcio-fej h2::after {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
}

.nezet-publikus .pub-muhely-kartya:hover,
.nezet-publikus .pub-funkcio-elem:hover { border-color: var(--orange); }
.nezet-publikus .pub-funkcio-elem:hover { background: #fff8f0; }

.nezet-publikus .pub-hero {
  background:
    radial-gradient(circle at 73% 35%, rgba(232,241,249,.9) 0 18%, transparent 42%),
    linear-gradient(132deg, #fff 0 55%, #f0f6fb 55% 100%);
  color: var(--ink);
}
.nezet-publikus .pub-hero h1 { color: var(--navy-deep); }
.nezet-publikus .pub-hero .pub-lead { color: var(--muted); }

/* --- Űrlapelemek egységesítése a publikus felületen.
   A designrendszer szerint a mező 12 px kerekítésű, az érinthető felület legalább 44 px,
   a gomb legalább 54 px. A keresőpanel mezői kivételek: ott a mező szándékosan
   keret és háttér nélküli, a sötétkék panelbe simulva. --- */

.nezet-publikus input[type="text"],
.nezet-publikus input[type="email"],
.nezet-publikus input[type="tel"],
.nezet-publikus input[type="date"],
.nezet-publikus input[type="time"],
.nezet-publikus input[type="number"],
.nezet-publikus input[type="password"],
.nezet-publikus select,
.nezet-publikus textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.nezet-publikus textarea { min-height: 120px; line-height: 1.6; }
.nezet-publikus input:focus,
.nezet-publikus select:focus,
.nezet-publikus textarea:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(255,138,0,.15); }

.nezet-publikus .search-panel input,
.nezet-publikus .search-panel select {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  box-shadow: none;
}

.nezet-publikus .gomb { min-height: 54px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; }
.nezet-publikus .gomb--tomb { width: 100%; }

/* =========================================================
   MOBIL ÉS TABLET - a reszponzív designcsomag szerint
   (fejlesztesi_anyagok/design/portal-terv-2026-08/RESPONZIV_DESIGN.md)
   Referencia: telefon 390x844, tablet 768x1024.
   ========================================================= */

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

.menu-gomb {
  display: none; width: 46px; height: 46px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--navy); border-radius: 12px; background: #fff; cursor: pointer;
}
.menu-gomb span { width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.site-header.menu-nyitva .menu-gomb span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-nyitva .menu-gomb span:nth-child(2) { opacity: 0; }
.site-header.menu-nyitva .menu-gomb span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 980 px alatt: a főmenü lenyíló panellé alakul.
   A designcsomag itt csak elrejti a menüt - ez egyoldalas prototípusnál működik, de a
   portálon a Térkép és a Műhelyeknek külön oldal, amit telefonon is el kell érni. --- */

@media (max-width: 980px) {
  .menu-gomb { display: flex; }

  .site-header.menu-nyitva .fo-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    padding: 6px 18px 14px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(5, 41, 86, .14);
  }
  .site-header.menu-nyitva .fo-menu a {
    min-height: 56px; display: flex; align-items: center;
    border-bottom: 1px solid var(--line); color: var(--navy-deep); font-size: 16px;
  }
  .site-header.menu-nyitva .fo-menu a:last-child { border-bottom: 0; }
}

/* --- Érintési célterületek: a specifikáció szerint legalább 44x44 px. --- */

@media (max-width: 980px) {
  .header-login { min-height: 44px; display: inline-flex; align-items: center; }
  .text-link, .muhely-tovabb, .audience-card > a { min-height: 44px; align-items: center; }
  .pub-lablec > div > a { min-height: 44px; display: inline-flex; align-items: center; }
  .search-panel label { min-height: 56px; }
  .search-panel select, .search-panel input { min-height: 26px; }
}

/* --- Mobil űrlapok: 16 px alatti betűméretnél az iOS ránagyít a mezőre. --- */

@media (max-width: 650px) {
  .nezet-publikus input[type="text"],
  .nezet-publikus input[type="email"],
  .nezet-publikus input[type="tel"],
  .nezet-publikus input[type="date"],
  .nezet-publikus input[type="time"],
  .nezet-publikus input[type="number"],
  .nezet-publikus input[type="password"],
  .nezet-publikus input:not([type]),
  .nezet-publikus select,
  .nezet-publikus textarea,
  .nezet-publikus .search-panel input,
  .nezet-publikus .search-panel select { font-size: 16px; }
  .search-panel label > span { font-size: 10px; }
}

/* --- Mozgáscsökkentés: a rendszerbeállítást tiszteletben tartjuk. --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nezet-publikus *,
  .nezet-publikus *::before,
  .nezet-publikus *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .button:hover, .service-card:hover, .muhely-kartya:hover { transform: none; }
}

/* --- A publikus.css .pub-kereso-mezo szabálya két :not()-tal dolgozik, ezért magasabb
   specifikusságú, mint az általános mezőszabályaink - a designrendszer 12 px-es
   kerekítését és a mobil 16 px-es betűméretet külön kell rákényszeríteni. --- */

.nezet-publikus .pub-kereso-mezo input:not([type="checkbox"]):not([type="radio"]),
.nezet-publikus .pub-kereso-mezo select {
  border-radius: 12px;
  border-color: var(--line);
}

@media (max-width: 650px) {
  .nezet-publikus .pub-kereso-mezo input:not([type="checkbox"]):not([type="radio"]),
  .nezet-publikus .pub-kereso-mezo select { font-size: 16px; }
}

/* --- A jelölőnégyzetek maguk kicsik, de a köréjük írt címke a valódi érintési felület. --- */

@media (max-width: 980px) {
  .nezet-publikus label:has(input[type="checkbox"]),
  .nezet-publikus label:has(input[type="radio"]) { min-height: 44px; }
}

/* :has() nélküli motoron (Chromium 67: a selector() feltételt hamisnak veszi, így ez a blokk él)
   a jelölőnégyzetes címkék osztályaira ugyanez. */
@supports not selector(:has(*)) {
  @media (max-width: 980px) {
    .nezet-publikus .pub-hozzajarulas,
    .nezet-publikus .jelentkezes-szolg,
    .nezet-publikus .szuro-elem,
    .nezet-publikus .foglalas-nap,
    .nezet-publikus .foglalas-szolg,
    .nezet-publikus .napszak-elem { min-height: 44px; }
  }
}

@media (max-width: 980px) {
  .nezet-publikus .pub-vissza { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- Telefon- és e-mail-linkek: mobilon ezek a legfontosabb koppintási célok. --- */

@media (max-width: 980px) {
  .nezet-publikus a[href^="tel:"],
  .nezet-publikus a[href^="mailto:"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- Ugyanaz a kontraszt-javítás a publikus felületen is (lásd arculat.css). --- */

body.nezet-publikus {
  --szin-siker: #1c7a4f;
  --szin-veszely: #b3261e;
  --szin-info: #1f5ac4;
}
