/* =========================================================================
   Degeneratív Myelopathia – támogató honlap
   Mobilelső, reszponzív stíluslap · lila téma a logó alapján
   ========================================================================= */

/* ---- Alap / reset ---- */
/* caveat-regular - latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  src: url("../font/caveat-400.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* caveat-700 - latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  src: url("../font/caveat-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:root {
  --purple: #7c5aa6;
  --purple-deep: #5e3d8a;
  --purple-dark: #47306b;
  --purple-soft: #9b7cc4;
  --accent: #b98ddb;
  --lav-50: #f7f3fb;
  --lav-100: #efe7f7;
  --lav-200: #e4d6f1;
  --lav-400: #b9acd7;
  --lav-600: #7d66b2;
  --lav-800: #503e79;
  --ink: #2b2530;
  --ink-soft: #4c4557;
  --muted: #6f6879;
  --card: #ffffff;
  --line: #e7dcf1;
  --line-strong: #d6c4ea;

  --warn-bg: #fff6e8;
  --warn-line: #eab766;
  --warn-ink: #7a5410;
  --info-bg: #f0ecfa;
  --info-line: #b7a0dd;
  --good-bg: #eef6ef;
  --good-line: #9ac59e;
  --good-ink: #2f5d34;
  --quote-bg: #f4eefb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(74, 48, 107, 0.1);
  --shadow-lg: 0 14px 40px rgba(74, 48, 107, 0.16);
  --maxw: 1120px;
  --read: 760px;
  --header-h: 96px;

  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive, sans-serif;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--lav-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--purple-deep);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--purple-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--purple-dark);
  font-weight: 700;
}
h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 2em 0 0.55em;
}
h3 {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  margin: 1.7em 0 0.45em;
  color: var(--purple-deep);
}
h4 {
  font-size: 1.08rem;
  margin: 1.4em 0 0.35em;
  color: var(--purple-deep);
}

p {
  margin: 0 0 1.05em;
}
/* strong {
  color: var(--lav-400);
} */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--purple-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* =========================================================================
   Fejléc
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.utility-bar {
  background: #b9acd7;
  /* color: #efe6fb; */
  font-size: 0.86rem;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-block: 4px;
}
.utility-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.utility-contact .ic {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex: 0 0 auto;
}
.utility-email {
  /* color: #fff; */
  cursor: pointer;
  word-break: break-word;
  text-decoration: none;
}
.utility-contact .js-email:hover .ic {
  fill: #fff;
}
.utility-social {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}
.soc {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.soc svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}
.soc:hover {
  background: var(--accent);
}

.header-main {
  background: linear-gradient(
    -190deg,
    #b9acd7,
    var(--lav-600) 75% 70%,
    var(--lav-800)
  );
  color: #fff;
}
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  row-gap: 6px;
  min-height: 62px;
  padding-block: 8px;
}
.site-title {
  min-width: 0;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
}
.brand-badge {
  display: inline-grid;
  place-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.brand-badge img {
  width: 44px;
  height: auto;
  border-radius: 8px;
}
.brand-badge--sm {
  border-radius: 12px;
}
.brand-badge--sm img {
  width: 40px;
}

.site-title {
  flex: 1 1 auto;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
}
.site-title:hover {
  color: #fff;
}
.site-title-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.2px;
}
.site-title-sub {
  font-size: clamp(0.72rem, 1.7vw, 0.92rem);
  color: #e7d9f7;
  font-style: italic;
}

/* Hamburger */
.nav-toggle {
  flex: 0 0 auto;
  width: 46px;
  height: 42px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.2s;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Menü – mobil fiók */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(82vw, 330px);
  background: linear-gradient(160deg, var(--purple-deep), var(--purple-dark));
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 130;
  padding: 74px 20px 28px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.28);
}
body.nav-open .main-nav {
  transform: translateX(0);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.main-nav a {
  display: block;
  color: #f0e7fb;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  border: 1px solid transparent;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 20, 55, 0.5);
  backdrop-filter: blur(2px);
  /* z-index: 220; */
  border: 0;
}
.nav-backdrop[hidden] {
  display: none;
}

/* =========================================================================
   Fő tartalom
   ========================================================================= */
.main-content {
  display: block;
}
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.section {
  padding-block: clamp(28px, 5vw, 56px);
}
.section--tint {
  background: var(--lav-100);
}
.section-lead {
  max-width: var(--read);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Cikk-elrendezés (hosszú tartalom) */
.article {
  max-width: var(--read);
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 44px);
}
.article > * {
}
.article .lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
}
.article p,
.article li {
}
.article ul,
.article ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.article li {
  /* margin-bottom: 0.2em; */
}
.article ul {
  list-style: none;
  padding-left: 0;
}
.article ul > li {
  position: relative;
  padding-left: 1.5em;
}
.article ul > li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-soft);
}
.article ol {
  list-style: none;
}
.article ol > li {
  padding-left: 0.25em;
}

