@import url('https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/metropolis.min.css');

/* MatricaDiszkont útmutatóközpont – webshophoz igazított arculat */
:root {
  --md-navy: #3d4654;
  --md-blue: #4a6d92;
  --md-blue-dark: #3f6185;
  --md-text: #3d4654;
  --md-muted: #7a8796;
  --md-line: #e0e7ee;
  --md-surface: #f6f8fc;
  --md-white: #ffffff;
  --md-green: #32705d;
  --md-amber: #a87011;
  --shadow-sm: 0 3px 10px rgb(29 48 68 / 6%);
  --shadow-md: 0 12px 28px rgb(29 48 68 / 12%);
  --radius-sm: 8px;
  --radius: 11px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--md-text); background: var(--md-white); font-family: Metropolis, system-ui, sans-serif; font-size: 16px; line-height: 1.58; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--md-navy); font-family: Metropolis, system-ui, sans-serif; line-height: 1.12; }
a { color: inherit; }
.shell { width: min(var(--content), calc(100% - 48px)); margin: auto; }

/* Központi oldal */
.hero { position: relative; overflow: hidden; padding: 32px 0 68px; background: var(--md-white); border-bottom: 1px solid var(--md-line); }
.hero::after { content: ""; position: absolute; right: -105px; top: 115px; width: 460px; height: 460px; border: 1px solid #edf1f5; border-radius: 50%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 48px; }
.brand img { display: block; width: 143px; height: auto; filter: grayscale(1) contrast(.85); }
.hero__content { padding-top: 45px; }
.eyebrow { margin-bottom: 10px; color: var(--md-blue); font-size: 11px; font-weight: 700; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin-bottom: 19px; font-size: clamp(42px, 5vw, 68px); font-weight: 700; letter-spacing: -.045em; }
.hero h1 em { color: var(--md-blue); font-style: normal; }
.hero__lead { max-width: 570px; margin-bottom: 23px; color: var(--md-muted); font-size: 18px; }
.hero__benefits { display: grid; gap: 9px; margin: 0 0 29px; padding: 0; color: #435873; font-size: 14px; font-weight: 700; list-style: none; }
.hero__benefits li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px; border-radius: 50%; background: #edf4f9; color: var(--md-blue); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; background: var(--md-blue); box-shadow: 0 6px 14px rgb(74 109 146 / 25%); color: var(--md-white); font-family: Metropolis, system-ui, sans-serif; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; transition: filter .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.button:hover { box-shadow: 0 8px 16px rgb(15 23 42 / 10%); filter: brightness(1.03); transform: translateY(-1px); }
.hero__art { position: relative; height: 470px; }
.hero__poster { position: absolute; overflow: hidden; margin: 0; border: 5px solid var(--md-white); border-radius: 16px; box-shadow: var(--shadow-md); }
.hero__poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__poster--back { top: 32px; right: 9%; width: 228px; height: 327px; transform: rotate(8deg); }
.hero__poster--front { top: 69px; left: 13%; width: 248px; height: 354px; transform: rotate(-5deg); }

.finder { padding: 55px 0 26px; background: var(--md-white); }
.section-intro { max-width: 680px; margin-bottom: 24px; }
.section-intro h2 { margin-bottom: 9px; font-size: clamp(29px, 3vw, 39px); letter-spacing: -.035em; }
.section-intro p:last-child { margin-bottom: 0; color: var(--md-muted); font-size: 16px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 38px; padding: 8px 13px; border: 1px solid rgb(74 109 146 / 18%); border-radius: var(--radius-sm); background: var(--md-white); color: var(--md-muted); cursor: pointer; font: 600 11px/1 Metropolis, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.filter:hover, .filter.is-active { border-color: rgb(74 109 146 / 30%); background: #e8f0f7; color: var(--md-blue); }
.filter-result { min-height: 23px; margin: 14px 0 0; color: var(--md-muted); font-size: 13px; }

.cards-section { padding: 28px 0 74px; background: var(--md-white); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--md-line); border-radius: 10px; background: var(--md-white); box-shadow: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.guide-card:hover { border-color: rgb(74 109 146 / 30%); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.guide-card.is-hidden { display: none; }
.guide-link { color: inherit; text-decoration: none; }
.guide-link > img { width: 100%; height: 224px; object-fit: cover; object-position: center; background: var(--md-surface); }
.guide-card__body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.card-kicker { margin-bottom: 7px; color: var(--md-blue); font-size: 10px; font-weight: 700; letter-spacing: .11em; line-height: 1.25; text-transform: uppercase; }
.guide-card h3 { margin-bottom: 9px; font-size: 20px; letter-spacing: -.015em; }
.guide-card__body > span:not(.card-kicker):not(.tags) { color: var(--md-muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0; }
.tags span, .guide-meta span { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 6px; background: #e8f0f7; color: var(--md-blue); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.guide-card__body > strong { margin-top: auto; color: var(--md-blue); font-size: 13px; }

/* Részletes útmutatóoldalak */
.guide-page { background: var(--md-surface); }
.guide-page .shell { width: min(1060px, calc(100% - 40px)); }
.crumbs { padding: 18px 0; color: var(--md-muted); font-size: 13px; }
.crumbs a, .poster-link { color: var(--md-blue-dark); font-weight: 700; text-decoration: none; }
.crumbs a:hover, .poster-link:hover { text-decoration: underline; }
.guide-hero { padding: 44px 0 58px; border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); background: var(--md-white); }
.guide-hero__grid { display: grid; grid-template-columns: 1fr 360px; align-items: center; gap: 50px; }
.guide-hero h1 { margin: 8px 0 16px; font-size: clamp(39px, 4.6vw, 62px); letter-spacing: -.045em; }
.guide-hero p { max-width: 580px; margin-bottom: 0; color: var(--md-muted); font-size: 17px; }
.guide-hero__image { width: 100%; max-height: 480px; border: 5px solid var(--md-white); border-radius: 15px; box-shadow: var(--shadow-md); object-fit: cover; object-position: center; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.guide-meta span { border: 1px solid var(--md-line); background: var(--md-white); color: #52728f; }
.guide-content { padding: 58px 0; }
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 54px; }
.guide-toc { position: sticky; top: 18px; align-self: start; padding: 16px; border: 1px solid var(--md-line); border-radius: 10px; background: var(--md-white); box-shadow: var(--shadow-sm); }
.guide-toc strong { display: block; margin-bottom: 8px; color: var(--md-navy); font-size: 13px; }
.guide-toc a { display: block; padding: 5px 0; color: var(--md-muted); font-size: 13px; text-decoration: none; transition: color .18s ease; }
.guide-toc a:hover { color: var(--md-blue-dark); }
.guide-section { margin-bottom: 54px; }
.guide-section h2 { margin-bottom: 18px; font-size: 31px; letter-spacing: -.03em; }
.guide-subsection { margin: 24px 0 10px; }
.guide-subsection h3 { margin-bottom: 10px; font-size: 21px; }
.full-step { display: grid; grid-template-columns: 58px 1fr; gap: 16px; margin: 32px 0 14px; padding-top: 28px; border-top: 1px solid var(--md-line); }
.full-step__number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--md-blue); box-shadow: 0 5px 12px rgb(74 109 146 / 20%); color: #fff; font-size: 16px; font-weight: 700; }
.full-step__content { display: grid; grid-template-columns: 1fr minmax(260px, 42%); gap: 20px; align-items: center; }
.full-step__content h3 { margin-bottom: 0; font-size: 22px; letter-spacing: -.02em; }
.full-step__content img { grid-column: 2; grid-row: 1; width: 100%; height: 205px; border-radius: 11px; object-fit: cover; }
.step-visual { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 1; border-radius: 11px; background-image: var(--step-image); background-position: var(--step-x) var(--step-y); background-size: calc(var(--step-columns) * 100%) calc(var(--step-rows) * 100%); background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgb(44 66 92 / 8%); }
.guide-layer { display: block; margin: 24px 0 10px; padding: 0; border: 0; }
.guide-layer h3 { margin-bottom: 10px; font-size: 21px; }
.detail-list { display: grid; gap: 7px; margin: 0 0 20px 74px; padding: 18px 22px 18px 40px; border-radius: 10px; background: #fff; color: #566a82; font-size: 14px; }
.guide-section > p { color: var(--md-muted); }
.support-block { padding: 24px; border: 1px solid var(--md-line); border-radius: 12px; background: #fff; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tools li { padding: 8px 11px; border-radius: 7px; background: #eef4f8; color: #4d718f; font-size: 13px; font-weight: 700; }
.steps { display: grid; gap: 33px; }
.step { display: grid; grid-template-columns: 75px 1fr; gap: 17px; }
.step__number { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%; background: var(--md-blue); color: var(--md-white); font-size: 16px; font-weight: 600; box-shadow: 0 5px 12px rgb(74 109 146 / 20%); }
.step__body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; padding-bottom: 33px; border-bottom: 1px solid var(--md-line); }
.step:nth-child(even) .step__body img { order: 2; }
.step h3 { margin-bottom: 8px; font-size: 21px; }
.step p { margin-bottom: 0; color: var(--md-muted); font-size: 15px; }
.step img { width: 100%; height: 220px; border-radius: var(--radius); object-fit: cover; }
.info-box { padding: 18px 19px; border-left: 4px solid var(--md-blue); border-radius: 0 var(--radius) var(--radius) 0; background: #f1f7fb; color: #465d77; font-size: 14px; }
.info-box--tip { border-color: var(--md-green); background: #eff8f4; }
.info-box--warn { border-color: var(--md-amber); background: #fff8e9; }
.info-box p { margin-bottom: 0; }
.guide-footer { padding: 48px 0; background: var(--md-navy); color: #dbe5ee; }
.guide-footer h2 { color: var(--md-white); font-size: 28px; }
.guide-footer .button { background: var(--md-white); box-shadow: none; color: var(--md-blue-dark); }

/* Interakció és akadálymentesség */
a:focus-visible, button:focus-visible { outline: 3px solid #f0a300; outline-offset: 3px; }
@keyframes md-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero__content, .hero__art, .section-intro { animation: md-rise .5s ease both; }
.hero__art { animation-delay: .08s; }

@media (max-width: 900px) {
  .hero__grid, .guide-hero__grid, .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { width: min(500px, 100%); height: 360px; margin: auto; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-toc { position: static; }
}
@media (max-width: 580px) {
  .shell, .guide-page .shell { width: calc(100% - 32px); }
  .hero { padding-bottom: 42px; }
  .brand img { width: 125px; }
  .hero__content { padding-top: 28px; }
  .hero h1 { font-size: 42px; }
  .hero__lead { font-size: 16px; }
  .hero__art { height: 300px; }
  .hero__poster--back { right: 0; width: 180px; height: 258px; }
  .hero__poster--front { left: 0; width: 200px; height: 286px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-link > img { height: 245px; }
  .guide-content { padding: 38px 0; }
  .guide-hero { padding: 32px 0 40px; }
  .guide-hero h1 { font-size: 39px; }
  .guide-hero p { font-size: 16px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__body { grid-template-columns: 1fr; gap: 14px; }
  .step:nth-child(even) .step__body img { order: 0; }
  .step img { height: auto; max-height: 260px; }
  .full-step { grid-template-columns: 1fr; }
  .full-step__content { grid-template-columns: 1fr; }
  .full-step__content img { grid-column: 1; grid-row: auto; height: auto; max-height: 260px; }
  .step-visual { grid-column: 1; grid-row: auto; width: min(100%, 360px); }
  .detail-list { margin-left: 0; padding-left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Központi választókártyák – a megadott webshopos referenciához igazítva */
.finder, .cards-section { background: #f5f8fc; }
.finder { padding-top: 58px; }
.cards-section { padding-top: 18px; }
.guide-grid { gap: 20px; }
.guide-card { min-height: 356px; border-color: #e0e6ed; border-radius: 18px; background: #fff; box-shadow: none; }
.guide-card:hover { border-color: #d3dce7; box-shadow: 0 10px 24px rgb(37 58 85 / 7%); transform: translateY(-2px); }
.guide-link > img { display: block; width: 100%; height: 156px; object-fit: cover; object-position: center; background: #edf3f8; }
.guide-card__body { position: relative; padding: 20px 25px 22px; }
.guide-card__body::before { content: "⌁"; display: grid; place-items: center; width: 39px; height: 39px; margin: -39px 0 13px; border: 3px solid #fff; border-radius: 11px; background: #496fa6; box-shadow: 0 3px 8px rgb(33 56 88 / 14%); color: #fff; font-size: 22px; font-weight: 400; line-height: 1; }
.guide-card:nth-child(2n) .guide-card__body::before, .guide-card:nth-child(5n) .guide-card__body::before { content: "→"; background: #f26725; font-size: 23px; }
.guide-card:nth-child(3n) .guide-card__body::before { content: "✓"; background: #3e8b70; font-size: 19px; }
.guide-card h3 { margin-bottom: 6px; color: #16263c; font-size: 18px; font-weight: 700; letter-spacing: -.025em; }
.card-kicker { display: none; }
.guide-card__body > span:not(.card-kicker):not(.tags) { min-height: 48px; color: #526a87; font-size: 13px; line-height: 1.55; }
.tags { gap: 6px; margin: 15px 0 0; }
.tags span { min-height: 24px; padding: 4px 8px; border-radius: 999px; background: #edf3fb; color: #4f71a6; font-size: 10px; font-weight: 600; }
.guide-card__body > strong { display: none; }
.finder .section-intro { margin-bottom: 19px; }
.finder .section-intro h2 { font-size: 31px; }
.filter-bar { gap: 7px; }
.filter { border-radius: 999px; }
.guides-action { padding: 25px 0 8px; color: #61738b; text-align: center; font-size: 13px; }
.guides-action p { margin: 0 0 16px; }
.guides-action strong { color: #2f4664; }
.guides-action .button { min-width: 230px; border-radius: 999px; }

/* Egységes kapszulaforma minden gombon és címkén */
.button,
.filter,
.tags span,
.guide-meta span,
.tools li,
.poster-link {
  border-radius: 999px;
}
.poster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgb(74 109 146 / 20%);
  background: #e8f0f7;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.poster-link:hover {
  background: #dfeaf3;
  text-decoration: none;
  transform: translateY(-1px);
}
.tool-purchase {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: -4px 0 24px 74px;
  padding: 11px 13px;
  border: 1px solid rgb(74 109 146 / 18%);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #edf4fb);
  box-shadow: 0 6px 16px rgb(37 58 85 / 7%);
  color: #314c6d;
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tool-purchase:hover {
  border-color: rgb(74 109 146 / 35%);
  box-shadow: 0 9px 20px rgb(37 58 85 / 11%);
  transform: translateY(-1px);
}
.tool-purchase__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--md-blue);
  color: #fff;
  font-size: 18px;
}
.tool-purchase strong,
.tool-purchase small {
  display: block;
}
.tool-purchase strong {
  margin-bottom: 2px;
  color: #263e5b;
  font-size: 13px;
}
.tool-purchase small {
  color: var(--md-muted);
  font-size: 11px;
}
.tool-purchase__action {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2ecf6;
  color: var(--md-blue-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .guide-card { min-height: 0; border-radius: 16px; }
  .guide-link > img { height: 166px; }
  .guide-card__body { padding: 22px 20px; }
  .tool-purchase {
    grid-template-columns: 34px 1fr;
    margin-left: 0;
    border-radius: 18px;
  }
  .tool-purchase__icon { width: 34px; height: 34px; }
  .tool-purchase__action { grid-column: 2; justify-self: start; }
}
