body {
  overflow-wrap: break-word;
}
a {
  text-underline-offset: 0.18em;
}
a:focus-visible,
button:focus-visible,
.table-wrap:focus {
  outline: 3px solid #1261a0;
  outline-offset: 3px;
}
.card {
  min-width: 0;
}
.card > a:last-child {
  font-weight: 750;
}
.table-wrap {
  -webkit-overflow-scrolling: touch;
}
.menu-btn {
  cursor: pointer;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.1rem;
  border-bottom: 1px solid var(--line);
}
.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--sage);
  font-weight: 900;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.pill {
  background: #eadfce;
  color: var(--coffee);
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
}
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.glossary > div {
  background: var(--paper);
  padding: 20px;
}
.glossary dt {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--coffee);
}
.glossary dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.consent {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 28px));
  background: #211712;
  color: #f7f1e7;
  border: 1px solid #5b463a;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.consent p {
  margin: 0 0 12px;
}
.consent-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.consent button,
.privacy-settings {
  border-radius: 99px;
  padding: 0.7rem 1rem;
  font-weight: 750;
  cursor: pointer;
}
.consent button {
  border: 0;
}
.consent .accept {
  background: var(--gold);
  color: #211712;
}
.consent .reject {
  background: #fff;
  color: #211712;
}
.consent a {
  color: #f3c987;
}
.consent[hidden] {
  display: none;
}
.privacy-settings {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
@media (max-width: 1040px) {
  .nav-wrap {
    flex-wrap: wrap;
  }
  .menu-btn {
    display: block;
  }
  nav {
    display: none;
    order: 3;
    width: 100%;
    padding: 0 0 14px;
    grid-template-columns: repeat(3, 1fr);
  }
  nav.open {
    display: grid;
  }
  nav a {
    text-align: center;
  }
}
@media (max-width: 620px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .nav-wrap {
    padding: 0 14px;
  }
  nav.open {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  nav a {
    background: #f0e6d8;
    padding: 0.65rem 0.4rem;
  }
  .table-wrap {
    margin-right: -14px;
    border-radius: 14px 0 0 14px;
  }
  .consent {
    bottom: 8px;
    padding: 16px;
  }
  .page-hero h1 {
    font-size: 2.45rem;
  }
}

/* Egységes, tartalmas lábléc */
.learning-path {
  background: #2a1b14;
}
.learning-path .section-head h2 {
  color: #fffaf2;
}
.learning-path .section-head p {
  color: #cdbdaf;
}
.path-grid {
  counter-reset: path;
}
.path-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.06);
}
.path-number {
  color: #e6a24d;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.path-card h3 {
  margin: 45px 0 10px;
  color: #fffaf2;
  font-size: 1.55rem;
}
.path-card p {
  color: #cdbdaf;
}
.path-card a {
  color: #f1c17d;
  font-weight: 750;
}
.glossary-tools {
  max-width: 680px;
  margin-bottom: 26px;
}
.glossary-tools label {
  display: block;
  margin-bottom: 8px;
  color: var(--coffee);
  font-weight: 800;
}
.glossary-search {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.glossary-search:focus {
  border-color: var(--rust);
  outline: 3px solid rgba(168, 79, 45, 0.18);
}
.glossary-result {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.glossary > div[hidden] {
  display: none;
}
.chapter-nav {
  border-top: 1px solid var(--line);
  background: #eee3d3;
}
.chapter-nav .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 25px;
}
.chapter-nav a {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--coffee);
  text-decoration: none;
}
.chapter-nav a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.chapter-nav small {
  margin-bottom: 3px;
  color: var(--muted);
}
.chapter-next {
  text-align: right;
}
@media (max-width: 620px) {
  .path-card {
    min-height: 0;
  }
  .path-card h3 {
    margin-top: 24px;
  }
  .chapter-nav .container {
    grid-template-columns: 1fr;
  }
  .chapter-nav .container > span {
    display: none;
  }
}
.footer {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #1c130f;
}
.footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--gold), var(--sage));
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(480px, 1.9fr);
  gap: clamp(50px, 8vw, 110px);
  padding-top: 68px;
  padding-bottom: 58px;
}
.footer-intro {
  max-width: 420px;
}
.footer-brand {
  display: inline-block;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.footer-brand span {
  color: #e6a24d;
}
.footer-intro p {
  margin: 16px 0 22px;
  color: #cdbdaf;
  line-height: 1.65;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f1c17d;
  font-weight: 750;
  text-decoration: none;
}
.footer-cta span {
  transition: transform 0.2s ease;
}
.footer-cta:hover {
  color: #fff;
}
.footer-cta:hover span {
  transform: translateX(4px);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 0;
}
.footer-nav h2 {
  margin: 0 0 15px;
  color: #fffaf2;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links a,
.footer-settings {
  color: #cdbdaf;
  font-size: 0.94rem;
  text-decoration: none;
}
.footer-links a:hover,
.footer-settings:hover {
  color: #f1c17d;
}
.footer-settings {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
  text-align: left;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.footer-bottom small {
  color: #96877c;
  font-size: 0.76rem;
}
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media (max-width: 620px) {
  .footer-main {
    padding-top: 50px;
    padding-bottom: 42px;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 5px;
  }
}

/* Kezdőoldali nyitócím */
.hero-inner {
  position: relative;
}
.hero-inner:before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 0 18px;
  border-radius: 99px;
  background: var(--gold);
}
.hero h1 {
  display: block;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 6.8vw, 6rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.035em;
  margin: 0.22em 0 0.3em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 span {
  font: inherit;
  color: #efbd75;
}
.hero p {
  max-width: 620px;
  margin-top: 1.15rem;
  line-height: 1.58;
}
.hero .button {
  box-shadow: 0 9px 28px rgba(48, 18, 7, 0.28);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.hero .button:hover {
  transform: translateY(-2px);
}
@media (max-width: 620px) {
  .hero-inner:before {
    width: 40px;
    margin-bottom: 15px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.8rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
  }
  .hero p {
    font-size: 1.03rem;
    max-width: 34ch;
  }
  .hero .button {
    padding: 0.82rem 1.05rem;
  }
}

/* Elkészítési receptek: rugalmas arányjelzők a szűk körök helyett */
.recipe {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.recipe .ratio {
  width: 112px;
  height: auto;
  min-height: 94px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(145deg, #513321, #352116);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(48, 28, 16, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.recipe .ratio:before {
  content: "ARÁNY";
  display: block;
  margin-bottom: 3px;
  color: #e6b46f;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.15em;
}
.recipe .ratio small {
  display: block;
  margin-top: 3px;
  color: #eadfce;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}
.recipe > div:last-child {
  min-width: 0;
}
.recipe .tag {
  margin-bottom: 3px;
}
@media (max-width: 620px) {
  .recipe {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .recipe .ratio {
    width: max-content;
    min-width: 108px;
    min-height: 0;
    padding: 12px 16px;
    border-radius: 14px;
    align-items: flex-start;
  }
  .recipe .ratio:before {
    margin-bottom: 4px;
  }
  .recipe .ratio small {
    text-align: left;
  }
}