.page-header {
  background: linear-gradient(160deg, var(--lav-100), var(--lav-50));
  border-bottom: 1px solid var(--line);
}
.page-header .container {
  padding-block: clamp(28px, 5vw, 52px);
  text-align: center;
}
.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.4em;
}
.page-header h1 {
  max-width: 20ch;
  margin-inline: auto;
}
.page-header .intro {
  max-width: var(--read);
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin-top: 0.3em;
}

/* =========================================================================
   Tartalomjegyzék
   ========================================================================= */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin: 0 0 2em;
}
.toc-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--purple-dark);
}
.toc-details > summary::-webkit-details-marker {
  display: none;
}
.toc-title {
  font-size: 1.05rem;
}
.toc-caret {
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--purple);
  border-bottom: 2.5px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.toc-details[open] .toc-caret {
  transform: rotate(-135deg);
}
.toc-list,
.toc-sub {
  list-style: none;
  margin: 0;
  padding: 0 18px 16px;
}
.toc-list {
  counter-reset: toc;
}
.toc-list > li {
  padding: 0;
  margin: 0;
}
.toc-list > li > a,
.toc-list > li > .toc-group > .toc-group-summary > .toc-group-link {
  counter-increment: toc;
}
.toc-list > li > a::before,
.toc-list > li > .toc-group > .toc-group-summary > .toc-group-link::before {
  content: counter(toc) ". ";
  color: var(--purple-soft);
  font-weight: 700;
}

/* Lenyíló alpont-csoport a tartalomjegyzékben */
.toc-group-item {
  list-style: none;
}
.toc-group-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.toc-group-summary::-webkit-details-marker {
  display: none;
}
.toc-group-link {
  flex: 1 1 auto;
}
.toc-subcaret {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-right: 2px solid var(--purple-soft);
  border-bottom: 2px solid var(--purple-soft);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.toc-group[open] > .toc-group-summary .toc-subcaret {
  transform: rotate(-135deg);
}

/* Ugrás-pozíció a ragadós fejléc alá */
.article [id] {
  scroll-margin-top: 175px;
}
.toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 8px;
  border-radius: 8px;
}
.toc a:hover {
  background: var(--lav-100);
  color: var(--purple-dark);
}
.toc a.current {
  background: var(--lav-100);
  color: var(--purple-dark);
  font-weight: 700;
}
.toc-sub {
  padding: 2px 0 6px 20px;
}
.toc-sub a {
  font-size: 0.95rem;
  color: var(--muted);
}
.toc-sub a::before {
  content: "\2022 ";
  color: var(--purple-soft);
}

/* =========================================================================
   Kiemelő dobozok
   ========================================================================= */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.5em 0;
  border: 1px solid var(--line);
  background: var(--card);
}
.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}
.callout .callout-title {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 0.3em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout--info {
  background: var(--info-bg);
  border-color: var(--info-line);
}
.callout--info .callout-title {
  color: var(--purple-deep);
}
.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.callout--warn .callout-title {
  color: var(--warn-ink);
}
.callout--good {
  background: var(--good-bg);
  border-color: var(--good-line);
}
.callout--good .callout-title {
  color: var(--good-ink);
}
.callout--credit {
  background: var(--lav-100);
  border-color: var(--line-strong);
  font-size: 0.98rem;
}
.callout .ico {
  font-size: 1.15em;
}

.pullquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--quote-bg);
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--purple-soft);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: bold;
  color: var(--purple-dark);
}
.endquote {
  margin: 1.6em 0;
  /* padding: 18px 22px; */
  font-family: var(--font-hand);
  font-size: 2rem;
  font-style: italic;
  font-weight: bold;
  color: black;
}

/* Orvosi lelet / idézet-doboz */
.record {
  background: #fbf9fe;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: 0.98rem;
}
.record .record-head {
  font-weight: 700;
  color: var(--purple-deep);
  font-family: var(--font-serif);
  margin-bottom: 0.3em;
}

/* Lenyitható kórlap (teljes lelet-szöveg) */
details.record > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--purple-deep);
}
details.record > summary::-webkit-details-marker {
  display: none;
}
details.record > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--purple);
  border-bottom: 2.5px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details.record[open] > summary::after {
  transform: rotate(-135deg);
}
details.record > summary .record-hint {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: auto;
}
.record-body {
  margin-top: 0.7em;
  padding-top: 0.7em;
  border-top: 1px dashed var(--line-strong);
}
.record-body p:last-child {
  margin-bottom: 0;
}
.record-label {
  color: var(--purple-deep);
  font-weight: 700;
}
.record dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
}
.record dt {
  color: var(--muted);
}
.record dd {
  margin: 0;
}

