:root{
  /* háttérkép overlay – 35/50/70 */
  --bg-top: .35;
  --bg-mid: .50;
  --bg-bottom: .70;

  --text: #101418;
  --muted: rgba(16,20,24,.70);
  --line: rgba(16,20,24,.14);

  --paper: rgba(255,255,255,.86);
  --paper2: rgba(255,255,255,.92);

  /* finom piros/fehér */
  --accent: #b3121b;
  --accent2: rgba(179,18,27,.12);

  --shadow: 0 18px 55px rgba(0,0,0,.14);
  --radius: 14px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
  background: #f6f6f2;
}

.page-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("img/bck.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(246,246,242,var(--bg-top)) 0%,
    rgba(246,246,242,var(--bg-mid)) 45%,
    rgba(246,246,242,var(--bg-bottom)) 100%
  );
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}
.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(255,255,255,.95);
}
.brand__text strong{ display:block; }
.brand__text span{
  display:block;
  font-size:.9rem;
  color: var(--muted);
  margin-top:-2px;
}

/* Desktop nav */
.nav{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav a{
  color: rgba(16,20,24,.82);
  text-decoration:none;
  font-size:.95rem;
}
.nav a:hover{ color: var(--accent); }

/* ensure CTA in menu is red with white text */
.nav a.btn{
  color: #fff !important;
}
.nav a.btn:hover{ filter: brightness(.96); }

.nav__toggle{
  display:none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Mobile nav panel */
.navpanel{
  display:none;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.navpanel__inner{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 16px;
}
.navpanel a{
  text-decoration:none;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16,20,24,.03);
}
.navpanel a.btn{
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.12);
  color: #fff;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.12);
  color: #fff;
  font-weight: 900;
  text-decoration:none;
  box-shadow: 0 10px 28px rgba(179,18,27,.18);
}
.btn--ghost{
  background: rgba(255,255,255,.90);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--small{ padding: 9px 12px; font-size:.92rem; }

/* Section title outside panels */
.section__title{
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  position: relative;
}
.section__title::after{
  content:"";
  display:block;
  width: 52px;
  height: 3px;
  background: var(--accent);
  margin-top: 7px;
}

/* Hero */
.hero{ padding: 52px 0 24px; }
.hero__card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}
.hero__card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: radial-gradient(900px 380px at 18% 0%, var(--accent2), transparent 55%);
  pointer-events:none;
}
.hero__head{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 10px;
  position: relative;
}
.hero__logo{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(255,255,255,.95);
}
.kicker{
  margin:0 0 6px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .80rem;
  position: relative;
}
.kicker::before{
  content:"";
  display:inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-3px);
}
h1{
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  position: relative;
}
.lead{
  margin: 12px 0 16px;
  color: rgba(16,20,24,.84);
  font-size: 1.06rem;
  max-width: 75ch;
  position: relative;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
  position: relative;
}
.hero__note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .95rem;
  position: relative;
}

/* Facts */
.facts{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 2px;
  position: relative;
}
.fact{
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.fact__title{ color: var(--muted); font-size: .92rem; }
.fact__value{ font-weight: 900; }

/* Sections */
.section{ padding: 42px 0; }
.section--alt{ padding: 42px 0; }

/* Panels */
.section__panel{
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 18px;
}
.section__intro{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 85ch;
}

/* Groups */
.groups{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.group{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
  padding: 18px;
}
.group h3{ margin: 0 0 8px; }
.group p{ margin: 0 0 10px; color: rgba(16,20,24,.86); }
.group ul{ margin: 0; padding-left: 18px; color: rgba(16,20,24,.84); }
.group li{ margin: 6px 0; }

/* Schedule */
.schedule{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.schedule__item{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.schedule__title{ font-weight: 900; margin-bottom: 4px; }
.schedule__time{ color: rgba(16,20,24,.86); }

/* Image strip */
.strip{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.strip img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
}

/* Grid 2 columns */
.grid{
  display:grid;
  gap: 16px;
}
.grid--2{
  grid-template-columns: 1.2fr .8fr;
}

/* Figure */
.figure{
  margin: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
  overflow:hidden;
}
.figure img{ width:100%; height:auto; display:block; }
.figure figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: .92rem;
  border-top: 1px solid var(--line);
}

/* Callout */
.callout{
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* Map */
.map{
  border-radius: calc(var(--radius) + 4px);
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  min-height: 340px;
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
}
.map iframe{
  width:100%;
  height:100%;
  min-height:340px;
  border:0;
  display:block;
}

/* Contact */
.contact{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.contact__row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact__label{ color: var(--muted); min-width: 90px; }
.contact a{ color: var(--accent); text-decoration:none; }
.contact a:hover{ text-decoration: underline; }

/* CTA */
.cta{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
  padding: 16px;
  align-self: start;
}
.cta h3{ margin: 0 0 8px; }
.cta p{ margin: 0 0 10px; color: rgba(16,20,24,.86); }
.cta__actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.cta__small{ margin: 8px 0 0; }

.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

/* Footer */
.footer{
  padding: 22px 0 30px;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.footer__left{
  display:flex;
  align-items:center;
  gap: 12px;
}
.footer__logo{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: rgba(255,255,255,.95);
}

/* Responsive */
@media (max-width: 920px){
  .nav{ display:none; }
  .nav__toggle{ display:inline-block; }
  body.nav-open .navpanel{ display:block; }

  .facts{ grid-template-columns: 1fr; }
  .groups{ grid-template-columns: 1fr; }
  .schedule{ grid-template-columns: 1fr; }
  .strip{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }

  .section__title{ font-size: 1.65rem; }
}

/* Instructors */
.instructors{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.instructor{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
  padding: 16px;
  text-align: center;
}

.instructor img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: rgba(255,255,255,.8);
}

.instructor h3{
  margin: 6px 0 4px;
  font-size: 1.1rem;
}

.instructor__rank{
  margin: 0;
  font-weight: 900;
  color: var(--accent);
}

.instructor__role{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Mobile */
@media (max-width: 920px){
  .instructors{
    grid-template-columns: 1fr;
  }

  .instructor img{
    height: 220px;
  }
}



/* Mobilon marad 1 oszlop */
@media (max-width: 920px){
  .instructors{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px){
  .contact__row{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact__label{
    font-size: .85rem;
  }

  .contact a{
    word-break: break-all;
  }
}

.dojo-quote{
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(255,255,255,.75);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  font-style: italic;
  color: rgba(16,20,24,.85);
}

.dojo-quote p{
  margin: 0 0 10px;
}

.dojo-quote footer{
  margin-top: 8px;
  font-style: normal;
  font-size: .9rem;
  color: var(--muted);
}



/* cím picit erősebb */
.group h3{
  margin-top: 0;
  font-weight: 800;
}

/* === STABIL piros hangsúly a Csoportoknál === */
.groups > .group{
  position: relative;
  padding-left: 22px;
}

.groups > .group::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: var(--accent);
  border-radius: 999px;
}

/* Próbaedzés doboz – piros hangsúly */
.cta{
  position: relative;
  padding-left: 26px; /* hely a csíknak */
}

.cta::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  background: var(--accent);
  border-radius: 999px;
}

/* Kapcsolat / Próbaedzés doboz – piros hangsúly FIX */
#kapcsolat .cta{
  position: relative;
  padding-left: 28px;
}

#kapcsolat .cta::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  background: var(--accent);
  border-radius: 999px;
}

/* Edzésidők – időpontos dobozok piros hangsúlya */
.schedule__item{
  position: relative;
  padding-left: 18px;
}

.schedule__item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--accent);
  border-radius: 999px;
}