/* =========================================================================
   Képek
   ========================================================================= */
.figure {
  margin: 1.6em 0;
}
.figure img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  width: 100%;
}
.figure--center img {
  margin-inline: auto;
}
figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6em;
  text-align: center;
  font-style: italic;
}
.figure--diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.figure--diagram img {
  box-shadow: none;
  max-height: 460px;
  width: auto;
  margin-inline: auto;
}
.figure--portrait img {
  max-width: 460px;
  margin-inline: auto;
}

.figure-grid {
  display: grid;
  gap: 14px;
  margin: 1.6em 0;
  grid-template-columns: 1fr;
}
.figure-grid .figure {
  margin: 0;
}
@media (min-width: 560px) {
  .figure-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================================
   Videók
   ========================================================================= */
.figure--video video {
  display: block;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  background: #000;
}
.video-placeholder {
  display: grid;
  place-items: center;
  gap: 4px;
  max-width: 640px;
  margin-inline: auto;
  padding: 36px 18px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--lav-100);
  color: var(--muted);
  text-align: center;
}
.video-placeholder-ico {
  font-size: 1.7rem;
}
.video-placeholder-text {
  font-family: var(--font-serif);
  font-style: italic;
}
.video-placeholder-file {
  font-size: 0.78rem;
  opacity: 0.7;
  word-break: break-all;
}

/* =========================================================================
   Táblázatok
   ========================================================================= */
.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 380px;
  font-size: 0.98rem;
  background: var(--card);
}
caption {
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 10px 14px;
  font-style: italic;
}
th,
td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--purple-deep);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  border-bottom: 0;
}
tbody tr:nth-child(even) {
  background: var(--lav-50);
}
tbody tr:hover {
  background: var(--lav-100);
}
.table--compact th,
.table--compact td {
  padding: 8px 12px;
}

/* =========================================================================
   Fajta-listák (chip-ek)
   ========================================================================= */
/* Fajtalista – rendes ul/li, több oszlopban a jobb áttekinthetőségért */
ul.breeds {
  margin: 1em 0 1.6em;
  columns: 2;
  column-gap: 34px;
}
@media (min-width: 720px) {
  ul.breeds {
    columns: 3;
  }
}
ul.breeds li {
  break-inside: avoid;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0 1.6em;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0 !important;
}
.chips li::before {
  display: none !important;
}
.chip {
  display: inline-block;
  background: var(--lav-100);
  border: 1px solid var(--line-strong);
  color: var(--purple-dark);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.chip--high {
  background: #f3e6f4;
  border-color: #dcaede;
  color: #7a2f79;
  font-weight: 600;
}
.chip--mid {
  background: #ede7f8;
  border-color: #c3b0e6;
}

/* =========================================================================
   Gombok
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--purple-deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--purple-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: #fff;
  color: var(--purple-deep);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--lav-100);
  color: var(--purple-dark);
}
.btn--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4em;
}

/* =========================================================================
   Főoldal
   ========================================================================= */
.hero {
  background: linear-gradient(
    165deg,
    var(--lav-800) 0%,
    var(--lav-600) 55%,
    var(--lav-400) 100%
  );
  color: #fff;
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  padding-block: clamp(34px, 6vw, 64px);
  align-items: center;
}
.hero-text h1 {
  color: #fff;
  margin-bottom: 0.3em;
}
.hero-text .hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #efe2fb;
  margin-bottom: 0.8em;
}
.hero-text p {
  color: #f2e9fb;
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-media {
  justify-self: center;
}
.hero-media img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 5px solid rgba(255, 255, 255, 0.5);
  max-width: 340px;
  width: 100%;
}
.hero-memoriam {
  margin-top: 1em;
  font-family: var(--font-serif);
  font-style: italic;
  color: #efe2fb;
}
@media (min-width: 780px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-media {
    justify-self: end;
  }
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 1.6em;
}
@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition:
    transform 0.16s,
    box-shadow 0.22s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.card .card-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lav-100);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.card h3 {
  margin: 0 0 0.35em;
  color: var(--purple-deep);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.card .card-more {
  margin-top: auto;
  padding-top: 12px;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.95rem;
}

.section-head {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 0.5em;
}
.section-head h2 {
  margin-top: 0;
}
.section-head p {
  color: var(--ink-soft);
}

/* =========================================================================
   „Levél" blokk (búcsúlevél)
   ========================================================================= */
.letter {
  background: linear-gradient(180deg, #fdfbff, #f6effb);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  margin: 2em 0;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.letter::before {
  content: "„";
  position: absolute;
  top: 2px;
  left: 18px;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--lav-200);
  line-height: 1;
}
.letter p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.letter .letter-salut {
  font-size: 1.25rem;
  color: var(--purple-dark);
  font-weight: 700;
  text-align: center;
}
.letter .letter-sign {
  text-align: right;
  font-style: italic;
  color: var(--purple-deep);
}
.letter .verse {
  text-align: center;
  font-style: italic;
  color: var(--purple);
  margin: 1.2em 0;
}

/* =========================================================================
   Lábléc
   ========================================================================= */
.site-footer {
  background: linear-gradient(
    -190deg,
    #b9acd7,
    var(--lav-600) 75% 70%,
    var(--lav-800)
  );
  color: #e7dcf5;
  margin-top: clamp(30px, 6vw, 70px);
}
.footer-grid {
  display: grid;
  gap: 28px;
  padding-block: clamp(30px, 5vw, 52px);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}
.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.7em;
}
.footer-brand .brand-badge {
  margin-bottom: 10px;
}
.footer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.2em;
}
.footer-memoriam {
  color: #cdbce6;
  font-style: italic;
  margin: 0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-nav a {
  color: #ddcef0;
  text-decoration: none;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-email .ic {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex: 0 0 auto;
}
.footer-email .js-email {
  color: #fff;
  cursor: pointer;
}
.footer-email .js-email:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
}
.soc--lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  gap: 0;
}
.soc--lg svg {
  width: 21px;
  height: 21px;
}
.footer-hint {
  color: #cdbce6;
  font-size: 0.95rem;
  margin: 0;
}
.at {
  color: var(--muted);
  font-style: normal;
}
.footer-email .at {
  color: #b9a6d8;
}

/* Botvédett e-mail: csak a boríték ikon jelenik meg, kattintható link.
   A cím sosem kerül a forrásba – JS-sel kattintásra nyílik a levelező. */
.js-email {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal {
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.88rem;
}
.footer-legal .container {
  padding-block: 16px;
}
.disclaimer {
  color: #d8cbee;
  margin: 0 0 0.5em;
}
.disclaimer strong {
  color: #fff;
}
.copyright {
  color: #b7a6d3;
  margin: 0;
}

/* =========================================================================
   Vissza a tetejére
   ========================================================================= */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--purple-deep);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    background 0.2s;
}
.to-top svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.to-top[hidden] {
  display: none;
}
.to-top:hover {
  background: var(--purple-dark);
}

/* =========================================================================
   Űrlap
   ========================================================================= */
.form {
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 6px;
}
.field .req {
  color: #b0397a;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fdfcff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 3px var(--info-bg);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}
.form-msg {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.form-msg--ok {
  background: var(--good-bg);
  border: 1px solid var(--good-line);
  color: var(--good-ink);
}
.form-msg--err {
  background: #fdecec;
  border: 1px solid #e6a6a6;
  color: #8f2f2f;
}

.contact-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .contact-layout {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}
.contact-layout .form {
  max-width: none;
}
.contact-aside h2 {
  font-size: 1.3rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.contact-line .ic {
  width: 18px;
  height: 18px;
  fill: var(--purple);
  flex: 0 0 auto;
}
/* Elérhetőség-ikonok a kapcsolat oldalon (világos háttér): e-mail + közösségi */
.contact-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(125, 102, 178, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-ico svg,
.contact-ico .ic {
  width: 21px;
  height: 21px;
  fill: var(--purple);
}
.contact-ico:hover {
  background: var(--purple);
}
.contact-ico:hover svg,
.contact-ico:hover .ic {
  fill: #fff;
}

/* =========================================================================
   Kis segéd-osztályok
   ========================================================================= */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
.refs {
  font-size: 0.92rem;
  color: var(--muted);
}
.refs a {
  word-break: break-word;
}
.refs li {
  margin-bottom: 0.55em;
}
.tag-soft {
  display: inline-block;
  background: var(--lav-100);
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.text-danger {
  color: red;
}
.opifont {
  font-family: "Patrick Hand", cursive, sans-serif;
  font-weight: 100;
  font-style: italic;
}

/* =========================================================================
   Asztali nézet – vízszintes menü
   ========================================================================= */
@media (min-width: 920px) {
  :root {
    --header-h: 104px;
  }
  .nav-toggle {
    display: none;
  }
  .nav-backdrop {
    display: none !important;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    transform: none;
    background: transparent;
    padding: 6px 0 0;
    overflow: visible;
    box-shadow: none;
    flex: 1 0 100%;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
  }
  .main-nav a {
    font-size: 0.95rem;
    padding: 8px 12px;
    color: #f0e7fb;
  }
  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .main-nav a.is-active {
    background: rgba(255, 255, 255, 0.2);
  }
  body.nav-open {
    overflow: auto;
  }
}

/* Nagyon kicsi kijelző: cím kompaktabb */
@media (max-width: 400px) {
  .site-title-sub {
    display: none;
  }
  .utility-contact {
    font-size: 0.8rem;
  }
}
